likec4 1.25.0 → 1.25.1

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/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import"@likec4/core";export{LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.DX7xzn9M.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core/types";import"events";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";
1
+ import"@likec4/core";export{LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.8R_NjvKs.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core/types";import"events";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";
2
2
  import"boxen";import"node:child_process";import"node:events";import"node:fs/promises";import"node:stream/promises";import"node:os";import"fs/promises";
@@ -173,26 +173,26 @@ c$:function(t){return nr(t)&&vI.call(t,"callee")&&!wI.call(t,"callee")};function
173
173
  [object RegExp]",NI="[object Set]",II="[object String]",OI="[object WeakMap]",LI="[object ArrayBuffer]",MI="[object DataView]",zI="[object Float32Array]",FI="[object Float64Array]",qI="[object Int8Array]",GI="[object Int16Array]",jI="[object Int32Array]",BI="[object Uint8Array]",UI="[object Uint8ClampedArray]",WI="[object Uint16Array]",HI="[object Uint32Array]",pt={};pt[zI]=pt[FI]=pt[qI]=pt[GI]=pt[jI]=pt[BI]=pt[UI]=pt[WI]=pt[HI]=!0,pt[kI]=pt[TI]=pt[LI]=pt[EI]=pt[MI]=pt[SI]=pt[AI]=pt[_I]=pt[CI]=pt[PI]=
174
174
  pt[xI]=pt[DI]=pt[NI]=pt[II]=pt[OI]=!1;function KI(t){return nr(t)&&Fm(t.length)&&!!pt[ki(t)]}function Wd(t){return function(e){return t(e)}}var h$=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ac=h$&&typeof module=="object"&&module&&!module.nodeType&&module,VI=ac&&ac.exports===h$,qm=VI&&Vb.process,Ti=function(){try{var t=ac&&ac.require&&ac.require("util").types;return t||qm&&qm.binding&&qm.binding("util")}catch{}}(),p$=Ti&&Ti.isTypedArray,Gm=p$?Wd(p$):KI,XI=Object.prototype,YI=XI.
175
175
  hasOwnProperty;function m$(t,e){var n=He(t),r=!n&&Ud(t),i=!n&&!r&&sc(t),s=!n&&!r&&!i&&Gm(t),a=n||r||i||s,o=a?gI(t.length,String):[],c=o.length;for(var u in t)(e||YI.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jd(u,c)))&&o.push(u);return o}function g$(t,e){return function(n){return t(e(n))}}var JI=g$(Object.keys,Object),QI=Object.prototype,ZI=QI.hasOwnProperty;function y$(t){if(!ic(t))return JI(t);var e=[];for(var n in Object(t))
176
- ZI.call(t,n)&&n!="constructor"&&e.push(n);return e}function Hn(t){return kr(t)?m$(t):y$(t)}var eO=Object.prototype,tO=eO.hasOwnProperty,Dn=pI(function(t,e){if(ic(e)||kr(e)){rc(e,Hn(e),t);return}for(var n in e)tO.call(e,n)&&Bd(t,n,e[n])});function nO(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var rO=Object.prototype,iO=rO.hasOwnProperty;function sO(t){if(!Wn(t))return nO(t);var e=ic(t),n=[];for(var r in t)r=="constructor"&&(e||!iO.call(t,r))||n.push(r);return n}function jm(t){
177
- return kr(t)?m$(t,!0):sO(t)}var aO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oO=/^\w*$/;function Bm(t,e){if(He(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||tc(t)?!0:oO.test(t)||!aO.test(t)||e!=null&&t in Object(e)}var oc=as(Object,"create");function cO(){this.__data__=oc?oc(null):{},this.size=0}function uO(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var lO="__lodash_hash_undefined__",dO=Object.prototype,fO=dO.hasOwnProperty;
178
- function hO(t){var e=this.__data__;if(oc){var n=e[t];return n===lO?void 0:n}return fO.call(e,t)?e[t]:void 0}var pO=Object.prototype,mO=pO.hasOwnProperty;function gO(t){var e=this.__data__;return oc?e[t]!==void 0:mO.call(e,t)}var yO="__lodash_hash_undefined__";function vO(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=oc&&e===void 0?yO:e,this}function os(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}os.prototype.clear=cO,os.prototype.delete=
179
- uO,os.prototype.get=hO,os.prototype.has=gO,os.prototype.set=vO;function wO(){this.__data__=[],this.size=0}function Hd(t,e){for(var n=t.length;n--;)if(nc(t[n][0],e))return n;return-1}var bO=Array.prototype,$O=bO.splice;function RO(t){var e=this.__data__,n=Hd(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():$O.call(e,n,1),--this.size,!0}function kO(t){var e=this.__data__,n=Hd(e,t);return n<0?void 0:e[n][1]}function TO(t){return Hd(this.__data__,t)>-1}function EO(t,e){var n=this.__data__,r=Hd(
180
- n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Br(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Br.prototype.clear=wO,Br.prototype.delete=RO,Br.prototype.get=kO,Br.prototype.has=TO,Br.prototype.set=EO;var cc=as(Rr,"Map");function SO(){this.size=0,this.__data__={hash:new os,map:new(cc||Br),string:new os}}function AO(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Kd(t,e){
181
- var n=t.__data__;return AO(e)?n[typeof e=="string"?"string":"hash"]:n.map}function _O(t){var e=Kd(this,t).delete(t);return this.size-=e?1:0,e}function CO(t){return Kd(this,t).get(t)}function PO(t){return Kd(this,t).has(t)}function xO(t,e){var n=Kd(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ur(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ur.prototype.clear=SO,Ur.prototype.delete=_O,Ur.prototype.get=CO,Ur.prototype.has=PO,
182
- Ur.prototype.set=xO;var DO="Expected a function";function Um(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(DO);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=t.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(Um.Cache||Ur),n}Um.Cache=Ur;var NO=500;function IO(t){var e=Um(t,function(r){return n.size===NO&&n.clear(),r}),n=e.cache;return e}var OO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
183
- LO=/\\(\\)?/g,MO=IO(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(OO,function(n,r,i,s){e.push(i?s.replace(LO,"$1"):r||n)}),e});function zO(t){return t==null?"":Zb(t)}function Vd(t,e){return He(t)?t:Bm(t,e)?[t]:MO(zO(t))}function uc(t){if(typeof t=="string"||tc(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Wm(t,e){e=Vd(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[uc(e[n++])];return n&&n==r?t:void 0}function FO(t,e,n){var r=t==null?void 0:Wm(t,e);return r===
184
- void 0?n:r}function Hm(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var v$=Un?Un.isConcatSpreadable:void 0;function qO(t){return He(t)||Ud(t)||!!(v$&&t&&t[v$])}function Km(t,e,n,r,i){var s=-1,a=t.length;for(n||(n=qO),i||(i=[]);++s<a;){var o=t[s];n(o)?Hm(i,o):r||(i[i.length]=o)}return i}function Kn(t){var e=t==null?0:t.length;return e?Km(t):[]}var w$=g$(Object.getPrototypeOf,Object);function b$(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>
185
- 0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function GO(t,e,n,r){var i=-1,s=t==null?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function jO(){this.__data__=new Br,this.size=0}function BO(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function UO(t){return this.__data__.get(t)}function WO(t){return this.__data__.has(t)}var HO=200;function KO(t,e){var n=this.__data__;if(n instanceof Br){var r=n.__data__;if(!cc||r.length<HO-1)return r.push([t,e]),this.
186
- size=++n.size,this;n=this.__data__=new Ur(r)}return n.set(t,e),this.size=n.size,this}function Tr(t){var e=this.__data__=new Br(t);this.size=e.size}Tr.prototype.clear=jO,Tr.prototype.delete=BO,Tr.prototype.get=UO,Tr.prototype.has=WO,Tr.prototype.set=KO;function VO(t,e){return t&&rc(e,Hn(e),t)}function XO(t,e){return t&&rc(e,jm(e),t)}var $$=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R$=$$&&typeof module=="object"&&module&&!module.nodeType&&module,YO=R$&&R$.exports===$$,k$=YO?Rr.
187
- Buffer:void 0,T$=k$?k$.allocUnsafe:void 0;function JO(t,e){var n=t.length,r=T$?T$(n):new t.constructor(n);return t.copy(r),r}function Vm(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[i++]=a)}return s}function E$(){return[]}var QO=Object.prototype,ZO=QO.propertyIsEnumerable,S$=Object.getOwnPropertySymbols,Xm=S$?function(t){return t==null?[]:(t=Object(t),Vm(S$(t),function(e){return ZO.call(t,e)}))}:E$;function e1(t,e){return rc(t,Xm(t),e)}var t1=Object.getOwnPropertySymbols,
188
- A$=t1?function(t){for(var e=[];t;)Hm(e,Xm(t)),t=w$(t);return e}:E$;function n1(t,e){return rc(t,A$(t),e)}function _$(t,e,n){var r=e(t);return He(t)?r:Hm(r,n(t))}function Ym(t){return _$(t,Hn,Xm)}function r1(t){return _$(t,jm,A$)}var Jm=as(Rr,"DataView"),Qm=as(Rr,"Promise"),pa=as(Rr,"Set"),C$="[object Map]",i1="[object Object]",P$="[object Promise]",x$="[object Set]",D$="[object WeakMap]",N$="[object DataView]",s1=ss(Jm),a1=ss(cc),o1=ss(Qm),c1=ss(pa),u1=ss(Om),Vn=ki;(Jm&&Vn(new Jm(new ArrayBuffer(
189
- 1)))!=N$||cc&&Vn(new cc)!=C$||Qm&&Vn(Qm.resolve())!=P$||pa&&Vn(new pa)!=x$||Om&&Vn(new Om)!=D$)&&(Vn=function(t){var e=ki(t),n=e==i1?t.constructor:void 0,r=n?ss(n):"";if(r)switch(r){case s1:return N$;case a1:return C$;case o1:return P$;case c1:return x$;case u1:return D$}return e});var l1=Object.prototype,d1=l1.hasOwnProperty;function f1(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&d1.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Xd=Rr.Uint8Array;function h1(t){
190
- var e=new t.constructor(t.byteLength);return new Xd(e).set(new Xd(t)),e}function p1(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var m1=/\w*$/;function g1(t){var e=new t.constructor(t.source,m1.exec(t));return e.lastIndex=t.lastIndex,e}var I$=Un?Un.prototype:void 0,O$=I$?I$.valueOf:void 0;function y1(t){return O$?Object(O$.call(t)):{}}function v1(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var w1="[object Boolean]",b1="[object Date]",$1="[ob\
191
- ject Map]",R1="[object Number]",k1="[object RegExp]",T1="[object Set]",E1="[object String]",S1="[object Symbol]",A1="[object ArrayBuffer]",_1="[object DataView]",C1="[object Float32Array]",P1="[object Float64Array]",x1="[object Int8Array]",D1="[object Int16Array]",N1="[object Int32Array]",I1="[object Uint8Array]",O1="[object Uint8ClampedArray]",L1="[object Uint16Array]",M1="[object Uint32Array]";function z1(t,e,n){var r=t.constructor;switch(e){case A1:return h1(t);case w1:case b1:return new r(+t);case _1:
192
- return p1(t);case C1:case P1:case x1:case D1:case N1:case I1:case O1:case L1:case M1:return v1(t);case $1:return new r;case R1:case E1:return new r(t);case k1:return g1(t);case T1:return new r;case S1:return y1(t)}}function F1(t){return typeof t.constructor=="function"&&!ic(t)?YN(w$(t)):{}}var q1="[object Map]";function G1(t){return nr(t)&&Vn(t)==q1}var L$=Ti&&Ti.isMap,j1=L$?Wd(L$):G1,B1="[object Set]";function U1(t){return nr(t)&&Vn(t)==B1}var M$=Ti&&Ti.isSet,W1=M$?Wd(M$):U1,H1=2,z$="[object Ar\
193
- guments]",K1="[object Array]",V1="[object Boolean]",X1="[object Date]",Y1="[object Error]",F$="[object Function]",J1="[object GeneratorFunction]",Q1="[object Map]",Z1="[object Number]",q$="[object Object]",eL="[object RegExp]",tL="[object Set]",nL="[object String]",rL="[object Symbol]",iL="[object WeakMap]",sL="[object ArrayBuffer]",aL="[object DataView]",oL="[object Float32Array]",cL="[object Float64Array]",uL="[object Int8Array]",lL="[object Int16Array]",dL="[object Int32Array]",fL="[object Ui\
194
- nt8Array]",hL="[object Uint8ClampedArray]",pL="[object Uint16Array]",mL="[object Uint32Array]",ut={};ut[z$]=ut[K1]=ut[sL]=ut[aL]=ut[V1]=ut[X1]=ut[oL]=ut[cL]=ut[uL]=ut[lL]=ut[dL]=ut[Q1]=ut[Z1]=ut[q$]=ut[eL]=ut[tL]=ut[nL]=ut[rL]=ut[fL]=ut[hL]=ut[pL]=ut[mL]=!0,ut[Y1]=ut[F$]=ut[iL]=!1;function Yd(t,e,n,r,i,s){var a,o=e&H1;if(a!==void 0)return a;if(!Wn(t))return t;var c=He(t);if(c)return a=f1(t),QN(t,a);var u=Vn(t),l=u==F$||u==J1;if(sc(t))return JO(t);if(u==q$||u==z$||l&&!i)return a=l?{}:F1(t),o?n1(t,
195
- XO(a,t)):e1(t,VO(a,t));if(!ut[u])return i?t:{};a=z1(t,u),s||(s=new Tr);var f=s.get(t);if(f)return f;s.set(t,a),W1(t)?t.forEach(function(m){a.add(Yd(m,e,n,m,t,s))}):j1(t)&&t.forEach(function(m,w){a.set(w,Yd(m,e,n,w,t,s))});var d=Ym,h=c?void 0:d(t);return r$(h||t,function(m,w){h&&(w=m,m=t[w]),Bd(a,w,Yd(m,e,n,w,t,s))}),a}var gL=4;function Bt(t){return Yd(t,gL)}function lc(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}var yL="__lodash_hash_undefined__";function vL(t){
176
+ ZI.call(t,n)&&n!="constructor"&&e.push(n);return e}function Hn(t){return kr(t)?m$(t):y$(t)}var e1=Object.prototype,t1=e1.hasOwnProperty,Dn=pI(function(t,e){if(ic(e)||kr(e)){rc(e,Hn(e),t);return}for(var n in e)t1.call(e,n)&&Bd(t,n,e[n])});function n1(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var r1=Object.prototype,i1=r1.hasOwnProperty;function s1(t){if(!Wn(t))return n1(t);var e=ic(t),n=[];for(var r in t)r=="constructor"&&(e||!i1.call(t,r))||n.push(r);return n}function jm(t){
177
+ return kr(t)?m$(t,!0):s1(t)}var a1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o1=/^\w*$/;function Bm(t,e){if(He(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||tc(t)?!0:o1.test(t)||!a1.test(t)||e!=null&&t in Object(e)}var oc=as(Object,"create");function c1(){this.__data__=oc?oc(null):{},this.size=0}function u1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var l1="__lodash_hash_undefined__",d1=Object.prototype,f1=d1.hasOwnProperty;
178
+ function h1(t){var e=this.__data__;if(oc){var n=e[t];return n===l1?void 0:n}return f1.call(e,t)?e[t]:void 0}var p1=Object.prototype,m1=p1.hasOwnProperty;function g1(t){var e=this.__data__;return oc?e[t]!==void 0:m1.call(e,t)}var y1="__lodash_hash_undefined__";function v1(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=oc&&e===void 0?y1:e,this}function os(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}os.prototype.clear=c1,os.prototype.delete=
179
+ u1,os.prototype.get=h1,os.prototype.has=g1,os.prototype.set=v1;function w1(){this.__data__=[],this.size=0}function Hd(t,e){for(var n=t.length;n--;)if(nc(t[n][0],e))return n;return-1}var b1=Array.prototype,$1=b1.splice;function R1(t){var e=this.__data__,n=Hd(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():$1.call(e,n,1),--this.size,!0}function k1(t){var e=this.__data__,n=Hd(e,t);return n<0?void 0:e[n][1]}function T1(t){return Hd(this.__data__,t)>-1}function E1(t,e){var n=this.__data__,r=Hd(
180
+ n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Br(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Br.prototype.clear=w1,Br.prototype.delete=R1,Br.prototype.get=k1,Br.prototype.has=T1,Br.prototype.set=E1;var cc=as(Rr,"Map");function S1(){this.size=0,this.__data__={hash:new os,map:new(cc||Br),string:new os}}function A1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Kd(t,e){
181
+ var n=t.__data__;return A1(e)?n[typeof e=="string"?"string":"hash"]:n.map}function _1(t){var e=Kd(this,t).delete(t);return this.size-=e?1:0,e}function C1(t){return Kd(this,t).get(t)}function P1(t){return Kd(this,t).has(t)}function x1(t,e){var n=Kd(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ur(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ur.prototype.clear=S1,Ur.prototype.delete=_1,Ur.prototype.get=C1,Ur.prototype.has=P1,
182
+ Ur.prototype.set=x1;var D1="Expected a function";function Um(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(D1);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=t.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(Um.Cache||Ur),n}Um.Cache=Ur;var N1=500;function I1(t){var e=Um(t,function(r){return n.size===N1&&n.clear(),r}),n=e.cache;return e}var O1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
183
+ L1=/\\(\\)?/g,M1=I1(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(O1,function(n,r,i,s){e.push(i?s.replace(L1,"$1"):r||n)}),e});function z1(t){return t==null?"":Zb(t)}function Vd(t,e){return He(t)?t:Bm(t,e)?[t]:M1(z1(t))}function uc(t){if(typeof t=="string"||tc(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Wm(t,e){e=Vd(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[uc(e[n++])];return n&&n==r?t:void 0}function F1(t,e,n){var r=t==null?void 0:Wm(t,e);return r===
184
+ void 0?n:r}function Hm(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var v$=Un?Un.isConcatSpreadable:void 0;function q1(t){return He(t)||Ud(t)||!!(v$&&t&&t[v$])}function Km(t,e,n,r,i){var s=-1,a=t.length;for(n||(n=q1),i||(i=[]);++s<a;){var o=t[s];n(o)?Hm(i,o):r||(i[i.length]=o)}return i}function Kn(t){var e=t==null?0:t.length;return e?Km(t):[]}var w$=g$(Object.getPrototypeOf,Object);function b$(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>
185
+ 0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function G1(t,e,n,r){var i=-1,s=t==null?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function j1(){this.__data__=new Br,this.size=0}function B1(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function U1(t){return this.__data__.get(t)}function W1(t){return this.__data__.has(t)}var H1=200;function K1(t,e){var n=this.__data__;if(n instanceof Br){var r=n.__data__;if(!cc||r.length<H1-1)return r.push([t,e]),this.
186
+ size=++n.size,this;n=this.__data__=new Ur(r)}return n.set(t,e),this.size=n.size,this}function Tr(t){var e=this.__data__=new Br(t);this.size=e.size}Tr.prototype.clear=j1,Tr.prototype.delete=B1,Tr.prototype.get=U1,Tr.prototype.has=W1,Tr.prototype.set=K1;function V1(t,e){return t&&rc(e,Hn(e),t)}function X1(t,e){return t&&rc(e,jm(e),t)}var $$=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R$=$$&&typeof module=="object"&&module&&!module.nodeType&&module,Y1=R$&&R$.exports===$$,k$=Y1?Rr.
187
+ Buffer:void 0,T$=k$?k$.allocUnsafe:void 0;function J1(t,e){var n=t.length,r=T$?T$(n):new t.constructor(n);return t.copy(r),r}function Vm(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[i++]=a)}return s}function E$(){return[]}var Q1=Object.prototype,Z1=Q1.propertyIsEnumerable,S$=Object.getOwnPropertySymbols,Xm=S$?function(t){return t==null?[]:(t=Object(t),Vm(S$(t),function(e){return Z1.call(t,e)}))}:E$;function eO(t,e){return rc(t,Xm(t),e)}var tO=Object.getOwnPropertySymbols,
188
+ A$=tO?function(t){for(var e=[];t;)Hm(e,Xm(t)),t=w$(t);return e}:E$;function nO(t,e){return rc(t,A$(t),e)}function _$(t,e,n){var r=e(t);return He(t)?r:Hm(r,n(t))}function Ym(t){return _$(t,Hn,Xm)}function rO(t){return _$(t,jm,A$)}var Jm=as(Rr,"DataView"),Qm=as(Rr,"Promise"),pa=as(Rr,"Set"),C$="[object Map]",iO="[object Object]",P$="[object Promise]",x$="[object Set]",D$="[object WeakMap]",N$="[object DataView]",sO=ss(Jm),aO=ss(cc),oO=ss(Qm),cO=ss(pa),uO=ss(Om),Vn=ki;(Jm&&Vn(new Jm(new ArrayBuffer(
189
+ 1)))!=N$||cc&&Vn(new cc)!=C$||Qm&&Vn(Qm.resolve())!=P$||pa&&Vn(new pa)!=x$||Om&&Vn(new Om)!=D$)&&(Vn=function(t){var e=ki(t),n=e==iO?t.constructor:void 0,r=n?ss(n):"";if(r)switch(r){case sO:return N$;case aO:return C$;case oO:return P$;case cO:return x$;case uO:return D$}return e});var lO=Object.prototype,dO=lO.hasOwnProperty;function fO(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&dO.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Xd=Rr.Uint8Array;function hO(t){
190
+ var e=new t.constructor(t.byteLength);return new Xd(e).set(new Xd(t)),e}function pO(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var mO=/\w*$/;function gO(t){var e=new t.constructor(t.source,mO.exec(t));return e.lastIndex=t.lastIndex,e}var I$=Un?Un.prototype:void 0,O$=I$?I$.valueOf:void 0;function yO(t){return O$?Object(O$.call(t)):{}}function vO(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var wO="[object Boolean]",bO="[object Date]",$O="[ob\
191
+ ject Map]",RO="[object Number]",kO="[object RegExp]",TO="[object Set]",EO="[object String]",SO="[object Symbol]",AO="[object ArrayBuffer]",_O="[object DataView]",CO="[object Float32Array]",PO="[object Float64Array]",xO="[object Int8Array]",DO="[object Int16Array]",NO="[object Int32Array]",IO="[object Uint8Array]",OO="[object Uint8ClampedArray]",LO="[object Uint16Array]",MO="[object Uint32Array]";function zO(t,e,n){var r=t.constructor;switch(e){case AO:return hO(t);case wO:case bO:return new r(+t);case _O:
192
+ return pO(t);case CO:case PO:case xO:case DO:case NO:case IO:case OO:case LO:case MO:return vO(t);case $O:return new r;case RO:case EO:return new r(t);case kO:return gO(t);case TO:return new r;case SO:return yO(t)}}function FO(t){return typeof t.constructor=="function"&&!ic(t)?YN(w$(t)):{}}var qO="[object Map]";function GO(t){return nr(t)&&Vn(t)==qO}var L$=Ti&&Ti.isMap,jO=L$?Wd(L$):GO,BO="[object Set]";function UO(t){return nr(t)&&Vn(t)==BO}var M$=Ti&&Ti.isSet,WO=M$?Wd(M$):UO,HO=2,z$="[object Ar\
193
+ guments]",KO="[object Array]",VO="[object Boolean]",XO="[object Date]",YO="[object Error]",F$="[object Function]",JO="[object GeneratorFunction]",QO="[object Map]",ZO="[object Number]",q$="[object Object]",eL="[object RegExp]",tL="[object Set]",nL="[object String]",rL="[object Symbol]",iL="[object WeakMap]",sL="[object ArrayBuffer]",aL="[object DataView]",oL="[object Float32Array]",cL="[object Float64Array]",uL="[object Int8Array]",lL="[object Int16Array]",dL="[object Int32Array]",fL="[object Ui\
194
+ nt8Array]",hL="[object Uint8ClampedArray]",pL="[object Uint16Array]",mL="[object Uint32Array]",ut={};ut[z$]=ut[KO]=ut[sL]=ut[aL]=ut[VO]=ut[XO]=ut[oL]=ut[cL]=ut[uL]=ut[lL]=ut[dL]=ut[QO]=ut[ZO]=ut[q$]=ut[eL]=ut[tL]=ut[nL]=ut[rL]=ut[fL]=ut[hL]=ut[pL]=ut[mL]=!0,ut[YO]=ut[F$]=ut[iL]=!1;function Yd(t,e,n,r,i,s){var a,o=e&HO;if(a!==void 0)return a;if(!Wn(t))return t;var c=He(t);if(c)return a=fO(t),QN(t,a);var u=Vn(t),l=u==F$||u==JO;if(sc(t))return J1(t);if(u==q$||u==z$||l&&!i)return a=l?{}:FO(t),o?nO(t,
195
+ X1(a,t)):eO(t,V1(a,t));if(!ut[u])return i?t:{};a=zO(t,u),s||(s=new Tr);var f=s.get(t);if(f)return f;s.set(t,a),WO(t)?t.forEach(function(m){a.add(Yd(m,e,n,m,t,s))}):jO(t)&&t.forEach(function(m,w){a.set(w,Yd(m,e,n,w,t,s))});var d=Ym,h=c?void 0:d(t);return r$(h||t,function(m,w){h&&(w=m,m=t[w]),Bd(a,w,Yd(m,e,n,w,t,s))}),a}var gL=4;function Bt(t){return Yd(t,gL)}function lc(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}var yL="__lodash_hash_undefined__";function vL(t){
196
196
  return this.__data__.set(t,yL),this}function wL(t){return this.__data__.has(t)}function ma(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ur;++e<n;)this.add(t[e])}ma.prototype.add=ma.prototype.push=vL,ma.prototype.has=wL;function G$(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Zm(t,e){return t.has(e)}var bL=1,$L=2;function j$(t,e,n,r,i,s){var a=n&bL,o=t.length,c=e.length;if(o!=c&&!(a&&c>o))return!1;var u=s.get(t),l=s.get(e);if(u&&l)return u==e&&
197
197
  l==t;var f=-1,d=!0,h=n&$L?new ma:void 0;for(s.set(t,e),s.set(e,t);++f<o;){var m=t[f],w=e[f];if(r)var $=a?r(w,m,f,e,t,s):r(m,w,f,t,e,s);if($!==void 0){if($)continue;d=!1;break}if(h){if(!G$(e,function(b,k){if(!Zm(h,k)&&(m===b||i(m,b,n,r,s)))return h.push(k)})){d=!1;break}}else if(!(m===w||i(m,w,n,r,s))){d=!1;break}}return s.delete(t),s.delete(e),d}function RL(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function eg(t){var e=-1,n=Array(t.size);return t.forEach(function(r){
198
198
  n[++e]=r}),n}var kL=1,TL=2,EL="[object Boolean]",SL="[object Date]",AL="[object Error]",_L="[object Map]",CL="[object Number]",PL="[object RegExp]",xL="[object Set]",DL="[object String]",NL="[object Symbol]",IL="[object ArrayBuffer]",OL="[object DataView]",B$=Un?Un.prototype:void 0,tg=B$?B$.valueOf:void 0;function LL(t,e,n,r,i,s,a){switch(n){case OL:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case IL:return!(t.byteLength!=e.byteLength||!s(new Xd(t),new Xd(
@@ -201,7 +201,7 @@ for(var f=c;f--;){var d=o[f];if(!(a?d in e:FL.call(e,d)))return!1}var h=s.get(t)
201
201
  t),s.delete(e),w}var GL=1,U$="[object Arguments]",W$="[object Array]",Jd="[object Object]",jL=Object.prototype,H$=jL.hasOwnProperty;function BL(t,e,n,r,i,s){var a=He(t),o=He(e),c=a?W$:Vn(t),u=o?W$:Vn(e);c=c==U$?Jd:c,u=u==U$?Jd:u;var l=c==Jd,f=u==Jd,d=c==u;if(d&&sc(t)){if(!sc(e))return!1;a=!0,l=!1}if(d&&!l)return s||(s=new Tr),a||Gm(t)?j$(t,e,n,r,i,s):LL(t,e,c,n,r,i,s);if(!(n&GL)){var h=l&&H$.call(t,"__wrapped__"),m=f&&H$.call(e,"__wrapped__");if(h||m){var w=h?t.value():t,$=m?e.value():e;return s||
202
202
  (s=new Tr),i(w,$,n,r,s)}}return d?(s||(s=new Tr),qL(t,e,n,r,i,s)):!1}function ng(t,e,n,r,i){return t===e?!0:t==null||e==null||!nr(t)&&!nr(e)?t!==t&&e!==e:BL(t,e,n,r,ng,i)}var UL=1,WL=2;function HL(t,e,n,r){var i=n.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var a=n[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<s;){a=n[i];var o=a[0],c=t[o],u=a[1];if(a[2]){if(c===void 0&&!(o in t))return!1}else{var l=new Tr,f;if(!(f===void 0?ng(u,c,UL|WL,r,l):f))return!1}}return!0}function K$(t){
203
203
  return t===t&&!Wn(t)}function KL(t){for(var e=Hn(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,K$(i)]}return e}function V$(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function VL(t){var e=KL(t);return e.length==1&&e[0][2]?V$(e[0][0],e[0][1]):function(n){return n===t||HL(n,t,e)}}function XL(t,e){return t!=null&&e in Object(t)}function X$(t,e,n){e=Vd(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var a=uc(e[r]);if(!(s=t!=null&&n(t,a)))break;t=t[a]}return s||++r!=
204
- i?s:(i=t==null?0:t.length,!!i&&Fm(i)&&jd(a,i)&&(He(t)||Ud(t)))}function YL(t,e){return t!=null&&X$(t,e,XL)}var JL=1,QL=2;function ZL(t,e){return Bm(t)&&K$(e)?V$(uc(t),e):function(n){var r=FO(n,t);return r===void 0&&r===e?YL(n,t):ng(e,r,JL|QL)}}function eM(t){return function(e){return e?.[t]}}function tM(t){return function(e){return Wm(e,t)}}function nM(t){return Bm(t)?eM(uc(t)):tM(t)}function rr(t){return typeof t=="function"?t:t==null?is:typeof t=="object"?He(t)?ZL(t[0],t[1]):VL(t):nM(t)}function rM(t,e,n,r){
204
+ i?s:(i=t==null?0:t.length,!!i&&Fm(i)&&jd(a,i)&&(He(t)||Ud(t)))}function YL(t,e){return t!=null&&X$(t,e,XL)}var JL=1,QL=2;function ZL(t,e){return Bm(t)&&K$(e)?V$(uc(t),e):function(n){var r=F1(n,t);return r===void 0&&r===e?YL(n,t):ng(e,r,JL|QL)}}function eM(t){return function(e){return e?.[t]}}function tM(t){return function(e){return Wm(e,t)}}function nM(t){return Bm(t)?eM(uc(t)):tM(t)}function rr(t){return typeof t=="function"?t:t==null?is:typeof t=="object"?He(t)?ZL(t[0],t[1]):VL(t):nM(t)}function rM(t,e,n,r){
205
205
  for(var i=-1,s=t==null?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function iM(t){return function(e,n,r){for(var i=-1,s=Object(e),a=r(e),o=a.length;o--;){var c=a[++i];if(n(s[c],c,s)===!1)break}return e}}var sM=iM();function aM(t,e){return t&&sM(t,e,Hn)}function oM(t,e){return function(n,r){if(n==null)return n;if(!kr(n))return t(n,r);for(var i=n.length,s=-1,a=Object(n);++s<i&&r(a[s],s,a)!==!1;);return n}}var cs=oM(aM);function cM(t,e,n,r){return cs(t,function(i,s,a){e(r,i,n(i),a)}),r}function uM(t,e){
206
206
  return function(n,r){var i=He(n)?rM:cM,s=e?e():{};return i(n,t,rr(r),s)}}var Y$=Object.prototype,lM=Y$.hasOwnProperty,rg=zm(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&o$(e[0],e[1],i)&&(r=1);++n<r;)for(var s=e[n],a=jm(s),o=-1,c=a.length;++o<c;){var u=a[o],l=t[u];(l===void 0||nc(l,Y$[u])&&!lM.call(t,u))&&(t[u]=s[u])}return t});function J$(t){return nr(t)&&kr(t)}var dM=200;function fM(t,e,n,r){var i=-1,s=s$,a=!0,o=t.length,c=[],u=e.length;if(!o)return c;e.length>=dM&&(s=
207
207
  Zm,a=!1,e=new ma(e));e:for(;++i<o;){var l=t[i],f=l;if(l=l!==0?l:0,a&&f===f){for(var d=u;d--;)if(e[d]===f)continue e;c.push(l)}else s(e,f,r)||c.push(l)}return c}var Qd=zm(function(t,e){return J$(t)?fM(t,Km(e,1,J$,!0)):[]});function ga(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Ut(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:qd(e),b$(t,e<0?0:e,r)):[]}function dc(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:qd(e),e=r-e,b$(t,0,e<0?0:e)):[]}function hM(t){return typeof t==
@@ -211,7 +211,7 @@ $M=bM.hasOwnProperty,RM=uM(function(t,e,n){$M.call(t,n)?t[n].push(e):Mm(t,n,[e])
211
211
  _M(i+n,0)),$n(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Lm(t,e,n)>-1}function Z$(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=0;return Lm(t,e,i)}var CM="[object Map]",PM="[object Set]",xM=Object.prototype,DM=xM.hasOwnProperty;function it(t){if(t==null)return!0;if(kr(t)&&(He(t)||typeof t=="string"||typeof t.splice=="function"||sc(t)||Gm(t)||Ud(t)))return!t.length;var e=Vn(t);if(e==CM||e==PM)return!t.size;if(ic(t))return!y$(t).length;for(var n in t)if(DM.call(t,n))return!1;return!0}var NM="[object R\
212
212
  egExp]";function IM(t){return nr(t)&&ki(t)==NM}var eR=Ti&&Ti.isRegExp,Wr=eR?Wd(eR):IM;function Hr(t){return t===void 0}function OM(t,e){return t<e}function LM(t,e,n){for(var r=-1,i=t.length;++r<i;){var s=t[r],a=e(s);if(a!=null&&(o===void 0?a===a&&!tc(a):n(a,o)))var o=a,c=s}return c}function MM(t){return t&&t.length?LM(t,is,OM):void 0}var zM="Expected a function";function FM(t){if(typeof t!="function")throw new TypeError(zM);return function(){var e=arguments;switch(e.length){case 0:return!t.call(
213
213
  this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function qM(t,e,n,r){if(!Wn(t))return t;e=Vd(e,t);for(var i=-1,s=e.length,a=s-1,o=t;o!=null&&++i<s;){var c=uc(e[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(i!=a){var l=o[c];u=void 0,u===void 0&&(u=Wn(l)?l:jd(e[i+1])?[]:{})}Bd(o,c,u),o=o[c]}return t}function GM(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var a=e[r],o=Wm(t,a);n(
214
- o,a)&&qM(s,Vd(a,t),o)}return s}function ar(t,e){if(t==null)return{};var n=Fd(r1(t),function(r){return[r]});return e=rr(e),GM(t,n,function(r,i){return e(r,i[0])})}function jM(t,e,n,r,i){return i(t,function(s,a,o){n=r?(r=!1,s):e(n,s,a,o)}),n}function hn(t,e,n){var r=He(t)?GO:jM,i=arguments.length<3;return r(t,rr(e),n,i,cs)}function Zd(t,e){var n=He(t)?Vm:Q$;return n(t,FM(rr(e)))}function BM(t,e){var n;return cs(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function tR(t,e,n){var r=He(t)?G$:BM;return r(
214
+ o,a)&&qM(s,Vd(a,t),o)}return s}function ar(t,e){if(t==null)return{};var n=Fd(rO(t),function(r){return[r]});return e=rr(e),GM(t,n,function(r,i){return e(r,i[0])})}function jM(t,e,n,r,i){return i(t,function(s,a,o){n=r?(r=!1,s):e(n,s,a,o)}),n}function hn(t,e,n){var r=He(t)?G1:jM,i=arguments.length<3;return r(t,rr(e),n,i,cs)}function Zd(t,e){var n=He(t)?Vm:Q$;return n(t,FM(rr(e)))}function BM(t,e){var n;return cs(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function tR(t,e,n){var r=He(t)?G$:BM;return r(
215
215
  t,rr(e))}var UM=1/0,WM=pa&&1/eg(new pa([,-0]))[1]==UM?function(t){return new pa(t)}:Nt,HM=200;function nR(t,e,n){var r=-1,i=s$,s=t.length,a=!0,o=[],c=o;if(s>=HM){var u=e?null:WM(t);if(u)return eg(u);a=!1,i=Zm,c=new ma}else c=e?[]:o;e:for(;++r<s;){var l=t[r],f=e?e(l):l;if(l=l!==0?l:0,a&&f===f){for(var d=c.length;d--;)if(c[d]===f)continue e;e&&c.push(f),o.push(l)}else i(c,f,n)||(c!==o&&c.push(f),o.push(l))}return o}function ig(t){return t&&t.length?nR(t):[]}function KM(t,e){return t&&t.length?nR(t,
216
216
  rr(e)):[]}function sg(t){console&&console.error&&console.error(`Error: ${t}`)}function rR(t){console&&console.warn&&console.warn(`Warning: ${t}`)}function iR(t){const e=new Date().getTime(),n=t();return{time:new Date().getTime()-e,value:n}}function sR(t){function e(){}e.prototype=t;const n=new e;function r(){return typeof n.bar}return r(),r(),t}function VM(t){return XM(t)?t.LABEL:t.name}function XM(t){return $n(t.LABEL)&&t.LABEL!==""}class Er{get definition(){return this._definition}set definition(e){
217
217
  this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),Te(this.definition,n=>{n.accept(e)})}}class pn extends Er{constructor(e){super([]),this.idx=1,Dn(this,ar(e,n=>n!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class va extends Er{constructor(e){super(e.definition),this.orgText="",Dn(this,ar(e,n=>n!==void 0))}}class Rn extends Er{constructor(e){super(e.definition),this.ignoreAmbiguities=
@@ -3589,7 +3589,7 @@ class C8{dotpath;unflattenpath;constructor(e){this.dotpath=e||J_.sync("dot"),thi
3589
3589
  exitCode}): "${i.stderr}"`,r=i.stdout)}return r&&(e=r.replaceAll(/\t\[/g," [").replaceAll(/\t/g," ")),e})}async layoutJson(e){return await lw(async()=>{const n=un.getChild("graphviz-binary");let r;try{const i=await od(this.dotpath,["-Tjson","-y"],{timeout:1e4,stdin:{string:e}});r=i.stdout,Pt(i.stderr)||n.warn`Command ${i.command} has stderr:\n${i.stderr}`}catch(i){if(n.error("FAILED GraphvizBinaryAdapter.layoutJson",{error:i}),n.warn(`FAILED DOT:
3590
3590
  ${e}`),i instanceof Zs&&!Pt(i.stdout))n.warn(`Command: '${i.command}' returned result but also failed (exitcode ${i.exitCode}): "${i.stderr}"`),r=i.stdout;else throw i}return r})}async acyclic(e){return Promise.reject(new Error("Method not implemented."))}async svg(e){return await lw(async()=>{const n=un.getChild("graphviz-binary");let r;try{const i=await od(this.dotpath,["-Tsvg","-y"],{timeout:1e4,stdin:{string:e}});r=i.stdout,Pt(i.stderr)||n.warn`Command ${i.command} has stderr:\n${i.stderr}`}catch(i){
3591
3591
  if(n.error("FAILED GraphvizBinaryAdapter.svg",{error:i}),n.warn(`FAILED DOT:
3592
- ${e}`),i instanceof Zs&&!Pt(i.stdout))n.warn`Command: '${i.command}' returned result but also failed (exitcode ${i.exitCode}): "${i.stderr}"`,r=i.stdout;else throw i}return r})}}const P8="likec4",Q_="1.25.0",dw=un.getChild("cli");Tt.bold(Tt.bgRed(Tt.white("ERROR"))),Tt.bold(Tt.yellow("WARN")),Tt.bold(Tt.green("INFO"));function Z_(t){const e=un.getChild(t);return{info(n){e.info(n)},warn(n){if(n instanceof Error){e.warn(`${Tt.red(n.name+" "+n.message)}`,{msg:n});return}if(typeof n=="string"){e.warn(
3592
+ ${e}`),i instanceof Zs&&!Pt(i.stdout))n.warn`Command: '${i.command}' returned result but also failed (exitcode ${i.exitCode}): "${i.stderr}"`,r=i.stdout;else throw i}return r})}}const P8="likec4",Q_="1.25.1",dw=un.getChild("cli");Tt.bold(Tt.bgRed(Tt.white("ERROR"))),Tt.bold(Tt.yellow("WARN")),Tt.bold(Tt.green("INFO"));function Z_(t){const e=un.getChild(t);return{info(n){e.info(n)},warn(n){if(n instanceof Error){e.warn(`${Tt.red(n.name+" "+n.message)}`,{msg:n});return}if(typeof n=="string"){e.warn(
3593
3593
  n);return}e.warn`${n}`},warnOnce(n){e.warn(n)},error(n,r){let i=r?.error??n;if(i instanceof Error){if(n===i){e.error(`${Tt.red(i.name+" "+i.message)}`,{error:i});return}e.error(`${n}`,{error:i});return}if(typeof n=="string"){e.error(`${Tt.red(n)}`);return}e.error`${n}`},clearScreen:function(n){},hasErrorLogged:function(n){throw new Error("Function not implemented.")},hasWarned:!1}}const fw=()=>{},x8={info:fw,warn:fw,error:fw},D8=1e6;function eC(t){const[e,n]=Dw(t),r=e*1e3+n/D8;return{ms:r,pretty:_p(
3594
3594
  r)}}function N8(t){const e=Dw();return{stopAndLog(n="done in "){n=Tt.green(`${n}${eC(e).pretty}`),(t||dw).info(n)}}}function I8(t,e){console.log(FC(t,{padding:1,margin:1,dimBorder:!0,...e}))}class O8{constructor(e){this.services=e}isInitialized=!1;async initWorkspace(e){if(this.isInitialized)throw new Error("Workspace already initialized");const n=this.services.logger,r=this.services.shared.workspace.WorkspaceManager;n.info(`${Tt.dim("workspace:")} ${e.uri}`),r.initialize({capabilities:{},processId:null,
3595
3595
  rootUri:null,workspaceFolders:[e]}),await r.initializeWorkspace([e])}async init(){if(this.isInitialized)throw new Error("Workspace already initialized");this.isInitialized=!0;const e=this.services.logger,n=this.services.likec4.ModelBuilder,r=this.services.shared.workspace.LangiumDocuments,i=this.services.shared.workspace.DocumentBuilder,s=r.all.toArray(),a=s.filter(c=>!Kl(c.uri));if(a.length===0)throw e.error("no LikeC4 sources found"),new Error("no LikeC4 sources found");e.info(`${Tt.dim("works\
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "likec4",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -70,11 +70,11 @@
70
70
  "rollup": "4.34.6",
71
71
  "type-fest": "4.34.1",
72
72
  "vite": "5.4.14",
73
- "@likec4/core": "~1.25.0"
73
+ "@likec4/core": "~1.25.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@dagrejs/dagre": "1.1.4",
77
- "@fontsource/ibm-plex-sans": "^5.1.1",
77
+ "@fontsource/ibm-plex-sans": "^5.2.5",
78
78
  "@mantine/core": "7.17.1",
79
79
  "@mantine/hooks": "7.17.1",
80
80
  "@mantine/vanilla-extract": "7.17.1",
@@ -84,10 +84,10 @@
84
84
  "@tanstack/react-router": "1.97.17",
85
85
  "@tanstack/router-cli": "1.97.17",
86
86
  "@tanstack/router-vite-plugin": "1.97.17",
87
- "@types/node": "^20.17.17",
87
+ "@types/node": "^20.17.23",
88
88
  "@types/prop-types": "^15.7.14",
89
- "@types/react": "~19.0.8",
90
- "@types/react-dom": "~19.0.3",
89
+ "@types/react": "~19.0.10",
90
+ "@types/react-dom": "~19.0.4",
91
91
  "@types/semver": "^7.5.8",
92
92
  "@types/yargs": "^17.0.33",
93
93
  "@vanilla-extract/css": "^1.17.1",
@@ -107,7 +107,7 @@
107
107
  "esm-env": "^1.2.2",
108
108
  "fast-equals": "^5.2.2",
109
109
  "fdir": "^6.4.3",
110
- "framer-motion": "^12.4.7",
110
+ "framer-motion": "^12.4.10",
111
111
  "get-port": "^7.1.0",
112
112
  "glob": "^11.0.1",
113
113
  "html-to-image": "^1.11.13",
@@ -117,7 +117,7 @@
117
117
  "merge-error-cause": "^5.0.0",
118
118
  "mkdirp": "^3.0.1",
119
119
  "nano-spawn": "^0.2.0",
120
- "nanostores": "0.11.3",
120
+ "nanostores": "0.11.4",
121
121
  "npm-run-all2": "^7.0.1",
122
122
  "p-limit": "^6.2.0",
123
123
  "package-up": "^5.0.0",
@@ -128,35 +128,35 @@
128
128
  "react-error-boundary": "^5.0.0",
129
129
  "react-resizable-panels": "^2.1.7",
130
130
  "react-shadow": "^20.6.0",
131
- "remeda": "^2.20.2",
131
+ "remeda": "^2.21.0",
132
132
  "semver": "^7.7.1",
133
- "std-env": "^3.8.0",
133
+ "std-env": "^3.8.1",
134
134
  "strip-indent": "^4.0.0",
135
135
  "terser": "^5.39.0",
136
136
  "tinyrainbow": "^2.0.0",
137
137
  "tsx": "~4.19.3",
138
- "turbo": "^2.4.2",
139
- "typescript": "5.7.3",
138
+ "turbo": "^2.4.4",
139
+ "typescript": "5.8.2",
140
140
  "ufo": "^1.5.4",
141
141
  "unbuild": "^3.3.1",
142
142
  "vite-plugin-css-injected-by-js": "^3.5.2",
143
143
  "vite-plugin-dts": "^4.5.0",
144
144
  "vite-plugin-shadow-style": "^1.2.0",
145
145
  "vite-plugin-singlefile": "^2.1.0",
146
- "vitest": "^3.0.6",
146
+ "vitest": "^3.0.7",
147
147
  "vscode-jsonrpc": "8.2.0",
148
148
  "vscode-languageserver": "9.0.1",
149
149
  "vscode-languageserver-types": "3.17.5",
150
150
  "vscode-uri": "3.1.0",
151
151
  "which": "^5.0.0",
152
152
  "yargs": "17.7.2",
153
- "@likec4/generators": "1.25.0",
154
- "@likec4/icons": "1.25.0",
155
- "@likec4/language-server": "1.25.0",
156
- "@likec4/log": "1.25.0",
157
- "@likec4/layouts": "1.25.0",
158
- "@likec4/diagram": "1.25.0",
159
- "@likec4/tsconfig": "1.25.0"
153
+ "@likec4/icons": "1.25.1",
154
+ "@likec4/diagram": "1.25.1",
155
+ "@likec4/language-server": "1.25.1",
156
+ "@likec4/layouts": "1.25.1",
157
+ "@likec4/log": "1.25.1",
158
+ "@likec4/tsconfig": "1.25.1",
159
+ "@likec4/generators": "1.25.1"
160
160
  },
161
161
  "scripts": {
162
162
  "turbo-build": "turbo run build --log-prefix=none --log-order=grouped",
package/react/index.d.ts CHANGED
@@ -50,7 +50,7 @@ declare type AnyStore<Value = any> = {
50
50
  * @param initialValue Initial value of the store.
51
51
  * @returns The store object with methods to subscribe.
52
52
  */
53
- declare function atom<Value, StoreExt = {}>(
53
+ declare function atom<Value, StoreExt = object>(
54
54
  ...args: undefined extends Value ? [] | [Value] : [Value]
55
55
  ): PreinitializedWritableAtom<Value> & StoreExt
56
56
 
@@ -63,15 +63,15 @@ declare type ChangeEvent = {
63
63
  declare type ColorScheme = 'light' | 'dark';
64
64
 
65
65
  declare interface Computed {
66
- <Value extends any, OriginStore extends Store>(
66
+ <Value, OriginStore extends Store>(
67
67
  stores: OriginStore,
68
68
  cb: (value: StoreValue<OriginStore>) => Task<Value>
69
69
  ): ReadableAtom<undefined | Value>
70
- <Value extends any, OriginStores extends AnyStore[]>(
70
+ <Value, OriginStores extends AnyStore[]>(
71
71
  stores: [...OriginStores],
72
72
  cb: (...values: StoreValues<OriginStores>) => Task<Value>
73
73
  ): ReadableAtom<undefined | Value>
74
- <Value extends any, OriginStore extends Store>(
74
+ <Value, OriginStore extends Store>(
75
75
  stores: OriginStore,
76
76
  cb: (value: StoreValue<OriginStore>) => Value
77
77
  ): ReadableAtom<Value>
@@ -101,7 +101,7 @@ declare interface Computed {
101
101
  * }))
102
102
  * ```
103
103
  */
104
- <Value extends any, OriginStores extends AnyStore[]>(
104
+ <Value, OriginStores extends AnyStore[]>(
105
105
  stores: [...OriginStores],
106
106
  cb: (...values: StoreValues<OriginStores>) => Task<Value> | Value
107
107
  ): ReadableAtom<Value>
@@ -489,7 +489,7 @@ export declare interface LikeC4ViewProps<ViewId = string, Tag = string, Kind = s
489
489
  * @param init Initialize store and return store destructor.
490
490
  * @returns The store object with methods to subscribe.
491
491
  */
492
- declare function map<Value extends object, StoreExt extends object = {}>(
492
+ declare function map<Value extends object, StoreExt extends object = object>(
493
493
  value?: Value
494
494
  ): PreinitializedMapStore<Value> & StoreExt
495
495
 
@@ -621,8 +621,7 @@ extends MapStore<Value> {
621
621
  readonly value: Value
622
622
  }
623
623
 
624
- declare interface PreinitializedWritableAtom<Value extends any>
625
- extends WritableAtom<Value> {
624
+ declare interface PreinitializedWritableAtom<Value> extends WritableAtom<Value> {
626
625
  readonly value: Value
627
626
  }
628
627