likec4 1.56.0 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/__app__/chunks/AIChat2.mjs +2 -0
  2. package/__app__/chunks/DiagramActorProvider.mjs +4 -4
  3. package/__app__/chunks/EmbedPage.mjs +1 -0
  4. package/__app__/chunks/ExportPage.mjs +2 -0
  5. package/__app__/chunks/LikeC4Diagram.mjs +5 -5
  6. package/__app__/chunks/LikeC4Styles.mjs +11 -11
  7. package/__app__/chunks/Markdown.mjs +1 -0
  8. package/__app__/chunks/NavigationPanel.mjs +1 -1
  9. package/__app__/chunks/ViewReact.mjs +1 -1
  10. package/__app__/chunks/adhoc-editor.mjs +1 -1
  11. package/__app__/chunks/aichat.mjs +1 -0
  12. package/__app__/chunks/box.mjs +1 -0
  13. package/__app__/chunks/create-style-context.mjs +1 -0
  14. package/__app__/chunks/css.mjs +1 -0
  15. package/__app__/chunks/factory.mjs +1 -0
  16. package/__app__/chunks/hooks.mjs +1 -1
  17. package/__app__/chunks/hstack.mjs +1 -0
  18. package/__app__/chunks/libs/@dagrejs/dagre.mjs +1 -1
  19. package/__app__/chunks/libs/@floating-ui/core.mjs +1 -1
  20. package/__app__/chunks/libs/@floating-ui/dom.mjs +1 -1
  21. package/__app__/chunks/libs/@floating-ui/react.mjs +1 -1
  22. package/__app__/chunks/libs/@mantine/core.mjs +24 -24
  23. package/__app__/chunks/libs/@mantine/hooks.mjs +1 -1
  24. package/__app__/chunks/libs/@nanostores/react.mjs +1 -1
  25. package/__app__/chunks/libs/@react-hookz/web.mjs +1 -1
  26. package/__app__/chunks/libs/@tabler/icons-react.mjs +347 -4
  27. package/__app__/chunks/libs/@tanstack/ai-client.mjs +2 -0
  28. package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +1 -0
  29. package/__app__/chunks/libs/@tanstack/ai-react.mjs +1 -0
  30. package/__app__/chunks/libs/@tanstack/ai.mjs +2 -0
  31. package/__app__/chunks/libs/@tanstack/history.mjs +1 -1
  32. package/__app__/chunks/libs/@tanstack/react-router.mjs +3 -3
  33. package/__app__/chunks/libs/@tanstack/router-core.mjs +1 -1
  34. package/__app__/chunks/libs/@xstate/react.mjs +1 -1
  35. package/__app__/chunks/libs/@xstate/store.mjs +1 -1
  36. package/__app__/chunks/libs/@xyflow/react.mjs +3 -3
  37. package/__app__/chunks/libs/@zag-js/anatomy.mjs +1 -1
  38. package/__app__/chunks/libs/@zag-js/collection.mjs +1 -1
  39. package/__app__/chunks/libs/@zag-js/core.mjs +1 -1
  40. package/__app__/chunks/libs/@zag-js/react.mjs +1 -1
  41. package/__app__/chunks/libs/@zag-js/tree-view.mjs +1 -1
  42. package/__app__/chunks/libs/bezier-js.mjs +1 -1
  43. package/__app__/chunks/libs/copy-anything.mjs +1 -0
  44. package/__app__/chunks/libs/d3-path.mjs +1 -1
  45. package/__app__/chunks/libs/d3-shape.mjs +1 -1
  46. package/__app__/chunks/libs/fast-equals.mjs +1 -1
  47. package/__app__/chunks/libs/framer-motion.mjs +3 -3
  48. package/__app__/chunks/libs/html-to-image.mjs +2 -2
  49. package/__app__/chunks/libs/motion-dom.mjs +1 -1
  50. package/__app__/chunks/libs/nanostores.mjs +1 -1
  51. package/__app__/chunks/libs/react-error-boundary.mjs +1 -1
  52. package/__app__/chunks/libs/react-resizable-panels.mjs +1 -1
  53. package/__app__/chunks/libs/remeda.mjs +1 -1
  54. package/__app__/chunks/libs/superjson.mjs +1 -0
  55. package/__app__/chunks/libs/zod.mjs +39 -14
  56. package/__app__/chunks/rolldown-runtime.mjs +1 -1
  57. package/__app__/chunks/styles.css.mjs +1 -1
  58. package/__app__/chunks/txt.mjs +1 -0
  59. package/__app__/chunks/useLikeC4Project.mjs +1 -1
  60. package/__app__/codegen/webcomponent.mjs +221 -69
  61. package/__app__/src/aichat/index.mjs +1 -0
  62. package/__app__/src/main.mjs +45 -1
  63. package/__app__/src/pages/AdHocViewEditor.mjs +1 -1
  64. package/__app__/src/pages/EmbedPage.mjs +1 -1
  65. package/__app__/src/pages/ExportPage.mjs +1 -1
  66. package/__app__/src/pages/ProjectsOverview.mjs +1 -1
  67. package/__app__/src/pages/ViewAsD2.mjs +1 -1
  68. package/__app__/src/pages/ViewAsDot.mjs +1 -1
  69. package/__app__/src/pages/ViewAsMmd.mjs +1 -1
  70. package/__app__/src/pages/ViewAsPuml.mjs +1 -1
  71. package/__app__/src/pages/ViewEditor.mjs +1 -1
  72. package/__app__/src/style.css +1 -1
  73. package/config/schema.json +14 -41
  74. package/dist/chunks/enableServer.mjs +1 -0
  75. package/dist/chunks/index2.d.mts +569 -377
  76. package/dist/chunks/libs/@hono/mcp.mjs +33 -8
  77. package/dist/chunks/libs/@hono/node-server.mjs +1 -1
  78. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +7 -7
  79. package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
  80. package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
  81. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
  82. package/dist/chunks/libs/ajv.mjs +1 -1
  83. package/dist/chunks/libs/ansi-styles.mjs +1 -1
  84. package/dist/chunks/libs/boxen.mjs +2 -2
  85. package/dist/chunks/libs/chevrotain.mjs +2 -2
  86. package/dist/chunks/libs/conf.mjs +1 -1
  87. package/dist/chunks/libs/langium.d.mts +5 -5
  88. package/dist/chunks/libs/langium.mjs +10 -10
  89. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  90. package/dist/chunks/libs/pako.mjs +3 -1
  91. package/dist/chunks/libs/remeda.mjs +1 -1
  92. package/dist/chunks/libs/ts-graphviz.mjs +1 -4
  93. package/dist/chunks/libs/unctx.mjs +1 -0
  94. package/dist/chunks/libs/vscode-languageserver.mjs +1 -1
  95. package/dist/chunks/libs/zod.d.mts +60 -25
  96. package/dist/chunks/node.mjs +62 -45
  97. package/dist/chunks/plugin.mjs +234 -41
  98. package/dist/chunks/sequence-view.mjs +1 -1
  99. package/dist/cli/index.mjs +142 -139
  100. package/dist/index.d.mts +1 -130
  101. package/dist/model/index.d.mts +1 -1
  102. package/dist/vite-plugin/index.d.mts +53 -2
  103. package/dist/vite-plugin/internal/index.d.mts +331 -3
  104. package/dist/vite-plugin/internal/index.mjs +1 -1
  105. package/package.json +65 -51
  106. package/react/index.d.mts +82 -50
  107. package/react/index.mjs +34017 -32421
  108. package/vite-plugin-modules.d.ts +4 -0
  109. package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
  110. package/__app__/chunks/Fallback.mjs +0 -1
  111. package/__app__/chunks/Header.mjs +0 -13
  112. package/__app__/chunks/IconRenderer.mjs +0 -1
  113. package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
  114. package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
  115. package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
  116. package/__app__/chunks/__root.mjs +0 -1
  117. package/__app__/chunks/libs/motion.mjs +0 -1
  118. package/__app__/chunks/libs/xstate.mjs +0 -1
  119. package/__app__/chunks/safeCtx.mjs +0 -1
  120. package/__app__/chunks/searchParams.mjs +0 -1
  121. package/__app__/chunks/single-index.mjs +0 -1
  122. package/__app__/chunks/styled-system.mjs +0 -1
  123. package/__app__/chunks/useUpdateEffect.mjs +0 -1
  124. package/__app__/src/routeTree.gen.mjs +0 -1
  125. package/__app__/src/routes/__root.mjs +0 -1
  126. package/__app__/src/routes/_single/adhoc.mjs +0 -1
  127. package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
  128. package/__app__/src/routes/_single/export._viewId.mjs +0 -1
  129. package/__app__/src/routes/_single/route.mjs +0 -1
  130. package/__app__/src/routes/_single/single-index.mjs +0 -1
  131. package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
  132. package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
  133. package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
  134. package/__app__/src/routes/_single/view._viewId.mjs +0 -1
  135. package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
  136. package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
  137. package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
  138. package/__app__/src/routes/index.mjs +0 -1
  139. package/__app__/src/routes/project._projectId/-components.mjs +0 -1
  140. package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
  141. package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
  142. package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
  143. package/__app__/src/routes/project._projectId/index.mjs +0 -1
  144. package/__app__/src/routes/project._projectId/route.mjs +0 -1
  145. package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
  146. package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
  147. package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
  148. package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
  149. package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
  150. package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
  151. package/__app__/src/routes/projects.mjs +0 -1
  152. package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
  153. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
  154. package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
