@eventcatalog/core 5.0.0-beta.4 → 5.0.0-beta.6
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/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +2 -2
- package/dist/analytics/log-build.js +4 -4
- package/dist/{chunk-TOMV5YJH.js → chunk-56CD2NH6.js} +1 -1
- package/dist/{chunk-M7OVJHPV.js → chunk-DE3QHVJP.js} +1 -1
- package/dist/{chunk-Q7FBYUCZ.js → chunk-L2IRFOE7.js} +1 -1
- package/dist/{chunk-TQLRG35T.js → chunk-PIYJM642.js} +1 -1
- package/dist/{chunk-VA77ENFQ.js → chunk-QBP3BBSV.js} +1 -1
- package/dist/{chunk-PL3T5TWF.js → chunk-XMPFHLK4.js} +2 -2
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +2 -2
- package/dist/eventcatalog.js +6 -6
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/runtime-dependencies/@hocuspocus__provider.mjs +3 -0
- package/dist/runtime-dependencies/@hocuspocus__server.mjs +3 -0
- package/dist/runtime-dependencies/@mcp-b__webmcp-local-relay.mjs +3 -0
- package/dist/runtime-dependencies/@mcp-b__webmcp-polyfill.mjs +3 -0
- package/dist/runtime-dependencies/manifest.json +8 -0
- package/dist/runtime-dependencies/react-hotkeys-hook.mjs +3 -0
- package/dist/runtime-dependencies/y-protocols.mjs +3 -0
- package/dist/runtime-dependencies/y-protocols__awareness.mjs +3 -0
- package/dist/runtime-dependencies/yjs.mjs +3 -0
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/utils/license-status.cjs +1 -1
- package/dist/utils/license-status.js +1 -1
- package/eventcatalog/astro.config.mjs +2 -0
- package/eventcatalog/integrations/studio-server.mjs +17 -0
- package/eventcatalog/src/features/integrations/eventcatalog-features.ts +20 -1
- package/eventcatalog/src/features/mcp/apps/canvas/shared.ts +39 -0
- package/eventcatalog/src/features/mcp/apps/canvas/styles.css +22 -0
- package/eventcatalog/src/features/mcp/apps/canvas/view.tsx +269 -0
- package/eventcatalog/src/features/mcp/apps/generated/canvas.html +209 -0
- package/eventcatalog/src/features/mcp/apps/generated/viewer.html +2 -2
- package/eventcatalog/src/features/mcp/apps/shared/app-view.tsx +2 -1
- package/eventcatalog/src/features/mcp/mcp-apps.ts +6 -3
- package/eventcatalog/src/features/mcp/mcp-server.ts +17 -4
- package/eventcatalog/src/features/studio/agent-choreography.ts +378 -0
- package/eventcatalog/src/features/studio/canvas-actions.ts +287 -0
- package/eventcatalog/src/features/studio/canvas-doc.ts +280 -0
- package/eventcatalog/src/features/studio/catalog-resources.ts +152 -0
- package/eventcatalog/src/features/studio/catalog.ts +171 -0
- package/eventcatalog/src/features/studio/components/CanvasControls.tsx +153 -0
- package/eventcatalog/src/features/studio/components/CanvasHeader.tsx +332 -0
- package/eventcatalog/src/features/studio/components/Comments.tsx +455 -0
- package/eventcatalog/src/features/studio/components/ConnectAgentDialog.tsx +217 -0
- package/eventcatalog/src/features/studio/components/ContainerChooser.tsx +145 -0
- package/eventcatalog/src/features/studio/components/JoinForm.tsx +58 -0
- package/eventcatalog/src/features/studio/components/LeftPanel.tsx +218 -0
- package/eventcatalog/src/features/studio/components/Presence.tsx +284 -0
- package/eventcatalog/src/features/studio/components/PropertiesPanel.tsx +75 -0
- package/eventcatalog/src/features/studio/components/StudioDesigner.tsx +760 -0
- package/eventcatalog/src/features/studio/components/canvas-nodes.tsx +79 -0
- package/eventcatalog/src/features/studio/components/icons.ts +48 -0
- package/eventcatalog/src/features/studio/components/status.ts +22 -0
- package/eventcatalog/src/features/studio/edges.ts +54 -0
- package/eventcatalog/src/features/studio/flow-state.ts +92 -0
- package/eventcatalog/src/features/studio/grouping.ts +133 -0
- package/eventcatalog/src/features/studio/hooks/presence-sender.ts +46 -0
- package/eventcatalog/src/features/studio/hooks/presence-store.ts +115 -0
- package/eventcatalog/src/features/studio/hooks/use-canvas-webmcp.ts +337 -0
- package/eventcatalog/src/features/studio/hooks/use-comments.ts +47 -0
- package/eventcatalog/src/features/studio/hooks/use-follow-camera.ts +99 -0
- package/eventcatalog/src/features/studio/hooks/use-studio-flow.ts +423 -0
- package/eventcatalog/src/features/studio/layout.ts +39 -0
- package/eventcatalog/src/features/studio/levels.ts +216 -0
- package/eventcatalog/src/features/studio/node-types.ts +173 -0
- package/eventcatalog/src/features/studio/pages/[id].astro +38 -0
- package/eventcatalog/src/features/studio/pages/index.astro +8 -0
- package/eventcatalog/src/features/studio/pages/webmcp-relay.ts +27 -0
- package/eventcatalog/src/features/studio/placement.ts +197 -0
- package/eventcatalog/src/features/studio/server/canvas-mcp.ts +475 -0
- package/eventcatalog/src/features/studio/server/runtime.ts +215 -0
- package/eventcatalog/src/features/studio/server/tool-icons.ts +30 -0
- package/eventcatalog/src/features/studio/studio.css +89 -0
- package/eventcatalog/src/features/studio/tool-sync.ts +75 -0
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +9 -2
- package/eventcatalog/src/utils/feature.ts +4 -0
- package/eventcatalog/src/utils/trial.ts +1 -1
- package/package.json +9 -2
- package/eventcatalog/public/studio-bg.png +0 -0
- package/eventcatalog/src/components/Studio/StudioPageModal.tsx +0 -150
- package/eventcatalog/src/pages/studio.astro +0 -316
|
@@ -101,7 +101,7 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
101
101
|
- omitted: host decides border`)}),zf({method:ep(`ui/request-display-mode`),params:zf({mode:Fg.describe(`The display mode being requested.`)})});var O=zf({mode:Fg.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),sne=Hf([ep(`model`),ep(`app`)]).describe(`Tool visibility scope - who can access the tool.`);zf({resourceUri:Ud().optional(),visibility:Lf(sne).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
102
102
|
- "model": Tool visible to and callable by the agent
|
|
103
103
|
- "app": Tool callable by the app from this server only`),csp:Pf().optional(),permissions:Pf().optional()}),zf({mimeTypes:Lf(Ud()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),zf({method:ep(`ui/download-file`),params:zf({contents:Lf(Hf([rte,ite])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),zf({method:ep(`ui/message`),params:zf({role:ep(`user`).describe(`Message role, currently only "user" is supported.`),content:Lf(Sg).describe(`Message content blocks (text, image, etc.).`)})}),zf({method:ep(`ui/notifications/sandbox-resource-ready`),params:zf({html:Ud().describe(`HTML content to load into the inner iframe.`),sandbox:Ud().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:zg.optional().describe(`CSP configuration from resource metadata.`),permissions:Bg.optional().describe(`Sandbox permissions from resource metadata.`)})});var cne=zf({method:ep(`ui/notifications/tool-result`),params:wg.describe(`Standard MCP tool execution result.`)}),lne=zf({toolInfo:zf({id:Lh.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Cg.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:Zte.optional().describe(`Current color theme preference.`),styles:nne.optional().describe(`Style configuration for theming the app.`),displayMode:Fg.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:Lf(Fg).optional().describe(`Display modes the host supports.`),containerDimensions:Hf([zf({height:yf().describe(`Fixed container height in pixels.`)}),zf({maxHeight:Hf([yf(),Af()]).optional().describe(`Maximum container height in pixels.`)})]).and(Hf([zf({width:yf().describe(`Fixed container width in pixels.`)}),zf({maxWidth:Hf([yf(),Af()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
104
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:Ud().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:Ud().optional().describe(`User's timezone in IANA format.`),userAgent:Ud().optional().describe(`Host application identifier.`),platform:Hf([ep(`web`),ep(`desktop`),ep(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:zf({touch:Tf().optional().describe(`Whether the device supports touch input.`),hover:Tf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:zf({top:yf().describe(`Top safe area inset in pixels.`),right:yf().describe(`Right safe area inset in pixels.`),bottom:yf().describe(`Bottom safe area inset in pixels.`),left:yf().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),une=zf({method:ep(`ui/notifications/host-context-changed`),params:lne.describe(`Partial context update containing only changed fields.`)});zf({method:ep(`ui/update-model-context`),params:zf({content:Lf(Sg).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:qf(Ud(),Nf().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),zf({method:ep(`ui/initialize`),params:zf({appInfo:Zh.describe(`App identification (name and version).`),appCapabilities:one.describe(`Features and capabilities this app provides.`),protocolVersion:Ud().describe(`Protocol version this app supports.`)})});var Hg=zf({protocolVersion:Ud().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Zh.describe(`Host application identification and version.`),hostCapabilities:ane.describe(`Features and capabilities provided by the host.`),hostContext:lne.describe(`Rich context about the host environment.`)}).passthrough(),Ug={target:`draft-2020-12`};async function Wg(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Ug);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Sh(),bh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function dne(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var fne=class e extends Ng{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:$te,toolinputpartial:Vg,toolresult:cne,toolcancelled:ene,hostcontextchanged:une};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||g({jitless:!0}),this.setRequestHandler(eg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Yte(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await dne(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await dne(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Wg(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Wg(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(rne,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(pte,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(ute,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},wg,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Wee,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},zee,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?Ote:Dte;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Rg,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},Kh,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Ig,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Lg,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},O,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Pg(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Xte}},Hg,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function pne({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,p.useState)(null),[s,c]=(0,p.useState)(!1),[l,u]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new Pg(window.parent,window.parent);if(s=new fne(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}var mne=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),hne=s(((e,t)=>{t.exports=mne()}));S();var k=hne();g({jitless:!0});var gne=(e,t)=>e._meta?.[t]??e.structuredContent,_ne=e=>{e?.theme&&document.documentElement.setAttribute(`data-theme`,e.theme)};async function Gg(e,t,n){let r=gne(t,n.metaKey);if(n.isPayload(r))return r;let i=t.content?.find(e=>e.type===`text`)?.text,a=gne(await e.callServerTool({name:n.viewTool,arguments:n.getViewToolArguments(JSON.parse(i??`{}`))}),n.metaKey);if(!n.isPayload(a))throw Error(n.loadErrorMessage);return a}function Kg(e){let[t,n]=(0,p.useState)(null),[r,i]=(0,p.useState)(null),[a,o]=(0,p.useState)(),{app:s,error:c}=pne({appInfo:{name:e.name,version:`1.0.0`},capabilities:{availableDisplayModes:[`inline`,`fullscreen`]},onAppCreated:t=>{t.ontoolresult=r=>{if(r.isError){i(r.content?.find(e=>e.type===`text`)?.text??e.loadErrorMessage);return}Gg(t,r,e).then(n).catch(e=>i(String(e?.message??e)))},t.onhostcontextchanged=e=>{_ne(e),o(t=>({...t,...e}))}}});return(0,p.useEffect)(()=>{let e=s?.getHostContext();_ne(e),o(e)},[s]),{app:s,payload:t,error:c?.message??r,hostContext:a}}function vne(e,t){let n=document.createElement(`style`);n.textContent=t,document.head.appendChild(n),(0,mh.createRoot)(document.getElementById(`root`)).render((0,k.jsx)(e,{}))}var qg=u(fh());function Jg(e){if(typeof e==`string`||typeof e==`number`)return``+e;let t=``;if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=Jg(e[n]))!==``&&(t+=(t&&` `)+r);else for(let n in e)e[n]&&(t+=(t&&` `)+n);return t}var yne={value:()=>{}};function Yg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Xg(n)}function Xg(e){this._=e}function Zg(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Xg.prototype=Yg.prototype={constructor:Xg,on:function(e,t){var n=this._,r=Zg(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Qg(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=$g(n[i],e.name,t);else if(t==null)for(i in n)n[i]=$g(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Xg(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Qg(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function $g(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=yne,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function bne(e){return function(){return this.matches(e)}}function e_(e){return function(t){return t.matches(e)}}var xne={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function t_(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),xne.hasOwnProperty(t)?{space:xne[t],local:e}:e}function Sne(e){let t;for(;t=e.sourceEvent;)e=t;return e}function n_(e,t){if(e=Sne(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Cne(){}function wne(e){return e==null?Cne:function(){return this.querySelector(e)}}function r_(e){typeof e!=`function`&&(e=wne(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new O_(r,this._parents)}function Tne(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ene(){return[]}function i_(e){return e==null?Ene:function(){return this.querySelectorAll(e)}}function a_(e){return function(){return Tne(e.apply(this,arguments))}}function Dne(e){e=typeof e==`function`?a_(e):i_(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new O_(r,i)}var o_=Array.prototype.find;function One(e){return function(){return o_.call(this.children,e)}}function kne(){return this.firstElementChild}function s_(e){return this.select(e==null?kne:One(typeof e==`function`?e:e_(e)))}var Ane=Array.prototype.filter;function jne(){return Array.from(this.children)}function c_(e){return function(){return Ane.call(this.children,e)}}function l_(e){return this.selectAll(e==null?jne:c_(typeof e==`function`?e:e_(e)))}function Mne(e){typeof e!=`function`&&(e=bne(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new O_(r,this._parents)}function Nne(e){return Array(e.length)}function Pne(){return new O_(this._enter||this._groups.map(Nne),this._parents)}function u_(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}u_.prototype={constructor:u_,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fne(e){return function(){return e}}function Ine(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new u_(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Lne(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new u_(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Rne(e){return e.__data__}function zne(e,t){if(!arguments.length)return Array.from(this,Rne);var n=t?Lne:Ine,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Fne(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Bne(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new O_(o,r),o._enter=s,o._exit=c,o}function Bne(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Vne(){return new O_(this._exit||this._groups.map(Nne),this._parents)}function Hne(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Une(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new O_(s,this._parents)}function Wne(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Gne(e){e||=Kne;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new O_(i,this._parents).order()}function Kne(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function d_(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f_(){return Array.from(this)}function p_(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function qne(){let e=0;for(let t of this)++e;return e}function Jne(){return!this.node()}function Yne(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Xne(e){return function(){this.removeAttribute(e)}}function Zne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qne(e,t){return function(){this.setAttribute(e,t)}}function $ne(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ere(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function tre(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function nre(e,t){var n=t_(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Zne:Xne:typeof t==`function`?n.local?tre:ere:n.local?$ne:Qne)(n,t))}function m_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function rre(e){return function(){this.style.removeProperty(e)}}function ire(e,t,n){return function(){this.style.setProperty(e,t,n)}}function are(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ore(e,t,n){return arguments.length>1?this.each((t==null?rre:typeof t==`function`?are:ire)(e,t,n??``)):h_(this.node(),e)}function h_(e,t){return e.style.getPropertyValue(t)||m_(e).getComputedStyle(e,null).getPropertyValue(t)}function sre(e){return function(){delete this[e]}}function cre(e,t){return function(){this[e]=t}}function lre(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function g_(e,t){return arguments.length>1?this.each((t==null?sre:typeof t==`function`?lre:cre)(e,t)):this.node()[e]}function ure(e){return e.trim().split(/^|\s+/)}function __(e){return e.classList||new v_(e)}function v_(e){this._node=e,this._names=ure(e.getAttribute(`class`)||``)}v_.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function dre(e,t){for(var n=__(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function fre(e,t){for(var n=__(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function pre(e){return function(){dre(this,e)}}function mre(e){return function(){fre(this,e)}}function hre(e,t){return function(){(t.apply(this,arguments)?dre:fre)(this,e)}}function y_(e,t){var n=ure(e+``);if(arguments.length<2){for(var r=__(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?hre:t?pre:mre)(n,t))}function b_(){this.textContent=``}function gre(e){return function(){this.textContent=e}}function x_(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function _re(e){return arguments.length?this.each(e==null?b_:(typeof e==`function`?x_:gre)(e)):this.node().textContent}function vre(){this.innerHTML=``}function yre(e){return function(){this.innerHTML=e}}function S_(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function bre(e){return arguments.length?this.each(e==null?vre:(typeof e==`function`?S_:yre)(e)):this.node().innerHTML}function C_(){this.nextSibling&&this.parentNode.appendChild(this)}function w_(){return this.each(C_)}function xre(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sre(){return this.each(xre)}function Cre(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function wre(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Tre(e){var t=t_(e);return(t.local?wre:Cre)(t)}function Ere(e){var t=typeof e==`function`?e:Tre(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Dre(){return null}function Ore(e,t){var n=typeof e==`function`?e:Tre(e),r=t==null?Dre:typeof t==`function`?t:wne(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function kre(){var e=this.parentNode;e&&e.removeChild(this)}function Are(){return this.each(kre)}function jre(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mre(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nre(e){return this.select(e?Mre:jre)}function Pre(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Fre(e){return function(t){e.call(this,t,this.__data__)}}function Ire(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Lre(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function T_(e,t,n){return function(){var r=this.__on,i,a=Fre(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Rre(e,t,n){var r=Ire(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?T_:Lre,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function zre(e,t,n){var r=m_(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function E_(e,t){return function(){return zre(this,e,t)}}function Bre(e,t){return function(){return zre(this,e,t.apply(this,arguments))}}function Vre(e,t){return this.each((typeof t==`function`?Bre:E_)(e,t))}function*Hre(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var D_=[null];function O_(e,t){this._groups=e,this._parents=t}function k_(){return new O_([[document.documentElement]],D_)}function Ure(){return this}O_.prototype=k_.prototype={constructor:O_,select:r_,selectAll:Dne,selectChild:s_,selectChildren:l_,filter:Mne,data:zne,enter:Pne,exit:Vne,join:Hne,merge:Une,selection:Ure,order:Wne,sort:Gne,call:d_,nodes:f_,node:p_,size:qne,empty:Jne,each:Yne,attr:nre,style:ore,property:g_,classed:y_,text:_re,html:bre,raise:w_,lower:Sre,append:Ere,insert:Ore,remove:Are,clone:Nre,datum:Pre,on:Rre,dispatch:Vre,[Symbol.iterator]:Hre};function A_(e){return typeof e==`string`?new O_([[document.querySelector(e)]],[document.documentElement]):new O_([[e]],D_)}var Wre={passive:!1},j_={capture:!0,passive:!1};function Gre(e){e.stopImmediatePropagation()}function M_(e){e.preventDefault(),e.stopImmediatePropagation()}function Kre(e){var t=e.document.documentElement,n=A_(e).on(`dragstart.drag`,M_,j_);`onselectstart`in t?n.on(`selectstart.drag`,M_,j_):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function N_(e,t){var n=e.document.documentElement,r=A_(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,M_,j_),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var P_=e=>()=>e;function F_(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}F_.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function qre(e){return!e.ctrlKey&&!e.button}function I_(){return this.parentNode}function Jre(e,t){return t??{x:e.x,y:e.y}}function Yre(){return navigator.maxTouchPoints||`ontouchstart`in this}function L_(){var e=qre,t=I_,n=Jre,r=Yre,i={},a=Yg(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,Wre).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(A_(n.view).on(`mousemove.drag`,m,j_).on(`mouseup.drag`,h,j_),Kre(n.view),Gre(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(M_(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){A_(e.view).on(`mousemove.drag mouseup.drag`,null),N_(e.view,l),M_(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(Gre(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(M_(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(Gre(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=n_(l||r,t),p,m,h;if((h=n.call(e,new F_(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=n_(l||a,t),_=o;break}u.call(r,e,new F_(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:P_(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:P_(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:P_(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:P_(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function R_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function z_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function B_(){}var V_=.7,H_=1/V_,U_=`\\s*([+-]?\\d+)\\s*`,W_=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,A=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,G_=/^#([0-9a-f]{3,8})$/,Xre=RegExp(`^rgb\\(${U_},${U_},${U_}\\)$`),Zre=RegExp(`^rgb\\(${A},${A},${A}\\)$`),K_=RegExp(`^rgba\\(${U_},${U_},${U_},${W_}\\)$`),q_=RegExp(`^rgba\\(${A},${A},${A},${W_}\\)$`),Qre=RegExp(`^hsl\\(${W_},${A},${A}\\)$`),J_=RegExp(`^hsla\\(${W_},${A},${A},${W_}\\)$`),Y_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};R_(B_,$_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:X_,formatHex:X_,formatHex8:Z_,formatHsl:$re,formatRgb:Q_,toString:Q_});function X_(){return this.rgb().formatHex()}function Z_(){return this.rgb().formatHex8()}function $re(){return uv(this).formatHsl()}function Q_(){return this.rgb().formatRgb()}function $_(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=G_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ev(t):n===3?new iv(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Xre.exec(e))?new iv(t[1],t[2],t[3],1):(t=Zre.exec(e))?new iv(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=K_.exec(e))?tv(t[1],t[2],t[3],t[4]):(t=q_.exec(e))?tv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qre.exec(e))?lv(t[1],t[2]/100,t[3]/100,1):(t=J_.exec(e))?lv(t[1],t[2]/100,t[3]/100,t[4]):Y_.hasOwnProperty(e)?ev(Y_[e]):e===`transparent`?new iv(NaN,NaN,NaN,0):null}function ev(e){return new iv(e>>16&255,e>>8&255,e&255,1)}function tv(e,t,n,r){return r<=0&&(e=t=n=NaN),new iv(e,t,n,r)}function nv(e){return e instanceof B_||(e=$_(e)),e?(e=e.rgb(),new iv(e.r,e.g,e.b,e.opacity)):new iv}function rv(e,t,n,r){return arguments.length===1?nv(e):new iv(e,t,n,r??1)}function iv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}R_(iv,rv,z_(B_,{brighter(e){return e=e==null?H_:H_**+e,new iv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?V_:V_**+e,new iv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new iv(sv(this.r),sv(this.g),sv(this.b),ov(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eie,formatHex:eie,formatHex8:tie,formatRgb:av,toString:av}));function eie(){return`#${cv(this.r)}${cv(this.g)}${cv(this.b)}`}function tie(){return`#${cv(this.r)}${cv(this.g)}${cv(this.b)}${cv((isNaN(this.opacity)?1:this.opacity)*255)}`}function av(){let e=ov(this.opacity);return`${e===1?`rgb(`:`rgba(`}${sv(this.r)}, ${sv(this.g)}, ${sv(this.b)}${e===1?`)`:`, ${e})`}`}function ov(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cv(e){return e=sv(e),(e<16?`0`:``)+e.toString(16)}function lv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fv(e,t,n,r)}function uv(e){if(e instanceof fv)return new fv(e.h,e.s,e.l,e.opacity);if(e instanceof B_||(e=$_(e)),!e)return new fv;if(e instanceof fv)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new fv(o,s,c,e.opacity)}function dv(e,t,n,r){return arguments.length===1?uv(e):new fv(e,t,n,r??1)}function fv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}R_(fv,dv,z_(B_,{brighter(e){return e=e==null?H_:H_**+e,new fv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?V_:V_**+e,new fv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new iv(hv(e>=240?e-240:e+120,i,r),hv(e,i,r),hv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new fv(pv(this.h),mv(this.s),mv(this.l),ov(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ov(this.opacity);return`${e===1?`hsl(`:`hsla(`}${pv(this.h)}, ${mv(this.s)*100}%, ${mv(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function pv(e){return e=(e||0)%360,e<0?e+360:e}function mv(e){return Math.max(0,Math.min(1,e||0))}function hv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var gv=e=>()=>e;function nie(e,t){return function(n){return e+n*t}}function rie(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function iie(e){return(e=+e)==1?aie:function(t,n){return n-t?rie(t,n,e):gv(isNaN(t)?n:t)}}function aie(e,t){var n=t-e;return n?nie(e,n):gv(isNaN(e)?t:e)}var _v=(function e(t){var n=iie(t);function r(e,t){var r=n((e=rv(e)).r,(t=rv(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=aie(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function vv(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function yv(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bv(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=Tv(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function xv(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Sv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oie(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Tv(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Cv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wv=new RegExp(Cv.source,`g`);function sie(e){return function(){return e}}function cie(e){return function(t){return e(t)+``}}function lie(e,t){var n=Cv.lastIndex=wv.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Cv.exec(e))&&(i=wv.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Sv(r,i)})),n=wv.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?cie(c[0].x):sie(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Tv(e,t){var n=typeof t,r;return t==null||n===`boolean`?gv(t):(n===`number`?Sv:n===`string`?(r=$_(t))?(t=r,_v):lie:t instanceof $_?_v:t instanceof Date?xv:yv(t)?vv:Array.isArray(t)?bv:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?oie:Sv)(e,t)}var uie=180/Math.PI,die={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fie(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*uie,skewX:Math.atan(c)*uie,scaleX:o,scaleY:s}}var pie;function Ev(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?die:fie(t.a,t.b,t.c,t.d,t.e,t.f)}function j(e){return e==null||(pie||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),pie.setAttribute(`transform`,e),!(e=pie.transform.baseVal.consolidate()))?die:(e=e.matrix,fie(e.a,e.b,e.c,e.d,e.e,e.f))}function mie(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Sv(e,i)},{i:c-2,x:Sv(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Sv(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Sv(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Sv(e,n)},{i:s-2,x:Sv(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var hie=mie(Ev,`px, `,`px)`,`deg)`),gie=mie(j,`, `,`)`,`)`),_ie=1e-12;function vie(e){return((e=Math.exp(e))+1/e)/2}function yie(e){return((e=Math.exp(e))-1/e)/2}function bie(e){return((e=Math.exp(2*e))-1)/(e+1)}var Dv=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<_ie)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=vie(y),c=s/(n*g)*(i*bie(t*r+y)-yie(y));return[a+c*d,o+c*f,s*i/vie(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Ov=0,kv=0,Av=0,xie=1e3,jv,Mv,Nv=0,Pv=0,Fv=0,Iv=typeof performance==`object`&&performance.now?performance:Date,Sie=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cie(){return Pv||=(Sie(wie),Iv.now()+Fv)}function wie(){Pv=0}function Lv(){this._call=this._time=this._next=null}Lv.prototype=Tie.prototype={constructor:Lv,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Cie():+n)+(t==null?0:+t),!this._next&&Mv!==this&&(Mv?Mv._next=this:jv=this,Mv=this),this._call=e,this._time=n,Bv()},stop:function(){this._call&&(this._call=null,this._time=1/0,Bv())}};function Tie(e,t,n){var r=new Lv;return r.restart(e,t,n),r}function Eie(){Cie(),++Ov;for(var e=jv,t;e;)(t=Pv-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ov}function Die(){Pv=(Nv=Iv.now())+Fv,Ov=kv=0;try{Eie()}finally{Ov=0,zv(),Pv=0}}function Rv(){var e=Iv.now(),t=e-Nv;t>xie&&(Fv-=t,Nv=e)}function zv(){for(var e,t=jv,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:jv=n);Mv=e,Bv(r)}function Bv(e){Ov||(kv&&=clearTimeout(kv),e-Pv>24?(e<1/0&&(kv=setTimeout(Die,e-Iv.now()-Fv)),Av&&=clearInterval(Av)):(Av||=(Nv=Iv.now(),setInterval(Rv,xie)),Ov=1,Sie(Die)))}function Vv(e,t,n){var r=new Lv;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Hv=Yg(`start`,`end`,`cancel`,`interrupt`),Oie=[];function Uv(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;qv(e,n,{name:t,index:r,group:i,on:Hv,tween:Oie,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Wv(e,t){var n=Kv(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Gv(e,t){var n=Kv(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Kv(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function qv(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Tie(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Vv(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Vv(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Jv(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Yv(e){return this.each(function(){Jv(this,e)})}function kie(e,t){var n,r;return function(){var i=Gv(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Xv(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Gv(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Zv(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Kv(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?kie:Xv)(n,e,t))}function Qv(e,t,n){var r=e._id;return e.each(function(){var e=Gv(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Kv(e,r).value[t]}}function $v(e,t){var n;return(typeof t==`number`?Sv:t instanceof $_?_v:(n=$_(t))?(t=n,_v):lie)(e,t)}function Aie(e){return function(){this.removeAttribute(e)}}function jie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ey(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Mie(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Nie(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pie(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function ty(e,t){var n=t_(e),r=n===`transform`?gie:$v;return this.attrTween(e,typeof t==`function`?(n.local?Pie:Nie)(n,r,Qv(this,`attr.`+e,t)):t==null?(n.local?jie:Aie)(n):(n.local?Mie:ey)(n,r,t))}function ny(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Fie(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Iie(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fie(e,i)),n}return i._value=t,i}function Lie(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ny(e,i)),n}return i._value=t,i}function Rie(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=t_(e);return this.tween(n,(r.local?Iie:Lie)(r,t))}function zie(e,t){return function(){Wv(this,e).delay=+t.apply(this,arguments)}}function Bie(e,t){return t=+t,function(){Wv(this,e).delay=t}}function Vie(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?zie:Bie)(t,e)):Kv(this.node(),t).delay}function ry(e,t){return function(){Gv(this,e).duration=+t.apply(this,arguments)}}function Hie(e,t){return t=+t,function(){Gv(this,e).duration=t}}function iy(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ry:Hie)(t,e)):Kv(this.node(),t).duration}function Uie(e,t){if(typeof t!=`function`)throw Error();return function(){Gv(this,e).ease=t}}function Wie(e){var t=this._id;return arguments.length?this.each(Uie(t,e)):Kv(this.node(),t).ease}function Gie(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Gv(this,e).ease=n}}function Kie(e){if(typeof e!=`function`)throw Error();return this.each(Gie(this._id,e))}function qie(e){typeof e!=`function`&&(e=bne(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new _y(r,this._parents,this._name,this._id)}function Jie(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new _y(o,this._parents,this._name,this._id)}function ay(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Yie(e,t,n){var r,i,a=ay(t)?Wv:Gv;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function oy(e,t){var n=this._id;return arguments.length<2?Kv(this.node(),n).on.on(e):this.each(Yie(n,e,t))}function Xie(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Zie(){return this.on(`end.remove`,Xie(this._id))}function sy(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=wne(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Uv(l[f],t,n,f,l,Kv(u,n)));return new _y(a,this._parents,t,n)}function cy(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=i_(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Kv(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Uv(p,t,n,h,f,m);a.push(f),o.push(u)}return new _y(a,o,t,n)}var ly=k_.prototype.constructor;function uy(){return new ly(this._groups,this._parents)}function dy(e,t){var n,r,i;return function(){var a=h_(this,e),o=(this.style.removeProperty(e),h_(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function fy(e){return function(){this.style.removeProperty(e)}}function Qie(e,t,n){var r,i=n+``,a;return function(){var o=h_(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function $ie(e,t,n){var r,i,a;return function(){var o=h_(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),h_(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function eae(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Gv(this,e),l=c.on,u=c.value[a]==null?s||=fy(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function tae(e,t,n){var r=(e+=``)==`transform`?hie:$v;return t==null?this.styleTween(e,dy(e,r)).on(`end.style.`+e,fy(e)):typeof t==`function`?this.styleTween(e,$ie(e,r,Qv(this,`style.`+e,t))).each(eae(this._id,e)):this.styleTween(e,Qie(e,r,t),n).on(`end.style.`+e,null)}function nae(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function rae(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&nae(e,a,n)),r}return a._value=t,a}function py(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,rae(e,t,n??``))}function my(e){return function(){this.textContent=e}}function iae(e){return function(){var t=e(this);this.textContent=t??``}}function aae(e){return this.tween(`text`,typeof e==`function`?iae(Qv(this,`text`,e)):my(e==null?``:e+``))}function oae(e){return function(t){this.textContent=e.call(this,t)}}function sae(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&oae(r)),t}return r._value=e,r}function cae(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,sae(e))}function hy(){for(var e=this._name,t=this._id,n=dae(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Kv(c,t);Uv(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new _y(r,this._parents,e,n)}function lae(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Gv(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var gy=0;function _y(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function uae(e){return k_().transition(e)}function dae(){return++gy}var vy=k_.prototype;_y.prototype=uae.prototype={constructor:_y,select:sy,selectAll:cy,selectChild:vy.selectChild,selectChildren:vy.selectChildren,filter:qie,merge:Jie,selection:uy,transition:hy,call:vy.call,nodes:vy.nodes,node:vy.node,size:vy.size,empty:vy.empty,each:vy.each,on:oy,attr:ty,attrTween:Rie,style:tae,styleTween:py,text:aae,textTween:cae,remove:Zie,tween:Zv,delay:Vie,duration:iy,ease:Wie,easeVarying:Kie,end:lae,[Symbol.iterator]:vy[Symbol.iterator]};function fae(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var pae={time:null,delay:0,duration:250,ease:fae};function mae(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function hae(e){var t,n;e instanceof _y?(t=e._id,e=e._name):(t=dae(),(n=pae).time=Cie(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Uv(c,e,t,l,o,n||mae(c,t));return new _y(r,this._parents,e,t)}k_.prototype.interrupt=Yv,k_.prototype.transition=hae;var yy=e=>()=>e;function gae(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function by(e,t,n){this.k=e,this.x=t,this.y=n}by.prototype={constructor:by,scale:function(e){return e===1?this:new by(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new by(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var xy=new by(1,0,0);_ae.prototype=by.prototype;function _ae(e){for(;!e.__zoom;)if(!(e=e.parentNode))return xy;return e.__zoom}function vae(e){e.stopImmediatePropagation()}function Sy(e){e.preventDefault(),e.stopImmediatePropagation()}function yae(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function bae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function xae(){return this.__zoom||xy}function Cy(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Sae(){return navigator.maxTouchPoints||`ontouchstart`in this}function wy(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ty(){var e=yae,t=bae,n=wy,r=Cy,i=Sae,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Dv,l=Yg(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,xae).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,ee).on(`touchmove.zoom`,te).on(`touchend.zoom touchcancel.zoom`,ne).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,xae),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(xy.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new by(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new by(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new by(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=A_(this.that).datum();l.call(e,this.that,new gae(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=n_(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Jv(this),s.start();Sy(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=A_(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=n_(t,i),l=t.clientX,u=t.clientY;Kre(t.view),vae(t),a.mouse=[c,this.__zoom.invert(c)],Jv(this),a.start();function d(e){if(Sy(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=n_(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),N_(e.view,a.moved),Sy(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=n_(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Sy(r),s>0?A_(this).transition().duration(s).call(x,d,c,r):A_(this).call(_.transform,d,c,r)}}function ee(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(vae(t),s=0;s<i;++s)c=r[s],l=n_(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Jv(this),a.start())}}function te(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Sy(e),s=0;s<a;++s)c=i[s],l=n_(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ne(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(vae(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=n_(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=A_(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:yy(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:yy(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:yy(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:yy([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ey={error001:(e=`react`)=>`Seems like you have not used ${e===`svelte`?`SvelteFlowProvider`:`ReactFlowProvider`} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>`It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.`,error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>`The parent container needs a width and a height to render the graph.`,error005:()=>`Only child nodes can use a parent extent.`,error006:()=>`Can't create edge. An edge needs a source and a target.`,error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e===`source`?n:r}", edge id: ${t}.`,error010:()=>`Handle: No node id found. Make sure to only use a Handle inside a custom Node.`,error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e=`react`)=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>`useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.`,error015:()=>`It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.`,error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},Dy=[[-1/0,-1/0],[1/0,1/0]],Oy=[`Enter`,` `,`Escape`],ky={"node.a11yDescription.default":`Press enter or space to select a node. Press delete to remove it and escape to cancel.`,"node.a11yDescription.keyboardDisabled":`Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.`,"node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":`Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.`,"controls.ariaLabel":`Control Panel`,"controls.zoomIn.ariaLabel":`Zoom In`,"controls.zoomOut.ariaLabel":`Zoom Out`,"controls.fitView.ariaLabel":`Fit View`,"controls.interactive.ariaLabel":`Toggle Interactivity`,"minimap.ariaLabel":`Mini Map`,"handle.ariaLabel":`Handle`},Ay;(function(e){e.Strict=`strict`,e.Loose=`loose`})(Ay||={});var jy;(function(e){e.Free=`free`,e.Vertical=`vertical`,e.Horizontal=`horizontal`})(jy||={});var My;(function(e){e.Partial=`partial`,e.Full=`full`})(My||={});var Cae={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},Ny;(function(e){e.Bezier=`default`,e.Straight=`straight`,e.Step=`step`,e.SmoothStep=`smoothstep`,e.SimpleBezier=`simplebezier`})(Ny||={});var Py;(function(e){e.Arrow=`arrow`,e.ArrowClosed=`arrowclosed`})(Py||={});var Fy;(function(e){e.Left=`left`,e.Top=`top`,e.Right=`right`,e.Bottom=`bottom`})(Fy||={});var Iy={[Fy.Left]:Fy.Right,[Fy.Right]:Fy.Left,[Fy.Top]:Fy.Bottom,[Fy.Bottom]:Fy.Top},Ly=e=>!!e&&typeof e==`object`&&`id`in e&&`source`in e&&`target`in e,wae=e=>!!e&&typeof e==`object`&&`id`in e&&`position`in e&&!(`source`in e)&&!(`target`in e),Ry=e=>!!e&&typeof e==`object`&&`id`in e&&`internals`in e&&!(`source`in e)&&!(`target`in e),zy=(e,t=[0,0])=>{let{width:n,height:r}=fb(e),i=e.origin??t,a=n*i[0],o=r*i[1];return{x:e.position.x-a,y:e.position.y-o}},By=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=!1,r=e.reduce((e,r)=>{let i=typeof r==`string`,a=!t.nodeLookup&&!i?r:void 0;return t.nodeLookup&&(a=i?t.nodeLookup.get(r):Ry(r)?r:t.nodeLookup.get(r.id)),a?(n=!0,Yy(e,$y(a,t.nodeOrigin))):e},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return n?Zy(r):{x:0,y:0,width:0,height:0}},Vy=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(t.filter===void 0||t.filter(e))&&(n=Yy(n,$y(e)),r=!0)}),r?Zy(n):{x:0,y:0,width:0,height:0}},Hy=(e,t,[n,r,i]=[0,0,1],a=!1,o=!1)=>{let s=(t.x-n)/i,c=(t.y-r)/i,l=t.width/i,u=t.height/i,d=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(o&&!n||r)continue;let i=e.width??t.width??t.initialWidth??0,f=e.height??t.height??t.initialHeight??0,{x:p,y:m}=t.internals.positionAbsolute,h=eb(s,c,l,u,p,m,i,f),g=i*f,_=a&&h>0;(!t.internals.handleBounds||_||h>=g||t.dragging)&&d.push(t)}return d},Uy=(e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))};function Tae(e,t){let n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{let i;if(t?.includeHiddenNodes){let{width:t,height:n}=fb(e);i=t>0&&n>0}else i=!!(e.measured.width&&e.measured.height&&!e.hidden);i&&(!r||r.has(e.id))&&n.set(e.id,e)}),n}async function Wy({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},o){if(e.size===0)return!0;let s=lb(Vy(Tae(e,o)),t,n,o?.minZoom??i,o?.maxZoom??a,o?.padding??.1);return await r.setViewport(s,{duration:o?.duration,ease:o?.ease,interpolate:o?.interpolate}),!0}function Gy({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){let o=n.get(e),s=o.parentId?n.get(o.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},u=o.origin??r,d=o.extent||i;if(o.extent===`parent`&&!o.expandParent)if(!s)a?.(`005`,Ey.error005());else{let{width:e,height:t}=fb(s);e&&t&&(d=[[c,l],[c+e,l+t]])}else s&&db(o.extent)&&(d=[[o.extent[0][0]+c,o.extent[0][1]+l],[o.extent[1][0]+c,o.extent[1][1]+l]]);let f=db(d)?qy(t,d,o.measured):t;return(o.measured.width===void 0||o.measured.height===void 0)&&a?.(`015`,Ey.error015()),{position:{x:f.x-c+(o.measured.width??0)*u[0],y:f.y-l+(o.measured.height??0)*u[1]},positionAbsolute:f}}async function Eae({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let a=new Set(e.map(e=>e.id)),o=[];for(let e of n){if(e.deletable===!1)continue;let t=a.has(e.id),n=!t&&e.parentId&&o.find(t=>t.id===e.parentId);(t||n)&&o.push(e)}let s=new Set(t.map(e=>e.id)),c=r.filter(e=>e.deletable!==!1),l=Uy(o,c);for(let e of c)s.has(e.id)&&!l.find(t=>t.id===e.id)&&l.push(e);if(!i)return{edges:l,nodes:o};let u=await i({nodes:o,edges:l});return typeof u==`boolean`?u?{edges:l,nodes:o}:{edges:[],nodes:[]}:u}var Ky=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),qy=(e={x:0,y:0},t,n)=>({x:Ky(e.x,t[0][0],t[1][0]-(n?.width??0)),y:Ky(e.y,t[0][1],t[1][1]-(n?.height??0))});function Dae(e,t,n){let{width:r,height:i}=fb(n),{x:a,y:o}=n.internals.positionAbsolute;return qy(e,[[a,o],[a+r,o+i]],t)}var Oae=(e,t,n)=>e<t?Ky(Math.abs(e-t),1,t)/t:e>n?-Ky(Math.abs(e-n),1,t)/t:0,Jy=(e,t,n=15,r=40)=>[Oae(e.x,r,t.width-r)*n,Oae(e.y,r,t.height-r)*n],Yy=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Xy=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Zy=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Qy=(e,t=[0,0])=>{let{x:n,y:r}=Ry(e)?e.internals.positionAbsolute:zy(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},$y=(e,t=[0,0])=>{let{x:n,y:r}=Ry(e)?e.internals.positionAbsolute:zy(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},kae=(e,t)=>Zy(Yy(Xy(e),Xy(t))),eb=(e,t,n,r,i,a,o,s)=>{let c=Math.max(0,Math.min(e+n,i+o)-Math.max(e,i)),l=Math.max(0,Math.min(t+r,a+s)-Math.max(t,a));return Math.ceil(c*l)},tb=(e,t)=>eb(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),nb=e=>rb(e.width)&&rb(e.height)&&rb(e.x)&&rb(e.y),rb=e=>!isNaN(e)&&isFinite(e),Aae=(e,t)=>(e,t)=>{},ib=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),ab=({x:e,y:t},[n,r,i],a=!1,o=[1,1])=>{let s={x:(e-n)/i,y:(t-r)/i};return a?ib(s,o):s},ob=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function sb(e,t){if(typeof e==`number`)return Math.floor((t-t/(1+e))*.5);if(typeof e==`string`&&e.endsWith(`px`)){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e==`string`&&e.endsWith(`%`)){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function jae(e,t,n){if(typeof e==`string`||typeof e==`number`){let r=sb(e,n),i=sb(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e==`object`){let r=sb(e.top??e.y??0,n),i=sb(e.bottom??e.y??0,n),a=sb(e.left??e.x??0,t),o=sb(e.right??e.x??0,t);return{top:r,right:o,bottom:i,left:a,x:a+o,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function cb(e,t,n,r,i,a){let{x:o,y:s}=ob(e,[t,n,r]),{x:c,y:l}=ob({x:e.x+e.width,y:e.y+e.height},[t,n,r]),u=i-c,d=a-l;return{left:Math.floor(o),top:Math.floor(s),right:Math.floor(u),bottom:Math.floor(d)}}var lb=(e,t,n,r,i,a)=>{let o=jae(a,t,n),s=(t-o.x)/e.width,c=(n-o.y)/e.height,l=Ky(Math.min(s,c),r,i),u=e.x+e.width/2,d=e.y+e.height/2,f=t/2-u*l,p=n/2-d*l,m=cb(e,f,p,l,t,n),h={left:Math.min(m.left-o.left,0),top:Math.min(m.top-o.top,0),right:Math.min(m.right-o.right,0),bottom:Math.min(m.bottom-o.bottom,0)};return{x:f-h.left+h.right,y:p-h.top+h.bottom,zoom:l}},ub=()=>typeof navigator<`u`&&navigator?.userAgent?.indexOf(`Mac`)>=0;function db(e){return e!=null&&e!==`parent`}function fb(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function pb(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function mb(e,t={width:0,height:0},n,r,i){let a={...e},o=r.get(n);if(o){let e=o.origin||i;a.x+=o.internals.positionAbsolute.x-(t.width??0)*e[0],a.y+=o.internals.positionAbsolute.y-(t.height??0)*e[1]}return a}function hb(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function gb(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function _b(e){return{...ky,...e||{}}}function Mae(e,t){if(!e&&!t)return!0;if(!e||!t||e.size!==t.size)return!1;if(!e.size&&!t.size)return!0;for(let n of e.keys())if(!t.has(n))return!1;return!0}function vb(e,t,n){if(!n)return;let r=[];e.forEach((e,n)=>{t?.has(n)||r.push(e)}),r.length&&n(r)}function Nae(e){return e===null?null:e?`valid`:`invalid`}function yb(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:a,y:o}=Sb(e),s=ab({x:a-(i?.left??0),y:o-(i?.top??0)},r),{x:c,y:l}=n?ib(s,t):s;return{xSnapped:c,ySnapped:l,...s}}var bb=e=>({width:e.offsetWidth,height:e.offsetHeight}),xb=e=>e?.getRootNode?.()||window?.document,Pae=[`INPUT`,`SELECT`,`TEXTAREA`];function Fae(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1?Pae.includes(t.nodeName)||t.hasAttribute(`contenteditable`)||!!t.closest(`.nokey`):!1}var Iae=e=>`clientX`in e,Sb=(e,t)=>{let n=Iae(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},Lae=(e,t,n,r,i)=>{let a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute(`data-handleid`),type:e,nodeId:i,position:t.getAttribute(`data-handlepos`),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...bb(t)}})};function Rae({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:s}){let c=e*.125+i*.375+o*.375+n*.125,l=t*.125+a*.375+s*.375+r*.125;return[c,l,Math.abs(c-e),Math.abs(l-t)]}function Cb(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function wb({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case Fy.Left:return[t-Cb(t-r,a),n];case Fy.Right:return[t+Cb(r-t,a),n];case Fy.Top:return[t,n-Cb(n-i,a)];case Fy.Bottom:return[t,n+Cb(i-n,a)]}}function Tb({sourceX:e,sourceY:t,sourcePosition:n=Fy.Bottom,targetX:r,targetY:i,targetPosition:a=Fy.Top,curvature:o=.25}){let[s,c]=wb({pos:n,x1:e,y1:t,x2:r,y2:i,c:o}),[l,u]=wb({pos:a,x1:r,y1:i,x2:e,y2:t,c:o}),[d,f,p,m]=Rae({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,d,f,p,m]}function Eb({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,a=n<e?n+i:n-i,o=Math.abs(r-t)/2;return[a,r<t?r+o:r-o,i,o]}function Db({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a=`basic`}){return a===`manual`?r:(i&&n?r+1e3:r)+Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0)}function Ob({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let a=Yy($y(e),$y(t));return a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1),tb({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},Zy(a))>0}var zae=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||``}-${n}${r||``}`,Bae=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),Vae=(e,t,n={})=>{if(!e.source||!e.target)return n.onError?.(`006`,Ey.error006()),t;let r=n.getEdgeId||zae,i;return i=Ly(e)?{...e}:{...e,id:r(e)},Bae(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function Hae({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,a,o,s]=Eb({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,o,s]}var kb={[Fy.Left]:{x:-1,y:0},[Fy.Right]:{x:1,y:0},[Fy.Top]:{x:0,y:-1},[Fy.Bottom]:{x:0,y:1}},Uae=({source:e,sourcePosition:t=Fy.Bottom,target:n})=>t===Fy.Left||t===Fy.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Ab=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2);function Wae({source:e,sourcePosition:t=Fy.Bottom,target:n,targetPosition:r=Fy.Top,center:i,offset:a,stepPosition:o}){let s=kb[t],c=kb[r],l={x:e.x+s.x*a,y:e.y+s.y*a},u={x:n.x+c.x*a,y:n.y+c.y*a},d=Uae({source:l,sourcePosition:t,target:u}),f=d.x===0?`y`:`x`,p=d[f],m=[],h,g,_={x:0,y:0},v={x:0,y:0},[,,y,b]=Eb({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f===`x`?(h=i.x??l.x+(u.x-l.x)*o,g=i.y??(l.y+u.y)/2):(h=i.x??(l.x+u.x)/2,g=i.y??l.y+(u.y-l.y)*o);let e=[{x:h,y:l.y},{x:h,y:u.y}],t=[{x:l.x,y:g},{x:u.x,y:g}];m=s[f]===p?f===`x`?e:t:f===`x`?t:e}else{let i=[{x:l.x,y:u.y}],o=[{x:u.x,y:l.y}];if(m=f===`x`?s.x===p?o:i:s.y===p?i:o,t===r){let t=Math.abs(e[f]-n[f]);if(t<=a){let r=Math.min(a-1,a-t);s[f]===p?_[f]=(l[f]>e[f]?-1:1)*r:v[f]=(u[f]>n[f]?-1:1)*r}}if(t!==r){let e=f===`x`?`y`:`x`,t=s[f]===c[e],n=l[e]>u[e],r=l[e]<u[e];(s[f]===1&&(!t&&n||t&&r)||s[f]!==1&&(!t&&r||t&&n))&&(m=f===`x`?i:o)}let d={x:l.x+_.x,y:l.y+_.y},y={x:u.x+v.x,y:u.y+v.y};Math.max(Math.abs(d.x-m[0].x),Math.abs(y.x-m[0].x))>=Math.max(Math.abs(d.y-m[0].y),Math.abs(y.y-m[0].y))?(h=(d.x+y.x)/2,g=m[0].y):(h=m[0].x,g=(d.y+y.y)/2)}let x={x:l.x+_.x,y:l.y+_.y},S={x:u.x+v.x,y:u.y+v.y};return[[e,...x.x!==m[0].x||x.y!==m[0].y?[x]:[],...m,...S.x!==m[m.length-1].x||S.y!==m[m.length-1].y?[S]:[],n],h,g,y,b]}function jb(e,t,n,r){let i=Math.min(Ab(e,t)/2,Ab(t,n)/2,r),{x:a,y:o}=t;if(e.x===a&&a===n.x||e.y===o&&o===n.y)return`L${a} ${o}`;if(e.y===o){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${a+i*t},${o}Q ${a},${o} ${a},${o+i*r}`}let s=e.x<n.x?1:-1;return`L ${a},${o+i*(e.y<n.y?-1:1)}Q ${a},${o} ${a+i*s},${o}`}function Mb({sourceX:e,sourceY:t,sourcePosition:n=Fy.Bottom,targetX:r,targetY:i,targetPosition:a=Fy.Top,borderRadius:o=5,centerX:s,centerY:c,offset:l=20,stepPosition:u=.5}){let[d,f,p,m,h]=Wae({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:s,y:c},offset:l,stepPosition:u}),g=`M${d[0].x} ${d[0].y}`;for(let e=1;e<d.length-1;e++)g+=jb(d[e-1],d[e],d[e+1],o);return g+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[g,f,p,m,h]}function Nb(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Pb(e){let{sourceNode:t,targetNode:n}=e;if(!Nb(t)||!Nb(n))return null;let r=t.internals.handleBounds||Fb(t.handles),i=n.internals.handleBounds||Fb(n.handles),a=Lb(r?.source??[],e.sourceHandle),o=Lb(e.connectionMode===Ay.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!a||!o)return e.onError?.(`008`,Ey.error008(a?`target`:`source`,{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let s=a?.position||Fy.Bottom,c=o?.position||Fy.Top,l=Ib(t,a,s),u=Ib(n,o,c);return{sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y,sourcePosition:s,targetPosition:c}}function Fb(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,r.type===`source`?t.push(r):r.type===`target`&&n.push(r);return{source:t,target:n}}function Ib(e,t,n=Fy.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,a=(t?.y??0)+e.internals.positionAbsolute.y,{width:o,height:s}=t??fb(e);if(r)return{x:i+o/2,y:a+s/2};switch(t?.position??n){case Fy.Top:return{x:i+o/2,y:a};case Fy.Right:return{x:i+o,y:a+s/2};case Fy.Bottom:return{x:i+o/2,y:a+s};case Fy.Left:return{x:i,y:a+s/2}}}function Lb(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function Rb(e,t){return e?typeof e==`string`?e:`${t?`${t}__`:``}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join(`&`)}`:``}function zb(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let a=new Set;return e.reduce((e,o)=>([o.markerStart||r,o.markerEnd||i].forEach(r=>{if(r&&typeof r==`object`){let i=Rb(r,t);a.has(i)||(e.push({id:i,color:r.color||n,...r}),a.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}function Gae(e,t,n,r,i){let a=.5;i===`start`?a=0:i===`end`&&(a=1);let o=[(e.x+e.width*a)*t.zoom+t.x,e.y*t.zoom+t.y-r],s=[-100*a,-100];switch(n){case Fy.Right:o=[(e.x+e.width)*t.zoom+t.x+r,(e.y+e.height*a)*t.zoom+t.y],s=[0,-100*a];break;case Fy.Bottom:o[1]=(e.y+e.height)*t.zoom+t.y+r,s[1]=0;break;case Fy.Left:o=[e.x*t.zoom+t.x-r,(e.y+e.height*a)*t.zoom+t.y],s=[-100,-100*a];break}return`translate(${o[0]}px, ${o[1]}px) translate(${s[0]}%, ${s[1]}%)`}var Kae=1e3,qae=10,Jae={nodeOrigin:[0,0],nodeExtent:Dy,elevateNodesOnSelect:!0,zIndexMode:`basic`,defaults:{}},Yae={...Jae,checkEquality:!0};function Xae(e,t){let n={...e};for(let e in t)t[e]!==void 0&&(n[e]=t[e]);return n}function Bb(e,t,n){let r=Xae(Jae,n);for(let n of e.values())if(n.parentId)$ae(n,e,t,r);else{let e=qy(zy(n,r.nodeOrigin),db(n.extent)?n.extent:r.nodeExtent,fb(n));n.internals.positionAbsolute=e}}function Vb(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};t.type===`source`?n.push(i):t.type===`target`&&r.push(i)}return{source:n,target:r}}function Hb(e){return e===`manual`}function Zae(e,t,n,r={}){let i=Xae(Yae,r),a={i:0},o=new Map(t),s=i?.elevateNodesOnSelect&&!Hb(i.zIndexMode)?Kae:0,c=e.length>0,l=!1;t.clear(),n.clear();for(let u of e){let e=o.get(u.id);if(i.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{let n=qy(zy(u,i.nodeOrigin),db(u.extent)?u.extent:i.nodeExtent,fb(u));e={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:n,handleBounds:Vb(u,e),z:eoe(u,s,i.zIndexMode),userNode:u}},t.set(u.id,e)}(e.measured===void 0||e.measured.width===void 0||e.measured.height===void 0)&&!e.hidden&&(c=!1),u.parentId&&$ae(e,t,n,r,a),l||=u.selected??!1}return{nodesInitialized:c,hasSelectedNodes:l}}function Qae(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function $ae(e,t,n,r,i){let{elevateNodesOnSelect:a,nodeOrigin:o,nodeExtent:s,zIndexMode:c}=Xae(Jae,r),l=e.parentId,u=t.get(l);if(!u){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}Qae(e,n),i&&!u.parentId&&u.internals.rootParentIndex===void 0&&c===`auto`&&(u.internals.rootParentIndex=++i.i,u.internals.z=u.internals.z+i.i*qae),i&&u.internals.rootParentIndex!==void 0&&(i.i=u.internals.rootParentIndex);let{x:d,y:f,z:p}=toe(e,u,o,s,a&&!Hb(c)?Kae:0,c),{positionAbsolute:m}=e.internals,h=d!==m.x||f!==m.y;(h||p!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:h?{x:d,y:f}:m,z:p}})}function eoe(e,t,n){let r=rb(e.zIndex)?e.zIndex:0;return Hb(n)?r:r+(e.selected?t:0)}function toe(e,t,n,r,i,a){let{x:o,y:s}=t.internals.positionAbsolute,c=fb(e),l=zy(e,n),u=db(e.extent)?qy(l,e.extent,c):l,d=qy({x:o+u.x,y:s+u.y},r,c);e.extent===`parent`&&(d=Dae(d,c,t));let f=eoe(e,i,a),p=t.internals.z??0;return{x:d.x,y:d.y,z:p>=f?p+1:f}}function Ub(e,t,n,r=[0,0]){let i=[],a=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=kae(a.get(n.parentId)?.expandedRect??Qy(e),n.rect);a.set(n.parentId,{expandedRect:r,parent:e})}return a.size>0&&a.forEach(({expandedRect:t,parent:a},o)=>{let s=a.internals.positionAbsolute,c=fb(a),l=a.origin??r,u=t.x<s.x?Math.round(Math.abs(s.x-t.x)):0,d=t.y<s.y?Math.round(Math.abs(s.y-t.y)):0,f=Math.max(c.width,Math.round(t.width)),p=Math.max(c.height,Math.round(t.height)),m=(f-c.width)*l[0],h=(p-c.height)*l[1];(u>0||d>0||m||h)&&(i.push({id:o,type:`position`,position:{x:a.position.x-u+m,y:a.position.y-d+h}}),n.get(o)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:`position`,position:{x:t.position.x+u,y:t.position.y+d}})})),(c.width<t.width||c.height<t.height||u||d)&&i.push({id:o,type:`dimensions`,setAttributes:!0,dimensions:{width:f+(u?l[0]*u-m:0),height:p+(d?l[1]*d-h:0)}})}),i}function noe(e,t,n,r,i,a,o){let s=r?.querySelector(`.xyflow__viewport`),c=!1;if(!s)return{changes:[],updatedInternals:c};let l=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),c=!0;continue}let s=bb(r.nodeElement),u=e.measured.width!==s.width||e.measured.height!==s.height;if(s.width&&s.height&&(u||!e.internals.handleBounds||r.force)){let p=r.nodeElement.getBoundingClientRect(),m=db(e.extent)?e.extent:a,{positionAbsolute:h}=e.internals;if(e.parentId&&e.extent===`parent`){let n=t.get(e.parentId);n&&(h=Dae(h,s,n))}else m&&(h=qy(h,m,s));let g={...e,measured:s,internals:{...e.internals,positionAbsolute:h,handleBounds:{source:Lae(`source`,r.nodeElement,p,d,e.id),target:Lae(`target`,r.nodeElement,p,d,e.id)}}};t.set(e.id,g),e.parentId&&$ae(g,t,n,{nodeOrigin:i,zIndexMode:o}),c=!0,u&&(l.push({id:e.id,type:`dimensions`,dimensions:s}),e.expandParent&&e.parentId&&f.push({id:e.id,parentId:e.parentId,rect:Qy(g,i)}))}}if(f.length>0){let e=Ub(f,t,n,i);l.push(...e)}return{changes:l,updatedInternals:c}}async function roe({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return!1;let o=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r);return!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2])}function ioe(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${i}-${e}`;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o=`${i}-${e}-${a}`;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function Wb(e,t,n){e.clear(),t.clear();for(let r of n){let{source:n,target:i,sourceHandle:a=null,targetHandle:o=null}=r,s={edgeId:r.id,source:n,target:i,sourceHandle:a,targetHandle:o},c=`${n}-${a}--${i}-${o}`;ioe(`source`,s,`${i}-${o}--${n}-${a}`,e,n,a),ioe(`target`,s,c,e,i,o),t.set(r.id,r)}}function Gb(e,t){if(!e.parentId)return!1;let n=t.get(e.parentId);return n?n.selected?!0:Gb(n,t):!1}function Kb(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function aoe(e,t,n,r){let i=new Map;for(let[a,o]of e)if((o.selected||o.id===r)&&(!o.parentId||!Gb(o,e))&&(o.draggable||t&&o.draggable===void 0)){let t=e.get(a);t&&i.set(a,{id:a,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}function qb({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,a]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:a.position,dragging:r})}if(!e)return[i[0],i];let a=n.get(e)?.internals.userNode;return[a?{...a,position:t.get(e)?.position||a.position,dragging:r}:i[0],i]}function Jb({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let a={x:n-i.distance.x,y:r-i.distance.y},o=ib(a,t);return{x:o.x-a.x,y:o.y-a.y}}function Yb({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},o=0,s=new Map,c=!1,l={x:0,y:0},u=null,d=!1,f=null,p=!1,m=!1,h=null;function g({noDragClassName:g,handleSelector:_,domNode:v,isSelectable:y,nodeId:b,nodeClickDistance:x=0}){f=A_(v);function S({x:e,y:n}){let{nodeLookup:i,nodeExtent:o,snapGrid:c,snapToGrid:l,nodeOrigin:u,onNodeDrag:d,onSelectionDrag:f,onError:p,updateNodePositions:g}=t();a={x:e,y:n};let _=!1,v=s.size>1,y=v&&o?Xy(Vy(s)):null,x=v&&l?Jb({dragItems:s,snapGrid:c,x:e,y:n}):null;for(let[t,r]of s){if(!i.has(t))continue;let a={x:e-r.distance.x,y:n-r.distance.y};l&&(a=x?{x:Math.round(a.x+x.x),y:Math.round(a.y+x.y)}:ib(a,c));let s=null;if(v&&o&&!r.extent&&y){let{positionAbsolute:e}=r.internals,t=e.x-y.x+o[0][0],n=e.x+r.measured.width-y.x2+o[1][0],i=e.y-y.y+o[0][1],a=e.y+r.measured.height-y.y2+o[1][1];s=[[t,i],[n,a]]}let{position:d,positionAbsolute:f}=Gy({nodeId:t,nextPosition:a,nodeLookup:i,nodeExtent:s||o,nodeOrigin:u,onError:p});_=_||r.position.x!==d.x||r.position.y!==d.y,r.position=d,r.internals.positionAbsolute=f}if(m||=_,_&&(g(s,!0),h&&(r||d||!b&&f))){let[e,t]=qb({nodeId:b,dragItems:s,nodeLookup:i});r?.(h,s,e,t),d?.(h,e,t),b||f?.(h,t)}}async function C(){if(!u)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){c=!1,cancelAnimationFrame(o);return}let[s,d]=Jy(l,u,r);(s!==0||d!==0)&&(a.x=(a.x??0)-s/e[2],a.y=(a.y??0)-d/e[2],await n({x:s,y:d})&&S(a)),o=requestAnimationFrame(C)}function w(r){let{nodeLookup:i,multiSelectionActive:o,nodesDraggable:c,transform:l,snapGrid:f,snapToGrid:p,selectNodesOnDrag:m,onNodeDragStart:h,onSelectionDragStart:g,unselectNodesAndEdges:_}=t();d=!0,(!m||!y)&&!o&&b&&(i.get(b)?.selected||_()),y&&m&&b&&e?.(b);let v=yb(r.sourceEvent,{transform:l,snapGrid:f,snapToGrid:p,containerBounds:u});if(a=v,s=aoe(i,c,v,b),s.size>0&&(n||h||!b&&g)){let[e,t]=qb({nodeId:b,dragItems:s,nodeLookup:i});n?.(r.sourceEvent,s,e,t),h?.(r.sourceEvent,e,t),b||g?.(r.sourceEvent,t)}}let T=L_().clickDistance(x).on(`start`,e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:o,snapToGrid:s}=t();u=n?.getBoundingClientRect()||null,p=!1,m=!1,h=e.sourceEvent,r===0&&w(e),a=yb(e.sourceEvent,{transform:i,snapGrid:o,snapToGrid:s,containerBounds:u}),l=Sb(e.sourceEvent,u)}).on(`drag`,e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:o,nodeDragThreshold:f,nodeLookup:m}=t(),g=yb(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:o,containerBounds:u});if(h=e.sourceEvent,(e.sourceEvent.type===`touchmove`&&e.sourceEvent.touches.length>1||b&&!m.has(b))&&(p=!0),!p){if(!c&&n&&d&&(c=!0,C()),!d){let t=Sb(e.sourceEvent,u),n=t.x-l.x,r=t.y-l.y;Math.sqrt(n*n+r*r)>f&&w(e)}(a.x!==g.xSnapped||a.y!==g.ySnapped)&&s&&d&&(l=Sb(e.sourceEvent,u),S(g))}}).on(`end`,e=>{if(!d||p){p&&s.size>0&&t().updateNodePositions(s,!1);return}if(c=!1,d=!1,cancelAnimationFrame(o),s.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:a,onSelectionDragStop:o}=t();if(m&&=(r(s,!1),!1),i||a||!b&&o){let[t,r]=qb({nodeId:b,dragItems:s,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,s,t,r),a?.(e.sourceEvent,t,r),b||o?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!g||!Kb(t,`.${g}`,v))&&(!_||Kb(t,_,v))});f.call(T)}function _(){f?.on(`.drag`,null)}return{update:g,destroy:_}}function Xb(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())tb(i,Qy(e))>0&&r.push(e);return r}var Zb=250;function ooe(e,t,n,r){let i=[],a=1/0,o=Xb(e,n,t+Zb);for(let n of o){let o=[...n.internals.handleBounds?.source??[],...n.internals.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=Ib(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type===`source`?`target`:`source`;return i.find(t=>t.type===e)??i[0]}return i[0]}function Qb(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===`strict`?o.internals.handleBounds?.[t]:[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...Ib(o,c,c.position,!0)}:c}function soe(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function coe(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}var loe=()=>!0;function uoe(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:o,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:p,onConnectStart:m,onConnect:h,onConnectEnd:g,isValidConnection:_=loe,onReconnectEnd:v,updateConnection:y,getTransform:b,getFromHandle:x,autoPanSpeed:S,dragThreshold:C=1,handleDomNode:w}){let T=xb(e.target),E=0,ee,{x:te,y:ne}=Sb(e),re=soe(a,w),ie=s?.getBoundingClientRect(),ae=!1;if(!ie||!re)return;let oe=Qb(i,re,r,c,t);if(!oe)return;let se=Sb(e,ie),ce=!1,le=null,ue=!1,de=null;function fe(){if(!u||!ie)return;let[e,t]=Jy(se,ie,S);f({x:e,y:t}),E=requestAnimationFrame(fe)}let pe={...oe,nodeId:i,type:re,position:oe.position},me=c.get(i),he={inProgress:!0,isValid:null,from:Ib(me,pe,Fy.Left,!0),fromHandle:pe,fromPosition:pe.position,fromNode:me,to:se,toHandle:null,toPosition:Iy[pe.position],toNode:null,pointer:se};function ge(){ae=!0,y(he),m?.(e,{nodeId:i,handleId:r,handleType:re})}C===0&&ge();function _e(e){if(!ae){let{x:t,y:n}=Sb(e),r=t-te,i=n-ne;if(!(r*r+i*i>C*C))return;ge()}if(!x()||!pe){ve(e);return}let a=b();se=Sb(e,ie),ee=ooe(ab(se,a,!1,[1,1]),n,c,pe),ce||=(fe(),!0);let s=$b(e,{handle:ee,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:o?`target`:`source`,isValidConnection:_,doc:T,lib:l,flowId:d,nodeLookup:c});de=s.handleDomNode,le=s.connection,ue=coe(!!ee,s.isValid);let u=c.get(i),f=u?Ib(u,pe,Fy.Left,!0):he.from,p={...he,from:f,isValid:ue,to:s.toHandle&&ue?ob({x:s.toHandle.x,y:s.toHandle.y},a):se,toHandle:s.toHandle,toPosition:ue&&s.toHandle?s.toHandle.position:Iy[pe.position],toNode:s.toHandle?c.get(s.toHandle.nodeId):null,pointer:se};y(p),he=p}function ve(e){if(!(`touches`in e&&e.touches.length>0)){if(ae){(ee||de)&&le&&ue&&h?.(le);let{inProgress:t,...n}=he,r={...n,toPosition:he.toHandle?he.toPosition:null};g?.(e,r),a&&v?.(e,r)}p(),cancelAnimationFrame(E),ce=!1,ue=!1,le=null,de=null,T.removeEventListener(`mousemove`,_e),T.removeEventListener(`mouseup`,ve),T.removeEventListener(`touchmove`,_e),T.removeEventListener(`touchend`,ve)}}T.addEventListener(`mousemove`,_e),T.addEventListener(`mouseup`,ve),T.addEventListener(`touchmove`,_e),T.addEventListener(`touchend`,ve)}function $b(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=loe,nodeLookup:u}){let d=a===`target`,f=t?o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:m}=Sb(e),h=o.elementFromPoint(p,m),g=h?.classList.contains(`${s}-flow__handle`)?h:f,_={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let e=soe(void 0,g),t=g.getAttribute(`data-nodeid`),a=g.getAttribute(`data-handleid`),o=g.classList.contains(`connectable`),s=g.classList.contains(`connectableend`);if(!t||!e)return _;let c={source:d?t:r,sourceHandle:d?a:i,target:d?r:t,targetHandle:d?i:a};_.connection=c,_.isValid=o&&s&&(n===Ay.Strict?d&&e===`source`||!d&&e===`target`:t!==r||a!==i)&&l(c),_.toHandle=Qb(t,e,a,u,n,!0)}return _}var doe={onPointerDown:uoe,isValid:$b};function foe({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=A_(e);function a({translateExtent:e,width:a,height:o,zoomStep:s=1,pannable:c=!0,zoomable:l=!0,inversePan:u=!1}){let d=e=>{if(e.sourceEvent.type!==`wheel`||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&ub()?10:1,a=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*s,o=r[2]*2**(a*i);t.scaleTo(o)},f=[0,0],p=Ty().on(`start`,e=>{(e.sourceEvent.type===`mousedown`||e.sourceEvent.type===`touchstart`)&&(f=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on(`zoom`,c?i=>{let s=n();if(i.sourceEvent.type!==`mousemove`&&i.sourceEvent.type!==`touchmove`||!t)return;let c=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],l=[c[0]-f[0],c[1]-f[1]];f=c;let d=r()*Math.max(s[2],Math.log(s[2]))*(u?-1:1),p={x:s[0]-l[0]*d,y:s[1]-l[1]*d},m=[[0,0],[a,o]];t.setViewportConstrained({x:p.x,y:p.y,zoom:s[2]},m,e)}:null).on(`zoom.wheel`,l?d:null);i.call(p,{})}function o(){i.on(`zoom`,null)}return{update:a,destroy:o,pointer:n_}}var ex=e=>({x:e.x,y:e.y,zoom:e.k}),tx=({x:e,y:t,zoom:n})=>xy.translate(e,t).scale(n),nx=(e,t)=>e.target.closest(`.${t}`),rx=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),poe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,ix=(e,t=0,n=poe,r=()=>{})=>{let i=typeof t==`number`&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on(`end`,r):e},moe=e=>{let t=e.ctrlKey&&ub()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function hoe({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:o,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return u=>{if(nx(u,t))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();let d=n.property(`__zoom`).k||1;if(u.ctrlKey&&o){let e=n_(u),t=d*2**moe(u);r.scaleTo(n,t,e,u);return}let f=u.deltaMode===1?20:1,p=i===jy.Vertical?0:u.deltaX*f,m=i===jy.Horizontal?0:u.deltaY*f;!ub()&&u.shiftKey&&i!==jy.Vertical&&(p=u.deltaY*f,m=0),r.translateBy(n,-(p/d)*a,-(m/d)*a,{internal:!0});let h=ex(n.property(`__zoom`));clearTimeout(e.panScrollTimeout),e.isPanScrolling?c?.(u,h):(e.isPanScrolling=!0,s?.(u,h)),e.panScrollTimeout=setTimeout(()=>{l?.(u,h),e.isPanScrolling=!1},150)}}function goe({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let a=r.type===`wheel`,o=!t&&a&&!r.ctrlKey,s=nx(r,e);if(r.ctrlKey&&a&&s&&r.preventDefault(),o||s)return null;r.preventDefault(),n.call(this,r,i)}}function ax({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=ex(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type===`mousedown`&&t(!0),n&&n?.(r.sourceEvent,i)}}function _oe({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{e.usedRightMouseButton=!!(n&&rx(t,e.mouseButton??0)),a.sourceEvent?.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!a.sourceEvent?.internal&&i?.(a.sourceEvent,ex(a.transform))}}function ox({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return o=>{if(!o.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,a&&rx(t,e.mouseButton??0)&&!e.usedRightMouseButton&&o.sourceEvent&&a(o.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=ex(o.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(o.sourceEvent,t)},n?150:0)}}}function voe({panActivationKeyPressed:e,zoomActivationKeyPressed:t,zoomOnScroll:n,zoomOnPinch:r,panOnDrag:i,panOnScroll:a,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:c,noPanClassName:l,lib:u,connectionInProgress:d}){return f=>{let p=t||n,m=r&&f.ctrlKey,h=f.type===`wheel`;if(f.button===1&&f.type===`mousedown`&&(nx(f,`${u}-flow__node`)||nx(f,`${u}-flow__edge`)||nx(f,`${u}-flow__selection`)||nx(f,`${u}-flow__nodesselection`)))return!0;if(!i&&!p&&!a&&!o&&!r||s||d&&!h||nx(f,c)&&h||nx(f,l)&&(!h||a&&h&&!t)||!r&&f.ctrlKey&&h)return!1;if(!r&&f.type===`touchstart`&&f.touches?.length>1)return f.preventDefault(),!1;if(!p&&!a&&!m&&h||!i&&(f.type===`mousedown`||f.type===`touchstart`)||Array.isArray(i)&&!i.includes(f.button)&&f.type===`mousedown`)return!1;let g=Array.isArray(i)&&i.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||h||e)&&g}}function yoe({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:o,onPanZoomEnd:s,onDraggingChange:c}){let l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},u=e.getBoundingClientRect(),d=[[0,0],[u.width,u.height]];(typeof ResizeObserver<`u`?new ResizeObserver(e=>{let t=e[0];t&&(d=[[0,0],[t.contentRect.width,t.contentRect.height]])}):null)?.observe(e);let f=Ty().extent(()=>d).scaleExtent([t,n]).translateExtent(r),p=A_(e).call(f);y({x:i.x,y:i.y,zoom:Ky(i.zoom,t,n)},[[0,0],[u.width,u.height]],r);let m=p.on(`wheel.zoom`),h=p.on(`dblclick.zoom`);f.wheelDelta(moe);async function g(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?Tv:Dv).transform(ix(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function _({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:u,panOnScrollMode:d,panOnScrollSpeed:g,preventScrolling:_,zoomOnPinch:y,zoomOnScroll:b,zoomOnDoubleClick:x,panActivationKeyPressed:S=!1,zoomActivationKeyPressed:C,lib:w,onTransformChange:T,connectionInProgress:E,paneClickDistance:ee,selectionOnDrag:te}){r&&!l.isZoomingOrPanning&&v();let ne=i&&!C&&!r;f.clickDistance(te?1/0:!rb(ee)||ee<0?0:ee);let re=ne?hoe({zoomPanValues:l,noWheelClassName:e,d3Selection:p,d3Zoom:f,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:y,onPanZoomStart:o,onPanZoom:a,onPanZoomEnd:s}):goe({noWheelClassName:e,preventScrolling:_,d3ZoomHandler:m});p.on(`wheel.zoom`,re,{passive:!1});let ie=ax({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:o});f.on(`start`,ie);let ae=_oe({zoomPanValues:l,panOnDrag:u,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:T});f.on(`zoom`,ae);let oe=ox({zoomPanValues:l,panOnDrag:u,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:c});f.on(`end`,oe);let se=voe({panActivationKeyPressed:S,zoomActivationKeyPressed:C,panOnDrag:u,zoomOnScroll:b,panOnScroll:i,zoomOnDoubleClick:x,zoomOnPinch:y,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:w,connectionInProgress:E});f.filter(se),x?p.on(`dblclick.zoom`,h):p.on(`dblclick.zoom`,null)}function v(){f.on(`zoom`,null)}async function y(e,t,n){let r=tx(e),i=f?.constrain()(r,t,n);return i&&await g(i),i}async function b(e,t){let n=tx(e);return await g(n,t),n}function x(e){if(p){let t=tx(e),n=p.property(`__zoom`);(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(p,t,null,{sync:!0})}}function S(){let e=p?_ae(p.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}}async function C(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?Tv:Dv).scaleTo(ix(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}async function w(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?Tv:Dv).scaleBy(ix(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function T(e){f?.scaleExtent(e)}function E(e){f?.translateExtent(e)}function ee(e){let t=!rb(e)||e<0?0:e;f?.clickDistance(t)}return{update:_,destroy:v,setViewport:b,setViewportConstrained:y,getViewport:S,scaleTo:C,scaleBy:w,setScaleExtent:T,setTranslateExtent:E,syncViewport:x,setClickDistance:ee}}var sx;(function(e){e.Line=`line`,e.Handle=`handle`})(sx||={});function boe({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){let o=e-t,s=n-r,c=[o>0?1:o<0?-1:0,s>0?1:s<0?-1:0];return o&&i&&(c[0]*=-1),s&&a&&(c[1]*=-1),c}function xoe(e){return{isHorizontal:e.includes(`right`)||e.includes(`left`),isVertical:e.includes(`bottom`)||e.includes(`top`),affectsX:e.includes(`left`),affectsY:e.includes(`top`)}}function cx(e,t){return Math.max(0,t-e)}function lx(e,t){return Math.max(0,e-t)}function ux(e,t,n){return Math.max(0,t-e,e-n)}function dx(e,t){return e?!t:t}function fx(e,t,n,r,i,a,o,s){let{affectsX:c,affectsY:l}=t,{isHorizontal:u,isVertical:d}=t,f=u&&d,{xSnapped:p,ySnapped:m}=n,{minWidth:h,maxWidth:g,minHeight:_,maxHeight:v}=r,{x:y,y:b,width:x,height:S,aspectRatio:C}=e,w=Math.floor(u?p-e.pointerX:0),T=Math.floor(d?m-e.pointerY:0),E=x+(c?-w:w),ee=S+(l?-T:T),te=-a[0]*x,ne=-a[1]*S,re=ux(E,h,g),ie=ux(ee,_,v);if(o){let e=0,t=0;c&&w<0?e=cx(y+w+te,o[0][0]):!c&&w>0&&(e=lx(y+E+te,o[1][0])),l&&T<0?t=cx(b+T+ne,o[0][1]):!l&&T>0&&(t=lx(b+ee+ne,o[1][1])),re=Math.max(re,e),ie=Math.max(ie,t)}if(s){let e=0,t=0;c&&w>0?e=lx(y+w,s[0][0]):!c&&w<0&&(e=cx(y+E,s[1][0])),l&&T>0?t=lx(b+T,s[0][1]):!l&&T<0&&(t=cx(b+ee,s[1][1])),re=Math.max(re,e),ie=Math.max(ie,t)}if(i){if(u){let e=ux(E/C,_,v)*C;if(re=Math.max(re,e),o){let e=0;e=!c&&!l||c&&!l&&f?lx(b+ne+E/C,o[1][1])*C:cx(b+ne+(c?w:-w)/C,o[0][1])*C,re=Math.max(re,e)}if(s){let e=0;e=!c&&!l||c&&!l&&f?cx(b+E/C,s[1][1])*C:lx(b+(c?w:-w)/C,s[0][1])*C,re=Math.max(re,e)}}if(d){let e=ux(ee*C,h,g)/C;if(ie=Math.max(ie,e),o){let e=0;e=!c&&!l||l&&!c&&f?lx(y+ee*C+te,o[1][0])/C:cx(y+(l?T:-T)*C+te,o[0][0])/C,ie=Math.max(ie,e)}if(s){let e=0;e=!c&&!l||l&&!c&&f?cx(y+ee*C,s[1][0])/C:lx(y+(l?T:-T)*C,s[0][0])/C,ie=Math.max(ie,e)}}}T+=T<0?ie:-ie,w+=w<0?re:-re,i&&(f?E>ee*C?T=(dx(c,l)?-w:w)/C:w=(dx(c,l)?-T:T)*C:u?(T=w/C,l=c):(w=T*C,c=l));let ae=c?y+w:y,oe=l?b+T:b;return{width:x+(c?-w:w),height:S+(l?-T:T),x:a[0]*w*(c?-1:1)+ae,y:a[1]*T*(l?-1:1)+oe}}var px={width:0,height:0,x:0,y:0},mx={...px,pointerX:0,pointerY:0,aspectRatio:1};function hx(e,t,n){let r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,o=e.measured.height??0,s=n[0]*a,c=n[1]*o;return[[r-s,i-c],[r+a-s,i+o-c]]}function Soe({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){let a=A_(e),o={controlDirection:xoe(`bottom-right`),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:e,boundaries:s,keepAspectRatio:c,resizeDirection:l,onResizeStart:u,onResize:d,onResizeEnd:f,shouldResize:p}){let m={...px},h={...mx};o={boundaries:s,resizeDirection:l,keepAspectRatio:c,controlDirection:xoe(e)};let g,_=null,v=[],y,b,x,S=L_().on(`start`,e=>{let{nodeLookup:r,transform:i,snapGrid:a,snapToGrid:o,nodeOrigin:s,paneDomNode:c}=n();if(g=r.get(t),!g)return;_=c?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:d}=yb(e.sourceEvent,{transform:i,snapGrid:a,snapToGrid:o,containerBounds:_});m={width:g.measured.width??0,height:g.measured.height??0,x:g.position.x??0,y:g.position.y??0},h={...m,pointerX:l,pointerY:d,aspectRatio:m.width/m.height},y=void 0,b=db(g.extent)?g.extent:void 0,g.parentId&&(g.extent===`parent`||g.expandParent)&&(y=r.get(g.parentId)),y&&g.extent===`parent`&&(b=[[0,0],[y.measured.width,y.measured.height]]),v=[],x=void 0;for(let[e,n]of r)if(n.parentId===t&&(v.push({id:e,position:{...n.position},extent:n.extent}),n.extent===`parent`||n.expandParent)){let e=hx(n,g,n.origin??s);x=x?[[Math.min(e[0][0],x[0][0]),Math.min(e[0][1],x[0][1])],[Math.max(e[1][0],x[1][0]),Math.max(e[1][1],x[1][1])]]:e}u?.(e,{...m})}).on(`drag`,e=>{let{transform:t,snapGrid:i,snapToGrid:a,nodeOrigin:s}=n(),c=yb(e.sourceEvent,{transform:t,snapGrid:i,snapToGrid:a,containerBounds:_}),l=[];if(!g)return;let{x:u,y:f,width:S,height:C}=m,w={},T=g.origin??s,{width:E,height:ee,x:te,y:ne}=fx(h,o.controlDirection,c,o.boundaries,o.keepAspectRatio,T,b,x),re=E!==S,ie=ee!==C,ae=te!==u&&re,oe=ne!==f&&ie;if(!ae&&!oe&&!re&&!ie)return;let se={prevValues:{...m},startX:h.x,startY:h.y,childNodes:v.map(e=>({...e,position:{...e.position}}))};if((ae||oe||T[0]===1||T[1]===1)&&(w.x=ae?te:m.x,w.y=oe?ne:m.y,m.x=w.x,m.y=w.y,v.length>0)){let e=te-u,t=ne-f;for(let n of v)n.position={x:n.position.x-e+T[0]*(E-S),y:n.position.y-t+T[1]*(ee-C)},l.push(n)}if((re||ie)&&(w.width=re&&(!o.resizeDirection||o.resizeDirection===`horizontal`)?E:m.width,w.height=ie&&(!o.resizeDirection||o.resizeDirection===`vertical`)?ee:m.height,m.width=w.width,m.height=w.height),y&&g.expandParent){let e=T[0]*(w.width??0);w.x&&w.x<e&&(m.x=e,h.x-=w.x-e);let t=T[1]*(w.height??0);w.y&&w.y<t&&(m.y=t,h.y-=w.y-t)}let ce=boe({width:m.width,prevWidth:S,height:m.height,prevHeight:C,affectsX:o.controlDirection.affectsX,affectsY:o.controlDirection.affectsY}),le={...m,direction:ce};if(p?.(e,le)===!1){m=se.prevValues,h.x=se.startX,h.y=se.startY,v.forEach((e,t)=>{e.position=se.childNodes[t].position});return}d?.(e,le),r(w,l)}).on(`end`,e=>{f?.(e,{...m}),i?.({...m})});a.call(S)}function c(){a.on(`.drag`,null)}return{update:s,destroy:c}}var Coe=s((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),woe=s(((e,t)=>{t.exports=Coe()})),Toe=s((e=>{var t=f(),n=woe();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),gx=u(s(((e,t)=>{t.exports=Toe()}))(),1),_x=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},Eoe=e=>e?_x(e):_x,{useDebugValue:vx}=p.default,{useSyncExternalStoreWithSelector:yx}=gx.default,bx=e=>e;function Doe(e,t=bx,n){let r=yx(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vx(r),r}var xx=(e,t)=>{let n=Eoe(e),r=(e,r=t)=>Doe(n,e,r);return Object.assign(r,n),r},Ooe=(e,t)=>e?xx(e,t):xx;function Sx(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var Cx=(0,p.createContext)(null),wx=Cx.Provider,Tx=Ey.error001(`react`);function Ex(e,t){let n=(0,p.useContext)(Cx);if(n===null)throw Error(Tx);return Doe(n,e,t)}function Dx(){let e=(0,p.useContext)(Cx);if(e===null)throw Error(Tx);return(0,p.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}var koe={display:`none`},Aoe={position:`absolute`,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0px, 0px, 0px, 0px)`,clipPath:`inset(100%)`},joe=`react-flow__node-desc`,Moe=`react-flow__edge-desc`,Noe=`react-flow__aria-live`,Poe=e=>e.ariaLiveMessage,Foe=e=>e.ariaLabelConfig;function Ioe({rfId:e}){let t=Ex(Poe);return(0,k.jsx)(`div`,{id:`${Noe}-${e}`,"aria-live":`assertive`,"aria-atomic":`true`,style:Aoe,children:t})}function Loe({rfId:e,disableKeyboardA11y:t}){let n=Ex(Foe);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{id:`${joe}-${e}`,style:koe,children:t?n[`node.a11yDescription.default`]:n[`node.a11yDescription.keyboardDisabled`]}),(0,k.jsx)(`div`,{id:`${Moe}-${e}`,style:koe,children:n[`edge.a11yDescription.default`]}),!t&&(0,k.jsx)(Ioe,{rfId:e})]})}var Ox=(0,p.forwardRef)(({position:e=`top-left`,children:t,className:n,style:r,...i},a)=>(0,k.jsx)(`div`,{className:Jg([`react-flow__panel`,n,...`${e}`.split(`-`)]),style:r,ref:a,...i,children:t}));Ox.displayName=`Panel`;var Roe=`https://reactflow.dev?utm_source=attribution`;function zoe({proOptions:e,position:t=`bottom-right`}){return(0,p.useEffect)(()=>{},[]),e?.hideAttribution?null:(0,k.jsx)(Ox,{position:t,className:`react-flow__attribution`,"data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${Roe}`,children:(0,k.jsx)(`a`,{href:Roe,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`React Flow attribution`,children:`React Flow`})})}var Boe=e=>{let t=[],n=[];for(let[,n]of e.nodeLookup)n.selected&&t.push(n.internals.userNode);for(let[,t]of e.edgeLookup)t.selected&&n.push(t);return{selectedNodes:t,selectedEdges:n}},kx=e=>e.id;function Voe(e,t){return Sx(e.selectedNodes.map(kx),t.selectedNodes.map(kx))&&Sx(e.selectedEdges.map(kx),t.selectedEdges.map(kx))}function Hoe({onSelectionChange:e}){let t=Dx(),{selectedNodes:n,selectedEdges:r}=Ex(Boe,Voe);return(0,p.useEffect)(()=>{let i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChangeHandlers.forEach(e=>e(i))},[n,r,e]),null}var Ax=e=>!!e.onSelectionChangeHandlers;function jx({onSelectionChange:e}){let t=Ex(Ax);return e||t?(0,k.jsx)(Hoe,{onSelectionChange:e}):null}var Mx=[0,0],Nx={x:0,y:0,zoom:1},Px=[...`nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode`.split(`.`),`rfId`],Fx=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),Ix={translateExtent:Dy,nodeOrigin:Mx,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:`nopan`,rfId:`1`};function Lx(e){let{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:c}=Ex(Fx,Sx),l=Dx();(0,p.useEffect)(()=>(c(e.defaultNodes,e.defaultEdges),()=>{u.current=Ix,s()}),[]);let u=(0,p.useRef)(Ix);return(0,p.useEffect)(()=>{for(let s of Px){let c=e[s];c!==u.current[s]&&e[s]!==void 0&&(s===`nodes`?t(c):s===`edges`?n(c):s===`minZoom`?r(c):s===`maxZoom`?i(c):s===`translateExtent`?a(c):s===`nodeExtent`?o(c):s===`ariaLabelConfig`?l.setState({ariaLabelConfig:_b(c)}):s===`fitView`?l.setState({fitViewQueued:c}):s===`fitViewOptions`?l.setState({fitViewOptions:c}):l.setState({[s]:c}))}u.current=e},Px.map(t=>e[t])),null}function Rx(){return typeof window>`u`||!window.matchMedia?null:window.matchMedia(`(prefers-color-scheme: dark)`)}function zx(e){let[t,n]=(0,p.useState)(e===`system`?null:e);return(0,p.useEffect)(()=>{if(e!==`system`){n(e);return}let t=Rx(),r=()=>n(t?.matches?`dark`:`light`);return r(),t?.addEventListener(`change`,r),()=>{t?.removeEventListener(`change`,r)}},[e]),t===null?Rx()?.matches?`dark`:`light`:t}var Bx=typeof document<`u`?document:null;function Vx(e=null,t={target:Bx,actInsideInputWithModifier:!0}){let[n,r]=(0,p.useState)(!1),i=(0,p.useRef)(!1),a=(0,p.useRef)(new Set([])),[o,s]=(0,p.useMemo)(()=>{if(e!==null){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`).map(e=>e.replace(/\+/g,`
|
|
104
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:Ud().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:Ud().optional().describe(`User's timezone in IANA format.`),userAgent:Ud().optional().describe(`Host application identifier.`),platform:Hf([ep(`web`),ep(`desktop`),ep(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:zf({touch:Tf().optional().describe(`Whether the device supports touch input.`),hover:Tf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:zf({top:yf().describe(`Top safe area inset in pixels.`),right:yf().describe(`Right safe area inset in pixels.`),bottom:yf().describe(`Bottom safe area inset in pixels.`),left:yf().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),une=zf({method:ep(`ui/notifications/host-context-changed`),params:lne.describe(`Partial context update containing only changed fields.`)});zf({method:ep(`ui/update-model-context`),params:zf({content:Lf(Sg).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:qf(Ud(),Nf().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),zf({method:ep(`ui/initialize`),params:zf({appInfo:Zh.describe(`App identification (name and version).`),appCapabilities:one.describe(`Features and capabilities this app provides.`),protocolVersion:Ud().describe(`Protocol version this app supports.`)})});var Hg=zf({protocolVersion:Ud().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Zh.describe(`Host application identification and version.`),hostCapabilities:ane.describe(`Features and capabilities provided by the host.`),hostContext:lne.describe(`Rich context about the host environment.`)}).passthrough(),Ug={target:`draft-2020-12`};async function Wg(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Ug);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Sh(),bh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function dne(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var fne=class e extends Ng{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:$te,toolinputpartial:Vg,toolresult:cne,toolcancelled:ene,hostcontextchanged:une};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||g({jitless:!0}),this.setRequestHandler(eg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Yte(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await dne(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await dne(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Wg(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Wg(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(rne,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(pte,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(ute,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},wg,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Wee,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},zee,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?Ote:Dte;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Rg,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},Kh,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Ig,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Lg,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},O,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Pg(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Xte}},Hg,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function pne({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,p.useState)(null),[s,c]=(0,p.useState)(!1),[l,u]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new Pg(window.parent,window.parent);if(s=new fne(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}var mne=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),hne=s(((e,t)=>{t.exports=mne()}));S();var k=hne();g({jitless:!0});var gne=(e,t)=>e._meta?.[t]??e.structuredContent,_ne=e=>{e?.theme&&document.documentElement.setAttribute(`data-theme`,e.theme)};async function Gg(e,t,n){let r=gne(t,n.metaKey);if(n.isPayload(r))return r;let i=t.content?.find(e=>e.type===`text`)?.text,a=gne(await e.callServerTool({name:n.viewTool,arguments:n.getViewToolArguments(JSON.parse(i??`{}`))}),n.metaKey);if(!n.isPayload(a))throw Error(n.loadErrorMessage);return a}function Kg(e){let[t,n]=(0,p.useState)(null),[r,i]=(0,p.useState)(null),[a,o]=(0,p.useState)(),{app:s,error:c}=pne({appInfo:{name:e.name,version:`1.0.0`},capabilities:{availableDisplayModes:[`inline`,`fullscreen`]},onAppCreated:t=>{t.ontoolresult=r=>{if(r.isError){i(r.content?.find(e=>e.type===`text`)?.text??e.loadErrorMessage);return}Gg(t,r,e).then(n).catch(e=>i(String(e?.message??e)))},t.onhostcontextchanged=e=>{_ne(e),o(t=>({...t,...e}))}}});return(0,p.useEffect)(()=>{let e=s?.getHostContext();_ne(e),o(e)},[s]),{app:s,payload:t,setPayload:n,error:c?.message??r,hostContext:a}}function vne(e,t){let n=document.createElement(`style`);n.textContent=t,document.head.appendChild(n),(0,mh.createRoot)(document.getElementById(`root`)).render((0,k.jsx)(e,{}))}var qg=u(fh());function Jg(e){if(typeof e==`string`||typeof e==`number`)return``+e;let t=``;if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=Jg(e[n]))!==``&&(t+=(t&&` `)+r);else for(let n in e)e[n]&&(t+=(t&&` `)+n);return t}var yne={value:()=>{}};function Yg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Xg(n)}function Xg(e){this._=e}function Zg(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Xg.prototype=Yg.prototype={constructor:Xg,on:function(e,t){var n=this._,r=Zg(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Qg(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=$g(n[i],e.name,t);else if(t==null)for(i in n)n[i]=$g(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Xg(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Qg(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function $g(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=yne,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function bne(e){return function(){return this.matches(e)}}function e_(e){return function(t){return t.matches(e)}}var xne={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function t_(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),xne.hasOwnProperty(t)?{space:xne[t],local:e}:e}function Sne(e){let t;for(;t=e.sourceEvent;)e=t;return e}function n_(e,t){if(e=Sne(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Cne(){}function wne(e){return e==null?Cne:function(){return this.querySelector(e)}}function r_(e){typeof e!=`function`&&(e=wne(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new O_(r,this._parents)}function Tne(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ene(){return[]}function i_(e){return e==null?Ene:function(){return this.querySelectorAll(e)}}function a_(e){return function(){return Tne(e.apply(this,arguments))}}function Dne(e){e=typeof e==`function`?a_(e):i_(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new O_(r,i)}var o_=Array.prototype.find;function One(e){return function(){return o_.call(this.children,e)}}function kne(){return this.firstElementChild}function s_(e){return this.select(e==null?kne:One(typeof e==`function`?e:e_(e)))}var Ane=Array.prototype.filter;function jne(){return Array.from(this.children)}function c_(e){return function(){return Ane.call(this.children,e)}}function l_(e){return this.selectAll(e==null?jne:c_(typeof e==`function`?e:e_(e)))}function Mne(e){typeof e!=`function`&&(e=bne(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new O_(r,this._parents)}function Nne(e){return Array(e.length)}function Pne(){return new O_(this._enter||this._groups.map(Nne),this._parents)}function u_(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}u_.prototype={constructor:u_,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fne(e){return function(){return e}}function Ine(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new u_(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Lne(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new u_(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Rne(e){return e.__data__}function zne(e,t){if(!arguments.length)return Array.from(this,Rne);var n=t?Lne:Ine,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Fne(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Bne(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new O_(o,r),o._enter=s,o._exit=c,o}function Bne(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Vne(){return new O_(this._exit||this._groups.map(Nne),this._parents)}function Hne(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Une(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new O_(s,this._parents)}function Wne(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Gne(e){e||=Kne;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new O_(i,this._parents).order()}function Kne(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function d_(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f_(){return Array.from(this)}function p_(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function qne(){let e=0;for(let t of this)++e;return e}function Jne(){return!this.node()}function Yne(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Xne(e){return function(){this.removeAttribute(e)}}function Zne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qne(e,t){return function(){this.setAttribute(e,t)}}function $ne(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ere(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function tre(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function nre(e,t){var n=t_(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Zne:Xne:typeof t==`function`?n.local?tre:ere:n.local?$ne:Qne)(n,t))}function m_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function rre(e){return function(){this.style.removeProperty(e)}}function ire(e,t,n){return function(){this.style.setProperty(e,t,n)}}function are(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ore(e,t,n){return arguments.length>1?this.each((t==null?rre:typeof t==`function`?are:ire)(e,t,n??``)):h_(this.node(),e)}function h_(e,t){return e.style.getPropertyValue(t)||m_(e).getComputedStyle(e,null).getPropertyValue(t)}function sre(e){return function(){delete this[e]}}function cre(e,t){return function(){this[e]=t}}function lre(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function g_(e,t){return arguments.length>1?this.each((t==null?sre:typeof t==`function`?lre:cre)(e,t)):this.node()[e]}function ure(e){return e.trim().split(/^|\s+/)}function __(e){return e.classList||new v_(e)}function v_(e){this._node=e,this._names=ure(e.getAttribute(`class`)||``)}v_.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function dre(e,t){for(var n=__(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function fre(e,t){for(var n=__(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function pre(e){return function(){dre(this,e)}}function mre(e){return function(){fre(this,e)}}function hre(e,t){return function(){(t.apply(this,arguments)?dre:fre)(this,e)}}function y_(e,t){var n=ure(e+``);if(arguments.length<2){for(var r=__(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?hre:t?pre:mre)(n,t))}function b_(){this.textContent=``}function gre(e){return function(){this.textContent=e}}function x_(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function _re(e){return arguments.length?this.each(e==null?b_:(typeof e==`function`?x_:gre)(e)):this.node().textContent}function vre(){this.innerHTML=``}function yre(e){return function(){this.innerHTML=e}}function S_(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function bre(e){return arguments.length?this.each(e==null?vre:(typeof e==`function`?S_:yre)(e)):this.node().innerHTML}function C_(){this.nextSibling&&this.parentNode.appendChild(this)}function w_(){return this.each(C_)}function xre(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sre(){return this.each(xre)}function Cre(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function wre(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Tre(e){var t=t_(e);return(t.local?wre:Cre)(t)}function Ere(e){var t=typeof e==`function`?e:Tre(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Dre(){return null}function Ore(e,t){var n=typeof e==`function`?e:Tre(e),r=t==null?Dre:typeof t==`function`?t:wne(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function kre(){var e=this.parentNode;e&&e.removeChild(this)}function Are(){return this.each(kre)}function jre(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mre(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nre(e){return this.select(e?Mre:jre)}function Pre(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Fre(e){return function(t){e.call(this,t,this.__data__)}}function Ire(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Lre(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function T_(e,t,n){return function(){var r=this.__on,i,a=Fre(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Rre(e,t,n){var r=Ire(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?T_:Lre,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function zre(e,t,n){var r=m_(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function E_(e,t){return function(){return zre(this,e,t)}}function Bre(e,t){return function(){return zre(this,e,t.apply(this,arguments))}}function Vre(e,t){return this.each((typeof t==`function`?Bre:E_)(e,t))}function*Hre(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var D_=[null];function O_(e,t){this._groups=e,this._parents=t}function k_(){return new O_([[document.documentElement]],D_)}function Ure(){return this}O_.prototype=k_.prototype={constructor:O_,select:r_,selectAll:Dne,selectChild:s_,selectChildren:l_,filter:Mne,data:zne,enter:Pne,exit:Vne,join:Hne,merge:Une,selection:Ure,order:Wne,sort:Gne,call:d_,nodes:f_,node:p_,size:qne,empty:Jne,each:Yne,attr:nre,style:ore,property:g_,classed:y_,text:_re,html:bre,raise:w_,lower:Sre,append:Ere,insert:Ore,remove:Are,clone:Nre,datum:Pre,on:Rre,dispatch:Vre,[Symbol.iterator]:Hre};function A_(e){return typeof e==`string`?new O_([[document.querySelector(e)]],[document.documentElement]):new O_([[e]],D_)}var Wre={passive:!1},j_={capture:!0,passive:!1};function Gre(e){e.stopImmediatePropagation()}function M_(e){e.preventDefault(),e.stopImmediatePropagation()}function Kre(e){var t=e.document.documentElement,n=A_(e).on(`dragstart.drag`,M_,j_);`onselectstart`in t?n.on(`selectstart.drag`,M_,j_):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function N_(e,t){var n=e.document.documentElement,r=A_(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,M_,j_),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var P_=e=>()=>e;function F_(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}F_.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function qre(e){return!e.ctrlKey&&!e.button}function I_(){return this.parentNode}function Jre(e,t){return t??{x:e.x,y:e.y}}function Yre(){return navigator.maxTouchPoints||`ontouchstart`in this}function L_(){var e=qre,t=I_,n=Jre,r=Yre,i={},a=Yg(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,Wre).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(A_(n.view).on(`mousemove.drag`,m,j_).on(`mouseup.drag`,h,j_),Kre(n.view),Gre(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(M_(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){A_(e.view).on(`mousemove.drag mouseup.drag`,null),N_(e.view,l),M_(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(Gre(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(M_(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(Gre(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=n_(l||r,t),p,m,h;if((h=n.call(e,new F_(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=n_(l||a,t),_=o;break}u.call(r,e,new F_(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:P_(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:P_(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:P_(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:P_(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function R_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function z_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function B_(){}var V_=.7,H_=1/V_,U_=`\\s*([+-]?\\d+)\\s*`,W_=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,A=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,G_=/^#([0-9a-f]{3,8})$/,Xre=RegExp(`^rgb\\(${U_},${U_},${U_}\\)$`),Zre=RegExp(`^rgb\\(${A},${A},${A}\\)$`),K_=RegExp(`^rgba\\(${U_},${U_},${U_},${W_}\\)$`),q_=RegExp(`^rgba\\(${A},${A},${A},${W_}\\)$`),Qre=RegExp(`^hsl\\(${W_},${A},${A}\\)$`),J_=RegExp(`^hsla\\(${W_},${A},${A},${W_}\\)$`),Y_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};R_(B_,$_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:X_,formatHex:X_,formatHex8:Z_,formatHsl:$re,formatRgb:Q_,toString:Q_});function X_(){return this.rgb().formatHex()}function Z_(){return this.rgb().formatHex8()}function $re(){return uv(this).formatHsl()}function Q_(){return this.rgb().formatRgb()}function $_(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=G_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ev(t):n===3?new iv(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Xre.exec(e))?new iv(t[1],t[2],t[3],1):(t=Zre.exec(e))?new iv(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=K_.exec(e))?tv(t[1],t[2],t[3],t[4]):(t=q_.exec(e))?tv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qre.exec(e))?lv(t[1],t[2]/100,t[3]/100,1):(t=J_.exec(e))?lv(t[1],t[2]/100,t[3]/100,t[4]):Y_.hasOwnProperty(e)?ev(Y_[e]):e===`transparent`?new iv(NaN,NaN,NaN,0):null}function ev(e){return new iv(e>>16&255,e>>8&255,e&255,1)}function tv(e,t,n,r){return r<=0&&(e=t=n=NaN),new iv(e,t,n,r)}function nv(e){return e instanceof B_||(e=$_(e)),e?(e=e.rgb(),new iv(e.r,e.g,e.b,e.opacity)):new iv}function rv(e,t,n,r){return arguments.length===1?nv(e):new iv(e,t,n,r??1)}function iv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}R_(iv,rv,z_(B_,{brighter(e){return e=e==null?H_:H_**+e,new iv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?V_:V_**+e,new iv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new iv(sv(this.r),sv(this.g),sv(this.b),ov(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eie,formatHex:eie,formatHex8:tie,formatRgb:av,toString:av}));function eie(){return`#${cv(this.r)}${cv(this.g)}${cv(this.b)}`}function tie(){return`#${cv(this.r)}${cv(this.g)}${cv(this.b)}${cv((isNaN(this.opacity)?1:this.opacity)*255)}`}function av(){let e=ov(this.opacity);return`${e===1?`rgb(`:`rgba(`}${sv(this.r)}, ${sv(this.g)}, ${sv(this.b)}${e===1?`)`:`, ${e})`}`}function ov(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cv(e){return e=sv(e),(e<16?`0`:``)+e.toString(16)}function lv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fv(e,t,n,r)}function uv(e){if(e instanceof fv)return new fv(e.h,e.s,e.l,e.opacity);if(e instanceof B_||(e=$_(e)),!e)return new fv;if(e instanceof fv)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new fv(o,s,c,e.opacity)}function dv(e,t,n,r){return arguments.length===1?uv(e):new fv(e,t,n,r??1)}function fv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}R_(fv,dv,z_(B_,{brighter(e){return e=e==null?H_:H_**+e,new fv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?V_:V_**+e,new fv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new iv(hv(e>=240?e-240:e+120,i,r),hv(e,i,r),hv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new fv(pv(this.h),mv(this.s),mv(this.l),ov(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ov(this.opacity);return`${e===1?`hsl(`:`hsla(`}${pv(this.h)}, ${mv(this.s)*100}%, ${mv(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function pv(e){return e=(e||0)%360,e<0?e+360:e}function mv(e){return Math.max(0,Math.min(1,e||0))}function hv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var gv=e=>()=>e;function nie(e,t){return function(n){return e+n*t}}function rie(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function iie(e){return(e=+e)==1?aie:function(t,n){return n-t?rie(t,n,e):gv(isNaN(t)?n:t)}}function aie(e,t){var n=t-e;return n?nie(e,n):gv(isNaN(e)?t:e)}var _v=(function e(t){var n=iie(t);function r(e,t){var r=n((e=rv(e)).r,(t=rv(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=aie(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function vv(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function yv(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bv(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=Tv(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function xv(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Sv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oie(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Tv(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Cv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wv=new RegExp(Cv.source,`g`);function sie(e){return function(){return e}}function cie(e){return function(t){return e(t)+``}}function lie(e,t){var n=Cv.lastIndex=wv.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Cv.exec(e))&&(i=wv.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Sv(r,i)})),n=wv.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?cie(c[0].x):sie(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Tv(e,t){var n=typeof t,r;return t==null||n===`boolean`?gv(t):(n===`number`?Sv:n===`string`?(r=$_(t))?(t=r,_v):lie:t instanceof $_?_v:t instanceof Date?xv:yv(t)?vv:Array.isArray(t)?bv:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?oie:Sv)(e,t)}var uie=180/Math.PI,die={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fie(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*uie,skewX:Math.atan(c)*uie,scaleX:o,scaleY:s}}var pie;function Ev(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?die:fie(t.a,t.b,t.c,t.d,t.e,t.f)}function j(e){return e==null||(pie||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),pie.setAttribute(`transform`,e),!(e=pie.transform.baseVal.consolidate()))?die:(e=e.matrix,fie(e.a,e.b,e.c,e.d,e.e,e.f))}function mie(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Sv(e,i)},{i:c-2,x:Sv(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Sv(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Sv(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Sv(e,n)},{i:s-2,x:Sv(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var hie=mie(Ev,`px, `,`px)`,`deg)`),gie=mie(j,`, `,`)`,`)`),_ie=1e-12;function vie(e){return((e=Math.exp(e))+1/e)/2}function yie(e){return((e=Math.exp(e))-1/e)/2}function bie(e){return((e=Math.exp(2*e))-1)/(e+1)}var Dv=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<_ie)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=vie(y),c=s/(n*g)*(i*bie(t*r+y)-yie(y));return[a+c*d,o+c*f,s*i/vie(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Ov=0,kv=0,Av=0,xie=1e3,jv,Mv,Nv=0,Pv=0,Fv=0,Iv=typeof performance==`object`&&performance.now?performance:Date,Sie=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cie(){return Pv||=(Sie(wie),Iv.now()+Fv)}function wie(){Pv=0}function Lv(){this._call=this._time=this._next=null}Lv.prototype=Tie.prototype={constructor:Lv,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Cie():+n)+(t==null?0:+t),!this._next&&Mv!==this&&(Mv?Mv._next=this:jv=this,Mv=this),this._call=e,this._time=n,Bv()},stop:function(){this._call&&(this._call=null,this._time=1/0,Bv())}};function Tie(e,t,n){var r=new Lv;return r.restart(e,t,n),r}function Eie(){Cie(),++Ov;for(var e=jv,t;e;)(t=Pv-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ov}function Die(){Pv=(Nv=Iv.now())+Fv,Ov=kv=0;try{Eie()}finally{Ov=0,zv(),Pv=0}}function Rv(){var e=Iv.now(),t=e-Nv;t>xie&&(Fv-=t,Nv=e)}function zv(){for(var e,t=jv,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:jv=n);Mv=e,Bv(r)}function Bv(e){Ov||(kv&&=clearTimeout(kv),e-Pv>24?(e<1/0&&(kv=setTimeout(Die,e-Iv.now()-Fv)),Av&&=clearInterval(Av)):(Av||=(Nv=Iv.now(),setInterval(Rv,xie)),Ov=1,Sie(Die)))}function Vv(e,t,n){var r=new Lv;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Hv=Yg(`start`,`end`,`cancel`,`interrupt`),Oie=[];function Uv(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;qv(e,n,{name:t,index:r,group:i,on:Hv,tween:Oie,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Wv(e,t){var n=Kv(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Gv(e,t){var n=Kv(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Kv(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function qv(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Tie(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Vv(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Vv(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Jv(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Yv(e){return this.each(function(){Jv(this,e)})}function kie(e,t){var n,r;return function(){var i=Gv(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Xv(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Gv(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Zv(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Kv(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?kie:Xv)(n,e,t))}function Qv(e,t,n){var r=e._id;return e.each(function(){var e=Gv(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Kv(e,r).value[t]}}function $v(e,t){var n;return(typeof t==`number`?Sv:t instanceof $_?_v:(n=$_(t))?(t=n,_v):lie)(e,t)}function Aie(e){return function(){this.removeAttribute(e)}}function jie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ey(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Mie(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Nie(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pie(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function ty(e,t){var n=t_(e),r=n===`transform`?gie:$v;return this.attrTween(e,typeof t==`function`?(n.local?Pie:Nie)(n,r,Qv(this,`attr.`+e,t)):t==null?(n.local?jie:Aie)(n):(n.local?Mie:ey)(n,r,t))}function ny(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Fie(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Iie(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fie(e,i)),n}return i._value=t,i}function Lie(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ny(e,i)),n}return i._value=t,i}function Rie(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=t_(e);return this.tween(n,(r.local?Iie:Lie)(r,t))}function zie(e,t){return function(){Wv(this,e).delay=+t.apply(this,arguments)}}function Bie(e,t){return t=+t,function(){Wv(this,e).delay=t}}function Vie(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?zie:Bie)(t,e)):Kv(this.node(),t).delay}function ry(e,t){return function(){Gv(this,e).duration=+t.apply(this,arguments)}}function Hie(e,t){return t=+t,function(){Gv(this,e).duration=t}}function iy(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ry:Hie)(t,e)):Kv(this.node(),t).duration}function Uie(e,t){if(typeof t!=`function`)throw Error();return function(){Gv(this,e).ease=t}}function Wie(e){var t=this._id;return arguments.length?this.each(Uie(t,e)):Kv(this.node(),t).ease}function Gie(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Gv(this,e).ease=n}}function Kie(e){if(typeof e!=`function`)throw Error();return this.each(Gie(this._id,e))}function qie(e){typeof e!=`function`&&(e=bne(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new _y(r,this._parents,this._name,this._id)}function Jie(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new _y(o,this._parents,this._name,this._id)}function ay(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Yie(e,t,n){var r,i,a=ay(t)?Wv:Gv;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function oy(e,t){var n=this._id;return arguments.length<2?Kv(this.node(),n).on.on(e):this.each(Yie(n,e,t))}function Xie(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Zie(){return this.on(`end.remove`,Xie(this._id))}function sy(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=wne(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Uv(l[f],t,n,f,l,Kv(u,n)));return new _y(a,this._parents,t,n)}function cy(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=i_(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Kv(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Uv(p,t,n,h,f,m);a.push(f),o.push(u)}return new _y(a,o,t,n)}var ly=k_.prototype.constructor;function uy(){return new ly(this._groups,this._parents)}function dy(e,t){var n,r,i;return function(){var a=h_(this,e),o=(this.style.removeProperty(e),h_(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function fy(e){return function(){this.style.removeProperty(e)}}function Qie(e,t,n){var r,i=n+``,a;return function(){var o=h_(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function $ie(e,t,n){var r,i,a;return function(){var o=h_(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),h_(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function eae(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Gv(this,e),l=c.on,u=c.value[a]==null?s||=fy(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function tae(e,t,n){var r=(e+=``)==`transform`?hie:$v;return t==null?this.styleTween(e,dy(e,r)).on(`end.style.`+e,fy(e)):typeof t==`function`?this.styleTween(e,$ie(e,r,Qv(this,`style.`+e,t))).each(eae(this._id,e)):this.styleTween(e,Qie(e,r,t),n).on(`end.style.`+e,null)}function nae(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function rae(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&nae(e,a,n)),r}return a._value=t,a}function py(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,rae(e,t,n??``))}function my(e){return function(){this.textContent=e}}function iae(e){return function(){var t=e(this);this.textContent=t??``}}function aae(e){return this.tween(`text`,typeof e==`function`?iae(Qv(this,`text`,e)):my(e==null?``:e+``))}function oae(e){return function(t){this.textContent=e.call(this,t)}}function sae(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&oae(r)),t}return r._value=e,r}function cae(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,sae(e))}function hy(){for(var e=this._name,t=this._id,n=dae(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Kv(c,t);Uv(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new _y(r,this._parents,e,n)}function lae(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Gv(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var gy=0;function _y(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function uae(e){return k_().transition(e)}function dae(){return++gy}var vy=k_.prototype;_y.prototype=uae.prototype={constructor:_y,select:sy,selectAll:cy,selectChild:vy.selectChild,selectChildren:vy.selectChildren,filter:qie,merge:Jie,selection:uy,transition:hy,call:vy.call,nodes:vy.nodes,node:vy.node,size:vy.size,empty:vy.empty,each:vy.each,on:oy,attr:ty,attrTween:Rie,style:tae,styleTween:py,text:aae,textTween:cae,remove:Zie,tween:Zv,delay:Vie,duration:iy,ease:Wie,easeVarying:Kie,end:lae,[Symbol.iterator]:vy[Symbol.iterator]};function fae(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var pae={time:null,delay:0,duration:250,ease:fae};function mae(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function hae(e){var t,n;e instanceof _y?(t=e._id,e=e._name):(t=dae(),(n=pae).time=Cie(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Uv(c,e,t,l,o,n||mae(c,t));return new _y(r,this._parents,e,t)}k_.prototype.interrupt=Yv,k_.prototype.transition=hae;var yy=e=>()=>e;function gae(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function by(e,t,n){this.k=e,this.x=t,this.y=n}by.prototype={constructor:by,scale:function(e){return e===1?this:new by(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new by(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var xy=new by(1,0,0);_ae.prototype=by.prototype;function _ae(e){for(;!e.__zoom;)if(!(e=e.parentNode))return xy;return e.__zoom}function vae(e){e.stopImmediatePropagation()}function Sy(e){e.preventDefault(),e.stopImmediatePropagation()}function yae(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function bae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function xae(){return this.__zoom||xy}function Cy(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Sae(){return navigator.maxTouchPoints||`ontouchstart`in this}function wy(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ty(){var e=yae,t=bae,n=wy,r=Cy,i=Sae,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Dv,l=Yg(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,xae).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,ee).on(`touchmove.zoom`,te).on(`touchend.zoom touchcancel.zoom`,ne).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,xae),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(xy.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new by(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new by(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new by(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=A_(this.that).datum();l.call(e,this.that,new gae(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=n_(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Jv(this),s.start();Sy(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=A_(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=n_(t,i),l=t.clientX,u=t.clientY;Kre(t.view),vae(t),a.mouse=[c,this.__zoom.invert(c)],Jv(this),a.start();function d(e){if(Sy(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=n_(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),N_(e.view,a.moved),Sy(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=n_(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Sy(r),s>0?A_(this).transition().duration(s).call(x,d,c,r):A_(this).call(_.transform,d,c,r)}}function ee(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(vae(t),s=0;s<i;++s)c=r[s],l=n_(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Jv(this),a.start())}}function te(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Sy(e),s=0;s<a;++s)c=i[s],l=n_(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ne(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(vae(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=n_(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=A_(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:yy(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:yy(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:yy(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:yy([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ey={error001:(e=`react`)=>`Seems like you have not used ${e===`svelte`?`SvelteFlowProvider`:`ReactFlowProvider`} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>`It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.`,error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>`The parent container needs a width and a height to render the graph.`,error005:()=>`Only child nodes can use a parent extent.`,error006:()=>`Can't create edge. An edge needs a source and a target.`,error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e===`source`?n:r}", edge id: ${t}.`,error010:()=>`Handle: No node id found. Make sure to only use a Handle inside a custom Node.`,error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e=`react`)=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>`useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.`,error015:()=>`It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.`,error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},Dy=[[-1/0,-1/0],[1/0,1/0]],Oy=[`Enter`,` `,`Escape`],ky={"node.a11yDescription.default":`Press enter or space to select a node. Press delete to remove it and escape to cancel.`,"node.a11yDescription.keyboardDisabled":`Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.`,"node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":`Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.`,"controls.ariaLabel":`Control Panel`,"controls.zoomIn.ariaLabel":`Zoom In`,"controls.zoomOut.ariaLabel":`Zoom Out`,"controls.fitView.ariaLabel":`Fit View`,"controls.interactive.ariaLabel":`Toggle Interactivity`,"minimap.ariaLabel":`Mini Map`,"handle.ariaLabel":`Handle`},Ay;(function(e){e.Strict=`strict`,e.Loose=`loose`})(Ay||={});var jy;(function(e){e.Free=`free`,e.Vertical=`vertical`,e.Horizontal=`horizontal`})(jy||={});var My;(function(e){e.Partial=`partial`,e.Full=`full`})(My||={});var Cae={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},Ny;(function(e){e.Bezier=`default`,e.Straight=`straight`,e.Step=`step`,e.SmoothStep=`smoothstep`,e.SimpleBezier=`simplebezier`})(Ny||={});var Py;(function(e){e.Arrow=`arrow`,e.ArrowClosed=`arrowclosed`})(Py||={});var Fy;(function(e){e.Left=`left`,e.Top=`top`,e.Right=`right`,e.Bottom=`bottom`})(Fy||={});var Iy={[Fy.Left]:Fy.Right,[Fy.Right]:Fy.Left,[Fy.Top]:Fy.Bottom,[Fy.Bottom]:Fy.Top},Ly=e=>!!e&&typeof e==`object`&&`id`in e&&`source`in e&&`target`in e,wae=e=>!!e&&typeof e==`object`&&`id`in e&&`position`in e&&!(`source`in e)&&!(`target`in e),Ry=e=>!!e&&typeof e==`object`&&`id`in e&&`internals`in e&&!(`source`in e)&&!(`target`in e),zy=(e,t=[0,0])=>{let{width:n,height:r}=fb(e),i=e.origin??t,a=n*i[0],o=r*i[1];return{x:e.position.x-a,y:e.position.y-o}},By=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=!1,r=e.reduce((e,r)=>{let i=typeof r==`string`,a=!t.nodeLookup&&!i?r:void 0;return t.nodeLookup&&(a=i?t.nodeLookup.get(r):Ry(r)?r:t.nodeLookup.get(r.id)),a?(n=!0,Yy(e,$y(a,t.nodeOrigin))):e},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return n?Zy(r):{x:0,y:0,width:0,height:0}},Vy=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(t.filter===void 0||t.filter(e))&&(n=Yy(n,$y(e)),r=!0)}),r?Zy(n):{x:0,y:0,width:0,height:0}},Hy=(e,t,[n,r,i]=[0,0,1],a=!1,o=!1)=>{let s=(t.x-n)/i,c=(t.y-r)/i,l=t.width/i,u=t.height/i,d=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(o&&!n||r)continue;let i=e.width??t.width??t.initialWidth??0,f=e.height??t.height??t.initialHeight??0,{x:p,y:m}=t.internals.positionAbsolute,h=eb(s,c,l,u,p,m,i,f),g=i*f,_=a&&h>0;(!t.internals.handleBounds||_||h>=g||t.dragging)&&d.push(t)}return d},Uy=(e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))};function Tae(e,t){let n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{let i;if(t?.includeHiddenNodes){let{width:t,height:n}=fb(e);i=t>0&&n>0}else i=!!(e.measured.width&&e.measured.height&&!e.hidden);i&&(!r||r.has(e.id))&&n.set(e.id,e)}),n}async function Wy({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},o){if(e.size===0)return!0;let s=lb(Vy(Tae(e,o)),t,n,o?.minZoom??i,o?.maxZoom??a,o?.padding??.1);return await r.setViewport(s,{duration:o?.duration,ease:o?.ease,interpolate:o?.interpolate}),!0}function Gy({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){let o=n.get(e),s=o.parentId?n.get(o.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},u=o.origin??r,d=o.extent||i;if(o.extent===`parent`&&!o.expandParent)if(!s)a?.(`005`,Ey.error005());else{let{width:e,height:t}=fb(s);e&&t&&(d=[[c,l],[c+e,l+t]])}else s&&db(o.extent)&&(d=[[o.extent[0][0]+c,o.extent[0][1]+l],[o.extent[1][0]+c,o.extent[1][1]+l]]);let f=db(d)?qy(t,d,o.measured):t;return(o.measured.width===void 0||o.measured.height===void 0)&&a?.(`015`,Ey.error015()),{position:{x:f.x-c+(o.measured.width??0)*u[0],y:f.y-l+(o.measured.height??0)*u[1]},positionAbsolute:f}}async function Eae({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let a=new Set(e.map(e=>e.id)),o=[];for(let e of n){if(e.deletable===!1)continue;let t=a.has(e.id),n=!t&&e.parentId&&o.find(t=>t.id===e.parentId);(t||n)&&o.push(e)}let s=new Set(t.map(e=>e.id)),c=r.filter(e=>e.deletable!==!1),l=Uy(o,c);for(let e of c)s.has(e.id)&&!l.find(t=>t.id===e.id)&&l.push(e);if(!i)return{edges:l,nodes:o};let u=await i({nodes:o,edges:l});return typeof u==`boolean`?u?{edges:l,nodes:o}:{edges:[],nodes:[]}:u}var Ky=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),qy=(e={x:0,y:0},t,n)=>({x:Ky(e.x,t[0][0],t[1][0]-(n?.width??0)),y:Ky(e.y,t[0][1],t[1][1]-(n?.height??0))});function Dae(e,t,n){let{width:r,height:i}=fb(n),{x:a,y:o}=n.internals.positionAbsolute;return qy(e,[[a,o],[a+r,o+i]],t)}var Oae=(e,t,n)=>e<t?Ky(Math.abs(e-t),1,t)/t:e>n?-Ky(Math.abs(e-n),1,t)/t:0,Jy=(e,t,n=15,r=40)=>[Oae(e.x,r,t.width-r)*n,Oae(e.y,r,t.height-r)*n],Yy=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Xy=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Zy=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Qy=(e,t=[0,0])=>{let{x:n,y:r}=Ry(e)?e.internals.positionAbsolute:zy(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},$y=(e,t=[0,0])=>{let{x:n,y:r}=Ry(e)?e.internals.positionAbsolute:zy(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},kae=(e,t)=>Zy(Yy(Xy(e),Xy(t))),eb=(e,t,n,r,i,a,o,s)=>{let c=Math.max(0,Math.min(e+n,i+o)-Math.max(e,i)),l=Math.max(0,Math.min(t+r,a+s)-Math.max(t,a));return Math.ceil(c*l)},tb=(e,t)=>eb(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),nb=e=>rb(e.width)&&rb(e.height)&&rb(e.x)&&rb(e.y),rb=e=>!isNaN(e)&&isFinite(e),Aae=(e,t)=>(e,t)=>{},ib=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),ab=({x:e,y:t},[n,r,i],a=!1,o=[1,1])=>{let s={x:(e-n)/i,y:(t-r)/i};return a?ib(s,o):s},ob=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function sb(e,t){if(typeof e==`number`)return Math.floor((t-t/(1+e))*.5);if(typeof e==`string`&&e.endsWith(`px`)){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e==`string`&&e.endsWith(`%`)){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function jae(e,t,n){if(typeof e==`string`||typeof e==`number`){let r=sb(e,n),i=sb(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e==`object`){let r=sb(e.top??e.y??0,n),i=sb(e.bottom??e.y??0,n),a=sb(e.left??e.x??0,t),o=sb(e.right??e.x??0,t);return{top:r,right:o,bottom:i,left:a,x:a+o,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function cb(e,t,n,r,i,a){let{x:o,y:s}=ob(e,[t,n,r]),{x:c,y:l}=ob({x:e.x+e.width,y:e.y+e.height},[t,n,r]),u=i-c,d=a-l;return{left:Math.floor(o),top:Math.floor(s),right:Math.floor(u),bottom:Math.floor(d)}}var lb=(e,t,n,r,i,a)=>{let o=jae(a,t,n),s=(t-o.x)/e.width,c=(n-o.y)/e.height,l=Ky(Math.min(s,c),r,i),u=e.x+e.width/2,d=e.y+e.height/2,f=t/2-u*l,p=n/2-d*l,m=cb(e,f,p,l,t,n),h={left:Math.min(m.left-o.left,0),top:Math.min(m.top-o.top,0),right:Math.min(m.right-o.right,0),bottom:Math.min(m.bottom-o.bottom,0)};return{x:f-h.left+h.right,y:p-h.top+h.bottom,zoom:l}},ub=()=>typeof navigator<`u`&&navigator?.userAgent?.indexOf(`Mac`)>=0;function db(e){return e!=null&&e!==`parent`}function fb(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function pb(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function mb(e,t={width:0,height:0},n,r,i){let a={...e},o=r.get(n);if(o){let e=o.origin||i;a.x+=o.internals.positionAbsolute.x-(t.width??0)*e[0],a.y+=o.internals.positionAbsolute.y-(t.height??0)*e[1]}return a}function hb(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function gb(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function _b(e){return{...ky,...e||{}}}function Mae(e,t){if(!e&&!t)return!0;if(!e||!t||e.size!==t.size)return!1;if(!e.size&&!t.size)return!0;for(let n of e.keys())if(!t.has(n))return!1;return!0}function vb(e,t,n){if(!n)return;let r=[];e.forEach((e,n)=>{t?.has(n)||r.push(e)}),r.length&&n(r)}function Nae(e){return e===null?null:e?`valid`:`invalid`}function yb(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:a,y:o}=Sb(e),s=ab({x:a-(i?.left??0),y:o-(i?.top??0)},r),{x:c,y:l}=n?ib(s,t):s;return{xSnapped:c,ySnapped:l,...s}}var bb=e=>({width:e.offsetWidth,height:e.offsetHeight}),xb=e=>e?.getRootNode?.()||window?.document,Pae=[`INPUT`,`SELECT`,`TEXTAREA`];function Fae(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1?Pae.includes(t.nodeName)||t.hasAttribute(`contenteditable`)||!!t.closest(`.nokey`):!1}var Iae=e=>`clientX`in e,Sb=(e,t)=>{let n=Iae(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},Lae=(e,t,n,r,i)=>{let a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute(`data-handleid`),type:e,nodeId:i,position:t.getAttribute(`data-handlepos`),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...bb(t)}})};function Rae({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:s}){let c=e*.125+i*.375+o*.375+n*.125,l=t*.125+a*.375+s*.375+r*.125;return[c,l,Math.abs(c-e),Math.abs(l-t)]}function Cb(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function wb({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case Fy.Left:return[t-Cb(t-r,a),n];case Fy.Right:return[t+Cb(r-t,a),n];case Fy.Top:return[t,n-Cb(n-i,a)];case Fy.Bottom:return[t,n+Cb(i-n,a)]}}function Tb({sourceX:e,sourceY:t,sourcePosition:n=Fy.Bottom,targetX:r,targetY:i,targetPosition:a=Fy.Top,curvature:o=.25}){let[s,c]=wb({pos:n,x1:e,y1:t,x2:r,y2:i,c:o}),[l,u]=wb({pos:a,x1:r,y1:i,x2:e,y2:t,c:o}),[d,f,p,m]=Rae({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,d,f,p,m]}function Eb({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,a=n<e?n+i:n-i,o=Math.abs(r-t)/2;return[a,r<t?r+o:r-o,i,o]}function Db({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a=`basic`}){return a===`manual`?r:(i&&n?r+1e3:r)+Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0)}function Ob({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let a=Yy($y(e),$y(t));return a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1),tb({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},Zy(a))>0}var zae=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||``}-${n}${r||``}`,Bae=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),Vae=(e,t,n={})=>{if(!e.source||!e.target)return n.onError?.(`006`,Ey.error006()),t;let r=n.getEdgeId||zae,i;return i=Ly(e)?{...e}:{...e,id:r(e)},Bae(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function Hae({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,a,o,s]=Eb({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,o,s]}var kb={[Fy.Left]:{x:-1,y:0},[Fy.Right]:{x:1,y:0},[Fy.Top]:{x:0,y:-1},[Fy.Bottom]:{x:0,y:1}},Uae=({source:e,sourcePosition:t=Fy.Bottom,target:n})=>t===Fy.Left||t===Fy.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Ab=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2);function Wae({source:e,sourcePosition:t=Fy.Bottom,target:n,targetPosition:r=Fy.Top,center:i,offset:a,stepPosition:o}){let s=kb[t],c=kb[r],l={x:e.x+s.x*a,y:e.y+s.y*a},u={x:n.x+c.x*a,y:n.y+c.y*a},d=Uae({source:l,sourcePosition:t,target:u}),f=d.x===0?`y`:`x`,p=d[f],m=[],h,g,_={x:0,y:0},v={x:0,y:0},[,,y,b]=Eb({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f===`x`?(h=i.x??l.x+(u.x-l.x)*o,g=i.y??(l.y+u.y)/2):(h=i.x??(l.x+u.x)/2,g=i.y??l.y+(u.y-l.y)*o);let e=[{x:h,y:l.y},{x:h,y:u.y}],t=[{x:l.x,y:g},{x:u.x,y:g}];m=s[f]===p?f===`x`?e:t:f===`x`?t:e}else{let i=[{x:l.x,y:u.y}],o=[{x:u.x,y:l.y}];if(m=f===`x`?s.x===p?o:i:s.y===p?i:o,t===r){let t=Math.abs(e[f]-n[f]);if(t<=a){let r=Math.min(a-1,a-t);s[f]===p?_[f]=(l[f]>e[f]?-1:1)*r:v[f]=(u[f]>n[f]?-1:1)*r}}if(t!==r){let e=f===`x`?`y`:`x`,t=s[f]===c[e],n=l[e]>u[e],r=l[e]<u[e];(s[f]===1&&(!t&&n||t&&r)||s[f]!==1&&(!t&&r||t&&n))&&(m=f===`x`?i:o)}let d={x:l.x+_.x,y:l.y+_.y},y={x:u.x+v.x,y:u.y+v.y};Math.max(Math.abs(d.x-m[0].x),Math.abs(y.x-m[0].x))>=Math.max(Math.abs(d.y-m[0].y),Math.abs(y.y-m[0].y))?(h=(d.x+y.x)/2,g=m[0].y):(h=m[0].x,g=(d.y+y.y)/2)}let x={x:l.x+_.x,y:l.y+_.y},S={x:u.x+v.x,y:u.y+v.y};return[[e,...x.x!==m[0].x||x.y!==m[0].y?[x]:[],...m,...S.x!==m[m.length-1].x||S.y!==m[m.length-1].y?[S]:[],n],h,g,y,b]}function jb(e,t,n,r){let i=Math.min(Ab(e,t)/2,Ab(t,n)/2,r),{x:a,y:o}=t;if(e.x===a&&a===n.x||e.y===o&&o===n.y)return`L${a} ${o}`;if(e.y===o){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${a+i*t},${o}Q ${a},${o} ${a},${o+i*r}`}let s=e.x<n.x?1:-1;return`L ${a},${o+i*(e.y<n.y?-1:1)}Q ${a},${o} ${a+i*s},${o}`}function Mb({sourceX:e,sourceY:t,sourcePosition:n=Fy.Bottom,targetX:r,targetY:i,targetPosition:a=Fy.Top,borderRadius:o=5,centerX:s,centerY:c,offset:l=20,stepPosition:u=.5}){let[d,f,p,m,h]=Wae({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:s,y:c},offset:l,stepPosition:u}),g=`M${d[0].x} ${d[0].y}`;for(let e=1;e<d.length-1;e++)g+=jb(d[e-1],d[e],d[e+1],o);return g+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[g,f,p,m,h]}function Nb(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Pb(e){let{sourceNode:t,targetNode:n}=e;if(!Nb(t)||!Nb(n))return null;let r=t.internals.handleBounds||Fb(t.handles),i=n.internals.handleBounds||Fb(n.handles),a=Lb(r?.source??[],e.sourceHandle),o=Lb(e.connectionMode===Ay.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!a||!o)return e.onError?.(`008`,Ey.error008(a?`target`:`source`,{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let s=a?.position||Fy.Bottom,c=o?.position||Fy.Top,l=Ib(t,a,s),u=Ib(n,o,c);return{sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y,sourcePosition:s,targetPosition:c}}function Fb(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,r.type===`source`?t.push(r):r.type===`target`&&n.push(r);return{source:t,target:n}}function Ib(e,t,n=Fy.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,a=(t?.y??0)+e.internals.positionAbsolute.y,{width:o,height:s}=t??fb(e);if(r)return{x:i+o/2,y:a+s/2};switch(t?.position??n){case Fy.Top:return{x:i+o/2,y:a};case Fy.Right:return{x:i+o,y:a+s/2};case Fy.Bottom:return{x:i+o/2,y:a+s};case Fy.Left:return{x:i,y:a+s/2}}}function Lb(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function Rb(e,t){return e?typeof e==`string`?e:`${t?`${t}__`:``}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join(`&`)}`:``}function zb(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let a=new Set;return e.reduce((e,o)=>([o.markerStart||r,o.markerEnd||i].forEach(r=>{if(r&&typeof r==`object`){let i=Rb(r,t);a.has(i)||(e.push({id:i,color:r.color||n,...r}),a.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}function Gae(e,t,n,r,i){let a=.5;i===`start`?a=0:i===`end`&&(a=1);let o=[(e.x+e.width*a)*t.zoom+t.x,e.y*t.zoom+t.y-r],s=[-100*a,-100];switch(n){case Fy.Right:o=[(e.x+e.width)*t.zoom+t.x+r,(e.y+e.height*a)*t.zoom+t.y],s=[0,-100*a];break;case Fy.Bottom:o[1]=(e.y+e.height)*t.zoom+t.y+r,s[1]=0;break;case Fy.Left:o=[e.x*t.zoom+t.x-r,(e.y+e.height*a)*t.zoom+t.y],s=[-100,-100*a];break}return`translate(${o[0]}px, ${o[1]}px) translate(${s[0]}%, ${s[1]}%)`}var Kae=1e3,qae=10,Jae={nodeOrigin:[0,0],nodeExtent:Dy,elevateNodesOnSelect:!0,zIndexMode:`basic`,defaults:{}},Yae={...Jae,checkEquality:!0};function Xae(e,t){let n={...e};for(let e in t)t[e]!==void 0&&(n[e]=t[e]);return n}function Bb(e,t,n){let r=Xae(Jae,n);for(let n of e.values())if(n.parentId)$ae(n,e,t,r);else{let e=qy(zy(n,r.nodeOrigin),db(n.extent)?n.extent:r.nodeExtent,fb(n));n.internals.positionAbsolute=e}}function Vb(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};t.type===`source`?n.push(i):t.type===`target`&&r.push(i)}return{source:n,target:r}}function Hb(e){return e===`manual`}function Zae(e,t,n,r={}){let i=Xae(Yae,r),a={i:0},o=new Map(t),s=i?.elevateNodesOnSelect&&!Hb(i.zIndexMode)?Kae:0,c=e.length>0,l=!1;t.clear(),n.clear();for(let u of e){let e=o.get(u.id);if(i.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{let n=qy(zy(u,i.nodeOrigin),db(u.extent)?u.extent:i.nodeExtent,fb(u));e={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:n,handleBounds:Vb(u,e),z:eoe(u,s,i.zIndexMode),userNode:u}},t.set(u.id,e)}(e.measured===void 0||e.measured.width===void 0||e.measured.height===void 0)&&!e.hidden&&(c=!1),u.parentId&&$ae(e,t,n,r,a),l||=u.selected??!1}return{nodesInitialized:c,hasSelectedNodes:l}}function Qae(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function $ae(e,t,n,r,i){let{elevateNodesOnSelect:a,nodeOrigin:o,nodeExtent:s,zIndexMode:c}=Xae(Jae,r),l=e.parentId,u=t.get(l);if(!u){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}Qae(e,n),i&&!u.parentId&&u.internals.rootParentIndex===void 0&&c===`auto`&&(u.internals.rootParentIndex=++i.i,u.internals.z=u.internals.z+i.i*qae),i&&u.internals.rootParentIndex!==void 0&&(i.i=u.internals.rootParentIndex);let{x:d,y:f,z:p}=toe(e,u,o,s,a&&!Hb(c)?Kae:0,c),{positionAbsolute:m}=e.internals,h=d!==m.x||f!==m.y;(h||p!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:h?{x:d,y:f}:m,z:p}})}function eoe(e,t,n){let r=rb(e.zIndex)?e.zIndex:0;return Hb(n)?r:r+(e.selected?t:0)}function toe(e,t,n,r,i,a){let{x:o,y:s}=t.internals.positionAbsolute,c=fb(e),l=zy(e,n),u=db(e.extent)?qy(l,e.extent,c):l,d=qy({x:o+u.x,y:s+u.y},r,c);e.extent===`parent`&&(d=Dae(d,c,t));let f=eoe(e,i,a),p=t.internals.z??0;return{x:d.x,y:d.y,z:p>=f?p+1:f}}function Ub(e,t,n,r=[0,0]){let i=[],a=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=kae(a.get(n.parentId)?.expandedRect??Qy(e),n.rect);a.set(n.parentId,{expandedRect:r,parent:e})}return a.size>0&&a.forEach(({expandedRect:t,parent:a},o)=>{let s=a.internals.positionAbsolute,c=fb(a),l=a.origin??r,u=t.x<s.x?Math.round(Math.abs(s.x-t.x)):0,d=t.y<s.y?Math.round(Math.abs(s.y-t.y)):0,f=Math.max(c.width,Math.round(t.width)),p=Math.max(c.height,Math.round(t.height)),m=(f-c.width)*l[0],h=(p-c.height)*l[1];(u>0||d>0||m||h)&&(i.push({id:o,type:`position`,position:{x:a.position.x-u+m,y:a.position.y-d+h}}),n.get(o)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:`position`,position:{x:t.position.x+u,y:t.position.y+d}})})),(c.width<t.width||c.height<t.height||u||d)&&i.push({id:o,type:`dimensions`,setAttributes:!0,dimensions:{width:f+(u?l[0]*u-m:0),height:p+(d?l[1]*d-h:0)}})}),i}function noe(e,t,n,r,i,a,o){let s=r?.querySelector(`.xyflow__viewport`),c=!1;if(!s)return{changes:[],updatedInternals:c};let l=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),c=!0;continue}let s=bb(r.nodeElement),u=e.measured.width!==s.width||e.measured.height!==s.height;if(s.width&&s.height&&(u||!e.internals.handleBounds||r.force)){let p=r.nodeElement.getBoundingClientRect(),m=db(e.extent)?e.extent:a,{positionAbsolute:h}=e.internals;if(e.parentId&&e.extent===`parent`){let n=t.get(e.parentId);n&&(h=Dae(h,s,n))}else m&&(h=qy(h,m,s));let g={...e,measured:s,internals:{...e.internals,positionAbsolute:h,handleBounds:{source:Lae(`source`,r.nodeElement,p,d,e.id),target:Lae(`target`,r.nodeElement,p,d,e.id)}}};t.set(e.id,g),e.parentId&&$ae(g,t,n,{nodeOrigin:i,zIndexMode:o}),c=!0,u&&(l.push({id:e.id,type:`dimensions`,dimensions:s}),e.expandParent&&e.parentId&&f.push({id:e.id,parentId:e.parentId,rect:Qy(g,i)}))}}if(f.length>0){let e=Ub(f,t,n,i);l.push(...e)}return{changes:l,updatedInternals:c}}async function roe({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return!1;let o=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r);return!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2])}function ioe(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${i}-${e}`;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o=`${i}-${e}-${a}`;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function Wb(e,t,n){e.clear(),t.clear();for(let r of n){let{source:n,target:i,sourceHandle:a=null,targetHandle:o=null}=r,s={edgeId:r.id,source:n,target:i,sourceHandle:a,targetHandle:o},c=`${n}-${a}--${i}-${o}`;ioe(`source`,s,`${i}-${o}--${n}-${a}`,e,n,a),ioe(`target`,s,c,e,i,o),t.set(r.id,r)}}function Gb(e,t){if(!e.parentId)return!1;let n=t.get(e.parentId);return n?n.selected?!0:Gb(n,t):!1}function Kb(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function aoe(e,t,n,r){let i=new Map;for(let[a,o]of e)if((o.selected||o.id===r)&&(!o.parentId||!Gb(o,e))&&(o.draggable||t&&o.draggable===void 0)){let t=e.get(a);t&&i.set(a,{id:a,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}function qb({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,a]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:a.position,dragging:r})}if(!e)return[i[0],i];let a=n.get(e)?.internals.userNode;return[a?{...a,position:t.get(e)?.position||a.position,dragging:r}:i[0],i]}function Jb({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let a={x:n-i.distance.x,y:r-i.distance.y},o=ib(a,t);return{x:o.x-a.x,y:o.y-a.y}}function Yb({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},o=0,s=new Map,c=!1,l={x:0,y:0},u=null,d=!1,f=null,p=!1,m=!1,h=null;function g({noDragClassName:g,handleSelector:_,domNode:v,isSelectable:y,nodeId:b,nodeClickDistance:x=0}){f=A_(v);function S({x:e,y:n}){let{nodeLookup:i,nodeExtent:o,snapGrid:c,snapToGrid:l,nodeOrigin:u,onNodeDrag:d,onSelectionDrag:f,onError:p,updateNodePositions:g}=t();a={x:e,y:n};let _=!1,v=s.size>1,y=v&&o?Xy(Vy(s)):null,x=v&&l?Jb({dragItems:s,snapGrid:c,x:e,y:n}):null;for(let[t,r]of s){if(!i.has(t))continue;let a={x:e-r.distance.x,y:n-r.distance.y};l&&(a=x?{x:Math.round(a.x+x.x),y:Math.round(a.y+x.y)}:ib(a,c));let s=null;if(v&&o&&!r.extent&&y){let{positionAbsolute:e}=r.internals,t=e.x-y.x+o[0][0],n=e.x+r.measured.width-y.x2+o[1][0],i=e.y-y.y+o[0][1],a=e.y+r.measured.height-y.y2+o[1][1];s=[[t,i],[n,a]]}let{position:d,positionAbsolute:f}=Gy({nodeId:t,nextPosition:a,nodeLookup:i,nodeExtent:s||o,nodeOrigin:u,onError:p});_=_||r.position.x!==d.x||r.position.y!==d.y,r.position=d,r.internals.positionAbsolute=f}if(m||=_,_&&(g(s,!0),h&&(r||d||!b&&f))){let[e,t]=qb({nodeId:b,dragItems:s,nodeLookup:i});r?.(h,s,e,t),d?.(h,e,t),b||f?.(h,t)}}async function C(){if(!u)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){c=!1,cancelAnimationFrame(o);return}let[s,d]=Jy(l,u,r);(s!==0||d!==0)&&(a.x=(a.x??0)-s/e[2],a.y=(a.y??0)-d/e[2],await n({x:s,y:d})&&S(a)),o=requestAnimationFrame(C)}function w(r){let{nodeLookup:i,multiSelectionActive:o,nodesDraggable:c,transform:l,snapGrid:f,snapToGrid:p,selectNodesOnDrag:m,onNodeDragStart:h,onSelectionDragStart:g,unselectNodesAndEdges:_}=t();d=!0,(!m||!y)&&!o&&b&&(i.get(b)?.selected||_()),y&&m&&b&&e?.(b);let v=yb(r.sourceEvent,{transform:l,snapGrid:f,snapToGrid:p,containerBounds:u});if(a=v,s=aoe(i,c,v,b),s.size>0&&(n||h||!b&&g)){let[e,t]=qb({nodeId:b,dragItems:s,nodeLookup:i});n?.(r.sourceEvent,s,e,t),h?.(r.sourceEvent,e,t),b||g?.(r.sourceEvent,t)}}let T=L_().clickDistance(x).on(`start`,e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:o,snapToGrid:s}=t();u=n?.getBoundingClientRect()||null,p=!1,m=!1,h=e.sourceEvent,r===0&&w(e),a=yb(e.sourceEvent,{transform:i,snapGrid:o,snapToGrid:s,containerBounds:u}),l=Sb(e.sourceEvent,u)}).on(`drag`,e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:o,nodeDragThreshold:f,nodeLookup:m}=t(),g=yb(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:o,containerBounds:u});if(h=e.sourceEvent,(e.sourceEvent.type===`touchmove`&&e.sourceEvent.touches.length>1||b&&!m.has(b))&&(p=!0),!p){if(!c&&n&&d&&(c=!0,C()),!d){let t=Sb(e.sourceEvent,u),n=t.x-l.x,r=t.y-l.y;Math.sqrt(n*n+r*r)>f&&w(e)}(a.x!==g.xSnapped||a.y!==g.ySnapped)&&s&&d&&(l=Sb(e.sourceEvent,u),S(g))}}).on(`end`,e=>{if(!d||p){p&&s.size>0&&t().updateNodePositions(s,!1);return}if(c=!1,d=!1,cancelAnimationFrame(o),s.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:a,onSelectionDragStop:o}=t();if(m&&=(r(s,!1),!1),i||a||!b&&o){let[t,r]=qb({nodeId:b,dragItems:s,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,s,t,r),a?.(e.sourceEvent,t,r),b||o?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!g||!Kb(t,`.${g}`,v))&&(!_||Kb(t,_,v))});f.call(T)}function _(){f?.on(`.drag`,null)}return{update:g,destroy:_}}function Xb(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())tb(i,Qy(e))>0&&r.push(e);return r}var Zb=250;function ooe(e,t,n,r){let i=[],a=1/0,o=Xb(e,n,t+Zb);for(let n of o){let o=[...n.internals.handleBounds?.source??[],...n.internals.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=Ib(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type===`source`?`target`:`source`;return i.find(t=>t.type===e)??i[0]}return i[0]}function Qb(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===`strict`?o.internals.handleBounds?.[t]:[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...Ib(o,c,c.position,!0)}:c}function soe(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function coe(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}var loe=()=>!0;function uoe(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:o,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:p,onConnectStart:m,onConnect:h,onConnectEnd:g,isValidConnection:_=loe,onReconnectEnd:v,updateConnection:y,getTransform:b,getFromHandle:x,autoPanSpeed:S,dragThreshold:C=1,handleDomNode:w}){let T=xb(e.target),E=0,ee,{x:te,y:ne}=Sb(e),re=soe(a,w),ie=s?.getBoundingClientRect(),ae=!1;if(!ie||!re)return;let oe=Qb(i,re,r,c,t);if(!oe)return;let se=Sb(e,ie),ce=!1,le=null,ue=!1,de=null;function fe(){if(!u||!ie)return;let[e,t]=Jy(se,ie,S);f({x:e,y:t}),E=requestAnimationFrame(fe)}let pe={...oe,nodeId:i,type:re,position:oe.position},me=c.get(i),he={inProgress:!0,isValid:null,from:Ib(me,pe,Fy.Left,!0),fromHandle:pe,fromPosition:pe.position,fromNode:me,to:se,toHandle:null,toPosition:Iy[pe.position],toNode:null,pointer:se};function ge(){ae=!0,y(he),m?.(e,{nodeId:i,handleId:r,handleType:re})}C===0&&ge();function _e(e){if(!ae){let{x:t,y:n}=Sb(e),r=t-te,i=n-ne;if(!(r*r+i*i>C*C))return;ge()}if(!x()||!pe){ve(e);return}let a=b();se=Sb(e,ie),ee=ooe(ab(se,a,!1,[1,1]),n,c,pe),ce||=(fe(),!0);let s=$b(e,{handle:ee,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:o?`target`:`source`,isValidConnection:_,doc:T,lib:l,flowId:d,nodeLookup:c});de=s.handleDomNode,le=s.connection,ue=coe(!!ee,s.isValid);let u=c.get(i),f=u?Ib(u,pe,Fy.Left,!0):he.from,p={...he,from:f,isValid:ue,to:s.toHandle&&ue?ob({x:s.toHandle.x,y:s.toHandle.y},a):se,toHandle:s.toHandle,toPosition:ue&&s.toHandle?s.toHandle.position:Iy[pe.position],toNode:s.toHandle?c.get(s.toHandle.nodeId):null,pointer:se};y(p),he=p}function ve(e){if(!(`touches`in e&&e.touches.length>0)){if(ae){(ee||de)&&le&&ue&&h?.(le);let{inProgress:t,...n}=he,r={...n,toPosition:he.toHandle?he.toPosition:null};g?.(e,r),a&&v?.(e,r)}p(),cancelAnimationFrame(E),ce=!1,ue=!1,le=null,de=null,T.removeEventListener(`mousemove`,_e),T.removeEventListener(`mouseup`,ve),T.removeEventListener(`touchmove`,_e),T.removeEventListener(`touchend`,ve)}}T.addEventListener(`mousemove`,_e),T.addEventListener(`mouseup`,ve),T.addEventListener(`touchmove`,_e),T.addEventListener(`touchend`,ve)}function $b(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=loe,nodeLookup:u}){let d=a===`target`,f=t?o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:m}=Sb(e),h=o.elementFromPoint(p,m),g=h?.classList.contains(`${s}-flow__handle`)?h:f,_={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let e=soe(void 0,g),t=g.getAttribute(`data-nodeid`),a=g.getAttribute(`data-handleid`),o=g.classList.contains(`connectable`),s=g.classList.contains(`connectableend`);if(!t||!e)return _;let c={source:d?t:r,sourceHandle:d?a:i,target:d?r:t,targetHandle:d?i:a};_.connection=c,_.isValid=o&&s&&(n===Ay.Strict?d&&e===`source`||!d&&e===`target`:t!==r||a!==i)&&l(c),_.toHandle=Qb(t,e,a,u,n,!0)}return _}var doe={onPointerDown:uoe,isValid:$b};function foe({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=A_(e);function a({translateExtent:e,width:a,height:o,zoomStep:s=1,pannable:c=!0,zoomable:l=!0,inversePan:u=!1}){let d=e=>{if(e.sourceEvent.type!==`wheel`||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&ub()?10:1,a=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*s,o=r[2]*2**(a*i);t.scaleTo(o)},f=[0,0],p=Ty().on(`start`,e=>{(e.sourceEvent.type===`mousedown`||e.sourceEvent.type===`touchstart`)&&(f=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on(`zoom`,c?i=>{let s=n();if(i.sourceEvent.type!==`mousemove`&&i.sourceEvent.type!==`touchmove`||!t)return;let c=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],l=[c[0]-f[0],c[1]-f[1]];f=c;let d=r()*Math.max(s[2],Math.log(s[2]))*(u?-1:1),p={x:s[0]-l[0]*d,y:s[1]-l[1]*d},m=[[0,0],[a,o]];t.setViewportConstrained({x:p.x,y:p.y,zoom:s[2]},m,e)}:null).on(`zoom.wheel`,l?d:null);i.call(p,{})}function o(){i.on(`zoom`,null)}return{update:a,destroy:o,pointer:n_}}var ex=e=>({x:e.x,y:e.y,zoom:e.k}),tx=({x:e,y:t,zoom:n})=>xy.translate(e,t).scale(n),nx=(e,t)=>e.target.closest(`.${t}`),rx=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),poe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,ix=(e,t=0,n=poe,r=()=>{})=>{let i=typeof t==`number`&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on(`end`,r):e},moe=e=>{let t=e.ctrlKey&&ub()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function hoe({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:o,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return u=>{if(nx(u,t))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();let d=n.property(`__zoom`).k||1;if(u.ctrlKey&&o){let e=n_(u),t=d*2**moe(u);r.scaleTo(n,t,e,u);return}let f=u.deltaMode===1?20:1,p=i===jy.Vertical?0:u.deltaX*f,m=i===jy.Horizontal?0:u.deltaY*f;!ub()&&u.shiftKey&&i!==jy.Vertical&&(p=u.deltaY*f,m=0),r.translateBy(n,-(p/d)*a,-(m/d)*a,{internal:!0});let h=ex(n.property(`__zoom`));clearTimeout(e.panScrollTimeout),e.isPanScrolling?c?.(u,h):(e.isPanScrolling=!0,s?.(u,h)),e.panScrollTimeout=setTimeout(()=>{l?.(u,h),e.isPanScrolling=!1},150)}}function goe({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let a=r.type===`wheel`,o=!t&&a&&!r.ctrlKey,s=nx(r,e);if(r.ctrlKey&&a&&s&&r.preventDefault(),o||s)return null;r.preventDefault(),n.call(this,r,i)}}function ax({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=ex(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type===`mousedown`&&t(!0),n&&n?.(r.sourceEvent,i)}}function _oe({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{e.usedRightMouseButton=!!(n&&rx(t,e.mouseButton??0)),a.sourceEvent?.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!a.sourceEvent?.internal&&i?.(a.sourceEvent,ex(a.transform))}}function ox({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return o=>{if(!o.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,a&&rx(t,e.mouseButton??0)&&!e.usedRightMouseButton&&o.sourceEvent&&a(o.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=ex(o.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(o.sourceEvent,t)},n?150:0)}}}function voe({panActivationKeyPressed:e,zoomActivationKeyPressed:t,zoomOnScroll:n,zoomOnPinch:r,panOnDrag:i,panOnScroll:a,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:c,noPanClassName:l,lib:u,connectionInProgress:d}){return f=>{let p=t||n,m=r&&f.ctrlKey,h=f.type===`wheel`;if(f.button===1&&f.type===`mousedown`&&(nx(f,`${u}-flow__node`)||nx(f,`${u}-flow__edge`)||nx(f,`${u}-flow__selection`)||nx(f,`${u}-flow__nodesselection`)))return!0;if(!i&&!p&&!a&&!o&&!r||s||d&&!h||nx(f,c)&&h||nx(f,l)&&(!h||a&&h&&!t)||!r&&f.ctrlKey&&h)return!1;if(!r&&f.type===`touchstart`&&f.touches?.length>1)return f.preventDefault(),!1;if(!p&&!a&&!m&&h||!i&&(f.type===`mousedown`||f.type===`touchstart`)||Array.isArray(i)&&!i.includes(f.button)&&f.type===`mousedown`)return!1;let g=Array.isArray(i)&&i.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||h||e)&&g}}function yoe({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:o,onPanZoomEnd:s,onDraggingChange:c}){let l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},u=e.getBoundingClientRect(),d=[[0,0],[u.width,u.height]];(typeof ResizeObserver<`u`?new ResizeObserver(e=>{let t=e[0];t&&(d=[[0,0],[t.contentRect.width,t.contentRect.height]])}):null)?.observe(e);let f=Ty().extent(()=>d).scaleExtent([t,n]).translateExtent(r),p=A_(e).call(f);y({x:i.x,y:i.y,zoom:Ky(i.zoom,t,n)},[[0,0],[u.width,u.height]],r);let m=p.on(`wheel.zoom`),h=p.on(`dblclick.zoom`);f.wheelDelta(moe);async function g(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?Tv:Dv).transform(ix(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function _({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:u,panOnScrollMode:d,panOnScrollSpeed:g,preventScrolling:_,zoomOnPinch:y,zoomOnScroll:b,zoomOnDoubleClick:x,panActivationKeyPressed:S=!1,zoomActivationKeyPressed:C,lib:w,onTransformChange:T,connectionInProgress:E,paneClickDistance:ee,selectionOnDrag:te}){r&&!l.isZoomingOrPanning&&v();let ne=i&&!C&&!r;f.clickDistance(te?1/0:!rb(ee)||ee<0?0:ee);let re=ne?hoe({zoomPanValues:l,noWheelClassName:e,d3Selection:p,d3Zoom:f,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:y,onPanZoomStart:o,onPanZoom:a,onPanZoomEnd:s}):goe({noWheelClassName:e,preventScrolling:_,d3ZoomHandler:m});p.on(`wheel.zoom`,re,{passive:!1});let ie=ax({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:o});f.on(`start`,ie);let ae=_oe({zoomPanValues:l,panOnDrag:u,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:T});f.on(`zoom`,ae);let oe=ox({zoomPanValues:l,panOnDrag:u,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:c});f.on(`end`,oe);let se=voe({panActivationKeyPressed:S,zoomActivationKeyPressed:C,panOnDrag:u,zoomOnScroll:b,panOnScroll:i,zoomOnDoubleClick:x,zoomOnPinch:y,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:w,connectionInProgress:E});f.filter(se),x?p.on(`dblclick.zoom`,h):p.on(`dblclick.zoom`,null)}function v(){f.on(`zoom`,null)}async function y(e,t,n){let r=tx(e),i=f?.constrain()(r,t,n);return i&&await g(i),i}async function b(e,t){let n=tx(e);return await g(n,t),n}function x(e){if(p){let t=tx(e),n=p.property(`__zoom`);(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(p,t,null,{sync:!0})}}function S(){let e=p?_ae(p.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}}async function C(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?Tv:Dv).scaleTo(ix(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}async function w(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?Tv:Dv).scaleBy(ix(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function T(e){f?.scaleExtent(e)}function E(e){f?.translateExtent(e)}function ee(e){let t=!rb(e)||e<0?0:e;f?.clickDistance(t)}return{update:_,destroy:v,setViewport:b,setViewportConstrained:y,getViewport:S,scaleTo:C,scaleBy:w,setScaleExtent:T,setTranslateExtent:E,syncViewport:x,setClickDistance:ee}}var sx;(function(e){e.Line=`line`,e.Handle=`handle`})(sx||={});function boe({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){let o=e-t,s=n-r,c=[o>0?1:o<0?-1:0,s>0?1:s<0?-1:0];return o&&i&&(c[0]*=-1),s&&a&&(c[1]*=-1),c}function xoe(e){return{isHorizontal:e.includes(`right`)||e.includes(`left`),isVertical:e.includes(`bottom`)||e.includes(`top`),affectsX:e.includes(`left`),affectsY:e.includes(`top`)}}function cx(e,t){return Math.max(0,t-e)}function lx(e,t){return Math.max(0,e-t)}function ux(e,t,n){return Math.max(0,t-e,e-n)}function dx(e,t){return e?!t:t}function fx(e,t,n,r,i,a,o,s){let{affectsX:c,affectsY:l}=t,{isHorizontal:u,isVertical:d}=t,f=u&&d,{xSnapped:p,ySnapped:m}=n,{minWidth:h,maxWidth:g,minHeight:_,maxHeight:v}=r,{x:y,y:b,width:x,height:S,aspectRatio:C}=e,w=Math.floor(u?p-e.pointerX:0),T=Math.floor(d?m-e.pointerY:0),E=x+(c?-w:w),ee=S+(l?-T:T),te=-a[0]*x,ne=-a[1]*S,re=ux(E,h,g),ie=ux(ee,_,v);if(o){let e=0,t=0;c&&w<0?e=cx(y+w+te,o[0][0]):!c&&w>0&&(e=lx(y+E+te,o[1][0])),l&&T<0?t=cx(b+T+ne,o[0][1]):!l&&T>0&&(t=lx(b+ee+ne,o[1][1])),re=Math.max(re,e),ie=Math.max(ie,t)}if(s){let e=0,t=0;c&&w>0?e=lx(y+w,s[0][0]):!c&&w<0&&(e=cx(y+E,s[1][0])),l&&T>0?t=lx(b+T,s[0][1]):!l&&T<0&&(t=cx(b+ee,s[1][1])),re=Math.max(re,e),ie=Math.max(ie,t)}if(i){if(u){let e=ux(E/C,_,v)*C;if(re=Math.max(re,e),o){let e=0;e=!c&&!l||c&&!l&&f?lx(b+ne+E/C,o[1][1])*C:cx(b+ne+(c?w:-w)/C,o[0][1])*C,re=Math.max(re,e)}if(s){let e=0;e=!c&&!l||c&&!l&&f?cx(b+E/C,s[1][1])*C:lx(b+(c?w:-w)/C,s[0][1])*C,re=Math.max(re,e)}}if(d){let e=ux(ee*C,h,g)/C;if(ie=Math.max(ie,e),o){let e=0;e=!c&&!l||l&&!c&&f?lx(y+ee*C+te,o[1][0])/C:cx(y+(l?T:-T)*C+te,o[0][0])/C,ie=Math.max(ie,e)}if(s){let e=0;e=!c&&!l||l&&!c&&f?cx(y+ee*C,s[1][0])/C:lx(y+(l?T:-T)*C,s[0][0])/C,ie=Math.max(ie,e)}}}T+=T<0?ie:-ie,w+=w<0?re:-re,i&&(f?E>ee*C?T=(dx(c,l)?-w:w)/C:w=(dx(c,l)?-T:T)*C:u?(T=w/C,l=c):(w=T*C,c=l));let ae=c?y+w:y,oe=l?b+T:b;return{width:x+(c?-w:w),height:S+(l?-T:T),x:a[0]*w*(c?-1:1)+ae,y:a[1]*T*(l?-1:1)+oe}}var px={width:0,height:0,x:0,y:0},mx={...px,pointerX:0,pointerY:0,aspectRatio:1};function hx(e,t,n){let r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,o=e.measured.height??0,s=n[0]*a,c=n[1]*o;return[[r-s,i-c],[r+a-s,i+o-c]]}function Soe({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){let a=A_(e),o={controlDirection:xoe(`bottom-right`),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:e,boundaries:s,keepAspectRatio:c,resizeDirection:l,onResizeStart:u,onResize:d,onResizeEnd:f,shouldResize:p}){let m={...px},h={...mx};o={boundaries:s,resizeDirection:l,keepAspectRatio:c,controlDirection:xoe(e)};let g,_=null,v=[],y,b,x,S=L_().on(`start`,e=>{let{nodeLookup:r,transform:i,snapGrid:a,snapToGrid:o,nodeOrigin:s,paneDomNode:c}=n();if(g=r.get(t),!g)return;_=c?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:d}=yb(e.sourceEvent,{transform:i,snapGrid:a,snapToGrid:o,containerBounds:_});m={width:g.measured.width??0,height:g.measured.height??0,x:g.position.x??0,y:g.position.y??0},h={...m,pointerX:l,pointerY:d,aspectRatio:m.width/m.height},y=void 0,b=db(g.extent)?g.extent:void 0,g.parentId&&(g.extent===`parent`||g.expandParent)&&(y=r.get(g.parentId)),y&&g.extent===`parent`&&(b=[[0,0],[y.measured.width,y.measured.height]]),v=[],x=void 0;for(let[e,n]of r)if(n.parentId===t&&(v.push({id:e,position:{...n.position},extent:n.extent}),n.extent===`parent`||n.expandParent)){let e=hx(n,g,n.origin??s);x=x?[[Math.min(e[0][0],x[0][0]),Math.min(e[0][1],x[0][1])],[Math.max(e[1][0],x[1][0]),Math.max(e[1][1],x[1][1])]]:e}u?.(e,{...m})}).on(`drag`,e=>{let{transform:t,snapGrid:i,snapToGrid:a,nodeOrigin:s}=n(),c=yb(e.sourceEvent,{transform:t,snapGrid:i,snapToGrid:a,containerBounds:_}),l=[];if(!g)return;let{x:u,y:f,width:S,height:C}=m,w={},T=g.origin??s,{width:E,height:ee,x:te,y:ne}=fx(h,o.controlDirection,c,o.boundaries,o.keepAspectRatio,T,b,x),re=E!==S,ie=ee!==C,ae=te!==u&&re,oe=ne!==f&&ie;if(!ae&&!oe&&!re&&!ie)return;let se={prevValues:{...m},startX:h.x,startY:h.y,childNodes:v.map(e=>({...e,position:{...e.position}}))};if((ae||oe||T[0]===1||T[1]===1)&&(w.x=ae?te:m.x,w.y=oe?ne:m.y,m.x=w.x,m.y=w.y,v.length>0)){let e=te-u,t=ne-f;for(let n of v)n.position={x:n.position.x-e+T[0]*(E-S),y:n.position.y-t+T[1]*(ee-C)},l.push(n)}if((re||ie)&&(w.width=re&&(!o.resizeDirection||o.resizeDirection===`horizontal`)?E:m.width,w.height=ie&&(!o.resizeDirection||o.resizeDirection===`vertical`)?ee:m.height,m.width=w.width,m.height=w.height),y&&g.expandParent){let e=T[0]*(w.width??0);w.x&&w.x<e&&(m.x=e,h.x-=w.x-e);let t=T[1]*(w.height??0);w.y&&w.y<t&&(m.y=t,h.y-=w.y-t)}let ce=boe({width:m.width,prevWidth:S,height:m.height,prevHeight:C,affectsX:o.controlDirection.affectsX,affectsY:o.controlDirection.affectsY}),le={...m,direction:ce};if(p?.(e,le)===!1){m=se.prevValues,h.x=se.startX,h.y=se.startY,v.forEach((e,t)=>{e.position=se.childNodes[t].position});return}d?.(e,le),r(w,l)}).on(`end`,e=>{f?.(e,{...m}),i?.({...m})});a.call(S)}function c(){a.on(`.drag`,null)}return{update:s,destroy:c}}var Coe=s((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),woe=s(((e,t)=>{t.exports=Coe()})),Toe=s((e=>{var t=f(),n=woe();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),gx=u(s(((e,t)=>{t.exports=Toe()}))(),1),_x=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},Eoe=e=>e?_x(e):_x,{useDebugValue:vx}=p.default,{useSyncExternalStoreWithSelector:yx}=gx.default,bx=e=>e;function Doe(e,t=bx,n){let r=yx(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vx(r),r}var xx=(e,t)=>{let n=Eoe(e),r=(e,r=t)=>Doe(n,e,r);return Object.assign(r,n),r},Ooe=(e,t)=>e?xx(e,t):xx;function Sx(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var Cx=(0,p.createContext)(null),wx=Cx.Provider,Tx=Ey.error001(`react`);function Ex(e,t){let n=(0,p.useContext)(Cx);if(n===null)throw Error(Tx);return Doe(n,e,t)}function Dx(){let e=(0,p.useContext)(Cx);if(e===null)throw Error(Tx);return(0,p.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}var koe={display:`none`},Aoe={position:`absolute`,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0px, 0px, 0px, 0px)`,clipPath:`inset(100%)`},joe=`react-flow__node-desc`,Moe=`react-flow__edge-desc`,Noe=`react-flow__aria-live`,Poe=e=>e.ariaLiveMessage,Foe=e=>e.ariaLabelConfig;function Ioe({rfId:e}){let t=Ex(Poe);return(0,k.jsx)(`div`,{id:`${Noe}-${e}`,"aria-live":`assertive`,"aria-atomic":`true`,style:Aoe,children:t})}function Loe({rfId:e,disableKeyboardA11y:t}){let n=Ex(Foe);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{id:`${joe}-${e}`,style:koe,children:t?n[`node.a11yDescription.default`]:n[`node.a11yDescription.keyboardDisabled`]}),(0,k.jsx)(`div`,{id:`${Moe}-${e}`,style:koe,children:n[`edge.a11yDescription.default`]}),!t&&(0,k.jsx)(Ioe,{rfId:e})]})}var Ox=(0,p.forwardRef)(({position:e=`top-left`,children:t,className:n,style:r,...i},a)=>(0,k.jsx)(`div`,{className:Jg([`react-flow__panel`,n,...`${e}`.split(`-`)]),style:r,ref:a,...i,children:t}));Ox.displayName=`Panel`;var Roe=`https://reactflow.dev?utm_source=attribution`;function zoe({proOptions:e,position:t=`bottom-right`}){return(0,p.useEffect)(()=>{},[]),e?.hideAttribution?null:(0,k.jsx)(Ox,{position:t,className:`react-flow__attribution`,"data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${Roe}`,children:(0,k.jsx)(`a`,{href:Roe,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`React Flow attribution`,children:`React Flow`})})}var Boe=e=>{let t=[],n=[];for(let[,n]of e.nodeLookup)n.selected&&t.push(n.internals.userNode);for(let[,t]of e.edgeLookup)t.selected&&n.push(t);return{selectedNodes:t,selectedEdges:n}},kx=e=>e.id;function Voe(e,t){return Sx(e.selectedNodes.map(kx),t.selectedNodes.map(kx))&&Sx(e.selectedEdges.map(kx),t.selectedEdges.map(kx))}function Hoe({onSelectionChange:e}){let t=Dx(),{selectedNodes:n,selectedEdges:r}=Ex(Boe,Voe);return(0,p.useEffect)(()=>{let i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChangeHandlers.forEach(e=>e(i))},[n,r,e]),null}var Ax=e=>!!e.onSelectionChangeHandlers;function jx({onSelectionChange:e}){let t=Ex(Ax);return e||t?(0,k.jsx)(Hoe,{onSelectionChange:e}):null}var Mx=[0,0],Nx={x:0,y:0,zoom:1},Px=[...`nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode`.split(`.`),`rfId`],Fx=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),Ix={translateExtent:Dy,nodeOrigin:Mx,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:`nopan`,rfId:`1`};function Lx(e){let{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:c}=Ex(Fx,Sx),l=Dx();(0,p.useEffect)(()=>(c(e.defaultNodes,e.defaultEdges),()=>{u.current=Ix,s()}),[]);let u=(0,p.useRef)(Ix);return(0,p.useEffect)(()=>{for(let s of Px){let c=e[s];c!==u.current[s]&&e[s]!==void 0&&(s===`nodes`?t(c):s===`edges`?n(c):s===`minZoom`?r(c):s===`maxZoom`?i(c):s===`translateExtent`?a(c):s===`nodeExtent`?o(c):s===`ariaLabelConfig`?l.setState({ariaLabelConfig:_b(c)}):s===`fitView`?l.setState({fitViewQueued:c}):s===`fitViewOptions`?l.setState({fitViewOptions:c}):l.setState({[s]:c}))}u.current=e},Px.map(t=>e[t])),null}function Rx(){return typeof window>`u`||!window.matchMedia?null:window.matchMedia(`(prefers-color-scheme: dark)`)}function zx(e){let[t,n]=(0,p.useState)(e===`system`?null:e);return(0,p.useEffect)(()=>{if(e!==`system`){n(e);return}let t=Rx(),r=()=>n(t?.matches?`dark`:`light`);return r(),t?.addEventListener(`change`,r),()=>{t?.removeEventListener(`change`,r)}},[e]),t===null?Rx()?.matches?`dark`:`light`:t}var Bx=typeof document<`u`?document:null;function Vx(e=null,t={target:Bx,actInsideInputWithModifier:!0}){let[n,r]=(0,p.useState)(!1),i=(0,p.useRef)(!1),a=(0,p.useRef)(new Set([])),[o,s]=(0,p.useMemo)(()=>{if(e!==null){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`).map(e=>e.replace(/\+/g,`
|
|
105
105
|
`).replace(`
|
|
106
106
|
|
|
107
107
|
`,`
|
|
@@ -175,7 +175,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
175
175
|
`),i.length!=2)throw O(new X_(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=kW(HW(i[0])),this.b=kW(HW(i[1]))}catch(e){throw e=GR(e),P(e,130)?(n=e,O(new X_(iot+n))):O(e)}},Q.Ib=function(){return`(`+this.a+`,`+this.b+`)`},Q.a=0,Q.b=0;var K6=z(qY,`KVector`,8);q(77,67,{3:1,4:1,20:1,31:1,55:1,16:1,67:1,15:1,77:1,411:1},y_,ty,Wue),Q.Nc=function(){return jFe(this)},Q.ag=function(e){var t,n,r=CK(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|
176
176
|
`),i,a,o;Oj(this);try{for(n=0,a=0,i=0,o=0;n<r.length;)r[n]!=null&&HW(r[n]).length>0&&(a%2==0?i=kW(r[n]):o=kW(r[n]),a>0&&a%2!=0&&NO(this,new M(i,o)),++a),++n}catch(e){throw e=GR(e),P(e,130)?(t=e,O(new X_(`The given string does not match the expected format for vectors.`+t))):O(e)}},Q.Ib=function(){for(var e=new AT(`(`),t=pU(this,0),n;t.b!=t.d.c;)n=I(wN(t),8),wC(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var dPt=z(qY,`KVectorChain`,77);q(254,22,{3:1,34:1,22:1,254:1},PS);var fPt,q6,J6,Y6,X6,Z6,pPt=kI(bZ,`Alignment`,254,YQ,KOe,dme),mPt;q(972,1,lY,_f),Q.tf=function(e){b6e(e)};var hPt,gPt,_Pt,vPt,yPt,bPt,xPt,SPt,CPt,wPt,TPt,EPt;z(bZ,`BoxLayouterOptions`,972),q(973,1,{},Tc),Q.uf=function(){var e;return e=new Oc,e},Q.vf=function(e){},z(bZ,`BoxLayouterOptions/BoxFactory`,973),q(297,22,{3:1,34:1,22:1,297:1},FS);var Q6,DPt,$6,e8,t8,OPt,kPt=kI(bZ,`ContentAlignment`,297,YQ,qOe,fme),APt;q(686,1,lY,gf),Q.tf=function(e){MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Dut),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(RW(),W6)),c$),kV((dU(),F6))))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Out),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),U6),rPt),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,fct),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),MPt),B6),pPt),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,hY),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,kut),``),`Bend Points`),`A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points.`),U6),dPt),kV(M6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,AX),``),`Content Alignment`),`Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option.`),LPt),V6),kPt),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,kX),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(ST(),!1)),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,hct),``),`Direction`),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),RPt),B6),U8),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,EX),``),`Edge Routing`),`What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline.`),UPt),B6),iIt),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Tut),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,TX),``),`Hierarchy Handling`),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),qPt),B6),bIt),mk(F6,W(j(L6,1),Z,170,0,[P6]))))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,vY),``),`Padding`),`The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately.`),lFt),U6),lyt),mk(F6,W(j(L6,1),Z,170,0,[P6]))))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,yY),``),`Interactive`),`Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,MX),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,xY),``),`Omit Node Micro Layout`),`Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Lat),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),xFt),B6),kIt),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,jX),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),U6),K6),mk(P6,W(j(L6,1),Z,170,0,[I6,N6]))))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,pY),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),H6),a$),mk(P6,W(j(L6,1),Z,170,0,[M6]))))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,gY),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),H6),a$),kV(F6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,_Y),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,wct),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),tFt),U6),dPt),kV(M6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Oct),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),R6),e$),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,kct),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),R6),e$),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Aut),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),U6),nBt),mk(F6,W(j(L6,1),Z,170,0,[N6]))))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,jut),``),`Softwrapping Fuzziness`),`Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line.`),0),z6),r$),kV(N6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Nct),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),nFt),U6),oyt),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,uct),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),R6),e$),mk(P6,W(j(L6,1),Z,170,0,[M6,I6,N6]))))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Mut),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),z6),r$),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Nut),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Put),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,DY),``),vut),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),R6),e$),kV(F6)))),fN(e,DY,jY,null),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Fut),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Iut),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),kB(100)),H6),a$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Lut),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Rut),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),kB(4e3)),H6),a$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,zut),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),kB(400)),H6),a$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,But),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Vut),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Hut),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Uut),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Eut),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),FPt),B6),lLt),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Wut),`json`),`Shape Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports.`),eFt),B6),BIt),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Gut),`json`),`Edge Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels.`),QPt),B6),$Ft),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Zst),DX),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Qst),DX),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,$st),DX),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,ect),DX),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Iat),DX),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,tct),DX),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,nct),DX),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,act),DX),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,rct),DX),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,ict),DX),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,mY),DX),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,oct),DX),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),z6),r$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,sct),DX),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),z6),r$),mk(F6,W(j(L6,1),Z,170,0,[P6]))))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,cct),DX),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),U6),dLt),mk(P6,W(j(L6,1),Z,170,0,[M6,I6,N6]))))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Pct),DX),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),VFt),U6),oyt),kV(F6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Mct),$ut),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),H6),a$),mk(F6,W(j(L6,1),Z,170,0,[P6]))))),fN(e,Mct,jct,pFt),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,jct),$ut),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),dFt),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,gct),edt),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),iFt),U6),lyt),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,TY),edt),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),aFt),V6),h5),mk(P6,W(j(L6,1),Z,170,0,[N6]))))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,yct),SZ),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),hFt),B6),y5),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,bct),SZ),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),B6),y5),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,xct),SZ),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),B6),y5),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Sct),SZ),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),B6),y5),kV(P6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Cct),SZ),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),B6),y5),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,wY),tdt),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),oFt),V6),o7),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,CY),tdt),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),cFt),V6),JIt),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,NY),tdt),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),sFt),U6),K6),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,SY),tdt),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),R6),e$),kV(F6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Ect),Xst),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),VPt),B6),tIt),kV(N6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,bY),Xst),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),R6),e$),kV(N6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Kut),`font`),`Font Name`),`Font name used for a label.`),W6),c$),kV(N6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,qut),`font`),`Font Size`),`Font size used for a label.`),H6),a$),kV(N6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Act),ndt),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),U6),K6),kV(I6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,Dct),ndt),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),H6),a$),kV(I6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,dct),ndt),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),EFt),B6),e7),kV(I6)))),MV(e,new LW(Qv(Zv($v(Kv(Xv(Jv(Yv(new wc,lct),ndt),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),z6),r$),kV(I6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,EY),rdt),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),wFt),V6),M5),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,_ct),rdt),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),R6),e$),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,vct),rdt),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),R6),e$),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Jut),CZ),`Number of size categories`),`Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator.`),kB(3)),H6),a$),kV(F6)))),fN(e,Jut,Xut,JFt),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Yut),CZ),`Weight of a node containing children for determining the graph size`),`When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five.`),kB(4)),H6),a$),kV(F6)))),fN(e,Yut,Jut,null),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,OY),CZ),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),z6),r$),kV(F6)))),fN(e,OY,jY,GFt),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Xut),CZ),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),U6),SIt),kV(P6)))),fN(e,Xut,jY,KFt),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,kY),CZ),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),z6),r$),mk(F6,W(j(L6,1),Z,170,0,[P6]))))),fN(e,kY,jY,null),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,AY),CZ),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),z6),r$),mk(F6,W(j(L6,1),Z,170,0,[P6]))))),fN(e,AY,jY,null),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,jY),CZ),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),B6),QIt),kV(P6)))),fN(e,jY,SY,null),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Zut),CZ),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),z6),r$),kV(F6)))),fN(e,Zut,jY,WFt),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,pct),idt),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),R6),e$),kV(P6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,mct),idt),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),R6),e$),kV(M6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Tct),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),z6),r$),kV(M6)))),MV(e,new LW(Qv(Zv($v(qv(Kv(Xv(Jv(Yv(new wc,Qut),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),GPt),B6),fIt),kV(M6)))),Vb(e,new RM(Uv(Gv(Wv(new rc,CJ),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),Vb(e,new RM(Uv(Gv(Wv(new rc,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Vb(e,new RM(Uv(Gv(Wv(new rc,fY),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),Vb(e,new RM(Uv(Gv(Wv(new rc,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),Vb(e,new RM(Uv(Gv(Wv(new rc,slt),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),Vb(e,new RM(Uv(Gv(Wv(new rc,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),Vb(e,new RM(Uv(Gv(Wv(new rc,iZ),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),t3e((new vf,e)),b6e((new _f,e)),D2e((new yf,e))};var n8,jPt,MPt,r8,NPt,PPt,FPt,i8,a8,IPt,o8,LPt,s8,c8,RPt,zPt,BPt,VPt,HPt,UPt,WPt,GPt,KPt,l8,qPt,JPt,u8,YPt,d8,XPt,ZPt,QPt,$Pt,eFt,f8,tFt,p8,nFt,rFt,iFt,m8,aFt,h8,oFt,g8,_8,sFt,v8,cFt,y8,b8,x8,lFt,uFt,dFt,fFt,pFt,mFt,hFt,gFt,_Ft,vFt,yFt,bFt,S8,C8,xFt,SFt,CFt,w8,wFt,TFt,T8,EFt,E8,D8,DFt,O8,OFt,kFt,AFt,jFt,MFt,NFt,PFt,FFt,k8,IFt,A8,LFt,RFt,j8,zFt,BFt,VFt,HFt,M8,N8,P8,F8,UFt,WFt,I8,GFt,L8,KFt,qFt,JFt,YFt;z(bZ,`CoreOptions`,686),q(86,22,{3:1,34:1,22:1,86:1},IS);var R8,z8,B8,V8,H8,U8=kI(bZ,`Direction`,86,YQ,HEe,pme),XFt;q(276,22,{3:1,34:1,22:1,276:1},LS);var W8,G8,ZFt,QFt,$Ft=kI(bZ,`EdgeCoords`,276,YQ,xTe,mme),eIt;q(277,22,{3:1,34:1,22:1,277:1},RS);var K8,q8,J8,tIt=kI(bZ,`EdgeLabelPlacement`,277,YQ,bCe,hme),nIt;q(221,22,{3:1,34:1,22:1,221:1},zS);var Y8,X8,Z8,rIt,iIt=kI(bZ,`EdgeRouting`,221,YQ,STe,gme),aIt;q(324,22,{3:1,34:1,22:1,324:1},BS);var oIt,sIt,cIt,lIt,uIt,dIt,fIt=kI(bZ,`EdgeType`,324,YQ,GOe,_me),pIt;q(970,1,lY,vf),Q.tf=function(e){t3e(e)};var mIt,hIt,gIt,_It,vIt,yIt,Q8;z(bZ,`FixedLayouterOptions`,970),q(971,1,{},Ec),Q.uf=function(){var e;return e=new Bc,e},Q.vf=function(e){},z(bZ,`FixedLayouterOptions/FixedFactory`,971),q(344,22,{3:1,34:1,22:1,344:1},VS);var $8,e5,t5,bIt=kI(bZ,`HierarchyHandling`,344,YQ,CCe,vme),xIt,SIt=KO(bZ,`ITopdownSizeApproximator`);q(290,22,{3:1,34:1,22:1,290:1},HS);var n5,r5,i5,a5,CIt=kI(bZ,`LabelSide`,290,YQ,bTe,yme),wIt;q(94,22,{3:1,34:1,22:1,94:1},US);var o5,s5,c5,l5,u5,d5,f5,p5,m5,h5=kI(bZ,`NodeLabelPlacement`,94,YQ,Uje,bme),TIt;q(255,22,{3:1,34:1,22:1,255:1},WS);var EIt,g5,_5,DIt,v5,y5=kI(bZ,`PortAlignment`,255,YQ,_De,xme),OIt;q(101,22,{3:1,34:1,22:1,101:1},GS);var b5,x5,S5,C5,w5,T5,kIt=kI(bZ,`PortConstraints`,101,YQ,YOe,Sme),AIt;q(278,22,{3:1,34:1,22:1,278:1},KS);var E5,D5,O5,k5,A5,j5,M5=kI(bZ,`PortLabelPlacement`,278,YQ,JOe,Cme),jIt;q(64,22,{3:1,34:1,22:1,64:1},JS);var N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5,G5,K5,q5,J5,Y5,X5,Z5,Q5,$5,e7=kI(bZ,`PortSide`,64,YQ,UEe,wme),MIt;q(974,1,lY,yf),Q.tf=function(e){D2e(e)};var NIt,PIt,FIt,IIt,LIt;z(bZ,`RandomLayouterOptions`,974),q(975,1,{},Dc),Q.uf=function(){var e;return e=new Pc,e},Q.vf=function(e){},z(bZ,`RandomLayouterOptions/RandomFactory`,975),q(298,22,{3:1,34:1,22:1,298:1},qS);var t7,RIt,zIt,BIt=kI(bZ,`ShapeCoords`,298,YQ,SCe,Tme),VIt;q(378,22,{3:1,34:1,22:1,378:1},YS);var n7,r7,i7,a7,o7=kI(bZ,`SizeConstraint`,378,YQ,CTe,Eme),HIt;q(265,22,{3:1,34:1,22:1,265:1},XS);var s7,UIt,c7,WIt,l7,u7,GIt,KIt,qIt,JIt=kI(bZ,`SizeOptions`,265,YQ,lMe,Dme),YIt;q(279,22,{3:1,34:1,22:1,279:1},ZS);var d7,XIt,ZIt,QIt=kI(bZ,`TopdownNodeTypes`,279,YQ,xCe,dO),$It;q(286,22,EZ);var eLt,tLt,nLt,rLt,f7=kI(bZ,`TopdownSizeApproximator`,286,YQ,TTe,Ome);q(966,286,EZ,ege),Q.Rg=function(e){return YBe(e)},kI(bZ,`TopdownSizeApproximator/1`,966,f7,null,null),q(967,286,EZ,M_e),Q.Rg=function(e){var t=I(J(e,(cq(),O8)),142),n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=(ry(),m=new x_,m),w,T,E;for(jG(C,e),w=new zg,o=new oT((!e.a&&(e.a=new L(D7,e,10,11)),e.a));o.e!=o.i.gc();)i=I(hU(o),26),y=(p=new x_,p),OG(y,C),jG(y,i),E=YBe(i),XC(y,r.Math.max(i.g,E.a),r.Math.max(i.f,E.b)),GW(w.f,i,y);for(a=new oT((!e.a&&(e.a=new L(D7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=I(hU(a),26),d=new oT((!i.e&&(i.e=new OD(y7,i,7,4)),i.e));d.e!=d.i.gc();)u=I(hU(d),85),x=I(dC(_k(w.f,i)),26),S=I(PA(w,U((!u.c&&(u.c=new OD(v7,u,5,8)),u.c),0)),26),b=(f=new Gc,f),JP((!b.b&&(b.b=new OD(v7,b,4,7)),b.b),x),JP((!b.c&&(b.c=new OD(v7,b,5,8)),b.c),S),DG(b,vM(x)),jG(b,u);g=I($j(t.f),214);try{g.kf(C,new Rc),$ve(t.f,g)}catch(e){throw e=GR(e),P(e,100)?(h=e,O(h)):O(e)}return LP(C,a8)||LP(C,i8)||Ent(C),l=A(F(J(C,a8))),c=A(F(J(C,i8))),s=l/c,n=A(F(J(C,N8)))*r.Math.sqrt((!C.a&&(C.a=new L(D7,C,10,11)),C.a).i),T=I(J(C,x8),103),v=T.b+T.c+1,_=T.d+T.a+1,new M(r.Math.max(v,n),r.Math.max(_,n/s))},kI(bZ,`TopdownSizeApproximator/2`,967,f7,null,null),q(968,286,EZ,Gbe),Q.Rg=function(e){var t,n=A(F(J(e,(cq(),N8)))),r,i,a,o;return t=n/A(F(J(e,M8))),r=p8e(e),a=I(J(e,x8),103),i=A(F(mU(j8))),vM(e)&&(i=A(F(J(vM(e),j8)))),o=eT(new M(n,t),r),yD(o,new M(-(a.b+a.c)-i,-(a.d+a.a)-i))},kI(bZ,`TopdownSizeApproximator/3`,968,f7,null,null),q(969,286,EZ,N_e),Q.Rg=function(e){var t,n,i,a,o,s,c,l,u,d;for(s=new oT((!e.a&&(e.a=new L(D7,e,10,11)),e.a));s.e!=s.i.gc();)o=I(hU(s),26),J(o,(cq(),L8))!=null&&(!o.a&&(o.a=new L(D7,o,10,11)),o.a)&&(!o.a&&(o.a=new L(D7,o,10,11)),o.a).i>0?(n=I(J(o,L8),519),d=n.Rg(o),u=I(J(o,x8),103),XC(o,r.Math.max(o.g,d.a+u.b+u.c),r.Math.max(o.f,d.b+u.d+u.a))):(!o.a&&(o.a=new L(D7,o,10,11)),o.a).i!=0&&XC(o,A(F(J(o,N8))),A(F(J(o,N8)))/A(F(J(o,M8))));t=I(J(e,(cq(),O8)),142),l=I($j(t.f),214);try{l.kf(e,new Rc),$ve(t.f,l)}catch(e){throw e=GR(e),P(e,100)?(c=e,O(c)):O(e)}return vU(e,n8,wZ),XTe(e),Ent(e),a=A(F(J(e,a8))),i=A(F(J(e,i8))),new M(a,i)},kI(bZ,`TopdownSizeApproximator/4`,969,f7,null,null);var iLt;q(342,1,{849:1},g_),Q.Sg=function(e,t){return aKe(this,e,t)},Q.Tg=function(){Qqe(this)},Q.Ug=function(){return this.q},Q.Vg=function(){return this.f?zj(this.f):null},Q.Wg=function(){return zj(this.a)},Q.Xg=function(){return this.p},Q.Yg=function(){return!1},Q.Zg=function(){return this.n},Q.$g=function(){return this.p!=null&&!this.b},Q._g=function(e){var t;this.n&&(t=e,rT(this.f,t))},Q.ah=function(e,t){var n,r;this.n&&e&&VCe(this,(n=new Nve,r=P3e(n,e),wet(n),r),(Vz(),pLt))},Q.bh=function(e){var t;return this.b?null:(t=tje(this,this.g),NO(this.a,t),t.i=this,this.d=e,t)},Q.dh=function(e){e>0&&!this.b&&OMe(this,e)},Q.b=!1,Q.c=0,Q.d=-1,Q.e=null,Q.f=null,Q.g=-1,Q.j=!1,Q.k=!1,Q.n=!1,Q.o=0,Q.q=0,Q.r=0,z(NX,`BasicProgressMonitor`,342),q(703,214,nY,Oc),Q.kf=function(e,t){u8e(e,t)},z(NX,`BoxLayoutProvider`,703),q(962,1,BJ,cte),Q.Le=function(e,t){return S1e(this,I(e,26),I(t,26))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Pm(this)},Q.a=!1,z(NX,`BoxLayoutProvider/1`,962),q(162,1,{162:1},iI,Uue),Q.Ib=function(){return this.c?F4e(this.c):EW(this.b)},z(NX,`BoxLayoutProvider/Group`,162),q(323,22,{3:1,34:1,22:1,323:1},$S);var aLt,oLt,sLt,cLt,lLt=kI(NX,`BoxLayoutProvider/PackingMode`,323,YQ,wTe,kme),uLt;q(963,1,BJ,kc),Q.Le=function(e,t){return Obe(I(e,162),I(t,162))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Pm(this)},z(NX,`BoxLayoutProvider/lambda$0$Type`,963),q(964,1,BJ,Ac),Q.Le=function(e,t){return obe(I(e,162),I(t,162))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Pm(this)},z(NX,`BoxLayoutProvider/lambda$1$Type`,964),q(965,1,BJ,jc),Q.Le=function(e,t){return sbe(I(e,162),I(t,162))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Pm(this)},z(NX,`BoxLayoutProvider/lambda$2$Type`,965),q(1335,1,{826:1},Mc),Q.Kg=function(e,t){return Pb(),!P(t,173)||dae((iz(),I(e,173)),t)},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1335),q(1336,1,Lq,lte),Q.Ad=function(e){PFe(this.a,I(e,145))},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1336),q(1337,1,Lq,Nc),Q.Ad=function(e){I(e,104),Pb()},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1337),q(1341,1,Lq,Cg),Q.Ad=function(e){KMe(this.a,I(e,104))},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1341),q(1339,1,$q,hse),Q.Mb=function(e){return cFe(this.a,this.b,I(e,145))},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1339),q(1338,1,$q,gse),Q.Mb=function(e){return zue(this.a,this.b,I(e,826))},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1338),q(1340,1,Lq,_se),Q.Ad=function(e){v_e(this.a,this.b,I(e,145))},z(NX,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1340),q(927,1,{},zc),Q.Kb=function(e){return zce(e)},Q.Fb=function(e){return this===e},z(NX,`ElkUtil/lambda$0$Type`,927),q(928,1,Lq,vse),Q.Ad=function(e){GXe(this.a,this.b,I(e,85))},Q.a=0,Q.b=0,z(NX,`ElkUtil/lambda$1$Type`,928),q(929,1,Lq,yse),Q.Ad=function(e){Kre(this.a,this.b,I(e,168))},Q.a=0,Q.b=0,z(NX,`ElkUtil/lambda$2$Type`,929),q(930,1,Lq,bse),Q.Ad=function(e){mw(this.a,this.b,I(e,153))},Q.a=0,Q.b=0,z(NX,`ElkUtil/lambda$3$Type`,930),q(931,1,Lq,ute),Q.Ad=function(e){Whe(this.a,I(e,370))},z(NX,`ElkUtil/lambda$4$Type`,931),q(328,1,{34:1,328:1},Lg),Q.Dd=function(e){return Zw(this,I(e,241))},Q.Fb=function(e){var t;return P(e,328)?(t=I(e,328),this.a==t.a):!1},Q.Hb=function(){return oM(this.a)},Q.Ib=function(){return this.a+` (exclusive)`},Q.a=0,z(NX,`ExclusiveBounds/ExclusiveLowerBound`,328),q(1085,214,nY,Bc),Q.kf=function(e,t){var n,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E;for(t.Sg(`Fixed Layout`,1),o=I(J(e,(cq(),HPt)),221),p=0,m=0,b=new oT((!e.a&&(e.a=new L(D7,e,10,11)),e.a));b.e!=b.i.gc();){for(v=I(hU(b),26),E=I(J(v,(Hz(),Q8)),8),E&&(ZC(v,E.a,E.b),I(J(v,hIt),181).Gc((BH(),n7))&&(h=I(J(v,_It),8),h.a>0&&h.b>0&&eq(v,h.a,h.b,!0,!0))),p=r.Math.max(p,v.i+v.g),m=r.Math.max(m,v.j+v.f),u=new oT((!v.n&&(v.n=new L(E7,v,1,7)),v.n));u.e!=u.i.gc();)c=I(hU(u),153),E=I(J(c,Q8),8),E&&ZC(c,E.a,E.b),p=r.Math.max(p,v.i+c.i+c.g),m=r.Math.max(m,v.j+c.j+c.f);for(C=new oT((!v.c&&(v.c=new L(O7,v,9,9)),v.c));C.e!=C.i.gc();)for(S=I(hU(C),124),E=I(J(S,Q8),8),E&&ZC(S,E.a,E.b),w=v.i+S.i,T=v.j+S.j,p=r.Math.max(p,w+S.g),m=r.Math.max(m,T+S.f),l=new oT((!S.n&&(S.n=new L(E7,S,1,7)),S.n));l.e!=l.i.gc();)c=I(hU(l),153),E=I(J(c,Q8),8),E&&ZC(c,E.a,E.b),p=r.Math.max(p,w+c.i+c.g),m=r.Math.max(m,T+c.j+c.f);for(a=new Ak(wT(SG(v).a.Jc(),new f));fG(a);)n=I(sP(a),85),d=Ftt(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b);for(i=new Ak(wT(j$e(v).a.Jc(),new f));fG(i);)n=I(sP(i),85),vM(ZKe(n))!=e&&(d=Ftt(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b))}if(o==(RV(),Y8))for(y=new oT((!e.a&&(e.a=new L(D7,e,10,11)),e.a));y.e!=y.i.gc();)for(v=I(hU(y),26),i=new Ak(wT(SG(v).a.Jc(),new f));fG(i);)n=I(sP(i),85),s=P6e(n),s.b==0?vU(n,f8,null):vU(n,f8,s);W_(FE(J(e,(Hz(),gIt))))||(x=I(J(e,vIt),103),_=p+x.b+x.c,g=m+x.d+x.a,eq(e,_,g,!0,!0)),t.Tg()},z(NX,`FixedLayoutProvider`,1085),q(377,149,{3:1,411:1,377:1,104:1,149:1},Fc,oAe),Q.ag=function(e){var t,n,r,i,a,o,s,c,l;if(e)try{for(c=CK(e,`;,;`),a=c,o=0,s=a.length;o<s;++o){if(i=a[o],n=CK(i,`\\:`),r=C9e(zI(),n[0]),!r)throw O(new X_(`Invalid option id: `+n[0]));if(l=l9e(r,n[1]),l==null)throw O(new X_(`Invalid option value: `+n[1]));l==null?(!this.q&&(this.q=new zg),_P(this.q,r)):(!this.q&&(this.q=new zg),tj(this.q,r,l))}}catch(e){throw e=GR(e),P(e,100)?(t=e,O(new BFe(t))):O(e)}},Q.Ib=function(){return IE(KN(fj((this.q?this.q:(Ij(),Ij(),g$)).vc().Mc(),new Ic),$ke(new vO,new De,new Ce,new we,W(j(S$,1),Z,131,0,[]))))};var dLt=z(NX,`IndividualSpacings`,377);q(961,1,{},Ic),Q.Kb=function(e){return Ebe(I(e,43))},z(NX,`IndividualSpacings/lambda$0$Type`,961),q(705,1,{},Ige),Q.c=0,z(NX,`InstancePool`,705),q(1805,1,{},Lc),z(NX,`LoggedGraph`,1805),q(404,22,{3:1,34:1,22:1,404:1},tC);var fLt,pLt,mLt,hLt,gLt=kI(NX,`LoggedGraph/Type`,404,YQ,ETe,Ame),_Lt;q(611,1,{849:1},Rc),Q.Sg=function(e,t){return!1},Q.Tg=function(){},Q.Ug=function(){return 0},Q.Vg=function(){return null},Q.Wg=function(){return null},Q.Xg=function(){return null},Q.Yg=function(){return!1},Q.Zg=function(){return!1},Q.$g=function(){return!1},Q._g=function(e){},Q.ah=function(e,t){},Q.bh=function(e){return this},Q.dh=function(e){},z(NX,`NullElkProgressMonitor`,611),q(47,1,{20:1,47:1},eC),Q.Ic=function(e){QN(this,e)},Q.Fb=function(e){var t,n,r;return P(e,47)?(n=I(e,47),t=this.a==null?n.a==null:LB(this.a,n.a),r=this.b==null?n.b==null:LB(this.b,n.b),t&&r):!1},Q.Hb=function(){var e,t,n=this.a==null?0:TL(this.a),r,i,a;return e=n&oJ,t=n&-65536,a=this.b==null?0:TL(this.b),r=a&oJ,i=a&-65536,e^i>>16&oJ|t^r<<16},Q.Jc=function(){return new dte(this)},Q.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+UV(this.b)+`)`:this.b==null?`pair(`+UV(this.a)+`,null)`:`pair(`+UV(this.a)+`,`+UV(this.b)+`)`},z(NX,`Pair`,47),q(976,1,Oq,dte),Q.Nb=function(e){Zk(this,e)},Q.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},Q.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw O(new e_)},Q.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),O(new Xg)},Q.b=!1,Q.c=!1,z(NX,`Pair/1`,976),q(1075,214,nY,Pc),Q.kf=function(e,t){var n,r,i,a,o;if(t.Sg(`Random Layout`,1),(!e.a&&(e.a=new L(D7,e,10,11)),e.a).i==0){t.Tg();return}a=I(J(e,(MRe(),IIt)),17),i=a&&a.a!=0?new qN(a.a):new VV,n=G_(F(J(e,NIt))),o=G_(F(J(e,LIt))),r=I(J(e,PIt),103),ntt(e,i,n,o,r),t.Tg()},z(NX,`RandomLayoutProvider`,1075),q(239,1,{239:1},zme),Q.Fb=function(e){return rj(this.a,I(e,239).a)&&rj(this.b,I(e,239).b)&&rj(this.c,I(e,239).c)},Q.Hb=function(){return iB(W(j(WQ,1),Sq,1,5,[this.a,this.b,this.c]))},Q.Ib=function(){return`(`+this.a+xq+this.b+xq+this.c+`)`},z(NX,`Triple`,239);var vLt;q(548,1,{}),Q.Jf=function(){return new M(this.f.i,this.f.j)},Q.mf=function(e){return Zbe(e,(cq(),S8))?J(this.f,yLt):J(this.f,e)},Q.Kf=function(){return new M(this.f.g,this.f.f)},Q.Lf=function(){return this.g},Q.nf=function(e){return LP(this.f,e)},Q.Mf=function(e){gI(this.f,e.a),_I(this.f,e.b)},Q.Nf=function(e){mI(this.f,e.a),hI(this.f,e.b)},Q.Of=function(e){this.g=e},Q.g=0;var yLt;z(DZ,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,548),q(550,1,{834:1},wg),Q.Pf=function(){var e,t;if(!this.b)for(this.b=xN(Eye(this.a).i),t=new oT(Eye(this.a));t.e!=t.i.gc();)e=I(hU(t),153),rT(this.b,new F_(e));return this.b},Q.b=null,z(DZ,`ElkGraphAdapters/ElkEdgeAdapter`,550),q(259,548,{},P_),Q.Qf=function(){return fHe(this)},Q.a=null,z(DZ,`ElkGraphAdapters/ElkGraphAdapter`,259),q(627,548,{187:1},F_),z(DZ,`ElkGraphAdapters/ElkLabelAdapter`,627),q(549,548,{682:1},tE),Q.Pf=function(){return uHe(this)},Q.Tf=function(){var e;return e=I(J(this.f,(cq(),p8)),139),!e&&(e=new d_),e},Q.Vf=function(){return dHe(this)},Q.Xf=function(e){var t=new eO(e);vU(this.f,(cq(),p8),t)},Q.Yf=function(e){vU(this.f,(cq(),x8),new Wfe(e))},Q.Rf=function(){return this.d},Q.Sf=function(){var e,t;if(!this.a)for(this.a=new Rg,t=new Ak(wT(j$e(I(this.f,26)).a.Jc(),new f));fG(t);)e=I(sP(t),85),rT(this.a,new wg(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=new Rg,t=new Ak(wT(SG(I(this.f,26)).a.Jc(),new f));fG(t);)e=I(sP(t),85),rT(this.c,new wg(e));return this.c},Q.Wf=function(){return Nj(I(this.f,26)).i!=0||W_(FE(I(this.f,26).mf((cq(),u8))))},Q.Zf=function(){dAe(this,(Ub(),vLt))},Q.a=null,Q.b=null,Q.c=null,Q.d=null,Q.e=null,z(DZ,`ElkGraphAdapters/ElkNodeAdapter`,549),q(1246,548,{833:1},fte),Q.Pf=function(){return wHe(this)},Q.Sf=function(){var e,t;if(!this.a)for(this.a=cE(I(this.f,124).fh().i),t=new oT(I(this.f,124).fh());t.e!=t.i.gc();)e=I(hU(t),85),rT(this.a,new wg(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=cE(I(this.f,124).gh().i),t=new oT(I(this.f,124).gh());t.e!=t.i.gc();)e=I(hU(t),85),rT(this.c,new wg(e));return this.c},Q.$f=function(){return I(I(this.f,124).mf((cq(),T8)),64)},Q._f=function(){var e,t,n,r=fM(I(this.f,124)),i,a,o,s;for(n=new oT(I(this.f,124).gh());n.e!=n.i.gc();)for(e=I(hU(n),85),s=new oT((!e.c&&(e.c=new OD(v7,e,5,8)),e.c));s.e!=s.i.gc();)if(o=I(hU(s),84),QF(gW(o),r)||gW(o)==r&&W_(FE(J(e,(cq(),YPt)))))return!0;for(t=new oT(I(this.f,124).fh());t.e!=t.i.gc();)for(e=I(hU(t),85),a=new oT((!e.b&&(e.b=new OD(v7,e,4,7)),e.b));a.e!=a.i.gc();)if(i=I(hU(a),84),QF(gW(i),r))return!0;return!1},Q.a=null,Q.b=null,Q.c=null,z(DZ,`ElkGraphAdapters/ElkPortAdapter`,1246),q(1247,1,BJ,Hc),Q.Le=function(e,t){return P4e(I(e,124),I(t,124))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Pm(this)},z(DZ,`ElkGraphAdapters/PortComparator`,1247);var p7=KO(OZ,`EObject`),m7=KO(kZ,cdt),h7=KO(kZ,ldt),g7=KO(kZ,udt),_7=KO(kZ,`ElkShape`),v7=KO(kZ,ddt),y7=KO(kZ,fdt),b7=KO(kZ,pdt),x7=KO(OZ,mdt),S7=KO(OZ,`EFactory`),bLt,xLt=KO(OZ,hdt),C7=KO(OZ,`EPackage`),w7,SLt,CLt,wLt,TLt,ELt,DLt,OLt,kLt,T7,ALt,jLt,E7=KO(kZ,gdt),D7=KO(kZ,_dt),O7=KO(kZ,vdt);q(92,1,ydt),Q.ph=function(){return this.qh(),null},Q.qh=function(){return null},Q.rh=function(){return this.qh(),!1},Q.sh=function(){return!1},Q.th=function(e){pR(this,e)},z(AZ,`BasicNotifierImpl`,92),q(98,92,wdt),Q.Uh=function(){return qC(this)},Q.uh=function(e,t){return e},Q.vh=function(){throw O(new Qg)},Q.wh=function(e){var t;return t=DU(I(GF(this.zh(),this.Bh()),19)),this.Lh().Ph(this,t.n,t.f,e)},Q.xh=function(e,t){throw O(new Qg)},Q.yh=function(e,t,n){return gK(this,e,t,n)},Q.zh=function(){var e;return this.vh()&&(e=this.vh().Kk(),e)?e:this.ei()},Q.Ah=function(){return RZe(this)},Q.Bh=function(){throw O(new Qg)},Q.Ch=function(){var e,t=this.Wh().Lk();return!t&&this.vh().Qk(t=(qb(),e=wxe(TK(this.zh())),e==null?zRt:new nE(this,e))),t},Q.Dh=function(e,t){return e},Q.Eh=function(e){return e.mk()?e.Ij():gH(this.zh(),e)},Q.Fh=function(){var e=this.vh();return e?e.Nk():null},Q.Gh=function(){return this.vh()?this.vh().Kk():null},Q.Hh=function(e,t,n){return kBe(this,e,t,n)},Q.Ih=function(e){return YP(this,e)},Q.Jh=function(e,t){return dP(this,e,t)},Q.Kh=function(){var e=this.vh();return!!e&&e.Ok()},Q.Lh=function(){throw O(new Qg)},Q.Mh=function(){return iU(this)},Q.Nh=function(e,t,n,r){return _U(this,e,t,r)},Q.Oh=function(e,t,n){var r;return r=I(GF(this.zh(),t),69),r.tk().wk(this,this.di(),t-this.fi(),e,n)},Q.Ph=function(e,t,n,r){return iM(this,e,t,r)},Q.Qh=function(e,t,n){var r;return r=I(GF(this.zh(),t),69),r.tk().xk(this,this.di(),t-this.fi(),e,n)},Q.Rh=function(){return!!this.vh()&&!!this.vh().Mk()},Q.Sh=function(e){return $ze(this,e)},Q.Th=function(e){return Qxe(this,e)},Q.Vh=function(e){return det(this,e)},Q.Wh=function(){throw O(new Qg)},Q.Xh=function(){return this.vh()?this.vh().Mk():null},Q.Yh=function(){return iU(this)},Q.Zh=function(e,t){xYe(this,e,t)},Q.$h=function(e){this.Wh().Pk(e)},Q._h=function(e){this.Wh().Sk(e)},Q.ai=function(e){this.Wh().Rk(e)},Q.bi=function(e,t){var n,r,i,a=this.Fh();return a&&e&&(t=bU(a.Bl(),this,t),a.Fl(this)),r=this.Lh(),r&&((s3e(this,this.Lh(),this.Bh()).Bb&wJ)==0?(t=(n=this.Bh(),n>=0?this.wh(t):this.Lh().Ph(this,-1-n,null,t)),t=this.yh(null,-1,t)):(i=r.Mh(),i&&(e?!a&&i.Fl(this):i.El(this)))),this._h(e),t},Q.ci=function(e){var t,n=this.zh(),r,i,a=gH(n,e),o,s,c;if(t=this.fi(),a>=t)return I(e,69).tk().Ak(this,this.di(),a-t);if(a<=-1)if(o=GK((BW(),_9),n,e),o){if(Xb(),I(o,69).uk()||(o=qM(gF(_9,o))),i=(r=this.Eh(o),I(r>=0?this.Hh(r,!0,!0):aG(this,o,!0),159)),c=o.Fk(),c>1||c==-1)return I(I(i,219).Pl(e,!1),76)}else throw O(new X_(jZ+e.ve()+xdt));else if(e.Gk())return r=this.Eh(e),I(r>=0?this.Hh(r,!1,!0):aG(this,e,!1),76);return s=new Wse(this,e),s},Q.di=function(){return aAe(this)},Q.ei=function(){return(ej(),Z7).S},Q.fi=function(){return DA(this.ei())},Q.gi=function(e){OJe(this,e)},Q.Ib=function(){return gG(this)},z(PZ,`BasicEObjectImpl`,98);var MLt;q(117,98,{109:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1}),Q.hi=function(e){return iAe(this)[e]},Q.ii=function(e,t){AA(iAe(this),e,t)},Q.ji=function(e){AA(iAe(this),e,null)},Q.ph=function(){return I(vR(this,4),128)},Q.qh=function(){throw O(new Qg)},Q.rh=function(){return(this.Db&4)!=0},Q.vh=function(){throw O(new Qg)},Q.ki=function(e){$H(this,2,e)},Q.xh=function(e,t){this.Db=t<<16|this.Db&255,this.ki(e)},Q.zh=function(){return Kj(this)},Q.Bh=function(){return this.Db>>16},Q.Ch=function(){var e,t;return qb(),t=wxe(TK((e=I(vR(this,16),29),e||this.ei()))),t==null?zRt:new nE(this,t)},Q.sh=function(){return(this.Db&1)==0},Q.Fh=function(){return I(vR(this,128),1983)},Q.Gh=function(){return I(vR(this,16),29)},Q.Kh=function(){return(this.Db&32)!=0},Q.Lh=function(){return I(vR(this,2),52)},Q.Rh=function(){return(this.Db&64)!=0},Q.Wh=function(){throw O(new Qg)},Q.Xh=function(){return I(vR(this,64),288)},Q.$h=function(e){$H(this,16,e)},Q._h=function(e){$H(this,128,e)},Q.ai=function(e){$H(this,64,e)},Q.di=function(){return QH(this)},Q.Db=0,z(PZ,`MinimalEObjectImpl`,117),q(118,117,{109:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),Q.ki=function(e){this.Cb=e},Q.Lh=function(){return this.Cb},z(PZ,`MinimalEObjectImpl/Container`,118),q(2032,118,{109:1,340:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),Q.Hh=function(e,t,n){return EHe(this,e,t,n)},Q.Qh=function(e,t,n){return vqe(this,e,t,n)},Q.Sh=function(e){return cwe(this,e)},Q.Zh=function(e,t){Ez(this,e,t)},Q.ei=function(){return rq(),jLt},Q.gi=function(e){MPe(this,e)},Q.lf=function(){return eBe(this)},Q.eh=function(){return!this.o&&(this.o=new WP((rq(),T7),A7,this,0)),this.o},Q.mf=function(e){return J(this,e)},Q.nf=function(e){return LP(this,e)},Q.of=function(e,t){return vU(this,e,t)},z(FZ,`EMapPropertyHolderImpl`,2032),q(557,118,{109:1,370:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},Wc),Q.Hh=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return kBe(this,e,t,n)},Q.Sh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return $ze(this,e)},Q.Zh=function(e,t){switch(e){case 0:SI(this,A(F(t)));return;case 1:yI(this,A(F(t)));return}xYe(this,e,t)},Q.ei=function(){return rq(),SLt},Q.gi=function(e){switch(e){case 0:SI(this,0);return;case 1:yI(this,0);return}OJe(this,e)},Q.Ib=function(){var e;return this.Db&64?gG(this):(e=new kT(gG(this)),e.a+=` (x: `,cy(e,this.a),e.a+=`, y: `,cy(e,this.b),e.a+=`)`,e.a)},Q.a=0,Q.b=0,z(FZ,`ElkBendPointImpl`,557),q(724,2032,{109:1,340:1,173:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),Q.Hh=function(e,t,n){return VB(this,e,t,n)},Q.Oh=function(e,t,n){return gKe(this,e,t,n)},Q.Qh=function(e,t,n){return VR(this,e,t,n)},Q.Sh=function(e){return qNe(this,e)},Q.Zh=function(e,t){kWe(this,e,t)},Q.ei=function(){return rq(),ELt},Q.gi=function(e){zIe(this,e)},Q.hh=function(){return this.k},Q.ih=function(){return Eye(this)},Q.Ib=function(){return wV(this)},Q.k=null,z(FZ,`ElkGraphElementImpl`,724),q(725,724,{109:1,340:1,173:1,274:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),Q.Hh=function(e,t,n){return FV(this,e,t,n)},Q.Sh=function(e){return QV(this,e)},Q.Zh=function(e,t){AWe(this,e,t)},Q.ei=function(){return rq(),ALt},Q.gi=function(e){hRe(this,e)},Q.jh=function(){return this.f},Q.kh=function(){return this.g},Q.lh=function(){return this.i},Q.mh=function(){return this.j},Q.nh=function(e,t){XC(this,e,t)},Q.oh=function(e,t){ZC(this,e,t)},Q.Ib=function(){return Nqe(this)},Q.f=0,Q.g=0,Q.i=0,Q.j=0,z(FZ,`ElkShapeImpl`,725),q(726,725,{109:1,340:1,84:1,173:1,274:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1}),Q.Hh=function(e,t,n){return dVe(this,e,t,n)},Q.Oh=function(e,t,n){return aWe(this,e,t,n)},Q.Qh=function(e,t,n){return oWe(this,e,t,n)},Q.Sh=function(e){return lFe(this,e)},Q.Zh=function(e,t){lQe(this,e,t)},Q.ei=function(){return rq(),CLt},Q.gi=function(e){yBe(this,e)},Q.fh=function(){return!this.d&&(this.d=new OD(y7,this,8,5)),this.d},Q.gh=function(){return!this.e&&(this.e=new OD(y7,this,7,4)),this.e},z(FZ,`ElkConnectableShapeImpl`,726),q(269,724,{109:1,340:1,85:1,173:1,269:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},Gc),Q.wh=function(e){return fUe(this,e)},Q.Hh=function(e,t,n){switch(e){case 3:return dM(this);case 4:return!this.b&&(this.b=new OD(v7,this,4,7)),this.b;case 5:return!this.c&&(this.c=new OD(v7,this,5,8)),this.c;case 6:return!this.a&&(this.a=new L(b7,this,6,6)),this.a;case 7:return ST(),!this.b&&(this.b=new OD(v7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new OD(v7,this,5,8)),this.c.i<=1));case 8:return ST(),!!uG(this);case 9:return ST(),!!nG(this);case 10:return ST(),!this.b&&(this.b=new OD(v7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new OD(v7,this,5,8)),this.c.i!=0)}return VB(this,e,t,n)},Q.Oh=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?fUe(this,n):this.Cb.Ph(this,-1-r,null,n))),iD(this,I(e,26),n);case 4:return!this.b&&(this.b=new OD(v7,this,4,7)),SH(this.b,e,n);case 5:return!this.c&&(this.c=new OD(v7,this,5,8)),SH(this.c,e,n);case 6:return!this.a&&(this.a=new L(b7,this,6,6)),SH(this.a,e,n)}return gKe(this,e,t,n)},Q.Qh=function(e,t,n){switch(t){case 3:return iD(this,null,n);case 4:return!this.b&&(this.b=new OD(v7,this,4,7)),bU(this.b,e,n);case 5:return!this.c&&(this.c=new OD(v7,this,5,8)),bU(this.c,e,n);case 6:return!this.a&&(this.a=new L(b7,this,6,6)),bU(this.a,e,n)}return VR(this,e,t,n)},Q.Sh=function(e){switch(e){case 3:return!!dM(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new OD(v7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new OD(v7,this,5,8)),this.c.i<=1));case 8:return uG(this);case 9:return nG(this);case 10:return!this.b&&(this.b=new OD(v7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new OD(v7,this,5,8)),this.c.i!=0)}return qNe(this,e)},Q.Zh=function(e,t){switch(e){case 3:DG(this,I(t,26));return;case 4:!this.b&&(this.b=new OD(v7,this,4,7)),HK(this.b),!this.b&&(this.b=new OD(v7,this,4,7)),wA(this.b,I(t,16));return;case 5:!this.c&&(this.c=new OD(v7,this,5,8)),HK(this.c),!this.c&&(this.c=new OD(v7,this,5,8)),wA(this.c,I(t,16));return;case 6:!this.a&&(this.a=new L(b7,this,6,6)),HK(this.a),!this.a&&(this.a=new L(b7,this,6,6)),wA(this.a,I(t,16));return}kWe(this,e,t)},Q.ei=function(){return rq(),wLt},Q.gi=function(e){switch(e){case 3:DG(this,null);return;case 4:!this.b&&(this.b=new OD(v7,this,4,7)),HK(this.b);return;case 5:!this.c&&(this.c=new OD(v7,this,5,8)),HK(this.c);return;case 6:!this.a&&(this.a=new L(b7,this,6,6)),HK(this.a);return}zIe(this,e)},Q.Ib=function(){return w5e(this)},z(FZ,`ElkEdgeImpl`,269),q(440,2032,{109:1,340:1,168:1,440:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},Kc),Q.wh=function(e){return oUe(this,e)},Q.Hh=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new sT(h7,this,5)),this.a;case 6:return Hxe(this);case 7:return t?ZBe(this):this.i;case 8:return t?XBe(this):this.f;case 9:return!this.g&&(this.g=new OD(b7,this,9,10)),this.g;case 10:return!this.e&&(this.e=new OD(b7,this,10,9)),this.e;case 11:return this.d}return EHe(this,e,t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?oUe(this,n):this.Cb.Ph(this,-1-i,null,n))),aD(this,I(e,85),n);case 9:return!this.g&&(this.g=new OD(b7,this,9,10)),SH(this.g,e,n);case 10:return!this.e&&(this.e=new OD(b7,this,10,9)),SH(this.e,e,n)}return a=I(GF((r=I(vR(this,16),29),r||(rq(),TLt)),t),69),a.tk().wk(this,QH(this),t-DA((rq(),TLt)),e,n)},Q.Qh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new sT(h7,this,5)),bU(this.a,e,n);case 6:return aD(this,null,n);case 9:return!this.g&&(this.g=new OD(b7,this,9,10)),bU(this.g,e,n);case 10:return!this.e&&(this.e=new OD(b7,this,10,9)),bU(this.e,e,n)}return vqe(this,e,t,n)},Q.Sh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Hxe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return cwe(this,e)},Q.Zh=function(e,t){switch(e){case 1:vI(this,A(F(t)));return;case 2:xI(this,A(F(t)));return;case 3:bI(this,A(F(t)));return;case 4:pI(this,A(F(t)));return;case 5:!this.a&&(this.a=new sT(h7,this,5)),HK(this.a),!this.a&&(this.a=new sT(h7,this,5)),wA(this.a,I(t,16));return;case 6:i1e(this,I(t,85));return;case 7:nL(this,I(t,84));return;case 8:tL(this,I(t,84));return;case 9:!this.g&&(this.g=new OD(b7,this,9,10)),HK(this.g),!this.g&&(this.g=new OD(b7,this,9,10)),wA(this.g,I(t,16));return;case 10:!this.e&&(this.e=new OD(b7,this,10,9)),HK(this.e),!this.e&&(this.e=new OD(b7,this,10,9)),wA(this.e,I(t,16));return;case 11:aL(this,IE(t));return}Ez(this,e,t)},Q.ei=function(){return rq(),TLt},Q.gi=function(e){switch(e){case 1:vI(this,0);return;case 2:xI(this,0);return;case 3:bI(this,0);return;case 4:pI(this,0);return;case 5:!this.a&&(this.a=new sT(h7,this,5)),HK(this.a);return;case 6:i1e(this,null);return;case 7:nL(this,null);return;case 8:tL(this,null);return;case 9:!this.g&&(this.g=new OD(b7,this,9,10)),HK(this.g);return;case 10:!this.e&&(this.e=new OD(b7,this,10,9)),HK(this.e);return;case 11:aL(this,null);return}MPe(this,e)},Q.Ib=function(){return CZe(this)},Q.b=0,Q.c=0,Q.d=null,Q.j=0,Q.k=0,z(FZ,`ElkEdgeSectionImpl`,440),q(157,118,{109:1,93:1,92:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1}),Q.Hh=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab):eF(this,e-DA(this.ei()),GF((r=I(vR(this,16),29),r||this.ei()),e),t,n)},Q.Oh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n)):(i=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),i.tk().wk(this,QH(this),t-DA(this.ei()),e,n))},Q.Qh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n)):(i=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),i.tk().xk(this,QH(this),t-DA(this.ei()),e,n))},Q.Sh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:ON(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.Vh=function(e){return Ott(this,e)},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return}NV(this,e-DA(this.ei()),GF((n=I(vR(this,16),29),n||this.ei()),e),t)},Q._h=function(e){$H(this,128,e)},Q.ei=function(){return fq(),DRt},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return}HB(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.li=function(){this.Bb|=1},Q.mi=function(e){return _K(this,e)},Q.Bb=0,z(PZ,`EModelElementImpl`,157),q(707,157,{109:1,93:1,92:1,466:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1},bf),Q.ni=function(e,t){return q9e(this,e,t)},Q.oi=function(e){var t,n,r,i,a;if(this.a!=aI(e)||e.Bb&256)throw O(new X_(Edt+e.zb+RZ));for(r=Wj(e);NN(r.a).i!=0;){if(n=I(qK(r,0,(t=I(U(NN(r.a),0),87),a=t.c,P(a,88)?I(a,29):(fq(),o9))),29),FU(n))return i=aI(n).si().oi(n),I(i,52).$h(e),i;r=Wj(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new $he(e):new bhe(e)},Q.pi=function(e,t){return iq(this,e,t)},Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.a}return eF(this,e-DA((fq(),r9)),GF((r=I(vR(this,16),29),r||r9),e),t,n)},Q.Oh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 1:return this.a&&(n=I(this.a,52).Ph(this,4,C7,n)),SIe(this,I(e,240),n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),r9)),t),69),i.tk().wk(this,QH(this),t-DA((fq(),r9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 1:return SIe(this,null,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),r9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),r9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ON(this,e-DA((fq(),r9)),GF((t=I(vR(this,16),29),t||r9),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:nqe(this,I(t,240));return}NV(this,e-DA((fq(),r9)),GF((n=I(vR(this,16),29),n||r9),e),t)},Q.ei=function(){return fq(),r9},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:nqe(this,null);return}HB(this,e-DA((fq(),r9)),GF((t=I(vR(this,16),29),t||r9),e))};var k7,NLt,PLt;z(PZ,`EFactoryImpl`,707),q(1015,707,{109:1,2062:1,93:1,92:1,466:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1},qc),Q.ni=function(e,t){switch(e.ek()){case 12:return I(t,145).Ng();case 13:return UV(t);default:throw O(new X_(LZ+e.ve()+RZ))}},Q.oi=function(e){var t,n,r,i,a,o,s,c;switch(e.G==-1&&(e.G=(t=aI(e),t?wU(t.ri(),e):-1)),e.G){case 4:return a=new Vc,a;case 6:return o=new x_,o;case 7:return s=new _re,s;case 8:return r=new Gc,r;case 9:return n=new Wc,n;case 10:return i=new Kc,i;case 11:return c=new Jc,c;default:throw O(new X_(Edt+e.zb+RZ))}},Q.pi=function(e,t){switch(e.ek()){case 13:case 12:return null;default:throw O(new X_(LZ+e.ve()+RZ))}},z(FZ,`ElkGraphFactoryImpl`,1015),q(436,157,{109:1,93:1,92:1,154:1,197:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1}),Q.Ch=function(){var e,t=(e=I(vR(this,16),29),wxe(TK(e||this.ei())));return t==null?(qb(),qb(),zRt):new Kue(this,t)},Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.ve()}return eF(this,e-DA(this.ei()),GF((r=I(vR(this,16),29),r||this.ei()),e),t,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ON(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:this.qi(IE(t));return}NV(this,e-DA(this.ei()),GF((n=I(vR(this,16),29),n||this.ei()),e),t)},Q.ei=function(){return fq(),ORt},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:this.qi(null);return}HB(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.ve=function(){return this.zb},Q.qi=function(e){DL(this,e)},Q.Ib=function(){return MB(this)},Q.zb=null,z(PZ,`ENamedElementImpl`,436),q(184,436,{109:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,52:1,98:1,157:1,184:1,117:1,118:1,677:1},Tbe),Q.wh=function(e){return uUe(this,e)},Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Wk(this,V7,this)),this.rb;case 6:return!this.vb&&(this.vb=new wD(C7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?I(this.Cb,240):null:tSe(this)}return eF(this,e-DA((fq(),c9)),GF((r=I(vR(this,16),29),r||c9),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 4:return this.sb&&(n=I(this.sb,52).Ph(this,1,S7,n)),HIe(this,I(e,466),n);case 5:return!this.rb&&(this.rb=new Wk(this,V7,this)),SH(this.rb,e,n);case 6:return!this.vb&&(this.vb=new wD(C7,this,6,7)),SH(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?uUe(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,7,n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),c9)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),c9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 4:return HIe(this,null,n);case 5:return!this.rb&&(this.rb=new Wk(this,V7,this)),bU(this.rb,e,n);case 6:return!this.vb&&(this.vb=new wD(C7,this,6,7)),bU(this.vb,e,n);case 7:return gK(this,null,7,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),c9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),c9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!tSe(this)}return ON(this,e-DA((fq(),c9)),GF((t=I(vR(this,16),29),t||c9),e))},Q.Vh=function(e){return z1e(this,e)||Ott(this,e)},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:DL(this,IE(t));return;case 2:jL(this,IE(t));return;case 3:AL(this,IE(t));return;case 4:yqe(this,I(t,466));return;case 5:!this.rb&&(this.rb=new Wk(this,V7,this)),HK(this.rb),!this.rb&&(this.rb=new Wk(this,V7,this)),wA(this.rb,I(t,16));return;case 6:!this.vb&&(this.vb=new wD(C7,this,6,7)),HK(this.vb),!this.vb&&(this.vb=new wD(C7,this,6,7)),wA(this.vb,I(t,16));return}NV(this,e-DA((fq(),c9)),GF((n=I(vR(this,16),29),n||c9),e),t)},Q.ai=function(e){var t,n;if(e&&this.rb)for(n=new oT(this.rb);n.e!=n.i.gc();)t=hU(n),P(t,358)&&(I(t,358).w=null);$H(this,64,e)},Q.ei=function(){return fq(),c9},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:DL(this,null);return;case 2:jL(this,null);return;case 3:AL(this,null);return;case 4:yqe(this,null);return;case 5:!this.rb&&(this.rb=new Wk(this,V7,this)),HK(this.rb);return;case 6:!this.vb&&(this.vb=new wD(C7,this,6,7)),HK(this.vb);return}HB(this,e-DA((fq(),c9)),GF((t=I(vR(this,16),29),t||c9),e))},Q.li=function(){DHe(this)},Q.ri=function(){return!this.rb&&(this.rb=new Wk(this,V7,this)),this.rb},Q.si=function(){return this.sb},Q.ti=function(){return this.ub},Q.ui=function(){return this.xb},Q.vi=function(){return this.yb},Q.wi=function(e){this.ub=e},Q.Ib=function(){var e;return this.Db&64?MB(this):(e=new kT(MB(this)),e.a+=` (nsURI: `,xC(e,this.yb),e.a+=`, nsPrefix: `,xC(e,this.xb),e.a+=`)`,e.a)},Q.xb=null,Q.yb=null;var FLt;z(PZ,`EPackageImpl`,184),q(554,184,{109:1,2064:1,554:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,52:1,98:1,157:1,184:1,117:1,118:1,677:1},WZe),Q.q=!1,Q.r=!1;var ILt=!1;z(FZ,`ElkGraphPackageImpl`,554),q(360,725,{109:1,340:1,173:1,153:1,274:1,360:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},Vc),Q.wh=function(e){return sUe(this,e)},Q.Hh=function(e,t,n){switch(e){case 7:return nSe(this);case 8:return this.a}return FV(this,e,t,n)},Q.Oh=function(e,t,n){var r;switch(t){case 7:return this.Cb&&(n=(r=this.Db>>16,r>=0?sUe(this,n):this.Cb.Ph(this,-1-r,null,n))),Vge(this,I(e,173),n)}return gKe(this,e,t,n)},Q.Qh=function(e,t,n){return t==7?Vge(this,null,n):VR(this,e,t,n)},Q.Sh=function(e){switch(e){case 7:return!!nSe(this);case 8:return!PD(``,this.a)}return QV(this,e)},Q.Zh=function(e,t){switch(e){case 7:I1e(this,I(t,173));return;case 8:AMe(this,IE(t));return}AWe(this,e,t)},Q.ei=function(){return rq(),DLt},Q.gi=function(e){switch(e){case 7:I1e(this,null);return;case 8:AMe(this,``);return}hRe(this,e)},Q.Ib=function(){return _Je(this)},Q.a=``,z(FZ,`ElkLabelImpl`,360),q(206,726,{109:1,340:1,84:1,173:1,26:1,274:1,206:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},x_),Q.wh=function(e){return DUe(this,e)},Q.Hh=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new L(O7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new L(D7,this,10,11)),this.a;case 11:return vM(this);case 12:return!this.b&&(this.b=new L(y7,this,12,3)),this.b;case 13:return ST(),!this.a&&(this.a=new L(D7,this,10,11)),this.a.i>0}return dVe(this,e,t,n)},Q.Oh=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new L(O7,this,9,9)),SH(this.c,e,n);case 10:return!this.a&&(this.a=new L(D7,this,10,11)),SH(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?DUe(this,n):this.Cb.Ph(this,-1-r,null,n))),xD(this,I(e,26),n);case 12:return!this.b&&(this.b=new L(y7,this,12,3)),SH(this.b,e,n)}return aWe(this,e,t,n)},Q.Qh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new L(O7,this,9,9)),bU(this.c,e,n);case 10:return!this.a&&(this.a=new L(D7,this,10,11)),bU(this.a,e,n);case 11:return xD(this,null,n);case 12:return!this.b&&(this.b=new L(y7,this,12,3)),bU(this.b,e,n)}return oWe(this,e,t,n)},Q.Sh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!vM(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new L(D7,this,10,11)),this.a.i>0}return lFe(this,e)},Q.Zh=function(e,t){switch(e){case 9:!this.c&&(this.c=new L(O7,this,9,9)),HK(this.c),!this.c&&(this.c=new L(O7,this,9,9)),wA(this.c,I(t,16));return;case 10:!this.a&&(this.a=new L(D7,this,10,11)),HK(this.a),!this.a&&(this.a=new L(D7,this,10,11)),wA(this.a,I(t,16));return;case 11:OG(this,I(t,26));return;case 12:!this.b&&(this.b=new L(y7,this,12,3)),HK(this.b),!this.b&&(this.b=new L(y7,this,12,3)),wA(this.b,I(t,16));return}lQe(this,e,t)},Q.ei=function(){return rq(),OLt},Q.gi=function(e){switch(e){case 9:!this.c&&(this.c=new L(O7,this,9,9)),HK(this.c);return;case 10:!this.a&&(this.a=new L(D7,this,10,11)),HK(this.a);return;case 11:OG(this,null);return;case 12:!this.b&&(this.b=new L(y7,this,12,3)),HK(this.b);return}yBe(this,e)},Q.Ib=function(){return F4e(this)},z(FZ,`ElkNodeImpl`,206),q(193,726,{109:1,340:1,84:1,173:1,124:1,274:1,193:1,104:1,93:1,92:1,57:1,113:1,52:1,98:1,117:1,118:1},_re),Q.wh=function(e){return cUe(this,e)},Q.Hh=function(e,t,n){return e==9?fM(this):dVe(this,e,t,n)},Q.Oh=function(e,t,n){var r;switch(t){case 9:return this.Cb&&(n=(r=this.Db>>16,r>=0?cUe(this,n):this.Cb.Ph(this,-1-r,null,n))),jde(this,I(e,26),n)}return aWe(this,e,t,n)},Q.Qh=function(e,t,n){return t==9?jde(this,null,n):oWe(this,e,t,n)},Q.Sh=function(e){return e==9?!!fM(this):lFe(this,e)},Q.Zh=function(e,t){switch(e){case 9:a1e(this,I(t,26));return}lQe(this,e,t)},Q.ei=function(){return rq(),kLt},Q.gi=function(e){switch(e){case 9:a1e(this,null);return}yBe(this,e)},Q.Ib=function(){return I4e(this)},z(FZ,`ElkPortImpl`,193);var LLt=KO(UZ,`BasicEMap/Entry`);q(1088,118,{109:1,43:1,93:1,92:1,135:1,57:1,113:1,52:1,98:1,117:1,118:1},Jc),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.Hb=function(){return XT(this)},Q.zi=function(e){jMe(this,I(e,145))},Q.Hh=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return kBe(this,e,t,n)},Q.Sh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return $ze(this,e)},Q.Zh=function(e,t){switch(e){case 0:jMe(this,I(t,145));return;case 1:kMe(this,t);return}xYe(this,e,t)},Q.ei=function(){return rq(),T7},Q.gi=function(e){switch(e){case 0:jMe(this,null);return;case 1:kMe(this,null);return}OJe(this,e)},Q.xi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?TL(e):0),this.a},Q.kd=function(){return this.c},Q.yi=function(e){this.a=e},Q.ld=function(e){var t=this.c;return kMe(this,e),t},Q.Ib=function(){var e;return this.Db&64?gG(this):(e=new bv,wC(wC(wC(e,this.b?this.b.Ng():Cq),Zat),DT(this.c)),e.a)},Q.a=-1,Q.c=null;var A7=z(FZ,`ElkPropertyToValueMapEntryImpl`,1088);q(977,1,{},Yc),z(GZ,`JsonAdapter`,977),q(215,63,rJ,lv),z(GZ,`JsonImportException`,215),q(847,1,{},DZe),z(GZ,`JsonImporter`,847),q(881,1,{},xse),Q.Ai=function(e){sWe(this.a,this.b,I(e,138))},z(GZ,`JsonImporter/lambda$0$Type`,881),q(882,1,{},Sse),Q.Ai=function(e){kXe(this.a,this.b,I(e,138))},z(GZ,`JsonImporter/lambda$1$Type`,882),q(890,1,{},pte),Q.Ai=function(e){Lye(this.a,I(e,148))},z(GZ,`JsonImporter/lambda$10$Type`,890),q(892,1,{},Cse),Q.Ai=function(e){XYe(this.a,this.b,I(e,138))},z(GZ,`JsonImporter/lambda$11$Type`,892),q(893,1,{},wse),Q.Ai=function(e){ZYe(this.a,this.b,I(e,138))},z(GZ,`JsonImporter/lambda$12$Type`,893),q(899,1,{},Zye),Q.Ai=function(e){eJe(this.a,this.b,this.c,this.d,I(e,138))},z(GZ,`JsonImporter/lambda$13$Type`,899),q(898,1,{},Qye),Q.Ai=function(e){p6e(this.a,this.b,this.c,this.d,I(e,148))},z(GZ,`JsonImporter/lambda$14$Type`,898),q(894,1,{},Tse),Q.Ai=function(e){SD(this.a,this.b,IE(e))},z(GZ,`JsonImporter/lambda$15$Type`,894),q(895,1,{},Ese),Q.Ai=function(e){CD(this.a,this.b,IE(e))},z(GZ,`JsonImporter/lambda$16$Type`,895),q(896,1,{},Dse),Q.Ai=function(e){VHe(this.b,this.a,I(e,138))},z(GZ,`JsonImporter/lambda$17$Type`,896),q(897,1,{},Ose),Q.Ai=function(e){HHe(this.b,this.a,I(e,138))},z(GZ,`JsonImporter/lambda$18$Type`,897),q(902,1,{},mte),Q.Ai=function(e){xqe(this.a,I(e,148))},z(GZ,`JsonImporter/lambda$19$Type`,902),q(883,1,{},hte),Q.Ai=function(e){AUe(this.a,I(e,138))},z(GZ,`JsonImporter/lambda$2$Type`,883),q(900,1,{},gte),Q.Ai=function(e){vI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$20$Type`,900),q(901,1,{},_te),Q.Ai=function(e){xI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$21$Type`,901),q(905,1,{},vte),Q.Ai=function(e){bqe(this.a,I(e,148))},z(GZ,`JsonImporter/lambda$22$Type`,905),q(903,1,{},yte),Q.Ai=function(e){bI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$23$Type`,903),q(904,1,{},bte),Q.Ai=function(e){pI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$24$Type`,904),q(907,1,{},xte),Q.Ai=function(e){cGe(this.a,I(e,138))},z(GZ,`JsonImporter/lambda$25$Type`,907),q(906,1,{},Ste),Q.Ai=function(e){Rye(this.a,I(e,148))},z(GZ,`JsonImporter/lambda$26$Type`,906),q(908,1,Lq,kse),Q.Ad=function(e){ske(this.b,this.a,IE(e))},z(GZ,`JsonImporter/lambda$27$Type`,908),q(909,1,Lq,Ase),Q.Ad=function(e){cke(this.b,this.a,IE(e))},z(GZ,`JsonImporter/lambda$28$Type`,909),q(910,1,{},jse),Q.Ai=function(e){wQe(this.a,this.b,I(e,138))},z(GZ,`JsonImporter/lambda$29$Type`,910),q(886,1,{},Cte),Q.Ai=function(e){iH(this.a,I(e,148))},z(GZ,`JsonImporter/lambda$3$Type`,886),q(911,1,{},Mse),Q.Ai=function(e){G$e(this.a,this.b,I(e,138))},z(GZ,`JsonImporter/lambda$30$Type`,911),q(912,1,{},Tg),Q.Ai=function(e){sAe(this.a,F(e))},z(GZ,`JsonImporter/lambda$31$Type`,912),q(913,1,{},wte),Q.Ai=function(e){cAe(this.a,F(e))},z(GZ,`JsonImporter/lambda$32$Type`,913),q(914,1,{},Tte),Q.Ai=function(e){lAe(this.a,F(e))},z(GZ,`JsonImporter/lambda$33$Type`,914),q(915,1,{},Ete),Q.Ai=function(e){uAe(this.a,F(e))},z(GZ,`JsonImporter/lambda$34$Type`,915),q(916,1,{},Dte),Q.Ai=function(e){YKe(this.a,I(e,57))},z(GZ,`JsonImporter/lambda$35$Type`,916),q(917,1,{},Ote),Q.Ai=function(e){XKe(this.a,I(e,57))},z(GZ,`JsonImporter/lambda$36$Type`,917),q(921,1,{},$ye),z(GZ,`JsonImporter/lambda$37$Type`,921),q(918,1,Lq,Hme),Q.Ad=function(e){tNe(this.a,this.c,this.b,I(e,370))},z(GZ,`JsonImporter/lambda$38$Type`,918),q(919,1,Lq,Nse),Q.Ad=function(e){Zse(this.a,this.b,I(e,168))},z(GZ,`JsonImporter/lambda$39$Type`,919),q(884,1,{},kte),Q.Ai=function(e){vI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$4$Type`,884),q(920,1,Lq,Pse),Q.Ad=function(e){Qse(this.a,this.b,I(e,168))},z(GZ,`JsonImporter/lambda$40$Type`,920),q(922,1,Lq,Bme),Q.Ad=function(e){nNe(this.a,this.b,this.c,I(e,8))},z(GZ,`JsonImporter/lambda$41$Type`,922),q(885,1,{},Ate),Q.Ai=function(e){xI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$5$Type`,885),q(889,1,{},jte),Q.Ai=function(e){aH(this.a,I(e,148))},z(GZ,`JsonImporter/lambda$6$Type`,889),q(887,1,{},Mte),Q.Ai=function(e){bI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$7$Type`,887),q(888,1,{},Nte),Q.Ai=function(e){pI(this.a,A(F(e)))},z(GZ,`JsonImporter/lambda$8$Type`,888),q(891,1,{},Pte),Q.Ai=function(e){lGe(this.a,I(e,138))},z(GZ,`JsonImporter/lambda$9$Type`,891),q(941,1,Lq,Fte),Q.Ad=function(e){BA(this.a,new IA(IE(e)))},z(GZ,`JsonMetaDataConverter/lambda$0$Type`,941),q(942,1,Lq,Ite),Q.Ad=function(e){mve(this.a,I(e,243))},z(GZ,`JsonMetaDataConverter/lambda$1$Type`,942),q(943,1,Lq,Lte),Q.Ad=function(e){ESe(this.a,I(e,142))},z(GZ,`JsonMetaDataConverter/lambda$2$Type`,943),q(944,1,Lq,Rte),Q.Ad=function(e){hve(this.a,I(e,170))},z(GZ,`JsonMetaDataConverter/lambda$3$Type`,944),q(243,22,{3:1,34:1,22:1,243:1},nC);var RLt,zLt,BLt,VLt,HLt,ULt,WLt,GLt,KLt=kI(iY,`GraphFeature`,243,YQ,eje,Xme),qLt;q(12,1,{34:1,145:1},Eg,XE,FC,hw),Q.Dd=function(e){return Qw(this,I(e,145))},Q.Fb=function(e){return Zbe(this,e)},Q.Qg=function(){return mU(this)},Q.Ng=function(){return this.b},Q.Hb=function(){return kz(this.b)},Q.Ib=function(){return this.b},z(iY,`Property`,12),q(654,1,BJ,Dg),Q.Le=function(e,t){return OLe(this,I(e,104),I(t,104))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Pm(this)},z(iY,`PropertyHolderComparator`,654),q(695,1,Oq,zte),Q.Nb=function(e){Zk(this,e)},Q.Pb=function(){return ike(this)},Q.Qb=function(){Qie()},Q.Ob=function(){return!!this.a},z(XZ,`ElkGraphUtil/AncestorIterator`,695);var JLt=KO(UZ,`EList`);q(70,55,{20:1,31:1,55:1,16:1,15:1,70:1,61:1}),Q._c=function(e,t){KB(this,e,t)},Q.Ec=function(e){return JP(this,e)},Q.ad=function(e,t){return WPe(this,e,t)},Q.Fc=function(e){return wA(this,e)},Q.Fi=function(){return new QT(this)},Q.Gi=function(){return new ZT(this)},Q.Hi=function(e){return FI(this,e)},Q.Ii=function(){return!0},Q.Ji=function(e,t){},Q.Ki=function(){},Q.Li=function(e,t){FP(this,e,t)},Q.Mi=function(e,t,n){},Q.Ni=function(e,t){},Q.Oi=function(e,t,n){},Q.Fb=function(e){return z2e(this,e)},Q.Hb=function(){return YR(this)},Q.Pi=function(){return!1},Q.Jc=function(){return new oT(this)},Q.cd=function(){return new $T(this)},Q.dd=function(e){var t=this.gc();if(e<0||e>t)throw O(new AD(e,t));return new pA(this,e)},Q.Ri=function(e,t){this.Qi(e,this.bd(t))},Q.Kc=function(e){return kF(this,e)},Q.Ti=function(e,t){return t},Q.fd=function(e,t){return CU(this,e,t)},Q.Ib=function(){return JV(this)},Q.Vi=function(){return!0},Q.Wi=function(e,t){return Pz(this,t)},z(UZ,`AbstractEList`,70),q(66,70,$Z,Xc,XF,QL),Q.Bi=function(e,t){return _Ke(this,e,t)},Q.Ci=function(e){return jVe(this,e)},Q.Di=function(e,t){RB(this,e,t)},Q.Ei=function(e){fP(this,e)},Q.Xi=function(e){return fke(this,e)},Q.$b=function(){pP(this)},Q.Gc=function(e){return tW(this,e)},Q.Xb=function(e){return U(this,e)},Q.Yi=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t<e&&(t=e),this.g=this.Zi(t),r!=null&&SK(r,0,this.g,0,this.i))},Q.bd=function(e){return YHe(this,e)},Q.dc=function(){return this.i==0},Q.Qi=function(e,t){return BXe(this,e,t)},Q.Zi=function(e){return H(WQ,Sq,1,e,5,1)},Q.Si=function(e){return this.g[e]},Q.ed=function(e){return HU(this,e)},Q.Ui=function(e,t){return AF(this,e,t)},Q.gc=function(){return this.i},Q.Nc=function(){return jTe(this)},Q.Oc=function(e){return vH(this,e)},Q.i=0;var YLt=z(UZ,`BasicEList`,66),XLt=KO(UZ,`TreeIterator`);q(694,66,rft),Q.Nb=function(e){Zk(this,e)},Q.Ob=function(){return this.g==null&&!this.c?eSe(this):this.g==null||this.i!=0&&I(this.g[this.i-1],49).Ob()},Q.Pb=function(){return bG(this)},Q.Qb=function(){if(!this.e)throw O(new Z_(`There is no valid object to remove.`));this.e.Qb()},Q.c=!1,z(UZ,`AbstractTreeIterator`,694),q(601,694,rft,Wce),Q.$i=function(e){var t=I(e,57).Ch().Jc();return P(t,285)&&I(t,285).tl(new Zc),t},z(XZ,`ElkGraphUtil/PropertiesSkippingTreeIterator`,601),q(945,1,{},Zc),z(XZ,`ElkGraphUtil/PropertiesSkippingTreeIterator/1`,945);var j7,ZLt,M7=z(XZ,`ElkReflect`,null);q(879,1,_Z,Qc),Q.Pg=function(e){return xM(),DCe(I(e,181))},z(XZ,`ElkReflect/lambda$0$Type`,879);var N7;KO(UZ,`ResourceLocator`),q(1042,1,{}),z(UZ,`DelegatingResourceLocator`,1042),q(1043,1042,{}),z(`org.eclipse.emf.common`,`EMFPlugin`,1043);var QLt=KO(Rft,`Adapter`),$Lt=KO(Rft,`Notification`);q(1140,1,zft),Q._i=function(){return this.d},Q.aj=function(e){},Q.bj=function(e){this.d=e},Q.cj=function(e){this.d==e&&(this.d=null)},Q.d=null,z(AZ,`AdapterImpl`,1140),q(2042,70,Bft),Q.Bi=function(e,t){return uH(this,e,t)},Q.Ci=function(e){var t,n,r;if(++this.j,e.dc())return!1;for(t=this.Bj(),r=e.Jc();r.Ob();)n=r.Pb(),this.oj(this.Wi(t,n)),++t;return!0},Q.Di=function(e,t){qE(this,e,t)},Q.Ei=function(e){Lve(this,e)},Q.mj=function(){return this.pj()},Q.$b=function(){JE(this,this.Bj(),this.Cj())},Q.Gc=function(e){return this.rj(e)},Q.Hc=function(e){return this.sj(e)},Q.nj=function(e,t){this.yj().Rm()},Q.oj=function(e){this.yj().Rm()},Q.pj=function(){return this.yj()},Q.qj=function(){this.yj().Rm()},Q.rj=function(e){return this.yj().Rm()},Q.sj=function(e){return this.yj().Rm()},Q.tj=function(e){return this.yj().Rm()},Q.uj=function(e){return this.yj().Rm()},Q.vj=function(){return this.yj().Rm()},Q.wj=function(e){return this.yj().Rm()},Q.xj=function(){return this.yj().Rm()},Q.zj=function(e){return this.yj().Rm()},Q.Aj=function(e,t){return this.yj().Rm()},Q.Bj=function(){return this.yj().Rm()},Q.Cj=function(){return this.yj().Rm()},Q.Dj=function(e){return this.yj().Rm()},Q.Ej=function(){return this.yj().Rm()},Q.Fb=function(e){return this.tj(e)},Q.Xb=function(e){return this.Ti(e,this.uj(e))},Q.Hb=function(){return this.vj()},Q.bd=function(e){return this.wj(e)},Q.dc=function(){return this.xj()},Q.Qi=function(e,t){return $Ke(this,e,t)},Q.Si=function(e){return this.uj(e)},Q.ed=function(e){return qO(this,e)},Q.Kc=function(e){var t=this.bd(e);return t>=0?(this.ed(t),!0):!1},Q.Ui=function(e,t){return this.Aj(e,this.Wi(e,t))},Q.gc=function(){return this.Bj()},Q.Nc=function(){return this.Cj()},Q.Oc=function(e){return this.Dj(e)},Q.Ib=function(){return this.Ej()},z(UZ,`DelegatingEList`,2042),q(2043,2042,Bft),Q.Bi=function(e,t){return I6e(this,e,t)},Q.Ci=function(e){return this.Bi(this.Bj(),e)},Q.Di=function(e,t){GZe(this,e,t)},Q.Ei=function(e){yZe(this,e)},Q.Ii=function(){return!this.Jj()},Q.$b=function(){UK(this)},Q.Fj=function(e,t,n,r,i){return new Kbe(this,e,t,n,r,i)},Q.Gj=function(e){pR(this.gj(),e)},Q.Hj=function(){return null},Q.Ij=function(){return-1},Q.gj=function(){return null},Q.Jj=function(){return!1},Q.Kj=function(e,t){return t},Q.Lj=function(e,t){return t},Q.Mj=function(){return!1},Q.Nj=function(){return!this.xj()},Q.Qi=function(e,t){var n,r;return this.Mj()?(r=this.Nj(),n=$Ke(this,e,t),this.Gj(this.Fj(7,kB(t),n,e,r)),n):$Ke(this,e,t)},Q.ed=function(e){var t,n,r,i;return this.Mj()?(n=null,r=this.Nj(),t=this.Fj(4,i=qO(this,e),null,e,r),this.Jj()&&i&&(n=this.Lj(i,n)),n?(n.kj(t),n.lj()):this.Gj(t),i):(i=qO(this,e),this.Jj()&&i&&(n=this.Lj(i,null),n&&n.lj()),i)},Q.Ui=function(e,t){return L6e(this,e,t)},z(AZ,`DelegatingNotifyingListImpl`,2043),q(150,1,oQ),Q.kj=function(e){return hGe(this,e)},Q.lj=function(){qke(this)},Q.dj=function(){return this.d},Q.Hj=function(){return null},Q.Oj=function(){return null},Q.ej=function(e){return-1},Q.fj=function(){return P0e(this)},Q.gj=function(){return null},Q.hj=function(){return F0e(this)},Q.ij=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Q.Pj=function(){return!1},Q.jj=function(e){var t,n,r,i,a,o,s,c,l,u,d;switch(this.d){case 1:case 2:switch(i=e.dj(),i){case 1:case 2:if(a=e.gj(),N(a)===N(this.gj())&&this.ej(null)==e.ej(null))return this.g=e.fj(),e.dj()==1&&(this.d=1),!0}case 4:switch(i=e.dj(),i){case 4:if(a=e.gj(),N(a)===N(this.gj())&&this.ej(null)==e.ej(null))return l=u9e(this),c=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.ij(),this.d=6,d=new XF(2),c<=o?(JP(d,this.n),JP(d,e.hj()),this.g=W(j(q9,1),lJ,30,15,[this.o=c,o+1])):(JP(d,e.hj()),JP(d,this.n),this.g=W(j(q9,1),lJ,30,15,[this.o=o,c])),this.n=d,l||(this.o=-2-this.o-1),!0;break}break;case 6:switch(i=e.dj(),i){case 4:if(a=e.gj(),N(a)===N(this.gj())&&this.ej(null)==e.ej(null)){for(l=u9e(this),o=e.ij(),u=I(this.g,54),r=H(q9,lJ,30,u.length+1,15,1),t=0;t<u.length&&(s=u[t],s<=o);)r[t++]=s,++o;for(n=I(this.n,15),n._c(t,e.hj()),r[t]=o;++t<r.length;)r[t]=u[t-1];return this.g=r,l||(this.o=-2-r[0]),!0}break}break}return!1},Q.Ib=function(){var e,t,n,r=new kT(sy(this.Om)+`@`+(t=TL(this)>>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:ly(r,this.d);break}if(Q4e(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,ly(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,bC(r,this.gj()),r.a+=`, feature: `,bC(r,this.Hj()),r.a+=`, oldValue: `,bC(r,F0e(this)),r.a+=`, newValue: `,this.d==6&&P(this.g,54)){for(n=I(this.g,54),r.a+=`[`,e=0;e<n.length;)r.a+=n[e],++e<n.length&&(r.a+=xq);r.a+=`]`}else bC(r,P0e(this));return r.a+=`, isTouch: `,uy(r,Q4e(this)),r.a+=`, wasSet: `,uy(r,u9e(this)),r.a+=`)`,r.a},Q.d=0,Q.e=0,Q.f=0,Q.j=0,Q.k=0,Q.o=0,Q.p=0,z(AZ,`NotificationImpl`,150),q(1154,150,oQ,Kbe),Q.Hj=function(){return this.a.Hj()},Q.ej=function(e){return this.a.Ij()},Q.gj=function(){return this.a.gj()},z(AZ,`DelegatingNotifyingListImpl/1`,1154),q(250,66,$Z,$c,ny),Q.Ec=function(e){return lH(this,I(e,371))},Q.kj=function(e){return lH(this,e)},Q.lj=function(){var e,t,n;for(e=0;e<this.i;++e)t=I(this.g[e],371),n=t.gj(),n!=null&&t.dj()!=-1&&I(n,93).th(t)},Q.Zi=function(e){return H($Lt,Sq,371,e,0,1)},z(AZ,`NotificationChainImpl`,250),q(1477,92,ydt),Q.qh=function(){return this.e},Q.sh=function(){return(this.f&1)!=0},Q.f=1,z(AZ,`NotifierImpl`,1477),q(2040,66,$Z),Q.Bi=function(e,t){return s8e(this,e,t)},Q.Ci=function(e){return this.Bi(this.i,e)},Q.Di=function(e,t){bZe(this,e,t)},Q.Ei=function(e){FZe(this,e)},Q.Ii=function(){return!this.Jj()},Q.$b=function(){HK(this)},Q.Fj=function(e,t,n,r,i){return new qbe(this,e,t,n,r,i)},Q.Gj=function(e){pR(this.gj(),e)},Q.Hj=function(){return null},Q.Ij=function(){return-1},Q.gj=function(){return null},Q.Jj=function(){return!1},Q.Qj=function(){return!1},Q.Kj=function(e,t){return t},Q.Lj=function(e,t){return t},Q.Mj=function(){return!1},Q.Nj=function(){return this.i!=0},Q.Qi=function(e,t){return oV(this,e,t)},Q.ed=function(e){return KG(this,e)},Q.Ui=function(e,t){return z8e(this,e,t)},Q.Rj=function(e,t){return t},Q.Sj=function(e,t){return t},Q.Tj=function(e,t,n){return n},z(AZ,`NotifyingListImpl`,2040),q(1153,150,oQ,qbe),Q.Hj=function(){return this.a.Hj()},Q.ej=function(e){return this.a.Ij()},Q.gj=function(){return this.a.gj()},z(AZ,`NotifyingListImpl/1`,1153),q(946,66,$Z,Tde),Q.Gc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new ek(this),this.a=this.j),ab(this.b,e)):tW(this,e)},Q.Vi=function(){return!0},Q.a=0,z(UZ,`AbstractEList/1`,946),q(302,97,vJ,AD),z(UZ,`AbstractEList/BasicIndexOutOfBoundsException`,302),q(42,1,Oq,oT),Q.Nb=function(e){Zk(this,e)},Q.Uj=function(){if(this.i.j!=this.f)throw O(new $g)},Q.Vj=function(){return hU(this)},Q.Ob=function(){return this.e!=this.i.gc()},Q.Pb=function(){return this.Vj()},Q.Qb=function(){aW(this)},Q.e=0,Q.f=0,Q.g=-1,z(UZ,`AbstractEList/EIterator`,42),q(284,42,Pq,$T,pA),Q.Qb=function(){aW(this)},Q.Rb=function(e){jRe(this,e)},Q.Wj=function(){var e;try{return e=this.d.Xb(--this.e),this.Uj(),this.g=this.e,e}catch(e){throw e=GR(e),P(e,97)?(this.Uj(),O(new e_)):O(e)}},Q.Xj=function(e){UVe(this,e)},Q.Sb=function(){return this.e!=0},Q.Tb=function(){return this.e},Q.Ub=function(){return this.Wj()},Q.Vb=function(){return this.e-1},Q.Wb=function(e){this.Xj(e)},z(UZ,`AbstractEList/EListIterator`,284),q(353,42,Oq,QT),Q.Vj=function(){return nBe(this)},Q.Qb=function(){throw O(new Qg)},z(UZ,`AbstractEList/NonResolvingEIterator`,353),q(389,284,Pq,ZT,_fe),Q.Rb=function(e){throw O(new Qg)},Q.Vj=function(){var e;try{return e=this.c.Si(this.e),this.Uj(),this.g=this.e++,e}catch(e){throw e=GR(e),P(e,97)?(this.Uj(),O(new e_)):O(e)}},Q.Wj=function(){var e;try{return e=this.c.Si(--this.e),this.Uj(),this.g=this.e,e}catch(e){throw e=GR(e),P(e,97)?(this.Uj(),O(new e_)):O(e)}},Q.Qb=function(){throw O(new Qg)},Q.Wb=function(e){throw O(new Qg)},z(UZ,`AbstractEList/NonResolvingEListIterator`,389),q(2029,70,Hft),Q.Bi=function(e,t){var n,r,i=t.gc(),a,o,s,c,l,u,d,f;if(i!=0){for(l=I(vR(this.a,4),128),u=l==null?0:l.length,f=u+i,r=Kz(this,f),d=u-e,d>0&&SK(l,e,r,e+i,d),c=t.Jc(),o=0;o<i;++o)s=c.Pb(),n=e+o,dw(r,n,Pz(this,s));for(oU(this,r),a=0;a<i;++a)s=r[e],this.Ji(e,s),++e;return!0}else return++this.j,!1},Q.Ci=function(e){var t,n,r=e.gc(),i,a,o,s,c,l;if(r!=0){for(c=(n=I(vR(this.a,4),128),n==null?0:n.length),l=c+r,t=Kz(this,l),s=e.Jc(),a=c;a<l;++a)o=s.Pb(),dw(t,a,Pz(this,o));for(oU(this,t),i=c;i<l;++i)o=t[i],this.Ji(i,o);return!0}else return++this.j,!1},Q.Di=function(e,t){var n,r=I(vR(this.a,4),128),i=r==null?0:r.length,a;n=Kz(this,i+1),a=Pz(this,t),e!=i&&SK(r,e,n,e+1,i-e),AA(n,e,a),oU(this,n),this.Ji(e,t)},Q.Ei=function(e){var t,n,r=(n=I(vR(this.a,4),128),n==null?0:n.length);t=Kz(this,r+1),dw(t,r,Pz(this,e)),oU(this,t),this.Ji(r,e)},Q.Fi=function(){return new nDe(this)},Q.Gi=function(){return new E_e(this)},Q.Hi=function(e){var t,n=(t=I(vR(this.a,4),128),t==null?0:t.length);if(e<0||e>n)throw O(new AD(e,n));return new aye(this,e)},Q.$b=function(){var e,t;++this.j,e=I(vR(this.a,4),128),t=e==null?0:e.length,oU(this,null),FP(this,t,e)},Q.Gc=function(e){var t=I(vR(this.a,4),128),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i<a;++i)if(n=r[i],LB(e,n))return!0}else for(r=t,i=0,a=r.length;i<a;++i)if(n=r[i],N(n)===N(e))return!0}return!1},Q.Xb=function(e){var t=I(vR(this.a,4),128),n=t==null?0:t.length;if(e>=n)throw O(new AD(e,n));return t[e]},Q.bd=function(e){var t=I(vR(this.a,4),128),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;n<r;++n)if(LB(e,t[n]))return n}else for(n=0,r=t.length;n<r;++n)if(N(t[n])===N(e))return n}return-1},Q.dc=function(){return I(vR(this.a,4),128)==null},Q.Jc=function(){return new tDe(this)},Q.cd=function(){return new T_e(this)},Q.dd=function(e){var t,n=(t=I(vR(this.a,4),128),t==null?0:t.length);if(e<0||e>n)throw O(new AD(e,n));return new iye(this,e)},Q.Qi=function(e,t){var n=BRe(this),r,i=n==null?0:n.length;if(e>=i)throw O(new K_(tft+e+QZ+i));if(t>=i)throw O(new K_(nft+t+QZ+i));return r=n[t],e!=t&&(e<t?SK(n,e,n,e+1,t-e):SK(n,t+1,n,t,e-t),AA(n,e,r),oU(this,n)),r},Q.Si=function(e){return I(vR(this.a,4),128)[e]},Q.ed=function(e){return sZe(this,e)},Q.Ui=function(e,t){var n=BRe(this),r=n[e];return dw(n,e,Pz(this,t)),oU(this,n),r},Q.gc=function(){var e;return e=I(vR(this.a,4),128),e==null?0:e.length},Q.Nc=function(){var e=I(vR(this.a,4),128),t,n=e==null?0:e.length;return t=H(QLt,Vft,412,n,0,1),n>0&&SK(e,0,t,0,n),t},Q.Oc=function(e){var t=I(vR(this.a,4),128),n,r=t==null?0:t.length;return r>0&&(e.length<r&&(n=DI(Rz(e).c,r),e=n),SK(t,0,e,0,r)),e.length>r&&AA(e,r,null),e};var eRt;z(UZ,`ArrayDelegatingEList`,2029),q(1029,42,Oq,tDe),Q.Uj=function(){if(this.b.j!=this.f||N(I(vR(this.b.a,4),128))!==N(this.a))throw O(new $g)},Q.Qb=function(){aW(this),this.a=I(vR(this.b.a,4),128)},z(UZ,`ArrayDelegatingEList/EIterator`,1029),q(709,284,Pq,T_e,iye),Q.Uj=function(){if(this.b.j!=this.f||N(I(vR(this.b.a,4),128))!==N(this.a))throw O(new $g)},Q.Xj=function(e){UVe(this,e),this.a=I(vR(this.b.a,4),128)},Q.Qb=function(){aW(this),this.a=I(vR(this.b.a,4),128)},z(UZ,`ArrayDelegatingEList/EListIterator`,709),q(1030,353,Oq,nDe),Q.Uj=function(){if(this.b.j!=this.f||N(I(vR(this.b.a,4),128))!==N(this.a))throw O(new $g)},z(UZ,`ArrayDelegatingEList/NonResolvingEIterator`,1030),q(710,389,Pq,E_e,aye),Q.Uj=function(){if(this.b.j!=this.f||N(I(vR(this.b.a,4),128))!==N(this.a))throw O(new $g)},z(UZ,`ArrayDelegatingEList/NonResolvingEListIterator`,710),q(602,302,vJ,wce),z(UZ,`BasicEList/BasicIndexOutOfBoundsException`,602),q(696,66,$Z,iC),Q._c=function(e,t){throw O(new Qg)},Q.Ec=function(e){throw O(new Qg)},Q.ad=function(e,t){throw O(new Qg)},Q.Fc=function(e){throw O(new Qg)},Q.$b=function(){throw O(new Qg)},Q.Yi=function(e){throw O(new Qg)},Q.Jc=function(){return this.Fi()},Q.cd=function(){return this.Gi()},Q.dd=function(e){return this.Hi(e)},Q.Qi=function(e,t){throw O(new Qg)},Q.Ri=function(e,t){throw O(new Qg)},Q.ed=function(e){throw O(new Qg)},Q.Kc=function(e){throw O(new Qg)},Q.fd=function(e,t){throw O(new Qg)},z(UZ,`BasicEList/UnmodifiableEList`,696),q(708,1,{3:1,20:1,16:1,15:1,61:1,583:1}),Q._c=function(e,t){Ole(this,e,I(t,43))},Q.Ec=function(e){return Xue(this,I(e,43))},Q.Ic=function(e){QN(this,e)},Q.Xb=function(e){return I(U(this.c,e),135)},Q.Qi=function(e,t){return I(this.c.Qi(e,t),43)},Q.Ri=function(e,t){kle(this,e,I(t,43))},Q.ed=function(e){return I(this.c.ed(e),43)},Q.fd=function(e,t){return fve(this,e,I(t,43))},Q.gd=function(e){ML(this,e)},Q.Lc=function(){return new BM(this,16)},Q.Mc=function(){return new tk(null,new BM(this,16))},Q.ad=function(e,t){return this.c.ad(e,t)},Q.Fc=function(e){return this.c.Fc(e)},Q.$b=function(){this.c.$b()},Q.Gc=function(e){return this.c.Gc(e)},Q.Hc=function(e){return WR(this.c,e)},Q.Yj=function(){var e,t,n;if(this.d==null){for(this.d=H(YLt,Uft,66,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)e=I(t.Vj(),135),QBe(this,e);this.e=n}},Q.Fb=function(e){return Tfe(this,e)},Q.Hb=function(){return YR(this.c)},Q.bd=function(e){return this.c.bd(e)},Q.Zj=function(){this.c=new Bte(this)},Q.dc=function(){return this.f==0},Q.Jc=function(){return this.c.Jc()},Q.cd=function(){return this.c.cd()},Q.dd=function(e){return this.c.dd(e)},Q.$j=function(){return PP(this)},Q._j=function(e,t,n){return new Vme(e,t,n)},Q.ak=function(){return new tl},Q.Kc=function(e){return LI(this,e)},Q.gc=function(){return this.f},Q.hd=function(e,t){return new LM(this.c,e,t)},Q.Nc=function(){return this.c.Nc()},Q.Oc=function(e){return this.c.Oc(e)},Q.Ib=function(){return JV(this.c)},Q.e=0,Q.f=0,z(UZ,`BasicEMap`,708),q(cQ,66,$Z,Bte),Q.Ji=function(e,t){Cne(this,I(t,135))},Q.Mi=function(e,t,n){var r;++(r=this,I(t,135),r).a.e},Q.Ni=function(e,t){wne(this,I(t,135))},Q.Oi=function(e,t,n){vue(this,I(t,135),I(n,135))},Q.Li=function(e,t){WNe(this.a)},z(UZ,`BasicEMap/1`,cQ),q(1025,66,$Z,tl),Q.Zi=function(e){return H(tRt,Wft,608,e,0,1)},z(UZ,`BasicEMap/2`,1025),q(1026,Mq,Nq,Vte),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return hH(this.a,e)},Q.Jc=function(){return this.a.f==0?(UE(),P7.a):new Fie(this.a)},Q.Kc=function(e){var t=this.a.f;return ZH(this.a,e),this.a.f!=t},Q.gc=function(){return this.a.f},z(UZ,`BasicEMap/3`,1026),q(1027,31,jq,Hte),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return B2e(this.a,e)},Q.Jc=function(){return this.a.f==0?(UE(),P7.a):new Iie(this.a)},Q.gc=function(){return this.a.f},z(UZ,`BasicEMap/4`,1027),q(1028,Mq,Nq,Ute),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){var t,n,r,i,a,o,s,c,l;if(this.a.f>0&&P(e,43)&&(this.a.Yj(),c=I(e,43),s=c.jd(),i=s==null?0:TL(s),a=nD(this.a,i),t=this.a.d[a],t)){for(n=I(t.g,372),l=t.i,o=0;o<l;++o)if(r=n[o],r.xi()==i&&r.Fb(c))return!0}return!1},Q.Jc=function(){return this.a.f==0?(UE(),P7.a):new Cj(this.a)},Q.Kc=function(e){return aQe(this,e)},Q.gc=function(){return this.a.f},z(UZ,`BasicEMap/5`,1028),q(609,1,Oq,Cj),Q.Nb=function(e){Zk(this,e)},Q.Ob=function(){return this.b!=-1},Q.Pb=function(){var e;if(this.f.e!=this.c)throw O(new $g);if(this.b==-1)throw O(new e_);return this.d=this.a,this.e=this.b,eWe(this),e=I(this.f.d[this.d].g[this.e],135),this.bk(e)},Q.Qb=function(){if(this.f.e!=this.c)throw O(new $g);if(this.e==-1)throw O(new Xg);this.f.c.Kc(U(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},Q.bk=function(e){return e},Q.a=0,Q.b=-1,Q.c=0,Q.d=0,Q.e=0,z(UZ,`BasicEMap/BasicEMapIterator`,609),q(1022,609,Oq,Fie),Q.bk=function(e){return e.jd()},z(UZ,`BasicEMap/BasicEMapKeyIterator`,1022),q(1023,609,Oq,Iie),Q.bk=function(e){return e.kd()},z(UZ,`BasicEMap/BasicEMapValueIterator`,1023),q(1021,1,Aq,Wte),Q.wc=function(e){iR(this,e)},Q.$b=function(){this.a.c.$b()},Q._b=function(e){return Rse(this,e)},Q.uc=function(e){return B2e(this.a,e)},Q.vc=function(){return TOe(this.a)},Q.Fb=function(e){return Tfe(this.a,e)},Q.xc=function(e){return wH(this.a,e)},Q.Hb=function(){return YR(this.a.c)},Q.dc=function(){return this.a.f==0},Q.ec=function(){return EOe(this.a)},Q.yc=function(e,t){return eW(this.a,e,t)},Q.Ac=function(e){return ZH(this.a,e)},Q.gc=function(){return this.a.f},Q.Ib=function(){return JV(this.a.c)},Q.Bc=function(){return DOe(this.a)},z(UZ,`BasicEMap/DelegatingMap`,1021),q(608,1,{43:1,135:1,608:1},Vme),Q.Fb=function(e){var t;return P(e,43)?(t=I(e,43),(this.b==null?N(this.b)===N(t.jd()):LB(this.b,t.jd()))&&(this.c==null?N(this.c)===N(t.kd()):LB(this.c,t.kd()))):!1},Q.xi=function(){return this.a},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return this.a^(this.c==null?0:TL(this.c))},Q.yi=function(e){this.a=e},Q.zi=function(e){throw O(new Kg)},Q.ld=function(e){var t=this.c;return this.c=e,t},Q.Ib=function(){return this.b+`->`+this.c},Q.a=0;var tRt=z(UZ,`BasicEMap/EntryImpl`,608);q(532,1,{},el),z(UZ,`BasicEMap/View`,532);var P7;q(766,1,{}),Q.Fb=function(e){return uQe((Ij(),h$),e)},Q.Hb=function(){return yz((Ij(),h$))},Q.Ib=function(){return EW((Ij(),h$))},z(UZ,`ECollections/BasicEmptyUnmodifiableEList`,766),q(1299,1,Pq,nl),Q.Nb=function(e){Zk(this,e)},Q.Rb=function(e){throw O(new Qg)},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Pb=function(){throw O(new e_)},Q.Tb=function(){return 0},Q.Ub=function(){throw O(new e_)},Q.Vb=function(){return-1},Q.Qb=function(){throw O(new Qg)},Q.Wb=function(e){throw O(new Qg)},z(UZ,`ECollections/BasicEmptyUnmodifiableEList/1`,1299),q(1297,766,{20:1,16:1,15:1,61:1},vre),Q._c=function(e,t){hae()},Q.Ec=function(e){return yy()},Q.ad=function(e,t){return gae()},Q.Fc=function(e){return mae()},Q.$b=function(){by()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){QN(this,e)},Q.Xb=function(e){return nce((Ij(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Qi=function(e,t){return xy()},Q.Ri=function(e,t){_ae()},Q.ed=function(e){return vae()},Q.Kc=function(e){return Sy()},Q.fd=function(e,t){return yae()},Q.gc=function(){return 0},Q.gd=function(e){ML(this,e)},Q.Lc=function(){return new BM(this,16)},Q.Mc=function(){return new tk(null,new BM(this,16))},Q.hd=function(e,t){return Ij(),new LM(h$,e,t)},Q.Nc=function(){return i_e((Ij(),h$))},Q.Oc=function(e){return Ij(),jU(h$,e)},z(UZ,`ECollections/EmptyUnmodifiableEList`,1297),q(1298,766,{20:1,16:1,15:1,61:1,583:1},yre),Q._c=function(e,t){hae()},Q.Ec=function(e){return yy()},Q.ad=function(e,t){return gae()},Q.Fc=function(e){return mae()},Q.$b=function(){by()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){QN(this,e)},Q.Xb=function(e){return nce((Ij(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Qi=function(e,t){return xy()},Q.Ri=function(e,t){_ae()},Q.ed=function(e){return vae()},Q.Kc=function(e){return Sy()},Q.fd=function(e,t){return yae()},Q.gc=function(){return 0},Q.gd=function(e){ML(this,e)},Q.Lc=function(){return new BM(this,16)},Q.Mc=function(){return new tk(null,new BM(this,16))},Q.hd=function(e,t){return Ij(),new LM(h$,e,t)},Q.Nc=function(){return i_e((Ij(),h$))},Q.Oc=function(e){return Ij(),jU(h$,e)},Q.$j=function(){return Ij(),Ij(),g$},z(UZ,`ECollections/EmptyUnmodifiableEMap`,1298);var nRt=KO(UZ,`Enumerator`),rRt;q(288,1,{288:1},q2e),Q.Fb=function(e){var t;return this===e?!0:P(e,288)?(t=I(e,288),this.f==t.f&&wge(this.i,t.i)&&ik(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&ik(this.d,t.d)&&ik(this.g,t.g)&&ik(this.e,t.e)&&mBe(this,t)):!1},Q.Hb=function(){return this.f},Q.Ib=function(){return o6e(this)},Q.f=0;var iRt=0,aRt=0,oRt=0,sRt=0,cRt=0,lRt=0,uRt=0,dRt=0,fRt=0,pRt,F7=0,I7=0,mRt=0,hRt=0,gRt,_Rt;z(UZ,`URI`,288),q(1087,45,jJ,dre),Q.yc=function(e,t){return I(CM(this,IE(e),I(t,288)),288)},z(UZ,`URI/URICache`,1087),q(490,66,$Z,rl,yk),Q.Pi=function(){return!0},z(UZ,`UniqueEList`,490),q(575,63,rJ,TF),z(UZ,`WrappedException`,575);var L7=KO(OZ,qft),R7=KO(OZ,Jft),z7=KO(OZ,Yft),B7=KO(OZ,Xft),V7=KO(OZ,Zft),H7=KO(OZ,`EClass`),vRt=KO(OZ,`EDataType`),yRt;q(1195,45,jJ,fre),Q.xc=function(e){return mC(e)?aM(this,e):dC(_k(this.f,e))},z(OZ,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1195);var bRt=KO(OZ,`EEnum`),U7=KO(OZ,Qft),W7=KO(OZ,$ft),G7=KO(OZ,ept),K7,q7=KO(OZ,tpt),J7=KO(OZ,npt);q(1020,1,{},il),Q.Ib=function(){return`NIL`},z(OZ,`EStructuralFeature/Internal/DynamicValueHolder/1`,1020);var xRt;q(1019,45,jJ,pre),Q.xc=function(e){return mC(e)?aM(this,e):dC(_k(this.f,e))},z(OZ,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1019);var Y7=KO(OZ,rpt),X7=KO(OZ,`EValidator/PatternMatcher`),SRt,CRt,Z7,Q7,$7,e9,wRt,TRt,ERt,t9,n9,r9,i9,a9,DRt,ORt,o9,s9,kRt,c9,l9,u9,d9,ARt,jRt,f9,MRt=KO(lQ,`FeatureMap/Entry`);q(531,1,{74:1},aC),Q.Ik=function(){return this.a},Q.kd=function(){return this.b},z(PZ,`BasicEObjectImpl/1`,531),q(1018,1,ipt,Wse),Q.Ck=function(e){return dP(this.a,this.b,e)},Q.Nj=function(){return Qxe(this.a,this.b)},Q.Wb=function(e){Lxe(this.a,this.b,e)},Q.Dk=function(){Qve(this.a,this.b)},z(PZ,`BasicEObjectImpl/4`,1018),q(2030,1,{113:1}),Q.Jk=function(e){this.e=e==0?NRt:H(WQ,Sq,1,e,5,1)},Q.hi=function(e){return this.e[e]},Q.ii=function(e,t){this.e[e]=t},Q.ji=function(e){this.e[e]=null},Q.Kk=function(){return this.c},Q.Lk=function(){throw O(new Qg)},Q.Mk=function(){throw O(new Qg)},Q.Nk=function(){return this.d},Q.Ok=function(){return this.e!=null},Q.Pk=function(e){this.c=e},Q.Qk=function(e){throw O(new Qg)},Q.Rk=function(e){throw O(new Qg)},Q.Sk=function(e){this.d=e};var NRt;z(PZ,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2030),q(192,2030,{113:1},Sf),Q.Lk=function(){return this.a},Q.Mk=function(){return this.b},Q.Qk=function(e){this.a=e},Q.Rk=function(e){this.b=e},z(PZ,`BasicEObjectImpl/EPropertiesHolderImpl`,192),q(500,98,wdt,al),Q.qh=function(){return this.f},Q.vh=function(){return this.k},Q.xh=function(e,t){this.g=e,this.i=t},Q.zh=function(){return this.j&2?this.Wh().Kk():this.ei()},Q.Bh=function(){return this.i},Q.sh=function(){return(this.j&1)!=0},Q.Lh=function(){return this.g},Q.Rh=function(){return(this.j&4)!=0},Q.Wh=function(){return!this.k&&(this.k=new Sf),this.k},Q.$h=function(e){this.Wh().Pk(e),e?this.j|=2:this.j&=-3},Q.ai=function(e){this.Wh().Rk(e),e?this.j|=4:this.j&=-5},Q.ei=function(){return(ej(),Z7).S},Q.i=0,Q.j=1,z(PZ,`EObjectImpl`,500),q(781,500,{109:1,93:1,92:1,57:1,113:1,52:1,98:1},bhe),Q.hi=function(e){return this.e[e]},Q.ii=function(e,t){this.e[e]=t},Q.ji=function(e){this.e[e]=null},Q.zh=function(){return this.d},Q.Eh=function(e){return gH(this.d,e)},Q.Gh=function(){return this.d},Q.Kh=function(){return this.e!=null},Q.Wh=function(){return!this.k&&(this.k=new ol),this.k},Q.$h=function(e){this.d=e},Q.di=function(){var e;return this.e??=(e=DA(this.d),e==0?PRt:H(WQ,Sq,1,e,5,1)),this},Q.fi=function(){return 0};var PRt;z(PZ,`DynamicEObjectImpl`,781),q(1475,781,{109:1,43:1,93:1,92:1,135:1,57:1,113:1,52:1,98:1},$he),Q.Fb=function(e){return this===e},Q.Hb=function(){return XT(this)},Q.$h=function(e){this.d=e,this.b=PG(e,`key`),this.c=PG(e,VZ)},Q.xi=function(){var e;return this.a==-1&&(e=OF(this,this.b),this.a=e==null?0:TL(e)),this.a},Q.jd=function(){return OF(this,this.b)},Q.kd=function(){return OF(this,this.c)},Q.yi=function(e){this.a=e},Q.zi=function(e){Lxe(this,this.b,e)},Q.ld=function(e){var t=OF(this,this.c);return Lxe(this,this.c,e),t},Q.a=0,z(PZ,`DynamicEObjectImpl/BasicEMapEntry`,1475),q(1476,1,{113:1},ol),Q.Jk=function(e){throw O(new Qg)},Q.hi=function(e){throw O(new Qg)},Q.ii=function(e,t){throw O(new Qg)},Q.ji=function(e){throw O(new Qg)},Q.Kk=function(){throw O(new Qg)},Q.Lk=function(){return this.a},Q.Mk=function(){return this.b},Q.Nk=function(){return this.c},Q.Ok=function(){throw O(new Qg)},Q.Pk=function(e){throw O(new Qg)},Q.Qk=function(e){this.a=e},Q.Rk=function(e){this.b=e},Q.Sk=function(e){this.c=e},z(PZ,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1476),q(503,157,{109:1,93:1,92:1,584:1,154:1,57:1,113:1,52:1,98:1,503:1,157:1,117:1,118:1},sl),Q.wh=function(e){return dUe(this,e)},Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new TE((fq(),d9),h9,this)),this.b):(!this.b&&(this.b=new TE((fq(),d9),h9,this)),PP(this.b));case 3:return rSe(this);case 4:return!this.a&&(this.a=new sT(p7,this,4)),this.a;case 5:return!this.c&&(this.c=new dT(p7,this,5)),this.c}return eF(this,e-DA((fq(),Q7)),GF((r=I(vR(this,16),29),r||Q7),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?dUe(this,n):this.Cb.Ph(this,-1-i,null,n))),Hge(this,I(e,154),n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),Q7)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),Q7)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 2:return!this.b&&(this.b=new TE((fq(),d9),h9,this)),VD(this.b,e,n);case 3:return Hge(this,null,n);case 4:return!this.a&&(this.a=new sT(p7,this,4)),bU(this.a,e,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),Q7)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),Q7)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!rSe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ON(this,e-DA((fq(),Q7)),GF((t=I(vR(this,16),29),t||Q7),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:qhe(this,IE(t));return;case 2:!this.b&&(this.b=new TE((fq(),d9),h9,this)),aR(this.b,t);return;case 3:L1e(this,I(t,154));return;case 4:!this.a&&(this.a=new sT(p7,this,4)),HK(this.a),!this.a&&(this.a=new sT(p7,this,4)),wA(this.a,I(t,16));return;case 5:!this.c&&(this.c=new dT(p7,this,5)),HK(this.c),!this.c&&(this.c=new dT(p7,this,5)),wA(this.c,I(t,16));return}NV(this,e-DA((fq(),Q7)),GF((n=I(vR(this,16),29),n||Q7),e),t)},Q.ei=function(){return fq(),Q7},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:NMe(this,null);return;case 2:!this.b&&(this.b=new TE((fq(),d9),h9,this)),this.b.c.$b();return;case 3:L1e(this,null);return;case 4:!this.a&&(this.a=new sT(p7,this,4)),HK(this.a);return;case 5:!this.c&&(this.c=new dT(p7,this,5)),HK(this.c);return}HB(this,e-DA((fq(),Q7)),GF((t=I(vR(this,16),29),t||Q7),e))},Q.Ib=function(){return ZIe(this)},Q.d=null,z(PZ,`EAnnotationImpl`,503),q(140,708,apt,WP),Q.Di=function(e,t){pw(this,e,I(t,43))},Q.Tk=function(e,t){return wfe(this,I(e,43),t)},Q.Xi=function(e){return I(I(this.c,71).Xi(e),135)},Q.Fi=function(){return I(this.c,71).Fi()},Q.Gi=function(){return I(this.c,71).Gi()},Q.Hi=function(e){return I(this.c,71).Hi(e)},Q.Uk=function(e,t){return VD(this,e,t)},Q.Ck=function(e){return I(this.c,76).Ck(e)},Q.Zj=function(){},Q.Nj=function(){return I(this.c,76).Nj()},Q._j=function(e,t,n){var r=I(aI(this.b).si().oi(this.b),135);return r.yi(e),r.zi(t),r.ld(n),r},Q.ak=function(){return new Fg(this)},Q.Wb=function(e){aR(this,e)},Q.Dk=function(){I(this.c,76).Dk()},z(lQ,`EcoreEMap`,140),q(167,140,apt,TE),Q.Yj=function(){var e,t,n,r,i,a;if(this.d==null){for(a=H(YLt,Uft,66,2*this.f+1,0,1),n=this.c.Jc();n.e!=n.i.gc();)t=I(n.Vj(),135),r=t.xi(),i=(r&_q)%a.length,e=a[i],!e&&(e=a[i]=new Fg(this)),e.Ec(t);this.d=a}},z(PZ,`EAnnotationImpl/1`,167),q(291,436,{109:1,93:1,92:1,154:1,197:1,57:1,113:1,467:1,52:1,98:1,157:1,291:1,117:1,118:1}),Q.Hh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ST(),!!(this.Bb&256);case 3:return ST(),!!(this.Bb&512);case 4:return kB(this.s);case 5:return kB(this.t);case 6:return ST(),!!this.Gk();case 7:return ST(),i=this.s,i>=1;case 8:return t?XU(this):this.r;case 9:return this.q}return eF(this,e-DA(this.ei()),GF((r=I(vR(this,16),29),r||this.ei()),e),t,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 9:return CA(this,n)}return i=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),i.tk().xk(this,QH(this),t-DA(this.ei()),e,n)},Q.Sh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Gk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&RA(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&RA(this.q).i==0)}return ON(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.Zh=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:this.qi(IE(t));return;case 2:zB(this,W_(FE(t)));return;case 3:BB(this,W_(FE(t)));return;case 4:CI(this,I(t,17).a);return;case 5:this.Wk(I(t,17).a);return;case 8:dB(this,I(t,141));return;case 9:r=vW(this,I(t,87),null),r&&r.lj();return}NV(this,e-DA(this.ei()),GF((n=I(vR(this,16),29),n||this.ei()),e),t)},Q.ei=function(){return fq(),jRt},Q.gi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:this.qi(null);return;case 2:zB(this,!0);return;case 3:BB(this,!0);return;case 4:CI(this,0);return;case 5:this.Wk(1);return;case 8:dB(this,null);return;case 9:n=vW(this,null,null),n&&n.lj();return}HB(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.li=function(){XU(this),this.Bb|=1},Q.Ek=function(){return XU(this)},Q.Fk=function(){return this.t},Q.Gk=function(){var e;return e=this.t,e>1||e==-1},Q.Pi=function(){return(this.Bb&512)!=0},Q.Vk=function(e,t){return VIe(this,e,t)},Q.Wk=function(e){wI(this,e)},Q.Ib=function(){return wZe(this)},Q.s=0,Q.t=1,z(PZ,`ETypedElementImpl`,291),q(448,291,{109:1,93:1,92:1,154:1,197:1,57:1,178:1,69:1,113:1,467:1,52:1,98:1,157:1,448:1,291:1,117:1,118:1,679:1}),Q.wh=function(e){return PHe(this,e)},Q.Hh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ST(),!!(this.Bb&256);case 3:return ST(),!!(this.Bb&512);case 4:return kB(this.s);case 5:return kB(this.t);case 6:return ST(),!!this.Gk();case 7:return ST(),i=this.s,i>=1;case 8:return t?XU(this):this.r;case 9:return this.q;case 10:return ST(),(this.Bb&cQ)!=0;case 11:return ST(),(this.Bb&Zq)!=0;case 12:return ST(),(this.Bb&SJ)!=0;case 13:return this.j;case 14:return kG(this);case 15:return ST(),(this.Bb&uQ)!=0;case 16:return ST(),(this.Bb&Fq)!=0;case 17:return yM(this)}return eF(this,e-DA(this.ei()),GF((r=I(vR(this,16),29),r||this.ei()),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?PHe(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,17,n)}return a=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),a.tk().wk(this,QH(this),t-DA(this.ei()),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 9:return CA(this,n);case 17:return gK(this,null,17,n)}return i=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),i.tk().xk(this,QH(this),t-DA(this.ei()),e,n)},Q.Sh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Gk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&RA(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&RA(this.q).i==0);case 10:return(this.Bb&cQ)==0;case 11:return(this.Bb&Zq)!=0;case 12:return(this.Bb&SJ)!=0;case 13:return this.j!=null;case 14:return kG(this)!=null;case 15:return(this.Bb&uQ)!=0;case 16:return(this.Bb&Fq)!=0;case 17:return!!yM(this)}return ON(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.Zh=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:FM(this,IE(t));return;case 2:zB(this,W_(FE(t)));return;case 3:BB(this,W_(FE(t)));return;case 4:CI(this,I(t,17).a);return;case 5:this.Wk(I(t,17).a);return;case 8:dB(this,I(t,141));return;case 9:r=vW(this,I(t,87),null),r&&r.lj();return;case 10:rV(this,W_(FE(t)));return;case 11:aV(this,W_(FE(t)));return;case 12:iV(this,W_(FE(t)));return;case 13:Use(this,IE(t));return;case 15:nV(this,W_(FE(t)));return;case 16:dV(this,W_(FE(t)));return}NV(this,e-DA(this.ei()),GF((n=I(vR(this,16),29),n||this.ei()),e),t)},Q.ei=function(){return fq(),ARt},Q.gi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,88)&&qW(iP(I(this.Cb,88)),4),DL(this,null);return;case 2:zB(this,!0);return;case 3:BB(this,!0);return;case 4:CI(this,0);return;case 5:this.Wk(1);return;case 8:dB(this,null);return;case 9:n=vW(this,null,null),n&&n.lj();return;case 10:rV(this,!0);return;case 11:aV(this,!1);return;case 12:iV(this,!1);return;case 13:this.i=null,oL(this,null);return;case 15:nV(this,!1);return;case 16:dV(this,!1);return}HB(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.li=function(){cj(gF((BW(),_9),this)),XU(this),this.Bb|=1},Q.mk=function(){return this.f},Q.fk=function(){return kG(this)},Q.nk=function(){return yM(this)},Q.rk=function(){return null},Q.Xk=function(){return this.k},Q.Ij=function(){return this.n},Q.sk=function(){return cW(this)},Q.tk=function(){var e,t,n,r,i,a,o,s,c;return this.p||(n=yM(this),(n.i??TK(n),n.i).length,r=this.rk(),r&&DA(yM(r)),i=XU(this),o=i.hk(),e=o?o.i&1?o==J9?e$:o==q9?a$:o==Q9?i$:o==Z9?r$:o==Y9?o$:o==$9?s$:o==X9?t$:n$:o:null,t=kG(this),s=i.fk(),ILe(this),(this.Bb&Fq)!=0&&((a=cWe((BW(),_9),n))&&a!=this||(a=qM(gF(_9,this))))?this.p=new Kse(this,a):this.Gk()?this.Zk()?r?(this.Bb&uQ)==0?e?this.$k()?this.p=new wj(49,e,this,r):this.p=new wj(7,e,this,r):this.$k()?this.p=new zN(48,this,r):this.p=new zN(6,this,r):e?this.$k()?this.p=new wj(47,e,this,r):this.p=new wj(5,e,this,r):this.$k()?this.p=new zN(46,this,r):this.p=new zN(4,this,r):(this.Bb&uQ)==0?e?e==JQ?this.p=new fO(41,LLt,this):this.$k()?this.p=new fO(45,e,this):this.p=new fO(3,e,this):this.$k()?this.p=new Qj(44,this):this.p=new Qj(2,this):e?e==JQ?this.p=new fO(50,LLt,this):this.$k()?this.p=new fO(43,e,this):this.p=new fO(1,e,this):this.$k()?this.p=new Qj(42,this):this.p=new Qj(0,this):P(i,155)?e==MRt?this.p=new Qj(40,this):this.Bb&512?(this.Bb&uQ)==0?e?this.p=new fO(11,e,this):this.p=new Qj(10,this):e?this.p=new fO(9,e,this):this.p=new Qj(8,this):(this.Bb&uQ)==0?e?this.p=new fO(15,e,this):this.p=new Qj(14,this):e?this.p=new fO(13,e,this):this.p=new Qj(12,this):r?(c=r.t,c>1||c==-1?this.$k()?(this.Bb&uQ)==0?e?this.p=new wj(27,e,this,r):this.p=new zN(26,this,r):e?this.p=new wj(25,e,this,r):this.p=new zN(24,this,r):(this.Bb&uQ)==0?e?this.p=new wj(31,e,this,r):this.p=new zN(30,this,r):e?this.p=new wj(29,e,this,r):this.p=new zN(28,this,r):this.$k()?(this.Bb&uQ)==0?e?this.p=new wj(35,e,this,r):this.p=new zN(34,this,r):e?this.p=new wj(33,e,this,r):this.p=new zN(32,this,r):(this.Bb&uQ)==0?e?this.p=new wj(39,e,this,r):this.p=new zN(38,this,r):e?this.p=new wj(37,e,this,r):this.p=new zN(36,this,r)):this.$k()?(this.Bb&uQ)==0?e?this.p=new fO(19,e,this):this.p=new Qj(18,this):e?this.p=new fO(17,e,this):this.p=new Qj(16,this):(this.Bb&uQ)==0?e?this.p=new fO(23,e,this):this.p=new Qj(22,this):e?this.p=new fO(21,e,this):this.p=new Qj(20,this):this.Yk()?this.$k()?this.p=new Ume(I(i,29),this,r):this.p=new Txe(I(i,29),this,r):P(i,155)?e==MRt?this.p=new Qj(40,this):(this.Bb&uQ)==0?e?this.p=new Gge(t,s,this,(EH(),o==q9?KRt:o==J9?VRt:o==Y9?qRt:o==Q9?GRt:o==Z9?WRt:o==$9?YRt:o==X9?HRt:o==K9?URt:JRt)):this.p=new tbe(I(i,155),t,s,this):e?this.p=new Kge(t,s,this,(EH(),o==q9?KRt:o==J9?VRt:o==Y9?qRt:o==Q9?GRt:o==Z9?WRt:o==$9?YRt:o==X9?HRt:o==K9?URt:JRt)):this.p=new nbe(I(i,155),t,s,this):this.Zk()?r?(this.Bb&uQ)==0?this.$k()?this.p=new pO(I(i,29),this,r):this.p=new Wme(I(i,29),this,r):this.$k()?this.p=new qme(I(i,29),this,r):this.p=new Kme(I(i,29),this,r):(this.Bb&uQ)==0?this.$k()?this.p=new que(I(i,29),this):this.p=new OE(I(i,29),this):this.$k()?this.p=new AE(I(i,29),this):this.p=new kE(I(i,29),this):this.$k()?r?(this.Bb&uQ)==0?this.p=new Gme(I(i,29),this,r):this.p=new Jme(I(i,29),this,r):(this.Bb&uQ)==0?this.p=new jE(I(i,29),this):this.p=new Jue(I(i,29),this):r?(this.Bb&uQ)==0?this.p=new mO(I(i,29),this,r):this.p=new Yme(I(i,29),this,r):(this.Bb&uQ)==0?this.p=new lk(I(i,29),this):this.p=new Yue(I(i,29),this)),this.p},Q.ok=function(){return(this.Bb&cQ)!=0},Q.Yk=function(){return!1},Q.Zk=function(){return!1},Q.pk=function(){return(this.Bb&Fq)!=0},Q.uk=function(){return jF(this)},Q.$k=function(){return!1},Q.qk=function(){return(this.Bb&uQ)!=0},Q._k=function(e){this.k=e},Q.qi=function(e){FM(this,e)},Q.Ib=function(){return eK(this)},Q.e=!1,Q.n=0,z(PZ,`EStructuralFeatureImpl`,448),q(332,448,{109:1,93:1,92:1,35:1,154:1,197:1,57:1,178:1,69:1,113:1,467:1,52:1,98:1,332:1,157:1,448:1,291:1,117:1,118:1,679:1},S_),Q.Hh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ST(),!!(this.Bb&256);case 3:return ST(),!!(this.Bb&512);case 4:return kB(this.s);case 5:return kB(this.t);case 6:return ST(),!!AXe(this);case 7:return ST(),i=this.s,i>=1;case 8:return t?XU(this):this.r;case 9:return this.q;case 10:return ST(),(this.Bb&cQ)!=0;case 11:return ST(),(this.Bb&Zq)!=0;case 12:return ST(),(this.Bb&SJ)!=0;case 13:return this.j;case 14:return kG(this);case 15:return ST(),(this.Bb&uQ)!=0;case 16:return ST(),(this.Bb&Fq)!=0;case 17:return yM(this);case 18:return ST(),(this.Bb&NZ)!=0;case 19:return t?KR(this):RDe(this)}return eF(this,e-DA((fq(),$7)),GF((r=I(vR(this,16),29),r||$7),e),t,n)},Q.Sh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return AXe(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&RA(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&RA(this.q).i==0);case 10:return(this.Bb&cQ)==0;case 11:return(this.Bb&Zq)!=0;case 12:return(this.Bb&SJ)!=0;case 13:return this.j!=null;case 14:return kG(this)!=null;case 15:return(this.Bb&uQ)!=0;case 16:return(this.Bb&Fq)!=0;case 17:return!!yM(this);case 18:return(this.Bb&NZ)!=0;case 19:return!!RDe(this)}return ON(this,e-DA((fq(),$7)),GF((t=I(vR(this,16),29),t||$7),e))},Q.Zh=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:FM(this,IE(t));return;case 2:zB(this,W_(FE(t)));return;case 3:BB(this,W_(FE(t)));return;case 4:CI(this,I(t,17).a);return;case 5:Uie(this,I(t,17).a);return;case 8:dB(this,I(t,141));return;case 9:r=vW(this,I(t,87),null),r&&r.lj();return;case 10:rV(this,W_(FE(t)));return;case 11:aV(this,W_(FE(t)));return;case 12:iV(this,W_(FE(t)));return;case 13:Use(this,IE(t));return;case 15:nV(this,W_(FE(t)));return;case 16:dV(this,W_(FE(t)));return;case 18:ALe(this,W_(FE(t)));return}NV(this,e-DA((fq(),$7)),GF((n=I(vR(this,16),29),n||$7),e),t)},Q.ei=function(){return fq(),$7},Q.gi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,88)&&qW(iP(I(this.Cb,88)),4),DL(this,null);return;case 2:zB(this,!0);return;case 3:BB(this,!0);return;case 4:CI(this,0);return;case 5:this.b=0,wI(this,1);return;case 8:dB(this,null);return;case 9:n=vW(this,null,null),n&&n.lj();return;case 10:rV(this,!0);return;case 11:aV(this,!1);return;case 12:iV(this,!1);return;case 13:this.i=null,oL(this,null);return;case 15:nV(this,!1);return;case 16:dV(this,!1);return;case 18:ALe(this,!1);return}HB(this,e-DA((fq(),$7)),GF((t=I(vR(this,16),29),t||$7),e))},Q.li=function(){KR(this),cj(gF((BW(),_9),this)),XU(this),this.Bb|=1},Q.Gk=function(){return AXe(this)},Q.Vk=function(e,t){return this.b=0,this.a=null,VIe(this,e,t)},Q.Wk=function(e){Uie(this,e)},Q.Ib=function(){var e;return this.Db&64?eK(this):(e=new kT(eK(this)),e.a+=` (iD: `,uy(e,(this.Bb&NZ)!=0),e.a+=`)`,e.a)},Q.b=0,z(PZ,`EAttributeImpl`,332),q(358,436,{109:1,93:1,92:1,141:1,154:1,197:1,57:1,113:1,52:1,98:1,358:1,157:1,117:1,118:1,678:1}),Q.al=function(e){return e.zh()==this},Q.wh=function(e){return _He(this,e)},Q.xh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return FU(this);case 4:return this.fk();case 5:return this.F;case 6:return t?aI(this):bM(this);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),this.A}return eF(this,e-DA(this.ei()),GF((r=I(vR(this,16),29),r||this.ei()),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?_He(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,6,n)}return a=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),a.tk().wk(this,QH(this),t-DA(this.ei()),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 6:return gK(this,null,6,n);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),bU(this.A,e,n)}return i=I(GF((r=I(vR(this,16),29),r||this.ei()),t),69),i.tk().xk(this,QH(this),t-DA(this.ei()),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!FU(this);case 4:return this.fk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!bM(this);case 7:return!!this.A&&this.A.i!=0}return ON(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:IM(this,IE(t));return;case 2:Uce(this,IE(t));return;case 5:YK(this,IE(t));return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A),!this.A&&(this.A=new lT(Y7,this,7)),wA(this.A,I(t,16));return}NV(this,e-DA(this.ei()),GF((n=I(vR(this,16),29),n||this.ei()),e),t)},Q.ei=function(){return fq(),wRt},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,184)&&(I(this.Cb,184).tb=null),DL(this,null);return;case 2:uB(this,null),EI(this,this.D);return;case 5:YK(this,null);return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A);return}HB(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.ek=function(){var e;return this.G==-1&&(this.G=(e=aI(this),e?wU(e.ri(),this):-1)),this.G},Q.fk=function(){return null},Q.gk=function(){return aI(this)},Q.bl=function(){return this.v},Q.hk=function(){return FU(this)},Q.ik=function(){return this.D==null?this.B:this.D},Q.jk=function(){return this.F},Q.ck=function(e){return Z6e(this,e)},Q.cl=function(e){this.v=e},Q.dl=function(e){JMe(this,e)},Q.el=function(e){this.C=e},Q.qi=function(e){IM(this,e)},Q.Ib=function(){return yH(this)},Q.C=null,Q.D=null,Q.G=-1,z(PZ,`EClassifierImpl`,358),q(88,358,{109:1,93:1,92:1,29:1,141:1,154:1,197:1,57:1,113:1,52:1,98:1,88:1,358:1,157:1,468:1,117:1,118:1,678:1},xf),Q.al=function(e){return rfe(this,e.zh())},Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return FU(this);case 4:return null;case 5:return this.F;case 6:return t?aI(this):bM(this);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),this.A;case 8:return ST(),!!(this.Bb&256);case 9:return ST(),!!(this.Bb&512);case 10:return Wj(this);case 11:return!this.q&&(this.q=new L(G7,this,11,10)),this.q;case 12:return PK(this);case 13:return NK(this);case 14:return NK(this),this.r;case 15:return PK(this),this.k;case 16:return eYe(this);case 17:return G8e(this);case 18:return TK(this);case 19:return TG(this);case 20:return PK(this),this.o;case 21:return!this.s&&(this.s=new L(z7,this,21,17)),this.s;case 22:return NN(this);case 23:return M2e(this)}return eF(this,e-DA((fq(),e9)),GF((r=I(vR(this,16),29),r||e9),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?_He(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,6,n);case 11:return!this.q&&(this.q=new L(G7,this,11,10)),SH(this.q,e,n);case 21:return!this.s&&(this.s=new L(z7,this,21,17)),SH(this.s,e,n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),e9)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),e9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 6:return gK(this,null,6,n);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),bU(this.A,e,n);case 11:return!this.q&&(this.q=new L(G7,this,11,10)),bU(this.q,e,n);case 21:return!this.s&&(this.s=new L(z7,this,21,17)),bU(this.s,e,n);case 22:return bU(NN(this),e,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),e9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),e9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!FU(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!bM(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&NN(this.u.a).i!=0&&!(this.n&&nVe(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return PK(this).i!=0;case 13:return NK(this).i!=0;case 14:return NK(this),this.r.i!=0;case 15:return PK(this),this.k.i!=0;case 16:return eYe(this).i!=0;case 17:return G8e(this).i!=0;case 18:return TK(this).i!=0;case 19:return TG(this).i!=0;case 20:return PK(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&nVe(this.n);case 23:return M2e(this).i!=0}return ON(this,e-DA((fq(),e9)),GF((t=I(vR(this,16),29),t||e9),e))},Q.Vh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:PG(this,e))||Ott(this,e)},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:IM(this,IE(t));return;case 2:Uce(this,IE(t));return;case 5:YK(this,IE(t));return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A),!this.A&&(this.A=new lT(Y7,this,7)),wA(this.A,I(t,16));return;case 8:QIe(this,W_(FE(t)));return;case 9:$Ie(this,W_(FE(t)));return;case 10:UK(Wj(this)),wA(Wj(this),I(t,16));return;case 11:!this.q&&(this.q=new L(G7,this,11,10)),HK(this.q),!this.q&&(this.q=new L(G7,this,11,10)),wA(this.q,I(t,16));return;case 21:!this.s&&(this.s=new L(z7,this,21,17)),HK(this.s),!this.s&&(this.s=new L(z7,this,21,17)),wA(this.s,I(t,16));return;case 22:HK(NN(this)),wA(NN(this),I(t,16));return}NV(this,e-DA((fq(),e9)),GF((n=I(vR(this,16),29),n||e9),e),t)},Q.ei=function(){return fq(),e9},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,184)&&(I(this.Cb,184).tb=null),DL(this,null);return;case 2:uB(this,null),EI(this,this.D);return;case 5:YK(this,null);return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A);return;case 8:QIe(this,!1);return;case 9:$Ie(this,!1);return;case 10:this.u&&UK(this.u);return;case 11:!this.q&&(this.q=new L(G7,this,11,10)),HK(this.q);return;case 21:!this.s&&(this.s=new L(z7,this,21,17)),HK(this.s);return;case 22:this.n&&HK(this.n);return}HB(this,e-DA((fq(),e9)),GF((t=I(vR(this,16),29),t||e9),e))},Q.li=function(){var e,t;if(PK(this),NK(this),eYe(this),G8e(this),TK(this),TG(this),M2e(this),pP(she(iP(this))),this.s)for(e=0,t=this.s.i;e<t;++e)hE(U(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)hE(U(this.q,e));FB((BW(),_9),this).ve(),this.Bb|=1},Q.Ib=function(){return XWe(this)},Q.k=null,Q.r=null;var p9,FRt,IRt;z(PZ,`EClassImpl`,88),q(2041,2040,lpt),Q.Bi=function(e,t){return s8e(this,e,t)},Q.Ci=function(e){return s8e(this,this.i,e)},Q.Di=function(e,t){bZe(this,e,t)},Q.Ei=function(e){FZe(this,e)},Q.Tk=function(e,t){return SH(this,e,t)},Q.Xi=function(e){return fke(this,e)},Q.Uk=function(e,t){return bU(this,e,t)},Q.Ui=function(e,t){return z8e(this,e,t)},Q.Fi=function(){return new QT(this)},Q.Gi=function(){return new ZT(this)},Q.Hi=function(e){return FI(this,e)},z(lQ,`NotifyingInternalEListImpl`,2041),q(620,2041,yQ),Q.Gc=function(e){return E7e(this,e)},Q.Fj=function(e,t,n,r,i){return wM(this,e,t,n,r,i)},Q.Gj=function(e){r_(this,e)},Q.Ck=function(e){return this},Q.Ik=function(){return GF(this.e.zh(),this.Ij())},Q.Hj=function(){return this.Ik()},Q.Ij=function(){return gH(this.e.zh(),this.Ik())},Q.fl=function(){return I(this.Ik().Ek(),29).hk()},Q.gl=function(){return DU(I(this.Ik(),19)).n},Q.gj=function(){return this.e},Q.hl=function(){return!0},Q.il=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.bd=function(e){return wU(this,e)},Q.Kj=function(e,t){var n;return n=I(e,52),this.jl()?this.hl()?n.Nh(this.e,this.gl(),this.fl(),t):n.Nh(this.e,gH(n.zh(),DU(I(this.Ik(),19))),null,t):n.Nh(this.e,-1-this.Ij(),null,t)},Q.Lj=function(e,t){var n;return n=I(e,52),this.jl()?this.hl()?n.Ph(this.e,this.gl(),this.fl(),t):n.Ph(this.e,gH(n.zh(),DU(I(this.Ik(),19))),null,t):n.Ph(this.e,-1-this.Ij(),null,t)},Q.Zk=function(){return!1},Q.ll=function(){return!0},Q.ck=function(e){return ITe(this.d,e)},Q.Mj=function(){return qC(this.e)},Q.Nj=function(){return this.i!=0},Q.Zi=function(e){return DI(this.d,e)},Q.Ti=function(e,t){return this.ll()&&this.kl()?lG(this,e,I(t,57)):t},Q.ml=function(e){return e.Rh()?xB(this.e,I(e,52)):e},Q.Wb=function(e){Ale(this,e)},Q.Nc=function(){return vke(this)},Q.Oc=function(e){var t;if(this.kl())for(t=this.i-1;t>=0;--t)U(this,t);return vH(this,e)},Q.Dk=function(){HK(this)},Q.Wi=function(e,t){return Kje(this,e,t)},z(lQ,`EcoreEList`,620),q(489,620,yQ,kO),Q.Ii=function(){return!1},Q.Ij=function(){return this.c},Q.Jj=function(){return!1},Q.ll=function(){return!0},Q.Pi=function(){return!0},Q.Ti=function(e,t){return t},Q.Vi=function(){return!1},Q.c=0,z(lQ,`EObjectEList`,489),q(81,489,yQ,sT),Q.Jj=function(){return!0},Q.jl=function(){return!1},Q.Zk=function(){return!0},z(lQ,`EObjectContainmentEList`,81),q(541,81,yQ,cT),Q.Ki=function(){this.b=!0},Q.Nj=function(){return this.b},Q.Dk=function(){var e;HK(this),qC(this.e)?(e=this.b,this.b=!1,pR(this.e,new cP(this.e,2,this.c,e,!1))):this.b=!1},Q.b=!1,z(lQ,`EObjectContainmentEList/Unsettable`,541),q(1127,541,yQ,qge),Q.Qi=function(e,t){var n,r;return n=I(oV(this,e,t),87),qC(this.e)&&r_(this,new KP(this.a,7,(fq(),TRt),kB(t),(r=n.c,P(r,88)?I(r,29):o9),e)),n},Q.Rj=function(e,t){return SRe(this,I(e,87),t)},Q.Sj=function(e,t){return xRe(this,I(e,87),t)},Q.Tj=function(e,t,n){return TWe(this,I(e,87),I(t,87),n)},Q.Fj=function(e,t,n,r,i){switch(e){case 3:return wM(this,e,t,n,r,this.i>1);case 5:return wM(this,e,t,n,r,this.i-I(n,15).gc()>0);default:return new EF(this.e,e,this.c,t,n,r,!0)}},Q.Qj=function(){return!0},Q.Nj=function(){return nVe(this)},Q.Dk=function(){HK(this)},z(PZ,`EClassImpl/1`,1127),q(1141,1140,zft),Q.aj=function(e){var t,n=e.dj(),r,i,a,o,s;if(n!=8){if(r=Gze(e),r==0)switch(n){case 1:case 9:s=e.hj(),s!=null&&(t=iP(I(s,468)),!t.c&&(t.c=new El),kF(t.c,e.gj())),o=e.fj(),o!=null&&(i=I(o,468),i.Bb&1||(t=iP(i),!t.c&&(t.c=new El),JP(t.c,I(e.gj(),29))));break;case 3:o=e.fj(),o!=null&&(i=I(o,468),i.Bb&1||(t=iP(i),!t.c&&(t.c=new El),JP(t.c,I(e.gj(),29))));break;case 5:if(o=e.fj(),o!=null)for(a=I(o,16).Jc();a.Ob();)i=I(a.Pb(),468),i.Bb&1||(t=iP(i),!t.c&&(t.c=new El),JP(t.c,I(e.gj(),29)));break;case 4:s=e.hj(),s!=null&&(i=I(s,468),i.Bb&1||(t=iP(i),!t.c&&(t.c=new El),kF(t.c,e.gj())));break;case 6:if(s=e.hj(),s!=null)for(a=I(s,16).Jc();a.Ob();)i=I(a.Pb(),468),i.Bb&1||(t=iP(i),!t.c&&(t.c=new El),kF(t.c,e.gj()));break}this.nl(r)}},Q.nl=function(e){a4e(this,e)},Q.b=63,z(PZ,`ESuperAdapter`,1141),q(1142,1141,zft,Gte),Q.nl=function(e){qW(this,e)},z(PZ,`EClassImpl/10`,1142),q(1131,696,yQ),Q.Bi=function(e,t){return _Ke(this,e,t)},Q.Ci=function(e){return jVe(this,e)},Q.Di=function(e,t){RB(this,e,t)},Q.Ei=function(e){fP(this,e)},Q.Xi=function(e){return fke(this,e)},Q.Ui=function(e,t){return AF(this,e,t)},Q.Tk=function(e,t){throw O(new Qg)},Q.Fi=function(){return new QT(this)},Q.Gi=function(){return new ZT(this)},Q.Hi=function(e){return FI(this,e)},Q.Uk=function(e,t){throw O(new Qg)},Q.Ck=function(e){return this},Q.Nj=function(){return this.i!=0},Q.Wb=function(e){throw O(new Qg)},Q.Dk=function(){throw O(new Qg)},z(lQ,`EcoreEList/UnmodifiableEList`,1131),q(330,1131,yQ,IC),Q.Vi=function(){return!1},z(lQ,`EcoreEList/UnmodifiableEList/FastCompare`,330),q(1134,330,yQ,qPe),Q.bd=function(e){var t,n,r;if(P(e,178)&&(t=I(e,178),n=t.Ij(),n!=-1)){for(r=this.i;n<r;++n)if(N(this.g[n])===N(e))return n}return-1},z(PZ,`EClassImpl/1EAllStructuralFeaturesList`,1134),q(1128,490,$Z,cl),Q.Zi=function(e){return H(W7,upt,87,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/1EGenericSuperTypeEList`,1128),q(621,490,$Z,ll),Q.Zi=function(e){return H(z7,vQ,178,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/1EStructuralFeatureUniqueEList`,621),q(740,490,$Z,ul),Q.Zi=function(e){return H(J7,vQ,19,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/1ReferenceList`,740),q(1129,490,$Z,Kte),Q.Ji=function(e,t){f_e(this,I(t,35))},Q.Zi=function(e){return H(B7,vQ,35,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/2`,1129),q(1130,490,$Z,dl),Q.Zi=function(e){return H(B7,vQ,35,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/3`,1130),q(1132,330,yQ,xhe),Q.Ec=function(e){return aEe(this,I(e,35))},Q.Ei=function(e){Fae(this,I(e,35))},z(PZ,`EClassImpl/4`,1132),q(1133,330,yQ,She),Q.Ec=function(e){return oEe(this,I(e,19))},Q.Ei=function(e){Iae(this,I(e,19))},z(PZ,`EClassImpl/5`,1133),q(1135,490,$Z,fl),Q.Zi=function(e){return H(G7,cpt,62,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/6`,1135),q(1136,490,$Z,pl),Q.Zi=function(e){return H(J7,vQ,19,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/7`,1136),q(2044,2043,{3:1,4:1,20:1,31:1,55:1,16:1,15:1,70:1,61:1,71:1}),Q.Bi=function(e,t){return I6e(this,e,t)},Q.Ci=function(e){return I6e(this,this.Bj(),e)},Q.Di=function(e,t){GZe(this,e,t)},Q.Ei=function(e){yZe(this,e)},Q.Tk=function(e,t){return MVe(this,e,t)},Q.Uk=function(e,t){return DBe(this,e,t)},Q.Ui=function(e,t){return L6e(this,e,t)},Q.Xi=function(e){return this.uj(e)},Q.Fi=function(){return new QT(this)},Q.mj=function(){return this.pj()},Q.Gi=function(){return new ZT(this)},Q.Hi=function(e){return FI(this,e)},z(lQ,`DelegatingNotifyingInternalEListImpl`,2044),q(741,2044,dpt),Q.Ii=function(){var e=GF(Kj(this.b),this.Ij()).Ek();return P(e,155)&&!P(e,456)&&(e.hk().i&1)==0},Q.Gc=function(e){var t,n,r,i,a,o,s,c;if(this.ll()){if(c=this.Bj(),c>4)if(this.ck(e)){if(this.Zk()){if(r=I(e,52),n=r.Ah(),s=n==this.b&&(this.jl()?r.uh(r.Bh(),I(GF(Kj(this.b),this.Ij()).Ek(),29).hk())==DU(I(GF(Kj(this.b),this.Ij()),19)).n:-1-r.Bh()==this.Ij()),this.kl()&&!s&&!n&&r.Fh()){for(i=0;i<c;++i)if(t=Kk(this,this.uj(i)),N(t)===N(e))return!0}return s}else if(this.jl()&&!this.il()){if(a=I(e,57).Ih(DU(I(GF(Kj(this.b),this.Ij()),19))),N(a)===N(this.b))return!0;if(a==null||!I(a,57).Rh())return!1}}else return!1;if(o=this.rj(e),this.kl()&&!o){for(i=0;i<c;++i)if(r=Kk(this,this.uj(i)),N(r)===N(e))return!0}return o}else return this.rj(e)},Q.Fj=function(e,t,n,r,i){return new EF(this.b,e,this.Ij(),t,n,r,i)},Q.Gj=function(e){pR(this.b,e)},Q.Ck=function(e){return this},Q.Hj=function(){return GF(Kj(this.b),this.Ij())},Q.Ij=function(){return gH(Kj(this.b),GF(Kj(this.b),this.Ij()))},Q.gj=function(){return this.b},Q.hl=function(){return!!GF(Kj(this.b),this.Ij()).Ek().hk()},Q.Jj=function(){var e,t=GF(Kj(this.b),this.Ij());return P(t,102)?(e=I(t,19),(e.Bb&NZ)!=0||!!DU(I(t,19))):!1},Q.il=function(){var e,t=GF(Kj(this.b),this.Ij()),n,r;return P(t,102)?(e=I(t,19),n=DU(e),!!n&&(r=n.t,r>1||r==-1)):!1},Q.jl=function(){var e,t=GF(Kj(this.b),this.Ij()),n;return P(t,102)?(e=I(t,19),n=DU(e),!!n):!1},Q.kl=function(){var e,t=GF(Kj(this.b),this.Ij());return P(t,102)?(e=I(t,19),(e.Bb&wJ)!=0):!1},Q.bd=function(e){var t,n,r=this.wj(e),i;if(r>=0)return r;if(this.ll()){for(n=0,i=this.Bj();n<i;++n)if(t=Kk(this,this.uj(n)),N(t)===N(e))return n}return-1},Q.Kj=function(e,t){var n;return n=I(e,52),this.jl()?this.hl()?n.Nh(this.b,DU(I(GF(Kj(this.b),this.Ij()),19)).n,I(GF(Kj(this.b),this.Ij()).Ek(),29).hk(),t):n.Nh(this.b,gH(n.zh(),DU(I(GF(Kj(this.b),this.Ij()),19))),null,t):n.Nh(this.b,-1-this.Ij(),null,t)},Q.Lj=function(e,t){var n;return n=I(e,52),this.jl()?this.hl()?n.Ph(this.b,DU(I(GF(Kj(this.b),this.Ij()),19)).n,I(GF(Kj(this.b),this.Ij()).Ek(),29).hk(),t):n.Ph(this.b,gH(n.zh(),DU(I(GF(Kj(this.b),this.Ij()),19))),null,t):n.Ph(this.b,-1-this.Ij(),null,t)},Q.Zk=function(){var e,t=GF(Kj(this.b),this.Ij());return P(t,102)?(e=I(t,19),(e.Bb&NZ)!=0):!1},Q.ll=function(){return P(GF(Kj(this.b),this.Ij()).Ek(),88)},Q.ck=function(e){return GF(Kj(this.b),this.Ij()).Ek().ck(e)},Q.Mj=function(){return qC(this.b)},Q.Nj=function(){return!this.xj()},Q.Pi=function(){return GF(Kj(this.b),this.Ij()).Pi()},Q.Ti=function(e,t){return qK(this,e,t)},Q.Wb=function(e){UK(this),wA(this,I(e,15))},Q.Nc=function(){var e;if(this.kl())for(e=this.Bj()-1;e>=0;--e)qK(this,e,this.uj(e));return this.Cj()},Q.Oc=function(e){var t;if(this.kl())for(t=this.Bj()-1;t>=0;--t)qK(this,t,this.uj(t));return this.Dj(e)},Q.Dk=function(){UK(this)},Q.Wi=function(e,t){return pke(this,e,t)},z(lQ,`DelegatingEcoreEList`,741),q(1137,741,dpt,Ede),Q.nj=function(e,t){nde(this,e,I(t,29))},Q.oj=function(e){gw(this,I(e,29))},Q.uj=function(e){var t,n;return t=I(U(NN(this.a),e),87),n=t.c,P(n,88)?I(n,29):(fq(),o9)},Q.zj=function(e){var t,n;return t=I(KG(NN(this.a),e),87),n=t.c,P(n,88)?I(n,29):(fq(),o9)},Q.Aj=function(e,t){return NVe(this,e,I(t,29))},Q.Ii=function(){return!1},Q.Fj=function(e,t,n,r,i){return null},Q.pj=function(){return new Og(this)},Q.qj=function(){HK(NN(this.a))},Q.rj=function(e){return rLe(this,e)},Q.sj=function(e){var t,n;for(n=e.Jc();n.Ob();)if(t=n.Pb(),!rLe(this,t))return!1;return!0},Q.tj=function(e){var t,n,r;if(P(e,15)&&(r=I(e,15),r.gc()==NN(this.a).i)){for(t=r.Jc(),n=new oT(this);t.Ob();)if(N(t.Pb())!==N(hU(n)))return!1;return!0}return!1},Q.vj=function(){var e,t,n=1,r,i;for(t=new oT(NN(this.a));t.e!=t.i.gc();)e=I(hU(t),87),r=(i=e.c,P(i,88)?I(i,29):(fq(),o9)),n=31*n+(r?XT(r):0);return n},Q.wj=function(e){var t,n,r=0,i;for(n=new oT(NN(this.a));n.e!=n.i.gc();){if(t=I(hU(n),87),N(e)===N((i=t.c,P(i,88)?I(i,29):(fq(),o9))))return r;++r}return-1},Q.xj=function(){return NN(this.a).i==0},Q.yj=function(){return null},Q.Bj=function(){return NN(this.a).i},Q.Cj=function(){var e,t,n,r,i,a=NN(this.a).i;for(i=H(WQ,Sq,1,a,5,1),n=0,t=new oT(NN(this.a));t.e!=t.i.gc();)e=I(hU(t),87),i[n++]=(r=e.c,P(r,88)?I(r,29):(fq(),o9));return i},Q.Dj=function(e){var t,n,r,i,a,o,s=NN(this.a).i;for(e.length<s&&(i=DI(Rz(e).c,s),e=i),e.length>s&&AA(e,s,null),r=0,n=new oT(NN(this.a));n.e!=n.i.gc();)t=I(hU(n),87),a=(o=t.c,P(o,88)?I(o,29):(fq(),o9)),AA(e,r++,a);return e},Q.Ej=function(){var e,t,n,r,i=new vv;for(i.a+=`[`,e=NN(this.a),t=0,r=NN(this.a).i;t<r;)xC(i,DT((n=I(U(e,t),87).c,P(n,88)?I(n,29):(fq(),o9)))),++t<r&&(i.a+=xq);return i.a+=`]`,i.a},Q.Gj=function(e){},Q.Ij=function(){return 10},Q.hl=function(){return!0},Q.Jj=function(){return!1},Q.il=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!0},Q.Zk=function(){return!1},Q.ll=function(){return!0},Q.ck=function(e){return P(e,88)},Q.Nj=function(){return swe(this.a)},Q.Pi=function(){return!0},Q.Vi=function(){return!0},z(PZ,`EClassImpl/8`,1137),q(1138,2011,Qq,Og),Q.dd=function(e){return FI(this.a,e)},Q.gc=function(){return NN(this.a.a).i},z(PZ,`EClassImpl/8/1`,1138),q(1139,490,$Z,ml),Q.Zi=function(e){return H(V7,Sq,141,e,0,1)},Q.Vi=function(){return!1},z(PZ,`EClassImpl/9`,1139),q(1126,50,Iit,mre),z(PZ,`EClassImpl/MyHashSet`,1126),q(561,358,{109:1,93:1,92:1,141:1,155:1,828:1,154:1,197:1,57:1,113:1,52:1,98:1,358:1,157:1,117:1,118:1,678:1},Gg),Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return FU(this);case 4:return this.fk();case 5:return this.F;case 6:return t?aI(this):bM(this);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),this.A;case 8:return ST(),!!(this.Bb&256)}return eF(this,e-DA(this.ei()),GF((r=I(vR(this,16),29),r||this.ei()),e),t,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!FU(this);case 4:return this.fk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!bM(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return ON(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:IM(this,IE(t));return;case 2:Uce(this,IE(t));return;case 5:YK(this,IE(t));return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A),!this.A&&(this.A=new lT(Y7,this,7)),wA(this.A,I(t,16));return;case 8:UB(this,W_(FE(t)));return}NV(this,e-DA(this.ei()),GF((n=I(vR(this,16),29),n||this.ei()),e),t)},Q.ei=function(){return fq(),ERt},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,184)&&(I(this.Cb,184).tb=null),DL(this,null);return;case 2:uB(this,null),EI(this,this.D);return;case 5:YK(this,null);return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A);return;case 8:UB(this,!0);return}HB(this,e-DA(this.ei()),GF((t=I(vR(this,16),29),t||this.ei()),e))},Q.li=function(){FB((BW(),_9),this).ve(),this.Bb|=1},Q.lk=function(){var e,t,n;if(!this.c&&(e=YQe(aI(this)),!e.dc()))for(n=e.Jc();n.Ob();)t=IE(n.Pb()),_K(this,t)&&SLe(this);return this.b},Q.fk=function(){var e;if(!this.e){e=null;try{e=FU(this)}catch(e){if(e=GR(e),!P(e,100))throw O(e)}this.d=null,e&&e.i&1&&(e==J9?this.d=(ST(),QQ):e==q9?this.d=kB(0):e==Q9?this.d=new bm(0):e==Z9?this.d=0:e==Y9?this.d=nU(0):e==$9?this.d=AB(0):e==X9?this.d=wF(0):this.d=wR(0)),this.e=!0}return this.d},Q.kk=function(){return(this.Bb&256)!=0},Q.ol=function(e){e&&(this.D=`org.eclipse.emf.common.util.AbstractEnumerator`)},Q.dl=function(e){JMe(this,e),this.ol(e)},Q.el=function(e){this.C=e,this.e=!1},Q.Ib=function(){var e;return this.Db&64?yH(this):(e=new kT(yH(this)),e.a+=` (serializable: `,uy(e,(this.Bb&256)!=0),e.a+=`)`,e.a)},Q.c=!1,Q.d=null,Q.e=!1,z(PZ,`EDataTypeImpl`,561),q(456,561,{109:1,93:1,92:1,141:1,155:1,828:1,672:1,154:1,197:1,57:1,113:1,52:1,98:1,358:1,456:1,157:1,117:1,118:1,678:1},bre),Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return FU(this);case 4:return nB(this);case 5:return this.F;case 6:return t?aI(this):bM(this);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),this.A;case 8:return ST(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new L(U7,this,9,5)),this.a}return eF(this,e-DA((fq(),t9)),GF((r=I(vR(this,16),29),r||t9),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?_He(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,6,n);case 9:return!this.a&&(this.a=new L(U7,this,9,5)),SH(this.a,e,n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),t9)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),t9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 6:return gK(this,null,6,n);case 7:return!this.A&&(this.A=new lT(Y7,this,7)),bU(this.A,e,n);case 9:return!this.a&&(this.a=new L(U7,this,9,5)),bU(this.a,e,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),t9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),t9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!FU(this);case 4:return!!nB(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!bM(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return ON(this,e-DA((fq(),t9)),GF((t=I(vR(this,16),29),t||t9),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:IM(this,IE(t));return;case 2:Uce(this,IE(t));return;case 5:YK(this,IE(t));return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A),!this.A&&(this.A=new lT(Y7,this,7)),wA(this.A,I(t,16));return;case 8:UB(this,W_(FE(t)));return;case 9:!this.a&&(this.a=new L(U7,this,9,5)),HK(this.a),!this.a&&(this.a=new L(U7,this,9,5)),wA(this.a,I(t,16));return}NV(this,e-DA((fq(),t9)),GF((n=I(vR(this,16),29),n||t9),e),t)},Q.ei=function(){return fq(),t9},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,184)&&(I(this.Cb,184).tb=null),DL(this,null);return;case 2:uB(this,null),EI(this,this.D);return;case 5:YK(this,null);return;case 7:!this.A&&(this.A=new lT(Y7,this,7)),HK(this.A);return;case 8:UB(this,!0);return;case 9:!this.a&&(this.a=new L(U7,this,9,5)),HK(this.a);return}HB(this,e-DA((fq(),t9)),GF((t=I(vR(this,16),29),t||t9),e))},Q.li=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)hE(U(this.a,e));FB((BW(),_9),this).ve(),this.Bb|=1},Q.fk=function(){return nB(this)},Q.ck=function(e){return e!=null},Q.ol=function(e){},z(PZ,`EEnumImpl`,456),q(566,436,{109:1,93:1,92:1,1988:1,681:1,154:1,197:1,57:1,113:1,52:1,98:1,566:1,157:1,117:1,118:1},_ne),Q.ve=function(){return this.zb},Q.wh=function(e){return lUe(this,e)},Q.Hh=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return kB(this.d);case 3:return this.b?this.b:this.a;case 4:return i=this.c,i??this.zb;case 5:return this.Db>>16==5?I(this.Cb,672):null}return eF(this,e-DA((fq(),n9)),GF((r=I(vR(this,16),29),r||n9),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?lUe(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,5,n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),n9)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),n9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 5:return gK(this,null,5,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),n9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),n9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&I(this.Cb,672))}return ON(this,e-DA((fq(),n9)),GF((t=I(vR(this,16),29),t||n9),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:DL(this,IE(t));return;case 2:TI(this,I(t,17).a);return;case 3:rZe(this,I(t,1988));return;case 4:QI(this,IE(t));return}NV(this,e-DA((fq(),n9)),GF((n=I(vR(this,16),29),n||n9),e),t)},Q.ei=function(){return fq(),n9},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:DL(this,null);return;case 2:TI(this,0);return;case 3:rZe(this,null);return;case 4:QI(this,null);return}HB(this,e-DA((fq(),n9)),GF((t=I(vR(this,16),29),t||n9),e))},Q.Ib=function(){var e;return e=this.c,e??this.zb},Q.b=null,Q.c=null,Q.d=0,z(PZ,`EEnumLiteralImpl`,566);var LRt=KO(PZ,`EFactoryImpl/InternalEDateTimeFormat`);q(483,1,{2063:1},kg),z(PZ,`EFactoryImpl/1ClientInternalEDateTimeFormat`,483),q(246,118,{109:1,93:1,92:1,87:1,57:1,113:1,52:1,98:1,246:1,117:1,118:1},Vg),Q.yh=function(e,t,n){var r;return n=gK(this,e,t,n),this.e&&P(e,178)&&(r=wG(this,this.e),r!=this.c&&(n=XK(this,r,n))),n},Q.Hh=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new sT(W7,this,1)),this.d;case 2:return t?bK(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?fVe(this):this.a}return eF(this,e-DA((fq(),i9)),GF((r=I(vR(this,16),29),r||i9),e),t,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return wIe(this,null,n);case 1:return!this.d&&(this.d=new sT(W7,this,1)),bU(this.d,e,n);case 3:return CIe(this,null,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),i9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),i9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return ON(this,e-DA((fq(),i9)),GF((t=I(vR(this,16),29),t||i9),e))},Q.Zh=function(e,t){var n;switch(e){case 0:tGe(this,I(t,87));return;case 1:!this.d&&(this.d=new sT(W7,this,1)),HK(this.d),!this.d&&(this.d=new sT(W7,this,1)),wA(this.d,I(t,16));return;case 3:eGe(this,I(t,87));return;case 4:rqe(this,I(t,831));return;case 5:cI(this,I(t,141));return}NV(this,e-DA((fq(),i9)),GF((n=I(vR(this,16),29),n||i9),e),t)},Q.ei=function(){return fq(),i9},Q.gi=function(e){var t;switch(e){case 0:tGe(this,null);return;case 1:!this.d&&(this.d=new sT(W7,this,1)),HK(this.d);return;case 3:eGe(this,null);return;case 4:rqe(this,null);return;case 5:cI(this,null);return}HB(this,e-DA((fq(),i9)),GF((t=I(vR(this,16),29),t||i9),e))},Q.Ib=function(){var e=new AT(gG(this));return e.a+=` (expression: `,H5e(this,e),e.a+=`)`,e.a};var RRt;z(PZ,`EGenericTypeImpl`,246),q(2016,2011,fpt),Q.Di=function(e,t){Pde(this,e,t)},Q.Tk=function(e,t){return Pde(this,this.gc(),e),t},Q.Xi=function(e){return yU(this.mj(),e)},Q.Fi=function(){return this.Gi()},Q.mj=function(){return new Zte(this)},Q.Gi=function(){return this.Hi(0)},Q.Hi=function(e){return this.mj().dd(e)},Q.Uk=function(e,t){return sH(this,e,!0),t},Q.Qi=function(e,t){var n,r=QHe(this,t);return n=this.dd(e),n.Rb(r),r},Q.Ri=function(e,t){var n;sH(this,t,!0),n=this.dd(e),n.Rb(t)},z(lQ,`AbstractSequentialInternalEList`,2016),q(480,2016,fpt,nE),Q.Xi=function(e){return yU(this.mj(),e)},Q.Fi=function(){return this.b==null?(Jb(),Jb(),m9):this.pl()},Q.mj=function(){return new Tce(this.a,this.b)},Q.Gi=function(){return this.b==null?(Jb(),Jb(),m9):this.pl()},Q.Hi=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw O(new K_(sQ+e+`, size=0`));return Jb(),Jb(),m9}for(n=this.pl(),t=0;t<e;++t)xR(n);return n},Q.dc=function(){var e,t,n,r,i,a;if(this.b!=null){for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.sl()||this.a.Th(e)){if(a=this.a.Jh(e,!1),Xb(),I(e,69).uk()){for(t=I(a,159),r=0,i=t.gc();r<i;++r)if(Pve(t.Ql(r))&&t.Rl(r)!=null)return!1}else if(e.Gk()){if(!I(a,16).dc())return!1}else if(a!=null)return!1}}return!0},Q.Jc=function(){return dL(this)},Q.dd=function(e){var t,n;if(this.b==null){if(e!=0)throw O(new K_(sQ+e+`, size=0`));return Jb(),Jb(),m9}for(n=this.rl()?this.ql():this.pl(),t=0;t<e;++t)xR(n);return n},Q.Qi=function(e,t){throw O(new Qg)},Q.Ri=function(e,t){throw O(new Qg)},Q.pl=function(){return new rE(this.a,this.b)},Q.ql=function(){return new Gue(this.a,this.b)},Q.rl=function(){return!0},Q.gc=function(){var e,t,n,r,i=0,a,o;if(this.b!=null){for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.sl()||this.a.Th(e))if(o=this.a.Jh(e,!1),Xb(),I(e,69).uk())for(t=I(o,159),r=0,a=t.gc();r<a;++r)Pve(t.Ql(r))&&t.Rl(r)!=null&&++i;else e.Gk()?i+=I(o,16).gc():o!=null&&++i}return i},Q.sl=function(){return!0};var zRt;z(lQ,`EContentsEList`,480),q(1143,480,fpt,Kue),Q.pl=function(){return new DE(this.a,this.b)},Q.ql=function(){return new EE(this.a,this.b)},Q.sl=function(){return!1},z(PZ,`ENamedElementImpl/1`,1143),q(285,1,ppt,rE),Q.Nb=function(e){Zk(this,e)},Q.Rb=function(e){throw O(new Qg)},Q.tl=function(e){if(this.g!=0||this.e)throw O(new Z_(`Iterator already in use or already filtered`));this.e=e},Q.Ob=function(){var e,t,n,r,i,a;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!PJe(this,this.p):!cZe(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.mk()!=m7||t.Ij()!=0)&&(!this.sl()||this.b.Th(t))){if(a=this.b.Jh(t,this.rl()),this.f=(Xb(),I(t,69).uk()),this.f||t.Gk()){if(this.rl()?(r=I(a,15),this.k=r):(r=I(a,71),this.k=this.j=r),P(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Gi():this.k.cd(),this.p?PJe(this,this.p):cZe(this))return i=this.p?this.p.Pb():this.j?this.j.Xi(this.n++):this.k.Xb(this.n++),this.f?(e=I(i,74),e.Ik(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return i=this.p?this.p.Pb():this.j?this.j.Xi(this.n++):this.k.Xb(this.n++),this.f?(e=I(i,74),e.Ik(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=3,!0}},Q.Sb=function(){var e,t,n,r,i,a;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!FJe(this,this.p):!SYe(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.mk()!=m7||t.Ij()!=0)&&(!this.sl()||this.b.Th(t))){if(a=this.b.Jh(t,this.rl()),this.f=(Xb(),I(t,69).uk()),this.f||t.Gk()){if(this.rl()?(r=I(a,15),this.k=r):(r=I(a,71),this.k=this.j=r),P(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Hi(this.k.gc()):this.k.dd(this.k.gc()),this.p?FJe(this,this.p):SYe(this))return i=this.p?this.p.Ub():this.j?this.j.Xi(--this.n):this.k.Xb(--this.n),this.f?(e=I(i,74),e.Ik(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return i=this.p?this.p.Ub():this.j?this.j.Xi(--this.n):this.k.Xb(--this.n),this.f?(e=I(i,74),e.Ik(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},Q.Pb=function(){return xR(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw O(new e_)},Q.Vb=function(){return this.a-1},Q.Qb=function(){throw O(new Qg)},Q.rl=function(){return!1},Q.Wb=function(e){throw O(new Qg)},Q.sl=function(){return!0},Q.a=0,Q.d=0,Q.f=!1,Q.g=0,Q.n=0,Q.o=0;var m9;z(lQ,`EContentsEList/FeatureIteratorImpl`,285),q(697,285,ppt,Gue),Q.rl=function(){return!0},z(lQ,`EContentsEList/ResolvingFeatureIteratorImpl`,697),q(1144,697,ppt,EE),Q.sl=function(){return!1},z(PZ,`ENamedElementImpl/1/1`,1144),q(1145,285,ppt,DE),Q.sl=function(){return!1},z(PZ,`ENamedElementImpl/1/2`,1145),q(38,150,oQ,HN,UN,Hk,GP,EF,cP,Jje,qCe,Yje,JCe,lDe,YCe,Qje,XCe,uDe,ZCe,Xje,QCe,Uk,KP,Uj,Zje,$Ce,cDe,ewe),Q.Hj=function(){return QOe(this)},Q.Oj=function(){var e=QOe(this);return e?e.fk():null},Q.ej=function(e){return this.b==-1&&this.a&&(this.b=this.c.Dh(this.a.Ij(),this.a.mk())),this.c.uh(this.b,e)},Q.gj=function(){return this.c},Q.Pj=function(){var e=QOe(this);return e?e.qk():!1},Q.b=-1,z(PZ,`ENotificationImpl`,38),q(401,291,{109:1,93:1,92:1,154:1,197:1,57:1,62:1,113:1,467:1,52:1,98:1,157:1,401:1,291:1,117:1,118:1},C_),Q.wh=function(e){return OUe(this,e)},Q.Hh=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ST(),!!(this.Bb&256);case 3:return ST(),!!(this.Bb&512);case 4:return kB(this.s);case 5:return kB(this.t);case 6:return ST(),a=this.t,a>1||a==-1;case 7:return ST(),i=this.s,i>=1;case 8:return t?XU(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?I(this.Cb,29):null;case 11:return!this.d&&(this.d=new lT(Y7,this,11)),this.d;case 12:return!this.c&&(this.c=new L(q7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new QE(this,this)),this.a;case 14:return vF(this)}return eF(this,e-DA((fq(),s9)),GF((r=I(vR(this,16),29),r||s9),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?OUe(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,10,n);case 12:return!this.c&&(this.c=new L(q7,this,12,10)),SH(this.c,e,n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),s9)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),s9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 9:return CA(this,n);case 10:return gK(this,null,10,n);case 11:return!this.d&&(this.d=new lT(Y7,this,11)),bU(this.d,e,n);case 12:return!this.c&&(this.c=new L(q7,this,12,10)),bU(this.c,e,n);case 14:return bU(vF(this),e,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),s9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),s9)),e,n)},Q.Sh=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&RA(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&RA(this.q).i==0);case 10:return!!(this.Db>>16==10&&I(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&vF(this.a.a).i!=0&&!(this.b&&rVe(this.b));case 14:return!!this.b&&rVe(this.b)}return ON(this,e-DA((fq(),s9)),GF((t=I(vR(this,16),29),t||s9),e))},Q.Zh=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:DL(this,IE(t));return;case 2:zB(this,W_(FE(t)));return;case 3:BB(this,W_(FE(t)));return;case 4:CI(this,I(t,17).a);return;case 5:wI(this,I(t,17).a);return;case 8:dB(this,I(t,141));return;case 9:r=vW(this,I(t,87),null),r&&r.lj();return;case 11:!this.d&&(this.d=new lT(Y7,this,11)),HK(this.d),!this.d&&(this.d=new lT(Y7,this,11)),wA(this.d,I(t,16));return;case 12:!this.c&&(this.c=new L(q7,this,12,10)),HK(this.c),!this.c&&(this.c=new L(q7,this,12,10)),wA(this.c,I(t,16));return;case 13:!this.a&&(this.a=new QE(this,this)),UK(this.a),!this.a&&(this.a=new QE(this,this)),wA(this.a,I(t,16));return;case 14:HK(vF(this)),wA(vF(this),I(t,16));return}NV(this,e-DA((fq(),s9)),GF((n=I(vR(this,16),29),n||s9),e),t)},Q.ei=function(){return fq(),s9},Q.gi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:DL(this,null);return;case 2:zB(this,!0);return;case 3:BB(this,!0);return;case 4:CI(this,0);return;case 5:wI(this,1);return;case 8:dB(this,null);return;case 9:n=vW(this,null,null),n&&n.lj();return;case 11:!this.d&&(this.d=new lT(Y7,this,11)),HK(this.d);return;case 12:!this.c&&(this.c=new L(q7,this,12,10)),HK(this.c);return;case 13:this.a&&UK(this.a);return;case 14:this.b&&HK(this.b);return}HB(this,e-DA((fq(),s9)),GF((t=I(vR(this,16),29),t||s9),e))},Q.li=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)hE(U(this.c,e));XU(this),this.Bb|=1},z(PZ,`EOperationImpl`,401),q(497,741,dpt,QE),Q.nj=function(e,t){tde(this,e,I(t,141))},Q.oj=function(e){rle(this,I(e,141))},Q.uj=function(e){var t,n;return t=I(U(vF(this.a),e),87),n=t.c,n||(fq(),a9)},Q.zj=function(e){var t,n;return t=I(KG(vF(this.a),e),87),n=t.c,n||(fq(),a9)},Q.Aj=function(e,t){return lze(this,e,I(t,141))},Q.Ii=function(){return!1},Q.Fj=function(e,t,n,r,i){return null},Q.pj=function(){return new Ag(this)},Q.qj=function(){HK(vF(this.a))},Q.rj=function(e){return oLe(this,e)},Q.sj=function(e){var t,n;for(n=e.Jc();n.Ob();)if(t=n.Pb(),!oLe(this,t))return!1;return!0},Q.tj=function(e){var t,n,r;if(P(e,15)&&(r=I(e,15),r.gc()==vF(this.a).i)){for(t=r.Jc(),n=new oT(this);t.Ob();)if(N(t.Pb())!==N(hU(n)))return!1;return!0}return!1},Q.vj=function(){var e,t,n=1,r,i;for(t=new oT(vF(this.a));t.e!=t.i.gc();)e=I(hU(t),87),r=(i=e.c,i||(fq(),a9)),n=31*n+(r?TL(r):0);return n},Q.wj=function(e){var t,n,r=0,i;for(n=new oT(vF(this.a));n.e!=n.i.gc();){if(t=I(hU(n),87),N(e)===N((i=t.c,i||(fq(),a9))))return r;++r}return-1},Q.xj=function(){return vF(this.a).i==0},Q.yj=function(){return null},Q.Bj=function(){return vF(this.a).i},Q.Cj=function(){var e,t,n,r,i,a=vF(this.a).i;for(i=H(WQ,Sq,1,a,5,1),n=0,t=new oT(vF(this.a));t.e!=t.i.gc();)e=I(hU(t),87),i[n++]=(r=e.c,r||(fq(),a9));return i},Q.Dj=function(e){var t,n,r,i,a,o,s=vF(this.a).i;for(e.length<s&&(i=DI(Rz(e).c,s),e=i),e.length>s&&AA(e,s,null),r=0,n=new oT(vF(this.a));n.e!=n.i.gc();)t=I(hU(n),87),a=(o=t.c,o||(fq(),a9)),AA(e,r++,a);return e},Q.Ej=function(){var e,t,n,r,i=new vv;for(i.a+=`[`,e=vF(this.a),t=0,r=vF(this.a).i;t<r;)xC(i,DT((n=I(U(e,t),87).c,n||(fq(),a9)))),++t<r&&(i.a+=xq);return i.a+=`]`,i.a},Q.Gj=function(e){},Q.Ij=function(){return 13},Q.hl=function(){return!0},Q.Jj=function(){return!1},Q.il=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!0},Q.Zk=function(){return!1},Q.ll=function(){return!0},Q.ck=function(e){return P(e,141)},Q.Nj=function(){return owe(this.a)},Q.Pi=function(){return!0},Q.Vi=function(){return!0},z(PZ,`EOperationImpl/1`,497),q(1327,2011,Qq,Ag),Q.dd=function(e){return FI(this.a,e)},Q.gc=function(){return vF(this.a.a).i},z(PZ,`EOperationImpl/1/1`,1327),q(1328,541,yQ,Jge),Q.Qi=function(e,t){var n,r;return n=I(oV(this,e,t),87),qC(this.e)&&r_(this,new KP(this.a,7,(fq(),kRt),kB(t),(r=n.c,r||a9),e)),n},Q.Rj=function(e,t){return WIe(this,I(e,87),t)},Q.Sj=function(e,t){return UIe(this,I(e,87),t)},Q.Tj=function(e,t,n){return Rze(this,I(e,87),I(t,87),n)},Q.Fj=function(e,t,n,r,i){switch(e){case 3:return wM(this,e,t,n,r,this.i>1);case 5:return wM(this,e,t,n,r,this.i-I(n,15).gc()>0);default:return new EF(this.e,e,this.c,t,n,r,!0)}},Q.Qj=function(){return!0},Q.Nj=function(){return rVe(this)},Q.Dk=function(){HK(this)},z(PZ,`EOperationImpl/2`,1328),q(491,1,{1986:1,491:1},Gse),z(PZ,`EPackageImpl/1`,491),q(14,81,yQ,L),Q.fl=function(){return this.d},Q.gl=function(){return this.b},Q.jl=function(){return!0},Q.b=0,z(lQ,`EObjectContainmentWithInverseEList`,14),q(359,14,yQ,wD),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectContainmentWithInverseEList/Resolving`,359),q(310,359,yQ,Wk),Q.Ki=function(){this.a.tb=null},z(PZ,`EPackageImpl/2`,310),q(1240,1,{},hl),z(PZ,`EPackageImpl/3`,1240),q(718,45,jJ,hre),Q._b=function(e){return mC(e)?Bj(this,e):!!_k(this.f,e)},z(PZ,`EPackageRegistryImpl`,718),q(502,291,{109:1,93:1,92:1,154:1,197:1,57:1,2065:1,113:1,467:1,52:1,98:1,157:1,502:1,291:1,117:1,118:1},w_),Q.wh=function(e){return kUe(this,e)},Q.Hh=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ST(),!!(this.Bb&256);case 3:return ST(),!!(this.Bb&512);case 4:return kB(this.s);case 5:return kB(this.t);case 6:return ST(),a=this.t,a>1||a==-1;case 7:return ST(),i=this.s,i>=1;case 8:return t?XU(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?I(this.Cb,62):null}return eF(this,e-DA((fq(),l9)),GF((r=I(vR(this,16),29),r||l9),e),t,n)},Q.Oh=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),SH(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?kUe(this,n):this.Cb.Ph(this,-1-i,null,n))),gK(this,e,10,n)}return a=I(GF((r=I(vR(this,16),29),r||(fq(),l9)),t),69),a.tk().wk(this,QH(this),t-DA((fq(),l9)),e,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 9:return CA(this,n);case 10:return gK(this,null,10,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),l9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),l9)),e,n)},Q.Sh=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&RA(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&RA(this.q).i==0);case 10:return!!(this.Db>>16==10&&I(this.Cb,62))}return ON(this,e-DA((fq(),l9)),GF((t=I(vR(this,16),29),t||l9),e))},Q.ei=function(){return fq(),l9},z(PZ,`EParameterImpl`,502),q(102,448,{109:1,93:1,92:1,154:1,197:1,57:1,19:1,178:1,69:1,113:1,467:1,52:1,98:1,157:1,102:1,448:1,291:1,117:1,118:1,679:1},zE),Q.Hh=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ST(),!!(this.Bb&256);case 3:return ST(),!!(this.Bb&512);case 4:return kB(this.s);case 5:return kB(this.t);case 6:return ST(),o=this.t,o>1||o==-1;case 7:return ST(),i=this.s,i>=1;case 8:return t?XU(this):this.r;case 9:return this.q;case 10:return ST(),(this.Bb&cQ)!=0;case 11:return ST(),(this.Bb&Zq)!=0;case 12:return ST(),(this.Bb&SJ)!=0;case 13:return this.j;case 14:return kG(this);case 15:return ST(),(this.Bb&uQ)!=0;case 16:return ST(),(this.Bb&Fq)!=0;case 17:return yM(this);case 18:return ST(),(this.Bb&NZ)!=0;case 19:return ST(),a=DU(this),!!(a&&(a.Bb&NZ)!=0);case 20:return ST(),(this.Bb&wJ)!=0;case 21:return t?DU(this):this.b;case 22:return t?fz(this):aDe(this);case 23:return!this.a&&(this.a=new dT(B7,this,23)),this.a}return eF(this,e-DA((fq(),u9)),GF((r=I(vR(this,16),29),r||u9),e),t,n)},Q.Sh=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&RA(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&RA(this.q).i==0);case 10:return(this.Bb&cQ)==0;case 11:return(this.Bb&Zq)!=0;case 12:return(this.Bb&SJ)!=0;case 13:return this.j!=null;case 14:return kG(this)!=null;case 15:return(this.Bb&uQ)!=0;case 16:return(this.Bb&Fq)!=0;case 17:return!!yM(this);case 18:return(this.Bb&NZ)!=0;case 19:return r=DU(this),!!r&&(r.Bb&NZ)!=0;case 20:return(this.Bb&wJ)==0;case 21:return!!this.b;case 22:return!!aDe(this);case 23:return!!this.a&&this.a.i!=0}return ON(this,e-DA((fq(),u9)),GF((t=I(vR(this,16),29),t||u9),e))},Q.Zh=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:FM(this,IE(t));return;case 2:zB(this,W_(FE(t)));return;case 3:BB(this,W_(FE(t)));return;case 4:CI(this,I(t,17).a);return;case 5:wI(this,I(t,17).a);return;case 8:dB(this,I(t,141));return;case 9:r=vW(this,I(t,87),null),r&&r.lj();return;case 10:rV(this,W_(FE(t)));return;case 11:aV(this,W_(FE(t)));return;case 12:iV(this,W_(FE(t)));return;case 13:Use(this,IE(t));return;case 15:nV(this,W_(FE(t)));return;case 16:dV(this,W_(FE(t)));return;case 18:ASe(this,W_(FE(t)));return;case 20:kLe(this,W_(FE(t)));return;case 21:RMe(this,I(t,19));return;case 23:!this.a&&(this.a=new dT(B7,this,23)),HK(this.a),!this.a&&(this.a=new dT(B7,this,23)),wA(this.a,I(t,16));return}NV(this,e-DA((fq(),u9)),GF((n=I(vR(this,16),29),n||u9),e),t)},Q.ei=function(){return fq(),u9},Q.gi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:P(this.Cb,88)&&qW(iP(I(this.Cb,88)),4),DL(this,null);return;case 2:zB(this,!0);return;case 3:BB(this,!0);return;case 4:CI(this,0);return;case 5:wI(this,1);return;case 8:dB(this,null);return;case 9:n=vW(this,null,null),n&&n.lj();return;case 10:rV(this,!0);return;case 11:aV(this,!1);return;case 12:iV(this,!1);return;case 13:this.i=null,oL(this,null);return;case 15:nV(this,!1);return;case 16:dV(this,!1);return;case 18:uV(this,!1),P(this.Cb,88)&&qW(iP(I(this.Cb,88)),2);return;case 20:kLe(this,!0);return;case 21:RMe(this,null);return;case 23:!this.a&&(this.a=new dT(B7,this,23)),HK(this.a);return}HB(this,e-DA((fq(),u9)),GF((t=I(vR(this,16),29),t||u9),e))},Q.li=function(){fz(this),cj(gF((BW(),_9),this)),XU(this),this.Bb|=1},Q.rk=function(){return DU(this)},Q.Yk=function(){var e;return e=DU(this),!!e&&(e.Bb&NZ)!=0},Q.Zk=function(){return(this.Bb&NZ)!=0},Q.$k=function(){return(this.Bb&wJ)!=0},Q.Vk=function(e,t){return this.c=null,VIe(this,e,t)},Q.Ib=function(){var e;return this.Db&64?eK(this):(e=new kT(eK(this)),e.a+=` (containment: `,uy(e,(this.Bb&NZ)!=0),e.a+=`, resolveProxies: `,uy(e,(this.Bb&wJ)!=0),e.a+=`)`,e.a)},z(PZ,`EReferenceImpl`,102),q(547,118,{109:1,43:1,93:1,92:1,135:1,57:1,113:1,52:1,98:1,547:1,117:1,118:1},gl),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return XT(this)},Q.zi=function(e){Jhe(this,IE(e))},Q.ld=function(e){return Ohe(this,IE(e))},Q.Hh=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return eF(this,e-DA((fq(),d9)),GF((r=I(vR(this,16),29),r||d9),e),t,n)},Q.Sh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return ON(this,e-DA((fq(),d9)),GF((t=I(vR(this,16),29),t||d9),e))},Q.Zh=function(e,t){var n;switch(e){case 0:Yhe(this,IE(t));return;case 1:ZI(this,IE(t));return}NV(this,e-DA((fq(),d9)),GF((n=I(vR(this,16),29),n||d9),e),t)},Q.ei=function(){return fq(),d9},Q.gi=function(e){var t;switch(e){case 0:MMe(this,null);return;case 1:ZI(this,null);return}HB(this,e-DA((fq(),d9)),GF((t=I(vR(this,16),29),t||d9),e))},Q.xi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:kz(e)),this.a},Q.yi=function(e){this.a=e},Q.Ib=function(){var e;return this.Db&64?gG(this):(e=new kT(gG(this)),e.a+=` (key: `,xC(e,this.b),e.a+=`, value: `,xC(e,this.c),e.a+=`)`,e.a)},Q.a=-1,Q.b=null,Q.c=null;var h9=z(PZ,`EStringToStringMapEntryImpl`,547),BRt=KO(lQ,`FeatureMap/Entry/Internal`);q(560,1,mpt),Q.ul=function(e){return this.vl(I(e,52))},Q.vl=function(e){return this.ul(e)},Q.Fb=function(e){var t,n;return this===e?!0:P(e,74)?(t=I(e,74),t.Ik()==this.c?(n=this.kd(),n==null?t.kd()==null:LB(n,t.kd())):!1):!1},Q.Ik=function(){return this.c},Q.Hb=function(){var e=this.kd();return TL(this.c)^(e==null?0:TL(e))},Q.Ib=function(){var e=this.c,t=aI(e.nk()).ui();return e.ve(),(t!=null&&t.length!=0?t+`:`+e.ve():e.ve())+`=`+this.kd()},z(PZ,`EStructuralFeatureImpl/BasicFeatureMapEntry`,560),q(774,560,mpt,wde),Q.vl=function(e){return new wde(this.c,e)},Q.kd=function(){return this.a},Q.wl=function(e,t,n){return CNe(this,e,this.a,t,n)},Q.xl=function(e,t,n){return YL(this,e,this.a,t,n)},z(PZ,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,774),q(1301,1,{},Kse),Q.vk=function(e,t,n,r,i){return I(YP(e,this.b),219).Vl(this.a).Ck(r)},Q.wk=function(e,t,n,r,i){return I(YP(e,this.b),219).Ml(this.a,r,i)},Q.xk=function(e,t,n,r,i){return I(YP(e,this.b),219).Nl(this.a,r,i)},Q.yk=function(e,t,n){return I(YP(e,this.b),219).Vl(this.a).Nj()},Q.zk=function(e,t,n,r){I(YP(e,this.b),219).Vl(this.a).Wb(r)},Q.Ak=function(e,t,n){return I(YP(e,this.b),219).Vl(this.a)},Q.Bk=function(e,t,n){I(YP(e,this.b),219).Vl(this.a).Dk()},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1301),q(89,1,{},fO,wj,Qj,zN),Q.vk=function(e,t,n,r,i){var a=t.hi(n);if(a??t.ii(n,a=lrt(this,e)),!i)switch(this.e){case 50:case 41:return I(a,583).$j();case 40:return I(a,219).Sl()}return a},Q.wk=function(e,t,n,r,i){var a,o=t.hi(n);return o??t.ii(n,o=lrt(this,e)),a=I(o,71).Tk(r,i),a},Q.xk=function(e,t,n,r,i){var a=t.hi(n);return a!=null&&(i=I(a,71).Uk(r,i)),i},Q.yk=function(e,t,n){var r=t.hi(n);return r!=null&&I(r,76).Nj()},Q.zk=function(e,t,n,r){var i=I(t.hi(n),76);!i&&t.ii(n,i=lrt(this,e)),i.Wb(r)},Q.Ak=function(e,t,n){var r,i=t.hi(n);return i??t.ii(n,i=lrt(this,e)),P(i,76)?I(i,76):(r=I(t.hi(n),15),new qte(r))},Q.Bk=function(e,t,n){var r=I(t.hi(n),76);!r&&t.ii(n,r=lrt(this,e)),r.Dk()},Q.b=0,Q.e=0,z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateMany`,89),q(496,1,{}),Q.wk=function(e,t,n,r,i){throw O(new Qg)},Q.xk=function(e,t,n,r,i){throw O(new Qg)},Q.Ak=function(e,t,n){return new ebe(this,e,t,n)};var g9;z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,496),q(1318,1,ipt,ebe),Q.Ck=function(e){return this.a.vk(this.c,this.d,this.b,e,!0)},Q.Nj=function(){return this.a.yk(this.c,this.d,this.b)},Q.Wb=function(e){this.a.zk(this.c,this.d,this.b,e)},Q.Dk=function(){this.a.Bk(this.c,this.d,this.b)},Q.b=0,z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1318),q(767,496,{},Txe),Q.vk=function(e,t,n,r,i){return s3e(e,e.Lh(),e.Bh())==this.b?this.$k()&&r?RZe(e):e.Lh():null},Q.wk=function(e,t,n,r,i){var a,o;return e.Lh()&&(i=(a=e.Bh(),a>=0?e.wh(i):e.Lh().Ph(e,-1-a,null,i))),o=gH(e.zh(),this.e),e.yh(r,o,i)},Q.xk=function(e,t,n,r,i){var a=gH(e.zh(),this.e);return e.yh(null,a,i)},Q.yk=function(e,t,n){var r=gH(e.zh(),this.e);return!!e.Lh()&&e.Bh()==r},Q.zk=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!Z6e(this.a,r))throw O(new Y_(hpt+(P(r,57)?XWe(I(r,57).zh()):uje(Rz(r)))+gpt+this.a+`'`));if(i=e.Lh(),o=gH(e.zh(),this.e),N(r)!==N(i)||e.Bh()!=o&&r!=null){if(JU(e,I(r,57)))throw O(new X_(IZ+e.Ib()));c=null,i&&(c=(a=e.Bh(),a>=0?e.wh(c):e.Lh().Ph(e,-1-a,null,c))),s=I(r,52),s&&(c=s.Nh(e,gH(s.zh(),this.b),null,c)),c=e.yh(s,o,c),c&&c.lj()}else e.rh()&&e.sh()&&pR(e,new Hk(e,1,o,r,r))},Q.Bk=function(e,t,n){var r=e.Lh(),i,a,o;r?(o=(i=e.Bh(),i>=0?e.wh(null):e.Lh().Ph(e,-1-i,null,null)),a=gH(e.zh(),this.e),o=e.yh(null,a,o),o&&o.lj()):e.rh()&&e.sh()&&pR(e,new Uk(e,1,this.e,null,null))},Q.$k=function(){return!1},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,767),q(1302,767,{},Ume),Q.$k=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1302),q(558,496,{}),Q.vk=function(e,t,n,r,i){var a;return a=t.hi(n),a==null?this.b:N(a)===N(g9)?null:a},Q.yk=function(e,t,n){var r=t.hi(n);return r!=null&&(N(r)===N(g9)||!LB(r,this.b))},Q.zk=function(e,t,n,r){var i,a;e.rh()&&e.sh()?(i=(a=t.hi(n),a==null?this.b:N(a)===N(g9)?null:a),r==null?this.c==null?this.b==null?t.ii(n,null):t.ii(n,g9):(t.ii(n,null),r=this.b):(this.yl(r),t.ii(n,r)),pR(e,this.d.zl(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.ii(n,null):t.ii(n,g9):t.ii(n,null):(this.yl(r),t.ii(n,r))},Q.Bk=function(e,t,n){var r,i;e.rh()&&e.sh()?(r=(i=t.hi(n),i==null?this.b:N(i)===N(g9)?null:i),t.ji(n),pR(e,this.d.zl(e,1,this.e,r,this.b))):t.ji(n)},Q.yl=function(e){throw O(new yne)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,558),q(CQ,1,{},_l),Q.zl=function(e,t,n,r,i){return new Uk(e,t,n,r,i)},Q.Al=function(e,t,n,r,i,a){return new Uj(e,t,n,r,i,a)};var VRt,HRt,URt,WRt,GRt,KRt,qRt,JRt,YRt;z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,CQ),q(1319,CQ,{},vl),Q.zl=function(e,t,n,r,i){return new cDe(e,t,n,W_(FE(r)),W_(FE(i)))},Q.Al=function(e,t,n,r,i,a){return new ewe(e,t,n,W_(FE(r)),W_(FE(i)),a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1319),q(1320,CQ,{},yl),Q.zl=function(e,t,n,r,i){return new Jje(e,t,n,I(r,220).a,I(i,220).a)},Q.Al=function(e,t,n,r,i,a){return new qCe(e,t,n,I(r,220).a,I(i,220).a,a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1320),q(1321,CQ,{},bl),Q.zl=function(e,t,n,r,i){return new Yje(e,t,n,I(r,179).a,I(i,179).a)},Q.Al=function(e,t,n,r,i,a){return new JCe(e,t,n,I(r,179).a,I(i,179).a,a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1321),q(1322,CQ,{},xl),Q.zl=function(e,t,n,r,i){return new lDe(e,t,n,A(F(r)),A(F(i)))},Q.Al=function(e,t,n,r,i,a){return new YCe(e,t,n,A(F(r)),A(F(i)),a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1322),q(1323,CQ,{},Sl),Q.zl=function(e,t,n,r,i){return new Qje(e,t,n,I(r,160).a,I(i,160).a)},Q.Al=function(e,t,n,r,i,a){return new XCe(e,t,n,I(r,160).a,I(i,160).a,a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1323),q(1324,CQ,{},Cl),Q.zl=function(e,t,n,r,i){return new uDe(e,t,n,I(r,17).a,I(i,17).a)},Q.Al=function(e,t,n,r,i,a){return new ZCe(e,t,n,I(r,17).a,I(i,17).a,a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1324),q(1325,CQ,{},wl),Q.zl=function(e,t,n,r,i){return new Xje(e,t,n,I(r,190).a,I(i,190).a)},Q.Al=function(e,t,n,r,i,a){return new QCe(e,t,n,I(r,190).a,I(i,190).a,a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1325),q(1326,CQ,{},Tl),Q.zl=function(e,t,n,r,i){return new Zje(e,t,n,I(r,191).a,I(i,191).a)},Q.Al=function(e,t,n,r,i,a){return new $Ce(e,t,n,I(r,191).a,I(i,191).a,a)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1326),q(1304,558,{},tbe),Q.yl=function(e){if(!this.a.ck(e))throw O(new Y_(hpt+Rz(e)+gpt+this.a+`'`))},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1304),q(1305,558,{},Gge),Q.yl=function(e){},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1305),q(768,558,{}),Q.yk=function(e,t,n){return t.hi(n)!=null},Q.zk=function(e,t,n,r){var i,a;e.rh()&&e.sh()?(i=!0,a=t.hi(n),a==null?(i=!1,a=this.b):N(a)===N(g9)&&(a=null),r==null?this.c==null?t.ii(n,g9):(t.ii(n,null),r=this.b):(this.yl(r),t.ii(n,r)),pR(e,this.d.Al(e,1,this.e,a,r,!i))):r==null?this.c==null?t.ii(n,g9):t.ii(n,null):(this.yl(r),t.ii(n,r))},Q.Bk=function(e,t,n){var r,i;e.rh()&&e.sh()?(r=!0,i=t.hi(n),i==null?(r=!1,i=this.b):N(i)===N(g9)&&(i=null),t.ji(n),pR(e,this.d.Al(e,2,this.e,i,this.b,r))):t.ji(n)},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,768),q(1306,768,{},nbe),Q.yl=function(e){if(!this.a.ck(e))throw O(new Y_(hpt+Rz(e)+gpt+this.a+`'`))},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1306),q(1307,768,{},Kge),Q.yl=function(e){},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1307),q(400,496,{},lk),Q.vk=function(e,t,n,r,i){var a,o,s,c,l=t.hi(n);if(this.qk()&&N(l)===N(g9))return null;if(this.$k()&&r&&l!=null){if(s=I(l,52),s.Rh()&&(c=xB(e,s),s!=c)){if(!Z6e(this.a,c))throw O(new Y_(hpt+Rz(c)+gpt+this.a+`'`));t.ii(n,l=c),this.Zk()&&(a=I(c,52),o=s.Ph(e,this.b?gH(s.zh(),this.b):-1-gH(e.zh(),this.e),null,null),!a.Lh()&&(o=a.Nh(e,this.b?gH(a.zh(),this.b):-1-gH(e.zh(),this.e),null,o)),o&&o.lj()),e.rh()&&e.sh()&&pR(e,new Uk(e,9,this.e,s,c))}return l}else return l},Q.wk=function(e,t,n,r,i){var a,o=t.hi(n);return N(o)===N(g9)&&(o=null),t.ii(n,r),this.Jj()?N(o)!==N(r)&&o!=null&&(a=I(o,52),i=a.Ph(e,gH(a.zh(),this.b),null,i)):this.Zk()&&o!=null&&(i=I(o,52).Ph(e,-1-gH(e.zh(),this.e),null,i)),e.rh()&&e.sh()&&(!i&&(i=new ny(4)),i.kj(new Uk(e,1,this.e,o,r))),i},Q.xk=function(e,t,n,r,i){var a=t.hi(n);return N(a)===N(g9)&&(a=null),t.ji(n),e.rh()&&e.sh()&&(!i&&(i=new ny(4)),this.qk()?i.kj(new Uk(e,2,this.e,a,null)):i.kj(new Uk(e,1,this.e,a,null))),i},Q.yk=function(e,t,n){return t.hi(n)!=null},Q.zk=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!Z6e(this.a,r))throw O(new Y_(hpt+(P(r,57)?XWe(I(r,57).zh()):uje(Rz(r)))+gpt+this.a+`'`));c=t.hi(n),s=c!=null,this.qk()&&N(c)===N(g9)&&(c=null),o=null,this.Jj()?N(c)!==N(r)&&(c!=null&&(i=I(c,52),o=i.Ph(e,gH(i.zh(),this.b),null,o)),r!=null&&(i=I(r,52),o=i.Nh(e,gH(i.zh(),this.b),null,o))):this.Zk()&&N(c)!==N(r)&&(c!=null&&(o=I(c,52).Ph(e,-1-gH(e.zh(),this.e),null,o)),r!=null&&(o=I(r,52).Nh(e,-1-gH(e.zh(),this.e),null,o))),r==null&&this.qk()?t.ii(n,g9):t.ii(n,r),e.rh()&&e.sh()?(a=new Uj(e,1,this.e,c,r,this.qk()&&!s),o?(o.kj(a),o.lj()):pR(e,a)):o&&o.lj()},Q.Bk=function(e,t,n){var r,i,a,o,s=t.hi(n);o=s!=null,this.qk()&&N(s)===N(g9)&&(s=null),a=null,s!=null&&(this.Jj()?(r=I(s,52),a=r.Ph(e,gH(r.zh(),this.b),null,a)):this.Zk()&&(a=I(s,52).Ph(e,-1-gH(e.zh(),this.e),null,a))),t.ji(n),e.rh()&&e.sh()?(i=new Uj(e,this.qk()?2:1,this.e,s,null,o),a?(a.kj(i),a.lj()):pR(e,i)):a&&a.lj()},Q.Jj=function(){return!1},Q.Zk=function(){return!1},Q.$k=function(){return!1},Q.qk=function(){return!1},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,400),q(559,400,{},OE),Q.Zk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,559),q(1310,559,{},que),Q.$k=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1310),q(770,559,{},kE),Q.qk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,770),q(1312,770,{},AE),Q.$k=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1312),q(635,559,{},Wme),Q.Jj=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,635),q(1311,635,{},pO),Q.$k=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1311),q(771,635,{},Kme),Q.qk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,771),q(1313,771,{},qme),Q.$k=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1313),q(636,400,{},jE),Q.$k=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,636),q(1314,636,{},Jue),Q.qk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1314),q(772,636,{},Gme),Q.Jj=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,772),q(1315,772,{},Jme),Q.qk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1315),q(1308,400,{},Yue),Q.qk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1308),q(769,400,{},mO),Q.Jj=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,769),q(1309,769,{},Yme),Q.qk=function(){return!0},z(PZ,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1309),q(773,560,mpt,Bve),Q.vl=function(e){return new Bve(this.a,this.c,e)},Q.kd=function(){return this.b},Q.wl=function(e,t,n){return OOe(this,e,this.b,n)},Q.xl=function(e,t,n){return kOe(this,e,this.b,n)},z(PZ,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,773),q(1316,1,ipt,qte),Q.Ck=function(e){return this.a},Q.Nj=function(){return P(this.a,96)?I(this.a,96).Nj():!this.a.dc()},Q.Wb=function(e){this.a.$b(),this.a.Fc(I(e,15))},Q.Dk=function(){P(this.a,96)?I(this.a,96).Dk():this.a.$b()},z(PZ,`EStructuralFeatureImpl/SettingMany`,1316),q(1317,560,mpt,pEe),Q.ul=function(e){return new ZE((KK(),j9),this.b.ni(this.a,e))},Q.kd=function(){return null},Q.wl=function(e,t,n){return n},Q.xl=function(e,t,n){return n},z(PZ,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1317),q(637,560,mpt,ZE),Q.ul=function(e){return new ZE(this.c,e)},Q.kd=function(){return this.a},Q.wl=function(e,t,n){return n},Q.xl=function(e,t,n){return n},z(PZ,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,637),q(394,490,$Z,El),Q.Zi=function(e){return H(H7,Sq,29,e,0,1)},Q.Vi=function(){return!1},z(PZ,`ESuperAdapter/1`,394),q(443,436,{109:1,93:1,92:1,154:1,197:1,57:1,113:1,831:1,52:1,98:1,157:1,443:1,117:1,118:1},Dl),Q.Hh=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new uk(this,W7,this)),this.a}return eF(this,e-DA((fq(),f9)),GF((r=I(vR(this,16),29),r||f9),e),t,n)},Q.Qh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new L(L7,this,0,3)),bU(this.Ab,e,n);case 2:return!this.a&&(this.a=new uk(this,W7,this)),bU(this.a,e,n)}return i=I(GF((r=I(vR(this,16),29),r||(fq(),f9)),t),69),i.tk().xk(this,QH(this),t-DA((fq(),f9)),e,n)},Q.Sh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return ON(this,e-DA((fq(),f9)),GF((t=I(vR(this,16),29),t||f9),e))},Q.Zh=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab),!this.Ab&&(this.Ab=new L(L7,this,0,3)),wA(this.Ab,I(t,16));return;case 1:DL(this,IE(t));return;case 2:!this.a&&(this.a=new uk(this,W7,this)),HK(this.a),!this.a&&(this.a=new uk(this,W7,this)),wA(this.a,I(t,16));return}NV(this,e-DA((fq(),f9)),GF((n=I(vR(this,16),29),n||f9),e),t)},Q.ei=function(){return fq(),f9},Q.gi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new L(L7,this,0,3)),HK(this.Ab);return;case 1:DL(this,null);return;case 2:!this.a&&(this.a=new uk(this,W7,this)),HK(this.a);return}HB(this,e-DA((fq(),f9)),GF((t=I(vR(this,16),29),t||f9),e))},z(PZ,`ETypeParameterImpl`,443),q(444,81,yQ,uk),Q.Kj=function(e,t){return cKe(this,I(e,87),t)},Q.Lj=function(e,t){return lKe(this,I(e,87),t)},z(PZ,`ETypeParameterImpl/1`,444),q(634,45,jJ,b_),Q.ec=function(){return new jg(this)},z(PZ,`ETypeParameterImpl/2`,634),q(555,Mq,Nq,jg),Q.Ec=function(e){return ife(this,I(e,87))},Q.Fc=function(e){var t,n,r=!1;for(n=e.Jc();n.Ob();)t=I(n.Pb(),87),tj(this.a,t,``)??(r=!0);return r},Q.$b=function(){Jk(this.a)},Q.Gc=function(e){return nA(this.a,e)},Q.Jc=function(){var e;return e=new lR(new fm(this.a).a),new Mg(e)},Q.Kc=function(e){return VDe(this,e)},Q.gc=function(){return sb(this.a)},z(PZ,`ETypeParameterImpl/2/1`,555),q(556,1,Oq,Mg),Q.Nb=function(e){Zk(this,e)},Q.Pb=function(){return I(uL(this.a).jd(),87)},Q.Ob=function(){return this.a.b},Q.Qb=function(){tAe(this.a)},z(PZ,`ETypeParameterImpl/2/1/1`,556),q(1278,45,jJ,gre),Q._b=function(e){return mC(e)?Bj(this,e):!!_k(this.f,e)},Q.xc=function(e){var t=mC(e)?aM(this,e):dC(_k(this.f,e)),n;return P(t,832)?(n=I(t,832),t=n.Hk(),tj(this,I(e,240),t),t):t??(e==null?(Yb(),azt):null)},z(PZ,`EValidatorRegistryImpl`,1278),q(1300,707,{109:1,93:1,92:1,466:1,154:1,57:1,113:1,1989:1,52:1,98:1,157:1,117:1,118:1},Ol),Q.ni=function(e,t){switch(e.ek()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:UV(t);case 25:return Cje(t);case 27:return yke(t);case 28:return bke(t);case 29:return t==null?null:ble(k7[0],I(t,205));case 41:return t==null?``:sy(I(t,296));case 42:return UV(t);case 50:return IE(t);default:throw O(new X_(LZ+e.ve()+RZ))}},Q.oi=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;switch(e.G==-1&&(e.G=(f=aI(e),f?wU(f.ri(),e):-1)),e.G){case 0:return n=new S_,n;case 1:return t=new sl,t;case 2:return r=new xf,r;case 4:return i=new Gg,i;case 5:return a=new bre,a;case 6:return o=new _ne,o;case 7:return s=new bf,s;case 10:return l=new al,l;case 11:return u=new C_,u;case 12:return d=new Tbe,d;case 13:return p=new w_,p;case 14:return m=new zE,m;case 17:return h=new gl,h;case 18:return c=new Vg,c;case 19:return g=new Dl,g;default:throw O(new X_(Edt+e.zb+RZ))}},Q.pi=function(e,t){switch(e.ek()){case 20:return t==null?null:new lae(t);case 21:return t==null?null:new nw(t);case 23:case 22:return t==null?null:ZRe(t);case 26:case 24:return t==null?null:wF(pK(t,-128,127)<<24>>24);case 25:return VQe(t);case 27:return OHe(t);case 28:return kHe(t);case 29:return WKe(t);case 32:case 31:return t==null?null:kW(t);case 38:case 37:return t==null?null:new __(t);case 40:case 39:return t==null?null:kB(pK(t,nJ,_q));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:nU(Ntt(t));case 49:case 48:return t==null?null:AB(pK(t,_pt,32767)<<16>>16);case 50:return t;default:throw O(new X_(LZ+e.ve()+RZ))}},z(PZ,`EcoreFactoryImpl`,1300),q(546,184,{109:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,1987:1,52:1,98:1,157:1,184:1,546:1,117:1,118:1,677:1},gye),Q.gb=!1,Q.hb=!1;var XRt,ZRt=!1;z(PZ,`EcorePackageImpl`,546),q(1196,1,{832:1},kl),Q.Hk=function(){return eue(),ozt},z(PZ,`EcorePackageImpl/1`,1196),q(1205,1,OQ,Al),Q.ck=function(e){return P(e,154)},Q.dk=function(e){return H(x7,Sq,154,e,0,1)},z(PZ,`EcorePackageImpl/10`,1205),q(1206,1,OQ,jl),Q.ck=function(e){return P(e,197)},Q.dk=function(e){return H(xLt,Sq,197,e,0,1)},z(PZ,`EcorePackageImpl/11`,1206),q(1207,1,OQ,Ml),Q.ck=function(e){return P(e,57)},Q.dk=function(e){return H(p7,Sq,57,e,0,1)},z(PZ,`EcorePackageImpl/12`,1207),q(1208,1,OQ,Nl),Q.ck=function(e){return P(e,401)},Q.dk=function(e){return H(G7,cpt,62,e,0,1)},z(PZ,`EcorePackageImpl/13`,1208),q(1209,1,OQ,Pl),Q.ck=function(e){return P(e,240)},Q.dk=function(e){return H(C7,Sq,240,e,0,1)},z(PZ,`EcorePackageImpl/14`,1209),q(1210,1,OQ,Fl),Q.ck=function(e){return P(e,502)},Q.dk=function(e){return H(q7,Sq,2065,e,0,1)},z(PZ,`EcorePackageImpl/15`,1210),q(1211,1,OQ,Il),Q.ck=function(e){return P(e,102)},Q.dk=function(e){return H(J7,vQ,19,e,0,1)},z(PZ,`EcorePackageImpl/16`,1211),q(1212,1,OQ,Ll),Q.ck=function(e){return P(e,178)},Q.dk=function(e){return H(z7,vQ,178,e,0,1)},z(PZ,`EcorePackageImpl/17`,1212),q(1213,1,OQ,Rl),Q.ck=function(e){return P(e,467)},Q.dk=function(e){return H(R7,Sq,467,e,0,1)},z(PZ,`EcorePackageImpl/18`,1213),q(1214,1,OQ,zl),Q.ck=function(e){return P(e,547)},Q.dk=function(e){return H(h9,Wft,547,e,0,1)},z(PZ,`EcorePackageImpl/19`,1214),q(1197,1,OQ,Bl),Q.ck=function(e){return P(e,332)},Q.dk=function(e){return H(B7,vQ,35,e,0,1)},z(PZ,`EcorePackageImpl/2`,1197),q(1215,1,OQ,Vl),Q.ck=function(e){return P(e,246)},Q.dk=function(e){return H(W7,upt,87,e,0,1)},z(PZ,`EcorePackageImpl/20`,1215),q(1216,1,OQ,Hl),Q.ck=function(e){return P(e,443)},Q.dk=function(e){return H(Y7,Sq,831,e,0,1)},z(PZ,`EcorePackageImpl/21`,1216),q(1217,1,OQ,Ul),Q.ck=function(e){return fC(e)},Q.dk=function(e){return H(e$,X,471,e,8,1)},z(PZ,`EcorePackageImpl/22`,1217),q(1218,1,OQ,Wl),Q.ck=function(e){return P(e,195)},Q.dk=function(e){return H(X9,X,195,e,0,2)},z(PZ,`EcorePackageImpl/23`,1218),q(1219,1,OQ,Gl),Q.ck=function(e){return P(e,220)},Q.dk=function(e){return H(t$,X,220,e,0,1)},z(PZ,`EcorePackageImpl/24`,1219),q(1220,1,OQ,Kl),Q.ck=function(e){return P(e,179)},Q.dk=function(e){return H(n$,X,179,e,0,1)},z(PZ,`EcorePackageImpl/25`,1220),q(1221,1,OQ,ql),Q.ck=function(e){return P(e,205)},Q.dk=function(e){return H(cht,X,205,e,0,1)},z(PZ,`EcorePackageImpl/26`,1221),q(1222,1,OQ,Jl),Q.ck=function(e){return!1},Q.dk=function(e){return H(rBt,Sq,2161,e,0,1)},z(PZ,`EcorePackageImpl/27`,1222),q(1223,1,OQ,Yl),Q.ck=function(e){return pC(e)},Q.dk=function(e){return H(r$,X,343,e,7,1)},z(PZ,`EcorePackageImpl/28`,1223),q(1224,1,OQ,Xl),Q.ck=function(e){return P(e,61)},Q.dk=function(e){return H(JLt,tY,61,e,0,1)},z(PZ,`EcorePackageImpl/29`,1224),q(1198,1,OQ,Zl),Q.ck=function(e){return P(e,503)},Q.dk=function(e){return H(L7,{3:1,4:1,5:1,1982:1},584,e,0,1)},z(PZ,`EcorePackageImpl/3`,1198),q(1225,1,OQ,Ql),Q.ck=function(e){return P(e,566)},Q.dk=function(e){return H(nRt,Sq,1988,e,0,1)},z(PZ,`EcorePackageImpl/30`,1225),q(1226,1,OQ,$l),Q.ck=function(e){return P(e,159)},Q.dk=function(e){return H(izt,tY,159,e,0,1)},z(PZ,`EcorePackageImpl/31`,1226),q(1227,1,OQ,eu),Q.ck=function(e){return P(e,74)},Q.dk=function(e){return H(MRt,Dpt,74,e,0,1)},z(PZ,`EcorePackageImpl/32`,1227),q(1228,1,OQ,tu),Q.ck=function(e){return P(e,160)},Q.dk=function(e){return H(i$,X,160,e,0,1)},z(PZ,`EcorePackageImpl/33`,1228),q(1229,1,OQ,nu),Q.ck=function(e){return P(e,17)},Q.dk=function(e){return H(a$,X,17,e,0,1)},z(PZ,`EcorePackageImpl/34`,1229),q(1230,1,OQ,ru),Q.ck=function(e){return P(e,296)},Q.dk=function(e){return H(Lmt,Sq,296,e,0,1)},z(PZ,`EcorePackageImpl/35`,1230),q(1231,1,OQ,iu),Q.ck=function(e){return P(e,190)},Q.dk=function(e){return H(o$,X,190,e,0,1)},z(PZ,`EcorePackageImpl/36`,1231),q(1232,1,OQ,au),Q.ck=function(e){return P(e,91)},Q.dk=function(e){return H(Bmt,Sq,91,e,0,1)},z(PZ,`EcorePackageImpl/37`,1232),q(1233,1,OQ,ou),Q.ck=function(e){return P(e,585)},Q.dk=function(e){return H(QRt,Sq,585,e,0,1)},z(PZ,`EcorePackageImpl/38`,1233),q(1234,1,OQ,su),Q.ck=function(e){return!1},Q.dk=function(e){return H(iBt,Sq,2162,e,0,1)},z(PZ,`EcorePackageImpl/39`,1234),q(1199,1,OQ,cu),Q.ck=function(e){return P(e,88)},Q.dk=function(e){return H(H7,Sq,29,e,0,1)},z(PZ,`EcorePackageImpl/4`,1199),q(1235,1,OQ,lu),Q.ck=function(e){return P(e,191)},Q.dk=function(e){return H(s$,X,191,e,0,1)},z(PZ,`EcorePackageImpl/40`,1235),q(1236,1,OQ,uu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(PZ,`EcorePackageImpl/41`,1236),q(1237,1,OQ,du),Q.ck=function(e){return P(e,582)},Q.dk=function(e){return H(XLt,Sq,582,e,0,1)},z(PZ,`EcorePackageImpl/42`,1237),q(1238,1,OQ,fu),Q.ck=function(e){return!1},Q.dk=function(e){return H(aBt,X,2163,e,0,1)},z(PZ,`EcorePackageImpl/43`,1238),q(1239,1,OQ,pu),Q.ck=function(e){return P(e,43)},Q.dk=function(e){return H(JQ,Hq,43,e,0,1)},z(PZ,`EcorePackageImpl/44`,1239),q(1200,1,OQ,mu),Q.ck=function(e){return P(e,141)},Q.dk=function(e){return H(V7,Sq,141,e,0,1)},z(PZ,`EcorePackageImpl/5`,1200),q(1201,1,OQ,hu),Q.ck=function(e){return P(e,155)},Q.dk=function(e){return H(vRt,Sq,155,e,0,1)},z(PZ,`EcorePackageImpl/6`,1201),q(1202,1,OQ,gu),Q.ck=function(e){return P(e,456)},Q.dk=function(e){return H(bRt,Sq,672,e,0,1)},z(PZ,`EcorePackageImpl/7`,1202),q(1203,1,OQ,_u),Q.ck=function(e){return P(e,566)},Q.dk=function(e){return H(U7,Sq,681,e,0,1)},z(PZ,`EcorePackageImpl/8`,1203),q(1204,1,OQ,vu),Q.ck=function(e){return P(e,466)},Q.dk=function(e){return H(S7,Sq,466,e,0,1)},z(PZ,`EcorePackageImpl/9`,1204),q(1016,2029,Hft,qre),Q.Ji=function(e,t){JIe(this,I(t,412))},Q.Ni=function(e,t){iYe(this,e,I(t,412))},z(PZ,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1016),q(1017,150,oQ,zve),Q.gj=function(){return this.a.a},z(PZ,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1017),q(1044,1043,{},tle),z(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1044);var QRt=KO(Opt,`Resource`);q(782,1477,kpt),Q.El=function(e){},Q.Fl=function(e){},Q.Bl=function(){return!this.a&&(this.a=new Pg(this)),this.a},Q.Cl=function(e){var t,n,r=e.length,i,a;if(r>0)if(UM(0,e.length),e.charCodeAt(0)==47){for(a=new HP(4),i=1,t=1;t<r;++t)UM(t,e.length),e.charCodeAt(t)==47&&(rT(a,i==t?``:(BP(i,t,e.length),e.substr(i,t-i))),i=t+1);return rT(a,(UM(i,e.length+1),e.substr(i))),tWe(this,a)}else UM(r-1,e.length),e.charCodeAt(r-1)==63&&(n=ND(e,yW(63),r-2),n>0&&(e=(BP(0,n,e.length),e.substr(0,n))));return _Xe(this,e)},Q.Dl=function(){return this.c},Q.Ib=function(){var e;return sy(this.Om)+`@`+(e=TL(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},Q.b=!1,z(Apt,`ResourceImpl`,782),q(1478,782,kpt,Xte),z(Apt,`BinaryResourceImpl`,1478),q(1156,694,rft),Q.$i=function(e){return P(e,57)?Xbe(this,I(e,57)):P(e,585)?new oT(I(e,585).Bl()):N(e)===N(this.f)?I(e,16).Jc():(UE(),P7.a)},Q.Ob=function(){return tZe(this)},Q.a=!1,z(lQ,`EcoreUtil/ContentTreeIterator`,1156),q(1479,1156,rft,j_e),Q.$i=function(e){return N(e)===N(this.f)?I(e,15).Jc():new Uwe(I(e,57))},z(Apt,`ResourceImpl/5`,1479),q(644,2041,lpt,Pg),Q.Gc=function(e){return this.i<=4?tW(this,e):P(e,52)&&I(e,52).Fh()==this.a},Q.Ji=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},Q.Li=function(e,t){e==0?this.a.b||(this.a.b=!0):FP(this,e,t)},Q.Ni=function(e,t){},Q.Oi=function(e,t,n){},Q.Ij=function(){return 2},Q.gj=function(){return this.a},Q.Jj=function(){return!0},Q.Kj=function(e,t){return t=I(e,52).bi(this.a,t),t},Q.Lj=function(e,t){return I(e,52).bi(null,t)},Q.Mj=function(){return!1},Q.Pi=function(){return!0},Q.Zi=function(e){return H(p7,Sq,57,e,0,1)},Q.Vi=function(){return!1},z(Apt,`ResourceImpl/ContentsEList`,644),q(950,2011,Qq,Zte),Q.dd=function(e){return this.a.Hi(e)},Q.gc=function(){return this.a.gc()},z(lQ,`AbstractSequentialInternalEList/1`,950);var $Rt,ezt,_9,tzt;q(622,1,{},Ihe);var nzt,rzt;z(lQ,`BasicExtendedMetaData`,622),q(1147,1,{},Jse),Q.Gl=function(){return null},Q.Hl=function(){return this.a==-2&&qp(this,jKe(this.d,this.b)),this.a},Q.Il=function(){return null},Q.Jl=function(){return Ij(),Ij(),h$},Q.ve=function(){return this.c==PQ&&Yp(this,vze(this.d,this.b)),this.c},Q.Kl=function(){return 0},Q.a=-2,Q.c=PQ,z(lQ,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1147),q(1148,1,{},nwe),Q.Gl=function(){return this.a==(xP(),nzt)&&Jp(this,h4e(this.f,this.b)),this.a},Q.Hl=function(){return 0},Q.Il=function(){return this.c==(xP(),nzt)&&Xp(this,g4e(this.f,this.b)),this.c},Q.Jl=function(){return!this.d&&Zp(this,b8e(this.f,this.b)),this.d},Q.ve=function(){return this.e==PQ&&Qp(this,vze(this.f,this.b)),this.e},Q.Kl=function(){return this.g==-2&&$p(this,AGe(this.f,this.b)),this.g},Q.e=PQ,Q.g=-2,z(lQ,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1148),q(1146,1,{},Yse),Q.b=!1,Q.c=!1,z(lQ,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1146),q(1149,1,{},rwe),Q.c=-2,Q.e=PQ,Q.f=PQ,z(lQ,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1149),q(578,620,yQ,AO),Q.Ij=function(){return this.c},Q.ll=function(){return!1},Q.Ti=function(e,t){return t},Q.c=0,z(lQ,`EDataTypeEList`,578);var izt=KO(lQ,`FeatureMap`);q(75,578,{3:1,4:1,20:1,31:1,55:1,16:1,15:1,59:1,70:1,66:1,61:1,76:1,159:1,219:1,1985:1,71:1,96:1},uR),Q._c=function(e,t){w1e(this,e,I(t,74))},Q.Ec=function(e){return E$e(this,I(e,74))},Q.Ei=function(e){pve(this,I(e,74))},Q.Kj=function(e,t){return xfe(this,I(e,74),t)},Q.Lj=function(e,t){return BD(this,I(e,74),t)},Q.Qi=function(e,t){return H3e(this,e,t)},Q.Ti=function(e,t){return _9e(this,e,I(t,74))},Q.fd=function(e,t){return D0e(this,e,I(t,74))},Q.Rj=function(e,t){return Sfe(this,I(e,74),t)},Q.Sj=function(e,t){return Cfe(this,I(e,74),t)},Q.Tj=function(e,t,n){return nGe(this,I(e,74),I(t,74),n)},Q.Wi=function(e,t){return UGe(this,e,I(t,74))},Q.Ll=function(e,t){return y3e(this,e,t)},Q.ad=function(e,t){var n,r,i,a,o,s,c,l=new XF(t.gc()),u;for(i=t.Jc();i.Ob();)if(r=I(i.Pb(),74),a=r.Ik(),UG(this.e,a))(!a.Pi()||!jN(this,a,r.kd())&&!tW(l,r))&&JP(l,r);else{for(u=BG(this.e.zh(),a),n=I(this.g,122),o=!0,s=0;s<this.i;++s)if(c=n[s],u.Zl(c.Ik())){I(CU(this,s,r),74),o=!1;break}o&&JP(l,r)}return WPe(this,e,l)},Q.Fc=function(e){var t,n,r,i,a,o,s,c=new XF(e.gc()),l;for(r=e.Jc();r.Ob();)if(n=I(r.Pb(),74),i=n.Ik(),UG(this.e,i))(!i.Pi()||!jN(this,i,n.kd())&&!tW(c,n))&&JP(c,n);else{for(l=BG(this.e.zh(),i),t=I(this.g,122),a=!0,o=0;o<this.i;++o)if(s=t[o],l.Zl(s.Ik())){I(CU(this,o,n),74),a=!1;break}a&&JP(c,n)}return wA(this,c)},Q.Ci=function(e){return this.j=-1,s8e(this,this.i,e)},Q.Ml=function(e,t,n){return x4e(this,e,t,n)},Q.Uk=function(e,t){return lK(this,e,t)},Q.Nl=function(e,t,n){return p5e(this,e,t,n)},Q.Ol=function(){return this},Q.Pl=function(e,t){return IK(this,e,t)},Q.Ql=function(e){return I(U(this,e),74).Ik()},Q.Rl=function(e){return I(U(this,e),74).kd()},Q.Sl=function(){return this.b},Q.Jj=function(){return!0},Q.Qj=function(){return!0},Q.Tl=function(e){return!_H(this,e)},Q.Zi=function(e){return H(BRt,Dpt,341,e,0,1)},Q.ml=function(e){return NE(this,e)},Q.Wb=function(e){mA(this,e)},Q.Ul=function(e,t){R5e(this,e,t)},Q.Vl=function(e){return FMe(this,e)},Q.Wl=function(e){$Ve(this,e)},z(lQ,`BasicFeatureMap`,75),q(1909,1,Pq),Q.Nb=function(e){Zk(this,e)},Q.Rb=function(e){if(this.g==-1)throw O(new Xg);kk(this);try{I0e(this.e,this.b,this.a,e),this.d=this.e.j,IBe(this)}catch(e){throw e=GR(e),P(e,97)?O(new $g):O(e)}},Q.Ob=function(){return $z(this)},Q.Sb=function(){return eB(this)},Q.Pb=function(){return IBe(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(eB(this))return kk(this),this.g=--this.a,this.rl()&&(e=eG(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw O(new e_)},Q.Vb=function(){return this.a-1},Q.Qb=function(){if(this.g==-1)throw O(new Xg);kk(this);try{vJe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=GR(e),P(e,97)?O(new $g):O(e)}},Q.rl=function(){return!1},Q.Wb=function(e){if(this.g==-1)throw O(new Xg);kk(this);try{E8e(this.e,this.b,this.g,e),this.d=this.e.j}catch(e){throw e=GR(e),P(e,97)?O(new $g):O(e)}},Q.a=0,Q.c=0,Q.d=0,Q.f=!1,Q.g=0,Q.i=0,z(lQ,`FeatureMapUtil/BasicFeatureEIterator`,1909),q(409,1909,Pq,ER),Q.Xl=function(){var e,t,n=this.e.i;for(e=I(this.e.g,122);this.c<n;){if(t=e[this.c],this.k.Zl(t.Ik()))return this.j=this.f?t:t.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},Q.Yl=function(){for(var e=I(this.e.g,122),t;--this.c>=0;)if(t=e[this.c],this.k.Zl(t.Ik()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},z(lQ,`BasicFeatureMap/FeatureEIterator`,409),q(663,409,Pq,Ece),Q.rl=function(){return!0},z(lQ,`BasicFeatureMap/ResolvingFeatureEIterator`,663),q(948,480,fpt,Sle),Q.mj=function(){return this},z(lQ,`EContentsEList/1`,948),q(949,480,fpt,Tce),Q.rl=function(){return!1},z(lQ,`EContentsEList/2`,949),q(947,285,ppt,Cle),Q.tl=function(e){},Q.Ob=function(){return!1},Q.Sb=function(){return!1},z(lQ,`EContentsEList/FeatureIteratorImpl/1`,947),q(821,578,yQ,fT),Q.Ki=function(){this.a=!0},Q.Nj=function(){return this.a},Q.Dk=function(){var e;HK(this),qC(this.e)?(e=this.a,this.a=!1,pR(this.e,new cP(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,z(lQ,`EDataTypeEList/Unsettable`,821),q(1907,578,yQ,Gle),Q.Pi=function(){return!0},z(lQ,`EDataTypeUniqueEList`,1907),q(1908,821,yQ,Kle),Q.Pi=function(){return!0},z(lQ,`EDataTypeUniqueEList/Unsettable`,1908),q(143,81,yQ,lT),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectContainmentEList/Resolving`,143),q(1150,541,yQ,Ule),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectContainmentEList/Unsettable/Resolving`,1150),q(750,14,yQ,TD),Q.Ki=function(){this.a=!0},Q.Nj=function(){return this.a},Q.Dk=function(){var e;HK(this),qC(this.e)?(e=this.a,this.a=!1,pR(this.e,new cP(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,z(lQ,`EObjectContainmentWithInverseEList/Unsettable`,750),q(1184,750,yQ,ED),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1184),q(742,489,yQ,uT),Q.Ki=function(){this.a=!0},Q.Nj=function(){return this.a},Q.Dk=function(){var e;HK(this),qC(this.e)?(e=this.a,this.a=!1,pR(this.e,new cP(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,z(lQ,`EObjectEList/Unsettable`,742),q(336,489,yQ,dT),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectResolvingEList`,336),q(1814,742,yQ,Wle),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectResolvingEList/Unsettable`,1814),q(1480,1,{},yu);var azt;z(lQ,`EObjectValidator`,1480),q(545,489,yQ,$k),Q.fl=function(){return this.d},Q.gl=function(){return this.b},Q.Jj=function(){return!0},Q.jl=function(){return!0},Q.b=0,z(lQ,`EObjectWithInverseEList`,545),q(1187,545,yQ,Jde),Q.il=function(){return!0},z(lQ,`EObjectWithInverseEList/ManyInverse`,1187),q(623,545,yQ,DD),Q.Ki=function(){this.a=!0},Q.Nj=function(){return this.a},Q.Dk=function(){var e;HK(this),qC(this.e)?(e=this.a,this.a=!1,pR(this.e,new cP(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,z(lQ,`EObjectWithInverseEList/Unsettable`,623),q(1186,623,yQ,Yde),Q.il=function(){return!0},z(lQ,`EObjectWithInverseEList/Unsettable/ManyInverse`,1186),q(751,545,yQ,Xde),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectWithInverseResolvingEList`,751),q(33,751,yQ,OD),Q.il=function(){return!0},z(lQ,`EObjectWithInverseResolvingEList/ManyInverse`,33),q(752,623,yQ,kD),Q.kl=function(){return!0},Q.Ti=function(e,t){return lG(this,e,I(t,57))},z(lQ,`EObjectWithInverseResolvingEList/Unsettable`,752),q(1185,752,yQ,Zde),Q.il=function(){return!0},z(lQ,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1185),q(1151,620,yQ),Q.Ii=function(){return(this.b&1792)==0},Q.Ki=function(){this.b|=1},Q.hl=function(){return(this.b&4)!=0},Q.Jj=function(){return(this.b&40)!=0},Q.il=function(){return(this.b&16)!=0},Q.jl=function(){return(this.b&8)!=0},Q.kl=function(){return(this.b&Zq)!=0},Q.Zk=function(){return(this.b&32)!=0},Q.ll=function(){return(this.b&cQ)!=0},Q.ck=function(e){return this.d?ITe(this.d,e):this.Ik().Ek().ck(e)},Q.Nj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},Q.Pi=function(){return(this.b&128)!=0},Q.Dk=function(){var e;HK(this),this.b&2&&(qC(this.e)?(e=(this.b&1)!=0,this.b&=-2,r_(this,new cP(this.e,2,gH(this.e.zh(),this.Ik()),e,!1))):this.b&=-2)},Q.Vi=function(){return(this.b&1536)==0},Q.b=0,z(lQ,`EcoreEList/Generic`,1151),q(1152,1151,yQ,Ube),Q.Ik=function(){return this.a},z(lQ,`EcoreEList/Dynamic`,1152),q(749,66,$Z,Fg),Q.Zi=function(e){return DI(this.a.a,e)},z(lQ,`EcoreEMap/1`,749),q(748,81,yQ,A_e),Q.Ji=function(e,t){QBe(this.b,I(t,135))},Q.Li=function(e,t){WNe(this.b)},Q.Mi=function(e,t,n){var r;++(r=this.b,I(t,135),r).e},Q.Ni=function(e,t){yLe(this.b,I(t,135))},Q.Oi=function(e,t,n){yLe(this.b,I(n,135)),N(n)===N(t)&&I(n,135).yi(ow(I(t,135).jd())),QBe(this.b,I(t,135))},z(lQ,`EcoreEMap/DelegateEObjectContainmentEList`,748),q(1182,140,apt,wMe),z(lQ,`EcoreEMap/Unsettable`,1182),q(1183,748,yQ,Qde),Q.Ki=function(){this.a=!0},Q.Nj=function(){return this.a},Q.Dk=function(){var e;HK(this),qC(this.e)?(e=this.a,this.a=!1,pR(this.e,new cP(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,z(lQ,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1183),q(1155,222,jJ,Nve),Q.a=!1,Q.b=!1,z(lQ,`EcoreUtil/Copier`,1155),q(744,1,Oq,Uwe),Q.Nb=function(e){Zk(this,e)},Q.Ob=function(){return ERe(this)},Q.Pb=function(){var e;return ERe(this),e=this.b,this.b=null,e},Q.Qb=function(){this.a.Qb()},z(lQ,`EcoreUtil/ProperContentIterator`,744),q(1481,1480,{},Cf);var ozt;z(lQ,`EcoreValidator`,1481);var szt;KO(lQ,`FeatureMapUtil/Validator`),q(1255,1,{1990:1},bu),Q.Zl=function(e){return!0},z(lQ,`FeatureMapUtil/1`,1255),q(757,1,{1990:1},itt),Q.Zl=function(e){var t;return this.c==e?!0:(t=FE(PA(this.a,e)),t==null?T4e(this,e)?(xDe(this.a,e,(ST(),$Q)),!0):(xDe(this.a,e,(ST(),QQ)),!1):t==(ST(),$Q))},Q.e=!1;var czt;z(lQ,`FeatureMapUtil/BasicValidator`,757),q(758,45,jJ,Lw),z(lQ,`FeatureMapUtil/BasicValidator/Cache`,758),q(493,55,{20:1,31:1,55:1,16:1,15:1,61:1,76:1,71:1,96:1},sC),Q._c=function(e,t){I0e(this.c,this.b,e,t)},Q.Ec=function(e){return y3e(this.c,this.b,e)},Q.ad=function(e,t){return L5e(this.c,this.b,e,t)},Q.Fc=function(e){return zw(this,e)},Q.Di=function(e,t){rje(this.c,this.b,e,t)},Q.Tk=function(e,t){return x4e(this.c,this.b,e,t)},Q.Xi=function(e){return _5e(this.c,this.b,e,!1)},Q.Fi=function(){return YC(this.c,this.b)},Q.Gi=function(){return Vce(this.c,this.b)},Q.Hi=function(e){return jOe(this.c,this.b,e)},Q.Uk=function(e,t){return kde(this,e,t)},Q.$b=function(){v_(this)},Q.Gc=function(e){return jN(this.c,this.b,e)},Q.Hc=function(e){return xNe(this.c,this.b,e)},Q.Xb=function(e){return _5e(this.c,this.b,e,!0)},Q.Ck=function(e){return this},Q.bd=function(e){return qTe(this.c,this.b,e)},Q.dc=function(){return uC(this)},Q.Nj=function(){return!_H(this.c,this.b)},Q.Jc=function(){return xAe(this.c,this.b)},Q.cd=function(){return SAe(this.c,this.b)},Q.dd=function(e){return DLe(this.c,this.b,e)},Q.Qi=function(e,t){return G6e(this.c,this.b,e,t)},Q.Ri=function(e,t){MOe(this.c,this.b,e,t)},Q.ed=function(e){return vJe(this.c,this.b,e)},Q.Kc=function(e){return f3e(this.c,this.b,e)},Q.fd=function(e,t){return E8e(this.c,this.b,e,t)},Q.Wb=function(e){cG(this.c,this.b),zw(this,I(e,15))},Q.gc=function(){return lV(this.c,this.b)},Q.Nc=function(){return awe(this.c,this.b)},Q.Oc=function(e){return JTe(this.c,this.b,e)},Q.Ib=function(){var e,t=new vv;for(t.a+=`[`,e=YC(this.c,this.b);$z(e);)xC(t,DT(IBe(e))),$z(e)&&(t.a+=xq);return t.a+=`]`,t.a},Q.Dk=function(){cG(this.c,this.b)},z(lQ,`FeatureMapUtil/FeatureEList`,493),q(631,38,oQ,WN),Q.ej=function(e){return WB(this,e)},Q.jj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.gj(),N(a)===N(this.c)&&WB(this,null)==e.ej(null))return this.g=e.fj(),e.dj()==1&&(this.d=1),!0;break;case 3:switch(i=e.dj(),i){case 3:if(a=e.gj(),N(a)===N(this.c)&&WB(this,null)==e.ej(null))return this.d=5,t=new XF(2),JP(t,this.g),JP(t,e.fj()),this.g=t,!0;break}break;case 5:switch(i=e.dj(),i){case 3:if(a=e.gj(),N(a)===N(this.c)&&WB(this,null)==e.ej(null))return n=I(this.g,16),n.Ec(e.fj()),!0;break}break;case 4:switch(i=e.dj(),i){case 3:if(a=e.gj(),N(a)===N(this.c)&&WB(this,null)==e.ej(null))return this.d=1,this.g=e.fj(),!0;break;case 4:if(a=e.gj(),N(a)===N(this.c)&&WB(this,null)==e.ej(null))return this.d=6,s=new XF(2),JP(s,this.n),JP(s,e.hj()),this.n=s,o=W(j(q9,1),lJ,30,15,[this.o,e.ij()]),this.g=o,!0;break}break;case 6:switch(i=e.dj(),i){case 4:if(a=e.gj(),N(a)===N(this.c)&&WB(this,null)==e.ej(null))return n=I(this.n,16),n.Ec(e.hj()),o=I(this.g,54),r=H(q9,lJ,30,o.length+1,15,1),SK(o,0,r,0,o.length),r[o.length]=e.ij(),this.g=r,!0;break}break}return!1},z(lQ,`FeatureMapUtil/FeatureENotificationImpl`,631),q(551,493,{20:1,31:1,55:1,16:1,15:1,61:1,76:1,159:1,219:1,1985:1,71:1,96:1},JO),Q.Ll=function(e,t){return y3e(this.c,e,t)},Q.Ml=function(e,t,n){return x4e(this.c,e,t,n)},Q.Nl=function(e,t,n){return p5e(this.c,e,t,n)},Q.Ol=function(){return this},Q.Pl=function(e,t){return IK(this.c,e,t)},Q.Ql=function(e){return I(_5e(this.c,this.b,e,!1),74).Ik()},Q.Rl=function(e){return I(_5e(this.c,this.b,e,!1),74).kd()},Q.Sl=function(){return this.a},Q.Tl=function(e){return!_H(this.c,e)},Q.Ul=function(e,t){R5e(this.c,e,t)},Q.Vl=function(e){return FMe(this.c,e)},Q.Wl=function(e){$Ve(this.c,e)},z(lQ,`FeatureMapUtil/FeatureFeatureMap`,551),q(1254,1,ipt,qse),Q.Ck=function(e){return _5e(this.b,this.a,-1,e)},Q.Nj=function(){return!_H(this.b,this.a)},Q.Wb=function(e){R5e(this.b,this.a,e)},Q.Dk=function(){cG(this.b,this.a)},z(lQ,`FeatureMapUtil/FeatureValue`,1254);var v9,lzt,uzt,y9,dzt,b9=KO(Bpt,`AnyType`);q(667,63,rJ,dv),z(Bpt,`InvalidDatatypeValueException`,667);var fzt=KO(Bpt,Vpt),x9=KO(Bpt,Hpt),pzt=KO(Bpt,Upt),mzt,S9,hzt,C9,gzt,_zt,vzt,yzt,bzt,xzt,Szt,Czt,wzt,Tzt,Ezt,w9,Dzt,T9,E9,Ozt,D9,O9,k9,kzt,A9,j9;q(825,500,{109:1,93:1,92:1,57:1,52:1,98:1,838:1},xre),Q.Hh=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new uR(this,0)),this.c):(!this.c&&(this.c=new uR(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new uR(this,0)),I(PM(this.c,(KK(),C9)),159)):(!this.c&&(this.c=new uR(this,0)),I(I(PM(this.c,(KK(),C9)),159),219)).Sl();case 2:return n?(!this.b&&(this.b=new uR(this,2)),this.b):(!this.b&&(this.b=new uR(this,2)),this.b.b)}return eF(this,e-DA(this.ei()),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():this.ei(),e),t,n)},Q.Qh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new uR(this,0)),lK(this.c,e,n);case 1:return(!this.c&&(this.c=new uR(this,0)),I(I(PM(this.c,(KK(),C9)),159),71)).Uk(e,n);case 2:return!this.b&&(this.b=new uR(this,2)),lK(this.b,e,n)}return r=I(GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():this.ei(),t),69),r.tk().xk(this,aAe(this),t-DA(this.ei()),e,n)},Q.Sh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new uR(this,0)),I(PM(this.c,(KK(),C9)),159)).dc();case 2:return!!this.b&&this.b.i!=0}return ON(this,e-DA(this.ei()),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():this.ei(),e))},Q.Zh=function(e,t){switch(e){case 0:!this.c&&(this.c=new uR(this,0)),mA(this.c,t);return;case 1:(!this.c&&(this.c=new uR(this,0)),I(I(PM(this.c,(KK(),C9)),159),219)).Wb(t);return;case 2:!this.b&&(this.b=new uR(this,2)),mA(this.b,t);return}NV(this,e-DA(this.ei()),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():this.ei(),e),t)},Q.ei=function(){return KK(),hzt},Q.gi=function(e){switch(e){case 0:!this.c&&(this.c=new uR(this,0)),HK(this.c);return;case 1:(!this.c&&(this.c=new uR(this,0)),I(PM(this.c,(KK(),C9)),159)).$b();return;case 2:!this.b&&(this.b=new uR(this,2)),HK(this.b);return}HB(this,e-DA(this.ei()),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():this.ei(),e))},Q.Ib=function(){var e;return this.j&4?gG(this):(e=new kT(gG(this)),e.a+=` (mixed: `,bC(e,this.c),e.a+=`, anyAttribute: `,bC(e,this.b),e.a+=`)`,e.a)},z(IQ,`AnyTypeImpl`,825),q(668,500,{109:1,93:1,92:1,57:1,52:1,98:1,2068:1,668:1},Su),Q.Hh=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return eF(this,e-DA((KK(),w9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():w9,e),t,n)},Q.Sh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return ON(this,e-DA((KK(),w9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():w9,e))},Q.Zh=function(e,t){switch(e){case 0:om(this,IE(t));return;case 1:cm(this,IE(t));return}NV(this,e-DA((KK(),w9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():w9,e),t)},Q.ei=function(){return KK(),w9},Q.gi=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}HB(this,e-DA((KK(),w9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():w9,e))},Q.Ib=function(){var e;return this.j&4?gG(this):(e=new kT(gG(this)),e.a+=` (data: `,xC(e,this.a),e.a+=`, target: `,xC(e,this.b),e.a+=`)`,e.a)},Q.a=null,Q.b=null,z(IQ,`ProcessingInstructionImpl`,668),q(669,825,{109:1,93:1,92:1,57:1,52:1,98:1,838:1,2069:1,669:1},Cre),Q.Hh=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new uR(this,0)),this.c):(!this.c&&(this.c=new uR(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new uR(this,0)),I(PM(this.c,(KK(),C9)),159)):(!this.c&&(this.c=new uR(this,0)),I(I(PM(this.c,(KK(),C9)),159),219)).Sl();case 2:return n?(!this.b&&(this.b=new uR(this,2)),this.b):(!this.b&&(this.b=new uR(this,2)),this.b.b);case 3:return!this.c&&(this.c=new uR(this,0)),IE(IK(this.c,(KK(),E9),!0));case 4:return MD(this.a,(!this.c&&(this.c=new uR(this,0)),IE(IK(this.c,(KK(),E9),!0))));case 5:return this.a}return eF(this,e-DA((KK(),T9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():T9,e),t,n)},Q.Sh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new uR(this,0)),I(PM(this.c,(KK(),C9)),159)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new uR(this,0)),IE(IK(this.c,(KK(),E9),!0))!=null;case 4:return MD(this.a,(!this.c&&(this.c=new uR(this,0)),IE(IK(this.c,(KK(),E9),!0))))!=null;case 5:return!!this.a}return ON(this,e-DA((KK(),T9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():T9,e))},Q.Zh=function(e,t){switch(e){case 0:!this.c&&(this.c=new uR(this,0)),mA(this.c,t);return;case 1:(!this.c&&(this.c=new uR(this,0)),I(I(PM(this.c,(KK(),C9)),159),219)).Wb(t);return;case 2:!this.b&&(this.b=new uR(this,2)),mA(this.b,t);return;case 3:iwe(this,IE(t));return;case 4:iwe(this,$de(this.a,t));return;case 5:sm(this,I(t,155));return}NV(this,e-DA((KK(),T9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():T9,e),t)},Q.ei=function(){return KK(),T9},Q.gi=function(e){switch(e){case 0:!this.c&&(this.c=new uR(this,0)),HK(this.c);return;case 1:(!this.c&&(this.c=new uR(this,0)),I(PM(this.c,(KK(),C9)),159)).$b();return;case 2:!this.b&&(this.b=new uR(this,2)),HK(this.b);return;case 3:!this.c&&(this.c=new uR(this,0)),R5e(this.c,(KK(),E9),null);return;case 4:iwe(this,$de(this.a,null));return;case 5:this.a=null;return}HB(this,e-DA((KK(),T9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():T9,e))},z(IQ,`SimpleAnyTypeImpl`,669),q(670,500,{109:1,93:1,92:1,57:1,52:1,98:1,2070:1,670:1},Sre),Q.Hh=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new uR(this,0)),this.a):(!this.a&&(this.a=new uR(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new WP((fq(),d9),h9,this,1)),this.b):(!this.b&&(this.b=new WP((fq(),d9),h9,this,1)),PP(this.b));case 2:return n?(!this.c&&(this.c=new WP((fq(),d9),h9,this,2)),this.c):(!this.c&&(this.c=new WP((fq(),d9),h9,this,2)),PP(this.c));case 3:return!this.a&&(this.a=new uR(this,0)),PM(this.a,(KK(),O9));case 4:return!this.a&&(this.a=new uR(this,0)),PM(this.a,(KK(),k9));case 5:return!this.a&&(this.a=new uR(this,0)),PM(this.a,(KK(),A9));case 6:return!this.a&&(this.a=new uR(this,0)),PM(this.a,(KK(),j9))}return eF(this,e-DA((KK(),D9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():D9,e),t,n)},Q.Qh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new uR(this,0)),lK(this.a,e,n);case 1:return!this.b&&(this.b=new WP((fq(),d9),h9,this,1)),VD(this.b,e,n);case 2:return!this.c&&(this.c=new WP((fq(),d9),h9,this,2)),VD(this.c,e,n);case 5:return!this.a&&(this.a=new uR(this,0)),kde(PM(this.a,(KK(),A9)),e,n)}return r=I(GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():(KK(),D9),t),69),r.tk().xk(this,aAe(this),t-DA((KK(),D9)),e,n)},Q.Sh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new uR(this,0)),!uC(PM(this.a,(KK(),O9)));case 4:return!this.a&&(this.a=new uR(this,0)),!uC(PM(this.a,(KK(),k9)));case 5:return!this.a&&(this.a=new uR(this,0)),!uC(PM(this.a,(KK(),A9)));case 6:return!this.a&&(this.a=new uR(this,0)),!uC(PM(this.a,(KK(),j9)))}return ON(this,e-DA((KK(),D9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():D9,e))},Q.Zh=function(e,t){switch(e){case 0:!this.a&&(this.a=new uR(this,0)),mA(this.a,t);return;case 1:!this.b&&(this.b=new WP((fq(),d9),h9,this,1)),aR(this.b,t);return;case 2:!this.c&&(this.c=new WP((fq(),d9),h9,this,2)),aR(this.c,t);return;case 3:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),O9))),!this.a&&(this.a=new uR(this,0)),zw(PM(this.a,O9),I(t,16));return;case 4:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),k9))),!this.a&&(this.a=new uR(this,0)),zw(PM(this.a,k9),I(t,16));return;case 5:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),A9))),!this.a&&(this.a=new uR(this,0)),zw(PM(this.a,A9),I(t,16));return;case 6:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),j9))),!this.a&&(this.a=new uR(this,0)),zw(PM(this.a,j9),I(t,16));return}NV(this,e-DA((KK(),D9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():D9,e),t)},Q.ei=function(){return KK(),D9},Q.gi=function(e){switch(e){case 0:!this.a&&(this.a=new uR(this,0)),HK(this.a);return;case 1:!this.b&&(this.b=new WP((fq(),d9),h9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new WP((fq(),d9),h9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),O9)));return;case 4:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),k9)));return;case 5:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),A9)));return;case 6:!this.a&&(this.a=new uR(this,0)),v_(PM(this.a,(KK(),j9)));return}HB(this,e-DA((KK(),D9)),GF(this.j&2?(!this.k&&(this.k=new Sf),this.k).Kk():D9,e))},Q.Ib=function(){var e;return this.j&4?gG(this):(e=new kT(gG(this)),e.a+=` (mixed: `,bC(e,this.a),e.a+=`)`,e.a)},z(IQ,`XMLTypeDocumentRootImpl`,670),q(1977,707,{109:1,93:1,92:1,466:1,154:1,57:1,113:1,52:1,98:1,157:1,117:1,118:1,2071:1},xu),Q.ni=function(e,t){switch(e.ek()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:UV(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return IE(t);case 6:return ode(I(t,195));case 12:case 47:case 49:case 11:return q9e(this,e,t);case 13:return t==null?null:W5e(I(t,245));case 15:case 14:return t==null?null:eve(A(F(t)));case 17:return rGe((KK(),t));case 18:return rGe(t);case 21:case 20:return t==null?null:tve(I(t,160).a);case 27:return sde(I(t,195));case 30:return eHe((KK(),I(t,15)));case 31:return eHe(I(t,15));case 40:return ade((KK(),t));case 42:return iGe((KK(),t));case 43:return iGe(t);case 59:case 48:return ide((KK(),t));default:throw O(new X_(LZ+e.ve()+RZ))}},Q.oi=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=aI(e),n?wU(n.ri(),e):-1)),e.G){case 0:return t=new xre,t;case 1:return r=new Su,r;case 2:return i=new Cre,i;case 3:return a=new Sre,a;default:throw O(new X_(Edt+e.zb+RZ))}},Q.pi=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;switch(e.ek()){case 5:case 52:case 4:return t;case 6:return tBe(t);case 8:case 7:return t==null?null:_Ge(t);case 9:return t==null?null:wF(pK((r=LK(t,!0),r.length>0&&(UM(0,r.length),r.charCodeAt(0)==43)?(UM(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:wF(pK((i=LK(t,!0),i.length>0&&(UM(0,i.length),i.charCodeAt(0)==43)?(UM(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return IE(iq(this,(KK(),vzt),t));case 12:return IE(iq(this,(KK(),yzt),t));case 13:return t==null?null:new lae(LK(t,!0));case 15:case 14:return M$e(t);case 16:return IE(iq(this,(KK(),bzt),t));case 17:return UH((KK(),t));case 18:return UH(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return LK(t,!0);case 21:case 20:return K$e(t);case 22:return IE(iq(this,(KK(),xzt),t));case 23:return IE(iq(this,(KK(),Szt),t));case 24:return IE(iq(this,(KK(),Czt),t));case 25:return IE(iq(this,(KK(),wzt),t));case 26:return IE(iq(this,(KK(),Tzt),t));case 27:return Hze(t);case 30:return WH((KK(),t));case 31:return WH(t);case 32:return t==null?null:kB(pK((u=LK(t,!0),u.length>0&&(UM(0,u.length),u.charCodeAt(0)==43)?(UM(1,u.length+1),u.substr(1)):u),nJ,_q));case 33:return t==null?null:new nw((d=LK(t,!0),d.length>0&&(UM(0,d.length),d.charCodeAt(0)==43)?(UM(1,d.length+1),d.substr(1)):d));case 34:return t==null?null:kB(pK((f=LK(t,!0),f.length>0&&(UM(0,f.length),f.charCodeAt(0)==43)?(UM(1,f.length+1),f.substr(1)):f),nJ,_q));case 36:return t==null?null:nU(Ntt((p=LK(t,!0),p.length>0&&(UM(0,p.length),p.charCodeAt(0)==43)?(UM(1,p.length+1),p.substr(1)):p)));case 37:return t==null?null:nU(Ntt((m=LK(t,!0),m.length>0&&(UM(0,m.length),m.charCodeAt(0)==43)?(UM(1,m.length+1),m.substr(1)):m)));case 40:return FVe((KK(),t));case 42:return VRe((KK(),t));case 43:return VRe(t);case 44:return t==null?null:new nw((h=LK(t,!0),h.length>0&&(UM(0,h.length),h.charCodeAt(0)==43)?(UM(1,h.length+1),h.substr(1)):h));case 45:return t==null?null:new nw((g=LK(t,!0),g.length>0&&(UM(0,g.length),g.charCodeAt(0)==43)?(UM(1,g.length+1),g.substr(1)):g));case 46:return LK(t,!1);case 47:return IE(iq(this,(KK(),Ezt),t));case 59:case 48:return PVe((KK(),t));case 49:return IE(iq(this,(KK(),Dzt),t));case 50:return t==null?null:AB(pK((_=LK(t,!0),_.length>0&&(UM(0,_.length),_.charCodeAt(0)==43)?(UM(1,_.length+1),_.substr(1)):_),_pt,32767)<<16>>16);case 51:return t==null?null:AB(pK((a=LK(t,!0),a.length>0&&(UM(0,a.length),a.charCodeAt(0)==43)?(UM(1,a.length+1),a.substr(1)):a),_pt,32767)<<16>>16);case 53:return IE(iq(this,(KK(),Ozt),t));case 55:return t==null?null:AB(pK((o=LK(t,!0),o.length>0&&(UM(0,o.length),o.charCodeAt(0)==43)?(UM(1,o.length+1),o.substr(1)):o),_pt,32767)<<16>>16);case 56:return t==null?null:AB(pK((s=LK(t,!0),s.length>0&&(UM(0,s.length),s.charCodeAt(0)==43)?(UM(1,s.length+1),s.substr(1)):s),_pt,32767)<<16>>16);case 57:return t==null?null:nU(Ntt((c=LK(t,!0),c.length>0&&(UM(0,c.length),c.charCodeAt(0)==43)?(UM(1,c.length+1),c.substr(1)):c)));case 58:return t==null?null:nU(Ntt((l=LK(t,!0),l.length>0&&(UM(0,l.length),l.charCodeAt(0)==43)?(UM(1,l.length+1),l.substr(1)):l)));case 60:return t==null?null:kB(pK((n=LK(t,!0),n.length>0&&(UM(0,n.length),n.charCodeAt(0)==43)?(UM(1,n.length+1),n.substr(1)):n),nJ,_q));case 61:return t==null?null:kB(pK(LK(t,!0),nJ,_q));default:throw O(new X_(LZ+e.ve()+RZ))}};var Azt,jzt,Mzt,Nzt;z(IQ,`XMLTypeFactoryImpl`,1977),q(579,184,{109:1,93:1,92:1,154:1,197:1,57:1,240:1,113:1,52:1,98:1,157:1,184:1,117:1,118:1,677:1,1993:1,579:1},hye),Q.N=!1,Q.O=!1;var Pzt=!1;z(IQ,`XMLTypePackageImpl`,579),q(1910,1,{832:1},Cu),Q.Hk=function(){return V6e(),tBt},z(IQ,`XMLTypePackageImpl/1`,1910),q(1919,1,OQ,wu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/10`,1919),q(1920,1,OQ,Tu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/11`,1920),q(1921,1,OQ,Eu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/12`,1921),q(1922,1,OQ,Du),Q.ck=function(e){return pC(e)},Q.dk=function(e){return H(r$,X,343,e,7,1)},z(IQ,`XMLTypePackageImpl/13`,1922),q(1923,1,OQ,Ou),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/14`,1923),q(1924,1,OQ,ku),Q.ck=function(e){return P(e,15)},Q.dk=function(e){return H(qQ,tY,15,e,0,1)},z(IQ,`XMLTypePackageImpl/15`,1924),q(1925,1,OQ,Au),Q.ck=function(e){return P(e,15)},Q.dk=function(e){return H(qQ,tY,15,e,0,1)},z(IQ,`XMLTypePackageImpl/16`,1925),q(1926,1,OQ,ju),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/17`,1926),q(1927,1,OQ,Mu),Q.ck=function(e){return P(e,160)},Q.dk=function(e){return H(i$,X,160,e,0,1)},z(IQ,`XMLTypePackageImpl/18`,1927),q(1928,1,OQ,Nu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/19`,1928),q(1911,1,OQ,Pu),Q.ck=function(e){return P(e,838)},Q.dk=function(e){return H(b9,Sq,838,e,0,1)},z(IQ,`XMLTypePackageImpl/2`,1911),q(1929,1,OQ,Fu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/20`,1929),q(1930,1,OQ,Iu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/21`,1930),q(1931,1,OQ,Lu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/22`,1931),q(1932,1,OQ,Ru),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/23`,1932),q(1933,1,OQ,zu),Q.ck=function(e){return P(e,195)},Q.dk=function(e){return H(X9,X,195,e,0,2)},z(IQ,`XMLTypePackageImpl/24`,1933),q(1934,1,OQ,Bu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/25`,1934),q(1935,1,OQ,Vu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/26`,1935),q(1936,1,OQ,Hu),Q.ck=function(e){return P(e,15)},Q.dk=function(e){return H(qQ,tY,15,e,0,1)},z(IQ,`XMLTypePackageImpl/27`,1936),q(1937,1,OQ,Uu),Q.ck=function(e){return P(e,15)},Q.dk=function(e){return H(qQ,tY,15,e,0,1)},z(IQ,`XMLTypePackageImpl/28`,1937),q(1938,1,OQ,Wu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/29`,1938),q(1912,1,OQ,Gu),Q.ck=function(e){return P(e,668)},Q.dk=function(e){return H(fzt,Sq,2068,e,0,1)},z(IQ,`XMLTypePackageImpl/3`,1912),q(1939,1,OQ,Ku),Q.ck=function(e){return P(e,17)},Q.dk=function(e){return H(a$,X,17,e,0,1)},z(IQ,`XMLTypePackageImpl/30`,1939),q(1940,1,OQ,qu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/31`,1940),q(1941,1,OQ,Ju),Q.ck=function(e){return P(e,190)},Q.dk=function(e){return H(o$,X,190,e,0,1)},z(IQ,`XMLTypePackageImpl/32`,1941),q(1942,1,OQ,Yu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/33`,1942),q(1943,1,OQ,Xu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/34`,1943),q(1944,1,OQ,Zu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/35`,1944),q(1945,1,OQ,Qu),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/36`,1945),q(1946,1,OQ,$u),Q.ck=function(e){return P(e,15)},Q.dk=function(e){return H(qQ,tY,15,e,0,1)},z(IQ,`XMLTypePackageImpl/37`,1946),q(1947,1,OQ,ed),Q.ck=function(e){return P(e,15)},Q.dk=function(e){return H(qQ,tY,15,e,0,1)},z(IQ,`XMLTypePackageImpl/38`,1947),q(1948,1,OQ,td),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/39`,1948),q(1913,1,OQ,nd),Q.ck=function(e){return P(e,669)},Q.dk=function(e){return H(x9,Sq,2069,e,0,1)},z(IQ,`XMLTypePackageImpl/4`,1913),q(1949,1,OQ,rd),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/40`,1949),q(1950,1,OQ,id),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/41`,1950),q(1951,1,OQ,ad),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/42`,1951),q(1952,1,OQ,od),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/43`,1952),q(1953,1,OQ,sd),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/44`,1953),q(1954,1,OQ,cd),Q.ck=function(e){return P(e,191)},Q.dk=function(e){return H(s$,X,191,e,0,1)},z(IQ,`XMLTypePackageImpl/45`,1954),q(1955,1,OQ,ld),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/46`,1955),q(1956,1,OQ,ud),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/47`,1956),q(1957,1,OQ,dd),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/48`,1957),q(1958,1,OQ,fd),Q.ck=function(e){return P(e,191)},Q.dk=function(e){return H(s$,X,191,e,0,1)},z(IQ,`XMLTypePackageImpl/49`,1958),q(1914,1,OQ,pd),Q.ck=function(e){return P(e,670)},Q.dk=function(e){return H(pzt,Sq,2070,e,0,1)},z(IQ,`XMLTypePackageImpl/5`,1914),q(1959,1,OQ,md),Q.ck=function(e){return P(e,190)},Q.dk=function(e){return H(o$,X,190,e,0,1)},z(IQ,`XMLTypePackageImpl/50`,1959),q(1960,1,OQ,hd),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/51`,1960),q(1961,1,OQ,gd),Q.ck=function(e){return P(e,17)},Q.dk=function(e){return H(a$,X,17,e,0,1)},z(IQ,`XMLTypePackageImpl/52`,1961),q(1915,1,OQ,_d),Q.ck=function(e){return mC(e)},Q.dk=function(e){return H(c$,X,2,e,6,1)},z(IQ,`XMLTypePackageImpl/6`,1915),q(1916,1,OQ,vd),Q.ck=function(e){return P(e,195)},Q.dk=function(e){return H(X9,X,195,e,0,2)},z(IQ,`XMLTypePackageImpl/7`,1916),q(1917,1,OQ,yd),Q.ck=function(e){return fC(e)},Q.dk=function(e){return H(e$,X,471,e,8,1)},z(IQ,`XMLTypePackageImpl/8`,1917),q(1918,1,OQ,bd),Q.ck=function(e){return P(e,220)},Q.dk=function(e){return H(t$,X,220,e,0,1)},z(IQ,`XMLTypePackageImpl/9`,1918);var M9,N9,P9,Fzt,$;q(53,63,rJ,uv),z(BQ,`RegEx/ParseException`,53),q(817,1,{},xd),Q.$l=function(e){return e<this.j&&hj(this.i,e)==63},Q._l=function(){var e,t,n,r,i;if(this.c!=10)throw O(new uv(mq((uw(),tQ))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(aq(this),this.c!=0)throw O(new uv(mq((uw(),iQ))));if(this.a==123){i=0,n=0;do{if(aq(this),this.c!=0)throw O(new uv(mq((uw(),iQ))));if((i=AU(this.a))<0)break;if(n>n*16)throw O(new uv(mq((uw(),kft))));n=n*16+i}while(!0);if(this.a!=125)throw O(new uv(mq((uw(),Aft))));if(n>VQ)throw O(new uv(mq((uw(),jft))));e=n}else{if(i=0,this.c!=0||(i=AU(this.a))<0||(n=i,aq(this),this.c!=0||(i=AU(this.a))<0))throw O(new uv(mq((uw(),iQ))));n=n*16+i,e=n}break;case 117:if(r=0,aq(this),this.c!=0||(r=AU(this.a))<0||(t=r,aq(this),this.c!=0||(r=AU(this.a))<0)||(t=t*16+r,aq(this),this.c!=0||(r=AU(this.a))<0)||(t=t*16+r,aq(this),this.c!=0||(r=AU(this.a))<0))throw O(new uv(mq((uw(),iQ))));t=t*16+r,e=t;break;case 118:if(aq(this),this.c!=0||(r=AU(this.a))<0||(t=r,aq(this),this.c!=0||(r=AU(this.a))<0)||(t=t*16+r,aq(this),this.c!=0||(r=AU(this.a))<0)||(t=t*16+r,aq(this),this.c!=0||(r=AU(this.a))<0)||(t=t*16+r,aq(this),this.c!=0||(r=AU(this.a))<0)||(t=t*16+r,aq(this),this.c!=0||(r=AU(this.a))<0))throw O(new uv(mq((uw(),iQ))));if(t=t*16+r,t>VQ)throw O(new uv(mq((uw(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw O(new uv(mq((uw(),Mft))))}return e},Q.am=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?tq(`Nd`,!0):(uq(),B9);break;case 68:n=(this.e&32)==32?tq(`Nd`,!1):(uq(),Wzt);break;case 119:n=(this.e&32)==32?tq(`IsWord`,!0):(uq(),U9);break;case 87:n=(this.e&32)==32?tq(`IsWord`,!1):(uq(),Kzt);break;case 115:n=(this.e&32)==32?tq(`IsSpace`,!0):(uq(),H9);break;case 83:n=(this.e&32)==32?tq(`IsSpace`,!1):(uq(),Gzt);break;default:throw O(new E_((t=e,fmt+t.toString(16))))}return n},Q.bm=function(e){var t,n,r,i,a,o,s,c,l,u,d,f;for(this.b=1,aq(this),t=null,this.c==0&&this.a==94?(aq(this),e?u=(uq(),uq(),++W9,new JM(5)):(t=(uq(),uq(),++W9,new JM(4)),WG(t,0,VQ),u=(++W9,new JM(4)))):u=(uq(),uq(),++W9,new JM(4)),i=!0;(f=this.c)!=1&&!(f==0&&this.a==93&&!i);){if(i=!1,n=this.a,r=!1,f==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:RK(u,this.am(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.rm(u,n),n<0&&(r=!0);break;case 112:case 80:if(d=jXe(this,n),!d)throw O(new uv(mq((uw(),yft))));RK(u,d),r=!0;break;default:n=this._l()}else if(f==20){if(o=sE(this.i,58,this.d),o<0)throw O(new uv(mq((uw(),bft))));if(s=!0,hj(this.i,this.d)==94&&(++this.d,s=!1),a=qj(this.i,this.d,o),c=ZOe(a,s,(this.e&512)==512),!c)throw O(new uv(mq((uw(),xft))));if(RK(u,c),r=!0,o+1>=this.j||hj(this.i,o+1)!=93)throw O(new uv(mq((uw(),bft))));this.d=o+2}if(aq(this),!r)if(this.c!=0||this.a!=45)WG(u,n,n);else{if(aq(this),(f=this.c)==1)throw O(new uv(mq((uw(),rQ))));f==0&&this.a==93?(WG(u,n,n),WG(u,45,45)):(l=this.a,f==10&&(l=this._l()),aq(this),WG(u,n,l))}(this.e&cQ)==cQ&&this.c==0&&this.a==44&&aq(this)}if(this.c==1)throw O(new uv(mq((uw(),rQ))));return t&&(JK(t,u),u=t),hG(u),BK(u),this.b=0,aq(this),u},Q.cm=function(){for(var e,t,n=this.bm(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(aq(this),this.c!=9)throw O(new uv(mq((uw(),Eft))));if(t=this.bm(!1),r==4)RK(n,t);else if(e==45)JK(n,t);else if(e==38)P9e(n,t);else throw O(new E_(`ASSERT`))}else throw O(new uv(mq((uw(),Dft))));return aq(this),n},Q.dm=function(){var e=this.a-48,t=(uq(),uq(),++W9,new Exe(12,null,e));return!this.g&&(this.g=new s_),t_(this.g,new Qte(e)),aq(this),t},Q.em=function(){return aq(this),uq(),Jzt},Q.fm=function(){return aq(this),uq(),qzt},Q.gm=function(){throw O(new uv(mq((uw(),aQ))))},Q.hm=function(){throw O(new uv(mq((uw(),aQ))))},Q.im=function(){return aq(this),pFe()},Q.jm=function(){return aq(this),uq(),Xzt},Q.km=function(){return aq(this),uq(),Qzt},Q.lm=function(){var e;if(this.d>=this.j||((e=hj(this.i,this.d++))&65504)!=64)throw O(new uv(mq((uw(),hft))));return aq(this),uq(),uq(),++W9,new ck(0,e-64)},Q.mm=function(){return aq(this),f8e()},Q.nm=function(){return aq(this),uq(),$zt},Q.om=function(){var e=(uq(),uq(),++W9,new ck(0,105));return aq(this),e},Q.pm=function(){return aq(this),uq(),Zzt},Q.qm=function(){return aq(this),uq(),Yzt},Q.rm=function(e,t){return this._l()},Q.sm=function(){return aq(this),uq(),Hzt},Q.tm=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw O(new uv(mq((uw(),fft))));if(r=-1,t=null,e=hj(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new s_),t_(this.g,new Qte(r)),++this.d,hj(this.i,this.d)!=41)throw O(new uv(mq((uw(),nQ))));++this.d}else switch(e==63&&--this.d,aq(this),t=Nnt(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw O(new uv(mq((uw(),nQ))));break;default:throw O(new uv(mq((uw(),pft))))}if(aq(this),i=XH(this),n=null,i.e==2){if(i.Mm()!=2)throw O(new uv(mq((uw(),mft))));n=i.Im(1),i=i.Im(0)}if(this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),uq(),uq(),++W9,new NAe(r,t,i,n)},Q.um=function(){return aq(this),uq(),Uzt},Q.vm=function(){var e;if(aq(this),e=Yk(24,XH(this)),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.wm=function(){var e;if(aq(this),e=Yk(20,XH(this)),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.xm=function(){var e;if(aq(this),e=Yk(22,XH(this)),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.ym=function(){var e=0,t,n=0,r,i;for(t=-1;this.d<this.j&&(t=hj(this.i,this.d),i=jZe(t),i!=0);)e|=i,++this.d;if(this.d>=this.j)throw O(new uv(mq((uw(),uft))));if(t==45){for(++this.d;this.d<this.j&&(t=hj(this.i,this.d),i=jZe(t),i!=0);)n|=i,++this.d;if(this.d>=this.j)throw O(new uv(mq((uw(),uft))))}if(t==58){if(++this.d,aq(this),r=dve(XH(this),e,n),this.c!=7)throw O(new uv(mq((uw(),nQ))));aq(this)}else if(t==41)++this.d,aq(this),r=dve(XH(this),e,n);else throw O(new uv(mq((uw(),dft))));return r},Q.zm=function(){var e;if(aq(this),e=Yk(21,XH(this)),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.Am=function(){var e;if(aq(this),e=Yk(23,XH(this)),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.Bm=function(){var e,t;if(aq(this),e=this.f++,t=Xk(XH(this),e),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),t},Q.Cm=function(){var e;if(aq(this),e=Xk(XH(this),0),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.Dm=function(e){return aq(this),this.c==5?(aq(this),sk(e,(uq(),uq(),++W9,new FN(9,e)))):sk(e,(uq(),uq(),++W9,new FN(3,e)))},Q.Em=function(e){var t;return aq(this),t=(uq(),uq(),++W9,new vw(2)),this.c==5?(aq(this),VK(t,V9),VK(t,e)):(VK(t,e),VK(t,V9)),t},Q.Fm=function(e){return aq(this),this.c==5?(aq(this),uq(),uq(),++W9,new FN(9,e)):(uq(),uq(),++W9,new FN(3,e))},Q.a=0,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=1,Q.g=null,Q.j=0,z(BQ,`RegEx/RegexParser`,817),q(1897,817,{},wre),Q.$l=function(e){return!1},Q._l=function(){return N2e(this)},Q.am=function(e){return mK(e)},Q.bm=function(e){return ert(this)},Q.cm=function(){throw O(new uv(mq((uw(),aQ))))},Q.dm=function(){throw O(new uv(mq((uw(),aQ))))},Q.em=function(){throw O(new uv(mq((uw(),aQ))))},Q.fm=function(){throw O(new uv(mq((uw(),aQ))))},Q.gm=function(){return aq(this),mK(67)},Q.hm=function(){return aq(this),mK(73)},Q.im=function(){throw O(new uv(mq((uw(),aQ))))},Q.jm=function(){throw O(new uv(mq((uw(),aQ))))},Q.km=function(){throw O(new uv(mq((uw(),aQ))))},Q.lm=function(){return aq(this),mK(99)},Q.mm=function(){throw O(new uv(mq((uw(),aQ))))},Q.nm=function(){throw O(new uv(mq((uw(),aQ))))},Q.om=function(){return aq(this),mK(105)},Q.pm=function(){throw O(new uv(mq((uw(),aQ))))},Q.qm=function(){throw O(new uv(mq((uw(),aQ))))},Q.rm=function(e,t){return RK(e,mK(t)),-1},Q.sm=function(){return aq(this),uq(),uq(),++W9,new ck(0,94)},Q.tm=function(){throw O(new uv(mq((uw(),aQ))))},Q.um=function(){return aq(this),uq(),uq(),++W9,new ck(0,36)},Q.vm=function(){throw O(new uv(mq((uw(),aQ))))},Q.wm=function(){throw O(new uv(mq((uw(),aQ))))},Q.xm=function(){throw O(new uv(mq((uw(),aQ))))},Q.ym=function(){throw O(new uv(mq((uw(),aQ))))},Q.zm=function(){throw O(new uv(mq((uw(),aQ))))},Q.Am=function(){throw O(new uv(mq((uw(),aQ))))},Q.Bm=function(){var e;if(aq(this),e=Xk(XH(this),0),this.c!=7)throw O(new uv(mq((uw(),nQ))));return aq(this),e},Q.Cm=function(){throw O(new uv(mq((uw(),aQ))))},Q.Dm=function(e){return aq(this),sk(e,(uq(),uq(),++W9,new FN(3,e)))},Q.Em=function(e){var t;return aq(this),t=(uq(),uq(),++W9,new vw(2)),VK(t,e),VK(t,V9),t},Q.Fm=function(e){return aq(this),uq(),uq(),++W9,new FN(3,e)};var F9=null,I9=null;z(BQ,`RegEx/ParserForXMLSchema`,1897),q(121,1,UQ,Ig),Q.Gm=function(e){throw O(new E_(`Not supported.`))},Q.Hm=function(){return-1},Q.Im=function(e){return null},Q.Jm=function(){return null},Q.Km=function(e){},Q.Lm=function(e){},Q.Mm=function(){return 0},Q.Ib=function(){return this.Nm(0)},Q.Nm=function(e){return this.e==11?`.`:``},Q.e=0;var Izt,L9,R9,Lzt,Rzt,z9=null,B9,zzt=null,Bzt,V9,Vzt=null,Hzt,Uzt,Wzt,Gzt,Kzt,qzt,H9,Jzt,Yzt,Xzt,Zzt,U9,Qzt,$zt,W9=0,eBt=z(BQ,`RegEx/Token`,121);q(136,121,{3:1,136:1,121:1},JM),Q.Nm=function(e){var t,n,r;if(this.e==4)if(this==Bzt)n=`.`;else if(this==B9)n=`\\d`;else if(this==U9)n=`\\w`;else if(this==H9)n=`\\s`;else{for(r=new vv,r.a+=`[`,t=0;t<this.b.length;t+=2)(e&cQ)!=0&&t>0&&(r.a+=`,`),this.b[t]===this.b[t+1]?xC(r,OK(this.b[t])):(xC(r,OK(this.b[t])),r.a+=`-`,xC(r,OK(this.b[t+1])));r.a+=`]`,n=r.a}else if(this==Wzt)n=`\\D`;else if(this==Kzt)n=`\\W`;else if(this==Gzt)n=`\\S`;else{for(r=new vv,r.a+=`[^`,t=0;t<this.b.length;t+=2)(e&cQ)!=0&&t>0&&(r.a+=`,`),this.b[t]===this.b[t+1]?xC(r,OK(this.b[t])):(xC(r,OK(this.b[t])),r.a+=`-`,xC(r,OK(this.b[t+1])));r.a+=`]`,n=r.a}return n},Q.a=!1,Q.c=!1,z(BQ,`RegEx/RangeToken`,136),q(577,1,{577:1},Qte),Q.a=0,z(BQ,`RegEx/RegexParser/ReferencePosition`,577),q(576,1,{3:1,576:1},Sae),Q.Fb=function(e){var t;return e==null||!P(e,576)?!1:(t=I(e,576),PD(this.b,t.b)&&this.a==t.a)},Q.Hb=function(){return kz(this.b+`/`+r0e(this.a))},Q.Ib=function(){return this.c.Nm(this.a)},Q.a=0,z(BQ,`RegEx/RegularExpression`,576),q(227,121,UQ,ck),Q.Hm=function(){return this.a},Q.Nm=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+tD(this.a&oJ);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=wJ?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+qj(n,n.length-6,n.length)):r=``+tD(this.a&oJ)}break;case 8:r=this==Hzt||this==Uzt?``+tD(this.a&oJ):`\\`+tD(this.a&oJ);break;default:r=null}return r},Q.a=0,z(BQ,`RegEx/Token/CharToken`,227),q(320,121,UQ,FN),Q.Im=function(e){return this.a},Q.Km=function(e){this.b=e},Q.Lm=function(e){this.c=e},Q.Mm=function(){return 1},Q.Nm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Nm(e)+`*`;else if(this.c==this.b)t=this.a.Nm(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Nm(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Nm(e)+`{`+this.c+`,}`;else throw O(new E_(`Token#toString(): CLOSURE `+this.c+xq+this.b));else if(this.c<0&&this.b<0)t=this.a.Nm(e)+`*?`;else if(this.c==this.b)t=this.a.Nm(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Nm(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Nm(e)+`{`+this.c+`,}?`;else throw O(new E_(`Token#toString(): NONGREEDYCLOSURE `+this.c+xq+this.b));return t},Q.b=0,Q.c=0,z(BQ,`RegEx/Token/ClosureToken`,320),q(818,121,UQ,q_e),Q.Im=function(e){return e==0?this.a:this.b},Q.Mm=function(){return 2},Q.Nm=function(e){return this.b.e==3&&this.b.Im(0)==this.a?this.a.Nm(e)+`+`:this.b.e==9&&this.b.Im(0)==this.a?this.a.Nm(e)+`+?`:this.a.Nm(e)+(``+this.b.Nm(e))},z(BQ,`RegEx/Token/ConcatToken`,818),q(1895,121,UQ,NAe),Q.Im=function(e){if(e==0)return this.d;if(e==1)return this.b;throw O(new E_(`Internal Error: `+e))},Q.Mm=function(){return this.b?2:1},Q.Nm=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},Q.c=0,z(BQ,`RegEx/Token/ConditionToken`,1895),q(1896,121,UQ,yCe),Q.Im=function(e){return this.b},Q.Mm=function(){return 1},Q.Nm=function(e){return`(?`+(this.a==0?``:r0e(this.a))+(this.c==0?``:r0e(this.c))+`:`+this.b.Nm(e)+`)`},Q.a=0,Q.c=0,z(BQ,`RegEx/Token/ModifierToken`,1896),q(819,121,UQ,Hve),Q.Im=function(e){return this.a},Q.Mm=function(){return 1},Q.Nm=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Nm(e)+`)`:`(`+this.a.Nm(e)+`)`;break;case 20:t=`(?=`+this.a.Nm(e)+`)`;break;case 21:t=`(?!`+this.a.Nm(e)+`)`;break;case 22:t=`(?<=`+this.a.Nm(e)+`)`;break;case 23:t=`(?<!`+this.a.Nm(e)+`)`;break;case 24:t=`(?>`+this.a.Nm(e)+`)`}return t},Q.b=0,z(BQ,`RegEx/Token/ParenToken`,819),q(515,121,{3:1,121:1,515:1},Exe),Q.Jm=function(){return this.b},Q.Nm=function(e){return this.e==12?`\\`+this.a:u$e(this.b)},Q.a=0,z(BQ,`RegEx/Token/StringToken`,515),q(463,121,UQ,vw),Q.Gm=function(e){VK(this,e)},Q.Im=function(e){return I(UA(this.a,e),121)},Q.Mm=function(){return this.a?this.a.a.c.length:0},Q.Nm=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=I(UA(this.a,0),121),n=I(UA(this.a,1),121),i=n.e==3&&n.Im(0)==t?t.Nm(e)+`+`:n.e==9&&n.Im(0)==t?t.Nm(e)+`+?`:t.Nm(e)+(``+n.Nm(e));else{for(a=new vv,r=0;r<this.a.a.c.length;r++)xC(a,I(UA(this.a,r),121).Nm(e));i=a.a}return i}if(this.a.a.c.length==2&&I(UA(this.a,1),121).e==7)i=I(UA(this.a,0),121).Nm(e)+`?`;else if(this.a.a.c.length==2&&I(UA(this.a,0),121).e==7)i=I(UA(this.a,1),121).Nm(e)+`??`;else{for(a=new vv,xC(a,I(UA(this.a,0),121).Nm(e)),r=1;r<this.a.a.c.length;r++)a.a+=`|`,xC(a,I(UA(this.a,r),121).Nm(e));i=a.a}return i},z(BQ,`RegEx/Token/UnionToken`,463),q(512,1,{586:1},Cy),Q.Ib=function(){return this.a.b},z(Cmt,`XMLTypeUtil/PatternMatcherImpl`,512),q(1662,1480,{},Sd);var tBt;z(Cmt,`XMLTypeValidator`,1662),q(268,1,Bq,Tk),Q.Ic=function(e){QN(this,e)},Q.Jc=function(){return(this.b-this.a)*this.c<0?G9:new mT(this)},Q.a=0,Q.b=0,Q.c=0;var G9;z(Tmt,`ExclusiveRange`,268),q(1051,1,Pq,Cd),Q.Rb=function(e){I(e,17),Mw()},Q.Nb=function(e){Zk(this,e)},Q.Pb=function(){return bae()},Q.Ub=function(){return xae()},Q.Wb=function(e){I(e,17),fle()},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Tb=function(){return-1},Q.Vb=function(){return-1},Q.Qb=function(){throw O(new $_(Omt))},z(Tmt,`ExclusiveRange/1`,1051),q(258,1,Pq,mT),Q.Rb=function(e){I(e,17),dle()},Q.Nb=function(e){Zk(this,e)},Q.Pb=function(){return dIe(this)},Q.Ub=function(){return ake(this)},Q.Wb=function(e){I(e,17),ple()},Q.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Vb=function(){return this.b-1},Q.Qb=function(){throw O(new $_(Omt))},Q.a=0,Q.b=0,z(Tmt,`ExclusiveRange/RangeIterator`,258);var K9=ZA(fQ,`C`),q9=ZA(hQ,`I`),J9=ZA(gq,`Z`),Y9=ZA(gQ,`J`),X9=ZA(dQ,`B`),Z9=ZA(pQ,`D`),Q9=ZA(mQ,`F`),$9=ZA(_Q,`S`),nBt=KO(`org.eclipse.elk.core.labels`,`ILabelManager`),rBt=KO(UZ,`DiagnosticChain`),iBt=KO(Opt,`ResourceSet`),aBt=z(UZ,`InvocationTargetException`,null),oBt=(_v(),ZEe),sBt=sBt=UWe;sMe(mne),EMe(`permProps`,[[[`locale`,`default`],[kmt,`gecko1_8`]],[[`locale`,`default`],[kmt,`safari`]]]),sBt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=s(e,`string`);return r(t)==`symbol`?t:t+``}function s(e,t){if(r(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||`default`);if(r(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t,n){return t=p(t),u(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(e,t){if(t&&(r(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return d(e)}function d(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var g=function(t){function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c(this,n);var r=Object.assign({},t),i=!1;try{e.resolve(`web-worker`),i=!0}catch{}if(t.workerUrl)if(i){var a=e("web-worker");r.workerFactory=function(e){return new a(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
|
|
177
177
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|
178
|
-
... Falling back to non-web worker version.`);if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){"use strict";t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})})),kMe=c({default:()=>QI}),ZI,QI,$I=o((()=>{ZI=async()=>{throw Error(`The Mermaid view is not available here`)},QI={initialize:()=>{},render:ZI,parse:ZI}})),eL=s(((e,t)=>{t.exports=(function(){var e=``,t,n,r,i=[],a={passive:!0},o={passive:!1};window.addEventListener?(t=`addEventListener`,n=`removeEventListener`):(t=`attachEvent`,n=`detachEvent`,e=`on`),r=`onwheel`in document.createElement(`div`)?`wheel`:document.onmousewheel===void 0?`DOMMouseScroll`:`mousewheel`;function s(e,t){var n=function(e){!e&&(e=window.event);var n={originalEvent:e,target:e.target||e.srcElement,type:`wheel`,deltaMode:e.type==`MozMousePixelScroll`?0:1,deltaX:0,delatZ:0,preventDefault:function(){e.preventDefault?e.preventDefault():e.returnValue=!1}};return r==`mousewheel`?(n.deltaY=-1/40*e.wheelDelta,e.wheelDeltaX&&(n.deltaX=-1/40*e.wheelDeltaX)):n.deltaY=e.detail,t(n)};return i.push({element:e,fn:n}),n}function c(e){for(var t=0;t<i.length;t++)if(i[t].element===e)return i[t].fn;return function(){}}function l(e){for(var t=0;t<i.length;t++)if(i[t].element===e)return i.splice(t,1)}function u(n,i,c,l){var u=r===`wheel`?c:s(n,c);n[t](e+i,u,l?a:o)}function d(t,i,s,u){var d=r===`wheel`?s:c(t);t[n](e+i,d,u?a:o),l(t)}function f(e,t,n){u(e,r,t,n),r==`DOMMouseScroll`&&u(e,`MozMousePixelScroll`,t,n)}function p(e,t,n){d(e,r,t,n),r==`DOMMouseScroll`&&d(e,`MozMousePixelScroll`,t,n)}return{on:f,off:p}})()})),tL=s(((e,t)=>{t.exports={extend:function(e,t){for(var n in e||={},t)this.isObject(t[n])?e[n]=this.extend(e[n],t[n]):e[n]=t[n];return e},isElement:function(e){return e instanceof HTMLElement||e instanceof SVGElement||e instanceof SVGSVGElement||e&&typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.nodeName==`string`},isObject:function(e){return Object.prototype.toString.call(e)===`[object Object]`},isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},getSvg:function(e){var t,n;if(this.isElement(e))t=e;else if(typeof e==`string`||e instanceof String){if(t=document.querySelector(e),!t)throw Error(`Provided selector did not find any elements. Selector: `+e)}else throw Error(`Provided selector is not an HTML object nor String`);if(t.tagName.toLowerCase()===`svg`)n=t;else if(t.tagName.toLowerCase()===`object`)n=t.contentDocument.documentElement;else if(t.tagName.toLowerCase()===`embed`)n=t.getSVGDocument().documentElement;else throw t.tagName.toLowerCase()===`img`?Error(`Cannot script an SVG in an "img" element. Please use an "object" element or an in-line SVG.`):Error(`Cannot get SVG.`);return n},proxy:function(e,t){return function(){return e.apply(t,arguments)}},getType:function(e){return Object.prototype.toString.apply(e).replace(/^\[object\s/,``).replace(/\]$/,``)},mouseAndTouchNormalize:function(e,t){if(e.clientX===void 0||e.clientX===null)if(e.clientX=0,e.clientY=0,e.touches!==void 0&&e.touches.length){if(e.touches[0].clientX!==void 0)e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY;else if(e.touches[0].pageX!==void 0){var n=t.getBoundingClientRect();e.clientX=e.touches[0].pageX-n.left,e.clientY=e.touches[0].pageY-n.top}}else e.originalEvent!==void 0&&e.originalEvent.clientX!==void 0&&(e.clientX=e.originalEvent.clientX,e.clientY=e.originalEvent.clientY)},isDblClick:function(e,t){if(e.detail===2)return!0;if(t!=null){var n=e.timeStamp-t.timeStamp,r=Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2);return n<250&&r<10}return!1},now:Date.now||function(){return new Date().getTime()},throttle:function(e,t,n){var r=this,i,a,o,s=null,c=0;n||={};var l=function(){c=n.leading===!1?0:r.now(),s=null,o=e.apply(i,a),s||(i=a=null)};return function(){var u=r.now();!c&&n.leading===!1&&(c=u);var d=t-(u-c);return i=this,a=arguments,d<=0||d>t?(clearTimeout(s),s=null,c=u,o=e.apply(i,a),s||(i=a=null)):!s&&n.trailing!==!1&&(s=setTimeout(l,d)),o}},createRequestAnimationFrame:function(e){var t=null;return e!==`auto`&&e<60&&e>1&&(t=Math.floor(1e3/e)),t===null?window.requestAnimationFrame||n(33):n(t)}};function n(e){return function(t){window.setTimeout(t,e)}}})),nL=s(((e,t)=>{var n=tL(),r=`unknown`;document.documentMode&&(r=`ie`),t.exports={svgNS:`http://www.w3.org/2000/svg`,xmlNS:`http://www.w3.org/XML/1998/namespace`,xmlnsNS:`http://www.w3.org/2000/xmlns/`,xlinkNS:`http://www.w3.org/1999/xlink`,evNS:`http://www.w3.org/2001/xml-events`,getBoundingClientRectNormalized:function(e){if(e.clientWidth&&e.clientHeight)return{width:e.clientWidth,height:e.clientHeight};if(e.getBoundingClientRect())return e.getBoundingClientRect();throw Error(`Cannot get BoundingClientRect for SVG.`)},getOrCreateViewport:function(e,t){var r=null;if(r=n.isElement(t)?t:e.querySelector(t),!r){var i=Array.prototype.slice.call(e.childNodes||e.children).filter(function(e){return e.nodeName!==`defs`&&e.nodeName!==`#text`});i.length===1&&i[0].nodeName===`g`&&i[0].getAttribute(`transform`)===null&&(r=i[0])}if(!r){var a=`viewport-`+new Date().toISOString().replace(/\D/g,``);r=document.createElementNS(this.svgNS,`g`),r.setAttribute(`id`,a);var o=e.childNodes||e.children;if(o&&o.length>0)for(var s=o.length;s>0;s--)o[o.length-s].nodeName!==`defs`&&r.appendChild(o[o.length-s]);e.appendChild(r)}var c=[];return r.getAttribute(`class`)&&(c=r.getAttribute(`class`).split(` `)),~c.indexOf(`svg-pan-zoom_viewport`)||(c.push(`svg-pan-zoom_viewport`),r.setAttribute(`class`,c.join(` `))),r},setupSvgAttributes:function(e){if(e.setAttribute(`xmlns`,this.svgNS),e.setAttributeNS(this.xmlnsNS,`xmlns:xlink`,this.xlinkNS),e.setAttributeNS(this.xmlnsNS,`xmlns:ev`,this.evNS),e.parentNode!==null){var t=e.getAttribute(`style`)||``;t.toLowerCase().indexOf(`overflow`)===-1&&e.setAttribute(`style`,`overflow: hidden; `+t)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:n.throttle(function(){for(var e=document.querySelectorAll(`defs`),t=e.length,n=0;n<t;n++){var r=e[n];r.parentNode.insertBefore(r,r)}},e?e.internetExplorerRedisplayInterval:null),setCTM:function(e,t,n){var i=this,a=`matrix(`+t.a+`,`+t.b+`,`+t.c+`,`+t.d+`,`+t.e+`,`+t.f+`)`;e.setAttributeNS(null,`transform`,a),`transform`in e.style?e.style.transform=a:`-ms-transform`in e.style?e.style[`-ms-transform`]=a:`-webkit-transform`in e.style&&(e.style[`-webkit-transform`]=a),r===`ie`&&n&&(n.parentNode.insertBefore(n,n),window.setTimeout(function(){i.refreshDefsGlobal()},i.internetExplorerRedisplayInterval))},getEventPoint:function(e,t){var r=t.createSVGPoint();return n.mouseAndTouchNormalize(e,t),r.x=e.clientX,r.y=e.clientY,r},getSvgCenterPoint:function(e,t,n){return this.createSVGPoint(e,t/2,n/2)},createSVGPoint:function(e,t,n){var r=e.createSVGPoint();return r.x=t,r.y=n,r}}})),AMe=s(((e,t)=>{var n=nL();t.exports={enable:function(e){var t=e.svg.querySelector(`defs`);if(t||(t=document.createElementNS(n.svgNS,`defs`),e.svg.appendChild(t)),!t.querySelector(`style#svg-pan-zoom-controls-styles`)){var r=document.createElementNS(n.svgNS,`style`);r.setAttribute(`id`,`svg-pan-zoom-controls-styles`),r.setAttribute(`type`,`text/css`),r.textContent=`.svg-pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { fill-opacity: 0.8; } .svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; } .svg-pan-zoom-control-background { fill-opacity: 0.8; }`,t.appendChild(r)}var i=document.createElementNS(n.svgNS,`g`);i.setAttribute(`id`,`svg-pan-zoom-controls`),i.setAttribute(`transform`,`translate(`+(e.width-70)+` `+(e.height-76)+`) scale(0.75)`),i.setAttribute(`class`,`svg-pan-zoom-control`),i.appendChild(this._createZoomIn(e)),i.appendChild(this._createZoomReset(e)),i.appendChild(this._createZoomOut(e)),e.svg.appendChild(i),e.controlIcons=i},_createZoomIn:function(e){var t=document.createElementNS(n.svgNS,`g`);t.setAttribute(`id`,`svg-pan-zoom-zoom-in`),t.setAttribute(`transform`,`translate(30.5 5) scale(0.015)`),t.setAttribute(`class`,`svg-pan-zoom-control`),t.addEventListener(`click`,function(){e.getPublicInstance().zoomIn()},!1),t.addEventListener(`touchstart`,function(){e.getPublicInstance().zoomIn()},!1);var r=document.createElementNS(n.svgNS,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,`1500`),r.setAttribute(`height`,`1400`),r.setAttribute(`class`,`svg-pan-zoom-control-background`),t.appendChild(r);var i=document.createElementNS(n.svgNS,`path`);return i.setAttribute(`d`,`M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z`),i.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(i),t},_createZoomReset:function(e){var t=document.createElementNS(n.svgNS,`g`);t.setAttribute(`id`,`svg-pan-zoom-reset-pan-zoom`),t.setAttribute(`transform`,`translate(5 35) scale(0.4)`),t.setAttribute(`class`,`svg-pan-zoom-control`),t.addEventListener(`click`,function(){e.getPublicInstance().reset()},!1),t.addEventListener(`touchstart`,function(){e.getPublicInstance().reset()},!1);var r=document.createElementNS(n.svgNS,`rect`);r.setAttribute(`x`,`2`),r.setAttribute(`y`,`2`),r.setAttribute(`width`,`182`),r.setAttribute(`height`,`58`),r.setAttribute(`class`,`svg-pan-zoom-control-background`),t.appendChild(r);var i=document.createElementNS(n.svgNS,`path`);i.setAttribute(`d`,`M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z`),i.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(i);var a=document.createElementNS(n.svgNS,`path`);return a.setAttribute(`d`,`M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z`),a.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(a),t},_createZoomOut:function(e){var t=document.createElementNS(n.svgNS,`g`);t.setAttribute(`id`,`svg-pan-zoom-zoom-out`),t.setAttribute(`transform`,`translate(30.5 70) scale(0.015)`),t.setAttribute(`class`,`svg-pan-zoom-control`),t.addEventListener(`click`,function(){e.getPublicInstance().zoomOut()},!1),t.addEventListener(`touchstart`,function(){e.getPublicInstance().zoomOut()},!1);var r=document.createElementNS(n.svgNS,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,`1500`),r.setAttribute(`height`,`1400`),r.setAttribute(`class`,`svg-pan-zoom-control-background`),t.appendChild(r);var i=document.createElementNS(n.svgNS,`path`);return i.setAttribute(`d`,`M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z`),i.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(i),t},disable:function(e){e.controlIcons&&=(e.controlIcons.parentNode.removeChild(e.controlIcons),null)}}})),jMe=s(((e,t)=>{var n=nL(),r=tL(),i=function(e,t){this.init(e,t)};i.prototype.init=function(e,t){this.viewport=e,this.options=t,this.originalState={zoom:1,x:0,y:0},this.activeState={zoom:1,x:0,y:0},this.updateCTMCached=r.proxy(this.updateCTM,this),this.requestAnimationFrame=r.createRequestAnimationFrame(this.options.refreshRate),this.viewBox={x:0,y:0,width:0,height:0},this.cacheViewBox();var n=this.processCTM();this.setCTM(n),this.updateCTM()},i.prototype.cacheViewBox=function(){var e=this.options.svg.getAttribute(`viewBox`);if(e){var t=e.split(/[\s\,]/).filter(function(e){return e}).map(parseFloat);this.viewBox.x=t[0],this.viewBox.y=t[1],this.viewBox.width=t[2],this.viewBox.height=t[3];var n=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height);this.activeState.zoom=n,this.activeState.x=(this.options.width-this.viewBox.width*n)/2,this.activeState.y=(this.options.height-this.viewBox.height*n)/2,this.updateCTMOnNextFrame(),this.options.svg.removeAttribute(`viewBox`)}else this.simpleViewBoxCache()},i.prototype.simpleViewBoxCache=function(){var e=this.viewport.getBBox();this.viewBox.x=e.x,this.viewBox.y=e.y,this.viewBox.width=e.width,this.viewBox.height=e.height},i.prototype.getViewBox=function(){return r.extend({},this.viewBox)},i.prototype.processCTM=function(){var e=this.getCTM();if(this.options.fit||this.options.contain){var t=this.options.fit?Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height):Math.max(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height);e.a=t,e.d=t,e.e=-this.viewBox.x*t,e.f=-this.viewBox.y*t}if(this.options.center){var n=(this.options.width-(this.viewBox.width+this.viewBox.x*2)*e.a)*.5,r=(this.options.height-(this.viewBox.height+this.viewBox.y*2)*e.a)*.5;e.e=n,e.f=r}return this.originalState.zoom=e.a,this.originalState.x=e.e,this.originalState.y=e.f,e},i.prototype.getOriginalState=function(){return r.extend({},this.originalState)},i.prototype.getState=function(){return r.extend({},this.activeState)},i.prototype.getZoom=function(){return this.activeState.zoom},i.prototype.getRelativeZoom=function(){return this.activeState.zoom/this.originalState.zoom},i.prototype.computeRelativeZoom=function(e){return e/this.originalState.zoom},i.prototype.getPan=function(){return{x:this.activeState.x,y:this.activeState.y}},i.prototype.getCTM=function(){var e=this.options.svg.createSVGMatrix();return e.a=this.activeState.zoom,e.b=0,e.c=0,e.d=this.activeState.zoom,e.e=this.activeState.x,e.f=this.activeState.y,e},i.prototype.setCTM=function(e){var t=this.isZoomDifferent(e),n=this.isPanDifferent(e);if(t||n){if(t&&(this.options.beforeZoom(this.getRelativeZoom(),this.computeRelativeZoom(e.a))===!1?(e.a=e.d=this.activeState.zoom,t=!1):(this.updateCache(e),this.options.onZoom(this.getRelativeZoom()))),n){var i=this.options.beforePan(this.getPan(),{x:e.e,y:e.f}),a=!1,o=!1;i===!1?(e.e=this.getPan().x,e.f=this.getPan().y,a=o=!0):r.isObject(i)&&(i.x===!1?(e.e=this.getPan().x,a=!0):r.isNumber(i.x)&&(e.e=i.x),i.y===!1?(e.f=this.getPan().y,o=!0):r.isNumber(i.y)&&(e.f=i.y)),a&&o||!this.isPanDifferent(e)?n=!1:(this.updateCache(e),this.options.onPan(this.getPan()))}(t||n)&&this.updateCTMOnNextFrame()}},i.prototype.isZoomDifferent=function(e){return this.activeState.zoom!==e.a},i.prototype.isPanDifferent=function(e){return this.activeState.x!==e.e||this.activeState.y!==e.f},i.prototype.updateCache=function(e){this.activeState.zoom=e.a,this.activeState.x=e.e,this.activeState.y=e.f},i.prototype.pendingUpdate=!1,i.prototype.updateCTMOnNextFrame=function(){this.pendingUpdate||(this.pendingUpdate=!0,this.requestAnimationFrame.call(window,this.updateCTMCached))},i.prototype.updateCTM=function(){var e=this.getCTM();n.setCTM(this.viewport,e,this.defs),this.pendingUpdate=!1,this.options.onUpdatedCTM&&this.options.onUpdatedCTM(e)},t.exports=function(e,t){return new i(e,t)}})),MMe=s(((e,t)=>{var n=eL(),r=AMe(),i=tL(),a=nL(),o=jMe(),s=function(e,t){this.init(e,t)},c={viewportSelector:`.svg-pan-zoom_viewport`,panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.1,minZoom:.5,maxZoom:10,fit:!0,contain:!1,center:!0,refreshRate:`auto`,beforeZoom:null,onZoom:null,beforePan:null,onPan:null,customEventsHandler:null,eventsListenerElement:null,onUpdatedCTM:null},l={passive:!0};s.prototype.init=function(e,t){var n=this;this.svg=e,this.defs=e.querySelector(`defs`),a.setupSvgAttributes(this.svg),this.options=i.extend(i.extend({},c),t),this.state=`none`;var s=a.getBoundingClientRectNormalized(e);this.width=s.width,this.height=s.height,this.viewport=o(a.getOrCreateViewport(this.svg,this.options.viewportSelector),{svg:this.svg,width:this.width,height:this.height,fit:this.options.fit,contain:this.options.contain,center:this.options.center,refreshRate:this.options.refreshRate,beforeZoom:function(e,t){if(n.viewport&&n.options.beforeZoom)return n.options.beforeZoom(e,t)},onZoom:function(e){if(n.viewport&&n.options.onZoom)return n.options.onZoom(e)},beforePan:function(e,t){if(n.viewport&&n.options.beforePan)return n.options.beforePan(e,t)},onPan:function(e){if(n.viewport&&n.options.onPan)return n.options.onPan(e)},onUpdatedCTM:function(e){if(n.viewport&&n.options.onUpdatedCTM)return n.options.onUpdatedCTM(e)}});var l=this.getPublicInstance();l.setBeforeZoom(this.options.beforeZoom),l.setOnZoom(this.options.onZoom),l.setBeforePan(this.options.beforePan),l.setOnPan(this.options.onPan),l.setOnUpdatedCTM(this.options.onUpdatedCTM),this.options.controlIconsEnabled&&r.enable(this),this.lastMouseWheelEventTime=Date.now(),this.setupHandlers()},s.prototype.setupHandlers=function(){var e=this,t=null;if(this.eventListeners={mousedown:function(n){var r=e.handleMouseDown(n,t);return t=n,r},touchstart:function(n){var r=e.handleMouseDown(n,t);return t=n,r},mouseup:function(t){return e.handleMouseUp(t)},touchend:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)},touchmove:function(t){return e.handleMouseMove(t)},mouseleave:function(t){return e.handleMouseUp(t)},touchleave:function(t){return e.handleMouseUp(t)},touchcancel:function(t){return e.handleMouseUp(t)}},this.options.customEventsHandler!=null){this.options.customEventsHandler.init({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});var n=this.options.customEventsHandler.haltEventListeners;if(n&&n.length)for(var r=n.length-1;r>=0;r--)this.eventListeners.hasOwnProperty(n[r])&&delete this.eventListeners[n[r]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],this.options.preventMouseEventsDefault?!1:l);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},s.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var e=this;this.wheelListener=function(t){return e.handleMouseWheel(t)};var t=!this.options.preventMouseEventsDefault;n.on(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!0}},s.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var e=!this.options.preventMouseEventsDefault;n.off(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!1}},s.prototype.handleMouseWheel=function(e){if(!(!this.options.zoomEnabled||this.state!==`none`)){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1);var t=e.deltaY||1,n=Date.now()-this.lastMouseWheelEventTime,r=3+Math.max(0,30-n);this.lastMouseWheelEventTime=Date.now(),`deltaMode`in e&&e.deltaMode===0&&e.wheelDelta&&(t=e.deltaY===0?0:Math.abs(e.wheelDelta)/e.deltaY),t=-.3<t&&t<.3?t:(t>0?1:-1)*Math.log(Math.abs(t)+10)/r;var i=this.svg.getScreenCTM().inverse(),o=a.getEventPoint(e,this.svg).matrixTransform(i),s=(1+this.options.zoomScaleSensitivity)**(-1*t);this.zoomAtPoint(s,o)}},s.prototype.zoomAtPoint=function(e,t,n){var r=this.viewport.getOriginalState();n?(e=Math.max(this.options.minZoom*r.zoom,Math.min(this.options.maxZoom*r.zoom,e)),e/=this.getZoom()):this.getZoom()*e<this.options.minZoom*r.zoom?e=this.options.minZoom*r.zoom/this.getZoom():this.getZoom()*e>this.options.maxZoom*r.zoom&&(e=this.options.maxZoom*r.zoom/this.getZoom());var i=this.viewport.getCTM(),a=t.matrixTransform(i.inverse()),o=this.svg.createSVGMatrix().translate(a.x,a.y).scale(e).translate(-a.x,-a.y),s=i.multiply(o);s.a!==i.a&&this.viewport.setCTM(s)},s.prototype.zoom=function(e,t){this.zoomAtPoint(e,a.getSvgCenterPoint(this.svg,this.width,this.height),t)},s.prototype.publicZoom=function(e,t){t&&(e=this.computeFromRelativeZoom(e)),this.zoom(e,t)},s.prototype.publicZoomAtPoint=function(e,t,n){if(n&&(e=this.computeFromRelativeZoom(e)),i.getType(t)!==`SVGPoint`)if(`x`in t&&`y`in t)t=a.createSVGPoint(this.svg,t.x,t.y);else throw Error(`Given point is invalid`);this.zoomAtPoint(e,t,n)},s.prototype.getZoom=function(){return this.viewport.getZoom()},s.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},s.prototype.computeFromRelativeZoom=function(e){return e*this.viewport.getOriginalState().zoom},s.prototype.resetZoom=function(){var e=this.viewport.getOriginalState();this.zoom(e.zoom,!0)},s.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},s.prototype.reset=function(){this.resetZoom(),this.resetPan()},s.prototype.handleDblClick=function(e){if(this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.options.controlIconsEnabled&&(e.target.getAttribute(`class`)||``).indexOf(`svg-pan-zoom-control`)>-1)return!1;var t=e.shiftKey?1/((1+this.options.zoomScaleSensitivity)*2):(1+this.options.zoomScaleSensitivity)*2,n=a.getEventPoint(e,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(t,n)},s.prototype.handleMouseDown=function(e,t){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),i.mouseAndTouchNormalize(e,this.svg),this.options.dblClickZoomEnabled&&i.isDblClick(e,t)?this.handleDblClick(e):(this.state=`pan`,this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=a.getEventPoint(e,this.svg).matrixTransform(this.firstEventCTM.inverse()))},s.prototype.handleMouseMove=function(e){if(this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.state===`pan`&&this.options.panEnabled){var t=a.getEventPoint(e,this.svg).matrixTransform(this.firstEventCTM.inverse()),n=this.firstEventCTM.translate(t.x-this.stateOrigin.x,t.y-this.stateOrigin.y);this.viewport.setCTM(n)}},s.prototype.handleMouseUp=function(e){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.state===`pan`&&(this.state=`none`)},s.prototype.fit=function(){var e=this.viewport.getViewBox(),t=Math.min(this.width/e.width,this.height/e.height);this.zoom(t,!0)},s.prototype.contain=function(){var e=this.viewport.getViewBox(),t=Math.max(this.width/e.width,this.height/e.height);this.zoom(t,!0)},s.prototype.center=function(){var e=this.viewport.getViewBox(),t=(this.width-(e.width+e.x*2)*this.getZoom())*.5,n=(this.height-(e.height+e.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:t,y:n})},s.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},s.prototype.pan=function(e){var t=this.viewport.getCTM();t.e=e.x,t.f=e.y,this.viewport.setCTM(t)},s.prototype.panBy=function(e){var t=this.viewport.getCTM();t.e+=e.x,t.f+=e.y,this.viewport.setCTM(t)},s.prototype.getPan=function(){var e=this.viewport.getState();return{x:e.x,y:e.y}},s.prototype.resize=function(){var e=a.getBoundingClientRectNormalized(this.svg);this.width=e.width,this.height=e.height;var t=this.viewport;t.options.width=this.width,t.options.height=this.height,t.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},s.prototype.destroy=function(){var e=this;for(var t in this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()}),this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(t,this.eventListeners[t],this.options.preventMouseEventsDefault?!1:l);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),u=u.filter(function(t){return t.svg!==e.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},s.prototype.getPublicInstance=function(){var e=this;return this.publicInstance||=this.pi={enablePan:function(){return e.options.panEnabled=!0,e.pi},disablePan:function(){return e.options.panEnabled=!1,e.pi},isPanEnabled:function(){return!!e.options.panEnabled},pan:function(t){return e.pan(t),e.pi},panBy:function(t){return e.panBy(t),e.pi},getPan:function(){return e.getPan()},setBeforePan:function(t){return e.options.beforePan=t===null?null:i.proxy(t,e.publicInstance),e.pi},setOnPan:function(t){return e.options.onPan=t===null?null:i.proxy(t,e.publicInstance),e.pi},enableZoom:function(){return e.options.zoomEnabled=!0,e.pi},disableZoom:function(){return e.options.zoomEnabled=!1,e.pi},isZoomEnabled:function(){return!!e.options.zoomEnabled},enableControlIcons:function(){return e.options.controlIconsEnabled||(e.options.controlIconsEnabled=!0,r.enable(e)),e.pi},disableControlIcons:function(){return e.options.controlIconsEnabled&&(e.options.controlIconsEnabled=!1,r.disable(e)),e.pi},isControlIconsEnabled:function(){return!!e.options.controlIconsEnabled},enableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!0,e.pi},disableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!1,e.pi},isDblClickZoomEnabled:function(){return!!e.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return e.enableMouseWheelZoom(),e.pi},disableMouseWheelZoom:function(){return e.disableMouseWheelZoom(),e.pi},isMouseWheelZoomEnabled:function(){return!!e.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(t){return e.options.zoomScaleSensitivity=t,e.pi},setMinZoom:function(t){return e.options.minZoom=t,e.pi},setMaxZoom:function(t){return e.options.maxZoom=t,e.pi},setBeforeZoom:function(t){return e.options.beforeZoom=t===null?null:i.proxy(t,e.publicInstance),e.pi},setOnZoom:function(t){return e.options.onZoom=t===null?null:i.proxy(t,e.publicInstance),e.pi},zoom:function(t){return e.publicZoom(t,!0),e.pi},zoomBy:function(t){return e.publicZoom(t,!1),e.pi},zoomAtPoint:function(t,n){return e.publicZoomAtPoint(t,n,!0),e.pi},zoomAtPointBy:function(t,n){return e.publicZoomAtPoint(t,n,!1),e.pi},zoomIn:function(){return this.zoomBy(1+e.options.zoomScaleSensitivity),e.pi},zoomOut:function(){return this.zoomBy(1/(1+e.options.zoomScaleSensitivity)),e.pi},getZoom:function(){return e.getRelativeZoom()},setOnUpdatedCTM:function(t){return e.options.onUpdatedCTM=t===null?null:i.proxy(t,e.publicInstance),e.pi},resetZoom:function(){return e.resetZoom(),e.pi},resetPan:function(){return e.resetPan(),e.pi},reset:function(){return e.reset(),e.pi},fit:function(){return e.fit(),e.pi},contain:function(){return e.contain(),e.pi},center:function(){return e.center(),e.pi},updateBBox:function(){return e.updateBBox(),e.pi},resize:function(){return e.resize(),e.pi},getSizes:function(){return{width:e.width,height:e.height,realZoom:e.getZoom(),viewBox:e.viewport.getViewBox()}},destroy:function(){return e.destroy(),e.pi}},this.publicInstance};var u=[];t.exports=function(e,t){var n=i.getSvg(e);if(n===null)return null;for(var r=u.length-1;r>=0;r--)if(u[r].svg===n)return u[r].instance.getPublicInstance();return u.push({svg:n,instance:new s(n,t)}),u[u.length-1].instance.getPublicInstance()}})),NMe=s(((e,t)=>{t.exports=MMe()})),PMe=null;function FMe(e){PMe=e}function rL(e){return PMe?PMe(e):e}function IMe(e){if(typeof window>`u`)return;let t=window.__ecNavigate;if(typeof t==`function`){t(e);return}window.location.href=e}function iL(e){return e?e.startsWith(`/`)||e.startsWith(`http://`)||e.startsWith(`https://`):!1}function LMe(e){return e.startsWith(`http://`)||e.startsWith(`https://`)?e:rL(e).replace(/\/$/,``)}var aL=(0,p.memo)(function({src:e,alt:t,className:n}){return(0,k.jsx)(`img`,{src:LMe(e),alt:t,loading:`lazy`,className:n,style:{objectFit:`contain`,borderRadius:4}})});function oL(e){let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]}),()=>t.disconnect()}function RMe(){return typeof document<`u`&&document.documentElement.getAttribute(`data-theme`)===`dark`}function sL(){return(0,p.useSyncExternalStore)(oL,RMe,()=>!1)}var cL={width:`260px`},lL={transform:`rotate(-90deg)`,letterSpacing:`0.15em`,whiteSpace:`nowrap`},uL={fontSize:`0.2em`},dL={display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`},fL={position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`0 18px 18px 0`,borderColor:`transparent #1e293b12 transparent transparent`},pL={left:`-1px`},mL={right:`-1px`},hL={left:`-6px`},zMe={right:`-6px`},BMe={width:`100%`,height:`100%`},VMe={width:10,height:10},HMe={width:10,height:10,background:`pink`,zIndex:10},UMe={stroke:`red`,strokeWidth:2.625,strokeDasharray:`5 5`},WMe={stroke:`var(--ec-edge-stroke, #d1d5db)`,strokeWidth:2.625,strokeDasharray:`5 5`},gL={strokeWidth:3,stroke:`var(--ec-edge-stroke, #6b7280)`,strokeDasharray:`5 5`},_L=[],GMe={},vL=e=>({"--ec-glow":e}),yL={event:vL(`251, 146, 60`),service:vL(`236, 72, 153`),command:vL(`59, 130, 246`),query:vL(`34, 197, 94`),data:vL(`59, 130, 246`),channel:vL(`107, 114, 128`),actor:vL(`234, 179, 8`),external:vL(`168, 85, 247`),dataProduct:vL(`99, 102, 241`),generic:vL(`251, 146, 60`)},bL={opacity:0};function xL(e){return!e||e.length===0?[]:e.filter(Boolean).map(e=>typeof e==`string`?e:e?.id??``)}var SL=(0,p.memo)(function({owners:e,accentColor:t=`bg-pink-400`,borderColor:n=`rgba(236,72,153,0.08)`,iconClass:r=`text-pink-300`}){if(e.length===0)return null;let i=e[0],a=e.length-1,o=i.includes(` `)||i.includes(`-`);return(0,k.jsxs)(`div`,{className:`flex items-center gap-1 mt-1.5 pt-1.5`,style:{borderTop:`1px solid ${n}`},title:e.join(`, `),children:[o?(0,k.jsx)(tle,{className:`${r} shrink-0`,style:VMe,strokeWidth:2.5}):(0,k.jsx)(uw,{className:`${r} shrink-0`,style:VMe,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] text-[rgb(var(--ec-page-text-muted))] truncate leading-none`,children:i}),a>0&&(0,k.jsxs)(`span`,{className:`shrink-0 inline-flex items-center justify-center text-[7px] font-bold text-white ${t} rounded-full px-1 py-[1px] leading-none`,title:e.slice(1).join(`, `),children:[`+`,a]})]})}),CL=(0,p.createContext)(null),KMe=CL.Provider;function wL(){return(0,p.useContext)(CL)??void 0}var TL={50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`},qMe={high:{bg:`#fef2f2`,fg:`#b91c1c`,border:`#fecaca`,label:`High`,accent:`#ef4444`},critical:{bg:`#fef2f2`,fg:`#991b1b`,border:`#fecaca`,label:`Critical`,accent:`#dc2626`},low:{bg:`#f0fdf4`,fg:`#15803d`,border:`#bbf7d0`,label:`Low`,accent:`#22c55e`}},EL=[[`#7c3aed`,`#a78bfa`],[`#2563eb`,`#60a5fa`],[`#0891b2`,`#22d3ee`],[`#059669`,`#34d399`],[`#d97706`,`#fbbf24`],[`#dc2626`,`#f87171`],[`#db2777`,`#f472b6`],[`#4f46e5`,`#818cf8`]];function DL(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}function OL({name:e,size:t=18}){let n=e.split(/\s+/).map(e=>e[0]).join(``).toUpperCase().slice(0,2),[r,i]=EL[DL(e)%EL.length];return(0,k.jsx)(`div`,{style:{width:t,height:t,borderRadius:`50%`,background:`linear-gradient(135deg, ${r}, ${i})`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:(0,k.jsx)(`span`,{style:{fontSize:Math.round(t*.42),fontWeight:700,color:`white`,lineHeight:1,letterSpacing:`-0.02em`},children:n})})}function kL({priority:e,size:t=`sm`}){let n=qMe[e.toLowerCase()];if(!n)return null;let r=e===`high`||e===`critical`,i=t===`md`;return(0,k.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:i?4:2,fontSize:i?11:8,fontWeight:700,color:n.fg,background:n.bg,border:`1px solid ${n.border}`,borderRadius:99,padding:i?`2px 8px`:`1px 5px`,textTransform:`uppercase`,letterSpacing:`0.04em`,lineHeight:1.4,whiteSpace:`nowrap`},children:[r&&(0,k.jsx)(Ice,{style:{width:i?10:7,height:i?10:7},strokeWidth:2.5}),n.label]})}function AL({note:e,last:t}){return(0,k.jsxs)(`div`,{style:{padding:`7px 10px`,borderBottom:t?`none`:`1px solid rgb(var(--ec-page-border))`,display:`flex`,gap:6,alignItems:`flex-start`},children:[e.author&&(0,k.jsx)(OL,{name:e.author,size:16}),(0,k.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4,marginBottom:2},children:[e.author&&(0,k.jsx)(`span`,{style:{fontSize:9,fontWeight:700,color:`rgb(var(--ec-page-text))`,lineHeight:1},children:e.author}),e.priority&&(0,k.jsx)(kL,{priority:e.priority})]}),(0,k.jsx)(`p`,{style:{fontSize:9,lineHeight:1.45,color:`rgb(var(--ec-page-text-muted))`,margin:0,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.content})]})]})}function jL({note:e,isDark:t}){return e.priority&&qMe[e.priority.toLowerCase()],(0,k.jsxs)(`div`,{style:{background:t?`radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px), rgba(255,255,255,0.04)`:`radial-gradient(circle, rgba(212,201,168,0.4) 1px, transparent 1px), #fef9ed`,backgroundSize:`12px 12px`,border:`1px solid ${t?`rgba(255,255,255,0.08)`:`#e5dcc3`}`,borderBottom:`2px dashed ${t?`rgba(255,255,255,0.1)`:`#d4c9a8`}`,borderRadius:`8px 8px 0 0`,padding:`14px 16px 14px`,position:`relative`},children:[e.author&&(0,k.jsx)(`span`,{style:{display:`block`,fontSize:11,fontWeight:650,color:t?`#e2e8f0`:`#1e293b`,marginBottom:8},children:e.author}),(0,k.jsxs)(`p`,{style:{fontSize:13,lineHeight:1.7,color:t?`#cbd5e1`:`#1e293b`,margin:0,whiteSpace:`pre-wrap`,wordBreak:`break-word`,fontStyle:`italic`},children:[`“`,e.content,`”`]})]})}function ML(e){let t=[],n=[],r=[];for(let i of e){let e=i.priority?.toLowerCase();e===`critical`||e===`high`?t.push(i):e===`low`?n.push(i):r.push(i)}let i=[];return t.length>0&&i.push({label:`High Priority`,notes:t,color:`#ef4444`}),r.length>0&&i.push({label:`Notes`,notes:r,color:`#f59e0b`}),n.length>0&&i.push({label:`Low Priority`,notes:n,color:`#22c55e`}),i}function NL({notes:e,isOpen:t,onClose:n,resourceName:r,resourceVersion:i,resourceType:a,accentColor:o,icon:s}){let c=sL(),l=wL(),u=e.length,d=e.filter(e=>e.priority&&(e.priority.toLowerCase()===`high`||e.priority.toLowerCase()===`critical`));return(0,k.jsx)(mhe,{open:t,onOpenChange:e=>!e&&n(),children:(0,k.jsx)(hhe,{container:l,children:(0,k.jsxs)(`div`,{className:`fixed inset-0 z-[99999]`,style:{isolation:`isolate`},children:[(0,k.jsx)(ghe,{style:{position:`fixed`,inset:0,background:c?`rgba(0, 0, 0, 0.7)`:`rgba(15, 23, 42, 0.55)`,backdropFilter:`blur(8px)`}}),(0,k.jsxs)(wO,{style:{position:`fixed`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`92vw`,maxWidth:500,maxHeight:`80vh`,background:c?`#1e2330`:`#ffffff`,borderRadius:16,border:`1px solid ${c?`rgba(255,255,255,0.08)`:`rgba(0,0,0,0.08)`}`,boxShadow:c?`0 24px 48px rgba(0,0,0,0.5)`:`0 24px 48px rgba(0,0,0,0.15)`,display:`flex`,flexDirection:`column`,overflow:`hidden`,outline:`none`},children:[(0,k.jsxs)(`div`,{style:{padding:`20px 22px 16px`,borderBottom:`1px solid ${c?`rgba(255,255,255,0.06)`:`rgba(0,0,0,0.06)`}`,display:`flex`,alignItems:`center`,gap:14},children:[(0,k.jsx)(`div`,{style:{width:36,height:36,borderRadius:10,background:o||`linear-gradient(135deg, ${TL[400]}, ${TL[500]})`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:s||(0,k.jsx)(nw,{style:{width:18,height:18,color:`white`},strokeWidth:2.5})}),(0,k.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,k.jsxs)(TO,{style:{fontSize:15,fontWeight:700,color:c?`#f1f5f9`:`#0f172a`,margin:0,lineHeight:1.3,letterSpacing:`-0.01em`,display:`flex`,alignItems:`baseline`,gap:6},children:[r||`Notes`,i&&(0,k.jsxs)(`span`,{style:{fontSize:11,fontWeight:500,color:c?`#64748b`:`#94a3b8`},children:[`v`,i]})]}),(0,k.jsxs)(EO,{style:{fontSize:12,color:c?`#94a3b8`:`#64748b`,margin:0,marginTop:3,lineHeight:1.3,display:`flex`,alignItems:`center`,gap:6},children:[a&&(0,k.jsx)(`span`,{style:{fontSize:10,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.05em`},children:a}),a&&(0,k.jsx)(`span`,{style:{opacity:.4},children:`·`}),u,` note`,u===1?``:`s`,d.length>0&&` \xB7 ${d.length} high priority`]})]}),(0,k.jsx)(DO,{asChild:!0,children:(0,k.jsx)(`button`,{"aria-label":`Close`,style:{width:32,height:32,borderRadius:8,border:`none`,background:c?`rgba(255,255,255,0.06)`:`rgba(0,0,0,0.04)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#94a3b8`,flexShrink:0},children:(0,k.jsx)(pw,{style:{width:16,height:16}})})})]}),(0,k.jsx)(`div`,{style:{flex:1,overflowY:`auto`,padding:`16px 22px 24px`,display:`flex`,flexDirection:`column`,gap:18},children:ML(e).map(e=>(0,k.jsxs)(`div`,{children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:10},children:[(0,k.jsx)(`div`,{style:{width:8,height:8,borderRadius:`50%`,background:e.color,flexShrink:0}}),(0,k.jsx)(`span`,{style:{fontSize:11,fontWeight:700,color:c?`#94a3b8`:`#64748b`,textTransform:`uppercase`,letterSpacing:`0.06em`},children:e.label}),(0,k.jsxs)(`span`,{style:{fontSize:10,fontWeight:600,color:c?`#475569`:`#94a3b8`},children:[`(`,e.notes.length,`)`]}),(0,k.jsx)(`div`,{style:{flex:1,height:1,background:c?`rgba(255,255,255,0.06)`:`rgba(0,0,0,0.06)`}})]}),(0,k.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16},children:e.notes.map((e,t)=>(0,k.jsx)(jL,{note:e,isDark:c},t))})]},e.label))})]})]})})})}var PL=(0,p.memo)(function({notes:e,resourceName:t}){let[n,r]=(0,p.useState)(!1),[i,a]=(0,p.useState)(!1),o=(0,p.useCallback)(e=>{e.stopPropagation(),r(!1),a(!0)},[]);if(!e||e.length===0)return null;let s=e.length;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(`div`,{className:`absolute -top-2.5 -right-2.5 z-30 nopan nodrag`,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onPointerDown:e=>e.stopPropagation(),children:[(0,k.jsx)(`div`,{className:`flex items-center justify-center cursor-pointer`,onClick:o,style:{width:22,height:22,borderRadius:`50%`,background:e.some(e=>e.priority&&(e.priority.toLowerCase()===`high`||e.priority.toLowerCase()===`critical`))?`linear-gradient(135deg, #ef4444, #dc2626)`:`linear-gradient(135deg, ${TL[400]}, ${TL[500]})`,boxShadow:`0 0 0 2.5px rgb(var(--ec-card-bg)), 0 2px 6px rgba(0,0,0,0.15)`,transition:`transform 0.15s ease`,transform:n?`scale(1.15)`:`scale(1)`},children:(0,k.jsx)(`span`,{style:{fontSize:11,fontWeight:800,color:`white`,lineHeight:1},children:s})}),n&&!i&&(0,k.jsxs)(`div`,{className:`absolute top-full right-0 mt-2 pointer-events-none`,style:{minWidth:200,maxWidth:250,zIndex:50},children:[(0,k.jsxs)(`div`,{style:{background:`rgb(var(--ec-card-bg))`,borderRadius:10,border:`1px solid ${TL[200]}`,boxShadow:`0 4px 20px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06)`,overflow:`hidden`},children:[(0,k.jsxs)(`div`,{style:{padding:`6px 10px`,background:TL[50],borderBottom:`1px solid ${TL[200]}`,display:`flex`,alignItems:`center`,gap:5},children:[(0,k.jsx)(nw,{style:{width:10,height:10,color:TL[600]},strokeWidth:2.5}),(0,k.jsxs)(`span`,{style:{fontSize:9,fontWeight:700,color:TL[800],flex:1,letterSpacing:`0.01em`},children:[s,` note`,s===1?``:`s`]}),(0,k.jsx)(`span`,{style:{fontSize:8,color:TL[600],fontWeight:500,opacity:.8},children:`click to open`})]}),(0,k.jsx)(`div`,{style:{maxHeight:150,overflowY:`auto`},children:e.slice(0,3).map((e,t)=>(0,k.jsx)(AL,{note:e,last:t===Math.min(s,3)-1&&s<=3},t))}),s>3&&(0,k.jsx)(`div`,{style:{padding:`5px 10px`,borderTop:`1px solid rgb(var(--ec-page-border))`,textAlign:`center`},children:(0,k.jsxs)(`span`,{style:{fontSize:8,fontWeight:600,color:`#94a3b8`},children:[`+`,s-3,` more`]})})]}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:-5,right:10,width:10,height:10,background:`rgb(var(--ec-card-bg))`,border:`1px solid ${TL[200]}`,borderRight:`none`,borderBottom:`none`,transform:`rotate(45deg)`,zIndex:1}})]})]}),(0,k.jsx)(NL,{notes:e,isOpen:i,onClose:()=>a(!1),resourceName:t})]})});function FL({as:e=`span`,children:t,className:n,style:r,tooltipBorderColor:i=`rgb(var(--ec-page-border))`,value:a}){let o=(0,p.useRef)(null),[s,c]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{c(e.scrollWidth>e.clientWidth)};if(typeof ResizeObserver>`u`){let e=requestAnimationFrame(t);return window.addEventListener(`resize`,t),()=>{cancelAnimationFrame(e),window.removeEventListener(`resize`,t)}}let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a]),(0,k.jsxs)(e,{className:`ec-truncated-resource-name group relative min-w-0 max-w-full flex-1`,children:[(0,k.jsx)(`span`,{ref:o,className:`block min-w-0 ${n||``}`,style:r,children:t}),s&&(0,k.jsxs)(`span`,{className:`ec-truncated-resource-name-tooltip pointer-events-none absolute left-1/2 bottom-full z-[9999] mb-4 hidden w-max max-w-[320px] -translate-x-1/2 rounded-md border-2 bg-slate-950 px-2.5 py-1.5 text-[11px] font-medium leading-snug text-white shadow-lg group-hover:block group-focus-within:block`,style:{borderColor:i},children:[(0,k.jsx)(`span`,{className:`block whitespace-normal break-words`,children:a}),(0,k.jsx)(`span`,{className:`absolute left-1/2 top-full h-2 w-2 -translate-x-1/2 -translate-y-1/2 rotate-45 border-b border-r bg-slate-950`,style:{borderBottomColor:i,borderRightColor:i}})]})]})}function IL(){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute -inset-1.5 z-[5] rounded-[14px] border-2 border-indigo-500/70 shadow-lg`}),(0,k.jsxs)(`div`,{className:`pointer-events-none absolute -bottom-2.5 right-2 z-30 inline-flex items-center gap-1 rounded-full border border-white/80 bg-indigo-600 px-2 py-0.5 text-[7px] font-bold uppercase tracking-widest text-white shadow-sm`,children:[(0,k.jsx)(Gce,{className:`h-2.5 w-2.5`,strokeWidth:2.5}),`Viewing`]})]})}var JMe={openapi:`OpenAPI`,asyncapi:`AsyncAPI`,graphql:`GraphQL`},LL={openapi:{bg:`rgba(106,170,63,0.12)`,text:`#4d7c0f`,darkBg:`rgba(106,170,63,0.2)`,darkText:`#a3e635`},asyncapi:{bg:`rgba(116,78,194,0.12)`,text:`#6d28d9`,darkBg:`rgba(116,78,194,0.2)`,darkText:`#c4b5fd`},graphql:{bg:`rgba(229,53,171,0.12)`,text:`#be185d`,darkBg:`rgba(229,53,171,0.2)`,darkText:`#f9a8d4`}};function YMe(e){let t=new Set;if(Array.isArray(e))for(let n of e)n?.type&&t.add(String(n.type).toLowerCase());else if(e&&typeof e==`object`){let n=e;n.asyncapiPath&&t.add(`asyncapi`),n.openapiPath&&t.add(`openapi`),n.graphqlPath&&t.add(`graphql`)}return Array.from(t)}var XMe=(0,p.memo)(function({specifications:e,isDark:t}){let n=(0,p.useMemo)(()=>YMe(e),[e]);return n.length===0?null:(0,k.jsx)(`div`,{className:`flex items-center gap-1 flex-wrap justify-end`,children:n.map(e=>{let n=LL[e]||LL.openapi;return(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded`,style:{background:t?n.darkBg:n.bg,color:t?n.darkText:n.text},children:JMe[e]||e},e)})})}),RL=(0,p.memo)(function({side:e,delay:t}){return(0,k.jsxs)(`svg`,{width:`14`,height:`10`,viewBox:`0 0 14 10`,style:{animation:`${e===`left`?`ec-svc-msg-in`:`ec-svc-msg-out`} 2.5s ease-in-out ${t}s infinite`,opacity:0},children:[(0,k.jsx)(`rect`,{x:`0.5`,y:`0.5`,width:`13`,height:`9`,rx:`1.5`,fill:`#9ca3af`,opacity:.85}),(0,k.jsx)(`path`,{d:`M0.5,0.5 L7,5 L13.5,0.5`,fill:`none`,stroke:`white`,strokeWidth:`1`,strokeLinejoin:`round`})]})});(0,p.memo)(function({side:e}){return(0,k.jsxs)(`div`,{style:{position:`absolute`,top:`50%`,[e]:-4,transform:`translateY(-50%)`,display:`flex`,flexDirection:`column`,gap:2,zIndex:15,pointerEvents:`none`},children:[(0,k.jsx)(RL,{side:e,delay:0}),(0,k.jsx)(RL,{side:e,delay:.8}),(0,k.jsx)(RL,{side:e,delay:1.6})]})});var zL=(0,p.memo)(function({side:e,external:t}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:t?`linear-gradient(135deg, #a855f7, #7e22ce)`:`linear-gradient(135deg, #ec4899, #be185d)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...t?yL.external:yL.service,pointerEvents:`none`}})});function BL(...e){return e.filter(Boolean).join(` `)}var VL={Icon:sw,label:`Service`,gradient:`linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 40%, #ec4899 100%)`,draftBorder:`rgba(236, 72, 153, 0.5)`,corner:`#db2777`,ring:`ring-2 ring-pink-400/60 ring-offset-1`,iconClass:`w-3 h-3 text-pink-900/50`,labelClass:`text-[8px] font-bold text-pink-900/50 uppercase tracking-widest`,nameText:`text-pink-950`,nameTextDeprecated:`text-pink-950/40 line-through`,versionClass:`text-[9px] text-pink-900/40 font-semibold mt-0.5`,summaryClass:`mt-2 pt-1.5 border-t border-pink-900/10 text-[9px] text-pink-950/60 leading-relaxed overflow-hidden`,tooltipBorderColor:`#ec4899`},ZMe={Icon:QC,label:`External System`,gradient:`linear-gradient(135deg, #e9d5ff 0%, #c084fc 40%, #a855f7 100%)`,draftBorder:`rgba(168, 85, 247, 0.5)`,corner:`#7e22ce`,ring:`ring-2 ring-purple-400/60 ring-offset-1`,iconClass:`w-3 h-3 text-purple-900/50`,labelClass:`text-[8px] font-bold text-purple-900/50 uppercase tracking-widest`,nameText:`text-purple-950`,nameTextDeprecated:`text-purple-950/40 line-through`,versionClass:`text-[9px] text-purple-900/40 font-semibold mt-0.5`,summaryClass:`mt-2 pt-1.5 border-t border-purple-900/10 text-[9px] text-purple-950/60 leading-relaxed overflow-hidden`,tooltipBorderColor:`#a855f7`},QMe={Icon:sw,label:`Service`,ring:`ring-2 ring-pink-400/60 ring-offset-2`,borderSolid:`border-pink-500`,borderDraftDark:`border-dashed border-pink-400`,borderDraftLight:`border-dashed border-pink-400/60`,draftStripeDark:`rgba(236,72,153,0.25)`,draftStripeLight:`rgba(236,72,153,0.15)`,nodeBgVar:`var(--ec-service-node-bg, rgb(var(--ec-card-bg)))`,shadowColor:`rgba(236, 72, 153, 0.15)`,badgeBg:`bg-pink-500`,ownerAccent:`bg-pink-400`,ownerBorder:`rgba(236,72,153,0.08)`,ownerIcon:`text-pink-300`,tooltipBorderColor:`#ec4899`},$Me={Icon:QC,label:`External System`,ring:`ring-2 ring-purple-400/60 ring-offset-2`,borderSolid:`border-purple-500`,borderDraftDark:`border-dashed border-purple-400`,borderDraftLight:`border-dashed border-purple-400/60`,draftStripeDark:`rgba(168,85,247,0.25)`,draftStripeLight:`rgba(168,85,247,0.15)`,nodeBgVar:`var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`,shadowColor:`rgba(168, 85, 247, 0.15)`,badgeBg:`bg-purple-500`,ownerAccent:`bg-purple-400`,ownerBorder:`rgba(168,85,247,0.08)`,ownerIcon:`text-purple-300`,tooltipBorderColor:`#a855f7`};function eNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,specifications:s,externalSystem:c,styles:l}=e.data.service,u=e.data.mode||`simple`,d=sL(),f=c?ZMe:VL,p=iL(l?.icon)?l.icon:void 0;return(0,k.jsxs)(`div`,{className:BL(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?f.ring:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:f.gradient,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed ${f.draftBorder}`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`${f.corner} transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(f.Icon,{className:f.iconClass,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:f.labelClass,children:f.label})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p&&(0,k.jsx)(aL,{src:p,alt:n,className:u===`full`?`w-[26px] h-[26px] shrink-0`:`w-6 h-6 shrink-0`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:f.tooltipBorderColor,className:BL(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?f.nameTextDeprecated:f.nameText),children:n})]}),t&&(0,k.jsxs)(`div`,{className:f.versionClass,children:[`v`,t]}),u===`full`&&r&&(0,k.jsx)(`div`,{className:f.summaryClass,style:dL,title:r,children:r}),!!s&&(0,k.jsx)(`div`,{className:`mt-1.5 flex justify-end`,children:(0,k.jsx)(XMe,{specifications:s,isDark:d})})]})]})}function tNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,specifications:s,externalSystem:c,styles:l}=e.data.service,u=e.data.mode||`simple`,d=iL(l?.icon)?l.icon:void 0,f=(0,p.useMemo)(()=>xL(e.data.service.owners),[e.data.service.owners]),m=vC({handleType:`target`}),h=vC({handleType:`source`}),g=sL(),_=g?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`,v=c?$Me:QMe,y=g?v.draftStripeDark:v.draftStripeLight,b=g?v.borderDraftDark:v.borderDraftLight;return(0,k.jsxs)(`div`,{className:BL(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?v.ring:``,i?`border-dashed border-red-500`:a?b:v.borderSolid),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${_} 6px, ${_} 7px), ${v.nodeBgVar}`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y} 4px, ${y} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y} 4px, ${y} 4.5px), ${v.nodeBgVar}`:v.nodeBgVar,boxShadow:`0 2px 12px ${v.shadowColor}`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),m.length>0&&(0,k.jsx)(zL,{side:`left`,external:c}),h.length>0&&(0,k.jsx)(zL,{side:`right`,external:c}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:BL(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:v.badgeBg),children:[(0,k.jsx)(v.Icon,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),v.label,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d&&(0,k.jsx)(aL,{src:d,alt:n,className:u===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:v.tooltipBorderColor,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),u===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),(0,k.jsxs)(`div`,{className:`flex items-end justify-between gap-1`,children:[(0,k.jsx)(SL,{owners:f,accentColor:v.ownerAccent,borderColor:v.ownerBorder,iconClass:v.ownerIcon}),!!s&&(0,k.jsx)(XMe,{specifications:s,isDark:g})]})]})]})}var nNe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(eNe,{...e}):(0,k.jsx)(tNe,{...e})});function rNe(...e){return e.filter(Boolean).join(` `)}function HL({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #0ea5e9, #0369a1)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.dataProduct,pointerEvents:`none`}})}var UL=(e,t)=>{if(!e)return null;let n=e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/[^a-z0-9-]/g,``);return LMe(n===`openai`||n===`anthropic`?`/icons/agent/${n}-${t?`dark`:`light`}.svg`:`/icons/agent/${n}.svg`)};function iNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,owners:s,model:c,styles:l}=e.data.agent,u=e.data.mode||`simple`,d=iL(l?.icon)?l.icon:void 0,f=(0,p.useMemo)(()=>xL(s),[s]),m=vC({handleType:`target`}),h=vC({handleType:`source`}),g=sL(),_=g?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`,v=g?`rgba(14,165,233,0.25)`:`rgba(14,165,233,0.15)`,y=c?.provider,b=UL(y,g),x=c?.name;return(0,k.jsxs)(`div`,{className:rNe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-sky-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed border-sky-400`:`border-sky-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${_} 6px, ${_} 7px), var(--ec-agent-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${v} 4px, ${v} 4.5px), var(--ec-agent-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-agent-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(14, 165, 233, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),m.length>0&&(0,k.jsx)(HL,{side:`left`}),h.length>0&&(0,k.jsx)(HL,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:rNe(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-sky-500`),children:[(0,k.jsx)(HC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Agent`,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d&&(0,k.jsx)(aL,{src:d,alt:n,className:u===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#0ea5e9`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),u===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),(y||x)&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 flex-wrap mt-1.5`,children:[y&&(0,k.jsxs)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-sky-500/10 text-sky-700 dark:text-sky-300 uppercase tracking-wide`,children:[b&&(0,k.jsx)(`img`,{src:b,alt:``,className:`w-2 h-2 shrink-0 mr-1 object-contain`,loading:`lazy`}),y]}),x&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-[rgb(var(--ec-page-bg))] text-[rgb(var(--ec-page-text-muted))] border border-sky-500/30 max-w-[8.5rem] truncate`,children:x})]}),(0,k.jsx)(SL,{owners:f,accentColor:`bg-sky-400`,borderColor:`rgba(14,165,233,0.08)`,iconClass:`text-sky-300`})]})]})}var aNe=(0,p.memo)(iNe),oNe=`<svg fill="#ffffff" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>ModelContextProtocol</title><path d="M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"/><path d="M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"/></svg>`,WL=`<svg fill="#000000" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>ModelContextProtocol</title><path d="M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"/><path d="M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"/></svg>`;function sNe(...e){return e.filter(Boolean).join(` `)}var cNe=e=>(e||``).trim().toLowerCase();function lNe({type:e}){let t=sL(),n=cNe(e),r=e.toUpperCase();return n===`mcp`?(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold px-1.5 py-0.5 rounded bg-violet-500/10 text-violet-700 dark:text-violet-300 border border-violet-500/25`,children:[(0,k.jsx)(`span`,{className:`w-2 h-2 shrink-0 [&>svg]:w-2 [&>svg]:h-2`,dangerouslySetInnerHTML:{__html:t?oNe:WL}}),`MCP`]}):(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-violet-500/10 text-violet-700 dark:text-violet-300 border border-violet-500/25`,children:r})}function uNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #8b5cf6, #6d28d9)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.dataProduct,pointerEvents:`none`}})}function dNe(e){let{name:t,type:n,icon:r,url:i,description:a}=e.data.agentTool,o=iL(r)?r:void 0,s=vC({handleType:`target`}),c=vC({handleType:`source`});return(0,k.jsxs)(`div`,{className:sNe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible border-violet-500`,e?.selected?`ring-2 ring-violet-400/60 ring-offset-2`:``),style:{background:`var(--ec-agent-tool-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(139, 92, 246, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),s.length>0&&(0,k.jsx)(uNe,{side:`left`}),c.length>0&&(0,k.jsx)(uNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-violet-500`,children:[(0,k.jsx)(mw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Tool`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[o&&(0,k.jsx)(aL,{src:o,alt:t,className:`w-4 h-4 shrink-0`}),(0,k.jsx)(FL,{value:t,tooltipBorderColor:`#8b5cf6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t})]}),a&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:a,children:a}),(0,k.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1 flex-wrap`,children:[(0,k.jsx)(lNe,{type:n}),i&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-[rgb(var(--ec-page-bg))] text-[rgb(var(--ec-page-text-muted))] border border-violet-500/25 max-w-[9rem] truncate`,children:i})]})]})]})}var GL=(0,p.memo)(dNe),fNe={GET:{bg:`rgba(34,197,94,0.15)`,text:`#22c55e`},POST:{bg:`rgba(59,130,246,0.15)`,text:`#3b82f6`},PUT:{bg:`rgba(245,158,11,0.15)`,text:`#f59e0b`},PATCH:{bg:`rgba(245,158,11,0.15)`,text:`#f59e0b`},DELETE:{bg:`rgba(239,68,68,0.15)`,text:`#ef4444`},OPTIONS:{bg:`rgba(139,92,246,0.15)`,text:`#8b5cf6`},HEAD:{bg:`rgba(107,114,128,0.15)`,text:`#6b7280`}},pNe={2:{bg:`rgba(34,197,94,0.15)`,text:`#22c55e`},3:{bg:`rgba(59,130,246,0.15)`,text:`#3b82f6`},4:{bg:`rgba(245,158,11,0.15)`,text:`#f59e0b`},5:{bg:`rgba(239,68,68,0.15)`,text:`#ef4444`}};function mNe(e){return pNe[String(e)[0]]||pNe[2]}var hNe=(0,p.memo)(function({method:e}){let t=e.toUpperCase(),n=fNe[t]||{bg:`#6b7280`,text:`#ffffff`};return(0,k.jsx)(`span`,{className:`inline-flex items-center text-[8px] font-extrabold uppercase tracking-wide px-1.5 py-0.5 rounded`,style:{background:n.bg,color:n.text},children:t})}),gNe=(0,p.memo)(function({codes:e}){return(0,k.jsx)(`div`,{className:`flex items-center gap-1 flex-wrap mt-1.5`,children:e.map(e=>{let t=mNe(e);return(0,k.jsx)(`span`,{className:`inline-flex items-center text-[8px] font-bold px-1.5 py-0.5 rounded`,style:{background:t.bg,color:t.text},children:e},e)})})}),KL=(0,p.memo)(function({path:e}){return(0,k.jsx)(`span`,{className:`text-[12px] font-mono font-medium text-[rgb(var(--ec-page-text))] truncate min-w-0`,title:e,children:e})}),qL=(0,p.memo)(function({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #fb923c, #ea580c)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.event,pointerEvents:`none`}})});function _Ne(...e){return e.filter(Boolean).join(` `)}function vNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e?.data?.message,c=e?.data?.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:_Ne(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-orange-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #fed7aa 0%, #fdba74 40%, #fb923c 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(251, 146, 60, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#f97316 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(hw,{className:`w-3 h-3 text-orange-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-orange-900/50 uppercase tracking-widest`,children:`Event`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#f97316`,className:_Ne(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-orange-950/40 line-through`:`text-orange-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-orange-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-orange-900/10 text-[9px] text-orange-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function yNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,schema:o,notes:s,method:c,path:l,statusCodes:u,styles:d}=e?.data?.message,f=e?.data?.mode||`simple`,m=!!(c||l),h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(e?.data?.message?.owners),[e?.data?.message?.owners]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:_Ne(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-orange-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${y?`border-orange-400`:`border-orange-400/60`}`:`border-orange-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-event-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4.5px), var(--ec-event-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-event-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(251, 146, 60, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),_.length>0&&(0,k.jsx)(qL,{side:`left`}),v.length>0&&(0,k.jsx)(qL,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:_Ne(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-orange-500`),children:[(0,k.jsx)(hw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Event`,a&&` (Draft)`,i&&` (Deprecated)`]})}),o&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-orange-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:o.includes(`.`)?o.split(`.`).pop():o}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1 overflow-hidden min-w-0`,children:[c&&(0,k.jsx)(hNe,{method:c}),l&&(0,k.jsx)(KL,{path:l})]}),!m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:n,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#f97316`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal shrink-0`,style:{color:y?`#dce3eb`:`#6b7280`},children:[`(v`,t,`)`]})]})]}),f===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] leading-relaxed overflow-hidden`,style:{...dL,color:y?`#f0f4f8`:`#374151`},title:r,children:r}),u&&u.length>0&&(0,k.jsx)(gNe,{codes:u}),(0,k.jsxs)(`div`,{className:`flex items-end justify-between`,children:[(0,k.jsx)(SL,{owners:g,accentColor:`bg-orange-400`,borderColor:`rgba(251,146,60,0.08)`,iconClass:`text-orange-300`}),s&&s.length>0&&(0,k.jsx)(PL,{notes:s,resourceName:n})]})]})]})}var bNe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(vNe,{...e}):(0,k.jsx)(yNe,{...e})}),JL=[`service`,`services`],xNe=[`event`,`events`],SNe=[`queries`,`query`,`querie`],CNe=[`command`,`commands`],YL=[`channel`,`channels`],XL=[`actor`,`actors`],ZL=[...xNe,...CNe,...SNe];[...JL,...YL],[...JL,...YL];var QL=(0,p.memo)(function({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #22c55e, #15803d)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.query,pointerEvents:`none`}})});function $L(...e){return e.filter(Boolean).join(` `)}function wNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.message,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:$L(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-green-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #bbf7d0 0%, #86efac 40%, #22c55e 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(34, 197, 94, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#16a34a transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(ow,{className:`w-3 h-3 text-green-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-green-900/50 uppercase tracking-widest`,children:`Query`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#22c55e`,className:$L(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-green-950/40 line-through`:`text-green-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-green-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-green-900/10 text-[9px] text-green-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function TNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,schema:o,notes:s,method:c,path:l,statusCodes:u,styles:d}=e.data.message,f=e.data.mode||`simple`,m=!!(c||l),h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(e.data.message?.owners),[e.data.message?.owners]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:$L(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-green-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${y?`border-green-400`:`border-green-400/60`}`:`border-green-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-query-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4.5px), var(--ec-query-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-query-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(34, 197, 94, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),s&&s.length>0&&(0,k.jsx)(PL,{notes:s,resourceName:n}),_.length>0&&(0,k.jsx)(QL,{side:`left`}),v.length>0&&(0,k.jsx)(QL,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:$L(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-green-500`),children:[(0,k.jsx)(ow,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Query`,a&&` (Draft)`,i&&` (Deprecated)`]})}),o&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-green-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:o.includes(`.`)?o.split(`.`).pop():o}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1 overflow-hidden min-w-0`,children:[c&&(0,k.jsx)(hNe,{method:c}),l&&(0,k.jsx)(KL,{path:l})]}),!m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:n,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#22c55e`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),f===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),u&&u.length>0&&(0,k.jsx)(gNe,{codes:u}),(0,k.jsx)(SL,{owners:g,accentColor:`bg-green-400`,borderColor:`rgba(34,197,94,0.08)`,iconClass:`text-green-300`})]})]})}var eR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(wNe,{...e}):(0,k.jsx)(TNe,{...e})}),tR=(0,p.memo)(function({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #3b82f6, #1d4ed8)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.command,pointerEvents:`none`}})});function nR(...e){return e.filter(Boolean).join(` `)}function ENe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.message,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:nR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-blue-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #bfdbfe 0%, #93c5fd 40%, #3b82f6 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(59, 130, 246, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#1d4ed8 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(rw,{className:`w-3 h-3 text-blue-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-blue-900/50 uppercase tracking-widest`,children:`Command`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#3b82f6`,className:nR(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-blue-950/40 line-through`:`text-blue-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-blue-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-blue-900/10 text-[9px] text-blue-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function DNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,schema:o,notes:s,method:c,path:l,statusCodes:u,styles:d}=e.data.message,f=e.data.mode||`simple`,m=!!(c||l),h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(e.data.message?.owners),[e.data.message?.owners]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:nR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-blue-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${y?`border-blue-400`:`border-blue-400/60`}`:`border-blue-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-command-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4.5px), var(--ec-command-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-command-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(59, 130, 246, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),s&&s.length>0&&(0,k.jsx)(PL,{notes:s,resourceName:n}),_.length>0&&(0,k.jsx)(tR,{side:`left`}),v.length>0&&(0,k.jsx)(tR,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:nR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-blue-500`),children:[(0,k.jsx)(rw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Command`,a&&` (Draft)`,i&&` (Deprecated)`]})}),o&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-blue-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:o.includes(`.`)?o.split(`.`).pop():o}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1 overflow-hidden min-w-0`,children:[c&&(0,k.jsx)(hNe,{method:c}),l&&(0,k.jsx)(KL,{path:l})]}),!m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:n,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#3b82f6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),f===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),u&&u.length>0&&(0,k.jsx)(gNe,{codes:u}),(0,k.jsx)(SL,{owners:g,accentColor:`bg-blue-400`,borderColor:`rgba(59,130,246,0.08)`,iconClass:`text-blue-300`})]})]})}var rR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(ENe,{...e}):(0,k.jsx)(DNe,{...e})}),ONe={"at-most-once":`At most once`,"at-least-once":`At least once`,"exactly-once":`Exactly once`},iR={"exactly-once":{hex:`#22d3ee`,rgb:`34,211,238`},"at-least-once":{hex:`#a78bfa`,rgb:`167,139,250`},"at-most-once":{hex:`#f87171`,rgb:`248,113,113`}},aR={hex:`#6b7280`,rgb:`107,114,128`};function oR(e){return e&&iR[e]||aR}function sR({guarantee:e,size:t=6}){let{hex:n}=oR(e);return e===`exactly-once`?(0,k.jsx)(`span`,{className:`shrink-0 rounded-full`,style:{width:t,height:t,background:n}}):e===`at-least-once`?(0,k.jsx)(`span`,{className:`shrink-0 rounded-full overflow-hidden`,style:{width:t,height:t,background:`linear-gradient(90deg, ${n} 50%, transparent 50%)`,border:`1.5px solid ${n}`,boxSizing:`border-box`}}):(0,k.jsx)(`span`,{className:`shrink-0 rounded-full`,style:{width:t,height:t,border:`1.5px solid ${n}`,boxSizing:`border-box`}})}function kNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #6b7280, #374151)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.channel,pointerEvents:`none`}})}function cR(...e){return e.filter(Boolean).join(` `)}function lR(e){let{data:t}=e,{version:n,name:r,summary:i,deprecated:a,draft:o,protocols:s=_L,notes:c,deliveryGuarantee:l,styles:u}=t.channel,d=e.data.mode||`simple`,f=oR(l),p=iL(u?.icon)?u.icon:void 0;return(0,k.jsxs)(`div`,{className:cR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-gray-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),c&&c.length>0&&(0,k.jsx)(PL,{notes:c,resourceName:r}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #e5e7eb 0%, #d1d5db 40%, #6b7280 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:a?`2px dashed rgba(239, 68, 68, 0.5)`:o?`2px dashed rgba(107, 114, 128, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#374151 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(BC,{className:`w-3 h-3 text-gray-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-gray-900/50 uppercase tracking-widest`,children:`Channel`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[o&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),a&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p&&(0,k.jsx)(aL,{src:p,alt:r,className:d===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1.5 min-w-0`,children:[(0,k.jsx)(FL,{as:`div`,value:r,tooltipBorderColor:`#6b7280`,className:cR(`text-[13px] font-bold leading-snug truncate`,a?`text-gray-950/40 line-through`:`text-gray-950`),children:r}),n&&(0,k.jsxs)(`span`,{className:`text-[9px] text-gray-900/30 font-medium shrink-0`,children:[`v`,n]})]})]}),d===`full`&&i&&(0,k.jsx)(`div`,{className:`mt-1 text-[9px] text-gray-950/50 leading-relaxed overflow-hidden`,style:dL,title:i,children:i}),(l||s?.[0])&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 flex-wrap mt-2`,children:[l&&(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-wide rounded-full px-1.5 py-0.5`,style:{background:`rgba(${f.rgb}, 0.12)`,color:f.hex},children:[(0,k.jsx)(sR,{guarantee:l,size:5}),ONe[l]||l]}),s?.[0]&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-semibold text-gray-900/50 bg-gray-900/10 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,children:s[0]})]})]})]})}function uR(e){let{data:t}=e,{version:n,name:r,summary:i,deprecated:a,draft:o,protocols:s=_L,address:c,notes:l,deliveryGuarantee:u,styles:d}=t.channel,f=e.data.mode||`simple`,m=iL(d?.icon)?d.icon:void 0,h=(0,p.useMemo)(()=>xL(t.channel?.owners),[t.channel?.owners]),g=vC({handleType:`source`}),_=vC({handleType:`target`}),v=sL(),y=v?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`,b=oR(u);return(0,k.jsxs)(`div`,{className:cR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-gray-400/60 ring-offset-2`:``,a?`border-dashed border-red-500`:o?`border-dashed ${v?`border-gray-400`:`border-gray-400/60`}`:v?`border-gray-400`:`border-gray-500`),style:{background:a?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${y} 6px, ${y} 7px), var(--ec-channel-node-bg, rgb(var(--ec-card-bg)))`:o?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4.5px), var(--ec-channel-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-channel-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(107, 114, 128, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),l&&l.length>0&&(0,k.jsx)(PL,{notes:l,resourceName:r}),_.length>0&&(0,k.jsx)(kNe,{side:`left`}),g.length>0&&(0,k.jsx)(kNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:cR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,a?`bg-red-500`:`bg-gray-500`),children:[(0,k.jsx)(BC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Channel`,o&&` (Draft)`,a&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[m&&(0,k.jsx)(aL,{src:m,alt:r,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1.5 min-w-0`,children:[(0,k.jsx)(FL,{value:r,tooltipBorderColor:`#6b7280`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:r}),n&&(0,k.jsxs)(`span`,{className:`text-[9px] font-normal shrink-0`,style:{color:`rgb(var(--ec-page-text-muted))`,opacity:.5},children:[`v`,n]})]})]}),f===`full`&&i&&(0,k.jsx)(`div`,{className:`mt-1 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:{...dL,marginBottom:4},title:i,children:i}),f===`full`&&c&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 mt-1`,children:[(0,k.jsx)(Wce,{className:`w-2.5 h-2.5 text-[rgb(var(--ec-page-text-muted))]`}),(0,k.jsx)(`span`,{className:`text-[8px] text-[rgb(var(--ec-page-text-muted))] font-mono`,children:c})]}),(u||s?.[0])&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 flex-wrap mt-2`,children:[u&&(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-wide rounded-full px-1.5 py-0.5`,style:{background:`rgba(${b.rgb}, 0.08)`,color:b.hex},children:[(0,k.jsx)(sR,{guarantee:u,size:5}),ONe[u]||u]}),s?.[0]&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-semibold rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{background:v?`rgba(255,255,255,0.08)`:`rgba(107,114,128,0.1)`,color:`rgb(var(--ec-page-text-muted))`},children:s[0]})]}),(0,k.jsx)(SL,{owners:h,accentColor:`bg-gray-400`,borderColor:`rgba(107,114,128,0.08)`,iconClass:`text-gray-300`})]})]})}var ANe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(lR,{...e}):(0,k.jsx)(uR,{...e})});function dR({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #6366f1, #4f46e5)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.data,pointerEvents:`none`}})}function fR(...e){return e.filter(Boolean).join(` `)}var jNe={database:`Database`,cache:`Cache`,objectStore:`Object Store`,searchIndex:`Search Index`,dataWarehouse:`Data Warehouse`,dataLake:`Data Lake`,externalSaaS:`External SaaS`,other:`Other`};function MNe(e,t){return e?jNe[e]??e:t??`Database`}function NNe(e){let{version:t,owners:n=_L,schemas:r=_L,name:i,summary:a,deprecated:o,draft:s,notes:c,styles:l}=e.data.data,u=e.data.mode||`simple`,d=iL(l?.icon)?l.icon:void 0;return(0,k.jsxs)(`div`,{className:fR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),c&&c.length>0&&(0,k.jsx)(PL,{notes:c,resourceName:i}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 40%, #6366f1 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:o?`2px dashed rgba(239, 68, 68, 0.5)`:s?`2px dashed rgba(99, 102, 241, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#4f46e5 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(YC,{className:`w-3 h-3 text-indigo-950/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-indigo-950/50 uppercase tracking-widest`,children:`Data`})]}),s&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),o&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d&&(0,k.jsx)(aL,{src:d,alt:i,className:u===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:i,tooltipBorderColor:`#6366f1`,className:fR(`text-[13px] font-bold leading-snug min-w-0 truncate`,o?`text-indigo-950/40 line-through`:`text-indigo-950`),children:i})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-indigo-950/40 font-semibold mt-0.5`,children:[`v`,t]}),u===`full`&&a&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-indigo-950/10 text-[9px] text-indigo-950/60 leading-relaxed overflow-hidden`,style:dL,title:a,children:a})]})]})}function PNe(e){let{version:t,owners:n=_L,schemas:r=_L,name:i,summary:a,type:o,container_type:s,deprecated:c,draft:l,notes:u,styles:d}=e.data.data,f=MNe(s,o),m=e.data.mode||`simple`,h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(n),[n]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:fR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-2`:``,c?`border-dashed border-red-500`:l?`border-dashed ${y?`border-indigo-400`:`border-indigo-400/60`}`:`border-indigo-500`),style:{background:c?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-data-node-bg, rgb(var(--ec-card-bg)))`:l?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), var(--ec-data-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-data-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(99, 102, 241, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),u&&u.length>0&&(0,k.jsx)(PL,{notes:u,resourceName:i}),_.length>0&&(0,k.jsx)(dR,{side:`left`}),v.length>0&&(0,k.jsx)(dR,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:fR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,c?`bg-red-500`:`bg-indigo-500`),children:[(0,k.jsx)(YC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Data`,l&&` (Draft)`,c&&` (Deprecated)`]})}),f&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-indigo-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:f}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:i,className:m===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:i,tooltipBorderColor:`#6366f1`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:i}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),m===`full`&&a&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:a,children:a}),(0,k.jsx)(SL,{owners:g,accentColor:`bg-indigo-400`,borderColor:`rgba(99,102,241,0.08)`,iconClass:`text-indigo-300`})]})]})}var FNe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(NNe,{...e}):(0,k.jsx)(PNe,{...e})});[...JL,...YL,...XL],[...JL,...YL,...XL];function INe(...e){return e.filter(Boolean).join(` `)}var LNe=(0,p.memo)(function(e){let{data:t,selected:n}=e,{name:r,summary:i,screenshot:a}=e.data.view,o=e.data.mode||`simple`,s=`View`;return(0,k.jsxs)(`div`,{className:INe(`rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] min-h-[100px] relative`,n?`border-blue-600 ring-2 ring-blue-500 shadow-lg`:`border-blue-400`),style:cL,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,className:`!left-[-1px] !w-2.5 !h-2.5 !bg-blue-500 !border !border-blue-600 !rounded-full !z-10`}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,className:`!right-[-1px] !w-2.5 !h-2.5 !bg-blue-500 !border !border-blue-600 !rounded-full !z-10`}),(0,k.jsxs)(`div`,{className:`bg-gradient-to-b from-blue-500 to-blue-700 relative flex flex-col items-center w-5 justify-between rounded-l-sm text-blue-100 border-r-[1px] border-blue-500`,children:[(0,k.jsx)(Yce,{className:`w-4 h-4 opacity-90 text-white mt-1 ${o===`full`?`mb-2`:`mb-1`}`}),o===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[8px] text-white font-bold uppercase mb-4`,style:lL,children:s})]}),(0,k.jsxs)(`div`,{className:`p-1 flex-1`,children:[(0,k.jsxs)(`div`,{className:`pb-1`,children:[(0,k.jsx)(`span`,{className:`text-xs font-bold block pt-0.5 pb-0.5`,children:r}),o===`simple`&&(0,k.jsx)(`span`,{className:`text-[10px] text-[rgb(var(--ec-page-text-muted))] font-light block pt-0.5 pb-0.5`,children:s})]}),i&&(0,k.jsx)(`div`,{className:`pb-1`,children:(0,k.jsx)(`div`,{className:`text-[8px] font-light text-[rgb(var(--ec-page-text-muted))] block leading-tight overflow-hidden`,style:dL,title:i,children:i})}),a&&(0,k.jsx)(`div`,{className:`py-1`,children:(0,k.jsx)(`img`,{src:a,alt:`${r} screenshot`,className:`w-full max-w-40 h-20 object-cover rounded border border-[rgb(var(--ec-page-border))]`})})]})]})});function RNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #eab308, #a16207)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.actor,pointerEvents:`none`}})}function zNe(...e){return e.filter(Boolean).join(` `)}function BNe(e){let{name:t,summary:n,deprecated:r,draft:i,notes:a}=e?.data,o=e?.data?.mode||`simple`;return(0,k.jsxs)(`div`,{className:zNe(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-yellow-400/60 ring-offset-1`:``),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),a&&a.length>0&&(0,k.jsx)(PL,{notes:a,resourceName:t}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #fef9c3 0%, #fde047 40%, #eab308 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(1deg)`,border:r?`2px dashed rgba(239, 68, 68, 0.5)`:i?`2px dashed rgba(234, 179, 8, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#a16207 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(uw,{className:`w-3 h-3 text-yellow-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-yellow-900/50 uppercase tracking-widest`,children:`Actor`})]}),i&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),r&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsx)(FL,{as:`div`,value:t,tooltipBorderColor:`#eab308`,className:zNe(`text-[13px] font-bold leading-snug truncate`,r?`text-yellow-950/40 line-through`:`text-yellow-950`),children:t}),o===`full`&&n&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-yellow-900/10 text-[9px] text-yellow-950/60 leading-relaxed overflow-hidden`,style:dL,title:n,children:n})]})]})}function pR(e){let{name:t,summary:n,deprecated:r,draft:i,notes:a}=e?.data,o=e?.data?.mode||`simple`,s=vC({handleType:`target`}),c=vC({handleType:`source`}),l=sL(),u=l?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:zNe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-yellow-400/60 ring-offset-2`:``,r?`border-dashed border-red-500`:i?`border-dashed ${l?`border-yellow-400`:`border-yellow-400/60`}`:`border-yellow-500`),style:{background:r?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${u} 6px, ${u} 7px), var(--ec-actor-node-bg, rgb(var(--ec-card-bg)))`:i?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4.5px), var(--ec-actor-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-actor-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(234, 179, 8, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),a&&a.length>0&&(0,k.jsx)(PL,{notes:a,resourceName:t}),s.length>0&&(0,k.jsx)(RNe,{side:`left`}),c.length>0&&(0,k.jsx)(RNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:zNe(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,r?`bg-red-500`:`bg-yellow-500`),children:[(0,k.jsx)(uw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Actor`,i&&` (Draft)`,r&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(FL,{as:`div`,value:t,tooltipBorderColor:`#eab308`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t}),o===`full`&&n&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:n,children:n})]})]})}var mR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(BNe,{...e}):(0,k.jsx)(pR,{...e})});[...JL,...ZL,...YL],[...JL,...ZL,...YL];var hR=(0,p.memo)(function({data:e}){let{name:t}=e;return(0,k.jsxs)(`div`,{className:`relative flex w-44 flex-col items-center rounded-2xl border-2 border-yellow-500 bg-[var(--ec-actor-node-bg,rgb(var(--ec-card-bg)))] px-3 pb-3 pt-5`,style:{boxShadow:`0 2px 12px rgba(234, 179, 8, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsx)(`div`,{className:`absolute -top-4 left-1/2 -translate-x-1/2`,children:(0,k.jsx)(`div`,{className:`flex h-8 w-8 items-center justify-center rounded-full border-2 border-yellow-500 bg-[rgb(var(--ec-card-bg))] shadow-sm`,children:(0,k.jsx)(uw,{className:`h-4 w-4 text-yellow-500`,strokeWidth:2})})}),(0,k.jsx)(FL,{as:`div`,value:t,className:`mt-1 max-w-full text-center text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t}),(0,k.jsx)(`span`,{className:`mt-0.5 text-[8px] font-bold uppercase tracking-widest text-yellow-600 dark:text-yellow-400`,children:`Actor`})]})}),VNe={width:`100%`,height:`100%`,borderRadius:14,border:`2px solid var(--ec-system-group-border, #c4b5fd)`,backgroundColor:`var(--ec-system-group-bg, rgba(100, 116, 139, 0.06))`,position:`relative`,overflow:`visible`,boxShadow:`0 2px 16px rgba(139, 92, 246, 0.10)`},gR={position:`absolute`,top:0,left:0,right:0,height:48,borderTopLeftRadius:12,borderTopRightRadius:12,background:`var(--ec-system-group-header-bg, rgba(139, 92, 246, 0.05))`,borderBottom:`1px solid var(--ec-system-group-border, #c4b5fd)`,display:`flex`,alignItems:`center`,padding:`0 16px`,overflow:`visible`},_R={position:`absolute`,top:-11,left:14,display:`inline-flex`,alignItems:`center`,gap:4,fontSize:8,fontWeight:700,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`white`,background:`#8b5cf6`,padding:`2px 7px`,borderRadius:5,boxShadow:`0 1px 2px rgba(0,0,0,0.12)`,zIndex:10},HNe={fontSize:14,fontWeight:700,color:`var(--ec-system-group-text, var(--ec-group-text, #5b21b6))`,whiteSpace:`nowrap`},UNe={fontSize:10,fontWeight:500,color:`#a78bfa`,marginLeft:6},WNe={...VNe,border:`2px solid var(--ec-domain-group-border, #facc15)`,backgroundColor:`var(--ec-domain-group-bg, rgba(250, 204, 21, 0.04))`,boxShadow:`0 2px 16px rgba(234, 179, 8, 0.10)`},vR={...gR,background:`var(--ec-domain-group-header-bg, rgba(250, 204, 21, 0.08))`,borderBottom:`1px solid var(--ec-domain-group-border, #facc15)`},GNe={..._R,background:`#eab308`},KNe={...HNe,color:`var(--ec-domain-group-text, rgb(var(--ec-page-text)))`},yR=(0,p.memo)(function({data:e}){let{system:t,domain:n,subdomain:r,isFocused:i}=e,a=!!n,o=n??t,s=a?r?`Subdomain`:`Domain`:`System`;return(0,k.jsxs)(`div`,{style:a?WNe:VNe,children:[i&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsxs)(`span`,{style:a?GNe:_R,children:[a?(0,k.jsx)(UC,{size:10,strokeWidth:2.5}):(0,k.jsx)($C,{size:10,strokeWidth:2.5}),s]}),(0,k.jsxs)(`div`,{style:a?vR:gR,children:[(0,k.jsx)(FL,{value:o?.name||s,tooltipBorderColor:a?`#eab308`:`#8b5cf6`,className:`truncate`,style:a?KNe:HNe,children:o?.name||s}),o?.version&&(0,k.jsxs)(`span`,{style:UNe,children:[`v`,o.version]})]})]})}),bR={background:`var(--ec-domain-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(234, 179, 8, 0.15)`},qNe=(0,p.memo)(function({data:e}){let{domain:t,mode:n=`simple`,systemsCount:r=0,servicesCount:i=0,entitiesCount:a=0,subdomain:o=!1}=e,{id:s,version:c,name:l,summary:u}=t,d=[{icon:$C,label:`Systems`,count:r},{icon:sw,label:`Services`,count:i},{icon:Rce,label:`Entities`,count:a}].filter(e=>e.count>0),f=()=>IMe(rL(`/visualiser/domains/${s}/${c}`));return(0,k.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:f,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&f()},title:`Open the ${l} diagram`,className:`relative min-w-48 max-w-60 rounded-xl border-2 border-yellow-400 overflow-visible cursor-pointer`,style:bR,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-yellow-500`,children:[(0,k.jsx)(UC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),o?`Subdomain`:`Domain`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:l,tooltipBorderColor:`#eab308`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:l}),c&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,c,`)`]})]}),n===`full`&&u&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:u,children:u}),d.length>0&&(0,k.jsx)(`div`,{className:`mt-2 flex items-center gap-3 border-t border-[rgb(var(--ec-page-border))] pt-1.5`,children:d.map(({icon:e,label:t,count:n})=>(0,k.jsxs)(`div`,{title:`${n} ${t}`,className:`flex items-center gap-1 text-[10px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(e,{className:`w-3 h-3 text-yellow-500`,strokeWidth:2}),(0,k.jsx)(`span`,{className:`font-medium`,children:n})]},t))})]})]})});function JNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #a855f7, #7e22ce)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.external,pointerEvents:`none`}})}function xR(...e){return e.filter(Boolean).join(` `)}function YNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o}=e.data.externalSystem,s=e.data.mode||`simple`;return(0,k.jsxs)(`div`,{className:xR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-purple-400/60 ring-offset-1`:``),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #e9d5ff 0%, #c084fc 40%, #a855f7 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(168, 85, 247, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#7e22ce transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(QC,{className:`w-3 h-3 text-purple-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-purple-900/50 uppercase tracking-widest`,children:`External`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#a855f7`,className:xR(`text-[13px] font-bold leading-snug truncate`,i?`text-purple-950/40 line-through`:`text-purple-950`),children:n}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-purple-900/40 font-semibold mt-0.5`,children:[`v`,t]}),s===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-purple-900/10 text-[9px] text-purple-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function SR(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o}=e.data.externalSystem,s=e.data.mode||`simple`,c=vC({handleType:`target`}),l=vC({handleType:`source`}),u=sL(),d=u?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:xR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-purple-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${u?`border-purple-400`:`border-purple-400/60`}`:`border-purple-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${d} 6px, ${d} 7px), var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4.5px), var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(168, 85, 247, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),c.length>0&&(0,k.jsx)(JNe,{side:`left`}),l.length>0&&(0,k.jsx)(JNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:xR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-purple-500`),children:[(0,k.jsx)(QC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`External System`,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#a855f7`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]}),s===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}var CR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(YNe,{...e}):(0,k.jsx)(SR,{...e})});[...JL,...YL,...ZL,...XL],[...JL,...YL,...ZL,...XL];function XNe(...e){return e.filter(Boolean).join(` `)}var wR={yellow:{bg:`bg-gradient-to-br from-yellow-200 to-yellow-300`,border:`border-yellow-400`,text:`text-yellow-900`,placeholder:`placeholder-yellow-600`,selectedRing:`ring-yellow-500`,tooltipBorderColor:`#facc15`},blue:{bg:`bg-blue-200`,border:`border-blue-400`,text:`text-blue-900`,placeholder:`placeholder-blue-600`,selectedRing:`ring-blue-500`,tooltipBorderColor:`#60a5fa`},green:{bg:`bg-green-200`,border:`border-green-400`,text:`text-green-900`,placeholder:`placeholder-green-600`,selectedRing:`ring-green-500`,tooltipBorderColor:`#4ade80`},pink:{bg:`bg-pink-200`,border:`border-pink-400`,text:`text-pink-900`,placeholder:`placeholder-pink-600`,selectedRing:`ring-pink-500`,tooltipBorderColor:`#f472b6`},purple:{bg:`bg-purple-200`,border:`border-purple-400`,text:`text-purple-900`,placeholder:`placeholder-purple-600`,selectedRing:`ring-purple-500`,tooltipBorderColor:`#c084fc`},gray:{bg:`bg-gray-200`,border:`border-gray-400`,text:`text-gray-900`,placeholder:`placeholder-gray-600`,selectedRing:`ring-gray-500`,tooltipBorderColor:`#9ca3af`}},ZNe={position:`relative`},TR={height:`100%`,minHeight:0},QNe=(0,p.memo)(function({id:e,data:t,selected:n,onTextChange:r,onColorChange:i,readOnly:a=!1}){let[o,s]=(0,p.useState)(!1),[c,l]=(0,p.useState)(t.text||`Double-click to edit...`),[u,d]=(0,p.useState)(!1),f=(0,p.useRef)(null),m=(0,p.useRef)(null),h=t.color||`yellow`,g=wR[h]||wR.yellow,_=e=>e.replace(/^### (.*$)/gim,`<h3 class="text-xs font-medium mb-1">$1</h3>`).replace(/^## (.*$)/gim,`<h2 class="text-xs font-semibold mb-1">$1</h2>`).replace(/^# (.*$)/gim,`<h1 class="text-sm font-bold mb-1">$1</h1>`).replace(/\*\*(.*?)\*\*/gim,`<strong class="font-bold">$1</strong>`).replace(/\*(.*?)\*/gim,`<em class="italic">$1</em>`).replace(/`(.*?)`/gim,`<code class="bg-gray-200 px-1 rounded text-[9px] font-mono">$1</code>`).replace(/^• (.*$)/gim,`<li class="text-[10px] ml-3">• $1</li>`).replace(/^- (.*$)/gim,`<li class="text-[10px] ml-3">• $1</li>`).replace(/\n/g,`<br>`);(0,p.useEffect)(()=>{l(t.text||`Double-click to edit...`)},[t.text]),(0,p.useEffect)(()=>{o&&f.current&&(f.current.focus(),f.current.select())},[o]),(0,p.useEffect)(()=>{let e=m.current;if(!e||o)return;let t=()=>{d(e.scrollHeight>e.clientHeight)};if(t(),typeof ResizeObserver>`u`)return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t);let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[c,o]);let v=(0,p.useCallback)(()=>{a||s(!0)},[a]),y=(0,p.useCallback)(e=>{l(e.target.value)},[]),b=(0,p.useCallback)(()=>{s(!1),c!==t.text&&r&&r(e,c)},[c,t.text,e,r]),x=(0,p.useCallback)(e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),b()),e.key===`Escape`&&(s(!1),l(t.text||`Double-click to edit...`))},[b,t.text]),S=(0,p.useCallback)(t=>{i&&i(e,t)},[e,i]);return(0,k.jsxs)(`div`,{className:`relative group`,style:BMe,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,className:`!left-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,className:`!right-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`}),n&&!o&&!a&&(0,k.jsx)(`div`,{className:`absolute -top-10 left-1/2 transform -translate-x-1/2 flex space-x-1 p-1 bg-[rgb(var(--ec-card-bg))] rounded-md shadow-lg border border-[rgb(var(--ec-page-border))] z-20`,children:Object.keys(wR).map(e=>(0,k.jsx)(`button`,{onClick:()=>S(e),className:XNe(`w-6 h-6 rounded-full border-2`,wR[e].bg,wR[e].border,h===e?`ring-2 ring-offset-1 `+wR[e].selectedRing:``),title:e.charAt(0).toUpperCase()+e.slice(1)},e))}),(0,k.jsxs)(`div`,{onDoubleClick:v,className:XNe(`w-full h-full rounded-lg border p-3 flex flex-col min-w-[150px] min-h-[150px] relative`,g.bg,g.border,g.text,`prose prose-sm max-w-full`,n?`border-blue-600 ring-2 ${g.selectedRing} shadow-xl`:`shadow-md hover:shadow-lg`,h===`yellow`?`shadow-yellow-300/50 shadow-lg transform rotate-0.5`:``),style:ZNe,children:[o?(0,k.jsx)(`textarea`,{ref:f,value:c,onChange:y,onBlur:b,onKeyDown:x,className:XNe(`w-full flex-1 bg-transparent border-none outline-none resize-none text-[10px] p-0 m-0`,g.text,g.placeholder),style:TR,placeholder:`Enter text...`}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{ref:m,className:`whitespace-pre-wrap break-words w-full h-full overflow-y-auto custom-scrollbar text-[10px]`,dangerouslySetInnerHTML:{__html:_(c)}}),u&&(0,k.jsxs)(`div`,{className:`pointer-events-none absolute left-1/2 bottom-full z-[9999] mb-4 hidden w-max max-w-[320px] -translate-x-1/2 rounded-md border bg-slate-950 px-2.5 py-1.5 text-[11px] font-medium leading-snug text-white shadow-lg group-hover:block`,style:{borderColor:g.tooltipBorderColor},children:[(0,k.jsx)(`span`,{className:`block whitespace-pre-wrap break-words`,children:c}),(0,k.jsx)(`span`,{className:`absolute left-1/2 top-full h-2 w-2 -translate-x-1/2 -translate-y-1/2 rotate-45 border-b border-r bg-slate-950`,style:{borderBottomColor:g.tooltipBorderColor,borderRightColor:g.tooltipBorderColor}})]})]}),h===`yellow`&&(0,k.jsx)(`div`,{className:`absolute top-0 right-0 w-4 h-4`,children:(0,k.jsx)(`div`,{className:`absolute top-0 right-0 w-0 h-0 border-l-[16px] border-b-[16px] border-l-transparent border-b-yellow-400/30 rounded-br-lg`})})]})]})});function $Ne({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #06b6d4, #0891b2)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}})}function ePe(...e){return e.filter(Boolean).join(` `)}var ER=(0,p.memo)(function(e){let{name:t,type:n}=e.data,r=e.data.mode||`simple`,i=vC({handleType:`target`}),a=vC({handleType:`source`});return sL(),(0,k.jsxs)(`div`,{className:ePe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-cyan-400/60 ring-offset-2`:``,`border-cyan-500`),style:{background:`var(--ec-field-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(6, 182, 212, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),i.length>0&&(0,k.jsx)($Ne,{side:`left`}),a.length>0&&(0,k.jsx)($Ne,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-cyan-600`,children:[(0,k.jsx)(YC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Field`]})}),n&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-cyan-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:n}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(`div`,{className:`flex items-baseline gap-1`,children:(0,k.jsx)(`span`,{className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))]`,children:t})}),r===`full`&&n&&(0,k.jsxs)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed`,title:`Type: ${n}`,children:[`Type: `,n]})]})]})});function DR({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 40 40`,className:e,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`,id:`eb-g`,children:[(0,k.jsx)(`stop`,{stopColor:`#B0084D`,offset:`0%`}),(0,k.jsx)(`stop`,{stopColor:`#FF4F8B`,offset:`100%`})]})}),(0,k.jsx)(`rect`,{width:`40`,height:`40`,rx:`4`,fill:`url(#eb-g)`}),(0,k.jsx)(`path`,{fill:`#FFF`,d:`M11.056 28.594a2.09 2.09 0 01-2.08-2.096 2.09 2.09 0 012.08-2.095c1.146 0 2.08.94 2.08 2.095a2.09 2.09 0 01-2.08 2.096zm1.857.363a3.093 3.093 0 001.223-2.459c0-1.711-1.382-3.103-3.08-3.103-.42 0-.817.086-1.181.24l-1.799-3.139 2.362-4.122-.865-.504-2.506 4.375a.504.504 0 000 .503l1.966 3.43a3.09 3.09 0 00-1.056 2.32c0 1.712 1.38 3.104 3.079 3.104.342 0 .665-.07.973-.174l1.531 2.844a.5.5 0 00.44.263h5.5v-1.008h-5.203l-1.385-2.57zM29.944 16.56a2.09 2.09 0 01-2.08-2.096 2.09 2.09 0 012.08-2.096 2.09 2.09 0 012.078 2.096 2.09 2.09 0 01-2.079 2.096zm2.023.224a3.095 3.095 0 001.055-2.32c0-1.711-1.38-3.104-3.079-3.104-.34 0-.662.07-.97.173L27.442 8.62A.497.497 0 0027 8.351h-5.5V9.36h5.2l1.39 2.644a3.1 3.1 0 00-1.226 2.462c0 1.71 1.381 3.103 3.08 3.103.42 0 .818-.086 1.18-.24l1.799 3.14-2.362 4.12.866.504 2.505-4.373a.504.504 0 000-.504l-1.965-3.43zm-4.573 16.207a2.09 2.09 0 01-2.08-2.095 2.09 2.09 0 012.08-2.095 2.09 2.09 0 012.079 2.095 2.09 2.09 0 01-2.08 2.095zm-9.19-8.491l-2.293-4.002 2.292-4h4.584l2.294 4-2.294 4.002h-4.584zm-4.568-12.303a2.09 2.09 0 01-2.08-2.095 2.09 2.09 0 012.08-2.095c1.146 0 2.08.94 2.08 2.095a2.09 2.09 0 01-2.08 2.095zm13.758 15.596c-.625 0-1.206.191-1.692.515l-2.07-3.267 2.46-4.29a.504.504 0 000-.504l-2.582-4.505a.498.498 0 00-.433-.252h-4.752l-2.279-3.481a3.088 3.088 0 00.67-1.907c0-1.711-1.382-3.103-3.08-3.103-1.699 0-3.08 1.392-3.08 3.103 0 1.712 1.381 3.103 3.08 3.103a3.04 3.04 0 001.668-.502l2.09 3.194-2.492 4.35a.504.504 0 000 .503l2.58 4.506a.497.497 0 00.433.252h4.828l2.218 3.505A3.092 3.092 0 0027.395 34c1.698 0 3.079-1.393 3.079-3.103 0-1.712-1.381-3.103-3.08-3.103z`})]})}function OR({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 40 40`,className:e,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`,id:`sqs-g`,children:[(0,k.jsx)(`stop`,{stopColor:`#B0084D`,offset:`0%`}),(0,k.jsx)(`stop`,{stopColor:`#FF4F8B`,offset:`100%`})]})}),(0,k.jsx)(`rect`,{width:`40`,height:`40`,rx:`4`,fill:`url(#sqs-g)`}),(0,k.jsx)(`path`,{fill:`#FFF`,d:`M14.342 22.35l1.505-1.444a.501.501 0 00.013-.708l-1.505-1.555-.72.695.676.7h-2.32v.999h2.274l-.617.592.694.72zm12.016.003l1.55-1.453a.5.5 0 00.011-.717l-1.55-1.546-.708.707.694.694H24.01v.999H26.3l-.627.588.686.728zm-8.77 1.008a6.458 6.458 0 012.417-.467c.842 0 1.665.163 2.416.467-.669-1.771-.669-3.971 0-5.742-1.502.607-3.331.607-4.833 0 .669 1.77.669 3.97 0 5.742zm-1.944 1.98a.494.494 0 010-.707c1.94-1.936 1.94-6.352 0-8.289a.494.494 0 010-.706.502.502 0 01.709 0c.921.92 2.252 1.447 3.652 1.447 1.4 0 2.731-.528 3.653-1.447a.502.502 0 01.854.354c0 .128-.05.255-.146.352-1.942 1.937-1.942 6.353 0 8.29a.501.501 0 01-.708.706c-.922-.92-2.253-1.447-3.653-1.447s-2.731.527-3.652 1.447a.502.502 0 01-.709 0zm16.898-5.905a1.562 1.562 0 00-1.106-.456 1.558 1.558 0 00-1.105 2.662c.61.608 1.601.608 2.211 0a1.56 1.56 0 000-2.206zm.708 2.913a2.56 2.56 0 01-1.814.749 2.56 2.56 0 01-1.813-4.369c1-.997 2.628-.997 3.627 0 1 .999 1 2.622 0 3.62zM9.67 19.447a1.562 1.562 0 00-1.106-.456 1.56 1.56 0 00-1.105 2.662 1.56 1.56 0 102.21-2.206zm.708 2.912a2.56 2.56 0 01-1.814.749A2.559 2.559 0 016.75 18.74c1-.997 2.627-.997 3.627 0 1 .999 1 2.622 0 3.62zm17.057 6.551A10.514 10.514 0 0119.957 32a10.51 10.51 0 01-7.475-3.09c-1.316-1.312-2.074-2.44-2.537-3.774l-.947.327c.51 1.466 1.365 2.747 2.776 4.154A11.506 11.506 0 0019.957 33c3.093 0 6-1.201 8.185-3.383 1.14-1.139 2.279-2.43 2.87-4.156l-.948-.323c-.525 1.532-1.575 2.719-2.63 3.772zM9.945 15.86l-.947-.328c.512-1.467 1.368-2.749 2.778-4.156 4.51-4.5 11.85-4.502 16.362 0 1.08 1.077 2.266 2.414 2.874 4.156l-.948.328c-.54-1.55-1.635-2.78-2.634-3.777a10.508 10.508 0 00-7.473-3.087 10.508 10.508 0 00-7.472 3.087c-1.298 1.295-2.081 2.46-2.54 3.777z`})]})}function tPe({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 40 40`,className:e,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`,id:`sns-g`,children:[(0,k.jsx)(`stop`,{stopColor:`#B0084D`,offset:`0%`}),(0,k.jsx)(`stop`,{stopColor:`#FF4F8B`,offset:`100%`})]})}),(0,k.jsx)(`rect`,{width:`40`,height:`40`,rx:`4`,fill:`url(#sns-g)`}),(0,k.jsx)(`path`,{fill:`#FFF`,d:`M7.01 20.078a1.1 1.1 0 011.105-1.093 1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.105-1.093zM20.776 33C14.813 33 9.645 28.375 8.47 22.136a2.1 2.1 0 001.69-1.558h2.949v-1h-2.95a2.104 2.104 0 00-1.653-1.554C9.72 12.252 14.838 8 20.776 8c2.933 0 5.354.643 7.194 1.911l.575-.821C26.534 7.703 23.92 7 20.776 7c-6.51 0-12.104 4.726-13.308 11.096C6.62 18.368 6 19.149 6 20.078c0 .916.602 1.688 1.431 1.971C8.591 28.894 14.24 34 20.776 34c3.285 0 6.788-1.667 8.786-3.094l-.59-.811C26.947 31.541 23.627 33 20.777 33zM14.79 18.242c1.111.274 2.523.321 3.343.321.833 0 2.271-.047 3.402-.32l-2.401 5.014a.507.507 0 00-.048.215v2.324l-1.957.915v-3.239a.514.514 0 00-.044-.206l-2.295-5.024zm3.343-1.757c2.314 0 3.554.311 3.951.52-.417.234-1.745.558-3.95.558-2.184 0-3.483-.327-3.873-.558.37-.206 1.582-.52 3.872-.52zm-1.78 11.438a.511.511 0 00.486.03l2.968-1.388a.5.5 0 00.288-.452v-2.529l2.909-6.074a.806.806 0 00.189-.51c0-1.252-2.751-1.515-5.06-1.515-2.266 0-4.969.263-4.969 1.515 0 .19.067.355.18.502l2.775 6.077V27.5c0 .172.088.331.235.423zM30.877 27a1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.104-1.093A1.1 1.1 0 0130.876 27zm0-16.03a1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.104-1.093 1.1 1.1 0 011.104-1.093zm1.01 8.015a1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.104-1.093 1.1 1.1 0 011.104-1.093zm-4.607 1.593h2.561a2.108 2.108 0 002.046 1.593A2.106 2.106 0 0034 20.078a2.106 2.106 0 00-2.114-2.093c-.992 0-1.818.681-2.046 1.593H27.28v-7.015h1.551a2.108 2.108 0 002.046 1.593 2.106 2.106 0 002.114-2.093 2.106 2.106 0 00-2.114-2.093c-.991 0-1.818.681-2.046 1.593h-2.056a.502.502 0 00-.505.5v7.515h-3.061v1h3.061v7.515c0 .277.226.5.505.5h2.056a2.108 2.108 0 002.046 1.593 2.106 2.106 0 002.114-2.093A2.106 2.106 0 0030.876 26c-.991 0-1.818.681-2.046 1.593H27.28v-7.015z`})]})}var kR={http:{component:sw,type:`lucide`},https:{component:sw,type:`lucide`},ws:{component:Qce,type:`lucide`},wss:{component:Qce,type:`lucide`},websocket:{component:Qce,type:`lucide`},mqtt:{component:dw,type:`lucide`},amqp:{component:iw,type:`lucide`},grpc:{component:QC,type:`lucide`},graphql:{component:QC,type:`lucide`},kafka:{component:iw,type:`lucide`},rabbitmq:{component:iw,type:`lucide`},redis:{component:iw,type:`lucide`},nats:{component:iw,type:`lucide`},pulsar:{component:iw,type:`lucide`},solace:{component:iw,type:`lucide`},activemq:{component:iw,type:`lucide`},sqs:{component:OR,type:`svg`},sns:{component:tPe,type:`svg`},eventbridge:{component:DR,type:`svg`},kinesis:{component:iw,type:`lucide`},msk:{component:iw,type:`lucide`},pubsub:{component:JC,type:`lucide`},googlepubsub:{component:JC,type:`lucide`},cloudtasks:{component:JC,type:`lucide`},servicebus:{component:JC,type:`lucide`},azureservicebus:{component:JC,type:`lucide`},eventhubs:{component:JC,type:`lucide`},azureeventhubs:{component:JC,type:`lucide`},eventgrid:{component:JC,type:`lucide`},azureeventgrid:{component:JC,type:`lucide`}},nPe=e=>e&&kR[e.replace(/[-_\s]/g,``).toLowerCase()]||null;function AR(e){let t=nPe(e);return t?t.component:jCe[e]||null}function jR(...e){return e.filter(Boolean).join(` `)}var MR=(0,p.memo)(function({data:e,sourcePosition:t,targetPosition:n}){let{mode:r,flow:i}=e,a=Array.isArray(e?.expandedNodes)&&e.expandedNodes.length>0,{id:o,version:s,owners:c=_L,name:l,styles:u}=i.data,{node:{color:d=`teal`,label:f}={},icon:m=`QueueListIcon`}=u||{},h=(0,p.useMemo)(()=>AR(m),[m]),g=wL(),_=f||i?.data?.sidebar?.badge||`Flow`,v=_.length>10?`7px`:`9px`;return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:`relative`,style:{isolation:`isolate`,...cL},children:[a&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{className:`absolute inset-0 rounded-md border border-${d}-400 bg-[rgb(var(--ec-card-bg))]`,style:{transform:`translate(6px, 6px)`,opacity:.5},"aria-hidden":!0}),(0,k.jsx)(`div`,{className:`absolute inset-0 rounded-md border border-${d}-400 bg-[rgb(var(--ec-card-bg))]`,style:{transform:`translate(3px, 3px)`,opacity:.7},"aria-hidden":!0})]}),(0,k.jsxs)(`div`,{className:jR(`relative rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] border-${d}-400`),style:cL,children:[(0,k.jsxs)(`div`,{className:jR(`bg-gradient-to-b from-${d}-500 to-${d}-700 relative flex flex-col items-center w-5 justify-between rounded-l-sm text-${d}-100`,`border-r-[1px] border-${d}-500`),children:[h&&(0,k.jsx)(h,{className:`w-4 h-4 opacity-90 text-white mt-1`}),r===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[${v}] text-white font-bold uppercase mb-4`,style:lL,children:_})]}),(0,k.jsxs)(`div`,{className:`p-1 flex-1 min-w-0`,children:[n&&(0,k.jsx)(xS,{type:`target`,position:n}),t&&(0,k.jsx)(xS,{type:`source`,position:t}),(0,k.jsxs)(`div`,{className:jR(r===`full`?`border-b border-[rgb(var(--ec-page-border))]`:``),children:[(0,k.jsx)(FL,{as:`div`,value:l,tooltipBorderColor:`#14b8a6`,className:`text-xs font-bold truncate pt-0.5 pb-0.5`,children:l}),(0,k.jsxs)(`div`,{className:`flex justify-between`,children:[(0,k.jsxs)(`span`,{className:`text-[10px] font-light block pt-0.5 pb-0.5 `,children:[`v`,s]}),r===`simple`&&(0,k.jsx)(`span`,{className:`text-[10px] text-[rgb(var(--ec-page-text-muted))] font-light block pt-0.5 pb-0.5 `,children:_})]})]}),r===`full`&&(0,k.jsxs)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] `,children:[(0,k.jsx)(`div`,{className:`leading-3 py-1`,children:(0,k.jsx)(`span`,{className:`text-[8px] font-light`,children:i.data.summary})}),(0,k.jsx)(`div`,{className:`grid grid-cols-2 gap-x-4 py-1`,children:(0,k.jsxs)(`span`,{className:`text-xs`,style:uL,children:[`Owners: `,c.length]})})]}),a&&(0,k.jsxs)(`div`,{className:`mt-1 flex items-center gap-1 text-[8px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(tw,{className:`w-2.5 h-2.5`}),`Click to explore`]})]})]})]})}),(0,k.jsx)(VO,{container:g,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:[(0,k.jsx)(UO,{asChild:!0,className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/docs/flows/${o}/${s}`),children:`Read documentation`})}),(0,k.jsx)(UO,{asChild:!0,className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/visualiser/flows/${o}/${s}`),children:`Focus node`})}),(0,k.jsx)(Whe,{className:`h-[1px] bg-[rgb(var(--ec-page-border))] m-1`}),(0,k.jsx)(UO,{asChild:!0,children:(0,k.jsx)(`a`,{href:rL(`/docs/flows/${o}/${s}/changelog`),className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,target:`_blank`,rel:`noopener noreferrer`,children:`Read changelog`})})]})})]})}),NR={width:`100%`,height:`100%`,borderRadius:12,border:`2px solid rgba(20, 184, 166, 0.5)`,backgroundColor:`rgba(20, 184, 166, 0.08)`,boxShadow:`0 2px 12px rgba(20, 184, 166, 0.12)`,position:`relative`,overflow:`visible`},PR={position:`absolute`,top:0,left:0,right:0,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,background:`rgba(20, 184, 166, 0.12)`,borderBottom:`1px solid rgba(20, 184, 166, 0.3)`,overflow:`visible`},rPe={position:`absolute`,top:-10,left:12,display:`inline-flex`,alignItems:`center`,gap:3,padding:`2px 8px`,borderRadius:4,background:`#0d9488`,boxShadow:`0 1px 3px rgba(0,0,0,0.15)`,zIndex:10,fontSize:8,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`white`},iPe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,height:`100%`,padding:`0 12px 0 14px`,gap:12},aPe={fontSize:11,fontWeight:700,color:`rgb(var(--ec-page-text))`,letterSpacing:`0.04em`,textTransform:`uppercase`,whiteSpace:`nowrap`},FR={fontSize:10,fontWeight:500,color:`#5eead4`,marginLeft:8},IR={background:`#0d9488`,border:`1px solid #5eead4`,borderRadius:6,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:4,fontSize:10,fontWeight:600,color:`white`},LR=(0,p.memo)(function({data:e}){let{flowName:t,version:n}=e;return(0,k.jsx)(`div`,{style:NR,children:(0,k.jsxs)(`div`,{style:PR,children:[(0,k.jsxs)(`div`,{style:rPe,children:[(0,k.jsx)(fw,{size:10,strokeWidth:2.5}),`Sub-flow`]}),(0,k.jsxs)(`div`,{style:iPe,children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,minWidth:0,flex:1},children:[(0,k.jsx)(FL,{value:t||`Flow`,tooltipBorderColor:`#14b8a6`,className:`truncate`,style:aPe,children:t||`Flow`}),n&&(0,k.jsxs)(`span`,{style:FR,children:[`v`,n]})]}),(0,k.jsxs)(`button`,{style:IR,className:`ec-collapse-flow-btn nodrag nopan`,onMouseDown:e=>e.stopPropagation(),children:[(0,k.jsx)(Jce,{size:12,strokeWidth:2.5}),`Collapse`]})]})]})})}),oPe=`__eventcatalog-entity-target`;function RR(...e){return e.filter(Boolean).join(` `)}var sPe=e=>e.type===`array`&&e.items?.type?`${e.items.type}[]`:e.type,cPe=e=>e.properties?.length?e.properties:e.type===`array`&&e.items?.properties?.length?e.items.properties:[],zR=(0,p.memo)(function({id:e,data:t,sourcePosition:n,targetPosition:r}){let{mode:i,entity:a,externalToDomain:o,domainName:s,entityTargetHandle:c=oPe,referencePropertyNames:l=_L}=t,{name:u,version:d,properties:f=_L,aggregateRoot:m,styles:h,sidebar:g}=a.data,{node:{color:_=`blue`,label:v}={},icon:y=`CubeIcon`}=h||{},b=(0,p.useMemo)(()=>AR(y),[y]),[x,S]=(0,p.useState)(null),[C,w]=(0,p.useState)(()=>new Set),T=(0,p.useRef)(C),E=uC(),ee=wL(),te=(0,p.useMemo)(()=>new Set(l),[l]),ne=(0,p.useCallback)(e=>{w(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]);(0,p.useEffect)(()=>{T.current!==C&&(T.current=C,E(e))},[C,e,E]);let re=(e,t=0,n=``)=>e.map((e,r)=>{let i=n?`${n}.${e.name}`:e.name,a=`${i}-${r}`,o=x===a,s=cPe(e),c=s.length>0,l=C.has(i),u=t===0,d=e.references||(u&&te.has(e.name)?e.items?.type:void 0);return(0,k.jsxs)(`div`,{children:[(0,k.jsxs)(`div`,{className:RR(`relative flex items-center justify-between py-2 pr-4 hover:bg-[rgb(var(--ec-page-border)/0.2)]`,c&&`nodrag nopan cursor-pointer`),style:{paddingLeft:`${16+t*16}px`},role:c?`button`:void 0,tabIndex:c?0:void 0,"aria-label":c?`${l?`Collapse`:`Expand`} ${e.name}`:void 0,"aria-expanded":c?l:void 0,onClick:e=>{c&&(e.target.closest(`.react-flow__handle`)||ne(i))},onKeyDown:e=>{!c||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),ne(i))},onMouseEnter:()=>e.description&&S(a),onMouseLeave:()=>S(null),children:[u&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,id:`${e.name}-target`,className:`!w-3 !h-3 !bg-[rgb(var(--ec-card-bg))] !border-2 !border-[rgb(var(--ec-page-border))] !rounded-full !left-[-0px]`,style:hL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,id:`${e.name}-source`,className:`!w-3 !h-3 !bg-[rgb(var(--ec-card-bg))] !border-2 !border-[rgb(var(--ec-page-border))] !rounded-full !right-[-0px]`,style:zMe})]}),(0,k.jsxs)(`div`,{className:`flex-1 flex items-center justify-between gap-3 min-w-0`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0`,children:[c&&(0,k.jsx)(`span`,{className:`shrink-0 text-[rgb(var(--ec-page-text-muted))]`,"aria-hidden":`true`,children:l?(0,k.jsx)(NCe,{className:`h-3.5 w-3.5`}):(0,k.jsx)(V,{className:`h-3.5 w-3.5`})}),(0,k.jsx)(`span`,{className:`text-sm font-medium text-[rgb(var(--ec-page-text))] truncate`,children:e.name}),e.required&&(0,k.jsx)(`span`,{className:`text-red-500 text-xs`,children:`*`})]}),(0,k.jsx)(`span`,{className:`text-sm text-[rgb(var(--ec-page-text-muted))] font-mono shrink-0`,children:sPe(e)})]}),d&&(0,k.jsx)(`div`,{className:`absolute right-2 top-1/2 transform -translate-y-1/2`,children:(0,k.jsx)(`div`,{className:`w-2 h-2 bg-blue-500 rounded-full`,title:`References ${d}`})}),o&&e.description&&(0,k.jsxs)(`div`,{className:`absolute left-full ml-2 top-1/2 transform -translate-y-1/2 z-[9999] w-[200px] bg-gray-900 text-white text-xs rounded-lg py-2 px-3 pointer-events-none shadow-xl max-w-xl opacity-100`,children:[(0,k.jsx)(`div`,{className:`text-gray-200 whitespace-normal break-words`,children:e.description}),(0,k.jsx)(`div`,{className:`absolute right-full top-1/2 transform -translate-y-1/2 border-4 border-transparent border-r-gray-900`})]})]}),c&&l&&(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] border-t border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-content-hover)/0.18)]`,children:re(s,t+1,i)})]},a)});return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:RR(`bg-[rgb(var(--ec-card-bg))] border rounded-lg shadow-sm min-w-[200px]`,o?`border-amber-500/60`:`border-blue-400/50`),children:[(0,k.jsxs)(`div`,{className:RR(`relative px-4 py-2 rounded-t-lg border-b border-[rgb(var(--ec-page-border))]`,o?`bg-amber-500/20`:`bg-blue-500/15`),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,id:c,className:`!w-3 !h-3 !bg-[rgb(var(--ec-card-bg))] !border-2 !border-[rgb(var(--ec-page-border))] !rounded-full !left-[-0px]`,style:hL}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[b&&(0,k.jsx)(b,{className:`w-4 h-4 text-[rgb(var(--ec-page-text-muted))]`}),(0,k.jsx)(FL,{value:u,tooltipBorderColor:o?`#f59e0b`:`#60a5fa`,className:`font-semibold text-[rgb(var(--ec-page-text))] text-sm truncate`,children:u}),m&&(0,k.jsx)(`span`,{className:`text-xs bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded font-medium shrink-0`,children:`AR`})]}),s&&(0,k.jsxs)(`div`,{className:`text-xs text-[rgb(var(--ec-page-text-muted))] font-medium mt-1`,children:[`from `,s,` domain`]}),i===`full`&&(0,k.jsxs)(`div`,{className:`text-xs text-[rgb(var(--ec-page-text-muted))] mt-1`,children:[`v`,d]})]}),f.length>0?(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] relative`,children:re(f)}):(0,k.jsx)(`div`,{className:`px-4 py-3 text-sm text-[rgb(var(--ec-page-text-muted))] text-center`,children:`No properties defined`}),f.length===0&&(0,k.jsxs)(k.Fragment,{children:[r&&(0,k.jsx)(xS,{type:`target`,position:r}),n&&(0,k.jsx)(xS,{type:`source`,position:n})]})]})}),(0,k.jsx)(VO,{container:ee,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,onClick:e=>e.stopPropagation(),children:[(0,k.jsx)(UO,{asChild:!0,className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-accent-subtle))] rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/docs/entities/${a.data.id}/${d}`),children:`Read documentation`})}),(0,k.jsx)(UO,{asChild:!0,className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-accent-subtle))] rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/visualiser/entities/${a.data.id}/${d}`),children:`Focus node`})})]})})]})});function BR(...e){return e.filter(Boolean).join(` `)}var lPe=(0,p.memo)(function({data:e,sourcePosition:t,targetPosition:n}){let{mode:r,step:i,showTarget:a=!0,showSource:o=!0}=e,{summary:s,actor:{name:c}={}}=i,l=c||i.name||i.title||`Actor`;return(0,k.jsxs)(`div`,{className:BR(`rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] border-yellow-400`,r===`full`?`min-h-[5em]`:`min-h-[2em]`),style:cL,children:[(0,k.jsxs)(`div`,{className:BR(`bg-gradient-to-b from-yellow-400 to-yellow-600 relative flex flex-col items-center w-5 justify-between rounded-l-sm text-orange-100-500`,`border-r-[1px] border-yellow-500`),children:[(0,k.jsx)(ICe,{className:`w-4 h-4 opacity-90 text-white mt-1`}),r===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[9px] text-white font-bold uppercase mb-4`,style:lL,children:`ACTOR`})]}),(0,k.jsxs)(`div`,{className:`p-1 flex-1 min-w-0`,children:[n&&(0,k.jsx)(xS,{type:`target`,position:n}),t&&(0,k.jsx)(xS,{type:`source`,position:t}),(!s||r!==`full`)&&(0,k.jsxs)(`div`,{className:`h-full min-w-0`,children:[(0,k.jsx)(FL,{as:`div`,value:l,tooltipBorderColor:`#eab308`,className:`text-sm font-bold truncate pb-0.5`,children:l}),r===`simple`&&(0,k.jsx)(`div`,{className:`w-full text-right`,children:(0,k.jsx)(`span`,{className:` w-full text-[10px] text-[rgb(var(--ec-page-text-muted))] font-light block pt-0.5 pb-0.5 `,children:`Event`})})]}),s&&r===`full`&&(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`div`,{className:BR(r===`full`?`border-b border-[rgb(var(--ec-page-border))]`:``),children:(0,k.jsx)(FL,{as:`div`,value:l,tooltipBorderColor:`#eab308`,className:`text-xs font-bold truncate pb-0.5`,children:l})}),r===`full`&&(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] `,children:(0,k.jsx)(`div`,{className:`leading-3 py-1`,children:(0,k.jsx)(`span`,{className:`text-[8px] font-light`,children:s})})})]})]})]})});function VR(...e){return e.filter(Boolean).join(` `)}var HR=(0,p.memo)(function({data:e,sourcePosition:t,targetPosition:n}){let{mode:r,step:i}=e,{title:a,summary:o}=i;return(0,k.jsxs)(`div`,{className:VR(`rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] border-blue-400 min-h-[3em]`),style:cL,children:[(0,k.jsx)(`div`,{className:VR(`bg-gradient-to-b from-gray-700 to-gray-700 relative flex flex-col items-center w-5 justify-end rounded-l-sm text-orange-100-500`,`border-r-[1px] border-gray-500`),children:r===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[9px] text-white font-bold uppercase mb-4`,style:lL,children:`Step`})}),(0,k.jsxs)(`div`,{className:`p-1 flex-1 min-w-0`,children:[(0,k.jsx)(xS,{type:`target`,position:n||Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:t||Fy.Right,style:bL}),!o&&(0,k.jsx)(`div`,{className:`h-full flex items-center min-w-0`,children:(0,k.jsx)(FL,{as:`div`,value:a,tooltipBorderColor:`#60a5fa`,className:`text-sm font-bold truncate pb-0.5`,children:a})}),o&&(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`div`,{className:VR(r===`full`?`border-b border-[rgb(var(--ec-page-border))]`:``),children:(0,k.jsx)(FL,{as:`div`,value:a,tooltipBorderColor:`#60a5fa`,className:`text-xs font-bold truncate pb-0.5`,children:a})}),r===`full`&&(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] `,children:(0,k.jsx)(`div`,{className:`leading-3 py-1`,children:(0,k.jsx)(`span`,{className:`text-[8px] font-light`,children:o})})})]})]})]})}),uPe=(0,p.memo)(function({data:e,id:t}){let{mode:n,domain:r}=e,i=uS(),[a,o]=(0,p.useState)(new Set),{id:s,version:c,name:l,services:u=[],styles:d}=r.data,{icon:f=`RectangleGroupIcon`}=d||{},m=(0,p.useMemo)(()=>AR(f),[f]),h=(0,p.useMemo)(()=>AR(`ServerIcon`),[]),g=wL();return mC({onChange:(0,p.useCallback)(({nodes:e})=>{if(e.length===0){o(new Set);return}let n=e[0];if(!n){o(new Set);return}let r=i.getEdges(),a=new Set;r.forEach(e=>{if(e.source===n.id||e.target===n.id){if(e.source===t&&e.sourceHandle){let t=e.sourceHandle.replace(`-source`,``);a.add(t)}if(e.target===t&&e.targetHandle){let t=e.targetHandle.replace(`-target`,``);a.add(t)}}}),o(a)},[t,i])}),(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:`w-full rounded-lg border-2 border-yellow-400 bg-[rgb(var(--ec-card-bg))] shadow-lg`,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsxs)(`div`,{className:`bg-[rgb(var(--ec-domain-header-bg,253_224_71)/0.2)] px-3 py-2 flex items-center space-x-2`,children:[m&&(0,k.jsx)(m,{className:`w-4 h-4 text-yellow-500`}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-bold text-[rgb(var(--ec-page-text))]`,children:l}),(0,k.jsxs)(`span`,{className:`text-xs text-yellow-500 ml-2`,children:[`v`,c]})]})]}),n===`full`&&u.length>0&&(0,k.jsx)(`div`,{children:u.map((e,t)=>{let n=a.has(e.data.id);return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{asChild:!0,children:(0,k.jsxs)(`div`,{className:`relative flex items-center justify-between px-3 py-2 cursor-pointer ${t===u.length-1?``:`border-b border-[rgb(var(--ec-page-border))]`} ${n?`bg-pink-100 border-pink-300`:``}`,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,id:`${e.data.id}-target`,className:`!left-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`,style:pL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,id:`${e.data.id}-source`,className:`!right-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`,style:mL}),(0,k.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,k.jsx)(`div`,{className:`flex items-center justify-center w-5 h-5 bg-pink-500 rounded`,children:h&&(0,k.jsx)(h,{className:`w-3 h-3 text-white`})}),(0,k.jsx)(`span`,{className:`text-sm font-medium text-[rgb(var(--ec-page-text))]`,children:e.data.name||e.data.id})]}),(0,k.jsx)(`div`,{className:`flex items-center space-x-4 text-sm text-[rgb(var(--ec-page-text-muted))]`,children:(0,k.jsxs)(`span`,{className:`text-xs`,children:[`v`,e.data.version]})})]})}),(0,k.jsx)(VO,{container:g,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:[(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/docs/services/${e.data.id}/${e.data.version}`),children:`View Service Documentation`}),(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/visualiser/services/${e.data.id}/${e.data.version}`),children:`View Service Visualizer`})]})})]},`${e.data.id}-${t}`)})})]})}),(0,k.jsx)(VO,{container:g,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:[(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/docs/domains/${s}/${c}`),children:`View Domain Documentation`}),(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/visualiser/domains/${s}/${c}`),children:`View Domain Visualizer`})]})})]})});function UR(...e){return e.filter(Boolean).join(` `)}var dPe=(0,p.memo)(function({data:e}){let{system:t,mode:n=`simple`,servicesCount:r=0,entitiesCount:i=0,containersCount:a=0,messagesCount:o=0,isFocused:s=!1}=e,{id:c,version:l,name:u,summary:d,scope:f}=t,p=f===`external`,m=sL(),h=!!e.step,g=[{icon:sw,label:`Services`,count:r},{icon:rw,label:`Messages`,count:o},{icon:Rce,label:`Entities`,count:i},{icon:YC,label:`Data Stores`,count:a}].filter(e=>e.count>0),_=p?m?`rgba(148,163,184,0.12)`:`rgba(148,163,184,0.1)`:`var(--ec-system-node-bg, rgb(var(--ec-card-bg)))`,v=()=>{IMe(rL(`/visualiser/systems/${c}/${l}`))};return(0,k.jsxs)(`div`,{...h?{}:{role:`button`,tabIndex:0,onClick:v,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&v()},title:`Open the ${u} map`},className:UR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,!h&&`cursor-pointer`,p?`border-dashed border-violet-400`:`border-violet-500`),style:{background:_,boxShadow:`0 2px 12px rgba(139, 92, 246, 0.15)`},children:[s&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-violet-500`,children:[(0,k.jsx)($C,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),p?`External System`:`System`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:u,tooltipBorderColor:`#8b5cf6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:u}),l&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,l,`)`]})]}),n===`full`&&d&&(0,k.jsx)(`div`,{className:UR(`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`),style:dL,title:d,children:d}),g.length>0&&(0,k.jsx)(`div`,{className:`mt-2 flex items-center gap-3 border-t border-[rgb(var(--ec-page-border))] pt-1.5`,children:g.map(({icon:e,label:t,count:n})=>(0,k.jsxs)(`div`,{title:`${n} ${t}`,className:`flex items-center gap-1 text-[10px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(e,{className:`w-3 h-3 text-violet-500`,strokeWidth:2}),(0,k.jsx)(`span`,{className:`font-medium`,children:n})]},t))})]})]})}),fPe={width:`100%`,height:`100%`,borderRadius:12,border:`2px solid var(--ec-group-border, #c4b5fd)`,backgroundColor:`var(--ec-group-bg, rgba(250, 248, 255, 0.35))`,position:`relative`,overflow:`visible`},WR={position:`absolute`,top:0,left:0,right:0,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,background:`var(--ec-group-header-bg, rgba(237, 233, 254, 0.7))`,borderBottom:`1px solid var(--ec-group-border, #c4b5fd)`,overflow:`visible`},pPe={position:`absolute`,top:6,right:10,opacity:.12,transform:`rotate(12deg)`,pointerEvents:`none`},mPe={position:`absolute`,top:-14,left:12,width:32,height:32,borderRadius:`50%`,background:`#7c3aed`,border:`2px solid #a78bfa`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 1px 3px rgba(0,0,0,0.1)`,zIndex:10},GR={display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,padding:`0 40px`,minWidth:0},KR={display:`flex`,alignItems:`center`,gap:8,minWidth:0},hPe={fontSize:15,fontWeight:800,color:`var(--ec-group-text, #5b21b6)`,letterSpacing:`0.06em`,textTransform:`uppercase`,whiteSpace:`nowrap`},qR={fontSize:9,fontWeight:500,color:`#a78bfa`},JR={color:`#7c3aed`},gPe={color:`white`},_Pe=(0,p.memo)(function({data:e}){let{domain:t}=e;return(0,k.jsx)(`div`,{style:fPe,children:(0,k.jsxs)(`div`,{style:WR,children:[(0,k.jsx)(`div`,{style:pPe,children:(0,k.jsx)(UC,{size:28,strokeWidth:2,style:JR})}),(0,k.jsx)(`div`,{style:mPe,children:(0,k.jsx)(UC,{size:16,strokeWidth:2.5,style:gPe})}),(0,k.jsx)(`div`,{style:GR,children:(0,k.jsxs)(`div`,{style:KR,children:[(0,k.jsx)(FL,{value:t?.name||`Domain`,tooltipBorderColor:`#7c3aed`,className:`truncate`,style:hPe,children:t?.name||`Domain`}),t?.version&&(0,k.jsxs)(`span`,{style:qR,children:[`v`,t.version]})]})})]})})}),vPe={blue:{border:`border-blue-500`,badge:`bg-blue-500`,ring:`ring-2 ring-blue-400/60 ring-offset-2`,shadow:`rgba(59, 130, 246, 0.15)`,glow:`linear-gradient(135deg, #3b82f6, #2563eb)`,pillBorder:`#3b82f6`},teal:{border:`border-teal-500`,badge:`bg-teal-500`,ring:`ring-2 ring-teal-400/60 ring-offset-2`,shadow:`rgba(20, 184, 166, 0.15)`,glow:`linear-gradient(135deg, #14b8a6, #0f766e)`,pillBorder:`#14b8a6`},red:{border:`border-red-500`,badge:`bg-red-500`,ring:`ring-2 ring-red-400/60 ring-offset-2`,shadow:`rgba(239, 68, 68, 0.15)`,glow:`linear-gradient(135deg, #ef4444, #b91c1c)`,pillBorder:`#ef4444`},green:{border:`border-green-500`,badge:`bg-green-500`,ring:`ring-2 ring-green-400/60 ring-offset-2`,shadow:`rgba(34, 197, 94, 0.15)`,glow:`linear-gradient(135deg, #22c55e, #15803d)`,pillBorder:`#22c55e`},purple:{border:`border-purple-500`,badge:`bg-purple-500`,ring:`ring-2 ring-purple-400/60 ring-offset-2`,shadow:`rgba(168, 85, 247, 0.15)`,glow:`linear-gradient(135deg, #a855f7, #7e22ce)`,pillBorder:`#a855f7`},orange:{border:`border-orange-500`,badge:`bg-orange-500`,ring:`ring-2 ring-orange-400/60 ring-offset-2`,shadow:`rgba(251, 146, 60, 0.15)`,glow:`linear-gradient(135deg, #fb923c, #ea580c)`,pillBorder:`#fb923c`},pink:{border:`border-pink-500`,badge:`bg-pink-500`,ring:`ring-2 ring-pink-400/60 ring-offset-2`,shadow:`rgba(236, 72, 153, 0.15)`,glow:`linear-gradient(135deg, #ec4899, #be185d)`,pillBorder:`#ec4899`},yellow:{border:`border-yellow-500`,badge:`bg-yellow-500`,ring:`ring-2 ring-yellow-400/60 ring-offset-2`,shadow:`rgba(234, 179, 8, 0.15)`,glow:`linear-gradient(135deg, #eab308, #a16207)`,pillBorder:`#eab308`},gray:{border:`border-gray-500`,badge:`bg-gray-500`,ring:`ring-2 ring-gray-400/60 ring-offset-2`,shadow:`rgba(107, 114, 128, 0.15)`,glow:`linear-gradient(135deg, #6b7280, #374151)`,pillBorder:`#6b7280`},indigo:{border:`border-indigo-500`,badge:`bg-indigo-500`,ring:`ring-2 ring-indigo-400/60 ring-offset-2`,shadow:`rgba(99, 102, 241, 0.15)`,glow:`linear-gradient(135deg, #6366f1, #4338ca)`,pillBorder:`#6366f1`},cyan:{border:`border-cyan-500`,badge:`bg-cyan-500`,ring:`ring-2 ring-cyan-400/60 ring-offset-2`,shadow:`rgba(6, 182, 212, 0.15)`,glow:`linear-gradient(135deg, #06b6d4, #0e7490)`,pillBorder:`#06b6d4`},slate:{border:`border-slate-500`,badge:`bg-slate-500`,ring:`ring-2 ring-slate-400/60 ring-offset-2`,shadow:`rgba(100, 116, 139, 0.15)`,glow:`linear-gradient(135deg, #64748b, #334155)`,pillBorder:`#64748b`},amber:{border:`border-amber-500`,badge:`bg-amber-500`,ring:`ring-2 ring-amber-400/60 ring-offset-2`,shadow:`rgba(245, 158, 11, 0.15)`,glow:`linear-gradient(135deg, #f59e0b, #b45309)`,pillBorder:`#f59e0b`},emerald:{border:`border-emerald-500`,badge:`bg-emerald-500`,ring:`ring-2 ring-emerald-400/60 ring-offset-2`,shadow:`rgba(16, 185, 129, 0.15)`,glow:`linear-gradient(135deg, #10b981, #047857)`,pillBorder:`#10b981`},violet:{border:`border-violet-500`,badge:`bg-violet-500`,ring:`ring-2 ring-violet-400/60 ring-offset-2`,shadow:`rgba(139, 92, 246, 0.15)`,glow:`linear-gradient(135deg, #8b5cf6, #6d28d9)`,pillBorder:`#8b5cf6`},rose:{border:`border-rose-500`,badge:`bg-rose-500`,ring:`ring-2 ring-rose-400/60 ring-offset-2`,shadow:`rgba(244, 63, 94, 0.15)`,glow:`linear-gradient(135deg, #f43f5e, #be123c)`,pillBorder:`#f43f5e`}};function yPe(...e){return e.filter(Boolean).join(` `)}function bPe(e){return vPe[e||`blue`]??vPe.blue}function YR({side:e,gradient:t}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:t,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}})}var xPe=(0,p.memo)(function({data:e,selected:t}){let{mode:n,custom:r,step:i}=e,{color:a=`blue`,title:o=i?.title||`Custom`,icon:s=`CubeIcon`,type:c=`Custom`,summary:l=i?.summary||``,url:u,properties:d=GMe,menu:f=_L,height:m=5}=r,h=bPe(a),g=(0,p.useMemo)(()=>iMe[s]||bP,[s]),_=wL(),v=vC({handleType:`target`}),y=vC({handleType:`source`}),b=Object.entries(d),x=u?[{label:`Open ${c.toLowerCase()}`,url:u},...f]:f;return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:yPe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,t?h.ring:``,h.border),style:{background:`var(--ec-custom-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px ${h.shadow}`,minHeight:n===`full`?`${m}em`:void 0},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),v.length>0&&(0,k.jsx)(YR,{side:`left`,gradient:h.glow}),y.length>0&&(0,k.jsx)(YR,{side:`right`,gradient:h.glow}),(0,k.jsx)(`div`,{className:`absolute -top-3 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:yPe(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,h.badge),children:[g&&(0,k.jsx)(g,{className:`w-2.5 h-2.5`,"aria-hidden":!0}),c]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,k.jsx)(FL,{value:o,tooltipBorderColor:h.pillBorder,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:o})}),n===`full`&&l&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:l,children:l}),n===`full`&&b.length>0&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-[rgb(var(--ec-page-border))] grid grid-cols-2 gap-x-2 gap-y-1`,children:b.map(([e,t])=>(0,k.jsxs)(`div`,{className:`min-w-0`,children:[(0,k.jsx)(`div`,{className:`text-[7px] font-bold uppercase tracking-wide text-[rgb(var(--ec-page-text-muted))] truncate`,children:e}),typeof t==`string`&&t.startsWith(`http`)?(0,k.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,className:`block text-[8px] text-blue-500 underline truncate`,title:t,children:t}):(0,k.jsx)(`div`,{className:`text-[8px] text-[rgb(var(--ec-page-text))] truncate`,title:String(t),children:t})]},e))})]})]})}),x.length>0&&(0,k.jsx)(VO,{container:_,children:(0,k.jsx)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:x.map(e=>(0,k.jsx)(UO,{asChild:!0,className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`text-[rgb(var(--ec-page-text))] no-underline`,children:e.label})},`${e.label}-${e.url||``}`))})})]})}),SPe=(0,p.memo)(function(e){return(0,k.jsxs)(`div`,{className:`relative`,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:HMe,className:`bg-gray-500`}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:HMe,className:`bg-gray-500`}),(0,k.jsx)(CR,{...e})]})});function CPe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #6366f1, #4338ca)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.dataProduct,pointerEvents:`none`}})}function XR(...e){return e.filter(Boolean).join(` `)}function wPe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.dataProduct,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:XR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-1`:``),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 40%, #6366f1 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(99, 102, 241, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#4338ca transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(Xce,{className:`w-3 h-3 text-indigo-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-indigo-900/50 uppercase tracking-widest`,children:`Data Product`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#6366f1`,className:XR(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-indigo-950/40 line-through`:`text-indigo-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-indigo-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-indigo-900/10 text-[9px] text-indigo-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function TPe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.dataProduct,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0,u=vC({handleType:`target`}),d=vC({handleType:`source`}),f=sL(),p=f?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:XR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${f?`border-indigo-400`:`border-indigo-400/60`}`:`border-indigo-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${p} 6px, ${p} 7px), var(--ec-dp-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), var(--ec-dp-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-dp-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(99, 102, 241, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),u.length>0&&(0,k.jsx)(CPe,{side:`left`}),d.length>0&&(0,k.jsx)(CPe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:XR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-indigo-500`),children:[(0,k.jsx)(Xce,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Data Product`,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#6366f1`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}var EPe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(wPe,{...e}):(0,k.jsx)(TPe,{...e})}),DPe={events:hw,commands:cw,queries:jce},OPe={borderRadius:12,border:`2px solid rgba(139, 92, 246, 0.4)`,background:`var(--ec-message-group-node-bg, rgb(var(--ec-card-bg)))`,pointerEvents:`none`},kPe=(0,p.memo)(function(e){let{groupName:t,messageCount:n}=e.data,r=sL(),i=vC({handleType:`target`}),a=vC({handleType:`source`}),o=n>=3?3:n,s=(0,p.useMemo)(()=>{let t={};return e.data.messages.forEach(({message:e})=>{let n=e?.collection||`unknown`;t[n]=(t[n]||0)+1}),t},[e.data.messages]);return(0,k.jsxs)(`div`,{className:`relative`,style:{isolation:`isolate`},children:[o>=3&&(0,k.jsx)(`div`,{style:{...OPe,position:`absolute`,inset:0,transform:`translate(6px, 6px)`,opacity:.5}}),o>=2&&(0,k.jsx)(`div`,{style:{...OPe,position:`absolute`,inset:0,transform:`translate(3px, 3px)`,opacity:.7}}),(0,k.jsxs)(`div`,{className:`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible ${e.selected?`ring-2 ring-violet-400/60 ring-offset-2`:``} border-violet-500`,style:{background:`var(--ec-message-group-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(139, 92, 246, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),i.length>0&&(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,left:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #a78bfa, #7c3aed)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}}),a.length>0&&(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,right:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #a78bfa, #7c3aed)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-violet-600`,children:[(0,k.jsx)(zC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Group`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(FL,{as:`div`,value:t,tooltipBorderColor:`#8b5cf6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t}),(0,k.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-2`,children:[(0,k.jsxs)(`span`,{className:`text-[10px] font-medium px-1.5 py-0.5 rounded`,style:{background:r?`rgba(139, 92, 246, 0.2)`:`rgba(139, 92, 246, 0.1)`,color:r?`#c4b5fd`:`#6d28d9`},children:[n,` `,n===1?`message`:`messages`]}),(0,k.jsx)(`div`,{className:`flex items-center gap-1`,children:Object.entries(s).map(([e,t])=>(0,k.jsxs)(`span`,{className:`flex items-center gap-0.5 text-[9px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(DPe[e]||jce,{className:`w-2.5 h-2.5`,strokeWidth:2}),t]},e))})]}),(0,k.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1 text-[8px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(tw,{className:`w-2.5 h-2.5`}),`Click to explore`]})]})]})]})}),ZR={width:`100%`,height:`100%`,borderRadius:12,border:`2px solid rgba(139, 92, 246, 0.5)`,backgroundColor:`rgba(139, 92, 246, 0.05)`,position:`relative`,overflow:`visible`},APe={position:`absolute`,top:0,left:0,right:0,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,background:`rgba(139, 92, 246, 0.12)`,borderBottom:`1px solid rgba(139, 92, 246, 0.3)`,overflow:`visible`},jPe={position:`absolute`,top:-10,left:12,display:`inline-flex`,alignItems:`center`,gap:3,padding:`2px 8px`,borderRadius:4,background:`#7c3aed`,boxShadow:`0 1px 3px rgba(0,0,0,0.15)`,zIndex:10,fontSize:8,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`white`},MPe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,height:`100%`,padding:`0 12px 0 14px`,gap:12},NPe={fontSize:11,fontWeight:700,color:`var(--ec-group-text, #5b21b6)`,letterSpacing:`0.04em`,textTransform:`uppercase`,whiteSpace:`nowrap`},PPe={background:`#7c3aed`,border:`1px solid #a78bfa`,borderRadius:6,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:4,fontSize:10,fontWeight:600,color:`white`},QR=(0,p.memo)(function({data:e}){let{groupName:t,messageCount:n}=e;return(0,k.jsx)(`div`,{style:ZR,children:(0,k.jsxs)(`div`,{style:APe,children:[(0,k.jsxs)(`div`,{style:jPe,children:[(0,k.jsx)(zC,{size:10,strokeWidth:2.5}),`Group`]}),(0,k.jsxs)(`div`,{style:MPe,children:[(0,k.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,minWidth:0,flex:1},children:(0,k.jsx)(FL,{value:t||`Group`,tooltipBorderColor:`#8b5cf6`,className:`truncate`,style:NPe,children:t||`Group`})}),(0,k.jsxs)(`button`,{style:PPe,className:`ec-collapse-group-btn nodrag nopan`,onMouseDown:e=>e.stopPropagation(),children:[(0,k.jsx)(Jce,{size:12,strokeWidth:2.5}),`Collapse`]})]})]})})}),$R=`ec-cross-domain`,ez=e=>!!e?.crossDomain;function FPe({zIndex:e,crossDomain:t=!1,label:n,labelX:r,labelY:i,style:a}){if(n==null||n===``)return null;let o=String(n).split(`
|
|
178
|
+
... Falling back to non-web worker version.`);if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){"use strict";t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})})),kMe=c({default:()=>QI}),ZI,QI,$I=o((()=>{ZI=async()=>{throw Error(`The Mermaid view is not available here`)},QI={initialize:()=>{},render:ZI,parse:ZI}})),eL=s(((e,t)=>{t.exports=(function(){var e=``,t,n,r,i=[],a={passive:!0},o={passive:!1};window.addEventListener?(t=`addEventListener`,n=`removeEventListener`):(t=`attachEvent`,n=`detachEvent`,e=`on`),r=`onwheel`in document.createElement(`div`)?`wheel`:document.onmousewheel===void 0?`DOMMouseScroll`:`mousewheel`;function s(e,t){var n=function(e){!e&&(e=window.event);var n={originalEvent:e,target:e.target||e.srcElement,type:`wheel`,deltaMode:e.type==`MozMousePixelScroll`?0:1,deltaX:0,delatZ:0,preventDefault:function(){e.preventDefault?e.preventDefault():e.returnValue=!1}};return r==`mousewheel`?(n.deltaY=-1/40*e.wheelDelta,e.wheelDeltaX&&(n.deltaX=-1/40*e.wheelDeltaX)):n.deltaY=e.detail,t(n)};return i.push({element:e,fn:n}),n}function c(e){for(var t=0;t<i.length;t++)if(i[t].element===e)return i[t].fn;return function(){}}function l(e){for(var t=0;t<i.length;t++)if(i[t].element===e)return i.splice(t,1)}function u(n,i,c,l){var u=r===`wheel`?c:s(n,c);n[t](e+i,u,l?a:o)}function d(t,i,s,u){var d=r===`wheel`?s:c(t);t[n](e+i,d,u?a:o),l(t)}function f(e,t,n){u(e,r,t,n),r==`DOMMouseScroll`&&u(e,`MozMousePixelScroll`,t,n)}function p(e,t,n){d(e,r,t,n),r==`DOMMouseScroll`&&d(e,`MozMousePixelScroll`,t,n)}return{on:f,off:p}})()})),tL=s(((e,t)=>{t.exports={extend:function(e,t){for(var n in e||={},t)this.isObject(t[n])?e[n]=this.extend(e[n],t[n]):e[n]=t[n];return e},isElement:function(e){return e instanceof HTMLElement||e instanceof SVGElement||e instanceof SVGSVGElement||e&&typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.nodeName==`string`},isObject:function(e){return Object.prototype.toString.call(e)===`[object Object]`},isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},getSvg:function(e){var t,n;if(this.isElement(e))t=e;else if(typeof e==`string`||e instanceof String){if(t=document.querySelector(e),!t)throw Error(`Provided selector did not find any elements. Selector: `+e)}else throw Error(`Provided selector is not an HTML object nor String`);if(t.tagName.toLowerCase()===`svg`)n=t;else if(t.tagName.toLowerCase()===`object`)n=t.contentDocument.documentElement;else if(t.tagName.toLowerCase()===`embed`)n=t.getSVGDocument().documentElement;else throw t.tagName.toLowerCase()===`img`?Error(`Cannot script an SVG in an "img" element. Please use an "object" element or an in-line SVG.`):Error(`Cannot get SVG.`);return n},proxy:function(e,t){return function(){return e.apply(t,arguments)}},getType:function(e){return Object.prototype.toString.apply(e).replace(/^\[object\s/,``).replace(/\]$/,``)},mouseAndTouchNormalize:function(e,t){if(e.clientX===void 0||e.clientX===null)if(e.clientX=0,e.clientY=0,e.touches!==void 0&&e.touches.length){if(e.touches[0].clientX!==void 0)e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY;else if(e.touches[0].pageX!==void 0){var n=t.getBoundingClientRect();e.clientX=e.touches[0].pageX-n.left,e.clientY=e.touches[0].pageY-n.top}}else e.originalEvent!==void 0&&e.originalEvent.clientX!==void 0&&(e.clientX=e.originalEvent.clientX,e.clientY=e.originalEvent.clientY)},isDblClick:function(e,t){if(e.detail===2)return!0;if(t!=null){var n=e.timeStamp-t.timeStamp,r=Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2);return n<250&&r<10}return!1},now:Date.now||function(){return new Date().getTime()},throttle:function(e,t,n){var r=this,i,a,o,s=null,c=0;n||={};var l=function(){c=n.leading===!1?0:r.now(),s=null,o=e.apply(i,a),s||(i=a=null)};return function(){var u=r.now();!c&&n.leading===!1&&(c=u);var d=t-(u-c);return i=this,a=arguments,d<=0||d>t?(clearTimeout(s),s=null,c=u,o=e.apply(i,a),s||(i=a=null)):!s&&n.trailing!==!1&&(s=setTimeout(l,d)),o}},createRequestAnimationFrame:function(e){var t=null;return e!==`auto`&&e<60&&e>1&&(t=Math.floor(1e3/e)),t===null?window.requestAnimationFrame||n(33):n(t)}};function n(e){return function(t){window.setTimeout(t,e)}}})),nL=s(((e,t)=>{var n=tL(),r=`unknown`;document.documentMode&&(r=`ie`),t.exports={svgNS:`http://www.w3.org/2000/svg`,xmlNS:`http://www.w3.org/XML/1998/namespace`,xmlnsNS:`http://www.w3.org/2000/xmlns/`,xlinkNS:`http://www.w3.org/1999/xlink`,evNS:`http://www.w3.org/2001/xml-events`,getBoundingClientRectNormalized:function(e){if(e.clientWidth&&e.clientHeight)return{width:e.clientWidth,height:e.clientHeight};if(e.getBoundingClientRect())return e.getBoundingClientRect();throw Error(`Cannot get BoundingClientRect for SVG.`)},getOrCreateViewport:function(e,t){var r=null;if(r=n.isElement(t)?t:e.querySelector(t),!r){var i=Array.prototype.slice.call(e.childNodes||e.children).filter(function(e){return e.nodeName!==`defs`&&e.nodeName!==`#text`});i.length===1&&i[0].nodeName===`g`&&i[0].getAttribute(`transform`)===null&&(r=i[0])}if(!r){var a=`viewport-`+new Date().toISOString().replace(/\D/g,``);r=document.createElementNS(this.svgNS,`g`),r.setAttribute(`id`,a);var o=e.childNodes||e.children;if(o&&o.length>0)for(var s=o.length;s>0;s--)o[o.length-s].nodeName!==`defs`&&r.appendChild(o[o.length-s]);e.appendChild(r)}var c=[];return r.getAttribute(`class`)&&(c=r.getAttribute(`class`).split(` `)),~c.indexOf(`svg-pan-zoom_viewport`)||(c.push(`svg-pan-zoom_viewport`),r.setAttribute(`class`,c.join(` `))),r},setupSvgAttributes:function(e){if(e.setAttribute(`xmlns`,this.svgNS),e.setAttributeNS(this.xmlnsNS,`xmlns:xlink`,this.xlinkNS),e.setAttributeNS(this.xmlnsNS,`xmlns:ev`,this.evNS),e.parentNode!==null){var t=e.getAttribute(`style`)||``;t.toLowerCase().indexOf(`overflow`)===-1&&e.setAttribute(`style`,`overflow: hidden; `+t)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:n.throttle(function(){for(var e=document.querySelectorAll(`defs`),t=e.length,n=0;n<t;n++){var r=e[n];r.parentNode.insertBefore(r,r)}},e?e.internetExplorerRedisplayInterval:null),setCTM:function(e,t,n){var i=this,a=`matrix(`+t.a+`,`+t.b+`,`+t.c+`,`+t.d+`,`+t.e+`,`+t.f+`)`;e.setAttributeNS(null,`transform`,a),`transform`in e.style?e.style.transform=a:`-ms-transform`in e.style?e.style[`-ms-transform`]=a:`-webkit-transform`in e.style&&(e.style[`-webkit-transform`]=a),r===`ie`&&n&&(n.parentNode.insertBefore(n,n),window.setTimeout(function(){i.refreshDefsGlobal()},i.internetExplorerRedisplayInterval))},getEventPoint:function(e,t){var r=t.createSVGPoint();return n.mouseAndTouchNormalize(e,t),r.x=e.clientX,r.y=e.clientY,r},getSvgCenterPoint:function(e,t,n){return this.createSVGPoint(e,t/2,n/2)},createSVGPoint:function(e,t,n){var r=e.createSVGPoint();return r.x=t,r.y=n,r}}})),AMe=s(((e,t)=>{var n=nL();t.exports={enable:function(e){var t=e.svg.querySelector(`defs`);if(t||(t=document.createElementNS(n.svgNS,`defs`),e.svg.appendChild(t)),!t.querySelector(`style#svg-pan-zoom-controls-styles`)){var r=document.createElementNS(n.svgNS,`style`);r.setAttribute(`id`,`svg-pan-zoom-controls-styles`),r.setAttribute(`type`,`text/css`),r.textContent=`.svg-pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { fill-opacity: 0.8; } .svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; } .svg-pan-zoom-control-background { fill-opacity: 0.8; }`,t.appendChild(r)}var i=document.createElementNS(n.svgNS,`g`);i.setAttribute(`id`,`svg-pan-zoom-controls`),i.setAttribute(`transform`,`translate(`+(e.width-70)+` `+(e.height-76)+`) scale(0.75)`),i.setAttribute(`class`,`svg-pan-zoom-control`),i.appendChild(this._createZoomIn(e)),i.appendChild(this._createZoomReset(e)),i.appendChild(this._createZoomOut(e)),e.svg.appendChild(i),e.controlIcons=i},_createZoomIn:function(e){var t=document.createElementNS(n.svgNS,`g`);t.setAttribute(`id`,`svg-pan-zoom-zoom-in`),t.setAttribute(`transform`,`translate(30.5 5) scale(0.015)`),t.setAttribute(`class`,`svg-pan-zoom-control`),t.addEventListener(`click`,function(){e.getPublicInstance().zoomIn()},!1),t.addEventListener(`touchstart`,function(){e.getPublicInstance().zoomIn()},!1);var r=document.createElementNS(n.svgNS,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,`1500`),r.setAttribute(`height`,`1400`),r.setAttribute(`class`,`svg-pan-zoom-control-background`),t.appendChild(r);var i=document.createElementNS(n.svgNS,`path`);return i.setAttribute(`d`,`M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z`),i.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(i),t},_createZoomReset:function(e){var t=document.createElementNS(n.svgNS,`g`);t.setAttribute(`id`,`svg-pan-zoom-reset-pan-zoom`),t.setAttribute(`transform`,`translate(5 35) scale(0.4)`),t.setAttribute(`class`,`svg-pan-zoom-control`),t.addEventListener(`click`,function(){e.getPublicInstance().reset()},!1),t.addEventListener(`touchstart`,function(){e.getPublicInstance().reset()},!1);var r=document.createElementNS(n.svgNS,`rect`);r.setAttribute(`x`,`2`),r.setAttribute(`y`,`2`),r.setAttribute(`width`,`182`),r.setAttribute(`height`,`58`),r.setAttribute(`class`,`svg-pan-zoom-control-background`),t.appendChild(r);var i=document.createElementNS(n.svgNS,`path`);i.setAttribute(`d`,`M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z`),i.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(i);var a=document.createElementNS(n.svgNS,`path`);return a.setAttribute(`d`,`M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z`),a.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(a),t},_createZoomOut:function(e){var t=document.createElementNS(n.svgNS,`g`);t.setAttribute(`id`,`svg-pan-zoom-zoom-out`),t.setAttribute(`transform`,`translate(30.5 70) scale(0.015)`),t.setAttribute(`class`,`svg-pan-zoom-control`),t.addEventListener(`click`,function(){e.getPublicInstance().zoomOut()},!1),t.addEventListener(`touchstart`,function(){e.getPublicInstance().zoomOut()},!1);var r=document.createElementNS(n.svgNS,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,`1500`),r.setAttribute(`height`,`1400`),r.setAttribute(`class`,`svg-pan-zoom-control-background`),t.appendChild(r);var i=document.createElementNS(n.svgNS,`path`);return i.setAttribute(`d`,`M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z`),i.setAttribute(`class`,`svg-pan-zoom-control-element`),t.appendChild(i),t},disable:function(e){e.controlIcons&&=(e.controlIcons.parentNode.removeChild(e.controlIcons),null)}}})),jMe=s(((e,t)=>{var n=nL(),r=tL(),i=function(e,t){this.init(e,t)};i.prototype.init=function(e,t){this.viewport=e,this.options=t,this.originalState={zoom:1,x:0,y:0},this.activeState={zoom:1,x:0,y:0},this.updateCTMCached=r.proxy(this.updateCTM,this),this.requestAnimationFrame=r.createRequestAnimationFrame(this.options.refreshRate),this.viewBox={x:0,y:0,width:0,height:0},this.cacheViewBox();var n=this.processCTM();this.setCTM(n),this.updateCTM()},i.prototype.cacheViewBox=function(){var e=this.options.svg.getAttribute(`viewBox`);if(e){var t=e.split(/[\s\,]/).filter(function(e){return e}).map(parseFloat);this.viewBox.x=t[0],this.viewBox.y=t[1],this.viewBox.width=t[2],this.viewBox.height=t[3];var n=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height);this.activeState.zoom=n,this.activeState.x=(this.options.width-this.viewBox.width*n)/2,this.activeState.y=(this.options.height-this.viewBox.height*n)/2,this.updateCTMOnNextFrame(),this.options.svg.removeAttribute(`viewBox`)}else this.simpleViewBoxCache()},i.prototype.simpleViewBoxCache=function(){var e=this.viewport.getBBox();this.viewBox.x=e.x,this.viewBox.y=e.y,this.viewBox.width=e.width,this.viewBox.height=e.height},i.prototype.getViewBox=function(){return r.extend({},this.viewBox)},i.prototype.processCTM=function(){var e=this.getCTM();if(this.options.fit||this.options.contain){var t=this.options.fit?Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height):Math.max(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height);e.a=t,e.d=t,e.e=-this.viewBox.x*t,e.f=-this.viewBox.y*t}if(this.options.center){var n=(this.options.width-(this.viewBox.width+this.viewBox.x*2)*e.a)*.5,r=(this.options.height-(this.viewBox.height+this.viewBox.y*2)*e.a)*.5;e.e=n,e.f=r}return this.originalState.zoom=e.a,this.originalState.x=e.e,this.originalState.y=e.f,e},i.prototype.getOriginalState=function(){return r.extend({},this.originalState)},i.prototype.getState=function(){return r.extend({},this.activeState)},i.prototype.getZoom=function(){return this.activeState.zoom},i.prototype.getRelativeZoom=function(){return this.activeState.zoom/this.originalState.zoom},i.prototype.computeRelativeZoom=function(e){return e/this.originalState.zoom},i.prototype.getPan=function(){return{x:this.activeState.x,y:this.activeState.y}},i.prototype.getCTM=function(){var e=this.options.svg.createSVGMatrix();return e.a=this.activeState.zoom,e.b=0,e.c=0,e.d=this.activeState.zoom,e.e=this.activeState.x,e.f=this.activeState.y,e},i.prototype.setCTM=function(e){var t=this.isZoomDifferent(e),n=this.isPanDifferent(e);if(t||n){if(t&&(this.options.beforeZoom(this.getRelativeZoom(),this.computeRelativeZoom(e.a))===!1?(e.a=e.d=this.activeState.zoom,t=!1):(this.updateCache(e),this.options.onZoom(this.getRelativeZoom()))),n){var i=this.options.beforePan(this.getPan(),{x:e.e,y:e.f}),a=!1,o=!1;i===!1?(e.e=this.getPan().x,e.f=this.getPan().y,a=o=!0):r.isObject(i)&&(i.x===!1?(e.e=this.getPan().x,a=!0):r.isNumber(i.x)&&(e.e=i.x),i.y===!1?(e.f=this.getPan().y,o=!0):r.isNumber(i.y)&&(e.f=i.y)),a&&o||!this.isPanDifferent(e)?n=!1:(this.updateCache(e),this.options.onPan(this.getPan()))}(t||n)&&this.updateCTMOnNextFrame()}},i.prototype.isZoomDifferent=function(e){return this.activeState.zoom!==e.a},i.prototype.isPanDifferent=function(e){return this.activeState.x!==e.e||this.activeState.y!==e.f},i.prototype.updateCache=function(e){this.activeState.zoom=e.a,this.activeState.x=e.e,this.activeState.y=e.f},i.prototype.pendingUpdate=!1,i.prototype.updateCTMOnNextFrame=function(){this.pendingUpdate||(this.pendingUpdate=!0,this.requestAnimationFrame.call(window,this.updateCTMCached))},i.prototype.updateCTM=function(){var e=this.getCTM();n.setCTM(this.viewport,e,this.defs),this.pendingUpdate=!1,this.options.onUpdatedCTM&&this.options.onUpdatedCTM(e)},t.exports=function(e,t){return new i(e,t)}})),MMe=s(((e,t)=>{var n=eL(),r=AMe(),i=tL(),a=nL(),o=jMe(),s=function(e,t){this.init(e,t)},c={viewportSelector:`.svg-pan-zoom_viewport`,panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.1,minZoom:.5,maxZoom:10,fit:!0,contain:!1,center:!0,refreshRate:`auto`,beforeZoom:null,onZoom:null,beforePan:null,onPan:null,customEventsHandler:null,eventsListenerElement:null,onUpdatedCTM:null},l={passive:!0};s.prototype.init=function(e,t){var n=this;this.svg=e,this.defs=e.querySelector(`defs`),a.setupSvgAttributes(this.svg),this.options=i.extend(i.extend({},c),t),this.state=`none`;var s=a.getBoundingClientRectNormalized(e);this.width=s.width,this.height=s.height,this.viewport=o(a.getOrCreateViewport(this.svg,this.options.viewportSelector),{svg:this.svg,width:this.width,height:this.height,fit:this.options.fit,contain:this.options.contain,center:this.options.center,refreshRate:this.options.refreshRate,beforeZoom:function(e,t){if(n.viewport&&n.options.beforeZoom)return n.options.beforeZoom(e,t)},onZoom:function(e){if(n.viewport&&n.options.onZoom)return n.options.onZoom(e)},beforePan:function(e,t){if(n.viewport&&n.options.beforePan)return n.options.beforePan(e,t)},onPan:function(e){if(n.viewport&&n.options.onPan)return n.options.onPan(e)},onUpdatedCTM:function(e){if(n.viewport&&n.options.onUpdatedCTM)return n.options.onUpdatedCTM(e)}});var l=this.getPublicInstance();l.setBeforeZoom(this.options.beforeZoom),l.setOnZoom(this.options.onZoom),l.setBeforePan(this.options.beforePan),l.setOnPan(this.options.onPan),l.setOnUpdatedCTM(this.options.onUpdatedCTM),this.options.controlIconsEnabled&&r.enable(this),this.lastMouseWheelEventTime=Date.now(),this.setupHandlers()},s.prototype.setupHandlers=function(){var e=this,t=null;if(this.eventListeners={mousedown:function(n){var r=e.handleMouseDown(n,t);return t=n,r},touchstart:function(n){var r=e.handleMouseDown(n,t);return t=n,r},mouseup:function(t){return e.handleMouseUp(t)},touchend:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)},touchmove:function(t){return e.handleMouseMove(t)},mouseleave:function(t){return e.handleMouseUp(t)},touchleave:function(t){return e.handleMouseUp(t)},touchcancel:function(t){return e.handleMouseUp(t)}},this.options.customEventsHandler!=null){this.options.customEventsHandler.init({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});var n=this.options.customEventsHandler.haltEventListeners;if(n&&n.length)for(var r=n.length-1;r>=0;r--)this.eventListeners.hasOwnProperty(n[r])&&delete this.eventListeners[n[r]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],this.options.preventMouseEventsDefault?!1:l);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},s.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var e=this;this.wheelListener=function(t){return e.handleMouseWheel(t)};var t=!this.options.preventMouseEventsDefault;n.on(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!0}},s.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var e=!this.options.preventMouseEventsDefault;n.off(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!1}},s.prototype.handleMouseWheel=function(e){if(!(!this.options.zoomEnabled||this.state!==`none`)){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1);var t=e.deltaY||1,n=Date.now()-this.lastMouseWheelEventTime,r=3+Math.max(0,30-n);this.lastMouseWheelEventTime=Date.now(),`deltaMode`in e&&e.deltaMode===0&&e.wheelDelta&&(t=e.deltaY===0?0:Math.abs(e.wheelDelta)/e.deltaY),t=-.3<t&&t<.3?t:(t>0?1:-1)*Math.log(Math.abs(t)+10)/r;var i=this.svg.getScreenCTM().inverse(),o=a.getEventPoint(e,this.svg).matrixTransform(i),s=(1+this.options.zoomScaleSensitivity)**(-1*t);this.zoomAtPoint(s,o)}},s.prototype.zoomAtPoint=function(e,t,n){var r=this.viewport.getOriginalState();n?(e=Math.max(this.options.minZoom*r.zoom,Math.min(this.options.maxZoom*r.zoom,e)),e/=this.getZoom()):this.getZoom()*e<this.options.minZoom*r.zoom?e=this.options.minZoom*r.zoom/this.getZoom():this.getZoom()*e>this.options.maxZoom*r.zoom&&(e=this.options.maxZoom*r.zoom/this.getZoom());var i=this.viewport.getCTM(),a=t.matrixTransform(i.inverse()),o=this.svg.createSVGMatrix().translate(a.x,a.y).scale(e).translate(-a.x,-a.y),s=i.multiply(o);s.a!==i.a&&this.viewport.setCTM(s)},s.prototype.zoom=function(e,t){this.zoomAtPoint(e,a.getSvgCenterPoint(this.svg,this.width,this.height),t)},s.prototype.publicZoom=function(e,t){t&&(e=this.computeFromRelativeZoom(e)),this.zoom(e,t)},s.prototype.publicZoomAtPoint=function(e,t,n){if(n&&(e=this.computeFromRelativeZoom(e)),i.getType(t)!==`SVGPoint`)if(`x`in t&&`y`in t)t=a.createSVGPoint(this.svg,t.x,t.y);else throw Error(`Given point is invalid`);this.zoomAtPoint(e,t,n)},s.prototype.getZoom=function(){return this.viewport.getZoom()},s.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},s.prototype.computeFromRelativeZoom=function(e){return e*this.viewport.getOriginalState().zoom},s.prototype.resetZoom=function(){var e=this.viewport.getOriginalState();this.zoom(e.zoom,!0)},s.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},s.prototype.reset=function(){this.resetZoom(),this.resetPan()},s.prototype.handleDblClick=function(e){if(this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.options.controlIconsEnabled&&(e.target.getAttribute(`class`)||``).indexOf(`svg-pan-zoom-control`)>-1)return!1;var t=e.shiftKey?1/((1+this.options.zoomScaleSensitivity)*2):(1+this.options.zoomScaleSensitivity)*2,n=a.getEventPoint(e,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(t,n)},s.prototype.handleMouseDown=function(e,t){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),i.mouseAndTouchNormalize(e,this.svg),this.options.dblClickZoomEnabled&&i.isDblClick(e,t)?this.handleDblClick(e):(this.state=`pan`,this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=a.getEventPoint(e,this.svg).matrixTransform(this.firstEventCTM.inverse()))},s.prototype.handleMouseMove=function(e){if(this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.state===`pan`&&this.options.panEnabled){var t=a.getEventPoint(e,this.svg).matrixTransform(this.firstEventCTM.inverse()),n=this.firstEventCTM.translate(t.x-this.stateOrigin.x,t.y-this.stateOrigin.y);this.viewport.setCTM(n)}},s.prototype.handleMouseUp=function(e){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.state===`pan`&&(this.state=`none`)},s.prototype.fit=function(){var e=this.viewport.getViewBox(),t=Math.min(this.width/e.width,this.height/e.height);this.zoom(t,!0)},s.prototype.contain=function(){var e=this.viewport.getViewBox(),t=Math.max(this.width/e.width,this.height/e.height);this.zoom(t,!0)},s.prototype.center=function(){var e=this.viewport.getViewBox(),t=(this.width-(e.width+e.x*2)*this.getZoom())*.5,n=(this.height-(e.height+e.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:t,y:n})},s.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},s.prototype.pan=function(e){var t=this.viewport.getCTM();t.e=e.x,t.f=e.y,this.viewport.setCTM(t)},s.prototype.panBy=function(e){var t=this.viewport.getCTM();t.e+=e.x,t.f+=e.y,this.viewport.setCTM(t)},s.prototype.getPan=function(){var e=this.viewport.getState();return{x:e.x,y:e.y}},s.prototype.resize=function(){var e=a.getBoundingClientRectNormalized(this.svg);this.width=e.width,this.height=e.height;var t=this.viewport;t.options.width=this.width,t.options.height=this.height,t.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},s.prototype.destroy=function(){var e=this;for(var t in this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()}),this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(t,this.eventListeners[t],this.options.preventMouseEventsDefault?!1:l);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),u=u.filter(function(t){return t.svg!==e.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},s.prototype.getPublicInstance=function(){var e=this;return this.publicInstance||=this.pi={enablePan:function(){return e.options.panEnabled=!0,e.pi},disablePan:function(){return e.options.panEnabled=!1,e.pi},isPanEnabled:function(){return!!e.options.panEnabled},pan:function(t){return e.pan(t),e.pi},panBy:function(t){return e.panBy(t),e.pi},getPan:function(){return e.getPan()},setBeforePan:function(t){return e.options.beforePan=t===null?null:i.proxy(t,e.publicInstance),e.pi},setOnPan:function(t){return e.options.onPan=t===null?null:i.proxy(t,e.publicInstance),e.pi},enableZoom:function(){return e.options.zoomEnabled=!0,e.pi},disableZoom:function(){return e.options.zoomEnabled=!1,e.pi},isZoomEnabled:function(){return!!e.options.zoomEnabled},enableControlIcons:function(){return e.options.controlIconsEnabled||(e.options.controlIconsEnabled=!0,r.enable(e)),e.pi},disableControlIcons:function(){return e.options.controlIconsEnabled&&(e.options.controlIconsEnabled=!1,r.disable(e)),e.pi},isControlIconsEnabled:function(){return!!e.options.controlIconsEnabled},enableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!0,e.pi},disableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!1,e.pi},isDblClickZoomEnabled:function(){return!!e.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return e.enableMouseWheelZoom(),e.pi},disableMouseWheelZoom:function(){return e.disableMouseWheelZoom(),e.pi},isMouseWheelZoomEnabled:function(){return!!e.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(t){return e.options.zoomScaleSensitivity=t,e.pi},setMinZoom:function(t){return e.options.minZoom=t,e.pi},setMaxZoom:function(t){return e.options.maxZoom=t,e.pi},setBeforeZoom:function(t){return e.options.beforeZoom=t===null?null:i.proxy(t,e.publicInstance),e.pi},setOnZoom:function(t){return e.options.onZoom=t===null?null:i.proxy(t,e.publicInstance),e.pi},zoom:function(t){return e.publicZoom(t,!0),e.pi},zoomBy:function(t){return e.publicZoom(t,!1),e.pi},zoomAtPoint:function(t,n){return e.publicZoomAtPoint(t,n,!0),e.pi},zoomAtPointBy:function(t,n){return e.publicZoomAtPoint(t,n,!1),e.pi},zoomIn:function(){return this.zoomBy(1+e.options.zoomScaleSensitivity),e.pi},zoomOut:function(){return this.zoomBy(1/(1+e.options.zoomScaleSensitivity)),e.pi},getZoom:function(){return e.getRelativeZoom()},setOnUpdatedCTM:function(t){return e.options.onUpdatedCTM=t===null?null:i.proxy(t,e.publicInstance),e.pi},resetZoom:function(){return e.resetZoom(),e.pi},resetPan:function(){return e.resetPan(),e.pi},reset:function(){return e.reset(),e.pi},fit:function(){return e.fit(),e.pi},contain:function(){return e.contain(),e.pi},center:function(){return e.center(),e.pi},updateBBox:function(){return e.updateBBox(),e.pi},resize:function(){return e.resize(),e.pi},getSizes:function(){return{width:e.width,height:e.height,realZoom:e.getZoom(),viewBox:e.viewport.getViewBox()}},destroy:function(){return e.destroy(),e.pi}},this.publicInstance};var u=[];t.exports=function(e,t){var n=i.getSvg(e);if(n===null)return null;for(var r=u.length-1;r>=0;r--)if(u[r].svg===n)return u[r].instance.getPublicInstance();return u.push({svg:n,instance:new s(n,t)}),u[u.length-1].instance.getPublicInstance()}})),NMe=s(((e,t)=>{t.exports=MMe()})),PMe=null;function FMe(e){PMe=e}function rL(e){return PMe?PMe(e):e}function IMe(e){if(typeof window>`u`)return;let t=window.__ecNavigate;if(typeof t==`function`){t(e);return}window.location.href=e}function iL(e){return e?e.startsWith(`/`)||e.startsWith(`http://`)||e.startsWith(`https://`):!1}function LMe(e){return e.startsWith(`http://`)||e.startsWith(`https://`)?e:rL(e).replace(/\/$/,``)}var aL=(0,p.memo)(function({src:e,alt:t,className:n}){return(0,k.jsx)(`img`,{src:LMe(e),alt:t,loading:`lazy`,className:n,style:{objectFit:`contain`,borderRadius:4}})});function oL(e){let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]}),()=>t.disconnect()}function RMe(){return typeof document<`u`&&document.documentElement.getAttribute(`data-theme`)===`dark`}function sL(){return(0,p.useSyncExternalStore)(oL,RMe,()=>!1)}var cL={width:`260px`},lL={transform:`rotate(-90deg)`,letterSpacing:`0.15em`,whiteSpace:`nowrap`},uL={fontSize:`0.2em`},dL={display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`},fL={position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`0 18px 18px 0`,borderColor:`transparent #1e293b12 transparent transparent`},pL={left:`-1px`},mL={right:`-1px`},hL={left:`-6px`},zMe={right:`-6px`},BMe={width:`100%`,height:`100%`},VMe={width:10,height:10},HMe={width:10,height:10,background:`pink`,zIndex:10},UMe={stroke:`red`,strokeWidth:2.625,strokeDasharray:`5 5`},WMe={stroke:`var(--ec-edge-stroke, #d1d5db)`,strokeWidth:2.625,strokeDasharray:`5 5`},gL={strokeWidth:3,stroke:`var(--ec-edge-stroke, #6b7280)`,strokeDasharray:`5 5`},_L=[],GMe={},vL=e=>({"--ec-glow":e}),yL={event:vL(`251, 146, 60`),service:vL(`236, 72, 153`),command:vL(`59, 130, 246`),query:vL(`34, 197, 94`),data:vL(`59, 130, 246`),channel:vL(`107, 114, 128`),actor:vL(`234, 179, 8`),external:vL(`168, 85, 247`),dataProduct:vL(`99, 102, 241`),generic:vL(`251, 146, 60`)},bL={opacity:0};function xL(e){return!e||e.length===0?[]:e.filter(Boolean).map(e=>typeof e==`string`?e:e?.id??``)}var SL=(0,p.memo)(function({owners:e,accentColor:t=`bg-pink-400`,borderColor:n=`rgba(236,72,153,0.08)`,iconClass:r=`text-pink-300`}){if(e.length===0)return null;let i=e[0],a=e.length-1,o=i.includes(` `)||i.includes(`-`);return(0,k.jsxs)(`div`,{className:`flex items-center gap-1 mt-1.5 pt-1.5`,style:{borderTop:`1px solid ${n}`},title:e.join(`, `),children:[o?(0,k.jsx)(tle,{className:`${r} shrink-0`,style:VMe,strokeWidth:2.5}):(0,k.jsx)(uw,{className:`${r} shrink-0`,style:VMe,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] text-[rgb(var(--ec-page-text-muted))] truncate leading-none`,children:i}),a>0&&(0,k.jsxs)(`span`,{className:`shrink-0 inline-flex items-center justify-center text-[7px] font-bold text-white ${t} rounded-full px-1 py-[1px] leading-none`,title:e.slice(1).join(`, `),children:[`+`,a]})]})}),CL=(0,p.createContext)(null),KMe=CL.Provider;function wL(){return(0,p.useContext)(CL)??void 0}var TL={50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`},qMe={high:{bg:`#fef2f2`,fg:`#b91c1c`,border:`#fecaca`,label:`High`,accent:`#ef4444`},critical:{bg:`#fef2f2`,fg:`#991b1b`,border:`#fecaca`,label:`Critical`,accent:`#dc2626`},low:{bg:`#f0fdf4`,fg:`#15803d`,border:`#bbf7d0`,label:`Low`,accent:`#22c55e`}},EL=[[`#7c3aed`,`#a78bfa`],[`#2563eb`,`#60a5fa`],[`#0891b2`,`#22d3ee`],[`#059669`,`#34d399`],[`#d97706`,`#fbbf24`],[`#dc2626`,`#f87171`],[`#db2777`,`#f472b6`],[`#4f46e5`,`#818cf8`]];function DL(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}function OL({name:e,size:t=18}){let n=e.split(/\s+/).map(e=>e[0]).join(``).toUpperCase().slice(0,2),[r,i]=EL[DL(e)%EL.length];return(0,k.jsx)(`div`,{style:{width:t,height:t,borderRadius:`50%`,background:`linear-gradient(135deg, ${r}, ${i})`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:(0,k.jsx)(`span`,{style:{fontSize:Math.round(t*.42),fontWeight:700,color:`white`,lineHeight:1,letterSpacing:`-0.02em`},children:n})})}function kL({priority:e,size:t=`sm`}){let n=qMe[e.toLowerCase()];if(!n)return null;let r=e===`high`||e===`critical`,i=t===`md`;return(0,k.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:i?4:2,fontSize:i?11:8,fontWeight:700,color:n.fg,background:n.bg,border:`1px solid ${n.border}`,borderRadius:99,padding:i?`2px 8px`:`1px 5px`,textTransform:`uppercase`,letterSpacing:`0.04em`,lineHeight:1.4,whiteSpace:`nowrap`},children:[r&&(0,k.jsx)(Ice,{style:{width:i?10:7,height:i?10:7},strokeWidth:2.5}),n.label]})}function AL({note:e,last:t}){return(0,k.jsxs)(`div`,{style:{padding:`7px 10px`,borderBottom:t?`none`:`1px solid rgb(var(--ec-page-border))`,display:`flex`,gap:6,alignItems:`flex-start`},children:[e.author&&(0,k.jsx)(OL,{name:e.author,size:16}),(0,k.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:4,marginBottom:2},children:[e.author&&(0,k.jsx)(`span`,{style:{fontSize:9,fontWeight:700,color:`rgb(var(--ec-page-text))`,lineHeight:1},children:e.author}),e.priority&&(0,k.jsx)(kL,{priority:e.priority})]}),(0,k.jsx)(`p`,{style:{fontSize:9,lineHeight:1.45,color:`rgb(var(--ec-page-text-muted))`,margin:0,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.content})]})]})}function jL({note:e,isDark:t}){return e.priority&&qMe[e.priority.toLowerCase()],(0,k.jsxs)(`div`,{style:{background:t?`radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px), rgba(255,255,255,0.04)`:`radial-gradient(circle, rgba(212,201,168,0.4) 1px, transparent 1px), #fef9ed`,backgroundSize:`12px 12px`,border:`1px solid ${t?`rgba(255,255,255,0.08)`:`#e5dcc3`}`,borderBottom:`2px dashed ${t?`rgba(255,255,255,0.1)`:`#d4c9a8`}`,borderRadius:`8px 8px 0 0`,padding:`14px 16px 14px`,position:`relative`},children:[e.author&&(0,k.jsx)(`span`,{style:{display:`block`,fontSize:11,fontWeight:650,color:t?`#e2e8f0`:`#1e293b`,marginBottom:8},children:e.author}),(0,k.jsxs)(`p`,{style:{fontSize:13,lineHeight:1.7,color:t?`#cbd5e1`:`#1e293b`,margin:0,whiteSpace:`pre-wrap`,wordBreak:`break-word`,fontStyle:`italic`},children:[`“`,e.content,`”`]})]})}function ML(e){let t=[],n=[],r=[];for(let i of e){let e=i.priority?.toLowerCase();e===`critical`||e===`high`?t.push(i):e===`low`?n.push(i):r.push(i)}let i=[];return t.length>0&&i.push({label:`High Priority`,notes:t,color:`#ef4444`}),r.length>0&&i.push({label:`Notes`,notes:r,color:`#f59e0b`}),n.length>0&&i.push({label:`Low Priority`,notes:n,color:`#22c55e`}),i}function NL({notes:e,isOpen:t,onClose:n,resourceName:r,resourceVersion:i,resourceType:a,accentColor:o,icon:s}){let c=sL(),l=wL(),u=e.length,d=e.filter(e=>e.priority&&(e.priority.toLowerCase()===`high`||e.priority.toLowerCase()===`critical`));return(0,k.jsx)(mhe,{open:t,onOpenChange:e=>!e&&n(),children:(0,k.jsx)(hhe,{container:l,children:(0,k.jsxs)(`div`,{className:`fixed inset-0 z-[99999]`,style:{isolation:`isolate`},children:[(0,k.jsx)(ghe,{style:{position:`fixed`,inset:0,background:c?`rgba(0, 0, 0, 0.7)`:`rgba(15, 23, 42, 0.55)`,backdropFilter:`blur(8px)`}}),(0,k.jsxs)(wO,{style:{position:`fixed`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`92vw`,maxWidth:500,maxHeight:`80vh`,background:c?`#1e2330`:`#ffffff`,borderRadius:16,border:`1px solid ${c?`rgba(255,255,255,0.08)`:`rgba(0,0,0,0.08)`}`,boxShadow:c?`0 24px 48px rgba(0,0,0,0.5)`:`0 24px 48px rgba(0,0,0,0.15)`,display:`flex`,flexDirection:`column`,overflow:`hidden`,outline:`none`},children:[(0,k.jsxs)(`div`,{style:{padding:`20px 22px 16px`,borderBottom:`1px solid ${c?`rgba(255,255,255,0.06)`:`rgba(0,0,0,0.06)`}`,display:`flex`,alignItems:`center`,gap:14},children:[(0,k.jsx)(`div`,{style:{width:36,height:36,borderRadius:10,background:o||`linear-gradient(135deg, ${TL[400]}, ${TL[500]})`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:s||(0,k.jsx)(nw,{style:{width:18,height:18,color:`white`},strokeWidth:2.5})}),(0,k.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,k.jsxs)(TO,{style:{fontSize:15,fontWeight:700,color:c?`#f1f5f9`:`#0f172a`,margin:0,lineHeight:1.3,letterSpacing:`-0.01em`,display:`flex`,alignItems:`baseline`,gap:6},children:[r||`Notes`,i&&(0,k.jsxs)(`span`,{style:{fontSize:11,fontWeight:500,color:c?`#64748b`:`#94a3b8`},children:[`v`,i]})]}),(0,k.jsxs)(EO,{style:{fontSize:12,color:c?`#94a3b8`:`#64748b`,margin:0,marginTop:3,lineHeight:1.3,display:`flex`,alignItems:`center`,gap:6},children:[a&&(0,k.jsx)(`span`,{style:{fontSize:10,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.05em`},children:a}),a&&(0,k.jsx)(`span`,{style:{opacity:.4},children:`·`}),u,` note`,u===1?``:`s`,d.length>0&&` \xB7 ${d.length} high priority`]})]}),(0,k.jsx)(DO,{asChild:!0,children:(0,k.jsx)(`button`,{"aria-label":`Close`,style:{width:32,height:32,borderRadius:8,border:`none`,background:c?`rgba(255,255,255,0.06)`:`rgba(0,0,0,0.04)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#94a3b8`,flexShrink:0},children:(0,k.jsx)(pw,{style:{width:16,height:16}})})})]}),(0,k.jsx)(`div`,{style:{flex:1,overflowY:`auto`,padding:`16px 22px 24px`,display:`flex`,flexDirection:`column`,gap:18},children:ML(e).map(e=>(0,k.jsxs)(`div`,{children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:10},children:[(0,k.jsx)(`div`,{style:{width:8,height:8,borderRadius:`50%`,background:e.color,flexShrink:0}}),(0,k.jsx)(`span`,{style:{fontSize:11,fontWeight:700,color:c?`#94a3b8`:`#64748b`,textTransform:`uppercase`,letterSpacing:`0.06em`},children:e.label}),(0,k.jsxs)(`span`,{style:{fontSize:10,fontWeight:600,color:c?`#475569`:`#94a3b8`},children:[`(`,e.notes.length,`)`]}),(0,k.jsx)(`div`,{style:{flex:1,height:1,background:c?`rgba(255,255,255,0.06)`:`rgba(0,0,0,0.06)`}})]}),(0,k.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16},children:e.notes.map((e,t)=>(0,k.jsx)(jL,{note:e,isDark:c},t))})]},e.label))})]})]})})})}var PL=(0,p.memo)(function({notes:e,resourceName:t}){let[n,r]=(0,p.useState)(!1),[i,a]=(0,p.useState)(!1),o=(0,p.useCallback)(e=>{e.stopPropagation(),r(!1),a(!0)},[]);if(!e||e.length===0)return null;let s=e.length;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(`div`,{className:`absolute -top-2.5 -right-2.5 z-30 nopan nodrag`,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onPointerDown:e=>e.stopPropagation(),children:[(0,k.jsx)(`div`,{className:`flex items-center justify-center cursor-pointer`,onClick:o,style:{width:22,height:22,borderRadius:`50%`,background:e.some(e=>e.priority&&(e.priority.toLowerCase()===`high`||e.priority.toLowerCase()===`critical`))?`linear-gradient(135deg, #ef4444, #dc2626)`:`linear-gradient(135deg, ${TL[400]}, ${TL[500]})`,boxShadow:`0 0 0 2.5px rgb(var(--ec-card-bg)), 0 2px 6px rgba(0,0,0,0.15)`,transition:`transform 0.15s ease`,transform:n?`scale(1.15)`:`scale(1)`},children:(0,k.jsx)(`span`,{style:{fontSize:11,fontWeight:800,color:`white`,lineHeight:1},children:s})}),n&&!i&&(0,k.jsxs)(`div`,{className:`absolute top-full right-0 mt-2 pointer-events-none`,style:{minWidth:200,maxWidth:250,zIndex:50},children:[(0,k.jsxs)(`div`,{style:{background:`rgb(var(--ec-card-bg))`,borderRadius:10,border:`1px solid ${TL[200]}`,boxShadow:`0 4px 20px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06)`,overflow:`hidden`},children:[(0,k.jsxs)(`div`,{style:{padding:`6px 10px`,background:TL[50],borderBottom:`1px solid ${TL[200]}`,display:`flex`,alignItems:`center`,gap:5},children:[(0,k.jsx)(nw,{style:{width:10,height:10,color:TL[600]},strokeWidth:2.5}),(0,k.jsxs)(`span`,{style:{fontSize:9,fontWeight:700,color:TL[800],flex:1,letterSpacing:`0.01em`},children:[s,` note`,s===1?``:`s`]}),(0,k.jsx)(`span`,{style:{fontSize:8,color:TL[600],fontWeight:500,opacity:.8},children:`click to open`})]}),(0,k.jsx)(`div`,{style:{maxHeight:150,overflowY:`auto`},children:e.slice(0,3).map((e,t)=>(0,k.jsx)(AL,{note:e,last:t===Math.min(s,3)-1&&s<=3},t))}),s>3&&(0,k.jsx)(`div`,{style:{padding:`5px 10px`,borderTop:`1px solid rgb(var(--ec-page-border))`,textAlign:`center`},children:(0,k.jsxs)(`span`,{style:{fontSize:8,fontWeight:600,color:`#94a3b8`},children:[`+`,s-3,` more`]})})]}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:-5,right:10,width:10,height:10,background:`rgb(var(--ec-card-bg))`,border:`1px solid ${TL[200]}`,borderRight:`none`,borderBottom:`none`,transform:`rotate(45deg)`,zIndex:1}})]})]}),(0,k.jsx)(NL,{notes:e,isOpen:i,onClose:()=>a(!1),resourceName:t})]})});function FL({as:e=`span`,children:t,className:n,style:r,tooltipBorderColor:i=`rgb(var(--ec-page-border))`,value:a}){let o=(0,p.useRef)(null),[s,c]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{c(e.scrollWidth>e.clientWidth)};if(typeof ResizeObserver>`u`){let e=requestAnimationFrame(t);return window.addEventListener(`resize`,t),()=>{cancelAnimationFrame(e),window.removeEventListener(`resize`,t)}}let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a]),(0,k.jsxs)(e,{className:`ec-truncated-resource-name group relative min-w-0 max-w-full flex-1`,children:[(0,k.jsx)(`span`,{ref:o,className:`block min-w-0 ${n||``}`,style:r,children:t}),s&&(0,k.jsxs)(`span`,{className:`ec-truncated-resource-name-tooltip pointer-events-none absolute left-1/2 bottom-full z-[9999] mb-4 hidden w-max max-w-[320px] -translate-x-1/2 rounded-md border-2 bg-slate-950 px-2.5 py-1.5 text-[11px] font-medium leading-snug text-white shadow-lg group-hover:block group-focus-within:block`,style:{borderColor:i},children:[(0,k.jsx)(`span`,{className:`block whitespace-normal break-words`,children:a}),(0,k.jsx)(`span`,{className:`absolute left-1/2 top-full h-2 w-2 -translate-x-1/2 -translate-y-1/2 rotate-45 border-b border-r bg-slate-950`,style:{borderBottomColor:i,borderRightColor:i}})]})]})}function IL(){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute -inset-1.5 z-[5] rounded-[14px] border-2 border-indigo-500/70 shadow-lg`}),(0,k.jsxs)(`div`,{className:`pointer-events-none absolute -bottom-2.5 right-2 z-30 inline-flex items-center gap-1 rounded-full border border-white/80 bg-indigo-600 px-2 py-0.5 text-[7px] font-bold uppercase tracking-widest text-white shadow-sm`,children:[(0,k.jsx)(Gce,{className:`h-2.5 w-2.5`,strokeWidth:2.5}),`Viewing`]})]})}var JMe={openapi:`OpenAPI`,asyncapi:`AsyncAPI`,graphql:`GraphQL`},LL={openapi:{bg:`rgba(106,170,63,0.12)`,text:`#4d7c0f`,darkBg:`rgba(106,170,63,0.2)`,darkText:`#a3e635`},asyncapi:{bg:`rgba(116,78,194,0.12)`,text:`#6d28d9`,darkBg:`rgba(116,78,194,0.2)`,darkText:`#c4b5fd`},graphql:{bg:`rgba(229,53,171,0.12)`,text:`#be185d`,darkBg:`rgba(229,53,171,0.2)`,darkText:`#f9a8d4`}};function YMe(e){let t=new Set;if(Array.isArray(e))for(let n of e)n?.type&&t.add(String(n.type).toLowerCase());else if(e&&typeof e==`object`){let n=e;n.asyncapiPath&&t.add(`asyncapi`),n.openapiPath&&t.add(`openapi`),n.graphqlPath&&t.add(`graphql`)}return Array.from(t)}var XMe=(0,p.memo)(function({specifications:e,isDark:t}){let n=(0,p.useMemo)(()=>YMe(e),[e]);return n.length===0?null:(0,k.jsx)(`div`,{className:`flex items-center gap-1 flex-wrap justify-end`,children:n.map(e=>{let n=LL[e]||LL.openapi;return(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded`,style:{background:t?n.darkBg:n.bg,color:t?n.darkText:n.text},children:JMe[e]||e},e)})})}),RL=(0,p.memo)(function({side:e,delay:t}){return(0,k.jsxs)(`svg`,{width:`14`,height:`10`,viewBox:`0 0 14 10`,style:{animation:`${e===`left`?`ec-svc-msg-in`:`ec-svc-msg-out`} 2.5s ease-in-out ${t}s infinite`,opacity:0},children:[(0,k.jsx)(`rect`,{x:`0.5`,y:`0.5`,width:`13`,height:`9`,rx:`1.5`,fill:`#9ca3af`,opacity:.85}),(0,k.jsx)(`path`,{d:`M0.5,0.5 L7,5 L13.5,0.5`,fill:`none`,stroke:`white`,strokeWidth:`1`,strokeLinejoin:`round`})]})});(0,p.memo)(function({side:e}){return(0,k.jsxs)(`div`,{style:{position:`absolute`,top:`50%`,[e]:-4,transform:`translateY(-50%)`,display:`flex`,flexDirection:`column`,gap:2,zIndex:15,pointerEvents:`none`},children:[(0,k.jsx)(RL,{side:e,delay:0}),(0,k.jsx)(RL,{side:e,delay:.8}),(0,k.jsx)(RL,{side:e,delay:1.6})]})});var zL=(0,p.memo)(function({side:e,external:t}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:t?`linear-gradient(135deg, #a855f7, #7e22ce)`:`linear-gradient(135deg, #ec4899, #be185d)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...t?yL.external:yL.service,pointerEvents:`none`}})});function BL(...e){return e.filter(Boolean).join(` `)}var VL={Icon:sw,label:`Service`,gradient:`linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 40%, #ec4899 100%)`,draftBorder:`rgba(236, 72, 153, 0.5)`,corner:`#db2777`,ring:`ring-2 ring-pink-400/60 ring-offset-1`,iconClass:`w-3 h-3 text-pink-900/50`,labelClass:`text-[8px] font-bold text-pink-900/50 uppercase tracking-widest`,nameText:`text-pink-950`,nameTextDeprecated:`text-pink-950/40 line-through`,versionClass:`text-[9px] text-pink-900/40 font-semibold mt-0.5`,summaryClass:`mt-2 pt-1.5 border-t border-pink-900/10 text-[9px] text-pink-950/60 leading-relaxed overflow-hidden`,tooltipBorderColor:`#ec4899`},ZMe={Icon:QC,label:`External System`,gradient:`linear-gradient(135deg, #e9d5ff 0%, #c084fc 40%, #a855f7 100%)`,draftBorder:`rgba(168, 85, 247, 0.5)`,corner:`#7e22ce`,ring:`ring-2 ring-purple-400/60 ring-offset-1`,iconClass:`w-3 h-3 text-purple-900/50`,labelClass:`text-[8px] font-bold text-purple-900/50 uppercase tracking-widest`,nameText:`text-purple-950`,nameTextDeprecated:`text-purple-950/40 line-through`,versionClass:`text-[9px] text-purple-900/40 font-semibold mt-0.5`,summaryClass:`mt-2 pt-1.5 border-t border-purple-900/10 text-[9px] text-purple-950/60 leading-relaxed overflow-hidden`,tooltipBorderColor:`#a855f7`},QMe={Icon:sw,label:`Service`,ring:`ring-2 ring-pink-400/60 ring-offset-2`,borderSolid:`border-pink-500`,borderDraftDark:`border-dashed border-pink-400`,borderDraftLight:`border-dashed border-pink-400/60`,draftStripeDark:`rgba(236,72,153,0.25)`,draftStripeLight:`rgba(236,72,153,0.15)`,nodeBgVar:`var(--ec-service-node-bg, rgb(var(--ec-card-bg)))`,shadowColor:`rgba(236, 72, 153, 0.15)`,badgeBg:`bg-pink-500`,ownerAccent:`bg-pink-400`,ownerBorder:`rgba(236,72,153,0.08)`,ownerIcon:`text-pink-300`,tooltipBorderColor:`#ec4899`},$Me={Icon:QC,label:`External System`,ring:`ring-2 ring-purple-400/60 ring-offset-2`,borderSolid:`border-purple-500`,borderDraftDark:`border-dashed border-purple-400`,borderDraftLight:`border-dashed border-purple-400/60`,draftStripeDark:`rgba(168,85,247,0.25)`,draftStripeLight:`rgba(168,85,247,0.15)`,nodeBgVar:`var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`,shadowColor:`rgba(168, 85, 247, 0.15)`,badgeBg:`bg-purple-500`,ownerAccent:`bg-purple-400`,ownerBorder:`rgba(168,85,247,0.08)`,ownerIcon:`text-purple-300`,tooltipBorderColor:`#a855f7`};function eNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,specifications:s,externalSystem:c,styles:l}=e.data.service,u=e.data.mode||`simple`,d=sL(),f=c?ZMe:VL,p=iL(l?.icon)?l.icon:void 0;return(0,k.jsxs)(`div`,{className:BL(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?f.ring:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:f.gradient,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed ${f.draftBorder}`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`${f.corner} transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(f.Icon,{className:f.iconClass,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:f.labelClass,children:f.label})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p&&(0,k.jsx)(aL,{src:p,alt:n,className:u===`full`?`w-[26px] h-[26px] shrink-0`:`w-6 h-6 shrink-0`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:f.tooltipBorderColor,className:BL(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?f.nameTextDeprecated:f.nameText),children:n})]}),t&&(0,k.jsxs)(`div`,{className:f.versionClass,children:[`v`,t]}),u===`full`&&r&&(0,k.jsx)(`div`,{className:f.summaryClass,style:dL,title:r,children:r}),!!s&&(0,k.jsx)(`div`,{className:`mt-1.5 flex justify-end`,children:(0,k.jsx)(XMe,{specifications:s,isDark:d})})]})]})}function tNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,specifications:s,externalSystem:c,styles:l}=e.data.service,u=e.data.mode||`simple`,d=iL(l?.icon)?l.icon:void 0,f=(0,p.useMemo)(()=>xL(e.data.service.owners),[e.data.service.owners]),m=vC({handleType:`target`}),h=vC({handleType:`source`}),g=sL(),_=g?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`,v=c?$Me:QMe,y=g?v.draftStripeDark:v.draftStripeLight,b=g?v.borderDraftDark:v.borderDraftLight;return(0,k.jsxs)(`div`,{className:BL(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?v.ring:``,i?`border-dashed border-red-500`:a?b:v.borderSolid),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${_} 6px, ${_} 7px), ${v.nodeBgVar}`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y} 4px, ${y} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y} 4px, ${y} 4.5px), ${v.nodeBgVar}`:v.nodeBgVar,boxShadow:`0 2px 12px ${v.shadowColor}`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),m.length>0&&(0,k.jsx)(zL,{side:`left`,external:c}),h.length>0&&(0,k.jsx)(zL,{side:`right`,external:c}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:BL(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:v.badgeBg),children:[(0,k.jsx)(v.Icon,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),v.label,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d&&(0,k.jsx)(aL,{src:d,alt:n,className:u===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:v.tooltipBorderColor,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),u===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),(0,k.jsxs)(`div`,{className:`flex items-end justify-between gap-1`,children:[(0,k.jsx)(SL,{owners:f,accentColor:v.ownerAccent,borderColor:v.ownerBorder,iconClass:v.ownerIcon}),!!s&&(0,k.jsx)(XMe,{specifications:s,isDark:g})]})]})]})}var nNe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(eNe,{...e}):(0,k.jsx)(tNe,{...e})});function rNe(...e){return e.filter(Boolean).join(` `)}function HL({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #0ea5e9, #0369a1)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.dataProduct,pointerEvents:`none`}})}var UL=(e,t)=>{if(!e)return null;let n=e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/[^a-z0-9-]/g,``);return LMe(n===`openai`||n===`anthropic`?`/icons/agent/${n}-${t?`dark`:`light`}.svg`:`/icons/agent/${n}.svg`)};function iNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,owners:s,model:c,styles:l}=e.data.agent,u=e.data.mode||`simple`,d=iL(l?.icon)?l.icon:void 0,f=(0,p.useMemo)(()=>xL(s),[s]),m=vC({handleType:`target`}),h=vC({handleType:`source`}),g=sL(),_=g?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`,v=g?`rgba(14,165,233,0.25)`:`rgba(14,165,233,0.15)`,y=c?.provider,b=UL(y,g),x=c?.name;return(0,k.jsxs)(`div`,{className:rNe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-sky-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed border-sky-400`:`border-sky-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${_} 6px, ${_} 7px), var(--ec-agent-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${v} 4px, ${v} 4.5px), var(--ec-agent-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-agent-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(14, 165, 233, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),m.length>0&&(0,k.jsx)(HL,{side:`left`}),h.length>0&&(0,k.jsx)(HL,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:rNe(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-sky-500`),children:[(0,k.jsx)(HC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Agent`,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d&&(0,k.jsx)(aL,{src:d,alt:n,className:u===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#0ea5e9`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),u===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),(y||x)&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 flex-wrap mt-1.5`,children:[y&&(0,k.jsxs)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-sky-500/10 text-sky-700 dark:text-sky-300 uppercase tracking-wide`,children:[b&&(0,k.jsx)(`img`,{src:b,alt:``,className:`w-2 h-2 shrink-0 mr-1 object-contain`,loading:`lazy`}),y]}),x&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-[rgb(var(--ec-page-bg))] text-[rgb(var(--ec-page-text-muted))] border border-sky-500/30 max-w-[8.5rem] truncate`,children:x})]}),(0,k.jsx)(SL,{owners:f,accentColor:`bg-sky-400`,borderColor:`rgba(14,165,233,0.08)`,iconClass:`text-sky-300`})]})]})}var aNe=(0,p.memo)(iNe),oNe=`<svg fill="#ffffff" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>ModelContextProtocol</title><path d="M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"/><path d="M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"/></svg>`,WL=`<svg fill="#000000" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>ModelContextProtocol</title><path d="M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"/><path d="M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"/></svg>`;function sNe(...e){return e.filter(Boolean).join(` `)}var cNe=e=>(e||``).trim().toLowerCase();function lNe({type:e}){let t=sL(),n=cNe(e),r=e.toUpperCase();return n===`mcp`?(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold px-1.5 py-0.5 rounded bg-violet-500/10 text-violet-700 dark:text-violet-300 border border-violet-500/25`,children:[(0,k.jsx)(`span`,{className:`w-2 h-2 shrink-0 [&>svg]:w-2 [&>svg]:h-2`,dangerouslySetInnerHTML:{__html:t?oNe:WL}}),`MCP`]}):(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-violet-500/10 text-violet-700 dark:text-violet-300 border border-violet-500/25`,children:r})}function uNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #8b5cf6, #6d28d9)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.dataProduct,pointerEvents:`none`}})}function dNe(e){let{name:t,type:n,icon:r,url:i,description:a}=e.data.agentTool,o=iL(r)?r:void 0,s=vC({handleType:`target`}),c=vC({handleType:`source`});return(0,k.jsxs)(`div`,{className:sNe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible border-violet-500`,e?.selected?`ring-2 ring-violet-400/60 ring-offset-2`:``),style:{background:`var(--ec-agent-tool-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(139, 92, 246, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),s.length>0&&(0,k.jsx)(uNe,{side:`left`}),c.length>0&&(0,k.jsx)(uNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-violet-500`,children:[(0,k.jsx)(mw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Tool`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[o&&(0,k.jsx)(aL,{src:o,alt:t,className:`w-4 h-4 shrink-0`}),(0,k.jsx)(FL,{value:t,tooltipBorderColor:`#8b5cf6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t})]}),a&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:a,children:a}),(0,k.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1 flex-wrap`,children:[(0,k.jsx)(lNe,{type:n}),i&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-bold px-1.5 py-0.5 rounded bg-[rgb(var(--ec-page-bg))] text-[rgb(var(--ec-page-text-muted))] border border-violet-500/25 max-w-[9rem] truncate`,children:i})]})]})]})}var GL=(0,p.memo)(dNe),fNe={GET:{bg:`rgba(34,197,94,0.15)`,text:`#22c55e`},POST:{bg:`rgba(59,130,246,0.15)`,text:`#3b82f6`},PUT:{bg:`rgba(245,158,11,0.15)`,text:`#f59e0b`},PATCH:{bg:`rgba(245,158,11,0.15)`,text:`#f59e0b`},DELETE:{bg:`rgba(239,68,68,0.15)`,text:`#ef4444`},OPTIONS:{bg:`rgba(139,92,246,0.15)`,text:`#8b5cf6`},HEAD:{bg:`rgba(107,114,128,0.15)`,text:`#6b7280`}},pNe={2:{bg:`rgba(34,197,94,0.15)`,text:`#22c55e`},3:{bg:`rgba(59,130,246,0.15)`,text:`#3b82f6`},4:{bg:`rgba(245,158,11,0.15)`,text:`#f59e0b`},5:{bg:`rgba(239,68,68,0.15)`,text:`#ef4444`}};function mNe(e){return pNe[String(e)[0]]||pNe[2]}var hNe=(0,p.memo)(function({method:e}){let t=e.toUpperCase(),n=fNe[t]||{bg:`#6b7280`,text:`#ffffff`};return(0,k.jsx)(`span`,{className:`inline-flex items-center text-[8px] font-extrabold uppercase tracking-wide px-1.5 py-0.5 rounded`,style:{background:n.bg,color:n.text},children:t})}),gNe=(0,p.memo)(function({codes:e}){return(0,k.jsx)(`div`,{className:`flex items-center gap-1 flex-wrap mt-1.5`,children:e.map(e=>{let t=mNe(e);return(0,k.jsx)(`span`,{className:`inline-flex items-center text-[8px] font-bold px-1.5 py-0.5 rounded`,style:{background:t.bg,color:t.text},children:e},e)})})}),KL=(0,p.memo)(function({path:e}){return(0,k.jsx)(`span`,{className:`text-[12px] font-mono font-medium text-[rgb(var(--ec-page-text))] truncate min-w-0`,title:e,children:e})}),qL=(0,p.memo)(function({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #fb923c, #ea580c)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.event,pointerEvents:`none`}})});function _Ne(...e){return e.filter(Boolean).join(` `)}function vNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e?.data?.message,c=e?.data?.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:_Ne(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-orange-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #fed7aa 0%, #fdba74 40%, #fb923c 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(251, 146, 60, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#f97316 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(hw,{className:`w-3 h-3 text-orange-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-orange-900/50 uppercase tracking-widest`,children:`Event`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#f97316`,className:_Ne(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-orange-950/40 line-through`:`text-orange-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-orange-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-orange-900/10 text-[9px] text-orange-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function yNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,schema:o,notes:s,method:c,path:l,statusCodes:u,styles:d}=e?.data?.message,f=e?.data?.mode||`simple`,m=!!(c||l),h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(e?.data?.message?.owners),[e?.data?.message?.owners]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:_Ne(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-orange-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${y?`border-orange-400`:`border-orange-400/60`}`:`border-orange-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-event-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4px, ${y?`rgba(251,146,60,0.25)`:`rgba(251,146,60,0.15)`} 4.5px), var(--ec-event-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-event-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(251, 146, 60, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),_.length>0&&(0,k.jsx)(qL,{side:`left`}),v.length>0&&(0,k.jsx)(qL,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:_Ne(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-orange-500`),children:[(0,k.jsx)(hw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Event`,a&&` (Draft)`,i&&` (Deprecated)`]})}),o&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-orange-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:o.includes(`.`)?o.split(`.`).pop():o}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1 overflow-hidden min-w-0`,children:[c&&(0,k.jsx)(hNe,{method:c}),l&&(0,k.jsx)(KL,{path:l})]}),!m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:n,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#f97316`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal shrink-0`,style:{color:y?`#dce3eb`:`#6b7280`},children:[`(v`,t,`)`]})]})]}),f===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] leading-relaxed overflow-hidden`,style:{...dL,color:y?`#f0f4f8`:`#374151`},title:r,children:r}),u&&u.length>0&&(0,k.jsx)(gNe,{codes:u}),(0,k.jsxs)(`div`,{className:`flex items-end justify-between`,children:[(0,k.jsx)(SL,{owners:g,accentColor:`bg-orange-400`,borderColor:`rgba(251,146,60,0.08)`,iconClass:`text-orange-300`}),s&&s.length>0&&(0,k.jsx)(PL,{notes:s,resourceName:n})]})]})]})}var bNe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(vNe,{...e}):(0,k.jsx)(yNe,{...e})}),JL=[`service`,`services`],xNe=[`event`,`events`],SNe=[`queries`,`query`,`querie`],CNe=[`command`,`commands`],YL=[`channel`,`channels`],XL=[`actor`,`actors`],ZL=[...xNe,...CNe,...SNe];[...JL,...YL],[...JL,...YL];var QL=(0,p.memo)(function({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #22c55e, #15803d)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.query,pointerEvents:`none`}})});function $L(...e){return e.filter(Boolean).join(` `)}function wNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.message,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:$L(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-green-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #bbf7d0 0%, #86efac 40%, #22c55e 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(34, 197, 94, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#16a34a transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(ow,{className:`w-3 h-3 text-green-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-green-900/50 uppercase tracking-widest`,children:`Query`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#22c55e`,className:$L(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-green-950/40 line-through`:`text-green-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-green-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-green-900/10 text-[9px] text-green-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function TNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,schema:o,notes:s,method:c,path:l,statusCodes:u,styles:d}=e.data.message,f=e.data.mode||`simple`,m=!!(c||l),h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(e.data.message?.owners),[e.data.message?.owners]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:$L(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-green-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${y?`border-green-400`:`border-green-400/60`}`:`border-green-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-query-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4px, ${y?`rgba(34,197,94,0.25)`:`rgba(34,197,94,0.15)`} 4.5px), var(--ec-query-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-query-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(34, 197, 94, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),s&&s.length>0&&(0,k.jsx)(PL,{notes:s,resourceName:n}),_.length>0&&(0,k.jsx)(QL,{side:`left`}),v.length>0&&(0,k.jsx)(QL,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:$L(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-green-500`),children:[(0,k.jsx)(ow,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Query`,a&&` (Draft)`,i&&` (Deprecated)`]})}),o&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-green-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:o.includes(`.`)?o.split(`.`).pop():o}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1 overflow-hidden min-w-0`,children:[c&&(0,k.jsx)(hNe,{method:c}),l&&(0,k.jsx)(KL,{path:l})]}),!m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:n,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#22c55e`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),f===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),u&&u.length>0&&(0,k.jsx)(gNe,{codes:u}),(0,k.jsx)(SL,{owners:g,accentColor:`bg-green-400`,borderColor:`rgba(34,197,94,0.08)`,iconClass:`text-green-300`})]})]})}var eR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(wNe,{...e}):(0,k.jsx)(TNe,{...e})}),tR=(0,p.memo)(function({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #3b82f6, #1d4ed8)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.command,pointerEvents:`none`}})});function nR(...e){return e.filter(Boolean).join(` `)}function ENe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.message,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:nR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-blue-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #bfdbfe 0%, #93c5fd 40%, #3b82f6 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(59, 130, 246, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#1d4ed8 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(rw,{className:`w-3 h-3 text-blue-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-blue-900/50 uppercase tracking-widest`,children:`Command`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#3b82f6`,className:nR(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-blue-950/40 line-through`:`text-blue-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-blue-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-blue-900/10 text-[9px] text-blue-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function DNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,schema:o,notes:s,method:c,path:l,statusCodes:u,styles:d}=e.data.message,f=e.data.mode||`simple`,m=!!(c||l),h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(e.data.message?.owners),[e.data.message?.owners]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:nR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-blue-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${y?`border-blue-400`:`border-blue-400/60`}`:`border-blue-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-command-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4px, ${y?`rgba(59,130,246,0.25)`:`rgba(59,130,246,0.15)`} 4.5px), var(--ec-command-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-command-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(59, 130, 246, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),s&&s.length>0&&(0,k.jsx)(PL,{notes:s,resourceName:n}),_.length>0&&(0,k.jsx)(tR,{side:`left`}),v.length>0&&(0,k.jsx)(tR,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:nR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-blue-500`),children:[(0,k.jsx)(rw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Command`,a&&` (Draft)`,i&&` (Deprecated)`]})}),o&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-blue-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:o.includes(`.`)?o.split(`.`).pop():o}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1 overflow-hidden min-w-0`,children:[c&&(0,k.jsx)(hNe,{method:c}),l&&(0,k.jsx)(KL,{path:l})]}),!m&&(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:n,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#3b82f6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),f===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r}),u&&u.length>0&&(0,k.jsx)(gNe,{codes:u}),(0,k.jsx)(SL,{owners:g,accentColor:`bg-blue-400`,borderColor:`rgba(59,130,246,0.08)`,iconClass:`text-blue-300`})]})]})}var rR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(ENe,{...e}):(0,k.jsx)(DNe,{...e})}),ONe={"at-most-once":`At most once`,"at-least-once":`At least once`,"exactly-once":`Exactly once`},iR={"exactly-once":{hex:`#22d3ee`,rgb:`34,211,238`},"at-least-once":{hex:`#a78bfa`,rgb:`167,139,250`},"at-most-once":{hex:`#f87171`,rgb:`248,113,113`}},aR={hex:`#6b7280`,rgb:`107,114,128`};function oR(e){return e&&iR[e]||aR}function sR({guarantee:e,size:t=6}){let{hex:n}=oR(e);return e===`exactly-once`?(0,k.jsx)(`span`,{className:`shrink-0 rounded-full`,style:{width:t,height:t,background:n}}):e===`at-least-once`?(0,k.jsx)(`span`,{className:`shrink-0 rounded-full overflow-hidden`,style:{width:t,height:t,background:`linear-gradient(90deg, ${n} 50%, transparent 50%)`,border:`1.5px solid ${n}`,boxSizing:`border-box`}}):(0,k.jsx)(`span`,{className:`shrink-0 rounded-full`,style:{width:t,height:t,border:`1.5px solid ${n}`,boxSizing:`border-box`}})}function kNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #6b7280, #374151)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.channel,pointerEvents:`none`}})}function cR(...e){return e.filter(Boolean).join(` `)}function lR(e){let{data:t}=e,{version:n,name:r,summary:i,deprecated:a,draft:o,protocols:s=_L,notes:c,deliveryGuarantee:l,styles:u}=t.channel,d=e.data.mode||`simple`,f=oR(l),p=iL(u?.icon)?u.icon:void 0;return(0,k.jsxs)(`div`,{className:cR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-gray-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),c&&c.length>0&&(0,k.jsx)(PL,{notes:c,resourceName:r}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #e5e7eb 0%, #d1d5db 40%, #6b7280 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:a?`2px dashed rgba(239, 68, 68, 0.5)`:o?`2px dashed rgba(107, 114, 128, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#374151 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(BC,{className:`w-3 h-3 text-gray-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-gray-900/50 uppercase tracking-widest`,children:`Channel`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[o&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),a&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p&&(0,k.jsx)(aL,{src:p,alt:r,className:d===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1.5 min-w-0`,children:[(0,k.jsx)(FL,{as:`div`,value:r,tooltipBorderColor:`#6b7280`,className:cR(`text-[13px] font-bold leading-snug truncate`,a?`text-gray-950/40 line-through`:`text-gray-950`),children:r}),n&&(0,k.jsxs)(`span`,{className:`text-[9px] text-gray-900/30 font-medium shrink-0`,children:[`v`,n]})]})]}),d===`full`&&i&&(0,k.jsx)(`div`,{className:`mt-1 text-[9px] text-gray-950/50 leading-relaxed overflow-hidden`,style:dL,title:i,children:i}),(l||s?.[0])&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 flex-wrap mt-2`,children:[l&&(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-wide rounded-full px-1.5 py-0.5`,style:{background:`rgba(${f.rgb}, 0.12)`,color:f.hex},children:[(0,k.jsx)(sR,{guarantee:l,size:5}),ONe[l]||l]}),s?.[0]&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-semibold text-gray-900/50 bg-gray-900/10 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,children:s[0]})]})]})]})}function uR(e){let{data:t}=e,{version:n,name:r,summary:i,deprecated:a,draft:o,protocols:s=_L,address:c,notes:l,deliveryGuarantee:u,styles:d}=t.channel,f=e.data.mode||`simple`,m=iL(d?.icon)?d.icon:void 0,h=(0,p.useMemo)(()=>xL(t.channel?.owners),[t.channel?.owners]),g=vC({handleType:`source`}),_=vC({handleType:`target`}),v=sL(),y=v?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`,b=oR(u);return(0,k.jsxs)(`div`,{className:cR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-gray-400/60 ring-offset-2`:``,a?`border-dashed border-red-500`:o?`border-dashed ${v?`border-gray-400`:`border-gray-400/60`}`:v?`border-gray-400`:`border-gray-500`),style:{background:a?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${y} 6px, ${y} 7px), var(--ec-channel-node-bg, rgb(var(--ec-card-bg)))`:o?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4px, ${v?`rgba(107,114,128,0.25)`:`rgba(107,114,128,0.15)`} 4.5px), var(--ec-channel-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-channel-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(107, 114, 128, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),l&&l.length>0&&(0,k.jsx)(PL,{notes:l,resourceName:r}),_.length>0&&(0,k.jsx)(kNe,{side:`left`}),g.length>0&&(0,k.jsx)(kNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:cR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,a?`bg-red-500`:`bg-gray-500`),children:[(0,k.jsx)(BC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Channel`,o&&` (Draft)`,a&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[m&&(0,k.jsx)(aL,{src:m,alt:r,className:f===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1.5 min-w-0`,children:[(0,k.jsx)(FL,{value:r,tooltipBorderColor:`#6b7280`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:r}),n&&(0,k.jsxs)(`span`,{className:`text-[9px] font-normal shrink-0`,style:{color:`rgb(var(--ec-page-text-muted))`,opacity:.5},children:[`v`,n]})]})]}),f===`full`&&i&&(0,k.jsx)(`div`,{className:`mt-1 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:{...dL,marginBottom:4},title:i,children:i}),f===`full`&&c&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 mt-1`,children:[(0,k.jsx)(Wce,{className:`w-2.5 h-2.5 text-[rgb(var(--ec-page-text-muted))]`}),(0,k.jsx)(`span`,{className:`text-[8px] text-[rgb(var(--ec-page-text-muted))] font-mono`,children:c})]}),(u||s?.[0])&&(0,k.jsxs)(`div`,{className:`flex items-center gap-1 flex-wrap mt-2`,children:[u&&(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-wide rounded-full px-1.5 py-0.5`,style:{background:`rgba(${b.rgb}, 0.08)`,color:b.hex},children:[(0,k.jsx)(sR,{guarantee:u,size:5}),ONe[u]||u]}),s?.[0]&&(0,k.jsx)(`span`,{className:`inline-flex items-center text-[7px] font-semibold rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{background:v?`rgba(255,255,255,0.08)`:`rgba(107,114,128,0.1)`,color:`rgb(var(--ec-page-text-muted))`},children:s[0]})]}),(0,k.jsx)(SL,{owners:h,accentColor:`bg-gray-400`,borderColor:`rgba(107,114,128,0.08)`,iconClass:`text-gray-300`})]})]})}var ANe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(lR,{...e}):(0,k.jsx)(uR,{...e})});function dR({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #6366f1, #4f46e5)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.data,pointerEvents:`none`}})}function fR(...e){return e.filter(Boolean).join(` `)}var jNe={database:`Database`,cache:`Cache`,objectStore:`Object Store`,searchIndex:`Search Index`,dataWarehouse:`Data Warehouse`,dataLake:`Data Lake`,externalSaaS:`External SaaS`,other:`Other`};function MNe(e,t){return e?jNe[e]??e:t??`Database`}function NNe(e){let{version:t,owners:n=_L,schemas:r=_L,name:i,summary:a,deprecated:o,draft:s,notes:c,styles:l}=e.data.data,u=e.data.mode||`simple`,d=iL(l?.icon)?l.icon:void 0;return(0,k.jsxs)(`div`,{className:fR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-1`:``),children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),c&&c.length>0&&(0,k.jsx)(PL,{notes:c,resourceName:i}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 40%, #6366f1 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:o?`2px dashed rgba(239, 68, 68, 0.5)`:s?`2px dashed rgba(99, 102, 241, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#4f46e5 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(YC,{className:`w-3 h-3 text-indigo-950/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-indigo-950/50 uppercase tracking-widest`,children:`Data`})]}),s&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),o&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d&&(0,k.jsx)(aL,{src:d,alt:i,className:u===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:i,tooltipBorderColor:`#6366f1`,className:fR(`text-[13px] font-bold leading-snug min-w-0 truncate`,o?`text-indigo-950/40 line-through`:`text-indigo-950`),children:i})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-indigo-950/40 font-semibold mt-0.5`,children:[`v`,t]}),u===`full`&&a&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-indigo-950/10 text-[9px] text-indigo-950/60 leading-relaxed overflow-hidden`,style:dL,title:a,children:a})]})]})}function PNe(e){let{version:t,owners:n=_L,schemas:r=_L,name:i,summary:a,type:o,container_type:s,deprecated:c,draft:l,notes:u,styles:d}=e.data.data,f=MNe(s,o),m=e.data.mode||`simple`,h=iL(d?.icon)?d.icon:void 0,g=(0,p.useMemo)(()=>xL(n),[n]),_=vC({handleType:`target`}),v=vC({handleType:`source`}),y=sL(),b=y?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:fR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-2`:``,c?`border-dashed border-red-500`:l?`border-dashed ${y?`border-indigo-400`:`border-indigo-400/60`}`:`border-indigo-500`),style:{background:c?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${b} 6px, ${b} 7px), var(--ec-data-node-bg, rgb(var(--ec-card-bg)))`:l?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${y?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), var(--ec-data-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-data-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(99, 102, 241, 0.15)`},children:[e.data.isFocused&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),u&&u.length>0&&(0,k.jsx)(PL,{notes:u,resourceName:i}),_.length>0&&(0,k.jsx)(dR,{side:`left`}),v.length>0&&(0,k.jsx)(dR,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:fR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,c?`bg-red-500`:`bg-indigo-500`),children:[(0,k.jsx)(YC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Data`,l&&` (Draft)`,c&&` (Deprecated)`]})}),f&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-indigo-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:f}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,k.jsx)(aL,{src:h,alt:i,className:m===`full`?`w-5 h-5 shrink-0 mt-0.5`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:i,tooltipBorderColor:`#6366f1`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:i}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),m===`full`&&a&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:a,children:a}),(0,k.jsx)(SL,{owners:g,accentColor:`bg-indigo-400`,borderColor:`rgba(99,102,241,0.08)`,iconClass:`text-indigo-300`})]})]})}var FNe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(NNe,{...e}):(0,k.jsx)(PNe,{...e})});[...JL,...YL,...XL],[...JL,...YL,...XL];function INe(...e){return e.filter(Boolean).join(` `)}var LNe=(0,p.memo)(function(e){let{data:t,selected:n}=e,{name:r,summary:i,screenshot:a}=e.data.view,o=e.data.mode||`simple`,s=`View`;return(0,k.jsxs)(`div`,{className:INe(`rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] min-h-[100px] relative`,n?`border-blue-600 ring-2 ring-blue-500 shadow-lg`:`border-blue-400`),style:cL,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,className:`!left-[-1px] !w-2.5 !h-2.5 !bg-blue-500 !border !border-blue-600 !rounded-full !z-10`}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,className:`!right-[-1px] !w-2.5 !h-2.5 !bg-blue-500 !border !border-blue-600 !rounded-full !z-10`}),(0,k.jsxs)(`div`,{className:`bg-gradient-to-b from-blue-500 to-blue-700 relative flex flex-col items-center w-5 justify-between rounded-l-sm text-blue-100 border-r-[1px] border-blue-500`,children:[(0,k.jsx)(Yce,{className:`w-4 h-4 opacity-90 text-white mt-1 ${o===`full`?`mb-2`:`mb-1`}`}),o===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[8px] text-white font-bold uppercase mb-4`,style:lL,children:s})]}),(0,k.jsxs)(`div`,{className:`p-1 flex-1`,children:[(0,k.jsxs)(`div`,{className:`pb-1`,children:[(0,k.jsx)(`span`,{className:`text-xs font-bold block pt-0.5 pb-0.5`,children:r}),o===`simple`&&(0,k.jsx)(`span`,{className:`text-[10px] text-[rgb(var(--ec-page-text-muted))] font-light block pt-0.5 pb-0.5`,children:s})]}),i&&(0,k.jsx)(`div`,{className:`pb-1`,children:(0,k.jsx)(`div`,{className:`text-[8px] font-light text-[rgb(var(--ec-page-text-muted))] block leading-tight overflow-hidden`,style:dL,title:i,children:i})}),a&&(0,k.jsx)(`div`,{className:`py-1`,children:(0,k.jsx)(`img`,{src:a,alt:`${r} screenshot`,className:`w-full max-w-40 h-20 object-cover rounded border border-[rgb(var(--ec-page-border))]`})})]})]})});function RNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #eab308, #a16207)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.actor,pointerEvents:`none`}})}function zNe(...e){return e.filter(Boolean).join(` `)}function BNe(e){let{name:t,summary:n,deprecated:r,draft:i,notes:a}=e?.data,o=e?.data?.mode||`simple`;return(0,k.jsxs)(`div`,{className:zNe(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-yellow-400/60 ring-offset-1`:``),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),a&&a.length>0&&(0,k.jsx)(PL,{notes:a,resourceName:t}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #fef9c3 0%, #fde047 40%, #eab308 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(1deg)`,border:r?`2px dashed rgba(239, 68, 68, 0.5)`:i?`2px dashed rgba(234, 179, 8, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#a16207 transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(uw,{className:`w-3 h-3 text-yellow-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-yellow-900/50 uppercase tracking-widest`,children:`Actor`})]}),i&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),r&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsx)(FL,{as:`div`,value:t,tooltipBorderColor:`#eab308`,className:zNe(`text-[13px] font-bold leading-snug truncate`,r?`text-yellow-950/40 line-through`:`text-yellow-950`),children:t}),o===`full`&&n&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-yellow-900/10 text-[9px] text-yellow-950/60 leading-relaxed overflow-hidden`,style:dL,title:n,children:n})]})]})}function pR(e){let{name:t,summary:n,deprecated:r,draft:i,notes:a}=e?.data,o=e?.data?.mode||`simple`,s=vC({handleType:`target`}),c=vC({handleType:`source`}),l=sL(),u=l?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:zNe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-yellow-400/60 ring-offset-2`:``,r?`border-dashed border-red-500`:i?`border-dashed ${l?`border-yellow-400`:`border-yellow-400/60`}`:`border-yellow-500`),style:{background:r?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${u} 6px, ${u} 7px), var(--ec-actor-node-bg, rgb(var(--ec-card-bg)))`:i?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4px, ${l?`rgba(234,179,8,0.25)`:`rgba(234,179,8,0.15)`} 4.5px), var(--ec-actor-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-actor-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(234, 179, 8, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),a&&a.length>0&&(0,k.jsx)(PL,{notes:a,resourceName:t}),s.length>0&&(0,k.jsx)(RNe,{side:`left`}),c.length>0&&(0,k.jsx)(RNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:zNe(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,r?`bg-red-500`:`bg-yellow-500`),children:[(0,k.jsx)(uw,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Actor`,i&&` (Draft)`,r&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(FL,{as:`div`,value:t,tooltipBorderColor:`#eab308`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t}),o===`full`&&n&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:n,children:n})]})]})}var mR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(BNe,{...e}):(0,k.jsx)(pR,{...e})});[...JL,...ZL,...YL],[...JL,...ZL,...YL];var hR=(0,p.memo)(function({data:e}){let{name:t}=e;return(0,k.jsxs)(`div`,{className:`relative flex w-44 flex-col items-center rounded-2xl border-2 border-yellow-500 bg-[var(--ec-actor-node-bg,rgb(var(--ec-card-bg)))] px-3 pb-3 pt-5`,style:{boxShadow:`0 2px 12px rgba(234, 179, 8, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsx)(`div`,{className:`absolute -top-4 left-1/2 -translate-x-1/2`,children:(0,k.jsx)(`div`,{className:`flex h-8 w-8 items-center justify-center rounded-full border-2 border-yellow-500 bg-[rgb(var(--ec-card-bg))] shadow-sm`,children:(0,k.jsx)(uw,{className:`h-4 w-4 text-yellow-500`,strokeWidth:2})})}),(0,k.jsx)(FL,{as:`div`,value:t,className:`mt-1 max-w-full text-center text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t}),(0,k.jsx)(`span`,{className:`mt-0.5 text-[8px] font-bold uppercase tracking-widest text-yellow-600 dark:text-yellow-400`,children:`Actor`})]})}),VNe={width:`100%`,height:`100%`,borderRadius:14,border:`2px solid var(--ec-system-group-border, #c4b5fd)`,backgroundColor:`var(--ec-system-group-bg, rgba(100, 116, 139, 0.06))`,position:`relative`,overflow:`visible`,boxShadow:`0 2px 16px rgba(139, 92, 246, 0.10)`},gR={position:`absolute`,top:0,left:0,right:0,height:48,borderTopLeftRadius:12,borderTopRightRadius:12,background:`var(--ec-system-group-header-bg, rgba(139, 92, 246, 0.05))`,borderBottom:`1px solid var(--ec-system-group-border, #c4b5fd)`,display:`flex`,alignItems:`center`,padding:`0 16px`,overflow:`visible`},_R={position:`absolute`,top:-11,left:14,display:`inline-flex`,alignItems:`center`,gap:4,fontSize:8,fontWeight:700,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`white`,background:`#8b5cf6`,padding:`2px 7px`,borderRadius:5,boxShadow:`0 1px 2px rgba(0,0,0,0.12)`,zIndex:10},HNe={fontSize:14,fontWeight:700,color:`var(--ec-system-group-text, var(--ec-group-text, #5b21b6))`,whiteSpace:`nowrap`},UNe={fontSize:10,fontWeight:500,color:`#a78bfa`,marginLeft:6},WNe={...VNe,border:`2px solid var(--ec-domain-group-border, #facc15)`,backgroundColor:`var(--ec-domain-group-bg, rgba(250, 204, 21, 0.04))`,boxShadow:`0 2px 16px rgba(234, 179, 8, 0.10)`},vR={...gR,background:`var(--ec-domain-group-header-bg, rgba(250, 204, 21, 0.08))`,borderBottom:`1px solid var(--ec-domain-group-border, #facc15)`},GNe={..._R,background:`#eab308`},KNe={...HNe,color:`var(--ec-domain-group-text, rgb(var(--ec-page-text)))`},yR=(0,p.memo)(function({data:e}){let{system:t,domain:n,subdomain:r,isFocused:i}=e,a=!!n,o=n??t,s=a?r?`Subdomain`:`Domain`:`System`;return(0,k.jsxs)(`div`,{style:a?WNe:VNe,children:[i&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsxs)(`span`,{style:a?GNe:_R,children:[a?(0,k.jsx)(UC,{size:10,strokeWidth:2.5}):(0,k.jsx)($C,{size:10,strokeWidth:2.5}),s]}),(0,k.jsxs)(`div`,{style:a?vR:gR,children:[(0,k.jsx)(FL,{value:o?.name||s,tooltipBorderColor:a?`#eab308`:`#8b5cf6`,className:`truncate`,style:a?KNe:HNe,children:o?.name||s}),o?.version&&(0,k.jsxs)(`span`,{style:UNe,children:[`v`,o.version]})]})]})}),bR={background:`var(--ec-domain-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(234, 179, 8, 0.15)`},qNe=(0,p.memo)(function({data:e}){let{domain:t,mode:n=`simple`,systemsCount:r=0,servicesCount:i=0,entitiesCount:a=0,subdomain:o=!1,navigable:s=!0}=e,{id:c,version:l,name:u,summary:d}=t,f=[{icon:$C,label:`Systems`,count:r},{icon:sw,label:`Services`,count:i},{icon:Rce,label:`Entities`,count:a}].filter(e=>e.count>0),p=()=>IMe(rL(`/visualiser/domains/${c}/${l}`));return(0,k.jsxs)(`div`,{...s?{role:`button`,tabIndex:0,onClick:p,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&p()},title:`Open the ${u} diagram`}:{},className:`relative min-w-48 max-w-60 rounded-xl border-2 border-yellow-400 overflow-visible${s?` cursor-pointer`:``}`,style:bR,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-yellow-500`,children:[(0,k.jsx)(UC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),o?`Subdomain`:`Domain`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:u,tooltipBorderColor:`#eab308`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:u}),l&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,l,`)`]})]}),n===`full`&&d&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:d,children:d}),f.length>0&&(0,k.jsx)(`div`,{className:`mt-2 flex items-center gap-3 border-t border-[rgb(var(--ec-page-border))] pt-1.5`,children:f.map(({icon:e,label:t,count:n})=>(0,k.jsxs)(`div`,{title:`${n} ${t}`,className:`flex items-center gap-1 text-[10px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(e,{className:`w-3 h-3 text-yellow-500`,strokeWidth:2}),(0,k.jsx)(`span`,{className:`font-medium`,children:n})]},t))})]})]})});function JNe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #a855f7, #7e22ce)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.external,pointerEvents:`none`}})}function xR(...e){return e.filter(Boolean).join(` `)}function YNe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o}=e.data.externalSystem,s=e.data.mode||`simple`;return(0,k.jsxs)(`div`,{className:xR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-purple-400/60 ring-offset-1`:``),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #e9d5ff 0%, #c084fc 40%, #a855f7 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(-1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(168, 85, 247, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#7e22ce transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(QC,{className:`w-3 h-3 text-purple-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-purple-900/50 uppercase tracking-widest`,children:`External`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#a855f7`,className:xR(`text-[13px] font-bold leading-snug truncate`,i?`text-purple-950/40 line-through`:`text-purple-950`),children:n}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-purple-900/40 font-semibold mt-0.5`,children:[`v`,t]}),s===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-purple-900/10 text-[9px] text-purple-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function SR(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o}=e.data.externalSystem,s=e.data.mode||`simple`,c=vC({handleType:`target`}),l=vC({handleType:`source`}),u=sL(),d=u?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:xR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-purple-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${u?`border-purple-400`:`border-purple-400/60`}`:`border-purple-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${d} 6px, ${d} 7px), var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4px, ${u?`rgba(168,85,247,0.25)`:`rgba(168,85,247,0.15)`} 4.5px), var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-external-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(168, 85, 247, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),c.length>0&&(0,k.jsx)(JNe,{side:`left`}),l.length>0&&(0,k.jsx)(JNe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:xR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-purple-500`),children:[(0,k.jsx)(QC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`External System`,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#a855f7`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]}),s===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}var CR=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(YNe,{...e}):(0,k.jsx)(SR,{...e})});[...JL,...YL,...ZL,...XL],[...JL,...YL,...ZL,...XL];function XNe(...e){return e.filter(Boolean).join(` `)}var wR={yellow:{bg:`bg-gradient-to-br from-yellow-200 to-yellow-300`,border:`border-yellow-400`,text:`text-yellow-900`,placeholder:`placeholder-yellow-600`,selectedRing:`ring-yellow-500`,tooltipBorderColor:`#facc15`},blue:{bg:`bg-blue-200`,border:`border-blue-400`,text:`text-blue-900`,placeholder:`placeholder-blue-600`,selectedRing:`ring-blue-500`,tooltipBorderColor:`#60a5fa`},green:{bg:`bg-green-200`,border:`border-green-400`,text:`text-green-900`,placeholder:`placeholder-green-600`,selectedRing:`ring-green-500`,tooltipBorderColor:`#4ade80`},pink:{bg:`bg-pink-200`,border:`border-pink-400`,text:`text-pink-900`,placeholder:`placeholder-pink-600`,selectedRing:`ring-pink-500`,tooltipBorderColor:`#f472b6`},purple:{bg:`bg-purple-200`,border:`border-purple-400`,text:`text-purple-900`,placeholder:`placeholder-purple-600`,selectedRing:`ring-purple-500`,tooltipBorderColor:`#c084fc`},gray:{bg:`bg-gray-200`,border:`border-gray-400`,text:`text-gray-900`,placeholder:`placeholder-gray-600`,selectedRing:`ring-gray-500`,tooltipBorderColor:`#9ca3af`}},ZNe={position:`relative`},TR={height:`100%`,minHeight:0},QNe=(0,p.memo)(function({id:e,data:t,selected:n,onTextChange:r,onColorChange:i,readOnly:a=!1}){let[o,s]=(0,p.useState)(!1),[c,l]=(0,p.useState)(t.text||`Double-click to edit...`),[u,d]=(0,p.useState)(!1),f=(0,p.useRef)(null),m=(0,p.useRef)(null),h=t.color||`yellow`,g=wR[h]||wR.yellow,_=e=>e.replace(/^### (.*$)/gim,`<h3 class="text-xs font-medium mb-1">$1</h3>`).replace(/^## (.*$)/gim,`<h2 class="text-xs font-semibold mb-1">$1</h2>`).replace(/^# (.*$)/gim,`<h1 class="text-sm font-bold mb-1">$1</h1>`).replace(/\*\*(.*?)\*\*/gim,`<strong class="font-bold">$1</strong>`).replace(/\*(.*?)\*/gim,`<em class="italic">$1</em>`).replace(/`(.*?)`/gim,`<code class="bg-gray-200 px-1 rounded text-[9px] font-mono">$1</code>`).replace(/^• (.*$)/gim,`<li class="text-[10px] ml-3">• $1</li>`).replace(/^- (.*$)/gim,`<li class="text-[10px] ml-3">• $1</li>`).replace(/\n/g,`<br>`);(0,p.useEffect)(()=>{l(t.text||`Double-click to edit...`)},[t.text]),(0,p.useEffect)(()=>{o&&f.current&&(f.current.focus(),f.current.select())},[o]),(0,p.useEffect)(()=>{let e=m.current;if(!e||o)return;let t=()=>{d(e.scrollHeight>e.clientHeight)};if(t(),typeof ResizeObserver>`u`)return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t);let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[c,o]);let v=(0,p.useCallback)(()=>{a||s(!0)},[a]),y=(0,p.useCallback)(e=>{l(e.target.value)},[]),b=(0,p.useCallback)(()=>{s(!1),c!==t.text&&r&&r(e,c)},[c,t.text,e,r]),x=(0,p.useCallback)(e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),b()),e.key===`Escape`&&(s(!1),l(t.text||`Double-click to edit...`))},[b,t.text]),S=(0,p.useCallback)(t=>{i&&i(e,t)},[e,i]);return(0,k.jsxs)(`div`,{className:`relative group`,style:BMe,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,className:`!left-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,className:`!right-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`}),n&&!o&&!a&&(0,k.jsx)(`div`,{className:`absolute -top-10 left-1/2 transform -translate-x-1/2 flex space-x-1 p-1 bg-[rgb(var(--ec-card-bg))] rounded-md shadow-lg border border-[rgb(var(--ec-page-border))] z-20`,children:Object.keys(wR).map(e=>(0,k.jsx)(`button`,{onClick:()=>S(e),className:XNe(`w-6 h-6 rounded-full border-2`,wR[e].bg,wR[e].border,h===e?`ring-2 ring-offset-1 `+wR[e].selectedRing:``),title:e.charAt(0).toUpperCase()+e.slice(1)},e))}),(0,k.jsxs)(`div`,{onDoubleClick:v,className:XNe(`w-full h-full rounded-lg border p-3 flex flex-col min-w-[150px] min-h-[150px] relative`,g.bg,g.border,g.text,`prose prose-sm max-w-full`,n?`border-blue-600 ring-2 ${g.selectedRing} shadow-xl`:`shadow-md hover:shadow-lg`,h===`yellow`?`shadow-yellow-300/50 shadow-lg transform rotate-0.5`:``),style:ZNe,children:[o?(0,k.jsx)(`textarea`,{ref:f,value:c,onChange:y,onBlur:b,onKeyDown:x,className:XNe(`w-full flex-1 bg-transparent border-none outline-none resize-none text-[10px] p-0 m-0`,g.text,g.placeholder),style:TR,placeholder:`Enter text...`}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{ref:m,className:`whitespace-pre-wrap break-words w-full h-full overflow-y-auto custom-scrollbar text-[10px]`,dangerouslySetInnerHTML:{__html:_(c)}}),u&&(0,k.jsxs)(`div`,{className:`pointer-events-none absolute left-1/2 bottom-full z-[9999] mb-4 hidden w-max max-w-[320px] -translate-x-1/2 rounded-md border bg-slate-950 px-2.5 py-1.5 text-[11px] font-medium leading-snug text-white shadow-lg group-hover:block`,style:{borderColor:g.tooltipBorderColor},children:[(0,k.jsx)(`span`,{className:`block whitespace-pre-wrap break-words`,children:c}),(0,k.jsx)(`span`,{className:`absolute left-1/2 top-full h-2 w-2 -translate-x-1/2 -translate-y-1/2 rotate-45 border-b border-r bg-slate-950`,style:{borderBottomColor:g.tooltipBorderColor,borderRightColor:g.tooltipBorderColor}})]})]}),h===`yellow`&&(0,k.jsx)(`div`,{className:`absolute top-0 right-0 w-4 h-4`,children:(0,k.jsx)(`div`,{className:`absolute top-0 right-0 w-0 h-0 border-l-[16px] border-b-[16px] border-l-transparent border-b-yellow-400/30 rounded-br-lg`})})]})]})});function $Ne({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #06b6d4, #0891b2)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}})}function ePe(...e){return e.filter(Boolean).join(` `)}var ER=(0,p.memo)(function(e){let{name:t,type:n}=e.data,r=e.data.mode||`simple`,i=vC({handleType:`target`}),a=vC({handleType:`source`});return sL(),(0,k.jsxs)(`div`,{className:ePe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-cyan-400/60 ring-offset-2`:``,`border-cyan-500`),style:{background:`var(--ec-field-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(6, 182, 212, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),i.length>0&&(0,k.jsx)($Ne,{side:`left`}),a.length>0&&(0,k.jsx)($Ne,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-cyan-600`,children:[(0,k.jsx)(YC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Field`]})}),n&&(0,k.jsx)(`span`,{className:`z-10 text-[7px] font-semibold text-[rgb(var(--ec-page-text))] bg-[rgb(var(--ec-card-bg))] border border-cyan-500 rounded-full px-1.5 py-0.5 uppercase tracking-wide`,style:{position:`absolute`,top:-8,right:10},children:n}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(`div`,{className:`flex items-baseline gap-1`,children:(0,k.jsx)(`span`,{className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))]`,children:t})}),r===`full`&&n&&(0,k.jsxs)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed`,title:`Type: ${n}`,children:[`Type: `,n]})]})]})});function DR({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 40 40`,className:e,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`,id:`eb-g`,children:[(0,k.jsx)(`stop`,{stopColor:`#B0084D`,offset:`0%`}),(0,k.jsx)(`stop`,{stopColor:`#FF4F8B`,offset:`100%`})]})}),(0,k.jsx)(`rect`,{width:`40`,height:`40`,rx:`4`,fill:`url(#eb-g)`}),(0,k.jsx)(`path`,{fill:`#FFF`,d:`M11.056 28.594a2.09 2.09 0 01-2.08-2.096 2.09 2.09 0 012.08-2.095c1.146 0 2.08.94 2.08 2.095a2.09 2.09 0 01-2.08 2.096zm1.857.363a3.093 3.093 0 001.223-2.459c0-1.711-1.382-3.103-3.08-3.103-.42 0-.817.086-1.181.24l-1.799-3.139 2.362-4.122-.865-.504-2.506 4.375a.504.504 0 000 .503l1.966 3.43a3.09 3.09 0 00-1.056 2.32c0 1.712 1.38 3.104 3.079 3.104.342 0 .665-.07.973-.174l1.531 2.844a.5.5 0 00.44.263h5.5v-1.008h-5.203l-1.385-2.57zM29.944 16.56a2.09 2.09 0 01-2.08-2.096 2.09 2.09 0 012.08-2.096 2.09 2.09 0 012.078 2.096 2.09 2.09 0 01-2.079 2.096zm2.023.224a3.095 3.095 0 001.055-2.32c0-1.711-1.38-3.104-3.079-3.104-.34 0-.662.07-.97.173L27.442 8.62A.497.497 0 0027 8.351h-5.5V9.36h5.2l1.39 2.644a3.1 3.1 0 00-1.226 2.462c0 1.71 1.381 3.103 3.08 3.103.42 0 .818-.086 1.18-.24l1.799 3.14-2.362 4.12.866.504 2.505-4.373a.504.504 0 000-.504l-1.965-3.43zm-4.573 16.207a2.09 2.09 0 01-2.08-2.095 2.09 2.09 0 012.08-2.095 2.09 2.09 0 012.079 2.095 2.09 2.09 0 01-2.08 2.095zm-9.19-8.491l-2.293-4.002 2.292-4h4.584l2.294 4-2.294 4.002h-4.584zm-4.568-12.303a2.09 2.09 0 01-2.08-2.095 2.09 2.09 0 012.08-2.095c1.146 0 2.08.94 2.08 2.095a2.09 2.09 0 01-2.08 2.095zm13.758 15.596c-.625 0-1.206.191-1.692.515l-2.07-3.267 2.46-4.29a.504.504 0 000-.504l-2.582-4.505a.498.498 0 00-.433-.252h-4.752l-2.279-3.481a3.088 3.088 0 00.67-1.907c0-1.711-1.382-3.103-3.08-3.103-1.699 0-3.08 1.392-3.08 3.103 0 1.712 1.381 3.103 3.08 3.103a3.04 3.04 0 001.668-.502l2.09 3.194-2.492 4.35a.504.504 0 000 .503l2.58 4.506a.497.497 0 00.433.252h4.828l2.218 3.505A3.092 3.092 0 0027.395 34c1.698 0 3.079-1.393 3.079-3.103 0-1.712-1.381-3.103-3.08-3.103z`})]})}function OR({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 40 40`,className:e,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`,id:`sqs-g`,children:[(0,k.jsx)(`stop`,{stopColor:`#B0084D`,offset:`0%`}),(0,k.jsx)(`stop`,{stopColor:`#FF4F8B`,offset:`100%`})]})}),(0,k.jsx)(`rect`,{width:`40`,height:`40`,rx:`4`,fill:`url(#sqs-g)`}),(0,k.jsx)(`path`,{fill:`#FFF`,d:`M14.342 22.35l1.505-1.444a.501.501 0 00.013-.708l-1.505-1.555-.72.695.676.7h-2.32v.999h2.274l-.617.592.694.72zm12.016.003l1.55-1.453a.5.5 0 00.011-.717l-1.55-1.546-.708.707.694.694H24.01v.999H26.3l-.627.588.686.728zm-8.77 1.008a6.458 6.458 0 012.417-.467c.842 0 1.665.163 2.416.467-.669-1.771-.669-3.971 0-5.742-1.502.607-3.331.607-4.833 0 .669 1.77.669 3.97 0 5.742zm-1.944 1.98a.494.494 0 010-.707c1.94-1.936 1.94-6.352 0-8.289a.494.494 0 010-.706.502.502 0 01.709 0c.921.92 2.252 1.447 3.652 1.447 1.4 0 2.731-.528 3.653-1.447a.502.502 0 01.854.354c0 .128-.05.255-.146.352-1.942 1.937-1.942 6.353 0 8.29a.501.501 0 01-.708.706c-.922-.92-2.253-1.447-3.653-1.447s-2.731.527-3.652 1.447a.502.502 0 01-.709 0zm16.898-5.905a1.562 1.562 0 00-1.106-.456 1.558 1.558 0 00-1.105 2.662c.61.608 1.601.608 2.211 0a1.56 1.56 0 000-2.206zm.708 2.913a2.56 2.56 0 01-1.814.749 2.56 2.56 0 01-1.813-4.369c1-.997 2.628-.997 3.627 0 1 .999 1 2.622 0 3.62zM9.67 19.447a1.562 1.562 0 00-1.106-.456 1.56 1.56 0 00-1.105 2.662 1.56 1.56 0 102.21-2.206zm.708 2.912a2.56 2.56 0 01-1.814.749A2.559 2.559 0 016.75 18.74c1-.997 2.627-.997 3.627 0 1 .999 1 2.622 0 3.62zm17.057 6.551A10.514 10.514 0 0119.957 32a10.51 10.51 0 01-7.475-3.09c-1.316-1.312-2.074-2.44-2.537-3.774l-.947.327c.51 1.466 1.365 2.747 2.776 4.154A11.506 11.506 0 0019.957 33c3.093 0 6-1.201 8.185-3.383 1.14-1.139 2.279-2.43 2.87-4.156l-.948-.323c-.525 1.532-1.575 2.719-2.63 3.772zM9.945 15.86l-.947-.328c.512-1.467 1.368-2.749 2.778-4.156 4.51-4.5 11.85-4.502 16.362 0 1.08 1.077 2.266 2.414 2.874 4.156l-.948.328c-.54-1.55-1.635-2.78-2.634-3.777a10.508 10.508 0 00-7.473-3.087 10.508 10.508 0 00-7.472 3.087c-1.298 1.295-2.081 2.46-2.54 3.777z`})]})}function tPe({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 40 40`,className:e,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`,id:`sns-g`,children:[(0,k.jsx)(`stop`,{stopColor:`#B0084D`,offset:`0%`}),(0,k.jsx)(`stop`,{stopColor:`#FF4F8B`,offset:`100%`})]})}),(0,k.jsx)(`rect`,{width:`40`,height:`40`,rx:`4`,fill:`url(#sns-g)`}),(0,k.jsx)(`path`,{fill:`#FFF`,d:`M7.01 20.078a1.1 1.1 0 011.105-1.093 1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.105-1.093zM20.776 33C14.813 33 9.645 28.375 8.47 22.136a2.1 2.1 0 001.69-1.558h2.949v-1h-2.95a2.104 2.104 0 00-1.653-1.554C9.72 12.252 14.838 8 20.776 8c2.933 0 5.354.643 7.194 1.911l.575-.821C26.534 7.703 23.92 7 20.776 7c-6.51 0-12.104 4.726-13.308 11.096C6.62 18.368 6 19.149 6 20.078c0 .916.602 1.688 1.431 1.971C8.591 28.894 14.24 34 20.776 34c3.285 0 6.788-1.667 8.786-3.094l-.59-.811C26.947 31.541 23.627 33 20.777 33zM14.79 18.242c1.111.274 2.523.321 3.343.321.833 0 2.271-.047 3.402-.32l-2.401 5.014a.507.507 0 00-.048.215v2.324l-1.957.915v-3.239a.514.514 0 00-.044-.206l-2.295-5.024zm3.343-1.757c2.314 0 3.554.311 3.951.52-.417.234-1.745.558-3.95.558-2.184 0-3.483-.327-3.873-.558.37-.206 1.582-.52 3.872-.52zm-1.78 11.438a.511.511 0 00.486.03l2.968-1.388a.5.5 0 00.288-.452v-2.529l2.909-6.074a.806.806 0 00.189-.51c0-1.252-2.751-1.515-5.06-1.515-2.266 0-4.969.263-4.969 1.515 0 .19.067.355.18.502l2.775 6.077V27.5c0 .172.088.331.235.423zM30.877 27a1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.104-1.093A1.1 1.1 0 0130.876 27zm0-16.03a1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.104-1.093 1.1 1.1 0 011.104-1.093zm1.01 8.015a1.1 1.1 0 011.104 1.093 1.1 1.1 0 01-1.104 1.093 1.1 1.1 0 01-1.104-1.093 1.1 1.1 0 011.104-1.093zm-4.607 1.593h2.561a2.108 2.108 0 002.046 1.593A2.106 2.106 0 0034 20.078a2.106 2.106 0 00-2.114-2.093c-.992 0-1.818.681-2.046 1.593H27.28v-7.015h1.551a2.108 2.108 0 002.046 1.593 2.106 2.106 0 002.114-2.093 2.106 2.106 0 00-2.114-2.093c-.991 0-1.818.681-2.046 1.593h-2.056a.502.502 0 00-.505.5v7.515h-3.061v1h3.061v7.515c0 .277.226.5.505.5h2.056a2.108 2.108 0 002.046 1.593 2.106 2.106 0 002.114-2.093A2.106 2.106 0 0030.876 26c-.991 0-1.818.681-2.046 1.593H27.28v-7.015z`})]})}var kR={http:{component:sw,type:`lucide`},https:{component:sw,type:`lucide`},ws:{component:Qce,type:`lucide`},wss:{component:Qce,type:`lucide`},websocket:{component:Qce,type:`lucide`},mqtt:{component:dw,type:`lucide`},amqp:{component:iw,type:`lucide`},grpc:{component:QC,type:`lucide`},graphql:{component:QC,type:`lucide`},kafka:{component:iw,type:`lucide`},rabbitmq:{component:iw,type:`lucide`},redis:{component:iw,type:`lucide`},nats:{component:iw,type:`lucide`},pulsar:{component:iw,type:`lucide`},solace:{component:iw,type:`lucide`},activemq:{component:iw,type:`lucide`},sqs:{component:OR,type:`svg`},sns:{component:tPe,type:`svg`},eventbridge:{component:DR,type:`svg`},kinesis:{component:iw,type:`lucide`},msk:{component:iw,type:`lucide`},pubsub:{component:JC,type:`lucide`},googlepubsub:{component:JC,type:`lucide`},cloudtasks:{component:JC,type:`lucide`},servicebus:{component:JC,type:`lucide`},azureservicebus:{component:JC,type:`lucide`},eventhubs:{component:JC,type:`lucide`},azureeventhubs:{component:JC,type:`lucide`},eventgrid:{component:JC,type:`lucide`},azureeventgrid:{component:JC,type:`lucide`}},nPe=e=>e&&kR[e.replace(/[-_\s]/g,``).toLowerCase()]||null;function AR(e){let t=nPe(e);return t?t.component:jCe[e]||null}function jR(...e){return e.filter(Boolean).join(` `)}var MR=(0,p.memo)(function({data:e,sourcePosition:t,targetPosition:n}){let{mode:r,flow:i}=e,a=Array.isArray(e?.expandedNodes)&&e.expandedNodes.length>0,{id:o,version:s,owners:c=_L,name:l,styles:u}=i.data,{node:{color:d=`teal`,label:f}={},icon:m=`QueueListIcon`}=u||{},h=(0,p.useMemo)(()=>AR(m),[m]),g=wL(),_=f||i?.data?.sidebar?.badge||`Flow`,v=_.length>10?`7px`:`9px`;return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:`relative`,style:{isolation:`isolate`,...cL},children:[a&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`div`,{className:`absolute inset-0 rounded-md border border-${d}-400 bg-[rgb(var(--ec-card-bg))]`,style:{transform:`translate(6px, 6px)`,opacity:.5},"aria-hidden":!0}),(0,k.jsx)(`div`,{className:`absolute inset-0 rounded-md border border-${d}-400 bg-[rgb(var(--ec-card-bg))]`,style:{transform:`translate(3px, 3px)`,opacity:.7},"aria-hidden":!0})]}),(0,k.jsxs)(`div`,{className:jR(`relative rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] border-${d}-400`),style:cL,children:[(0,k.jsxs)(`div`,{className:jR(`bg-gradient-to-b from-${d}-500 to-${d}-700 relative flex flex-col items-center w-5 justify-between rounded-l-sm text-${d}-100`,`border-r-[1px] border-${d}-500`),children:[h&&(0,k.jsx)(h,{className:`w-4 h-4 opacity-90 text-white mt-1`}),r===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[${v}] text-white font-bold uppercase mb-4`,style:lL,children:_})]}),(0,k.jsxs)(`div`,{className:`p-1 flex-1 min-w-0`,children:[n&&(0,k.jsx)(xS,{type:`target`,position:n}),t&&(0,k.jsx)(xS,{type:`source`,position:t}),(0,k.jsxs)(`div`,{className:jR(r===`full`?`border-b border-[rgb(var(--ec-page-border))]`:``),children:[(0,k.jsx)(FL,{as:`div`,value:l,tooltipBorderColor:`#14b8a6`,className:`text-xs font-bold truncate pt-0.5 pb-0.5`,children:l}),(0,k.jsxs)(`div`,{className:`flex justify-between`,children:[(0,k.jsxs)(`span`,{className:`text-[10px] font-light block pt-0.5 pb-0.5 `,children:[`v`,s]}),r===`simple`&&(0,k.jsx)(`span`,{className:`text-[10px] text-[rgb(var(--ec-page-text-muted))] font-light block pt-0.5 pb-0.5 `,children:_})]})]}),r===`full`&&(0,k.jsxs)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] `,children:[(0,k.jsx)(`div`,{className:`leading-3 py-1`,children:(0,k.jsx)(`span`,{className:`text-[8px] font-light`,children:i.data.summary})}),(0,k.jsx)(`div`,{className:`grid grid-cols-2 gap-x-4 py-1`,children:(0,k.jsxs)(`span`,{className:`text-xs`,style:uL,children:[`Owners: `,c.length]})})]}),a&&(0,k.jsxs)(`div`,{className:`mt-1 flex items-center gap-1 text-[8px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(tw,{className:`w-2.5 h-2.5`}),`Click to explore`]})]})]})]})}),(0,k.jsx)(VO,{container:g,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:[(0,k.jsx)(UO,{asChild:!0,className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/docs/flows/${o}/${s}`),children:`Read documentation`})}),(0,k.jsx)(UO,{asChild:!0,className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/visualiser/flows/${o}/${s}`),children:`Focus node`})}),(0,k.jsx)(Whe,{className:`h-[1px] bg-[rgb(var(--ec-page-border))] m-1`}),(0,k.jsx)(UO,{asChild:!0,children:(0,k.jsx)(`a`,{href:rL(`/docs/flows/${o}/${s}/changelog`),className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,target:`_blank`,rel:`noopener noreferrer`,children:`Read changelog`})})]})})]})}),NR={width:`100%`,height:`100%`,borderRadius:12,border:`2px solid rgba(20, 184, 166, 0.5)`,backgroundColor:`rgba(20, 184, 166, 0.08)`,boxShadow:`0 2px 12px rgba(20, 184, 166, 0.12)`,position:`relative`,overflow:`visible`},PR={position:`absolute`,top:0,left:0,right:0,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,background:`rgba(20, 184, 166, 0.12)`,borderBottom:`1px solid rgba(20, 184, 166, 0.3)`,overflow:`visible`},rPe={position:`absolute`,top:-10,left:12,display:`inline-flex`,alignItems:`center`,gap:3,padding:`2px 8px`,borderRadius:4,background:`#0d9488`,boxShadow:`0 1px 3px rgba(0,0,0,0.15)`,zIndex:10,fontSize:8,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`white`},iPe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,height:`100%`,padding:`0 12px 0 14px`,gap:12},aPe={fontSize:11,fontWeight:700,color:`rgb(var(--ec-page-text))`,letterSpacing:`0.04em`,textTransform:`uppercase`,whiteSpace:`nowrap`},FR={fontSize:10,fontWeight:500,color:`#5eead4`,marginLeft:8},IR={background:`#0d9488`,border:`1px solid #5eead4`,borderRadius:6,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:4,fontSize:10,fontWeight:600,color:`white`},LR=(0,p.memo)(function({data:e}){let{flowName:t,version:n}=e;return(0,k.jsx)(`div`,{style:NR,children:(0,k.jsxs)(`div`,{style:PR,children:[(0,k.jsxs)(`div`,{style:rPe,children:[(0,k.jsx)(fw,{size:10,strokeWidth:2.5}),`Sub-flow`]}),(0,k.jsxs)(`div`,{style:iPe,children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,minWidth:0,flex:1},children:[(0,k.jsx)(FL,{value:t||`Flow`,tooltipBorderColor:`#14b8a6`,className:`truncate`,style:aPe,children:t||`Flow`}),n&&(0,k.jsxs)(`span`,{style:FR,children:[`v`,n]})]}),(0,k.jsxs)(`button`,{style:IR,className:`ec-collapse-flow-btn nodrag nopan`,onMouseDown:e=>e.stopPropagation(),children:[(0,k.jsx)(Jce,{size:12,strokeWidth:2.5}),`Collapse`]})]})]})})}),oPe=`__eventcatalog-entity-target`;function RR(...e){return e.filter(Boolean).join(` `)}var sPe=e=>e.type===`array`&&e.items?.type?`${e.items.type}[]`:e.type,cPe=e=>e.properties?.length?e.properties:e.type===`array`&&e.items?.properties?.length?e.items.properties:[],zR=(0,p.memo)(function({id:e,data:t,sourcePosition:n,targetPosition:r}){let{mode:i,entity:a,externalToDomain:o,domainName:s,entityTargetHandle:c=oPe,referencePropertyNames:l=_L}=t,{name:u,version:d,properties:f=_L,aggregateRoot:m,styles:h,sidebar:g}=a.data,{node:{color:_=`blue`,label:v}={},icon:y=`CubeIcon`}=h||{},b=(0,p.useMemo)(()=>AR(y),[y]),[x,S]=(0,p.useState)(null),[C,w]=(0,p.useState)(()=>new Set),T=(0,p.useRef)(C),E=uC(),ee=wL(),te=(0,p.useMemo)(()=>new Set(l),[l]),ne=(0,p.useCallback)(e=>{w(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]);(0,p.useEffect)(()=>{T.current!==C&&(T.current=C,E(e))},[C,e,E]);let re=(e,t=0,n=``)=>e.map((e,r)=>{let i=n?`${n}.${e.name}`:e.name,a=`${i}-${r}`,o=x===a,s=cPe(e),c=s.length>0,l=C.has(i),u=t===0,d=e.references||(u&&te.has(e.name)?e.items?.type:void 0);return(0,k.jsxs)(`div`,{children:[(0,k.jsxs)(`div`,{className:RR(`relative flex items-center justify-between py-2 pr-4 hover:bg-[rgb(var(--ec-page-border)/0.2)]`,c&&`nodrag nopan cursor-pointer`),style:{paddingLeft:`${16+t*16}px`},role:c?`button`:void 0,tabIndex:c?0:void 0,"aria-label":c?`${l?`Collapse`:`Expand`} ${e.name}`:void 0,"aria-expanded":c?l:void 0,onClick:e=>{c&&(e.target.closest(`.react-flow__handle`)||ne(i))},onKeyDown:e=>{!c||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),ne(i))},onMouseEnter:()=>e.description&&S(a),onMouseLeave:()=>S(null),children:[u&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,id:`${e.name}-target`,className:`!w-3 !h-3 !bg-[rgb(var(--ec-card-bg))] !border-2 !border-[rgb(var(--ec-page-border))] !rounded-full !left-[-0px]`,style:hL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,id:`${e.name}-source`,className:`!w-3 !h-3 !bg-[rgb(var(--ec-card-bg))] !border-2 !border-[rgb(var(--ec-page-border))] !rounded-full !right-[-0px]`,style:zMe})]}),(0,k.jsxs)(`div`,{className:`flex-1 flex items-center justify-between gap-3 min-w-0`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0`,children:[c&&(0,k.jsx)(`span`,{className:`shrink-0 text-[rgb(var(--ec-page-text-muted))]`,"aria-hidden":`true`,children:l?(0,k.jsx)(NCe,{className:`h-3.5 w-3.5`}):(0,k.jsx)(V,{className:`h-3.5 w-3.5`})}),(0,k.jsx)(`span`,{className:`text-sm font-medium text-[rgb(var(--ec-page-text))] truncate`,children:e.name}),e.required&&(0,k.jsx)(`span`,{className:`text-red-500 text-xs`,children:`*`})]}),(0,k.jsx)(`span`,{className:`text-sm text-[rgb(var(--ec-page-text-muted))] font-mono shrink-0`,children:sPe(e)})]}),d&&(0,k.jsx)(`div`,{className:`absolute right-2 top-1/2 transform -translate-y-1/2`,children:(0,k.jsx)(`div`,{className:`w-2 h-2 bg-blue-500 rounded-full`,title:`References ${d}`})}),o&&e.description&&(0,k.jsxs)(`div`,{className:`absolute left-full ml-2 top-1/2 transform -translate-y-1/2 z-[9999] w-[200px] bg-gray-900 text-white text-xs rounded-lg py-2 px-3 pointer-events-none shadow-xl max-w-xl opacity-100`,children:[(0,k.jsx)(`div`,{className:`text-gray-200 whitespace-normal break-words`,children:e.description}),(0,k.jsx)(`div`,{className:`absolute right-full top-1/2 transform -translate-y-1/2 border-4 border-transparent border-r-gray-900`})]})]}),c&&l&&(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] border-t border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-content-hover)/0.18)]`,children:re(s,t+1,i)})]},a)});return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:RR(`bg-[rgb(var(--ec-card-bg))] border rounded-lg shadow-sm min-w-[200px]`,o?`border-amber-500/60`:`border-blue-400/50`),children:[(0,k.jsxs)(`div`,{className:RR(`relative px-4 py-2 rounded-t-lg border-b border-[rgb(var(--ec-page-border))]`,o?`bg-amber-500/20`:`bg-blue-500/15`),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,id:c,className:`!w-3 !h-3 !bg-[rgb(var(--ec-card-bg))] !border-2 !border-[rgb(var(--ec-page-border))] !rounded-full !left-[-0px]`,style:hL}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[b&&(0,k.jsx)(b,{className:`w-4 h-4 text-[rgb(var(--ec-page-text-muted))]`}),(0,k.jsx)(FL,{value:u,tooltipBorderColor:o?`#f59e0b`:`#60a5fa`,className:`font-semibold text-[rgb(var(--ec-page-text))] text-sm truncate`,children:u}),m&&(0,k.jsx)(`span`,{className:`text-xs bg-amber-500/20 text-amber-600 dark:text-amber-400 px-1.5 py-0.5 rounded font-medium shrink-0`,children:`AR`})]}),s&&(0,k.jsxs)(`div`,{className:`text-xs text-[rgb(var(--ec-page-text-muted))] font-medium mt-1`,children:[`from `,s,` domain`]}),i===`full`&&(0,k.jsxs)(`div`,{className:`text-xs text-[rgb(var(--ec-page-text-muted))] mt-1`,children:[`v`,d]})]}),f.length>0?(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] relative`,children:re(f)}):(0,k.jsx)(`div`,{className:`px-4 py-3 text-sm text-[rgb(var(--ec-page-text-muted))] text-center`,children:`No properties defined`}),f.length===0&&(0,k.jsxs)(k.Fragment,{children:[r&&(0,k.jsx)(xS,{type:`target`,position:r}),n&&(0,k.jsx)(xS,{type:`source`,position:n})]})]})}),(0,k.jsx)(VO,{container:ee,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,onClick:e=>e.stopPropagation(),children:[(0,k.jsx)(UO,{asChild:!0,className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-accent-subtle))] rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/docs/entities/${a.data.id}/${d}`),children:`Read documentation`})}),(0,k.jsx)(UO,{asChild:!0,className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-accent-subtle))] rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:rL(`/visualiser/entities/${a.data.id}/${d}`),children:`Focus node`})})]})})]})});function BR(...e){return e.filter(Boolean).join(` `)}var lPe=(0,p.memo)(function({data:e,sourcePosition:t,targetPosition:n}){let{mode:r,step:i,showTarget:a=!0,showSource:o=!0}=e,{summary:s,actor:{name:c}={}}=i,l=c||i.name||i.title||`Actor`;return(0,k.jsxs)(`div`,{className:BR(`rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] border-yellow-400`,r===`full`?`min-h-[5em]`:`min-h-[2em]`),style:cL,children:[(0,k.jsxs)(`div`,{className:BR(`bg-gradient-to-b from-yellow-400 to-yellow-600 relative flex flex-col items-center w-5 justify-between rounded-l-sm text-orange-100-500`,`border-r-[1px] border-yellow-500`),children:[(0,k.jsx)(ICe,{className:`w-4 h-4 opacity-90 text-white mt-1`}),r===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[9px] text-white font-bold uppercase mb-4`,style:lL,children:`ACTOR`})]}),(0,k.jsxs)(`div`,{className:`p-1 flex-1 min-w-0`,children:[n&&(0,k.jsx)(xS,{type:`target`,position:n}),t&&(0,k.jsx)(xS,{type:`source`,position:t}),(!s||r!==`full`)&&(0,k.jsxs)(`div`,{className:`h-full min-w-0`,children:[(0,k.jsx)(FL,{as:`div`,value:l,tooltipBorderColor:`#eab308`,className:`text-sm font-bold truncate pb-0.5`,children:l}),r===`simple`&&(0,k.jsx)(`div`,{className:`w-full text-right`,children:(0,k.jsx)(`span`,{className:` w-full text-[10px] text-[rgb(var(--ec-page-text-muted))] font-light block pt-0.5 pb-0.5 `,children:`Event`})})]}),s&&r===`full`&&(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`div`,{className:BR(r===`full`?`border-b border-[rgb(var(--ec-page-border))]`:``),children:(0,k.jsx)(FL,{as:`div`,value:l,tooltipBorderColor:`#eab308`,className:`text-xs font-bold truncate pb-0.5`,children:l})}),r===`full`&&(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] `,children:(0,k.jsx)(`div`,{className:`leading-3 py-1`,children:(0,k.jsx)(`span`,{className:`text-[8px] font-light`,children:s})})})]})]})]})});function VR(...e){return e.filter(Boolean).join(` `)}var HR=(0,p.memo)(function({data:e,sourcePosition:t,targetPosition:n}){let{mode:r,step:i}=e,{title:a,summary:o}=i;return(0,k.jsxs)(`div`,{className:VR(`rounded-md border flex justify-start bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] border-blue-400 min-h-[3em]`),style:cL,children:[(0,k.jsx)(`div`,{className:VR(`bg-gradient-to-b from-gray-700 to-gray-700 relative flex flex-col items-center w-5 justify-end rounded-l-sm text-orange-100-500`,`border-r-[1px] border-gray-500`),children:r===`full`&&(0,k.jsx)(`span`,{className:`text-center text-[9px] text-white font-bold uppercase mb-4`,style:lL,children:`Step`})}),(0,k.jsxs)(`div`,{className:`p-1 flex-1 min-w-0`,children:[(0,k.jsx)(xS,{type:`target`,position:n||Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:t||Fy.Right,style:bL}),!o&&(0,k.jsx)(`div`,{className:`h-full flex items-center min-w-0`,children:(0,k.jsx)(FL,{as:`div`,value:a,tooltipBorderColor:`#60a5fa`,className:`text-sm font-bold truncate pb-0.5`,children:a})}),o&&(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`div`,{className:VR(r===`full`?`border-b border-[rgb(var(--ec-page-border))]`:``),children:(0,k.jsx)(FL,{as:`div`,value:a,tooltipBorderColor:`#60a5fa`,className:`text-xs font-bold truncate pb-0.5`,children:a})}),r===`full`&&(0,k.jsx)(`div`,{className:`divide-y divide-[rgb(var(--ec-page-border))] `,children:(0,k.jsx)(`div`,{className:`leading-3 py-1`,children:(0,k.jsx)(`span`,{className:`text-[8px] font-light`,children:o})})})]})]})]})}),uPe=(0,p.memo)(function({data:e,id:t}){let{mode:n,domain:r}=e,i=uS(),[a,o]=(0,p.useState)(new Set),{id:s,version:c,name:l,services:u=[],styles:d}=r.data,{icon:f=`RectangleGroupIcon`}=d||{},m=(0,p.useMemo)(()=>AR(f),[f]),h=(0,p.useMemo)(()=>AR(`ServerIcon`),[]),g=wL();return mC({onChange:(0,p.useCallback)(({nodes:e})=>{if(e.length===0){o(new Set);return}let n=e[0];if(!n){o(new Set);return}let r=i.getEdges(),a=new Set;r.forEach(e=>{if(e.source===n.id||e.target===n.id){if(e.source===t&&e.sourceHandle){let t=e.sourceHandle.replace(`-source`,``);a.add(t)}if(e.target===t&&e.targetHandle){let t=e.targetHandle.replace(`-target`,``);a.add(t)}}}),o(a)},[t,i])}),(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:`w-full rounded-lg border-2 border-yellow-400 bg-[rgb(var(--ec-card-bg))] shadow-lg`,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsxs)(`div`,{className:`bg-[rgb(var(--ec-domain-header-bg,253_224_71)/0.2)] px-3 py-2 flex items-center space-x-2`,children:[m&&(0,k.jsx)(m,{className:`w-4 h-4 text-yellow-500`}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-bold text-[rgb(var(--ec-page-text))]`,children:l}),(0,k.jsxs)(`span`,{className:`text-xs text-yellow-500 ml-2`,children:[`v`,c]})]})]}),n===`full`&&u.length>0&&(0,k.jsx)(`div`,{children:u.map((e,t)=>{let n=a.has(e.data.id);return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{asChild:!0,children:(0,k.jsxs)(`div`,{className:`relative flex items-center justify-between px-3 py-2 cursor-pointer ${t===u.length-1?``:`border-b border-[rgb(var(--ec-page-border))]`} ${n?`bg-pink-100 border-pink-300`:``}`,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,id:`${e.data.id}-target`,className:`!left-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`,style:pL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,id:`${e.data.id}-source`,className:`!right-[-1px] !w-2 !h-2 !bg-gray-400 !border !border-gray-500 !rounded-full !z-10`,style:mL}),(0,k.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,k.jsx)(`div`,{className:`flex items-center justify-center w-5 h-5 bg-pink-500 rounded`,children:h&&(0,k.jsx)(h,{className:`w-3 h-3 text-white`})}),(0,k.jsx)(`span`,{className:`text-sm font-medium text-[rgb(var(--ec-page-text))]`,children:e.data.name||e.data.id})]}),(0,k.jsx)(`div`,{className:`flex items-center space-x-4 text-sm text-[rgb(var(--ec-page-text-muted))]`,children:(0,k.jsxs)(`span`,{className:`text-xs`,children:[`v`,e.data.version]})})]})}),(0,k.jsx)(VO,{container:g,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:[(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/docs/services/${e.data.id}/${e.data.version}`),children:`View Service Documentation`}),(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/visualiser/services/${e.data.id}/${e.data.version}`),children:`View Service Visualizer`})]})})]},`${e.data.id}-${t}`)})})]})}),(0,k.jsx)(VO,{container:g,children:(0,k.jsxs)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:[(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/docs/domains/${s}/${c}`),children:`View Domain Documentation`}),(0,k.jsx)(UO,{className:`text-sm text-[rgb(var(--ec-page-text))] px-2 py-1.5 outline-none cursor-pointer hover:bg-[rgb(var(--ec-page-border)/0.5)] rounded-sm flex items-center`,onClick:()=>window.location.href=rL(`/visualiser/domains/${s}/${c}`),children:`View Domain Visualizer`})]})})]})});function UR(...e){return e.filter(Boolean).join(` `)}var dPe=(0,p.memo)(function({data:e}){let{system:t,mode:n=`simple`,servicesCount:r=0,entitiesCount:i=0,containersCount:a=0,messagesCount:o=0,isFocused:s=!1,navigable:c=!0}=e,{id:l,version:u,name:d,summary:f,scope:p}=t,m=p===`external`,h=sL(),g=!!e.step,_=c&&!g,v=[{icon:sw,label:`Services`,count:r},{icon:rw,label:`Messages`,count:o},{icon:Rce,label:`Entities`,count:i},{icon:YC,label:`Data Stores`,count:a}].filter(e=>e.count>0),y=m?h?`rgba(148,163,184,0.12)`:`rgba(148,163,184,0.1)`:`var(--ec-system-node-bg, rgb(var(--ec-card-bg)))`,b=()=>{IMe(rL(`/visualiser/systems/${l}/${u}`))};return(0,k.jsxs)(`div`,{..._?{role:`button`,tabIndex:0,onClick:b,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&b()},title:`Open the ${d} map`}:{},className:UR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,_&&`cursor-pointer`,m?`border-dashed border-violet-400`:`border-violet-500`),style:{background:y,boxShadow:`0 2px 12px rgba(139, 92, 246, 0.15)`},children:[s&&(0,k.jsx)(IL,{}),(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-violet-500`,children:[(0,k.jsx)($C,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),m?`External System`:`System`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:d,tooltipBorderColor:`#8b5cf6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:d}),u&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,u,`)`]})]}),n===`full`&&f&&(0,k.jsx)(`div`,{className:UR(`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`),style:dL,title:f,children:f}),v.length>0&&(0,k.jsx)(`div`,{className:`mt-2 flex items-center gap-3 border-t border-[rgb(var(--ec-page-border))] pt-1.5`,children:v.map(({icon:e,label:t,count:n})=>(0,k.jsxs)(`div`,{title:`${n} ${t}`,className:`flex items-center gap-1 text-[10px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(e,{className:`w-3 h-3 text-violet-500`,strokeWidth:2}),(0,k.jsx)(`span`,{className:`font-medium`,children:n})]},t))})]})]})}),fPe={width:`100%`,height:`100%`,borderRadius:12,border:`2px solid var(--ec-group-border, #c4b5fd)`,backgroundColor:`var(--ec-group-bg, rgba(250, 248, 255, 0.35))`,position:`relative`,overflow:`visible`},WR={position:`absolute`,top:0,left:0,right:0,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,background:`var(--ec-group-header-bg, rgba(237, 233, 254, 0.7))`,borderBottom:`1px solid var(--ec-group-border, #c4b5fd)`,overflow:`visible`},pPe={position:`absolute`,top:6,right:10,opacity:.12,transform:`rotate(12deg)`,pointerEvents:`none`},mPe={position:`absolute`,top:-14,left:12,width:32,height:32,borderRadius:`50%`,background:`#7c3aed`,border:`2px solid #a78bfa`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 1px 3px rgba(0,0,0,0.1)`,zIndex:10},GR={display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,padding:`0 40px`,minWidth:0},KR={display:`flex`,alignItems:`center`,gap:8,minWidth:0},hPe={fontSize:15,fontWeight:800,color:`var(--ec-group-text, #5b21b6)`,letterSpacing:`0.06em`,textTransform:`uppercase`,whiteSpace:`nowrap`},qR={fontSize:9,fontWeight:500,color:`#a78bfa`},JR={color:`#7c3aed`},gPe={color:`white`},_Pe=(0,p.memo)(function({data:e}){let{domain:t}=e;return(0,k.jsx)(`div`,{style:fPe,children:(0,k.jsxs)(`div`,{style:WR,children:[(0,k.jsx)(`div`,{style:pPe,children:(0,k.jsx)(UC,{size:28,strokeWidth:2,style:JR})}),(0,k.jsx)(`div`,{style:mPe,children:(0,k.jsx)(UC,{size:16,strokeWidth:2.5,style:gPe})}),(0,k.jsx)(`div`,{style:GR,children:(0,k.jsxs)(`div`,{style:KR,children:[(0,k.jsx)(FL,{value:t?.name||`Domain`,tooltipBorderColor:`#7c3aed`,className:`truncate`,style:hPe,children:t?.name||`Domain`}),t?.version&&(0,k.jsxs)(`span`,{style:qR,children:[`v`,t.version]})]})})]})})}),vPe={blue:{border:`border-blue-500`,badge:`bg-blue-500`,ring:`ring-2 ring-blue-400/60 ring-offset-2`,shadow:`rgba(59, 130, 246, 0.15)`,glow:`linear-gradient(135deg, #3b82f6, #2563eb)`,pillBorder:`#3b82f6`},teal:{border:`border-teal-500`,badge:`bg-teal-500`,ring:`ring-2 ring-teal-400/60 ring-offset-2`,shadow:`rgba(20, 184, 166, 0.15)`,glow:`linear-gradient(135deg, #14b8a6, #0f766e)`,pillBorder:`#14b8a6`},red:{border:`border-red-500`,badge:`bg-red-500`,ring:`ring-2 ring-red-400/60 ring-offset-2`,shadow:`rgba(239, 68, 68, 0.15)`,glow:`linear-gradient(135deg, #ef4444, #b91c1c)`,pillBorder:`#ef4444`},green:{border:`border-green-500`,badge:`bg-green-500`,ring:`ring-2 ring-green-400/60 ring-offset-2`,shadow:`rgba(34, 197, 94, 0.15)`,glow:`linear-gradient(135deg, #22c55e, #15803d)`,pillBorder:`#22c55e`},purple:{border:`border-purple-500`,badge:`bg-purple-500`,ring:`ring-2 ring-purple-400/60 ring-offset-2`,shadow:`rgba(168, 85, 247, 0.15)`,glow:`linear-gradient(135deg, #a855f7, #7e22ce)`,pillBorder:`#a855f7`},orange:{border:`border-orange-500`,badge:`bg-orange-500`,ring:`ring-2 ring-orange-400/60 ring-offset-2`,shadow:`rgba(251, 146, 60, 0.15)`,glow:`linear-gradient(135deg, #fb923c, #ea580c)`,pillBorder:`#fb923c`},pink:{border:`border-pink-500`,badge:`bg-pink-500`,ring:`ring-2 ring-pink-400/60 ring-offset-2`,shadow:`rgba(236, 72, 153, 0.15)`,glow:`linear-gradient(135deg, #ec4899, #be185d)`,pillBorder:`#ec4899`},yellow:{border:`border-yellow-500`,badge:`bg-yellow-500`,ring:`ring-2 ring-yellow-400/60 ring-offset-2`,shadow:`rgba(234, 179, 8, 0.15)`,glow:`linear-gradient(135deg, #eab308, #a16207)`,pillBorder:`#eab308`},gray:{border:`border-gray-500`,badge:`bg-gray-500`,ring:`ring-2 ring-gray-400/60 ring-offset-2`,shadow:`rgba(107, 114, 128, 0.15)`,glow:`linear-gradient(135deg, #6b7280, #374151)`,pillBorder:`#6b7280`},indigo:{border:`border-indigo-500`,badge:`bg-indigo-500`,ring:`ring-2 ring-indigo-400/60 ring-offset-2`,shadow:`rgba(99, 102, 241, 0.15)`,glow:`linear-gradient(135deg, #6366f1, #4338ca)`,pillBorder:`#6366f1`},cyan:{border:`border-cyan-500`,badge:`bg-cyan-500`,ring:`ring-2 ring-cyan-400/60 ring-offset-2`,shadow:`rgba(6, 182, 212, 0.15)`,glow:`linear-gradient(135deg, #06b6d4, #0e7490)`,pillBorder:`#06b6d4`},slate:{border:`border-slate-500`,badge:`bg-slate-500`,ring:`ring-2 ring-slate-400/60 ring-offset-2`,shadow:`rgba(100, 116, 139, 0.15)`,glow:`linear-gradient(135deg, #64748b, #334155)`,pillBorder:`#64748b`},amber:{border:`border-amber-500`,badge:`bg-amber-500`,ring:`ring-2 ring-amber-400/60 ring-offset-2`,shadow:`rgba(245, 158, 11, 0.15)`,glow:`linear-gradient(135deg, #f59e0b, #b45309)`,pillBorder:`#f59e0b`},emerald:{border:`border-emerald-500`,badge:`bg-emerald-500`,ring:`ring-2 ring-emerald-400/60 ring-offset-2`,shadow:`rgba(16, 185, 129, 0.15)`,glow:`linear-gradient(135deg, #10b981, #047857)`,pillBorder:`#10b981`},violet:{border:`border-violet-500`,badge:`bg-violet-500`,ring:`ring-2 ring-violet-400/60 ring-offset-2`,shadow:`rgba(139, 92, 246, 0.15)`,glow:`linear-gradient(135deg, #8b5cf6, #6d28d9)`,pillBorder:`#8b5cf6`},rose:{border:`border-rose-500`,badge:`bg-rose-500`,ring:`ring-2 ring-rose-400/60 ring-offset-2`,shadow:`rgba(244, 63, 94, 0.15)`,glow:`linear-gradient(135deg, #f43f5e, #be123c)`,pillBorder:`#f43f5e`}};function yPe(...e){return e.filter(Boolean).join(` `)}function bPe(e){return vPe[e||`blue`]??vPe.blue}function YR({side:e,gradient:t}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:t,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}})}var xPe=(0,p.memo)(function({data:e,selected:t}){let{mode:n,custom:r,step:i}=e,{color:a=`blue`,title:o=i?.title||`Custom`,icon:s=`CubeIcon`,type:c=`Custom`,summary:l=i?.summary||``,url:u,properties:d=GMe,menu:f=_L,height:m=5}=r,h=bPe(a),g=(0,p.useMemo)(()=>iMe[s]||bP,[s]),_=wL(),v=vC({handleType:`target`}),y=vC({handleType:`source`}),b=Object.entries(d),x=u?[{label:`Open ${c.toLowerCase()}`,url:u},...f]:f;return(0,k.jsxs)(zO,{children:[(0,k.jsx)(BO,{children:(0,k.jsxs)(`div`,{className:yPe(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,t?h.ring:``,h.border),style:{background:`var(--ec-custom-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px ${h.shadow}`,minHeight:n===`full`?`${m}em`:void 0},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),v.length>0&&(0,k.jsx)(YR,{side:`left`,gradient:h.glow}),y.length>0&&(0,k.jsx)(YR,{side:`right`,gradient:h.glow}),(0,k.jsx)(`div`,{className:`absolute -top-3 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:yPe(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,h.badge),children:[g&&(0,k.jsx)(g,{className:`w-2.5 h-2.5`,"aria-hidden":!0}),c]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,k.jsx)(FL,{value:o,tooltipBorderColor:h.pillBorder,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:o})}),n===`full`&&l&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:l,children:l}),n===`full`&&b.length>0&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-[rgb(var(--ec-page-border))] grid grid-cols-2 gap-x-2 gap-y-1`,children:b.map(([e,t])=>(0,k.jsxs)(`div`,{className:`min-w-0`,children:[(0,k.jsx)(`div`,{className:`text-[7px] font-bold uppercase tracking-wide text-[rgb(var(--ec-page-text-muted))] truncate`,children:e}),typeof t==`string`&&t.startsWith(`http`)?(0,k.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,className:`block text-[8px] text-blue-500 underline truncate`,title:t,children:t}):(0,k.jsx)(`div`,{className:`text-[8px] text-[rgb(var(--ec-page-text))] truncate`,title:String(t),children:t})]},e))})]})]})}),x.length>0&&(0,k.jsx)(VO,{container:_,children:(0,k.jsx)(HO,{className:`min-w-[220px] bg-[rgb(var(--ec-card-bg))] rounded-md p-1 shadow-md border border-[rgb(var(--ec-page-border))]`,children:x.map(e=>(0,k.jsx)(UO,{asChild:!0,className:`text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center`,children:(0,k.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`text-[rgb(var(--ec-page-text))] no-underline`,children:e.label})},`${e.label}-${e.url||``}`))})})]})}),SPe=(0,p.memo)(function(e){return(0,k.jsxs)(`div`,{className:`relative`,children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:HMe,className:`bg-gray-500`}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:HMe,className:`bg-gray-500`}),(0,k.jsx)(CR,{...e})]})});function CPe({side:e}){return(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,[e]:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #6366f1, #4338ca)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.dataProduct,pointerEvents:`none`}})}function XR(...e){return e.filter(Boolean).join(` `)}function wPe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.dataProduct,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0;return(0,k.jsxs)(`div`,{className:XR(`relative min-w-44 max-w-56 min-h-[120px]`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-1`:``),children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),(0,k.jsxs)(`div`,{className:`absolute inset-0`,style:{background:`linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 40%, #6366f1 100%)`,boxShadow:`1px 1px 3px rgba(0,0,0,0.15), 3px 4px 8px rgba(0,0,0,0.08)`,transform:`rotate(1deg)`,border:i?`2px dashed rgba(239, 68, 68, 0.5)`:a?`2px dashed rgba(99, 102, 241, 0.5)`:`none`},children:[(0,k.jsx)(`div`,{style:fL}),(0,k.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,width:0,height:0,borderStyle:`solid`,borderWidth:`18px 0 0 18px`,borderColor:`#4338ca transparent transparent transparent`,opacity:.3}})]}),(0,k.jsxs)(`div`,{className:`relative px-3.5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsx)(Xce,{className:`w-3 h-3 text-indigo-900/50`,strokeWidth:2.5}),(0,k.jsx)(`span`,{className:`text-[8px] font-bold text-indigo-900/50 uppercase tracking-widest`,children:`Data Product`})]}),a&&(0,k.jsx)(`span`,{className:`text-[8px] font-extrabold text-amber-900 bg-amber-100 border border-dashed border-amber-400 px-1.5 py-0.5 rounded uppercase`,children:`Draft`}),i&&(0,k.jsx)(`span`,{className:`text-[7px] font-bold text-white bg-red-500 border border-red-600 px-1.5 py-0.5 rounded uppercase`,children:`Deprecated`})]}),(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsx)(FL,{as:`div`,value:n,tooltipBorderColor:`#6366f1`,className:XR(`text-[13px] font-bold leading-snug min-w-0 truncate`,i?`text-indigo-950/40 line-through`:`text-indigo-950`),children:n})]}),t&&(0,k.jsxs)(`div`,{className:`text-[9px] text-indigo-900/40 font-semibold mt-0.5`,children:[`v`,t]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-2 pt-1.5 border-t border-indigo-900/10 text-[9px] text-indigo-950/60 leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}function TPe(e){let{version:t,name:n,summary:r,deprecated:i,draft:a,notes:o,styles:s}=e.data.dataProduct,c=e.data.mode||`simple`,l=iL(s?.icon)?s.icon:void 0,u=vC({handleType:`target`}),d=vC({handleType:`source`}),f=sL(),p=f?`rgba(239,68,68,0.25)`:`rgba(239,68,68,0.1)`;return(0,k.jsxs)(`div`,{className:XR(`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible`,e?.selected?`ring-2 ring-indigo-400/60 ring-offset-2`:``,i?`border-dashed border-red-500`:a?`border-dashed ${f?`border-indigo-400`:`border-indigo-400/60`}`:`border-indigo-500`),style:{background:i?`repeating-linear-gradient(135deg, transparent, transparent 6px, ${p} 6px, ${p} 7px), var(--ec-dp-node-bg, rgb(var(--ec-card-bg)))`:a?`repeating-linear-gradient(135deg, transparent, transparent 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), repeating-linear-gradient(45deg, transparent, transparent 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4px, ${f?`rgba(99,102,241,0.25)`:`rgba(99,102,241,0.15)`} 4.5px), var(--ec-dp-node-bg, rgb(var(--ec-card-bg)))`:`var(--ec-dp-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(99, 102, 241, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),o&&o.length>0&&(0,k.jsx)(PL,{notes:o,resourceName:n}),u.length>0&&(0,k.jsx)(CPe,{side:`left`}),d.length>0&&(0,k.jsx)(CPe,{side:`right`}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 flex items-center gap-1.5 z-10`,children:(0,k.jsxs)(`span`,{className:XR(`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm`,i?`bg-red-500`:`bg-indigo-500`),children:[(0,k.jsx)(Xce,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Data Product`,a&&` (Draft)`,i&&` (Deprecated)`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[l&&(0,k.jsx)(aL,{src:l,alt:n,className:c===`full`?`w-[26px] h-[26px] shrink-0`:`w-4 h-4 shrink-0 -my-1`}),(0,k.jsxs)(`div`,{className:`flex items-baseline gap-1 min-w-0`,children:[(0,k.jsx)(FL,{value:n,tooltipBorderColor:`#6366f1`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:n}),t&&(0,k.jsxs)(`span`,{className:`text-[10px] font-normal text-[rgb(var(--ec-page-text-muted))] shrink-0`,children:[`(v`,t,`)`]})]})]}),c===`full`&&r&&(0,k.jsx)(`div`,{className:`mt-1.5 text-[9px] text-[rgb(var(--ec-page-text-muted))] leading-relaxed overflow-hidden`,style:dL,title:r,children:r})]})]})}var EPe=(0,p.memo)(function(e){return e?.data?.style===`post-it`?(0,k.jsx)(wPe,{...e}):(0,k.jsx)(TPe,{...e})}),DPe={events:hw,commands:cw,queries:jce},OPe={borderRadius:12,border:`2px solid rgba(139, 92, 246, 0.4)`,background:`var(--ec-message-group-node-bg, rgb(var(--ec-card-bg)))`,pointerEvents:`none`},kPe=(0,p.memo)(function(e){let{groupName:t,messageCount:n}=e.data,r=sL(),i=vC({handleType:`target`}),a=vC({handleType:`source`}),o=n>=3?3:n,s=(0,p.useMemo)(()=>{let t={};return e.data.messages.forEach(({message:e})=>{let n=e?.collection||`unknown`;t[n]=(t[n]||0)+1}),t},[e.data.messages]);return(0,k.jsxs)(`div`,{className:`relative`,style:{isolation:`isolate`},children:[o>=3&&(0,k.jsx)(`div`,{style:{...OPe,position:`absolute`,inset:0,transform:`translate(6px, 6px)`,opacity:.5}}),o>=2&&(0,k.jsx)(`div`,{style:{...OPe,position:`absolute`,inset:0,transform:`translate(3px, 3px)`,opacity:.7}}),(0,k.jsxs)(`div`,{className:`relative min-w-48 max-w-60 rounded-xl border-2 overflow-visible ${e.selected?`ring-2 ring-violet-400/60 ring-offset-2`:``} border-violet-500`,style:{background:`var(--ec-message-group-node-bg, rgb(var(--ec-card-bg)))`,boxShadow:`0 2px 12px rgba(139, 92, 246, 0.15)`},children:[(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:bL}),(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:bL}),i.length>0&&(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,left:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #a78bfa, #7c3aed)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}}),a.length>0&&(0,k.jsx)(`div`,{className:`ec-handle-glow`,style:{position:`absolute`,top:`50%`,right:-6,transform:`translateY(-50%)`,width:12,height:12,borderRadius:`50%`,background:`linear-gradient(135deg, #a78bfa, #7c3aed)`,border:`2px solid rgb(var(--ec-page-bg))`,zIndex:20,...yL.generic,pointerEvents:`none`}}),(0,k.jsx)(`div`,{className:`absolute -top-2.5 left-2.5 z-10`,children:(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[7px] font-bold uppercase tracking-widest text-white px-1.5 py-0.5 rounded shadow-sm bg-violet-600`,children:[(0,k.jsx)(zC,{className:`w-2.5 h-2.5`,strokeWidth:2.5}),`Group`]})}),(0,k.jsxs)(`div`,{className:`px-3 pt-3.5 pb-2.5`,children:[(0,k.jsx)(FL,{as:`div`,value:t,tooltipBorderColor:`#8b5cf6`,className:`text-[13px] font-semibold leading-snug text-[rgb(var(--ec-page-text))] truncate`,children:t}),(0,k.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-2`,children:[(0,k.jsxs)(`span`,{className:`text-[10px] font-medium px-1.5 py-0.5 rounded`,style:{background:r?`rgba(139, 92, 246, 0.2)`:`rgba(139, 92, 246, 0.1)`,color:r?`#c4b5fd`:`#6d28d9`},children:[n,` `,n===1?`message`:`messages`]}),(0,k.jsx)(`div`,{className:`flex items-center gap-1`,children:Object.entries(s).map(([e,t])=>(0,k.jsxs)(`span`,{className:`flex items-center gap-0.5 text-[9px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(DPe[e]||jce,{className:`w-2.5 h-2.5`,strokeWidth:2}),t]},e))})]}),(0,k.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1 text-[8px] text-[rgb(var(--ec-page-text-muted))]`,children:[(0,k.jsx)(tw,{className:`w-2.5 h-2.5`}),`Click to explore`]})]})]})]})}),ZR={width:`100%`,height:`100%`,borderRadius:12,border:`2px solid rgba(139, 92, 246, 0.5)`,backgroundColor:`rgba(139, 92, 246, 0.05)`,position:`relative`,overflow:`visible`},APe={position:`absolute`,top:0,left:0,right:0,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,background:`rgba(139, 92, 246, 0.12)`,borderBottom:`1px solid rgba(139, 92, 246, 0.3)`,overflow:`visible`},jPe={position:`absolute`,top:-10,left:12,display:`inline-flex`,alignItems:`center`,gap:3,padding:`2px 8px`,borderRadius:4,background:`#7c3aed`,boxShadow:`0 1px 3px rgba(0,0,0,0.15)`,zIndex:10,fontSize:8,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`white`},MPe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,height:`100%`,padding:`0 12px 0 14px`,gap:12},NPe={fontSize:11,fontWeight:700,color:`var(--ec-group-text, #5b21b6)`,letterSpacing:`0.04em`,textTransform:`uppercase`,whiteSpace:`nowrap`},PPe={background:`#7c3aed`,border:`1px solid #a78bfa`,borderRadius:6,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:4,fontSize:10,fontWeight:600,color:`white`},QR=(0,p.memo)(function({data:e}){let{groupName:t,messageCount:n}=e;return(0,k.jsx)(`div`,{style:ZR,children:(0,k.jsxs)(`div`,{style:APe,children:[(0,k.jsxs)(`div`,{style:jPe,children:[(0,k.jsx)(zC,{size:10,strokeWidth:2.5}),`Group`]}),(0,k.jsxs)(`div`,{style:MPe,children:[(0,k.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,minWidth:0,flex:1},children:(0,k.jsx)(FL,{value:t||`Group`,tooltipBorderColor:`#8b5cf6`,className:`truncate`,style:NPe,children:t||`Group`})}),(0,k.jsxs)(`button`,{style:PPe,className:`ec-collapse-group-btn nodrag nopan`,onMouseDown:e=>e.stopPropagation(),children:[(0,k.jsx)(Jce,{size:12,strokeWidth:2.5}),`Collapse`]})]})]})})}),$R=`ec-cross-domain`,ez=e=>!!e?.crossDomain;function FPe({zIndex:e,crossDomain:t=!1,label:n,labelX:r,labelY:i,style:a}){if(n==null||n===``)return null;let o=String(n).split(`
|
|
179
179
|
`);return(0,k.jsx)($se,{children:(0,k.jsx)(`div`,{className:`ec-edge-label ${t?$R:``} nodrag nopan rounded-md border border-[rgb(var(--ec-page-border))] px-2 py-1 text-center text-[10px] font-medium leading-tight text-[rgb(var(--ec-page-text))] shadow-sm`,style:{position:`absolute`,transform:`translate(-50%, -50%) translate(${r}px, ${i}px)`,zIndex:e,pointerEvents:`none`,backgroundColor:`rgb(var(--ec-card-bg))`,...a},children:o.map((e,t)=>(0,k.jsx)(`div`,{className:`whitespace-nowrap ${t>0?`italic`:``}`,children:e},`${e}-${t}`))})})}var IPe={x:60,y:400},LPe=(e,t)=>e.x===t.x||e.y===t.y,W=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),RPe={x:0,y:0},zPe=(e,t,n,{toSourceHandle:r=!1,toTargetHandle:i=!1,sourceMoved:a=RPe,targetMoved:o=RPe}={})=>{let{points:s}=e;if(s.length<2)return;let c=s.length-1,l=W(s[0],a),u=W(s[c],o),d=(e,t)=>Math.abs(e.x-t.x)<=IPe.x&&Math.abs(e.y-t.y)<=IPe.y;if(!d(l,t)||!d(u,n))return;let f=Math.abs(a.x-o.x)<1&&Math.abs(a.y-o.y)<1,p=s.map(e=>f?W(e,a):{...e});p[0]={x:t.x,y:r?t.y:l.y},p[c]={x:n.x,y:i?n.y:u.y},c>1&&s[1].y===s[0].y&&(p[1].y=p[0].y),c>1&&s[c-1].y===s[c].y&&(p[c-1].y=p[c].y);let m=[p[0]];return p.slice(1).forEach(e=>{let t=m[m.length-1];if(!LPe(t,e)){let n=(t.x+e.x)/2;m.push({x:n,y:t.y},{x:n,y:e.y})}m.push(e)}),{path:m.map((e,t)=>`${t===0?`M`:`L`} ${e.x} ${e.y}`).join(` `),label:e.label&&BPe(e.label,s,p)}},BPe=(e,t,n)=>{let r=n=>{let[r,i]=[t[n],t[n+1]],a=Math.min(Math.max(e.x,Math.min(r.x,i.x)),Math.max(r.x,i.x)),o=Math.min(Math.max(e.y,Math.min(r.y,i.y)),Math.max(r.y,i.y));return Math.hypot(e.x-a,e.y-o)},i=t.slice(1).map((e,t)=>t).reduce((e,t)=>r(t)<r(e)?t:e),a=e=>({x:n[e].x-t[e].x,y:n[e].y-t[e].y}),[o,s]=[a(i),a(i+1)];return{x:e.x+(o.x+s.x)/2,y:e.y+(o.y+s.y)/2}},tz=(e,t,n)=>{let r=e.nodeLookup.get(t)?.internals.positionAbsolute;return r&&{x:r.x-n.x,y:r.y-n.y}},nz=(e,t)=>e.x===t.x&&e.y===t.y,rz=(e,t)=>e.zIndex===t.zIndex&&(e.moved===t.moved||!!e.moved&&!!t.moved&&nz(e.moved[0],t.moved[0])&&nz(e.moved[1],t.moved[1])),iz=({data:e,source:t,target:n,sourceX:r,sourceY:i,targetX:a,targetY:o,sourceHandleId:s,targetHandleId:c},[l,u,d])=>{let f=e?.route,{moved:m,zIndex:h}=Ex((0,p.useCallback)(e=>{let r=t=>{let n=e.nodeLookup.get(t);return n?.parentId?n.internals.z:0},i=Math.max(r(t),r(n));if(!f?.source||!f.target)return{zIndex:i};let a=tz(e,t,f.source),o=tz(e,n,f.target);return{zIndex:i,moved:a&&o?[a,o]:void 0}},[f,t,n]),rz),g=f&&m&&zPe(f,{x:r,y:i},{x:a,y:o},{toSourceHandle:!!s,toTargetHandle:!!c,sourceMoved:m[0],targetMoved:m[1]});return g?[g.path,g.label?.x??u,g.label?.y??d,h]:[l,u,d,h]};function az(e){switch(e){case`events`:return`orange`;case`commands`:return`blue`;case`queries`:return`green`;default:return`gray`}}var VPe=(0,p.memo)(({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:a,targetPosition:o,source:s,target:c,sourceHandleId:l,targetHandleId:u,data:d,label:f=``,markerEnd:m,markerStart:h})=>{let[g,_,v,y]=iz({data:d,source:s,target:c,sourceX:t,sourceY:n,targetX:r,targetY:i,sourceHandleId:l,targetHandleId:u},Mb({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:i,targetPosition:o})),b=d?.message?.collection,x=d?.opacity??1,S=d?.customColor||az(b??`default`),C=d?.warning,w=Array.isArray(S)?S:[S],T=(0,p.useMemo)(()=>Math.random()*1,[]),E=x===1?`z-30 opacity-100`:`z-30 opacity-10`,ee=(0,p.useMemo)(()=>w.map((t,n)=>{let r=T+n*.3;return(0,k.jsx)(`g`,{className:`ec-animated-msg ${E}`,children:(0,k.jsxs)(`g`,{children:[(0,k.jsx)(`rect`,{x:`-7`,y:`-5`,width:`14`,height:`10`,rx:`1.5`,ry:`1.5`,fill:t}),(0,k.jsx)(`path`,{d:`M-7,-5 L0,1 L7,-5`,fill:`none`,stroke:`rgb(var(--ec-card-bg))`,strokeWidth:`1.2`,strokeLinejoin:`round`}),(0,k.jsx)(`animateMotion`,{dur:`2s`,repeatCount:`indefinite`,path:g,rotate:`auto`,begin:`${r}s`,children:(0,k.jsx)(`mpath`,{href:`#${e}`})})]})},`${e}-${t}-${n}`)}),[g,e,w.join(`,`),x,T]),te=ez(d);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(GS,{id:e,path:g,markerEnd:m,markerStart:h,style:C?UMe:WMe,className:te?$R:void 0}),ee,(0,k.jsx)(FPe,{zIndex:y,crossDomain:te,label:f,labelX:_,labelY:v})]})}),HPe=(0,p.memo)(function(e){let{id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o,targetPosition:s,source:c,target:l,sourceHandleId:u,targetHandleId:d,label:f,markerStart:p,markerEnd:m,style:h,selected:g,data:_}=e,[v,y,b,x]=iz({data:_,source:c,target:l,sourceX:n,sourceY:r,targetX:i,targetY:a,sourceHandleId:u,targetHandleId:d},Mb({sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o,targetPosition:s})),S=ez(_);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`path`,{id:t,d:v,className:`react-flow__edge-path${g?` selected`:``}${S?` ${$R}`:``}`,markerStart:p,markerEnd:m,style:h}),(0,k.jsx)(FPe,{zIndex:x,crossDomain:S,label:f,labelX:y,labelY:b})]})});function UPe(e){switch(e){case`events`:return`orange`;case`commands`:return`blue`;case`queries`:return`green`;default:return`gray`}}var WPe={},oz=(0,p.memo)(function({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:a,targetPosition:o,source:s,target:c,sourceHandleId:l,targetHandleId:u,style:d=WPe,markerEnd:f,label:m,labelStyle:h,data:g}){let[_,v,y,b]=iz({data:g,source:s,target:c,sourceX:t,sourceY:n,targetX:r,targetY:i,sourceHandleId:l,targetHandleId:u},Mb({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:i,targetPosition:o})),x=(0,p.useMemo)(()=>Math.random()*1,[]),S=g?.message?.collection,C=g?.opacity??1,w=(0,p.useMemo)(()=>({...gL,...d}),[d]),T=ez(g),E=(0,p.useMemo)(()=>({position:`absolute`,transform:`translate(-50%, -50%) translate(${v}px,${y}px)`,zIndex:b,...h}),[v,y,h,b]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(GS,{path:_,markerEnd:f,style:w,className:T?$R:void 0}),g?.animated&&(0,k.jsx)(`g`,{className:`ec-animated-msg z-30 ${C===1?`opacity-100`:`opacity-10`}`,children:(0,k.jsx)(`circle`,{cx:`0`,cy:`0`,r:`7`,fill:UPe(S||`default`),children:(0,k.jsx)(`animateMotion`,{dur:`2s`,repeatCount:`indefinite`,path:_,rotate:`auto`,begin:`${x}s`,children:(0,k.jsx)(`mpath`,{href:`#${e}`})})})}),m&&(0,k.jsx)($se,{children:(0,k.jsx)(`div`,{style:E,className:`ec-edge-label ${T?$R:``} nodrag nopan max-w-[120px] text-xs bg-[rgb(var(--ec-card-bg))] px-2 py-1 rounded border border-[rgb(var(--ec-page-border))] text-[rgb(var(--ec-page-text-muted))] font-medium shadow-sm text-center`,children:m})})]})});function sz({pathType:e,...t}){let{id:n,sourceX:r,sourceY:i,targetX:a,targetY:o,sourcePosition:s,targetPosition:c,source:l,target:u,sourceHandleId:d,targetHandleId:f,markerStart:p,markerEnd:m,style:h,label:g,labelStyle:_,data:v}=t,y={sourceX:r,sourceY:i,targetX:a,targetY:o,sourcePosition:s,targetPosition:c},[b,x,S,C]=iz({data:v,source:l,target:u,sourceX:r,sourceY:i,targetX:a,targetY:o,sourceHandleId:d,targetHandleId:f},e===`bezier`?Tb(y):Mb({...y,...e===`step`?{borderRadius:0}:{}})),w=ez(v);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(GS,{id:n,path:b,markerStart:p,markerEnd:m,style:h,className:w?$R:void 0}),(0,k.jsx)(FPe,{zIndex:C,crossDomain:w,label:g,labelX:x,labelY:S,style:_})]})}function GPe(e){return(0,k.jsx)(sz,{...e,pathType:`bezier`})}function G(e){return(0,k.jsx)(sz,{...e,pathType:`smoothstep`})}function cz(e){return(0,k.jsx)(sz,{...e,pathType:`step`})}var KPe=(e,t)=>{if(t)return`${e.replace(RegExp(`-v?${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`),``)} (v${t})`;let n=e.match(/^(.+)-v?(\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?)$/);return n?`${n[1]} (v${n[2]})`:e},qPe=e=>({event:`events`,command:`commands`,query:`queries`,agent:`agents`,service:`services`,domain:`domains`,channel:`channels`,entity:`entities`})[e]||e,JPe=(e,t)=>{if(t)return{id:e.replace(RegExp(`-v?${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}$`),``),version:t};let n=e.match(/^(.+)-v?(\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?)$/);return n?{id:n[1],version:n[2]}:{id:e,version:void 0}},YPe=({type:e,id:t,name:n,version:r})=>{let i=JPe(t||n,r);return`${qPe(e)}:${i.id}:${i.version||``}`.toLowerCase()},lz=(e,t)=>{let n=e?.[t];if(!(!n||typeof n!=`object`))return`data`in n&&n.data?n.data:n},XPe=(0,p.memo)((0,p.forwardRef)(({nodes:e,onNodeSelect:t,onClear:n,onPaneClick:r},i)=>{let[a,o]=(0,p.useState)(``),[s,c]=(0,p.useState)([]),[l,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(-1),m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(null),_=(0,p.useRef)([]),v=(0,p.useCallback)(()=>{u(!1),f(-1)},[]);(0,p.useImperativeHandle)(i,()=>({hideSuggestions:v}),[v]);let y=(0,p.useCallback)(e=>{if(e.type===`messageGroup`||e.type===`messageGroupExpanded`)return e.data?.groupName||e.id;let t=lz(e.data,`message`),n=lz(e.data,`agent`),r=lz(e.data,`agentTool`),i=lz(e.data,`service`),a=lz(e.data,`domain`),o=lz(e.data,`system`),s=lz(e.data,`entity`),c=lz(e.data,`channel`),l=lz(e.data,`dataProduct`),u=lz(e.data,`data`);return KPe(t?.name||t?.id||n?.name||n?.id||r?.name||r?.id||i?.name||i?.id||a?.name||a?.id||o?.name||o?.id||s?.name||s?.id||c?.name||c?.id||l?.name||l?.id||u?.name||u?.id||e.data?.name||e.id,t?.version||n?.version||r?.version||i?.version||a?.version||o?.version||s?.version||c?.version||l?.version||u?.version||e.data?.version)},[]),b=(0,p.useCallback)((e,t)=>{if(e.type===`messageGroup`||e.type===`messageGroupExpanded`)return`${e.type}:${e.id}`.toLowerCase();let n=e.data,r=lz(n,`message`)||lz(n,`agent`)||lz(n,`agentTool`)||lz(n,`service`)||lz(n,`domain`)||lz(n,`system`)||lz(n,`entity`)||lz(n,`channel`)||lz(n,`dataProduct`)||n?.data||n;return YPe({type:e.type||`unknown`,id:r?.id,name:r?.name||r?.id||t||e.id,version:r?.version||n?.version})},[]),x=(0,p.useCallback)(e=>{let t=[],n=new Map;return e.forEach(e=>{let r=n.get(e.resourceKey);if(r===void 0){n.set(e.resourceKey,t.length),t.push(e);return}e.isGroupedMessage&&!t[r].isGroupedMessage&&(t[r]=e)}),t},[]),S=(0,p.useCallback)(e=>x(e.flatMap(e=>{if(e.type===`system-group`)return[];let t=y(e),n=[{key:e.id,node:e,label:t,searchText:t,type:e.type||`unknown`,resourceKey:b(e,t)}];if(e.type!==`messageGroup`)return n;let r=e.data?.groupName||t;return(e.data?.messages||[]).forEach((t,i)=>{let a=t.message,o=a?.data?.name||a?.data?.id;if(!o)return;let s=a?.data?.version,c=KPe(o,s);n.push({key:`${e.id}:${a?.data?.id||o}:${s||i}`,node:e,label:c,searchText:`${c} ${r}`,type:a?.collection||`message`,resourceKey:YPe({type:a?.collection||`message`,id:a?.data?.id,name:o,version:s}),groupName:r,isGroupedMessage:!0})}),n})),[x,y,b]),C=(0,p.useCallback)(e=>({events:{label:`Event`,Icon:hw,iconClass:`border-orange-500/25 bg-orange-500/10 text-orange-500`,badgeClass:`border-orange-500/25 bg-orange-500/10 text-orange-700 dark:text-orange-300`},event:{label:`Event`,Icon:hw,iconClass:`border-orange-500/25 bg-orange-500/10 text-orange-500`,badgeClass:`border-orange-500/25 bg-orange-500/10 text-orange-700 dark:text-orange-300`},commands:{label:`Command`,Icon:rw,iconClass:`border-blue-500/25 bg-blue-500/10 text-blue-500`,badgeClass:`border-blue-500/25 bg-blue-500/10 text-blue-700 dark:text-blue-300`},command:{label:`Command`,Icon:rw,iconClass:`border-blue-500/25 bg-blue-500/10 text-blue-500`,badgeClass:`border-blue-500/25 bg-blue-500/10 text-blue-700 dark:text-blue-300`},queries:{label:`Query`,Icon:ow,iconClass:`border-green-500/25 bg-green-500/10 text-green-500`,badgeClass:`border-green-500/25 bg-green-500/10 text-green-700 dark:text-green-300`},query:{label:`Query`,Icon:ow,iconClass:`border-green-500/25 bg-green-500/10 text-green-500`,badgeClass:`border-green-500/25 bg-green-500/10 text-green-700 dark:text-green-300`},services:{label:`Service`,Icon:sw,iconClass:`border-pink-500/25 bg-pink-500/10 text-pink-500`,badgeClass:`border-pink-500/25 bg-pink-500/10 text-pink-700 dark:text-pink-300`},agents:{label:`Agent`,Icon:HC,iconClass:`border-sky-500/25 bg-sky-500/10 text-sky-500`,badgeClass:`border-sky-500/25 bg-sky-500/10 text-sky-700 dark:text-sky-300`},agent:{label:`Agent`,Icon:HC,iconClass:`border-sky-500/25 bg-sky-500/10 text-sky-500`,badgeClass:`border-sky-500/25 bg-sky-500/10 text-sky-700 dark:text-sky-300`},agentTool:{label:`Agent Tool`,Icon:mw,iconClass:`border-violet-500/25 bg-violet-500/10 text-violet-500`,badgeClass:`border-violet-500/25 bg-violet-500/10 text-violet-700 dark:text-violet-300`},"agent-tool":{label:`Agent Tool`,Icon:mw,iconClass:`border-violet-500/25 bg-violet-500/10 text-violet-500`,badgeClass:`border-violet-500/25 bg-violet-500/10 text-violet-700 dark:text-violet-300`},domains:{label:`Domain`,Icon:VC,iconClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400`,badgeClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-700 dark:text-yellow-300`},systems:{label:`System`,Icon:$C,iconClass:`border-violet-500/25 bg-violet-500/10 text-violet-500`,badgeClass:`border-violet-500/25 bg-violet-500/10 text-violet-700 dark:text-violet-300`},flows:{label:`Flow`,Icon:fw,iconClass:`border-teal-500/25 bg-teal-500/10 text-teal-500`,badgeClass:`border-teal-500/25 bg-teal-500/10 text-teal-700 dark:text-teal-300`},channels:{label:`Channel`,Icon:ew,iconClass:`border-gray-500/25 bg-gray-500/10 text-gray-500`,badgeClass:`border-gray-500/25 bg-gray-500/10 text-gray-700 dark:text-gray-300`},data:{label:`Data`,Icon:YC,iconClass:`border-blue-500/25 bg-blue-500/10 text-blue-500`,badgeClass:`border-blue-500/25 bg-blue-500/10 text-blue-700 dark:text-blue-300`},entities:{label:`Entity`,Icon:YC,iconClass:`border-blue-500/25 bg-blue-500/10 text-blue-500`,badgeClass:`border-blue-500/25 bg-blue-500/10 text-blue-700 dark:text-blue-300`},externalSystem:{label:`External`,Icon:sw,iconClass:`border-pink-500/25 bg-pink-500/10 text-pink-500`,badgeClass:`border-pink-500/25 bg-pink-500/10 text-pink-700 dark:text-pink-300`},actor:{label:`Actor`,Icon:uw,iconClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400`,badgeClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-700 dark:text-yellow-300`},"context-actor":{label:`Actor`,Icon:uw,iconClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400`,badgeClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-700 dark:text-yellow-300`},user:{label:`User`,Icon:uw,iconClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400`,badgeClass:`border-yellow-500/25 bg-yellow-500/10 text-yellow-700 dark:text-yellow-300`},messageGroup:{label:`Group`,Icon:zC,iconClass:`border-violet-500/25 bg-violet-500/10 text-violet-500`,badgeClass:`border-violet-500/25 bg-violet-500/10 text-violet-700 dark:text-violet-300`},messageGroupExpanded:{label:`Group`,Icon:zC,iconClass:`border-violet-500/25 bg-violet-500/10 text-violet-500`,badgeClass:`border-violet-500/25 bg-violet-500/10 text-violet-700 dark:text-violet-300`}})[e]||{label:e,Icon:zC,iconClass:`border-gray-500/25 bg-gray-500/10 text-gray-500`,badgeClass:`border-gray-500/25 bg-gray-500/10 text-gray-700 dark:text-gray-300`},[]),w=(0,p.useCallback)(t=>{let n=t.target.value;if(o(n),n.length>0){let t=n.toLowerCase();c(S(e).filter(e=>e.searchText.toLowerCase().includes(t))),u(!0),f(-1)}else c(S(e)),u(!0),f(-1)},[e,S]),T=(0,p.useCallback)(()=>{let t=S(e),n=a.toLowerCase();c(a.length===0?t:t.filter(e=>e.searchText.toLowerCase().includes(n))),u(!0),f(-1)},[e,a,S]),E=(0,p.useCallback)(e=>{o(``),c([]),u(!1),f(-1),t(e.node)},[t]),ee=(0,p.useCallback)(e=>{switch(e.key){case`ArrowDown`:if(e.preventDefault(),s.length===0)return;u(!0),f(e=>e<s.length-1?e+1:0);break;case`ArrowUp`:if(e.preventDefault(),s.length===0)return;u(!0),f(e=>e>0?e-1:s.length-1);break;case`Enter`:e.preventDefault(),l&&d>=0&&d<s.length&&E(s[d]);break;case`Escape`:u(!1),f(-1);break}},[l,s,d,E]),te=(0,p.useCallback)(()=>{o(``),u(!1),c([]),f(-1),n(),m.current&&m.current.focus()},[n]);return(0,p.useEffect)(()=>{_.current=_.current.slice(0,s.length)},[s.length]),(0,p.useEffect)(()=>{if(!l||d<0)return;let e=g.current,t=_.current[d];if(!e||!t)return;let n=t.offsetTop,r=n+t.offsetHeight,i=e.scrollTop,a=i+e.clientHeight;n<i?e.scrollTop=n:r>a&&(e.scrollTop=r-e.clientHeight)},[l,d,s.length]),(0,p.useEffect)(()=>{let e=e=>{h.current&&!h.current.contains(e.target)&&(u(!1),f(-1))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,k.jsxs)(`div`,{ref:h,className:`w-full max-w-md mx-auto relative`,children:[(0,k.jsxs)(`div`,{className:`relative`,children:[(0,k.jsx)(`input`,{ref:m,type:`text`,placeholder:`Search nodes...`,value:a,onChange:w,onKeyDown:ee,onFocus:T,className:`w-full px-4 py-2 pr-10 bg-[rgb(var(--ec-input-bg))] border border-[rgb(var(--ec-input-border))] text-[rgb(var(--ec-input-text))] placeholder:text-[rgb(var(--ec-page-text-muted))] rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-[rgb(var(--ec-accent))] focus:border-transparent`}),a&&(0,k.jsx)(`button`,{onClick:te,className:`absolute right-2 top-1/2 transform -translate-y-1/2 text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))]`,"aria-label":`Clear search`,children:(0,k.jsx)(`svg`,{className:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,k.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M6 18L18 6M6 6l12 12`})})})]}),l&&s.length>0&&(0,k.jsx)(`div`,{ref:g,className:`absolute top-full left-0 right-0 mt-1 bg-[rgb(var(--ec-card-bg))] border border-[rgb(var(--ec-page-border))] rounded-md shadow-lg z-50 max-h-60 overflow-y-auto`,children:s.map((e,t)=>{let n=C(e.type),r=n.Icon;return(0,k.jsxs)(`div`,{ref:e=>{_.current[t]=e},onClick:()=>E(e),onMouseEnter:()=>f(t),className:`px-3 py-2 cursor-pointer flex items-start gap-3 ${t===d?`bg-[rgb(var(--ec-accent-subtle))] outline outline-1 -outline-offset-1 outline-[rgb(var(--ec-accent))]`:`hover:bg-[rgb(var(--ec-page-border)/0.5)]`}`,children:[(0,k.jsx)(`span`,{className:`mt-0.5 flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-md border ${n.iconClass}`,children:(0,k.jsx)(r,{className:`h-3.5 w-3.5`})}),(0,k.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`span`,{className:`block truncate text-sm font-medium text-[rgb(var(--ec-page-text))]`,children:e.label}),e.isGroupedMessage&&e.groupName&&(0,k.jsxs)(`span`,{className:`mt-0.5 block truncate text-xs text-[rgb(var(--ec-page-text-muted))]`,children:[`in `,e.groupName]})]}),(0,k.jsx)(`span`,{className:`mt-0.5 flex-shrink-0 rounded border px-2 py-0.5 text-xs font-medium ${n.badgeClass}`,children:n.label})]},`${e.key}:${t}`)})})]})}));XPe.displayName=`VisualiserSearch`;var uz=XPe,ZPe=e=>e instanceof HTMLElement&&(e.isContentEditable||[`INPUT`,`TEXTAREA`,`SELECT`].includes(e.tagName)),QPe={events:`bg-orange-600`,agent:`bg-sky-600`,agents:`bg-sky-600`,agentTool:`bg-violet-600`,"agent-tool":`bg-violet-600`,services:`bg-pink-600`,flows:`bg-teal-600`,commands:`bg-blue-600`,queries:`bg-green-600`,channels:`bg-gray-600`,systems:`bg-purple-600`,externalSystem:`bg-pink-600`,actor:`bg-yellow-500`,step:`bg-gray-700`,data:`bg-blue-600`,"data-products":`bg-indigo-600`,domains:`bg-yellow-600`,entities:`bg-purple-600`,field:`bg-cyan-600`,messageGroup:`bg-violet-600`,messageGroupExpanded:`bg-violet-600`},dz={events:`Event`,agent:`Agent`,agents:`Agent`,agentTool:`Agent Tool`,"agent-tool":`Agent Tool`,services:`Service`,flows:`Flow`,commands:`Command`,queries:`Query`,channels:`Channel`,systems:`System`,externalSystem:`External System`,actor:`Actor`,step:`Step`,data:`Data`,"data-products":`Data Product`,domains:`Domain`,entities:`Entity`,field:`Field`,messageGroup:`Message Group`,messageGroupExpanded:`Message Group`};function $Pe(e,t,n){let r=new Set,i=new Set;return n.forEach(t=>{t.target===e&&r.add(t.source),t.source===e&&i.add(t.target)}),{leftNodes:t.filter(e=>r.has(e.id)),rightNodes:t.filter(e=>i.has(e.id))}}var eFe=[`agent`,`service`,`message`,`flow`,`channel`,`domain`,`entity`,`dataProduct`,`agentTool`];function fz(e){let t=e.type||`unknown`,n=e.data;if(t===`field`)return{id:e.id,name:n?.name||e.id,type:`field`,version:void 0,description:`Type: ${n?.type||`unknown`}`};if(t===`messageGroup`)return{id:e.id,name:n?.groupName||e.id,type:`messageGroup`,version:void 0,description:`${n?.messageCount||0} messages (${n?.direction||`unknown`})`};if(t===`messageGroupExpanded`)return{id:e.id,name:n?.groupName||e.id,type:`messageGroupExpanded`,version:void 0,description:`${n?.messageCount||0} messages (expanded)`};let r=eFe.find(e=>n[e]),i=r?n[r]:null,a=i?.data?.name||i?.id||n.label||n.name||e.id,o=i?.data?.version||i?.version||n.version||``,s=i?.data?.summary||i?.data?.description||i?.summary||i?.description||n.summary||n.description||``;return{id:e.id,name:a,type:t,version:o,description:s?pz(s,100):void 0}}function pz(e,t){return e.length<=t?e:e.slice(0,t).trim()+`...`}var mz={service:`services`,agent:`agents`,flow:`flows`,channel:`channels`,system:`systems`,domain:`domains`,entity:`entities`,dataProduct:`data-products`};function tFe(e){let t=e.type||`unknown`,n=e.data;if(n.message){let e=n.message.data?.id||n.message.id||``,r=n.message.data?.version||n.message.version||``;return e&&r?`/docs/${t===`events`?`events`:t===`commands`?`commands`:`queries`}/${e}/${r}`:null}if(n.data&&t===`data`){let e=n.data.id||``,t=n.data.version||``;return e&&t?`/docs/containers/${e}/${t}`:null}for(let[e,t]of Object.entries(mz))if(n[e]){let r=n[e].data?.id||n[e].id||``,i=n[e].data?.version||n[e].version||``;return r&&i?`/docs/${t}/${r}/${i}`:null}return null}var hz=e=>{let{data:t}=e,n=e.type??`step`,r=t.service??t.message??t.agent??t.flow??t.container??t.dataProduct,i=t.step?.summary,a=r?.summary||r?.data?.summary||t.custom?.summary||t.summary,o=tFe(e);return{title:t.step?.title||e.id,typeLabel:t.custom?.type||dz[n]||`Step`,colorClass:QPe[n]??QPe.step,summary:i||a,detail:i&&a&&a!==i?a:void 0,docsUrl:o?rL(o):t.custom?.url||t.externalSystem?.url}},nFe=`flex items-center justify-center gap-1 h-7 text-xs rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-[rgb(var(--ec-accent))] transition-colors`,gz=`${nFe} px-2.5 font-semibold text-white bg-[rgb(var(--ec-accent))] hover:bg-[rgb(var(--ec-accent-hover))]`,_z=`${nFe} px-2 font-medium text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))] hover:bg-[rgb(var(--ec-page-border)/0.4)]`,rFe=`flex items-center justify-center w-6 h-6 rounded text-[rgb(var(--ec-page-text-muted))] hover:text-[rgb(var(--ec-page-text))] hover:bg-[rgb(var(--ec-page-border)/0.4)]`,iFe=(0,p.memo)(function({nodes:e,edges:t,isFlowVisualization:n,onStepChange:r}){let[i,a]=(0,p.useState)([]),o=i[i.length-1]??null,[s,c]=(0,p.useState)(null),l=(0,p.useRef)(``),u=e.map(e=>e.id).join(`,`);u!==l.current&&(l.current=u);let d=l.current,f=(0,p.useRef)(``),m=t.map(e=>`${e.source}-${e.target}`).join(`,`);m!==f.current&&(f.current=m);let h=f.current,g=(0,p.useMemo)(()=>new Map(e.map(e=>[e.id,e])),[d]);(0,p.useEffect)(()=>{if(!n||e.length===0)return;let r=new Set(t.map(e=>e.target)),i=e.find(e=>!r.has(e.id));i&&!(s&&g.has(s))&&c(i.id)},[d,h,n,s]),(0,p.useEffect)(()=>{o&&!g.has(o)&&a([])},[o,g]);let _=(0,p.useCallback)(e=>e?t.filter(t=>t.source===e).map(e=>({targetId:e.target,label:e.label,targetNode:g.get(e.target)})).filter(e=>!!e.targetNode):[],[h,g]),v=(0,p.useMemo)(()=>_(o),[_,o]),y=(0,p.useCallback)((e,t)=>{let n=new Set(t),r=0,i=_(e)[0]?.targetId;for(;i&&!n.has(i);)n.add(i),r++,i=_(i)[0]?.targetId;return r},[_]),b=(0,p.useMemo)(()=>o?i.length+y(o,i):0,[i,o,y]),x=(0,p.useMemo)(()=>s?1+y(s,[s]):0,[s,y]),S=(0,p.useCallback)(e=>{a(e);let t=e[e.length-1];if(!t){r(null);return}r(t,!1,e)},[r]),C=(0,p.useCallback)(()=>{s&&S([s])},[s,S]),[w,T]=(0,p.useState)(0);(0,p.useEffect)(()=>T(0),[o]);let E=(0,p.useCallback)((e=w)=>{let t=v[e];t&&S([...i,t.targetId])},[v,w,i,S]),ee=(0,p.useCallback)(()=>S(i.slice(0,-1)),[i,S]),te=(0,p.useCallback)(()=>{a([]),r(null,!0)},[r]),ne=i.length>0;(0,p.useEffect)(()=>{if(!ne)return;let e=e=>{if(!(e.metaKey||e.ctrlKey||e.altKey)&&!ZPe(e.target)){if(e.key===`ArrowRight`)E();else if(e.key===`ArrowLeft`)ee();else if(e.key===`Escape`)te();else if(/^[1-9]$/.test(e.key)&&v.length>1)E(Number(e.key)-1);else return;e.preventDefault()}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[ne,v,E,ee,te]);let re=o?g.get(o):void 0,ie=(0,p.useMemo)(()=>re?hz(re):void 0,[re]),[ae,oe]=(0,p.useState)(!1),[se,ce]=(0,p.useState)(!1),le=(0,p.useRef)(null),ue=(0,p.useRef)(null);(0,p.useEffect)(()=>oe(!1),[o]),(0,p.useLayoutEffect)(()=>{if(ae)return;let e=le.current,t=ue.current;ce(!!ie?.detail||!!e&&e.scrollWidth>e.clientWidth||!!t&&t.scrollHeight>t.clientHeight+1)},[ie,ae]);let de=(0,p.useMemo)(()=>{let e=s?g.get(s):void 0;return e?hz(e):void 0},[s,g]);if(!n||e.length===0)return null;if(!ne||!ie)return(0,k.jsxs)(`div`,{className:`ml-12 w-[360px] rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-card-bg))] shadow-lg overflow-hidden`,children:[(0,k.jsx)(`div`,{className:`h-0.5 bg-[rgb(var(--ec-page-border)/0.5)]`}),(0,k.jsxs)(`div`,{className:`px-3 pt-2 pb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0 h-6`,children:[(0,k.jsx)(`span`,{className:`flex items-center justify-center shrink-0 w-5 h-5 rounded-full bg-[rgb(var(--ec-accent))] text-white`,children:(0,k.jsx)(Zce,{className:`w-2.5 h-2.5 fill-current`})}),(0,k.jsx)(`h3`,{className:`flex-1 min-w-0 truncate text-sm font-semibold text-[rgb(var(--ec-page-text))]`,children:`Walk through this flow`})]}),(0,k.jsxs)(`p`,{className:`mt-1 text-xs leading-snug text-[rgb(var(--ec-page-text-muted))] line-clamp-2`,children:[`Step through it one hop at a time`,de?`, starting at ${de.title}.`:`.`]}),(0,k.jsxs)(`div`,{className:`flex items-center justify-between gap-2 mt-2`,children:[(0,k.jsx)(`span`,{className:`px-2 text-xs text-[rgb(var(--ec-page-text-muted))]`,children:x>0&&`${x} steps`}),(0,k.jsxs)(`button`,{type:`button`,onClick:C,title:`Start walking through the flow`,className:gz,children:[`Start`,(0,k.jsx)(qC,{className:`w-3.5 h-3.5`})]})]})]})]});let fe=i.length,pe=v.length===0,me=v.length>1;return(0,k.jsxs)(`div`,{className:`ml-12 w-[360px] rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-card-bg))] shadow-lg overflow-hidden`,children:[(0,k.jsx)(`div`,{className:`h-0.5 bg-[rgb(var(--ec-page-border)/0.5)]`,children:(0,k.jsx)(`div`,{className:`h-full bg-[rgb(var(--ec-accent))] transition-[width] duration-300`,style:{width:`${fe/b*100}%`}})}),(0,k.jsxs)(`div`,{className:`px-3 pt-2 pb-2`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[(0,k.jsxs)(`span`,{className:`shrink-0 text-[11px] font-semibold tabular-nums text-[rgb(var(--ec-page-text-muted))]`,children:[fe,`/`,b]}),(0,k.jsx)(`span`,{className:`shrink-0 px-1.5 py-px rounded text-[9px] font-bold uppercase tracking-wide text-white ${ie.colorClass}`,children:ie.typeLabel}),(0,k.jsx)(`h3`,{ref:le,className:`flex-1 min-w-0 text-sm font-semibold text-[rgb(var(--ec-page-text))] ${ae?`break-words`:`truncate`}`,title:ae?void 0:ie.title,children:ie.title}),ie.docsUrl&&(0,k.jsx)(`a`,{href:ie.docsUrl,"aria-label":`Open the docs for ${ie.title}`,title:`Open docs`,className:rFe,children:(0,k.jsx)(Vce,{className:`w-3.5 h-3.5`})}),(0,k.jsx)(`button`,{type:`button`,onClick:te,"aria-label":`Stop walking through the flow`,title:`Stop (Esc)`,className:`${rFe} -mr-1`,children:(0,k.jsx)(pw,{className:`w-3.5 h-3.5`})})]}),ie.summary&&(0,k.jsx)(`p`,{ref:ue,onClick:se?()=>oe(!ae):void 0,className:`mt-1 text-xs leading-snug text-[rgb(var(--ec-page-text-muted))] ${ae?`max-h-40 overflow-y-auto`:`line-clamp-2`} ${se?`cursor-pointer`:``}`,children:ie.summary}),ae&&ie.detail&&(0,k.jsx)(`p`,{className:`mt-1.5 pt-1.5 border-t border-[rgb(var(--ec-page-border)/0.6)] text-xs leading-snug text-[rgb(var(--ec-page-text-muted))] max-h-32 overflow-y-auto`,children:ie.detail}),se&&(0,k.jsx)(`button`,{type:`button`,onClick:()=>oe(!ae),"aria-expanded":ae,className:`mt-0.5 text-[11px] font-medium text-[rgb(var(--ec-accent))] hover:underline`,children:ae?`Less`:`More`}),(0,k.jsxs)(`div`,{className:`flex items-center justify-between gap-2 mt-2`,children:[(0,k.jsxs)(`button`,{type:`button`,onClick:ee,title:`Back (←)`,className:_z,children:[(0,k.jsx)(KC,{className:`w-3.5 h-3.5`}),`Back`]}),pe?(0,k.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,k.jsxs)(`button`,{type:`button`,onClick:C,title:`Walk through again`,className:_z,children:[(0,k.jsx)($ce,{className:`w-3 h-3`}),`Restart`]}),(0,k.jsx)(`button`,{type:`button`,onClick:te,className:gz,children:`Finish`})]}):me?(0,k.jsxs)(`div`,{className:`flex items-center justify-end gap-1 flex-1 min-w-0`,children:[(0,k.jsx)(`select`,{value:w,onChange:e=>T(Number(e.target.value)),"aria-label":`Which way the flow goes next`,title:`Which way next (or press its number)`,className:`min-w-0 flex-1 max-w-[210px] h-7 pl-2 pr-6 text-xs truncate rounded-md border border-[rgb(var(--ec-input-border))] bg-[rgb(var(--ec-input-bg))] text-[rgb(var(--ec-input-text))] focus:outline-none focus:ring-2 focus:ring-[rgb(var(--ec-accent))]`,children:v.map((e,t)=>{let n=hz(e.targetNode).title;return(0,k.jsxs)(`option`,{value:t,children:[t+1,`.`,` `,e.label?`${e.label} \u2192 ${n}`:n]},e.targetId)})}),(0,k.jsxs)(`button`,{type:`button`,onClick:()=>E(),title:`Next (→)`,className:gz,children:[`Next`,(0,k.jsx)(qC,{className:`w-3.5 h-3.5`})]})]}):(0,k.jsxs)(`button`,{type:`button`,onClick:()=>E(),title:`Next (→)`,className:gz,children:[`Next`,(0,k.jsx)(qC,{className:`w-3.5 h-3.5`})]})]})]})]})}),vz=30,aFe=(0,p.memo)(function({nodeId:e,number:t,current:n}){let r=ece(e);if(!r)return null;let{x:i,y:a}=r.internals.positionAbsolute;return(0,k.jsx)(`div`,{className:`absolute flex items-center justify-center rounded-full font-bold text-white shadow-md bg-[rgb(var(--ec-accent))] ${n?`ring-4 ring-[rgb(var(--ec-accent)/0.3)]`:`opacity-90`}`,style:{width:vz,height:vz,fontSize:14,transform:`translate(${i-vz/2}px, ${a-vz/2}px)`,zIndex:2e3,pointerEvents:`none`},children:t})}),oFe=(0,p.memo)(function({trail:e}){if(e.length===0)return null;let t=new Map;e.forEach((e,n)=>t.set(e,n+1));let n=e[e.length-1];return(0,k.jsx)(lC,{children:[...t].map(([e,t])=>(0,k.jsx)(aFe,{nodeId:e,number:t,current:e===n},e))})}),yz=({label:e,hint:t,active:n=!1,disabled:r=!1,onClick:i,children:a})=>{let o=wL();return(0,k.jsxs)(TMe,{children:[(0,k.jsx)(EMe,{asChild:!0,children:(0,k.jsx)(`button`,{type:`button`,"aria-label":e,"aria-pressed":n,"aria-disabled":r||void 0,onClick:r?void 0:i,className:`flex items-center justify-center w-8 h-8 rounded-md transition-colors ${r?`opacity-40 cursor-not-allowed text-[rgb(var(--ec-page-text-muted))]`:n?`bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.15)] text-[rgb(var(--ec-catalog-accent,79_70_229))] hover:bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.22)]`:`text-[rgb(var(--ec-page-text-muted))] hover:bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.08)] hover:text-[rgb(var(--ec-page-text))]`}`,children:a})}),(0,k.jsx)(XI,{container:o,children:(0,k.jsxs)(DMe,{side:`top`,sideOffset:8,className:`z-50 max-w-[240px] rounded-md bg-[rgb(var(--ec-page-text))] px-2 py-1 text-xs text-[rgb(var(--ec-page-bg))] shadow-md`,children:[e,t&&(0,k.jsx)(`div`,{className:`mt-0.5 opacity-70`,children:t})]})})]})},bz=()=>(0,k.jsx)(`div`,{className:`w-px h-5 mx-1 bg-[rgb(var(--ec-page-border))]`}),xz=(0,p.memo)(function({levels:e,tools:t=[],animateMessages:n,toggleAnimateMessages:r,hideAnimateMessages:i=!1,showMinimap:a,setShowMinimap:o,handleFitView:s}){return(0,k.jsx)(Ox,{position:`bottom-center`,children:(0,k.jsx)(YI,{delayDuration:300,children:(0,k.jsxs)(`div`,{className:`flex items-center gap-0.5 p-1 rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-card-bg))] shadow-md`,children:[e.length>0&&(0,k.jsx)(`div`,{role:`group`,"aria-label":`Level of detail`,className:`flex items-center gap-0.5`,children:e.map((e,t)=>(0,k.jsx)(yz,{label:`Level ${t+1}: ${e.description}`,hint:e.disabledReason,active:e.active,disabled:!!e.disabledReason,onClick:e.onSelect,children:(0,k.jsxs)(`span`,{className:`text-xs font-semibold`,children:[`L`,t+1]})},e.description))}),t.length>0&&(0,k.jsxs)(k.Fragment,{children:[e.length>0&&(0,k.jsx)(bz,{}),t.map(e=>(0,k.jsx)(yz,{label:e.label,active:e.active,onClick:e.onClick,children:e.icon},e.label))]}),(e.length>0||t.length>0)&&!i&&(0,k.jsx)(bz,{}),!i&&(0,k.jsx)(yz,{label:`Simulate messages`,active:n,onClick:r,children:(0,k.jsx)(hw,{className:`w-4 h-4`})}),(e.length>0||t.length>0||!i)&&(0,k.jsx)(bz,{}),(0,k.jsx)(yz,{label:a?`Hide minimap`:`Show minimap`,active:a,onClick:()=>o(!a),children:(0,k.jsx)(qce,{className:`w-4 h-4`})}),(0,k.jsx)(yz,{label:`Fit to view`,onClick:s,children:(0,k.jsx)(tw,{className:`w-4 h-4`})})]})})})}),Sz=e=>{switch(e.collection){case`commands`:return`invokes`;case`events`:return`publishes
|
|
180
180
|
event`;case`queries`:return`requests`;default:return`sends to`}},sFe=(e,t=!1)=>{switch(e.collection){case`commands`:return`accepts`;case`events`:return t?`subscribed to`:`subscribed by`;case`queries`:return`accepts`;default:return`sends to`}},Cz=e=>{if(typeof e!=`string`||!e.trim())return{width:0,height:0};let t=e.split(`
|
|
181
181
|
`);return{width:Math.max(...t.map(e=>e.trim().length))*6+20,height:t.length*14+12}},cFe=e=>({label:`subscribed by`,animated:!1,markerEnd:{type:Py.ArrowClosed,width:40,height:40,color:`rgb(var(--ec-page-text-muted))`},style:{strokeWidth:1.5,stroke:`rgb(var(--ec-page-text-muted))`,strokeDasharray:`5 5`},...e}),wz={width:240,height:112},Tz={events:{width:240,height:104},commands:{width:240,height:126},queries:{width:240,height:126},services:{width:240,height:112},data:{width:240,height:108},systems:{width:240,height:120},system:{width:240,height:120},"context-domain":{width:240,height:112},"context-actor":{width:180,height:80},actor:{width:180,height:80},note:{width:200,height:150},step:{width:240,height:80},"domain-group":{width:320,height:160},"system-group":{width:320,height:160}},lFe=new Set([`domain-group`,`system-group`,`group`]),Ez=e=>e.measured?.width&&e.measured?.height?{width:e.measured.width,height:e.measured.height}:typeof e.width==`number`&&typeof e.height==`number`?{width:e.width,height:e.height}:e.type===`domains`||e.type===`domain`?{width:260,height:60+(e.data?.domain?.data?.services||[]).length*40}:Tz[e.type||``]??wz,uFe=`[top=100,left=40,bottom=40,right=40]`,dFe={"elk.layered.spacing.nodeNodeBetweenLayers":`60`,"elk.spacing.nodeNode":`40`,"elk.spacing.edgeNode":`25`,"elk.spacing.edgeEdge":`15`},fFe=80,pFe=200,mFe={"elk.layered.nodePlacement.strategy":`BRANDES_KOEPF`,"elk.layered.thoroughness":`1`,"elk.layered.crossingMinimization.greedySwitch.type":`OFF`},Dz,hFe=async()=>{if(!Dz){let{default:e}=await Promise.resolve().then(()=>u(OMe(),1));Dz=new e}return Dz},Oz=async({nodes:e,edges:t},{sizeOf:n=Ez}={})=>{let r=new Map(e.map(e=>[e.id,e])),i=new Set(e.map(e=>e.parentId).filter(e=>!!e&&r.has(e))),a=e=>e.parentId&&i.has(e.parentId)?e.parentId:void 0,o=t.filter(e=>r.has(e.source)&&r.has(e.target)),s=new Map,c=(e,t,n)=>{let r=s.get(e)||[];return r.some(e=>e.id===t)||s.set(e,[...r,{id:t,layoutOptions:{"elk.port.side":n}}]),t},l=o.map((e,t)=>({source:c(e.source,e.sourceHandle?`${e.source}__${e.sourceHandle}`:`e${t}__out`,`EAST`),target:c(e.target,e.targetHandle?`${e.target}__${e.targetHandle}`:`e${t}__in`,`WEST`)})),u=t=>({id:t.id,...i.has(t.id)?{children:e.filter(e=>a(e)===t.id).map(u)}:n(t),layoutOptions:{"elk.portConstraints":`FIXED_SIDE`,...i.has(t.id)?{"elk.padding":uFe,...dFe}:{},...t.data?.layoutOptions??{}},ports:s.get(t.id)||[]}),d=await(await hFe()).layout({id:`root`,layoutOptions:{"elk.algorithm":`layered`,"elk.direction":`RIGHT`,"elk.hierarchyHandling":`INCLUDE_CHILDREN`,"elk.edgeRouting":`ORTHOGONAL`,"elk.json.edgeCoords":`ROOT`,"elk.edgeLabels.placement":`CENTER`,...dFe,...e.length>=fFe||t.length>=pFe?mFe:{"elk.layered.nodePlacement.strategy":`NETWORK_SIMPLEX`}},children:e.filter(e=>!a(e)).map(u),edges:o.map((e,t)=>({id:`e${t}`,sources:[l[t].source],targets:[l[t].target],labels:e.label?[{text:String(e.label),...Cz(e.label),layoutOptions:{"elk.edgeLabels.inline":`true`}}]:[]}))}),f=new Map,p=e=>(e.children||[]).forEach(e=>{f.set(e.id,e),p(e)});p(d);let m=e=>{let t=r.get(e),n=t&&a(t),i=n?m(n):{x:0,y:0},o=f.get(e);return{x:i.x+(o?.x??0),y:i.y+(o?.y??0)}},h=new Map;(d.edges||[]).forEach(e=>{let t=e.sections?.[0];if(!t)return;let n=e.labels?.[0],r=o[Number(e.id.slice(1))];h.set(r,{points:[t.startPoint,...t.bendPoints||[],t.endPoint],label:n?{x:(n.x??0)+(n.width??0)/2,y:(n.y??0)+(n.height??0)/2}:void 0,source:m(r.source),target:m(r.target)})});let g=e=>{let t=e&&a(e);return t?g(r.get(t))+1:0};return{nodes:[...e].sort((e,t)=>g(e)-g(t)).map(e=>{let t=f.get(e.id);return t?{...e,origin:[0,0],position:{x:t.x??0,y:t.y??0},...i.has(e.id)||lFe.has(e.type||``)&&typeof e.style?.width!=`number`?{style:{...e.style,width:t.width,height:t.height},measured:void 0}:{}}:e}),edges:t.map(e=>{let t=h.get(e);return t?{...e,data:{...e.data,route:t}}:e})}},kz=`swimlane`,Az=[`domain`,`system`,`team`,`domain-system`],gFe=e=>Az.includes(e),_Fe=e=>e===`lanes`||e===`boxes`,jz={domain:`Domain`,system:`System`,team:`Team`,"domain-system":`Domain, then system`},Mz=`__external`,Nz=`__unassigned`,Pz=96,Fz={x:48,y:48},Iz=32,vFe=24,Lz={fontSize:20,iconSize:20,gap:10},yFe=40,Rz=e=>Lz.iconSize+Lz.gap+e.length*Lz.fontSize*.62,zz=e=>e.data?.lanes,Bz=e=>e.type===kz,Vz=(e,t)=>t===`domain-system`?Vz(e,`domain`)&&Vz(e,`system`):e.some(e=>!!zz(e)?.[t]),Hz=(e,t)=>{let n=t===`domain-system`?`domain`:t;return new Set(e.map(e=>zz(e)?.[n]?.id).filter(Boolean)).size},Uz=(e,t,n)=>{let r=new Map,i=new Map;e.forEach(e=>{let t=zz(e),a=t?.[n];a?(r.set(e.id,a.id),i.set(a.id,a.name)):t?.external&&r.set(e.id,Mz)});let a=new Set(e.map(e=>e.id)),o=new Set(e.filter(e=>zz(e)).map(e=>e.id)),s=t.filter(e=>a.has(e.source)&&a.has(e.target)),c=(e,t)=>{let n=!0;for(;n;)n=!1,s.forEach(i=>{let a=r.get(i[e]);a&&!r.has(i[t])&&!o.has(i[t])&&(r.set(i[t],a),n=!0)})};return c(`source`,`target`),c(`target`,`source`),e.forEach(e=>{r.has(e.id)||r.set(e.id,Nz)}),{laneOf:r,names:i}},Wz=({nodes:e,edges:t},n,{sizeOf:r=Ez}={})=>{let i=e.filter(e=>!e.parentId);if(i.length===0)return{nodes:e,edges:t};let{laneOf:a,names:o}=Uz(i,t,n),s=new Map(i.map(e=>[e.id,{...e.position,...r(e)}])),c=e=>e===Mz?-1/0:e===Nz?1/0:Math.min(...i.filter(t=>a.get(t.id)===e).map(e=>s.get(e.id).x)),l=[...new Set(a.values())].sort((e,t)=>c(e)-c(t)),u=Math.min(...[...s.values()].map(e=>e.x)),d=Math.max(...[...s.values()].map(e=>e.x+e.width)),f=u-Pz-Fz.x,p=d-f+Fz.x,m=[],h=new Map,g=0;return l.forEach((e,t)=>{let r=i.filter(t=>a.get(t.id)===e).sort((e,t)=>s.get(e.id).y-s.get(t.id).y),c=[],l=new Map;r.forEach(e=>{let t=s.get(e.id),n=e=>t.x<e.x+e.width+vFe&&e.x<t.x+t.width+vFe,r=c.findIndex(e=>!e.boxes.some(n));r===-1&&(c.push({boxes:[],height:0}),r=c.length-1),c[r].boxes.push(t),c[r].height=Math.max(c[r].height,t.height),l.set(e.id,r)});let u=e===Mz?`External`:e===Nz?`No ${jz[n].toLowerCase()}`:o.get(e)??e,d=c.reduce((e,t)=>e+t.height,0)+Iz*(c.length-1),_=Math.max(d+Fz.y*2,Rz(u)+yFe*2),v=[],y=(_-d)/2;c.forEach(e=>{v.push(y),y+=e.height+Iz});let b=`swimlane-${e}`;r.forEach(e=>{let t=s.get(e.id),n=l.get(e.id);h.set(e.id,{x:t.x-f,y:v[n]+(c[n].height-t.height)/2})}),m.push({id:b,type:kz,position:{x:f,y:g},origin:[0,0],style:{width:p,height:_},draggable:!1,selectable:!1,focusable:!1,data:{label:u,groupBy:n,level:n,style:`lanes`,kind:e===Mz?`external`:e===Nz?`unassigned`:`lane`,index:t}}),g+=_}),{nodes:[...m,...e.map(e=>{let t=h.get(e.id);return t?{...e,parentId:`swimlane-${a.get(e.id)}`,origin:[0,0],position:t}:e})],edges:t.map(e=>{if(!e.data?.route)return e;let{route:t,...n}=e.data;return{...e,data:n}})}},bFe=e=>{let t=e.find(Bz)?.data;return t?{groupBy:t.groupBy,style:t.style}:null},Gz=({nodes:e,edges:t})=>{let n=new Map(e.filter(Bz).map(e=>[e.id,e]));if(n.size===0)return{nodes:e,edges:t};let r=e=>{let t=e?n.get(e):void 0;if(!t)return{x:0,y:0};let i=r(t.parentId);return{x:i.x+t.position.x,y:i.y+t.position.y}};return{nodes:e.filter(e=>!n.has(e.id)).map(e=>{if(!e.parentId||!n.has(e.parentId))return e;let{parentId:t,...i}=e,a=r(t);return{...i,position:{x:a.x+e.position.x,y:a.y+e.position.y}}}),edges:t}},Kz=40,xFe=async({nodes:e,edges:t},n,{sizeOf:r=Ez}={})=>{let i=e.filter(e=>!e.parentId),a=n===`domain-system`?[`domain`,`system`]:[n],o=a.map(e=>Uz(i,t,e)),s=new Map,c=new Map;return i.forEach(e=>{let t;o.forEach(({laneOf:r,names:i},o)=>{let c=r.get(e.id);if(c===Nz||o>0&&c===Mz)return;let l=a[o],u=`${t??`swimlane`}__${l}-${c}`;if(!s.has(u)){let e=c===Mz?`External`:i.get(c)??c,r=Rz(e)+yFe*2;s.set(u,{id:u,type:kz,...t&&{parentId:t},position:{x:0,y:0},selectable:!1,focusable:!1,data:{label:e,groupBy:n,level:l,style:`boxes`,kind:c===Mz?`external`:`lane`,index:s.size,layoutOptions:{"elk.padding":`[top=${Kz},left=${Pz+Kz},bottom=${Kz},right=${Kz}]`,"elk.nodeSize.constraints":`MINIMUM_SIZE`,"elk.nodeSize.minimum":`(0, ${Math.ceil(r)})`}}})}t=u}),t&&c.set(e.id,t)}),Oz({nodes:[...s.values(),...e.map(e=>{let t=c.get(e.id);return t?{...e,parentId:t}:e})],edges:t},{sizeOf:r})},SFe={domain:UC,system:$C,team:tle},CFe={domain:`234, 179, 8`,system:`139, 92, 246`,team:`14, 165, 233`},wFe=`var(--ec-page-text)`,qz=(e,t)=>`rgba(${e}, ${t})`,TFe={transform:`rotate(90deg)`},EFe=12,DFe=(e,t,n)=>({width:`100%`,height:`100%`,display:`flex`,background:qz(e,t?.1:.05),...n?{border:`2px solid ${qz(e,.45)}`,borderRadius:EFe,overflow:`hidden`}:{borderTop:`2px solid ${qz(e,.3)}`,borderBottom:`2px solid ${qz(e,.3)}`}}),OFe=e=>({width:Pz,flexShrink:0,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRight:`2px solid ${qz(e,.3)}`,background:`linear-gradient(${qz(e,.14)}, ${qz(e,.14)}), rgb(var(--ec-card-bg))`}),kFe={writingMode:`vertical-rl`,transform:`rotate(180deg)`,display:`flex`,alignItems:`center`,gap:Lz.gap,whiteSpace:`nowrap`,fontSize:Lz.fontSize,fontWeight:700,letterSpacing:`0.01em`,color:`rgb(var(--ec-page-text))`},AFe=(0,p.memo)(function({data:e}){let{label:t,level:n,kind:r,index:i,style:a}=e,o=r===`external`?QC:r===`unassigned`?jce:SFe[n],s=r===`lane`?CFe[n]:wFe,c=a===`boxes`;return(0,k.jsx)(`div`,{style:DFe(s,!c&&i%2==1,c),children:(0,k.jsx)(`div`,{style:OFe(s),children:(0,k.jsxs)(`div`,{style:kFe,children:[(0,k.jsx)(o,{size:Lz.iconSize,style:TFe,color:`rgb(var(--ec-page-text-muted))`}),(0,k.jsx)(`span`,{style:r===`lane`?void 0:{color:`rgb(var(--ec-page-text-muted))`},children:t})]})})})}),jFe={domain:{label:jz.domain,level:`domain`,noun:`domain`},system:{label:jz.system,level:`system`,noun:`system`},team:{label:jz.team,level:`team`,noun:`team`},"domain-system":{label:jz[`domain-system`],level:`domain`,noun:`domain`,hint:`Systems nested in their domain`,icon:zC}},MFe=(e,t)=>`${e} ${t}${e===1?``:`s`}`,Jz=`flex items-center gap-2.5 px-2 py-1.5 rounded-md text-xs cursor-pointer outline-none transition-colors text-[rgb(var(--ec-page-text))] data-[highlighted]:bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.05)] data-[state=checked]:bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.14)] data-[state=checked]:font-semibold`,Yz=`px-2 pt-1 pb-1.5 text-[10px] font-semibold uppercase tracking-wider text-[rgb(var(--ec-page-text-muted))]`,Xz=({level:e,icon:t})=>{let n=t??(e?SFe[e]:lw),r=e?CFe[e]:`var(--ec-page-text-muted)`;return(0,k.jsx)(`span`,{className:`flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-md`,style:{background:`rgba(${r}, 0.12)`,color:`rgb(${r})`},children:(0,k.jsx)(n,{className:`h-3.5 w-3.5`})})},Zz=[{value:`boxes`,label:`Boxes`,Preview:()=>(0,k.jsxs)(`svg`,{viewBox:`0 0 64 36`,className:`h-9 w-16`,"aria-hidden":!0,children:[(0,k.jsx)(`rect`,{x:`2`,y:`4`,width:`26`,height:`28`,rx:`4`,fill:`currentColor`,fillOpacity:`0.1`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`1.5`}),(0,k.jsx)(`rect`,{x:`34`,y:`10`,width:`28`,height:`18`,rx:`4`,fill:`currentColor`,fillOpacity:`0.1`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`1.5`}),(0,k.jsx)(`rect`,{x:`8`,y:`10`,width:`14`,height:`6`,rx:`1.5`,fill:`currentColor`,fillOpacity:`0.6`}),(0,k.jsx)(`rect`,{x:`8`,y:`20`,width:`14`,height:`6`,rx:`1.5`,fill:`currentColor`,fillOpacity:`0.6`}),(0,k.jsx)(`rect`,{x:`41`,y:`16`,width:`14`,height:`6`,rx:`1.5`,fill:`currentColor`,fillOpacity:`0.6`})]})},{value:`lanes`,label:`Lanes`,Preview:()=>(0,k.jsxs)(`svg`,{viewBox:`0 0 64 36`,className:`h-9 w-16`,"aria-hidden":!0,children:[[2,13,24].map(e=>(0,k.jsx)(`rect`,{x:`1`,y:e,width:`62`,height:`10`,fill:`currentColor`,fillOpacity:e===13?.16:.08},e)),(0,k.jsx)(`rect`,{x:`1`,y:`2`,width:`4`,height:`32`,fill:`currentColor`,fillOpacity:`0.35`}),(0,k.jsx)(`rect`,{x:`10`,y:`4`,width:`12`,height:`6`,rx:`1.5`,fill:`currentColor`,fillOpacity:`0.6`}),(0,k.jsx)(`rect`,{x:`28`,y:`15`,width:`12`,height:`6`,rx:`1.5`,fill:`currentColor`,fillOpacity:`0.6`}),(0,k.jsx)(`rect`,{x:`46`,y:`26`,width:`12`,height:`6`,rx:`1.5`,fill:`currentColor`,fillOpacity:`0.6`})]})}],NFe=(0,p.memo)(function({options:e,counts:t,value:n,style:r,onChange:i}){let a=wL(),[o,s]=(0,p.useState)(!1);(0,p.useEffect)(()=>{let e=e=>{e.key.toLowerCase()!==`g`||e.metaKey||e.ctrlKey||e.altKey||ZPe(e.target)||(e.preventDefault(),s(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let c=e=>{let t=e===`none`?null:e;i(t,t===`domain-system`?`boxes`:r)},l=n?jFe[n]:null;return(0,k.jsxs)(`div`,{className:`flex items-stretch h-10 rounded-md border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-card-bg))] shadow-sm`,children:[(0,k.jsxs)(Spe,{open:o,onOpenChange:s,children:[(0,k.jsx)(Cpe,{asChild:!0,children:(0,k.jsxs)(`button`,{type:`button`,title:`Group steps (G)`,className:`flex items-center gap-2 pl-3 pr-2.5 text-sm outline-none transition-colors hover:bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.06)] focus-visible:ring-2 focus-visible:ring-[rgb(var(--ec-catalog-accent,79_70_229))] ${n?`rounded-l-md`:`rounded-md`}`,children:[(0,k.jsx)($C,{className:`h-4 w-4 text-[rgb(var(--ec-page-text-muted))]`}),(0,k.jsx)(`span`,{className:`text-[rgb(var(--ec-page-text-muted))]`,children:`Group by`}),l&&(0,k.jsx)(`span`,{className:`font-semibold text-[rgb(var(--ec-catalog-accent,79_70_229))]`,children:l.label}),(0,k.jsx)(GC,{className:`h-3.5 w-3.5 text-[rgb(var(--ec-page-text-muted))] transition-transform`,style:o?{transform:`rotate(180deg)`}:void 0})]})}),(0,k.jsx)(tO,{container:a,children:(0,k.jsxs)(wpe,{align:`end`,sideOffset:6,className:`z-50 w-80 p-1.5 rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-card-bg))] shadow-xl animate-in fade-in zoom-in-95 duration-150`,children:[(0,k.jsx)(Tpe,{className:Yz,children:`Group steps by`}),(0,k.jsxs)(Epe,{value:n??`none`,onValueChange:c,children:[(0,k.jsxs)(Dpe,{value:`none`,className:Jz,onSelect:e=>e.preventDefault(),children:[(0,k.jsx)(Xz,{level:null}),(0,k.jsx)(`span`,{className:`flex-1 font-medium`,children:`Nothing`}),(0,k.jsx)(Ope,{children:(0,k.jsx)(WC,{className:`h-3.5 w-3.5 text-[rgb(var(--ec-catalog-accent,79_70_229))]`})})]}),e.map(e=>{let{label:n,level:r,noun:i,hint:a,icon:o}=jFe[e],s=t[e]??0;return(0,k.jsxs)(Dpe,{value:e,className:Jz,onSelect:e=>e.preventDefault(),children:[(0,k.jsx)(Xz,{level:r,icon:o}),(0,k.jsxs)(`span`,{className:`flex-1 min-w-0`,children:[(0,k.jsx)(`span`,{className:`block font-medium`,children:n}),a&&(0,k.jsx)(`span`,{className:`block text-[11px] text-[rgb(var(--ec-page-text-muted))]`,children:a})]}),(0,k.jsx)(`span`,{className:`text-[11px] tabular-nums text-[rgb(var(--ec-page-text-muted))]`,children:MFe(s,i)}),(0,k.jsx)(`span`,{className:`w-3.5`,children:(0,k.jsx)(Ope,{children:(0,k.jsx)(WC,{className:`h-3.5 w-3.5 text-[rgb(var(--ec-catalog-accent,79_70_229))]`})})})]},e)})]}),(0,k.jsx)(iO,{className:`my-1.5 h-px bg-[rgb(var(--ec-page-border))]`}),(0,k.jsx)(Tpe,{className:Yz,children:`Show groups as`}),(0,k.jsx)(Epe,{value:r,onValueChange:e=>i(n,e),className:`grid grid-cols-2 gap-1.5 px-0.5 pb-0.5`,children:Zz.map(({value:e,label:t,Preview:i})=>{let a=!!n&&r===e,o=e===`lanes`&&n===`domain-system`?`Domains only`:null;return(0,k.jsxs)(Dpe,{value:e,disabled:!n,onSelect:e=>e.preventDefault(),className:`flex flex-col items-center gap-1 rounded-md border px-2 pt-2 pb-1.5 text-xs outline-none cursor-pointer transition-colors data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40 ${a?`border-[rgb(var(--ec-catalog-accent,79_70_229))] bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.08)] text-[rgb(var(--ec-catalog-accent,79_70_229))]`:`border-[rgb(var(--ec-page-border))] text-[rgb(var(--ec-page-text-muted))] data-[highlighted]:border-[rgb(var(--ec-catalog-accent,79_70_229)/0.5)] data-[highlighted]:text-[rgb(var(--ec-page-text))]`}`,children:[(0,k.jsx)(i,{}),(0,k.jsx)(`span`,{className:a?`font-semibold`:`font-medium`,children:t}),o&&(0,k.jsx)(`span`,{className:`text-[10px] text-[rgb(var(--ec-page-text-muted))]`,children:o})]},e)})}),!n&&(0,k.jsx)(`p`,{className:`px-2 pt-1.5 pb-0.5 text-[11px] text-[rgb(var(--ec-page-text-muted))]`,children:`Pick something to group by first.`})]})})]}),n&&(0,k.jsx)(`button`,{type:`button`,"aria-label":`Stop grouping`,title:`Stop grouping`,onClick:()=>i(null,r),className:`flex items-center px-2 rounded-r-md border-l border-[rgb(var(--ec-page-border))] text-[rgb(var(--ec-page-text-muted))] outline-none transition-colors hover:bg-[rgb(var(--ec-catalog-accent,79_70_229)/0.06)] hover:text-[rgb(var(--ec-page-text))] focus-visible:ring-2 focus-visible:ring-[rgb(var(--ec-catalog-accent,79_70_229))]`,children:(0,k.jsx)(pw,{className:`h-3.5 w-3.5`})})]})}),PFe=({node:e,isCenter:t,onSwitch:n})=>{let{zoom:r}=N();if(e.type===`placeholder`)return null;let i=tFe(e),a=(e.position?.x??0)<0?`left`:`right`,o=Math.max(.4,Math.min(1,r)),s=Math.round(24*o),c=Math.round(12*o),l=t=>{t.stopPropagation(),n(e.id,a)},u=e=>{e.stopPropagation(),i&&(window.location.href=rL(i))};return t?i?(0,k.jsx)(IC,{nodeId:e.id,position:Fy.Bottom,isVisible:!0,offset:-16,children:(0,k.jsx)(`div`,{className:`flex items-center gap-1 bg-[rgb(var(--ec-card-bg,var(--ec-page-bg)))] border border-[rgb(var(--ec-page-border))] rounded-lg shadow-md`,style:{padding:Math.round(4*o)},children:(0,k.jsx)(`button`,{onClick:u,className:`flex items-center justify-center rounded-md text-[rgb(var(--ec-icon-color))] hover:text-[rgb(var(--ec-accent))] hover:bg-[rgb(var(--ec-accent-subtle))] transition-colors`,style:{width:s,height:s},title:`View documentation`,children:(0,k.jsx)(ZC,{style:{width:c,height:c}})})})}):null:(0,k.jsx)(IC,{nodeId:e.id,position:Fy.Bottom,isVisible:!0,offset:-16,children:(0,k.jsxs)(`div`,{className:`flex items-center gap-1 bg-[rgb(var(--ec-card-bg,var(--ec-page-bg)))] border border-[rgb(var(--ec-page-border))] rounded-lg shadow-md`,style:{padding:Math.round(4*o)},children:[i&&(0,k.jsx)(`button`,{onClick:u,className:`flex items-center justify-center rounded-md text-[rgb(var(--ec-icon-color))] hover:text-[rgb(var(--ec-accent))] hover:bg-[rgb(var(--ec-accent-subtle))] transition-colors`,style:{width:s,height:s},title:`View documentation`,children:(0,k.jsx)(ZC,{style:{width:c,height:c}})}),(0,k.jsx)(`button`,{onClick:l,className:`flex items-center justify-center rounded-md text-[rgb(var(--ec-icon-color))] hover:text-[rgb(var(--ec-accent))] hover:bg-[rgb(var(--ec-accent-subtle))] transition-colors`,style:{width:s,height:s},title:`Focus on this node`,children:(0,k.jsx)(BC,{style:{width:c,height:c}})})]})})},FFe=({data:e})=>{let{label:t,side:n}=e;return(0,k.jsxs)(`div`,{className:`px-4 py-4 rounded-lg border-2 border-dashed border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-page-bg)/0.5)] max-w-[280px] flex items-center justify-center`,style:{opacity:.6,minHeight:`130px`},children:[n===`right`&&(0,k.jsx)(xS,{type:`target`,position:Fy.Left,style:{visibility:`hidden`}}),(0,k.jsx)(`div`,{className:`text-center text-sm text-[rgb(var(--ec-page-text-muted))] italic`,children:t}),n===`left`&&(0,k.jsx)(xS,{type:`source`,position:Fy.Right,style:{visibility:`hidden`}})]})},Qz=450,IFe=200,LFe=300,RFe=({centerNodeId:e,nodes:t,edges:n,nodeTypes:r,edgeTypes:i,onSwitchCenter:a})=>{let{fitView:o}=uS(),[s,c]=(0,p.useState)(!1),[l,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(null),[m,h]=(0,p.useState)(!1),g=(0,p.useRef)(!1),_=(0,p.useRef)(null);(0,p.useEffect)(()=>()=>{_.current&&clearTimeout(_.current)},[]);let v=(0,p.useCallback)(e=>{let r=t.find(t=>t.id===e);if(!r)return{nodes:[],edges:[]};let{leftNodes:i,rightNodes:a}=$Pe(e,t,n),o=fz(r),s=[];s.push({...r,parentId:void 0,extent:void 0,position:{x:0,y:0},style:{...r.style,opacity:1},data:{...r.data,isFocusCenter:!0}}),i.forEach((e,t)=>{let n=(t-(i.length-1)/2)*IFe;s.push({...e,parentId:void 0,extent:void 0,position:{x:-Qz,y:n},style:{...e.style,opacity:1}})}),a.forEach((e,t)=>{let n=(t-(a.length-1)/2)*IFe;s.push({...e,parentId:void 0,extent:void 0,position:{x:Qz,y:n},style:{...e.style,opacity:1}})}),i.length===0&&s.push({id:`__placeholder-left__`,type:`placeholder`,position:{x:-Qz,y:0},data:{label:`No inputs found for "${o.name}" in this diagram`,side:`left`},draggable:!1,selectable:!1}),a.length===0&&s.push({id:`__placeholder-right__`,type:`placeholder`,position:{x:Qz,y:0},data:{label:`No outputs found for "${o.name}" in this diagram`,side:`right`},draggable:!1,selectable:!1});let c=new Set(s.map(e=>e.id));return{nodes:s,edges:n.filter(t=>{let n=t.source===e||t.target===e,r=c.has(t.source)&&c.has(t.target);return n&&r}).map(e=>({...e,style:{...e.style,opacity:1},labelStyle:{...e.labelStyle,opacity:1},data:{...e.data,opacity:1,animated:!1},animated:!1}))}},[t,n]),y=(0,p.useMemo)(()=>v(e),[e,v]),[b,x]=fC(y.nodes),[S,C]=pC(y.edges);(0,p.useEffect)(()=>{let{nodes:t,edges:n}=v(e);x(t),C(n),u(!0)},[e,v,x,C]),(0,p.useEffect)(()=>{if(l&&g.current){let e=setTimeout(()=>{o({padding:.2,duration:300}),u(!1)},50);return()=>clearTimeout(e)}},[l,b,o]);let w=(0,p.useCallback)(()=>{g.current=!0,requestAnimationFrame(()=>{o({padding:.2,duration:0}),h(!0)})},[o]),T=(0,p.useCallback)((t,n)=>{t===e||s||(c(!0),x(n=>n.map(n=>n.id===t?{...n,position:{x:0,y:0},style:{...n.style,transition:`all ${LFe}ms ease-out`}}:n.id===e?{...n,style:{...n.style,opacity:0,transition:`opacity ${LFe}ms ease-out`}}:n)),_.current=setTimeout(()=>{a(t,n),c(!1)},LFe))},[e,s,x,a]),E=(0,p.useCallback)((t,n)=>{if(n.id===e||s)return;let r=(n.position?.x??0)<0?`left`:`right`;T(n.id,r)},[e,s,T]),ee=(0,p.useCallback)((e,t)=>{f(t.id)},[]),te=(0,p.useCallback)(()=>{f(null)},[]),ne=(0,p.useMemo)(()=>S.map(e=>e.id===d?{...e,animated:!0}:e),[S,d]),re=(0,p.useMemo)(()=>({...r,placeholder:FFe}),[r]);return b.length===0?(0,k.jsx)(`div`,{className:`flex items-center justify-center h-full text-[rgb(var(--ec-page-text-muted))]`,children:`Node not found`}):(0,k.jsx)(`div`,{className:`h-full w-full focus-mode-container`,style:{opacity:+!!m},children:(0,k.jsxs)(Zse,{nodes:b,edges:ne,nodeTypes:re,edgeTypes:i,onNodeClick:E,onEdgeMouseEnter:ee,onEdgeMouseLeave:te,onInit:w,proOptions:{hideAttribution:!0},nodesDraggable:!0,nodesConnectable:!1,elementsSelectable:!0,panOnDrag:!0,zoomOnScroll:!0,minZoom:.3,maxZoom:2,children:[(0,k.jsx)(CC,{color:`rgb(var(--ec-page-border))`,gap:20}),(0,k.jsx)(sce,{showInteractive:!1}),b.map((t,n)=>(0,k.jsx)(PFe,{node:t,isCenter:t.id===e,onSwitch:T},`actions-${t.id}-${n}`))]})})},zFe=({isOpen:e,onClose:t,initialNodeId:n,nodes:r,edges:i,nodeTypes:a,edgeTypes:o})=>{let[s,c]=(0,p.useState)(n),l=sL();wL(),(0,p.useEffect)(()=>{e&&n&&c(n)},[e,n]);let u=(0,p.useCallback)((e,t)=>{c(e)},[]),d=s?r.find(e=>e.id===s):null,f=d?fz(d):null;return s?(0,k.jsx)(mhe,{open:e,onOpenChange:e=>!e&&t(),children:(0,k.jsx)(hhe,{children:(0,k.jsxs)(`div`,{className:`eventcatalog-visualizer`,style:{position:`fixed`,inset:0,isolation:`isolate`,zIndex:99999},children:[(0,k.jsx)(ghe,{style:{position:`fixed`,inset:0,background:l?`rgba(0, 0, 0, 0.75)`:`rgba(15, 23, 42, 0.55)`,backdropFilter:`blur(2px)`}}),(0,k.jsxs)(wO,{style:{position:`fixed`,inset:`5%`,borderRadius:12,background:l?`#0f172a`:`#ffffff`,border:`1px solid ${l?`rgba(255,255,255,0.08)`:`rgba(0,0,0,0.08)`}`,boxShadow:l?`0 24px 48px rgba(0,0,0,0.5)`:`0 24px 48px rgba(0,0,0,0.15)`,outline:`none`,display:`flex`,flexDirection:`column`,overflow:`hidden`},children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`1rem 1.5rem`,borderBottom:`1px solid ${l?`rgba(255,255,255,0.08)`:`rgba(0,0,0,0.08)`}`,flexShrink:0},children:[(0,k.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,k.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:40,height:40,borderRadius:10,background:l?`rgba(59, 130, 246, 0.18)`:`rgba(59, 130, 246, 0.12)`},children:(0,k.jsx)(Hce,{style:{width:20,height:20,color:l?`#93c5fd`:`#2563eb`}})}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(TO,{style:{fontSize:18,fontWeight:600,color:l?`#f8fafc`:`#0f172a`},children:`Focus Mode`}),(0,k.jsx)(EO,{style:{marginTop:2,fontSize:14,color:l?`#94a3b8`:`#475569`},children:f?`Exploring: ${f.name} - Click on connected nodes to navigate`:`Explore node connections`})]})]}),(0,k.jsx)(DO,{asChild:!0,children:(0,k.jsx)(`button`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:40,height:40,borderRadius:10,border:`none`,cursor:`pointer`,background:`transparent`,color:l?`#94a3b8`:`#64748b`},"aria-label":`Close`,children:(0,k.jsx)(pw,{style:{width:20,height:20}})})})]}),(0,k.jsx)(`div`,{style:{flex:1,overflow:`hidden`},children:(0,k.jsx)(oC,{children:(0,k.jsx)(RFe,{centerNodeId:s,nodes:r,edges:i,nodeTypes:a,edgeTypes:o,onSwitchCenter:u})})})]})]})})}):null},BFe={agents:[`[[`,`]]`],agent:[`[[`,`]]`],agentTool:[`[`,`]`],"agent-tool":[`[`,`]`],services:[`[[`,`]]`],service:[`[[`,`]]`],events:[`>`,`]`],event:[`>`,`]`],commands:[`>`,`]`],command:[`>`,`]`],queries:[`{{`,`}}`],query:[`{{`,`}}`],channels:[`[(`,`)]`],channel:[`[(`,`)]`],domains:[`[`,`]`],domain:[`[`,`]`],flows:[`([`,`])`],flow:[`([`,`])`],systems:[`[[`,`]]`],system:[`[[`,`]]`],step:[`[`,`]`],user:[`((`,`))`],actor:[`((`,`))`],externalSystem:[`[[`,`]]`],"external-system":[`[[`,`]]`],data:[`[(`,`)]`],"data-product":[`[[`,`]]`],"data-products":[`[[`,`]]`],entities:[`[`,`]`],entity:[`[`,`]`],custom:[`[`,`]`],view:[`[`,`]`],note:[`[`,`]`],field:[`[(`,`)]`],fields:[`[(`,`)]`],messageGroup:[`[[`,`]]`],messageGroupExpanded:[`[[`,`]]`]},$z={agents:`fill:#0ea5e9,stroke:#0369a1,color:#fff`,agent:`fill:#0ea5e9,stroke:#0369a1,color:#fff`,agentTool:`fill:#8b5cf6,stroke:#6d28d9,color:#fff`,"agent-tool":`fill:#8b5cf6,stroke:#6d28d9,color:#fff`,services:`fill:#ec4899,stroke:#be185d,color:#fff`,service:`fill:#ec4899,stroke:#be185d,color:#fff`,events:`fill:#f97316,stroke:#c2410c,color:#fff`,event:`fill:#f97316,stroke:#c2410c,color:#fff`,commands:`fill:#3b82f6,stroke:#1d4ed8,color:#fff`,command:`fill:#3b82f6,stroke:#1d4ed8,color:#fff`,queries:`fill:#22c55e,stroke:#15803d,color:#fff`,query:`fill:#22c55e,stroke:#15803d,color:#fff`,channels:`fill:#6b7280,stroke:#374151,color:#fff`,channel:`fill:#6b7280,stroke:#374151,color:#fff`,domains:`fill:#eab308,stroke:#a16207,color:#000`,domain:`fill:#eab308,stroke:#a16207,color:#000`,flows:`fill:#14b8a6,stroke:#0f766e,color:#fff`,flow:`fill:#14b8a6,stroke:#0f766e,color:#fff`,systems:`fill:#8b5cf6,stroke:#6d28d9,color:#fff`,system:`fill:#8b5cf6,stroke:#6d28d9,color:#fff`,step:`fill:#374151,stroke:#1f2937,color:#fff`,user:`fill:#8b5cf6,stroke:#6d28d9,color:#fff`,actor:`fill:#eab308,stroke:#a16207,color:#000`,externalSystem:`fill:#ec4899,stroke:#be185d,color:#fff`,"external-system":`fill:#ec4899,stroke:#be185d,color:#fff`,data:`fill:#3b82f6,stroke:#1d4ed8,color:#fff`,"data-product":`fill:#6366f1,stroke:#4338ca,color:#fff`,"data-products":`fill:#6366f1,stroke:#4338ca,color:#fff`,entities:`fill:#6b7280,stroke:#374151,color:#fff`,entity:`fill:#6b7280,stroke:#374151,color:#fff`,custom:`fill:#9ca3af,stroke:#6b7280,color:#000`,view:`fill:#9ca3af,stroke:#6b7280,color:#000`,note:`fill:#fef3c7,stroke:#d97706,color:#000`,field:`fill:#06b6d4,stroke:#0891b2,color:#fff`,fields:`fill:#06b6d4,stroke:#0891b2,color:#fff`,messageGroup:`fill:#7c3aed,stroke:#5b21b6,color:#fff`,messageGroupExpanded:`fill:#7c3aed,stroke:#5b21b6,color:#fff`};function eB(e){return e.replace(/[^a-zA-Z0-9_]/g,`_`)}function tB(e){return e.replace(/"/g,`#quot;`).replace(/\n/g,`<br/>`)}function VFe(e){return BFe[e]||[`[`,`]`]}function nB(e,t){return t?`${e} (${t})`:e}function HFe(e){let{type:t,data:n}=e;if(!n)return e.id;if(t===`agents`||t===`agent`){let t=n.agent;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`agentTool`||t===`agent-tool`){let t=n.agentTool;return t?.name||t?.id||e.id}if(t===`services`||t===`service`){let t=n.service;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`events`||t===`event`||t===`commands`||t===`command`||t===`queries`||t===`query`){let t=n.message;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`channels`||t===`channel`){let t=n.channel;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`domains`||t===`domain`){let t=n.domain,r=t?.data||t;return nB(r?.name||r?.id||e.id,r?.version||t?.version)}if(t===`systems`||t===`system`){let t=n.system;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`flows`||t===`flow`){let t=n.flow;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`step`){let t=n.step;return t?.title||t?.name||t?.id||e.id}if(t===`user`||t===`actor`)return n.name||n.label||n.id||e.id;if(t===`externalSystem`||t===`external-system`){let t=n.externalSystem||n;return t?.name||t?.id||e.id}if(t===`data`){let t=n.data;return t?.name||t?.id||e.id}if(t===`data-product`||t===`data-products`){let t=n.dataProduct;return nB(t?.name||t?.id||e.id,t?.data?.version||t?.version)}if(t===`entities`||t===`entity`){let t=n.entity;return t?.name||t?.id||e.id}if(t===`note`)return n.text||n.label||`Note`;if(t===`field`||t===`fields`){let t=n.name||e.id,r=n.type;return r?`${t} (${r})`:t}return t===`messageGroup`||t===`messageGroupExpanded`?`${n.groupName||e.id} (${n.messageCount||0} messages)`:n.name||n.label||n.title||n.id||e.id}function rB(e){if(e.label&&typeof e.label==`string`)return e.label;if(e.data?.label&&typeof e.data.label==`string`)return e.data.label}function UFe(e,t,n={}){let{includeStyles:r=!0,direction:i=`LR`}=n,a=e.filter(e=>!Bz(e)),o=[];o.push(`flowchart ${i}`);let s=new Set;return r&&(o.push(``),o.push(` %% Style definitions`),a.forEach(e=>{e.type&&$z[e.type]&&s.add(e.type)}),s.forEach(e=>{let t=$z[e];t&&o.push(` classDef ${eB(e)} ${t}`)})),o.push(``),o.push(` %% Nodes`),a.forEach(e=>{let t=eB(e.id),n=tB(HFe(e)),[i,a]=VFe(e.type||`custom`),c=` ${t}${i}"${n}"${a}`;r&&e.type&&s.has(e.type)&&(c+=`:::${eB(e.type)}`),o.push(c)}),o.push(``),o.push(` %% Edges`),t.forEach(e=>{let t=eB(e.source),n=eB(e.target),r=rB(e),i;i=r?` ${t} -->|"${tB(r.replace(/\n/g,` `).trim())}"| ${n}`:` ${t} --> ${n}`,o.push(i)}),o.join(`
|