@next-bricks/ai-portal 0.63.1 → 0.63.3
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/bricks.json +48 -48
- package/dist/chunks/1447.1763ddd6.js +2 -0
- package/dist/chunks/1447.1763ddd6.js.map +1 -0
- package/dist/chunks/2028.81962baa.js +3 -0
- package/dist/chunks/2028.81962baa.js.map +1 -0
- package/dist/chunks/3363.d64d8e2a.js +2 -0
- package/dist/chunks/3363.d64d8e2a.js.map +1 -0
- package/dist/chunks/4208.f9256bec.js +2 -0
- package/dist/chunks/4208.f9256bec.js.map +1 -0
- package/dist/chunks/4820.16e00935.js +2 -0
- package/dist/chunks/4820.16e00935.js.map +1 -0
- package/dist/chunks/7059.bdb0d78e.js +3 -0
- package/dist/chunks/7059.bdb0d78e.js.map +1 -0
- package/dist/chunks/778.85eedde5.js +2 -0
- package/dist/chunks/778.85eedde5.js.map +1 -0
- package/dist/chunks/9273.fbb69eb2.js +2 -0
- package/dist/chunks/{9273.3d1a73c8.js.map → 9273.fbb69eb2.js.map} +1 -1
- package/dist/chunks/chat-panel.9a58a43d.js +2 -0
- package/dist/chunks/chat-panel.9a58a43d.js.map +1 -0
- package/dist/chunks/chat-stream.c13cfc3f.js +2 -0
- package/dist/chunks/chat-stream.c13cfc3f.js.map +1 -0
- package/dist/chunks/icon-button.545ffb24.js +2 -0
- package/dist/chunks/icon-button.545ffb24.js.map +1 -0
- package/dist/chunks/main.9a0a6c28.js +2 -0
- package/dist/chunks/{main.dd3b9485.js.map → main.9a0a6c28.js.map} +1 -1
- package/dist/examples.json +20 -20
- package/dist/index.f1e343af.js +2 -0
- package/dist/{index.8690de83.js.map → index.f1e343af.js.map} +1 -1
- package/dist/manifest.json +443 -412
- package/dist/types.json +3083 -2357
- package/dist-types/chat-panel/index.d.ts +7 -1
- package/dist-types/elevo-sidebar/constants.d.ts +1 -1
- package/dist-types/elevo-sidebar/i18n.d.ts +2 -2
- package/dist-types/elevo-sidebar/useNavLinkActive.d.ts +1 -0
- package/dist-types/icon-button/index.d.ts +2 -0
- package/dist-types/shared/FilePreview/FilePreview.d.ts +2 -1
- package/dist-types/shared/FilePreview/ImagesPreview.d.ts +2 -1
- package/package.json +2 -2
- package/dist/chunks/4820.15145a03.js +0 -2
- package/dist/chunks/4820.15145a03.js.map +0 -1
- package/dist/chunks/6665.b5b39ef8.js +0 -2
- package/dist/chunks/6665.b5b39ef8.js.map +0 -1
- package/dist/chunks/689.11701509.js +0 -3
- package/dist/chunks/689.11701509.js.map +0 -1
- package/dist/chunks/7059.3f1ffc70.js +0 -3
- package/dist/chunks/7059.3f1ffc70.js.map +0 -1
- package/dist/chunks/7609.13366989.js +0 -2
- package/dist/chunks/7609.13366989.js.map +0 -1
- package/dist/chunks/778.b1fd7b4c.js +0 -2
- package/dist/chunks/778.b1fd7b4c.js.map +0 -1
- package/dist/chunks/8730.509db084.js +0 -2
- package/dist/chunks/8730.509db084.js.map +0 -1
- package/dist/chunks/9273.3d1a73c8.js +0 -2
- package/dist/chunks/chat-panel.a64e0e43.js +0 -2
- package/dist/chunks/chat-panel.a64e0e43.js.map +0 -1
- package/dist/chunks/chat-stream.a35fa156.js +0 -2
- package/dist/chunks/chat-stream.a35fa156.js.map +0 -1
- package/dist/chunks/icon-button.66d6d83a.js +0 -2
- package/dist/chunks/icon-button.66d6d83a.js.map +0 -1
- package/dist/chunks/main.dd3b9485.js +0 -2
- package/dist/index.8690de83.js +0 -2
- /package/dist/chunks/{689.11701509.js.LICENSE.txt → 2028.81962baa.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7059.3f1ffc70.js.LICENSE.txt → 7059.bdb0d78e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[3363],{3045:(e,n,t)=>{"use strict";var r=t(54389).longestPath,o=t(37885),s=t(87520);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:!function(e){s(e)}(e);break;case"tight-tree":!function(e){r(e),o(e)}(e);break;case"longest-path":i(e)}};var i=r},5536:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var r=t(12559);function o(e,n,t){return t((0,r.A)(e,n))}},6883:(e,n,t)=>{let r=t(36856);function o(e,n,t,o,s,i){let a={width:0,height:0,rank:i,borderType:n},d=s[n][i-1],c=r.addDummyNode(e,"border",a,t);s[n][i]=c,e.setParent(c,o),d&&e.setEdge(d,c,{weight:1})}e.exports=function(e){e.children().forEach((function n(t){let r=e.children(t),s=e.node(t);if(r.length&&r.forEach(n),s.hasOwnProperty("minRank")){s.borderLeft=[],s.borderRight=[];for(let n=s.minRank,r=s.maxRank+1;n<r;++n)o(e,"borderLeft","_bl",t,s,n),o(e,"borderRight","_br",t,s,n)}}))}},8121:(e,n,t)=>{"use strict";let r=t(34678).Graph,o=t(36856);function s(e,n){let t={};return n.length&&n.reduce((function(n,r){let o=0,s=0,i=n.length,d=r[r.length-1];return r.forEach(((n,c)=>{let u=function(e,n){if(e.node(n).dummy)return e.predecessors(n).find((n=>e.node(n).dummy))}(e,n),h=u?e.node(u).order:i;(u||n===d)&&(r.slice(s,c+1).forEach((n=>{e.predecessors(n).forEach((r=>{let s=e.node(r),i=s.order;!(i<o||h<i)||s.dummy&&e.node(n).dummy||a(t,r,n)}))})),s=c+1,o=h)})),r})),t}function i(e,n){let t={};function r(n,r,s,i,d){let c;o.range(r,s).forEach((r=>{c=n[r],e.node(c).dummy&&e.predecessors(c).forEach((n=>{let r=e.node(n);r.dummy&&(r.order<i||r.order>d)&&a(t,n,c)}))}))}return n.length&&n.reduce((function(n,t){let o,s=-1,i=0;return t.forEach(((a,d)=>{if("border"===e.node(a).dummy){let n=e.predecessors(a);n.length&&(o=e.node(n[0]).order,r(t,i,d,s,o),i=d,s=o)}r(t,i,t.length,o,n.length)})),t})),t}function a(e,n,t){if(n>t){let e=n;n=t,t=e}let r=e[n];r||(e[n]=r={}),r[t]=!0}function d(e,n,t){if(n>t){let e=n;n=t,t=e}return!!e[n]&&e[n].hasOwnProperty(t)}function c(e,n,t,r){let o={},s={},i={};return n.forEach((e=>{e.forEach(((e,n)=>{o[e]=e,s[e]=e,i[e]=n}))})),n.forEach((e=>{let n=-1;e.forEach((e=>{let a=r(e);if(a.length){a=a.sort(((e,n)=>i[e]-i[n]));let r=(a.length-1)/2;for(let c=Math.floor(r),u=Math.ceil(r);c<=u;++c){let r=a[c];s[e]===e&&n<i[r]&&!d(t,e,r)&&(s[r]=e,s[e]=o[e]=o[r],n=i[r])}}}))})),{root:o,align:s}}function u(e,n,t,o,s){let i={},a=function(e,n,t,o){let s=new r,i=e.graph(),a=function(e,n,t){return(r,o,s)=>{let i,a=r.node(o),d=r.node(s),c=0;if(c+=a.width/2,a.hasOwnProperty("labelpos"))switch(a.labelpos.toLowerCase()){case"l":i=-a.width/2;break;case"r":i=a.width/2}if(i&&(c+=t?i:-i),i=0,c+=(a.dummy?n:e)/2,c+=(d.dummy?n:e)/2,c+=d.width/2,d.hasOwnProperty("labelpos"))switch(d.labelpos.toLowerCase()){case"l":i=d.width/2;break;case"r":i=-d.width/2}return i&&(c+=t?i:-i),i=0,c}}(i.nodesep,i.edgesep,o);return n.forEach((n=>{let r;n.forEach((n=>{let o=t[n];if(s.setNode(o),r){var i=t[r],d=s.edge(i,o);s.setEdge(i,o,Math.max(a(e,n,r),d||0))}r=n}))})),s}(e,n,t,s),d=s?"borderLeft":"borderRight";function c(e,n){let t=a.nodes(),r=t.pop(),o={};for(;r;)o[r]?e(r):(o[r]=!0,t.push(r),t=t.concat(n(r))),r=t.pop()}return c((function(e){i[e]=a.inEdges(e).reduce(((e,n)=>Math.max(e,i[n.v]+a.edge(n))),0)}),a.predecessors.bind(a)),c((function(n){let t=a.outEdges(n).reduce(((e,n)=>Math.min(e,i[n.w]-a.edge(n))),Number.POSITIVE_INFINITY),r=e.node(n);t!==Number.POSITIVE_INFINITY&&r.borderType!==d&&(i[n]=Math.max(i[n],t))}),a.successors.bind(a)),Object.keys(o).forEach((e=>i[e]=i[t[e]])),i}function h(e,n){return Object.values(n).reduce(((n,t)=>{let r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;Object.entries(t).forEach((([n,t])=>{let s=function(e,n){return e.node(n).width}(e,n)/2;r=Math.max(t+s,r),o=Math.min(t-s,o)}));const s=r-o;return s<n[0]&&(n=[s,t]),n}),[Number.POSITIVE_INFINITY,null])[1]}function l(e,n){let t=Object.values(n),r=Math.min(...t),s=Math.max(...t);["u","d"].forEach((t=>{["l","r"].forEach((i=>{let a=t+i,d=e[a];if(d===n)return;let c=Object.values(d),u=r-Math.min(...c);"l"!==i&&(u=s-Math.max(...c)),u&&(e[a]=o.mapValues(d,(e=>e+u)))}))}))}function p(e,n){return o.mapValues(e.ul,((t,r)=>{if(n)return e[n.toLowerCase()][r];{let n=Object.values(e).map((e=>e[r])).sort(((e,n)=>e-n));return(n[1]+n[2])/2}}))}e.exports={positionX:function(e){let n,t=o.buildLayerMatrix(e),r=Object.assign(s(e,t),i(e,t)),a={};["u","d"].forEach((s=>{n="u"===s?t:Object.values(t).reverse(),["l","r"].forEach((t=>{"r"===t&&(n=n.map((e=>Object.values(e).reverse())));let i=("u"===s?e.predecessors:e.successors).bind(e),d=c(0,n,r,i),h=u(e,n,d.root,d.align,"r"===t);"r"===t&&(h=o.mapValues(h,(e=>-e))),a[s+t]=h}))}));let d=h(e,a);return l(a,d),p(a,e.graph().align)},findType1Conflicts:s,findType2Conflicts:i,addConflict:a,hasConflict:d,verticalAlignment:c,horizontalCompaction:u,alignCoordinates:l,findSmallestWidthAlignment:h,balance:p}},11665:(e,n,t)=>{let r=t(36856),o=t(34678).Graph;e.exports={debugOrdering:function(e){let n=r.buildLayerMatrix(e),t=new o({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach((n=>{t.setNode(n,{label:n}),t.setParent(n,"layer"+e.node(n).rank)})),e.edges().forEach((e=>t.setEdge(e.v,e.w,{},e.name))),n.forEach(((e,n)=>{let r="layer"+n;t.setNode(r,{rank:"same"}),e.reduce(((e,n)=>(t.setEdge(e,n,{style:"invis"}),n)))})),t}}},11983:e=>{function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function t(e,n){if("_next"!==e&&"_prev"!==e)return n}e.exports=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return n(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,t)),r=r._prev;return"["+e.join(", ")+"]"}}},12488:e=>{e.exports=function(e){let n=function(e){let n={},t=0;return e.children().forEach((function r(o){let s=t;e.children(o).forEach(r),n[o]={low:s,lim:t++}})),n}(e);e.graph().dummyChains.forEach((t=>{let r=e.node(t),o=r.edgeObj,s=function(e,n,t,r){let o,s,i=[],a=[],d=Math.min(n[t].low,n[r].low),c=Math.max(n[t].lim,n[r].lim);o=t;do{o=e.parent(o),i.push(o)}while(o&&(n[o].low>d||c>n[o].lim));for(s=o,o=r;(o=e.parent(o))!==s;)a.push(o);return{path:i.concat(a.reverse()),lca:s}}(e,n,o.v,o.w),i=s.path,a=s.lca,d=0,c=i[d],u=!0;for(;t!==o.w;){if(r=e.node(t),u){for(;(c=i[d])!==a&&e.node(c).maxRank<r.rank;)d++;c===a&&(u=!1)}if(!u){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=r.rank;)d++;c=i[d]}e.setParent(t,c),t=e.successors(t)[0]}}))}},17508:e=>{e.exports=function(e,n,t){let r,o={};t.forEach((t=>{let s,i,a=e.parent(t);for(;a;){if(s=e.parent(a),s?(i=o[s],o[s]=a):(i=r,r=a),i&&i!==a)return void n.setEdge(i,a);a=s}}))}},19763:(e,n,t)=>{var r=t(48114),o=t(21997);e.exports=function(e,n){var t,s=new r,i={},a=new o;function d(e){var r=e.v===t?e.w:e.v,o=a.priority(r);if(void 0!==o){var s=n(e);s<o&&(i[r]=t,a.decrease(r,s))}}if(0===e.nodeCount())return s;e.nodes().forEach((function(e){a.add(e,Number.POSITIVE_INFINITY),s.setNode(e)})),a.decrease(e.nodes()[0],0);for(var c=!1;a.size()>0;){if(t=a.removeMin(),i.hasOwnProperty(t))s.setEdge(t,i[t]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(t).forEach(d)}return s}},20062:e=>{"use strict";e.exports=function(e,n){return n||(n={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]|(%20)/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},21997:e=>{e.exports=class{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map((function(e){return e.key}))}has(e){return this._keyIndices.hasOwnProperty(e)}priority(e){var n=this._keyIndices[e];if(void 0!==n)return this._arr[n].priority}min(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key}add(e,n){var t=this._keyIndices;if(e=String(e),!t.hasOwnProperty(e)){var r=this._arr,o=r.length;return t[e]=o,r.push({key:e,priority:n}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,n){var t=this._keyIndices[e];if(n>this._arr[t].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[t].priority+" New: "+n);this._arr[t].priority=n,this._decrease(t)}_heapify(e){var n=this._arr,t=2*e,r=t+1,o=e;t<n.length&&(o=n[t].priority<n[o].priority?t:o,r<n.length&&(o=n[r].priority<n[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))}_decrease(e){for(var n,t=this._arr,r=t[e].priority;0!==e&&!(t[n=e>>1].priority<r);)this._swap(e,n),e=n}_swap(e,n){var t=this._arr,r=this._keyIndices,o=t[e],s=t[n];t[e]=s,t[n]=o,r[s.key]=e,r[o.key]=n}}},24600:(e,n,t)=>{let r=t(34678).Graph,o=t(36856);e.exports=function(e,n,t){let s=function(e){for(var n;e.hasNode(n=o.uniqueId("_root")););return n}(e),i=new r({compound:!0}).setGraph({root:s}).setDefaultNodeLabel((n=>e.node(n)));return e.nodes().forEach((r=>{let o=e.node(r),a=e.parent(r);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(i.setNode(r),i.setParent(r,a||s),e[t](r).forEach((n=>{let t=n.v===r?n.w:n.v,o=i.edge(t,r),s=void 0!==o?o.weight:0;i.setEdge(t,r,{weight:e.edge(n).weight+s})})),o.hasOwnProperty("minRank")&&i.setNode(r,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))})),i}},28870:(e,n,t)=>{"use strict";let r=t(68642),o=t(71293),s=t(3045),i=t(36856).normalizeRanks,a=t(12488),d=t(36856).removeEmptyRanks,c=t(59885),u=t(6883),h=t(45574),l=t(75577),p=t(98924),f=t(36856),g=t(34678).Graph;e.exports=function(e,n){let t=n&&n.debugTiming?f.time:f.notime;t("layout",(()=>{let N=t(" buildLayoutGraph",(()=>function(e){let n=new g({multigraph:!0,compound:!0}),t=k(e.graph());return n.setGraph(Object.assign({},v,P(t,m),f.pick(t,y))),e.nodes().forEach((t=>{const r=P(k(e.node(t)),b);Object.keys(w).forEach((e=>{void 0===r[e]&&(r[e]=w[e])})),n.setNode(t,r),n.setParent(t,e.parent(t))})),e.edges().forEach((t=>{let r=k(e.edge(t));n.setEdge(t,Object.assign({},E,P(r,x),f.pick(r,_)))})),n}(e)));t(" runLayout",(()=>function(e,n,t){n(" makeSpaceForEdgeLabels",(()=>function(e){let n=e.graph();n.ranksep/=2,e.edges().forEach((t=>{let r=e.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e))),n(" removeSelfEdges",(()=>function(e){e.edges().forEach((n=>{if(n.v===n.w){var t=e.node(n.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}}))}(e))),n(" acyclic",(()=>r.run(e))),n(" nestingGraph.run",(()=>c.run(e))),n(" rank",(()=>s(f.asNonCompoundGraph(e)))),n(" injectEdgeLabelProxies",(()=>function(e){e.edges().forEach((n=>{let t=e.edge(n);if(t.width&&t.height){let t=e.node(n.v),r={rank:(e.node(n.w).rank-t.rank)/2+t.rank,e:n};f.addDummyNode(e,"edge-proxy",r,"_ep")}}))}(e))),n(" removeEmptyRanks",(()=>d(e))),n(" nestingGraph.cleanup",(()=>c.cleanup(e))),n(" normalizeRanks",(()=>i(e))),n(" assignRankMinMax",(()=>function(e){let n=0;e.nodes().forEach((t=>{let r=e.node(t);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,n=Math.max(n,r.maxRank))})),e.graph().maxRank=n}(e))),n(" removeEdgeLabelProxies",(()=>function(e){e.nodes().forEach((n=>{let t=e.node(n);"edge-proxy"===t.dummy&&(e.edge(t.e).labelRank=t.rank,e.removeNode(n))}))}(e))),n(" normalize.run",(()=>o.run(e))),n(" parentDummyChains",(()=>a(e))),n(" addBorderSegments",(()=>u(e))),n(" order",(()=>l(e,t))),n(" insertSelfEdges",(()=>function(e){f.buildLayerMatrix(e).forEach((n=>{var t=0;n.forEach(((n,r)=>{var o=e.node(n);o.order=r+t,(o.selfEdges||[]).forEach((n=>{f.addDummyNode(e,"selfedge",{width:n.label.width,height:n.label.height,rank:o.rank,order:r+ ++t,e:n.e,label:n.label},"_se")})),delete o.selfEdges}))}))}(e))),n(" adjustCoordinateSystem",(()=>h.adjust(e))),n(" position",(()=>p(e))),n(" positionSelfEdges",(()=>function(e){e.nodes().forEach((n=>{var t=e.node(n);if("selfedge"===t.dummy){var r=e.node(t.e.v),o=r.x+r.width/2,s=r.y,i=t.x-o,a=r.height/2;e.setEdge(t.e,t.label),e.removeNode(n),t.label.points=[{x:o+2*i/3,y:s-a},{x:o+5*i/6,y:s-a},{x:o+i,y:s},{x:o+5*i/6,y:s+a},{x:o+2*i/3,y:s+a}],t.label.x=t.x,t.label.y=t.y}}))}(e))),n(" removeBorderNodes",(()=>function(e){e.nodes().forEach((n=>{if(e.children(n).length){let t=e.node(n),r=e.node(t.borderTop),o=e.node(t.borderBottom),s=e.node(t.borderLeft[t.borderLeft.length-1]),i=e.node(t.borderRight[t.borderRight.length-1]);t.width=Math.abs(i.x-s.x),t.height=Math.abs(o.y-r.y),t.x=s.x+t.width/2,t.y=r.y+t.height/2}})),e.nodes().forEach((n=>{"border"===e.node(n).dummy&&e.removeNode(n)}))}(e))),n(" normalize.undo",(()=>o.undo(e))),n(" fixupEdgeLabelCoords",(()=>function(e){e.edges().forEach((n=>{let t=e.edge(n);if(t.hasOwnProperty("x"))switch("l"!==t.labelpos&&"r"!==t.labelpos||(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset}}))}(e))),n(" undoCoordinateSystem",(()=>h.undo(e))),n(" translateGraph",(()=>function(e){let n=Number.POSITIVE_INFINITY,t=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),i=s.marginx||0,a=s.marginy||0;function d(e){let s=e.x,i=e.y,a=e.width,d=e.height;n=Math.min(n,s-a/2),t=Math.max(t,s+a/2),r=Math.min(r,i-d/2),o=Math.max(o,i+d/2)}e.nodes().forEach((n=>d(e.node(n)))),e.edges().forEach((n=>{let t=e.edge(n);t.hasOwnProperty("x")&&d(t)})),n-=i,r-=a,e.nodes().forEach((t=>{let o=e.node(t);o.x-=n,o.y-=r})),e.edges().forEach((t=>{let o=e.edge(t);o.points.forEach((e=>{e.x-=n,e.y-=r})),o.hasOwnProperty("x")&&(o.x-=n),o.hasOwnProperty("y")&&(o.y-=r)})),s.width=t-n+i,s.height=o-r+a}(e))),n(" assignNodeIntersects",(()=>function(e){e.edges().forEach((n=>{let t,r,o=e.edge(n),s=e.node(n.v),i=e.node(n.w);o.points?(t=o.points[0],r=o.points[o.points.length-1]):(o.points=[],t=i,r=s),o.points.unshift(f.intersectRect(s,t)),o.points.push(f.intersectRect(i,r))}))}(e))),n(" reversePoints",(()=>function(e){e.edges().forEach((n=>{let t=e.edge(n);t.reversed&&t.points.reverse()}))}(e))),n(" acyclic.undo",(()=>r.undo(e)))}(N,t,n))),t(" updateInputGraph",(()=>function(e,n){e.nodes().forEach((t=>{let r=e.node(t),o=n.node(t);r&&(r.x=o.x,r.y=o.y,r.rank=o.rank,n.children(t).length&&(r.width=o.width,r.height=o.height))})),e.edges().forEach((t=>{let r=e.edge(t),o=n.edge(t);r.points=o.points,o.hasOwnProperty("x")&&(r.x=o.x,r.y=o.y)})),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(e,N)))}))};let m=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_=["labelpos"];function P(e,n){return f.mapValues(f.pick(e,n),Number)}function k(e){var n={};return e&&Object.entries(e).forEach((([e,t])=>{"string"==typeof e&&(e=e.toLowerCase()),n[e]=t})),n}},31158:(e,n,t)=>{var r=t(51964);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},31493:e=>{"use strict";e.exports='/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-empty-object-type */\n\nexport interface ViewProps {\n title: string;\n}\n\nexport interface BaseProps {\n key?: string | number;\n}\n\nexport interface TableProps<T extends object> extends BaseProps {\n dataSource: {\n list: T[];\n page?: number;\n pageSize?: number;\n total?: number;\n };\n columns: TableColumn<T>[];\n rowKey: string;\n rowSelection?: boolean;\n sort?: TableSort | null;\n pagination?: boolean;\n onSelect?: (event: CustomEvent<T[]>) => void;\n onPaginate?: (event: CustomEvent<{ page: number; pageSize: number }>) => void;\n onSort?: (event: CustomEvent<TableSort | null>) => void;\n}\n\nexport interface ListProps extends BaseProps {\n dataSource: object[];\n fields?: {\n title?: string;\n icon?: string;\n url?: string;\n };\n variant?: "default" | "navigation" | "ranking";\n}\n\nexport interface DescriptionsProps<T extends object> extends BaseProps {\n title?: string;\n dataSource?: T;\n list: Array<\n | {\n label: string;\n text: string;\n }\n | {\n label: string;\n /** 数据字段,多级字段使用点号分隔 */\n field: string;\n }\n | {\n label: string;\n render: (record: T) => any;\n }\n >;\n}\n\nexport interface ButtonProps extends BaseProps {\n type?: "default" | "primary";\n icon?: IconProps;\n onClick?: (e: Event) => void;\n}\n\nexport interface SearchProps extends BaseProps {\n placeholder?: string;\n onSearch?: (e: CustomEvent<string>) => void;\n}\n\nexport interface FormProps<T extends object> extends BaseProps {\n values?: T;\n onValidateSuccess?: (e: CustomEvent<T>) => void;\n ref?: {\n readonly current: FormRef;\n };\n}\n\nexport interface FormRef {\n validate: () => void;\n reset: () => void;\n}\n\nexport interface InputProps extends FormItemProps {\n placeholder?: string;\n}\n\nexport interface NumberInputProps extends InputProps {\n min?: number;\n max?: number;\n}\n\nexport interface TextareaProps extends InputProps {}\n\nexport interface SelectProps extends InputProps {\n options: (FormItemOptions | string)[];\n onChange?: (e: CustomEvent<string | number | boolean | null>) => void;\n}\n\nexport interface RadioProps extends SelectProps {}\n\nexport interface CheckboxProps extends SelectProps {}\n\nexport interface SwitchProps extends FormItemProps {}\n\nexport interface DatePickerProps extends FormItemProps {}\n\nexport interface TimePickerProps extends FormItemProps {}\n\nexport interface DashboardProps extends BaseProps {\n dataSource: Array<object>;\n groupField?: string;\n widgets: Array<DashboardWidget>;\n}\n\nexport interface ModalProps extends BaseProps {\n title: string;\n confirmText?: string;\n cancelText?: string;\n onConfirm?: () => void;\n ref?: {\n readonly current: ModalRef;\n };\n}\n\nexport interface ModalRef {\n open: () => void;\n close: () => void;\n}\n\nexport interface CardProps extends BaseProps {\n title?: string;\n}\n\nexport interface TagProps extends BaseProps {\n color?: string;\n outline?: boolean;\n}\n\nexport interface LinkProps extends BaseProps {\n /** 站外链接 */\n href?: string;\n\n /** 站内链接 */\n url?: string;\n\n target?: "_blank" | "_self";\n}\n\nexport interface AvatarProps extends BaseProps {\n size?: "large" | "medium" | "small";\n name?: string;\n src?: string;\n}\n\nexport interface AvatarGroupProps extends BaseProps {\n size?: "large" | "medium" | "small";\n}\n\nexport interface CodeBlockProps extends BaseProps {\n source: string;\n language: string;\n}\n\nexport interface PlaintextProps extends BaseProps {\n /** Related advisory information */\n title?: string;\n}\n\nexport interface DashboardWidget {\n widget: "chart";\n type: "line" | "area";\n title?: string;\n metric: {\n id: string;\n unit: string;\n };\n precision?: number;\n}\n\nexport interface FormItemProps extends BaseProps {\n name: string;\n label?: string;\n required?: boolean;\n disabled?: boolean;\n}\n\nexport interface FormItemOptions {\n label: string;\n value: string;\n}\n\nexport interface IconProps {\n lib: "fa";\n prefix: "fas" | "far";\n icon: string;\n}\n\nexport interface TableColumn<T extends object> {\n key: string;\n /** 数据索引,多级索引使用数组 */\n dataIndex: string | string[];\n title: string;\n sortable?: boolean;\n render?: (value: any, record: T) => any;\n}\n\nexport interface TableSort {\n columnKey: string | number;\n order: "ascend" | "descend";\n}\n\ndeclare const View: (props: ViewProps) => any;\ndeclare const Table: <T extends object>(props: TableProps<T>) => any;\ndeclare const List: (props: ListProps) => any;\ndeclare const Descriptions: <T extends object>(\n props: DescriptionsProps<T>\n) => any;\ndeclare const Button: (props: ButtonProps) => any;\ndeclare const Toolbar: (props: BaseProps) => any;\ndeclare const Search: (props: SearchProps) => any;\ndeclare const Form: <T extends object>(props: FormProps<T>) => any;\ndeclare const Input: (props: InputProps) => any;\ndeclare const NumberInput: (props: NumberInputProps) => any;\ndeclare const Textarea: (props: TextareaProps) => any;\ndeclare const Select: (props: SelectProps) => any;\ndeclare const Radio: (props: RadioProps) => any;\ndeclare const Checkbox: (props: CheckboxProps) => any;\ndeclare const Switch: (props: SwitchProps) => any;\ndeclare const DatePicker: (props: DatePickerProps) => any;\ndeclare const TimePicker: (props: TimePickerProps) => any;\ndeclare const Dashboard: (props: DashboardProps) => any;\ndeclare const Modal: (props: ModalProps) => any;\ndeclare const Card: (props: CardProps) => any;\ndeclare const Output: (props: BaseProps) => any;\ndeclare const Tag: (props: TagProps) => any;\ndeclare const Link: (props: LinkProps) => any;\ndeclare const Avatar: (props: AvatarProps) => any;\ndeclare const AvatarGroup: (props: AvatarGroupProps) => any;\ndeclare const CodeBlock: (props: CodeBlockProps) => any;\ndeclare const Plaintext: (props: PlaintextProps) => any;\ndeclare const Fragment: (props: { key?: string | number }) => any;\n'},33911:e=>{e.exports=function(e){var n=0,t=[],r={},o=[];function s(i){var a=r[i]={onStack:!0,lowlink:n,index:n++};if(t.push(i),e.successors(i).forEach((function(e){r.hasOwnProperty(e)?r[e].onStack&&(a.lowlink=Math.min(a.lowlink,r[e].index)):(s(e),a.lowlink=Math.min(a.lowlink,r[e].lowlink))})),a.lowlink===a.index){var d,c=[];do{d=t.pop(),r[d].onStack=!1,c.push(d)}while(i!==d);o.push(c)}}return e.nodes().forEach((function(e){r.hasOwnProperty(e)||s(e)})),o}},34678:(e,n,t)=>{var r=t(62314);e.exports={Graph:r.Graph,json:t(62258),alg:t(56311),version:r.version}},36856:(e,n,t)=>{"use strict";let r=t(34678).Graph;function o(e,n,t,r){let o;do{o=a(r)}while(e.hasNode(o));return t.dummy=n,e.setNode(o,t),o}function s(e){return Math.max(...e.nodes().map((n=>{let t=e.node(n).rank;return void 0===t?Number.MIN_VALUE:t})))}e.exports={addBorderNode:function(e,n,t,r){let s={width:0,height:0};return arguments.length>=4&&(s.rank=t,s.order=r),o(e,"border",s,n)},addDummyNode:o,asNonCompoundGraph:function(e){let n=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach((t=>{e.children(t).length||n.setNode(t,e.node(t))})),e.edges().forEach((t=>{n.setEdge(t,e.edge(t))})),n},buildLayerMatrix:function(e){let n=d(s(e)+1).map((()=>[]));return e.nodes().forEach((t=>{let r=e.node(t),o=r.rank;void 0!==o&&(n[o][r.order]=t)})),n},intersectRect:function(e,n){let t,r,o=e.x,s=e.y,i=n.x-o,a=n.y-s,d=e.width/2,c=e.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*d>Math.abs(i)*c?(a<0&&(c=-c),t=c*i/a,r=c):(i<0&&(d=-d),t=d,r=d*a/i),{x:o+t,y:s+r}},mapValues:function(e,n){let t=n;return"string"==typeof n&&(t=e=>e[n]),Object.entries(e).reduce(((e,[n,r])=>(e[n]=t(r,n),e)),{})},maxRank:s,normalizeRanks:function(e){let n=Math.min(...e.nodes().map((n=>{let t=e.node(n).rank;return void 0===t?Number.MAX_VALUE:t})));e.nodes().forEach((t=>{let r=e.node(t);r.hasOwnProperty("rank")&&(r.rank-=n)}))},notime:function(e,n){return n()},partition:function(e,n){let t={lhs:[],rhs:[]};return e.forEach((e=>{n(e)?t.lhs.push(e):t.rhs.push(e)})),t},pick:function(e,n){const t={};for(const r of n)void 0!==e[r]&&(t[r]=e[r]);return t},predecessorWeights:function(e){let n=e.nodes().map((n=>{let t={};return e.inEdges(n).forEach((n=>{t[n.v]=(t[n.v]||0)+e.edge(n).weight})),t}));return c(e.nodes(),n)},range:d,removeEmptyRanks:function(e){let n=Math.min(...e.nodes().map((n=>e.node(n).rank))),t=[];e.nodes().forEach((r=>{let o=e.node(r).rank-n;t[o]||(t[o]=[]),t[o].push(r)}));let r=0,o=e.graph().nodeRankFactor;Array.from(t).forEach(((n,t)=>{void 0===n&&t%o!=0?--r:void 0!==n&&r&&n.forEach((n=>e.node(n).rank+=r))}))},simplify:function(e){let n=(new r).setGraph(e.graph());return e.nodes().forEach((t=>n.setNode(t,e.node(t)))),e.edges().forEach((t=>{let r=n.edge(t.v,t.w)||{weight:0,minlen:1},o=e.edge(t);n.setEdge(t.v,t.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),n},successorWeights:function(e){let n=e.nodes().map((n=>{let t={};return e.outEdges(n).forEach((n=>{t[n.w]=(t[n.w]||0)+e.edge(n).weight})),t}));return c(e.nodes(),n)},time:function(e,n){let t=Date.now();try{return n()}finally{console.log(e+" time: "+(Date.now()-t)+"ms")}},uniqueId:a,zipObject:c};let i=0;function a(e){var n=++i;return toString(e)+n}function d(e,n,t=1){null==n&&(n=e,e=0);let r=e=>e<n;t<0&&(r=e=>n<e);const o=[];for(let n=e;r(n);n+=t)o.push(n);return o}function c(e,n){return e.reduce(((e,t,r)=>(e[t]=n[r],e)),{})}},37885:(e,n,t)=>{"use strict";var r=t(34678).Graph,o=t(54389).slack;function s(e,n){return e.nodes().forEach((function t(r){n.nodeEdges(r).forEach((s=>{var i=s.v,a=r===i?s.w:i;e.hasNode(a)||o(n,s)||(e.setNode(a,{}),e.setEdge(r,a,{}),t(a))}))})),e.nodeCount()}function i(e,n){return n.edges().reduce(((t,r)=>{let s=Number.POSITIVE_INFINITY;return e.hasNode(r.v)!==e.hasNode(r.w)&&(s=o(n,r)),s<t[0]?[s,r]:t}),[Number.POSITIVE_INFINITY,null])[1]}function a(e,n,t){e.nodes().forEach((e=>n.node(e).rank+=t))}e.exports=function(e){var n,t,d=new r({directed:!1}),c=e.nodes()[0],u=e.nodeCount();for(d.setNode(c,{});s(d,e)<u;)n=i(d,e),t=d.hasNode(n.v)?o(e,n):-o(e,n),a(d,e,t);return d}},41924:(e,n,t)=>{var r=t(56248);e.exports=function(e,n){return r(e,n,"pre")}},44237:(e,n,t)=>{var r=t(21997);e.exports=function(e,n,t,s){return function(e,n,t,o){var s,i,a={},d=new r,c=function(e){var n=e.v!==s?e.v:e.w,r=a[n],o=t(e),c=i.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=s,d.decrease(n,c))};for(e.nodes().forEach((function(e){var t=e===n?0:Number.POSITIVE_INFINITY;a[e]={distance:t},d.add(e,t)}));d.size()>0&&(s=d.removeMin(),(i=a[s]).distance!==Number.POSITIVE_INFINITY);)o(s).forEach(c);return a}(e,String(n),t||o,s||function(n){return e.outEdges(n)})};var o=()=>1},45437:(e,n,t)=>{let r=t(36856);function o(e,n,t){let r;for(;n.length&&(r=n[n.length-1]).i<=t;)n.pop(),e.push(r.vs),t++;return t}e.exports=function(e,n){let t=r.partition(e,(e=>e.hasOwnProperty("barycenter"))),s=t.lhs,i=t.rhs.sort(((e,n)=>n.i-e.i)),a=[],d=0,c=0,u=0;var h;s.sort((h=!!n,(e,n)=>e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:h?n.i-e.i:e.i-n.i)),u=o(a,i,u),s.forEach((e=>{u+=e.vs.length,a.push(e.vs),d+=e.barycenter*e.weight,c+=e.weight,u=o(a,i,u)}));let l={vs:a.flat(!0)};return c&&(l.barycenter=d/c,l.weight=c),l}},45574:e=>{"use strict";function n(e){e.nodes().forEach((n=>t(e.node(n)))),e.edges().forEach((n=>t(e.edge(n))))}function t(e){let n=e.width;e.width=e.height,e.height=n}function r(e){e.y=-e.y}function o(e){let n=e.x;e.x=e.y,e.y=n}e.exports={adjust:function(e){let t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||n(e)},undo:function(e){let t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){e.nodes().forEach((n=>r(e.node(n)))),e.edges().forEach((n=>{let t=e.edge(n);t.points.forEach(r),t.hasOwnProperty("y")&&r(t)}))}(e),"lr"!==t&&"rl"!==t||(function(e){e.nodes().forEach((n=>o(e.node(n)))),e.edges().forEach((n=>{let t=e.edge(n);t.points.forEach(o),t.hasOwnProperty("x")&&o(t)}))}(e),n(e))}}},48114:e=>{"use strict";var n="\0";function t(e,n){e[n]?e[n]++:e[n]=1}function r(e,n){--e[n]||delete e[n]}function o(e,n,t,r){var o=""+n,s=""+t;if(!e&&o>s){var i=o;o=s,s=i}return o+""+s+""+(void 0===r?"\0":r)}function s(e,n){return o(e,n.v,n.w,n.name)}e.exports=class{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=!e.hasOwnProperty("directed")||e.directed,this._isMultigraph=!!e.hasOwnProperty("multigraph")&&e.multigraph,this._isCompound=!!e.hasOwnProperty("compound")&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children[n]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,"function"!=typeof e&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter((n=>0===Object.keys(e._in[n]).length))}sinks(){var e=this;return this.nodes().filter((n=>0===Object.keys(e._out[n]).length))}setNodes(e,n){var t=arguments,r=this;return e.forEach((function(e){t.length>1?r.setNode(e,n):r.setNode(e)})),this}setNode(e,t){return this._nodes.hasOwnProperty(e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=n,this._children[e]={},this._children[n][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return this._nodes.hasOwnProperty(e)}removeNode(e){var n=this;if(this._nodes.hasOwnProperty(e)){var t=e=>n.removeEdge(n._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach((function(e){n.setParent(e)})),delete this._children[e]),Object.keys(this._in[e]).forEach(t),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(void 0===t)t=n;else{for(var r=t+="";void 0!==r;r=this.parent(r))if(r===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==n)return t}}children(e=n){if(this._isCompound){var t=this._children[e];if(t)return Object.keys(t)}else{if(e===n)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var n=this._preds[e];if(n)return Object.keys(n)}successors(e){var n=this._sucs[e];if(n)return Object.keys(n)}neighbors(e){var n=this.predecessors(e);if(n){const r=new Set(n);for(var t of this.successors(e))r.add(t);return Array.from(r.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var t=this;Object.entries(this._nodes).forEach((function([t,r]){e(t)&&n.setNode(t,r)})),Object.values(this._edgeObjs).forEach((function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,t.edge(e))}));var r={};function o(e){var s=t.parent(e);return void 0===s||n.hasNode(s)?(r[e]=s,s):s in r?r[s]:o(s)}return this._isCompound&&n.nodes().forEach((e=>n.setParent(e,o(e)))),n}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,"function"!=typeof e&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,n){var t=this,r=arguments;return e.reduce((function(e,o){return r.length>1?t.setEdge(e,o,n):t.setEdge(e,o),o})),this}setEdge(){var e,n,r,s,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,n=a.w,r=a.name,2===arguments.length&&(s=arguments[1],i=!0)):(e=a,n=arguments[1],r=arguments[3],arguments.length>2&&(s=arguments[2],i=!0)),e=""+e,n=""+n,void 0!==r&&(r=""+r);var d=o(this._isDirected,e,n,r);if(this._edgeLabels.hasOwnProperty(d))return i&&(this._edgeLabels[d]=s),this;if(void 0!==r&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[d]=i?s:this._defaultEdgeLabelFn(e,n,r);var c=function(e,n,t,r){var o=""+n,s=""+t;if(!e&&o>s){var i=o;o=s,s=i}var a={v:o,w:s};return r&&(a.name=r),a}(this._isDirected,e,n,r);return e=c.v,n=c.w,Object.freeze(c),this._edgeObjs[d]=c,t(this._preds[n],e),t(this._sucs[e],n),this._in[n][d]=c,this._out[e][d]=c,this._edgeCount++,this}edge(e,n,t){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,t);return this._edgeLabels[r]}edgeAsObj(){const e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,n,t){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,t);return this._edgeLabels.hasOwnProperty(r)}removeEdge(e,n,t){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,t),a=this._edgeObjs[i];return a&&(e=a.v,n=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],r(this._preds[n],e),r(this._sucs[e],n),delete this._in[n][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,n){var t=this._in[e];if(t){var r=Object.values(t);return n?r.filter((e=>e.v===n)):r}}outEdges(e,n){var t=this._out[e];if(t){var r=Object.values(t);return n?r.filter((e=>e.w===n)):r}}nodeEdges(e,n){var t=this.inEdges(e,n);if(t)return t.concat(this.outEdges(e,n))}}},51166:e=>{e.exports="2.2.2"},51964:e=>{function n(e){var n={},r={},o=[];if(e.sinks().forEach((function s(i){if(r.hasOwnProperty(i))throw new t;n.hasOwnProperty(i)||(r[i]=!0,n[i]=!0,e.predecessors(i).forEach(s),delete r[i],o.push(i))})),Object.keys(n).length!==e.nodeCount())throw new t;return o}class t extends Error{constructor(){super(...arguments)}}e.exports=n,n.CycleException=t},52635:(e,n,t)=>{"use strict";let r=t(36856);e.exports=function(e,n){let t={};return e.forEach(((e,n)=>{let r=t[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};void 0!==e.barycenter&&(r.barycenter=e.barycenter,r.weight=e.weight)})),n.edges().forEach((e=>{let n=t[e.v],r=t[e.w];void 0!==n&&void 0!==r&&(r.indegree++,n.out.push(t[e.w]))})),function(e){let n=[];function t(e){return n=>{n.merged||(void 0===n.barycenter||void 0===e.barycenter||n.barycenter>=e.barycenter)&&function(e,n){let t=0,r=0;e.weight&&(t+=e.barycenter*e.weight,r+=e.weight),n.weight&&(t+=n.barycenter*n.weight,r+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}function o(n){return t=>{t.in.push(n),0==--t.indegree&&e.push(t)}}for(;e.length;){let r=e.pop();n.push(r),r.in.reverse().forEach(t(r)),r.out.forEach(o(r))}return n.filter((e=>!e.merged)).map((e=>r.pick(e,["vs","i","barycenter","weight"])))}(Object.values(t).filter((e=>!e.indegree)))}},53651:(e,n,t)=>{var r=t(44237);e.exports=function(e,n,t){return e.nodes().reduce((function(o,s){return o[s]=r(e,s,n,t),o}),{})}},54389:e=>{"use strict";e.exports={longestPath:function(e){var n={};e.sources().forEach((function t(r){var o=e.node(r);if(n.hasOwnProperty(r))return o.rank;n[r]=!0;var s=Math.min(...e.outEdges(r).map((n=>null==n?Number.POSITIVE_INFINITY:t(n.w)-e.edge(n).minlen)));return s===Number.POSITIVE_INFINITY&&(s=0),o.rank=s}))},slack:function(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}}},56248:e=>{function n(e,n,t,o){for(var s=[[e,!1]];s.length>0;){var i=s.pop();i[1]?o.push(i[0]):t.hasOwnProperty(i[0])||(t[i[0]]=!0,s.push([i[0],!0]),r(n(i[0]),(e=>s.push([e,!1]))))}}function t(e,n,t,o){for(var s=[e];s.length>0;){var i=s.pop();t.hasOwnProperty(i)||(t[i]=!0,o.push(i),r(n(i),(e=>s.push(e))))}}function r(e,n){for(var t=e.length;t--;)n(e[t],t,e);return e}e.exports=function(e,r,o){Array.isArray(r)||(r=[r]);var s=e.isDirected()?n=>e.successors(n):n=>e.neighbors(n),i="post"===o?n:t,a=[],d={};return r.forEach((n=>{if(!e.hasNode(n))throw new Error("Graph does not have node: "+n);i(n,s,d,a)})),a}},56311:(e,n,t)=>{e.exports={components:t(62335),dijkstra:t(44237),dijkstraAll:t(53651),findCycles:t(80402),floydWarshall:t(83242),isAcyclic:t(31158),postorder:t(69289),preorder:t(41924),prim:t(19763),tarjan:t(33911),topsort:t(51964)}},57586:(e,n,t)=>{e.exports={graphlib:t(34678),layout:t(28870),debug:t(11665),util:{time:t(36856).time,notime:t(36856).notime},version:t(90898)}},59885:(e,n,t)=>{let r=t(36856);function o(e,n,t,s,i,a,d){let c=e.children(d);if(!c.length)return void(d!==n&&e.setEdge(n,d,{weight:0,minlen:t}));let u=r.addBorderNode(e,"_bt"),h=r.addBorderNode(e,"_bb"),l=e.node(d);e.setParent(u,d),l.borderTop=u,e.setParent(h,d),l.borderBottom=h,c.forEach((r=>{o(e,n,t,s,i,a,r);let c=e.node(r),l=c.borderTop?c.borderTop:r,p=c.borderBottom?c.borderBottom:r,f=c.borderTop?s:2*s,g=l!==p?1:i-a[d]+1;e.setEdge(u,l,{weight:f,minlen:g,nestingEdge:!0}),e.setEdge(p,h,{weight:f,minlen:g,nestingEdge:!0})})),e.parent(d)||e.setEdge(n,u,{weight:0,minlen:i+a[d]})}e.exports={run:function(e){let n=r.addDummyNode(e,"root",{},"_root"),t=function(e){var n={};function t(r,o){var s=e.children(r);s&&s.length&&s.forEach((e=>t(e,o+1))),n[r]=o}return e.children().forEach((e=>t(e,1))),n}(e),s=Math.max(...Object.values(t))-1,i=2*s+1;e.graph().nestingRoot=n,e.edges().forEach((n=>e.edge(n).minlen*=i));let a=function(e){return e.edges().reduce(((n,t)=>n+e.edge(t).weight),0)}(e)+1;e.children().forEach((r=>o(e,n,i,a,s,t,r))),e.graph().nodeRankFactor=i},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,e.edges().forEach((n=>{e.edge(n).nestingEdge&&e.removeEdge(n)}))}}},62258:(e,n,t)=>{var r=t(48114);function o(e){return e.nodes().map((function(n){var t=e.node(n),r=e.parent(n),o={v:n};return void 0!==t&&(o.value=t),void 0!==r&&(o.parent=r),o}))}function s(e){return e.edges().map((function(n){var t=e.edge(n),r={v:n.v,w:n.w};return void 0!==n.name&&(r.name=n.name),void 0!==t&&(r.value=t),r}))}e.exports={write:function(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:s(e)};return void 0!==e.graph()&&(n.value=structuredClone(e.graph())),n},read:function(e){var n=new r(e.options).setGraph(e.value);return e.nodes.forEach((function(e){n.setNode(e.v,e.value),e.parent&&n.setParent(e.v,e.parent)})),e.edges.forEach((function(e){n.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),n}}},62314:(e,n,t)=>{e.exports={Graph:t(48114),version:t(51166)}},62335:e=>{e.exports=function(e){var n,t={},r=[];function o(r){t.hasOwnProperty(r)||(t[r]=!0,n.push(r),e.successors(r).forEach(o),e.predecessors(r).forEach(o))}return e.nodes().forEach((function(e){n=[],o(e),n.length&&r.push(n)})),r}},68642:(e,n,t)=>{"use strict";let r=t(76635),o=t(36856).uniqueId;e.exports={run:function(e){("greedy"===e.graph().acyclicer?r(e,function(e){return n=>e.edge(n).weight}(e)):function(e){let n=[],t={},r={};return e.nodes().forEach((function o(s){r.hasOwnProperty(s)||(r[s]=!0,t[s]=!0,e.outEdges(s).forEach((e=>{t.hasOwnProperty(e.w)?n.push(e):o(e.w)})),delete t[s])})),n}(e)).forEach((n=>{let t=e.edge(n);e.removeEdge(n),t.forwardName=n.name,t.reversed=!0,e.setEdge(n.w,n.v,t,o("rev"))}))},undo:function(e){e.edges().forEach((n=>{let t=e.edge(n);if(t.reversed){e.removeEdge(n);let r=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,r)}}))}}},69289:(e,n,t)=>{var r=t(56248);e.exports=function(e,n){return r(e,n,"post")}},70835:(e,n,t)=>{"use strict";let r=t(36856).zipObject;function o(e,n,t){let o=r(t,t.map(((e,n)=>n))),s=n.flatMap((n=>e.outEdges(n).map((n=>({pos:o[n.w],weight:e.edge(n).weight}))).sort(((e,n)=>e.pos-n.pos)))),i=1;for(;i<t.length;)i<<=1;let a=2*i-1;i-=1;let d=new Array(a).fill(0),c=0;return s.forEach((e=>{let n=e.pos+i;d[n]+=e.weight;let t=0;for(;n>0;)n%2&&(t+=d[n+1]),n=n-1>>1,d[n]+=e.weight;c+=e.weight*t})),c}e.exports=function(e,n){let t=0;for(let r=1;r<n.length;++r)t+=o(e,n[r-1],n[r]);return t}},71293:(e,n,t)=>{"use strict";let r=t(36856);e.exports={run:function(e){e.graph().dummyChains=[],e.edges().forEach((n=>function(e,n){let t,o,s,i=n.v,a=e.node(i).rank,d=n.w,c=e.node(d).rank,u=n.name,h=e.edge(n),l=h.labelRank;if(c!==a+1){for(e.removeEdge(n),s=0,++a;a<c;++s,++a)h.points=[],o={width:0,height:0,edgeLabel:h,edgeObj:n,rank:a},t=r.addDummyNode(e,"edge",o,"_d"),a===l&&(o.width=h.width,o.height=h.height,o.dummy="edge-label",o.labelpos=h.labelpos),e.setEdge(i,t,{weight:h.weight},u),0===s&&e.graph().dummyChains.push(t),i=t;e.setEdge(i,d,{weight:h.weight},u)}}(e,n)))},undo:function(e){e.graph().dummyChains.forEach((n=>{let t,r=e.node(n),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)t=e.successors(n)[0],e.removeNode(n),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),n=t,r=e.node(n)}))}}},74592:e=>{e.exports=function(e,n=[]){return n.map((n=>{let t=e.inEdges(n);if(t.length){let r=t.reduce(((n,t)=>{let r=e.edge(t),o=e.node(t.v);return{sum:n.sum+r.weight*o.order,weight:n.weight+r.weight}}),{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}}))}},74612:e=>{"use strict";e.exports='import type { ReactNode, PropsWithChildren } from "react";\n\nexport function render(app: ReactNode): ReactNode;\n\nexport function Routes(props: PropsWithChildren<{}>): ReactNode;\n\nexport function Route(props: {\n path: string;\n component: () => ReactNode;\n}): ReactNode;\n\n/** 返回一个有状态的值和一个更新它的函数。 */\nexport function useState<T>(\n initialValue?: T\n): [value: T, setter: Dispatch<SetStateAction<T>>];\n\nexport type Dispatch<A> = (value: A) => void;\n\nexport type SetStateAction<S> = S | ((prevState: S) => S);\n\n/** 异步获取资源,返回获取到的数据、以及一个重新拉取数据的函数 */\nexport function useResource<T = any>(\n fetcher: () => Promise<T>,\n options?: {\n // 不启用则直接返回 fallback\n enabled?: boolean;\n fallback?: unknown;\n }\n): [data: T, refetch: () => void];\n\n/** 返回一个可变的 ref 对象,其 `.current` 属性初始化为传入的参数 (`initialValue`) */\nexport function useRef<T>(initialValue: T): {\n current: T;\n};\n\n/** 获取当前应用的信息 */\nexport function useApp(): App;\n\nexport interface App {\n id: string;\n name: string;\n homepage: string;\n config: Record<string, any>;\n}\n\n/** 获取当前的 URL search 参数 */\nexport function useQuery(): {\n readonly [key: string]: string | undefined;\n};\n\n/** 获取当前的 URL path 参数 */\nexport function usePathParams(): {\n readonly [key: string]: string | undefined;\n};\n\n/** 获取用于进行导航跳转的对象 */\nexport function useHistory(): History;\n\nexport interface History {\n push: (url: string) => void;\n replace: (url: string) => void;\n reload: () => void;\n pushQuery: UpdateQuery;\n replaceQuery: UpdateQuery;\n}\n\nexport type UpdateQuery = (\n newQuery: Record<string, string | null>,\n options?: {\n clear?: boolean; // 是否清除已有参数,默认 false\n notify?: boolean; // 是否通知路由变化,默认 true\n }\n) => void;\n\nexport function useLocation(): {\n href: string;\n origin: string;\n host: string;\n hostname: string;\n};\n\n/** 获取当前用户的信息 */\nexport function useAuth(): {\n username: string;\n userInstanceId: string;\n isAdmin: boolean;\n};\n\n/** 接收一个 Context 对象,返回其当前的值 */\nexport function useContext<T>(context: Context<T>): T;\n\n/** 创建一个 Context 来跨组件传递数据 */\nexport function createContext<T>(defaultValue?: T): Context<T>;\n\nexport interface Context<T> {\n /** 提供 Context 数据的组件 */\n Provider: (props: { value: T; children: React.ReactNode }) => any;\n}\n\n/** 将 children 放置在统一提供的 portal 容器中渲染 */\nexport function createPortal(children: any): any;\n\n/**\n * 按 key 获取翻译后的文本。\n * 第二个参数可传递变量用于替换文本中的占位符(形如 `{{ propName }}`),\n * 也可传递默认值,当找不到对应 key 的翻译时使用该默认值。\n */\nexport function translate(\n key: string,\n variables?: Record<string, unknown>\n): string;\n\n/**\n * 按 key 获取翻译后的文本。\n * 第二个参数可传递变量用于替换文本中的占位符(形如 `{{ propName }}`),\n * 也可传递默认值,当找不到对应 key 的翻译时使用该默认值。\n */\nexport function translate(\n key: string,\n defaultValue?: string\n): string;\n\nexport function translateByRecord(record: Record<string, string>): string;\n\n/** 根据错误对象显示错误信息弹窗 */\nexport function handleHttpError(error: any): void;\n\n/** 调用指定的 Provider 接口 */\nexport function callApi<T extends keyof ContractMap>(\n api: T,\n params: Parameters<ContractMap[T]>[0]\n): Promise<ReturnType<ContractMap[T]>>;\n\n/** 调用指定的 HTTP 接口 */\nexport function callHttp<T = any>(url: string, init?: RequestInit): Promise<T>;\n\n/** 调用指定的工具函数 */\nexport function callTool<T = any, P = any>(\n conversationId: string,\n stepId: string,\n params: P\n): Promise<T>;\n\n/** 提示用户操作结果 */\nexport function showMessage(options: {\n type: "success" | "error" | "warn" | "info";\n content: string;\n}): void;\n\n/** 弹出对话框 */\nexport function showDialog(options: {\n type?: "success" | "error" | "warn" | "info" | "confirm" | "delete";\n title?: string;\n content: string;\n danger?: boolean;\n /**\n * 配合 type: delete 使用,用户需要输入期望值才能进行操作。\n * 在 content 中可以使用 `{{ expect }}` 占位符来显示期望值。\n */\n expect?: string;\n}): Promise<void>;\n\n/** 拷贝一段文本 */\nexport function copyText(text: string): Promise<void>;\n\n/**\n * 平台部署的基础路径,通常为 `/next/`。\n *\n * 对于大部分组件,设置 url 时不需要带上该前缀,但在某些需要使用完整 URL 的场景下需要使用该常量进行拼接。\n */\nexport const BASE_URL: string;\n'},74635:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var r=t(72016);function o(e,n){(0,r.A)(e,n),n.add(e)}},75577:(e,n,t)=>{"use strict";let r=t(96498),o=t(70835),s=t(82804),i=t(24600),a=t(17508),d=t(34678).Graph,c=t(36856);function u(e,n,t){return n.map((function(n){return i(e,n,t)}))}function h(e,n){let t=new d;e.forEach((function(e){let r=e.graph().root,o=s(e,r,t,n);o.vs.forEach(((n,t)=>e.node(n).order=t)),a(e,t,o.vs)}))}function l(e,n){Object.values(n).forEach((n=>n.forEach(((n,t)=>e.node(n).order=t))))}e.exports=function e(n,t){if(t&&"function"==typeof t.customOrder)return void t.customOrder(n,e);let s=c.maxRank(n),i=u(n,c.range(1,s+1),"inEdges"),a=u(n,c.range(s-1,-1,-1),"outEdges"),d=r(n);if(l(n,d),t&&t.disableOptimalOrderHeuristic)return;let p,f=Number.POSITIVE_INFINITY;for(let e=0,t=0;t<4;++e,++t){h(e%2?i:a,e%4>=2),d=c.buildLayerMatrix(n);let r=o(n,d);r<f&&(t=0,p=Object.assign({},d),f=r)}l(n,p)}},76635:(e,n,t)=>{let r=t(34678).Graph,o=t(11983);e.exports=function(e,n){if(e.nodeCount()<=1)return[];let t=function(e,n){let t=new r,s=0,i=0;e.nodes().forEach((e=>{t.setNode(e,{v:e,in:0,out:0})})),e.edges().forEach((e=>{let r=t.edge(e.v,e.w)||0,o=n(e),a=r+o;t.setEdge(e.v,e.w,a),i=Math.max(i,t.node(e.v).out+=o),s=Math.max(s,t.node(e.w).in+=o)}));let d=function(e){const n=[];for(let t=0;t<e;t++)n.push(t);return n}(i+s+3).map((()=>new o)),c=s+1;return t.nodes().forEach((e=>{a(d,c,t.node(e))})),{graph:t,buckets:d,zeroIdx:c}}(e,n||s);return function(e,n,t){let r,o=[],s=n[n.length-1],a=n[0];for(;e.nodeCount();){for(;r=a.dequeue();)i(e,n,t,r);for(;r=s.dequeue();)i(e,n,t,r);if(e.nodeCount())for(let s=n.length-2;s>0;--s)if(r=n[s].dequeue(),r){o=o.concat(i(e,n,t,r,!0));break}}return o}(t.graph,t.buckets,t.zeroIdx).flatMap((n=>e.outEdges(n.v,n.w)))};let s=()=>1;function i(e,n,t,r,o){let s=o?[]:void 0;return e.inEdges(r.v).forEach((r=>{let i=e.edge(r),d=e.node(r.v);o&&s.push({v:r.v,w:r.w}),d.out-=i,a(n,t,d)})),e.outEdges(r.v).forEach((r=>{let o=e.edge(r),s=r.w,i=e.node(s);i.in-=o,a(n,t,i)})),e.removeNode(r.v),s}function a(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}},80402:(e,n,t)=>{var r=t(33911);e.exports=function(e){return r(e).filter((function(n){return n.length>1||1===n.length&&e.hasEdge(n[0],n[0])}))}},82804:(e,n,t)=>{let r=t(74592),o=t(52635),s=t(45437);e.exports=function e(n,t,i,a){let d=n.children(t),c=n.node(t),u=c?c.borderLeft:void 0,h=c?c.borderRight:void 0,l={};u&&(d=d.filter((e=>e!==u&&e!==h)));let p=r(n,d);p.forEach((t=>{if(n.children(t.v).length){let s=e(n,t.v,i,a);l[t.v]=s,s.hasOwnProperty("barycenter")&&(o=s,void 0!==(r=t).barycenter?(r.barycenter=(r.barycenter*r.weight+o.barycenter*o.weight)/(r.weight+o.weight),r.weight+=o.weight):(r.barycenter=o.barycenter,r.weight=o.weight))}var r,o}));let f=o(p,i);!function(e,n){e.forEach((e=>{e.vs=e.vs.flatMap((e=>n[e]?n[e].vs:e))}))}(f,l);let g=s(f,a);if(u&&(g.vs=[u,g.vs,h].flat(!0),n.predecessors(u).length)){let e=n.node(n.predecessors(u)[0]),t=n.node(n.predecessors(h)[0]);g.hasOwnProperty("barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+e.order+t.order)/(g.weight+2),g.weight+=2}return g}},83242:e=>{e.exports=function(e,t,r){return function(e,n,t){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(n){e!==n&&(r[e][n]={distance:Number.POSITIVE_INFINITY})})),t(e).forEach((function(t){var o=t.v===e?t.w:t.v,s=n(t);r[e][o]={distance:s,predecessor:e}}))})),o.forEach((function(e){var n=r[e];o.forEach((function(t){var s=r[t];o.forEach((function(t){var r=s[e],o=n[t],i=s[t],a=r.distance+o.distance;a<i.distance&&(i.distance=a,i.predecessor=o.predecessor)}))}))})),r}(e,t||n,r||function(n){return e.outEdges(n)})};var n=()=>1},87520:(e,n,t)=>{"use strict";var r=t(37885),o=t(54389).slack,s=t(54389).longestPath,i=t(34678).alg.preorder,a=t(34678).alg.postorder,d=t(36856).simplify;function c(e){e=d(e),s(e);var n,t=r(e);for(l(t),u(t,e);n=f(t);)m(t,e,n,g(t,e,n))}function u(e,n){var t=a(e,e.nodes());(t=t.slice(0,t.length-1)).forEach((t=>function(e,n,t){var r=e.node(t).parent;e.edge(t,r).cutvalue=h(e,n,t)}(e,n,t)))}function h(e,n,t){var r=e.node(t).parent,o=!0,s=n.edge(t,r),i=0;return s||(o=!1,s=n.edge(r,t)),i=s.weight,n.nodeEdges(t).forEach((s=>{var a,d,c=s.v===t,u=c?s.w:s.v;if(u!==r){var h=c===o,l=n.edge(s).weight;if(i+=h?l:-l,a=t,d=u,e.hasEdge(a,d)){var p=e.edge(t,u).cutvalue;i+=h?-p:p}}})),i}function l(e,n){arguments.length<2&&(n=e.nodes()[0]),p(e,{},1,n)}function p(e,n,t,r,o){var s=t,i=e.node(r);return n[r]=!0,e.neighbors(r).forEach((o=>{n.hasOwnProperty(o)||(t=p(e,n,t,o,r))})),i.low=s,i.lim=t++,o?i.parent=o:delete i.parent,t}function f(e){return e.edges().find((n=>e.edge(n).cutvalue<0))}function g(e,n,t){var r=t.v,s=t.w;n.hasEdge(r,s)||(r=t.w,s=t.v);var i=e.node(r),a=e.node(s),d=i,c=!1;i.lim>a.lim&&(d=a,c=!0);var u=n.edges().filter((n=>c===v(0,e.node(n.v),d)&&c!==v(0,e.node(n.w),d)));return u.reduce(((e,t)=>o(n,t)<o(n,e)?t:e))}function m(e,n,t,r){var o=t.v,s=t.w;e.removeEdge(o,s),e.setEdge(r.v,r.w,{}),l(e),u(e,n),function(e,n){var t=e.nodes().find((e=>!n.node(e).parent)),r=i(e,t);(r=r.slice(1)).forEach((t=>{var r=e.node(t).parent,o=n.edge(t,r),s=!1;o||(o=n.edge(r,t),s=!0),n.node(t).rank=n.node(r).rank+(s?o.minlen:-o.minlen)}))}(e,n)}function v(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}e.exports=c,c.initLowLimValues=l,c.initCutValues=u,c.calcCutValue=h,c.leaveEdge=f,c.enterEdge=g,c.exchangeEdges=m},90898:e=>{e.exports="1.1.3"},96498:(e,n,t)=>{"use strict";let r=t(36856);e.exports=function(e){let n={},t=e.nodes().filter((n=>!e.children(n).length)),o=Math.max(...t.map((n=>e.node(n).rank))),s=r.range(o+1).map((()=>[]));return t.sort(((n,t)=>e.node(n).rank-e.node(t).rank)).forEach((function t(r){if(n[r])return;n[r]=!0;let o=e.node(r);s[o.rank].push(r),e.successors(r).forEach(t)})),s}},98924:(e,n,t)=>{"use strict";let r=t(36856),o=t(8121).positionX;e.exports=function(e){(function(e){let n=r.buildLayerMatrix(e),t=e.graph().ranksep,o=0;n.forEach((n=>{const r=n.reduce(((n,t)=>{const r=e.node(t).height;return n>r?n:r}),0);n.forEach((n=>e.node(n).y=o+r/2)),o+=r+t}))})(e=r.asNonCompoundGraph(e)),Object.entries(o(e)).forEach((([n,t])=>e.node(n).x=t))}}}]);
|
|
2
|
+
//# sourceMappingURL=3363.d64d8e2a.js.map
|