@@ -0,0 +1,2 @@
1
+ import{l as e}from"./libs/@tanstack/react-router.mjs";import{W as t,Y as n,v as r}from"./libs/remeda.mjs";import{M as i,Tt as a,X as o,_ as s,h as c,mt as l,pt as u,q as d,z as f}from"./libs/@mantine/core.mjs";import{u as p}from"./libs/@mantine/hooks.mjs";import{t as m}from"./css.mjs";import{t as h}from"./Markdown.mjs";import{g,n as _}from"./libs/@tabler/icons-react.mjs";import{r as v}from"./libs/@react-hookz/web.mjs";import{r as y,s as b,t as x}from"./hstack.mjs";import{c as S,p as C}from"./libs/framer-motion.mjs";import{t as w}from"./txt.mjs";import{a as T,c as E,i as D,n as O,o as k,r as A,s as j,t as M}from"./libs/zod.mjs";import{t as N}from"./hooks.mjs";import{r as P,t as F}from"./libs/@tanstack/ai-client.mjs";import{n as I}from"./libs/@tanstack/ai.mjs";import{t as L}from"./libs/@tanstack/ai-react.mjs";import{t as ee}from"./libs/@tanstack/ai-react-ui.mjs";import{n as te,t as ne}from"./libs/superjson.mjs";import{createContext as re,use as ie,useEffect as ae,useRef as R,useState as z}from"react";import{c as B}from"react-compiler-runtime";import{Fragment as V,jsx as H,jsxs as U}from"react/jsx-runtime";import{ElementShapes as W}from"@likec4/core/styles";import{RichText as G,nonNullable as K,nonexhaustive as q}from"@likec4/core";import{AIAdapter as oe}from"likec4:rpc";const J=re(null);function Y(){return K(ie(J),`useChatContext: ChatProvider is not provided`)}function se(){let e=B(22),{sendMessage:t,isLoading:n,messages:r,clear:a,stop:o}=Y(),[s,c]=z(``),u=R(null),f;e[0]!==n||e[1]!==t||e[2]!==s?(f=()=>{!s.trim()||n||(t(s),c(``))},e[0]=n,e[1]=t,e[2]=s,e[3]=f):f=e[3];let p=f,m;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>c(e.target.value),e[4]=m):m=e[4];let h;e[5]===p?h=e[6]:(h=e=>{e.key===`Enter`&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&(e.preventDefault(),p())},e[5]=p,e[6]=h);let g;e[7]!==n||e[8]!==h||e[9]!==s?(g=H(i,{flex:1,className:`chat-input`,placeholder:`Your question...`,value:s,onChange:m,onKeyDown:h,disabled:n,ref:u,loading:n,autosize:!0,minRows:1}),e[7]=n,e[8]=h,e[9]=s,e[10]=g):g=e[10];let v;e[11]!==a||e[12]!==n||e[13]!==r.length?(v=r.length>0&&!n&&H(d,{size:`sm`,color:`red`,variant:`light`,onClick:()=>a(),children:`Clear`}),e[11]=a,e[12]=n,e[13]=r.length,e[14]=v):v=e[14];let y;e[15]!==n||e[16]!==o?(y=n&&H(l,{color:`red`,variant:`light`,onClick:()=>o(),children:H(_,{})}),e[15]=n,e[16]=o,e[17]=y):y=e[17];let b;return e[18]!==g||e[19]!==v||e[20]!==y?(b=U(x,{children:[g,v,y]}),e[18]=g,e[19]=v,e[20]=y,e[21]=b):b=e[21],b}function ce(){let e=B(7),{messages:t,error:n}=Y(),r;e[0]===t?r=e[1]:(r=t.map(le),e[0]=t,e[1]=r);let i;e[2]===n?i=e[3]:(i=n&&H(s,{styles:{icon:{alignSelf:`flex-start`}},color:`red`,title:`Oops, something went wrong`,withCloseButton:!1,children:U(w,{fontSize:`sm`,fontFamily:`mono`,whiteSpace:`pre`,my:`xs`,children:[n.message,n.stack&&`
2
+ `+n.stack]})}),e[2]=n,e[3]=i);let a;return e[4]!==r||e[5]!==i?(a=U(V,{children:[r,i]}),e[4]=r,e[5]=i,e[6]=a):a=e[6],a}function le(e){return H(ue,{message:e},e.id)}const ue=e=>{let t=B(4),{message:n}=e,r=n.role,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=m({color:`text.bright`,alignSelf:`flex-end`,paddingInline:`2`,paddingBlock:`1`,marginInlineEnd:`2`,rounded:`sm`,backgroundColor:`default.hover`,whiteSpace:`pre-wrap`}),t[0]=i):i=t[0];let a=r===`user`?de:fe,o;return t[1]!==n||t[2]!==a?(o=H(ee,{message:n,userClassName:i,textPartRenderer:a}),t[1]=n,t[2]=a,t[3]=o):o=t[3],o},de=e=>{let t=B(2),{content:n}=e,r;return t[0]===n?r=t[1]:(r=H(V,{children:n}),t[0]=n,t[1]=r),r},fe=e=>{let t=B(4),{content:n}=e,r;t[0]===n?r=t[1]:(r=G.from({md:n}),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=H(h,{textScale:.95,value:r}),t[2]=r,t[3]=i),i},X=j({id:E().meta({description:`Node ID`}),title:E(),shape:M(W),color:E().meta({description:`Node color, from theme or custom`}),icon:E().nullish(),parentId:E().nullish().meta({description:`Parent node ID (if node is nested)`}),children:O(E()).nullish().meta({description:`Nested node IDs (if node is compound)`}),x:k(),y:k(),width:k(),height:k(),modelFqn:E().nullish().meta({description:`Model element FQN (if node has reference)`})}),pe=I({name:`read_ui`,description:`Read current UI state. Use arguments to include additional data.`,needsApproval:!1,inputSchema:j({selectedNode:A().default(!1).meta({description:`Include selected node (if any)`}),nodes:A().default(!1).meta({description:`Include all nodes from the view`})}),outputSchema:j({projectId:E(),editMode:A().meta({description:`Whether the UI is in edit mode`}),view:j({id:E(),title:E(),type:M([`element`,`deployment`,`dynamic`]).meta({description:`Type of the current view`})}).meta({description:`Current view`}),nodes:O(X).nullish(),selectedNode:X.nullish()})}),me=I({name:`update_ui`,description:`Update UI state by executing a command.`,needsApproval:!1,inputSchema:j({command:D(`type`,[j({type:T(`focus`),elementId:E().meta({description:`Element ID (FQN)`})}).meta({description:`Focus UI on an element by its FQN`}),j({type:T(`fitview`)}).meta({description:`Zoom out to fit all elements in the viewport, and clear any selection/focus`})])}),outputSchema:j({})}),he=I({name:`navigate_to`,description:`Navigates UI to another view`,needsApproval:!1,inputSchema:j({viewId:E().meta({description:`View ID`})}),outputSchema:j({})});function ge(e){return({id:t,data:n,...r})=>{let i=n.icon??void 0;i===`none`&&(i=void 0);let a=e.parentLookup.get(t)?.values().map(e=>e.id).toArray();return{id:t,title:n.title,shape:n.shape,color:n.color,icon:i,parentId:r.parentId,children:a,x:n.x,y:n.y,width:r.measured?.width??r.width??r.initialWidth??0,height:r.measured?.height??r.height??r.initialHeight??0,...`modelFqn`in n&&n.modelFqn&&{modelFqn:n.modelFqn}}}}function _e(){let i=B(11),{id:a}=N(),o=e(),s=b(),c;if(i[0]!==s||i[1]!==o||i[2]!==a){let e;i[4]===o?e=i[5]:(e=e=>{let{viewId:t}=e;return o({to:`./`,params:e=>({...e,viewId:t})}),{}},i[4]=o,i[5]=e);let l;i[6]!==s||i[7]!==a?(l=e=>{let{view:i,focusedNode:o,xynodes:c,xystore:l,toggledFeatures:u,features:d}=s.getContext(),f=u.enableReadOnly??d.enableReadOnly,p=ge(l.getState()),m=e.nodes===!0&&r(c,p)||void 0,h=e.selectedNode===!0&&n(c,t(e=>!!e.selected||e.id===o),e=>e?p(e):void 0);return{projectId:a,editMode:!f,view:{id:i.id,title:i.title??``,type:i._type},...m&&{nodes:m},...h&&{selectedNode:h}}},i[6]=s,i[7]=a,i[8]=l):l=i[8];let u;i[9]===s?u=i[10]:(u=e=>{let{command:t}=e;bb50:switch(t.type){case`focus`:s.focusOnElement(t.elementId);break bb50;case`fitview`:s.fitDiagram();break bb50;default:q(t)}return{}},i[9]=s,i[10]=u),c=F(he.client(e),pe.client(l),me.client(u)),i[0]=s,i[1]=o,i[2]=a,i[3]=c}else c=i[3];return c}const Z={key:`likec4.ai.chat.messages`,read(){try{let e=sessionStorage.getItem(this.key);return e?ne(e):[]}catch{return[]}},write(e){try{if(e.length===0){sessionStorage.removeItem(this.key);return}sessionStorage.setItem(this.key,te(e))}catch{}}};function Q(e){let t=B(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={connection:P(`/__likec4_ai`),initialMessages:Z.read()},t[0]=n):n=t[0];let r=n,i=_e(),a;t[1]!==e||t[2]!==i?(a={...r,...e,tools:i},t[1]=e,t[2]=i,t[3]=a):a=t[3];let o=L(a),s,c;return t[4]===o.messages?(s=t[5],c=t[6]):(s=()=>{Z.write(o.messages)},c=[o.messages],t[4]=o.messages,t[5]=s,t[6]=c),ae(s,c),o}const $={key:`likec4.ai.chat.position`,read(){try{let e=localStorage.getItem(this.key);return e?JSON.parse(e):null}catch{return null}},write(e){try{if(e===null)return localStorage.removeItem(this.key),e;localStorage.setItem(this.key,JSON.stringify(e))}catch{}return e}};function ve(){let e=R(null);e.current||=$.read()??{right:16,bottom:100};let t=t=>{e.current=$.write({left:t.x,top:t.y})},[n,r]=p({key:`likec4.ai.chat.collapsed`,defaultValue:!0});return U(C,{children:[!n&&H(f,{w:300,pos:`fixed`,className:m({rounded:`md`,padding:`xs`,shadow:`md`,layerStyle:`likec4.panel`}),constrainToViewport:!0,constrainOffset:8,excludeDragHandleSelector:`.chat-input`,initialPosition:e.current,onPositionChange:t,children:H(ye,{onClose:()=>r(!0)})}),n&&H(S.div,{initial:{opacity:.1,translateX:`10%`},animate:{opacity:1,translateX:0},exit:{translateX:`50%`,opacity:.1},style:{position:`fixed`,right:8,bottom:60,zIndex:1e3},children:H(c,{label:`Show AI Assistant`,color:`dark`,fz:`xs`,children:H(l,{size:`lg`,variant:`gradient`,onClick:()=>r(!1),children:H(g,{stroke:1.5})})})},`collapsed`)]})}function ye(e){let t=B(15),{onClose:n}=e,r=R(null),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{r.current?.scrollIntoView()},t[0]=i):i=t[0];let s=i,c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{s()},t[1]=c):c=t[1],v(c,100);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l={onChunk:s},t[2]=l):l=t[2];let d=Q(l),f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=U(x,{children:[H(w,{textStyle:`likec4.panel`,noUserSelect:!0,children:`AI Assistant`}),H(o,{size:`xs`,radius:`sm`,variant:`light`,children:oe})]}),t[3]=f):f=t[3];let p;t[4]===n?p=t[5]:(p=U(x,{cursor:`move`,justify:`space-between`,children:[f,H(u,{size:`sm`,onClick:e=>{e.stopPropagation(),n()}})]}),t[4]=n,t[5]=p);let h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h={content:m({display:`contents`})},t[6]=h):h=t[6];let g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=H(ce,{}),t[7]=g):g=t[7];let _,b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(_=H(a,{scrollbars:`y`,w:`100%`,flex:1,mih:250,mah:350,classNames:h,children:U(y,{children:[g,H(`div`,{ref:r,style:{height:2}})]})}),b=H(se,{}),t[8]=_,t[9]=b):(_=t[8],b=t[9]);let S;t[10]===p?S=t[11]:(S=U(y,{w:`100%`,children:[p,_,b]}),t[10]=p,t[11]=S);let C;return t[12]!==d||t[13]!==S?(C=H(J,{value:d,children:S}),t[12]=d,t[13]=S,t[14]=C):C=t[14],C}export{ve as default};