@next-bricks/diagram 0.64.0 → 0.64.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/bricks.json +1 -1
- package/dist/chunks/{114.f4c45fb4.js → 114.3dc39f03.js} +2 -2
- package/dist/chunks/{114.f4c45fb4.js.map → 114.3dc39f03.js.map} +1 -1
- package/dist/chunks/296.c25216ac.js +2 -0
- package/dist/chunks/{296.f3b52669.js.map → 296.c25216ac.js.map} +1 -1
- package/dist/chunks/3171.373e8a96.js +2 -0
- package/dist/chunks/{3171.4e111cd1.js.map → 3171.373e8a96.js.map} +1 -1
- package/dist/chunks/3233.e2b04c10.js +3 -0
- package/dist/chunks/{3233.df97f221.js.map → 3233.e2b04c10.js.map} +1 -1
- package/dist/chunks/{3933.e47efe53.js → 3933.8b394359.js} +2 -2
- package/dist/chunks/{3933.e47efe53.js.map → 3933.8b394359.js.map} +1 -1
- package/dist/chunks/4837.c1881500.js +2 -0
- package/dist/chunks/{4837.11c3f298.js.map → 4837.c1881500.js.map} +1 -1
- package/dist/chunks/5552.189bdeab.js +2 -0
- package/dist/chunks/{5552.c1fe77c8.js.map → 5552.189bdeab.js.map} +1 -1
- package/dist/chunks/5670.73de56d6.js +3 -0
- package/dist/chunks/5670.73de56d6.js.map +1 -0
- package/dist/chunks/{6314.449f20cc.js → 6314.8105e59b.js} +2 -2
- package/dist/chunks/{6314.449f20cc.js.map → 6314.8105e59b.js.map} +1 -1
- package/dist/chunks/7218.9fa75d3e.js +2 -0
- package/dist/chunks/{7218.3d3b9880.js.map → 7218.9fa75d3e.js.map} +1 -1
- package/dist/chunks/{7733.43792e2a.js → 7733.49c9fd7f.js} +2 -2
- package/dist/chunks/{7733.43792e2a.js.map → 7733.49c9fd7f.js.map} +1 -1
- package/dist/chunks/{871.cf918ecb.js → 871.6fee04f1.js} +2 -2
- package/dist/chunks/{871.cf918ecb.js.map → 871.6fee04f1.js.map} +1 -1
- package/dist/chunks/9140.506e9829.js +3 -0
- package/dist/chunks/9140.506e9829.js.map +1 -0
- package/dist/chunks/{6730.b6d7107a.js → 9441.e15ae062.js} +2 -2
- package/dist/chunks/{6730.b6d7107a.js.map → 9441.e15ae062.js.map} +1 -1
- package/dist/chunks/{9711.8e213d2c.js → 9711.cef255cc.js} +2 -2
- package/dist/chunks/{9711.8e213d2c.js.map → 9711.cef255cc.js.map} +1 -1
- package/dist/chunks/{editable-label.f986264b.js → editable-label.90e84065.js} +3 -3
- package/dist/chunks/{editable-label.f986264b.js.map → editable-label.90e84065.js.map} +1 -1
- package/dist/chunks/{eo-diagram.b6a11fe1.js → eo-diagram.a33d3ced.js} +2 -2
- package/dist/chunks/{eo-diagram.b6a11fe1.js.map → eo-diagram.a33d3ced.js.map} +1 -1
- package/dist/chunks/{eo-display-canvas.0119f61b.js → eo-display-canvas.24f8f219.js} +2 -2
- package/dist/chunks/{eo-display-canvas.0119f61b.js.map → eo-display-canvas.24f8f219.js.map} +1 -1
- package/dist/chunks/{eo-draw-canvas.bed82f27.js → eo-draw-canvas.f4edccba.js} +2 -2
- package/dist/chunks/{eo-draw-canvas.bed82f27.js.map → eo-draw-canvas.f4edccba.js.map} +1 -1
- package/dist/chunks/{experimental-node.fcd8f903.js → experimental-node.6a8615d0.js} +2 -2
- package/dist/chunks/{experimental-node.fcd8f903.js.map → experimental-node.6a8615d0.js.map} +1 -1
- package/dist/chunks/main.c2629246.js +2 -0
- package/dist/chunks/{main.962d2671.js.map → main.c2629246.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.9e01b1a6.js +2 -0
- package/dist/index.9e01b1a6.js.map +1 -0
- package/dist/manifest.json +40 -40
- package/package.json +4 -4
- package/dist/chunks/296.f3b52669.js +0 -2
- package/dist/chunks/3171.4e111cd1.js +0 -2
- package/dist/chunks/3233.df97f221.js +0 -3
- package/dist/chunks/4837.11c3f298.js +0 -2
- package/dist/chunks/5552.c1fe77c8.js +0 -2
- package/dist/chunks/5670.d0d814f7.js +0 -3
- package/dist/chunks/5670.d0d814f7.js.map +0 -1
- package/dist/chunks/7218.3d3b9880.js +0 -2
- package/dist/chunks/9140.08761fe0.js +0 -3
- package/dist/chunks/9140.08761fe0.js.map +0 -1
- package/dist/chunks/main.962d2671.js +0 -2
- package/dist/index.d1c14125.js +0 -2
- package/dist/index.d1c14125.js.map +0 -1
- /package/dist/chunks/{3233.df97f221.js.LICENSE.txt → 3233.e2b04c10.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5670.d0d814f7.js.LICENSE.txt → 5670.73de56d6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9140.08761fe0.js.LICENSE.txt → 9140.506e9829.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{editable-label.f986264b.js.LICENSE.txt → editable-label.90e84065.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var e,t,r,n,a,o,l,i,s,c,d,u,f,h,p,m,b,v,g,x,y,P,w,k={9476:(e,t,r)=>{var n={"./eo-diagram":()=>Promise.all([r.e(7920),r.e(8769),r.e(1030),r.e(7921),r.e(1280),r.e(6477),r.e(5903),r.e(9441),r.e(1361),r.e(3233),r.e(3039)]).then((()=>()=>r(1508))),"./editable-label":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(6477),r.e(6006)]).then((()=>()=>r(3328))),"./eo-draw-canvas":()=>Promise.all([r.e(7920),r.e(5670),r.e(8769),r.e(1030),r.e(7921),r.e(6548),r.e(1280),r.e(6477),r.e(9435),r.e(5903),r.e(9441),r.e(296),r.e(8939)]).then((()=>()=>r(9068))),"./experimental-node":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(6477),r.e(4422)]).then((()=>()=>r(5568))),"./eo-display-canvas":()=>Promise.all([r.e(7920),r.e(5670),r.e(8769),r.e(1030),r.e(7921),r.e(6548),r.e(1280),r.e(6477),r.e(9435),r.e(5903),r.e(9441),r.e(296),r.e(8939),r.e(9823)]).then((()=>()=>r(6094)))},a=(e,t)=>(r.R=t,t=r.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),o=(e,t)=>{if(r.S){var n="default",a=r.S[n];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[n]=e,r.I(n,t)}};r.d(t,{get:()=>a,init:()=>o})}},j={};function S(e){var t=j[e];if(void 0!==t)return t.exports;var r=j[e]={id:e,loaded:!1,exports:{}};return k[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=k,S.c=j,S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},S.d=(e,t)=>{for(var r in t)S.o(t,r)&&!S.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((t,r)=>(S.f[r](e,t),t)),[])),S.u=e=>"chunks/"+({3039:"eo-diagram",4422:"experimental-node",6006:"editable-label",8939:"eo-draw-canvas",9823:"eo-display-canvas"}[e]||e)+"."+{114:"3dc39f03",296:"c25216ac",726:"36afa7a3",871:"6fee04f1",1045:"fc9b1386",1122:"1957b96a",1370:"ff678c2c",1889:"cd9c8220",1940:"d4e8c5b9",2052:"a8ed8891",2277:"83e80fbf",3039:"a33d3ced",3144:"b60bf1f3",3171:"373e8a96",3233:"e2b04c10",3426:"fb6ffa15",3933:"8b394359",4041:"d0dafc02",4306:"ace26fca",4422:"6a8615d0",4658:"df491375",4837:"c1881500",5250:"aa8a219f",5384:"b76b4b24",5399:"b1b4981d",5552:"189bdeab",5670:"73de56d6",6006:"90e84065",6314:"8105e59b",6519:"4ddc3bd5",6773:"ef4413a1",7218:"9fa75d3e",7304:"2ae2d399",7721:"e7aaf5c2",7733:"49c9fd7f",7920:"367555e2",8939:"f4edccba",8989:"1bb9349d",9140:"506e9829",9441:"e15ae062",9515:"2b74919b",9559:"f28defcc",9823:"24f8f219",9844:"4a3a83f7"}[e]+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@next-bricks/diagram:",S.l=(r,n,a,o)=>{if(e[r])e[r].push(n);else{var l,i;if(void 0!==a)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var d=s[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){l=d;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,S.nc&&l.setAttribute("nonce",S.nc),l.setAttribute("data-webpack",t+a),l.src=r),e[r]=[n];var u=(t,n)=>{l.onerror=l.onload=null,clearTimeout(f);var a=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},t={};S.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];S.o(S.S,r)||(S.S[r]={});var o=S.S[r],l="@next-bricks/diagram",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},s=[];return"default"===r&&(i("@babel/parser","7.27.2",(()=>S.e(6773).then((()=>()=>S(6773))))),i("@easyops-cn/brick-next-pipes","0.7.2",(()=>Promise.all([S.e(4306),S.e(1030),S.e(1916),S.e(5310)]).then((()=>()=>S(4306))))),i("@next-core/cook","2.5.9",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(1122))))),i("@next-core/element","1.2.18",(()=>S.e(1045).then((()=>()=>S(1045))))),i("@next-core/http","1.2.13",(()=>S.e(8989).then((()=>()=>S(8989))))),i("@next-core/i18n","1.0.78",(()=>Promise.all([S.e(6548),S.e(23),S.e(671),S.e(5552)]).then((()=>()=>S(5552))))),i("@next-core/inject","1.0.55",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(2277))))),i("@next-core/loader","1.6.16",(()=>S.e(5399).then((()=>()=>S(7780))))),i("@next-core/pipes","2.0.33",(()=>S.e(6519).then((()=>()=>S(6519))))),i("@next-core/react-element","1.0.37",(()=>Promise.all([S.e(8769),S.e(7921),S.e(9435),S.e(114)]).then((()=>()=>S(114))))),i("@next-core/react-runtime","1.7.17",(()=>Promise.all([S.e(8769),S.e(1030),S.e(1280),S.e(5903),S.e(4837)]).then((()=>()=>S(4837))))),i("@next-core/runtime","1.62.1",(()=>Promise.all([S.e(9140),S.e(1030),S.e(6548),S.e(1916),S.e(1361),S.e(23),S.e(1321),S.e(2994)]).then((()=>()=>S(9140))))),i("@next-core/supply","2.3.6",(()=>Promise.all([S.e(1030),S.e(1916),S.e(9933),S.e(9559)]).then((()=>()=>S(9559))))),i("@next-core/theme","1.5.4",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(1889))))),i("@next-core/utils/general","1.7.36",(()=>S.e(871).then((()=>()=>S(871))))),i("@next-core/utils/storyboard","1.7.36",(()=>Promise.all([S.e(6548),S.e(1321),S.e(3933)]).then((()=>()=>S(3933))))),i("history","4.10.1",(()=>S.e(5384).then((()=>()=>S(5384))))),i("i18next-browser-languagedetector","7.2.2",(()=>S.e(726).then((()=>()=>S(726))))),i("i18next","22.5.1",(()=>S.e(7304).then((()=>()=>S(7304))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(9515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),i("moment","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(3144))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(4041)))))),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var t=S.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),r=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},n=(e,t)=>{e=r(e),t=r(t);for(var n=0;;){if(n>=e.length)return n<t.length&&"u"!=(typeof t[n])[0];var a=e[n],o=(typeof a)[0];if(n>=t.length)return"u"==o;var l=t[n],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&a!=l)return a<l;n++}},a=e=>{var t=e[0],r="";if(1===e.length)return"*";if(t+.5){r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,r+="u"==(typeof(i=e[o]))[0]?"-":(n>0?".":"")+(n=2,i);return r}var l=[];for(o=1;o<e.length;o++){var i=e[o];l.push(0===i?"not("+s()+")":1===i?"("+s()+" || "+s()+")":2===i?l.pop()+" "+l.pop():a(i))}return s();function s(){return l.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,t)=>{if(0 in e){t=r(t);var n=e[0],a=n<0;a&&(n=-n-1);for(var l=0,i=1,s=!0;;i++,l++){var c,d,u=i<e.length?(typeof e[i])[0]:"";if(l>=t.length||"o"==(d=(typeof(c=t[l]))[0]))return!s||("u"==u?i>n&&!a:""==u!=a);if("u"==d){if(!s||"u"!=u)return!1}else if(s)if(u==d)if(i<=n){if(c!=e[i])return!1}else{if(a?c>e[i]:c<e[i])return!1;c!=e[i]&&(s=!1)}else if("s"!=u&&"n"!=u){if(a||i<=n)return!1;s=!1,i--}else{if(i<=n||d<u!=a)return!1;s=!1}else"s"!=u&&"n"!=u&&(s=!1,i--)}}var f=[],h=f.pop.bind(f);for(l=1;l<e.length;l++){var p=e[l];f.push(1==p?h()|h():2==p?h()&h():p?o(p,t):!h())}return!!h()},l=(e,t)=>e&&S.o(e,t),i=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),c=(e,t,r,a)=>{var l=a?s(e[t]):e[t];return(t=Object.keys(l).reduce(((e,t)=>!o(r,t)||e&&!n(e,t)?e:t),0))&&l[t]},d=(e,t,r)=>{var a=r?s(e[t]):e[t];return Object.keys(a).reduce(((e,t)=>!e||!a[e].loaded&&n(e,t)?t:e),0)},u=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+a(n)+")",f=(e,t,r,n,o)=>{var l=e[r];return"No satisfying version ("+a(n)+")"+(o?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(l).map((e=>e+" from "+l[e].from)).join(", ")},h=e=>{throw new Error(e)},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},b=(e,t,r)=>r?r():((e,t)=>h("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),v=(m=e=>function(t,r,n,a,o){var l=S.I(t);return l&&l.then&&!n?l.then(e.bind(e,t,S.S[t],r,!1,a,o)):e(t,S.S[t],r,n,a,o)})(((e,t,r,n,a,o)=>{if(!l(t,r))return b(e,r,o);var s=c(t,r,a,n);return s?i(s):o?o():void h(f(t,e,r,a,n))})),g=m(((e,t,r,n,a,s)=>{if(!l(t,r))return b(e,r,s);var c=d(t,r,n);return o(a,c)||p(u(t,r,c,a)),i(t[r][c])})),x={},y={1030:()=>g("default","lodash",!1,[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(5250))))),1916:()=>g("default","moment",!1,[0],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),5310:()=>g("default","js-yaml",!1,[0],(()=>S.e(9515).then((()=>()=>S(9515))))),580:()=>g("default","@babel/parser",!1,[0],(()=>S.e(6773).then((()=>()=>S(6773))))),6548:()=>g("default","@next-core/utils/general",!1,[1,1,7,36],(()=>S.e(871).then((()=>()=>S(871))))),23:()=>g("default","@next-core/i18n",!1,[1,1,0,78],(()=>Promise.all([S.e(671),S.e(3171)]).then((()=>()=>S(5552))))),848:()=>g("default","i18next-browser-languagedetector",!1,[0],(()=>S.e(726).then((()=>()=>S(726))))),5630:()=>g("default","i18next",!1,[0],(()=>S.e(7304).then((()=>()=>S(7304))))),9933:()=>g("default","@next-core/pipes",!1,[0],(()=>S.e(6519).then((()=>()=>S(6519))))),8377:()=>g("default","@easyops-cn/brick-next-pipes",!1,[0],(()=>Promise.all([S.e(4306),S.e(1030),S.e(1916),S.e(5310)]).then((()=>()=>S(4306))))),8769:()=>v("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(4041))))),7921:()=>v("default","@next-core/element",!1,[1,1,2,18],(()=>S.e(3426).then((()=>()=>S(1045))))),9435:()=>v("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(3144))))),1280:()=>v("default","@next-core/react-element",!1,[1,1,0,37],(()=>Promise.all([S.e(7921),S.e(9435),S.e(7733)]).then((()=>()=>S(114))))),5903:()=>g("default","@next-core/runtime",!1,[1,1,62,1],(()=>Promise.all([S.e(9140),S.e(6548),S.e(1916),S.e(1361),S.e(23),S.e(1321),S.e(2994)]).then((()=>()=>S(9140))))),1361:()=>g("default","@next-core/http",!1,[0],(()=>S.e(1370).then((()=>()=>S(8989))))),1321:()=>g("default","@next-core/cook",!1,[0],(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(1122))))),1732:()=>g("default","history",!1,[0],(()=>S.e(5384).then((()=>()=>S(5384))))),1858:()=>g("default","moment/locale/zh-cn.js",!1,[0],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),4167:()=>g("default","@next-core/supply",!1,[0],(()=>Promise.all([S.e(9933),S.e(1940)]).then((()=>()=>S(9559))))),4392:()=>g("default","@next-core/utils/storyboard",!1,[1,1,7,36],(()=>S.e(6314).then((()=>()=>S(3933))))),5599:()=>g("default","@next-core/loader",!1,[0],(()=>S.e(5399).then((()=>()=>S(7780))))),9283:()=>g("default","@next-core/inject",!1,[0],(()=>Promise.all([S.e(9933),S.e(4658)]).then((()=>()=>S(2277))))),6477:()=>g("default","@next-core/theme",!1,[1,1,5,4],(()=>S.e(1889).then((()=>()=>S(1889))))),8917:()=>v("default","@next-core/react-runtime",!1,[1,1,7,17],(()=>S.e(7218).then((()=>()=>S(4837)))))},P={23:[23],580:[580],671:[848,5630],1030:[1030],1280:[1280],1321:[1321],1361:[1361],1916:[1916],2994:[1732,1858,4167,4392,5599,9283],5310:[5310],5903:[5903],6477:[6477],6519:[8377],6548:[6548],7921:[7921],8769:[8769],9435:[9435],9441:[8917],9933:[9933]},w={},S.f.consumes=(e,t)=>{S.o(P,e)&&P[e].forEach((e=>{if(S.o(x,e))return t.push(x[e]);if(!w[e]){var r=t=>{x[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};w[e]=!0;var n=t=>{delete x[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var a=y[e]();a.then?t.push(x[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={2691:0};S.f.j=(t,r)=>{var n=S.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(030|280|321|361|916)|5(310|80|903)|6(477|548|71)|23|2994|7921|8769|9435|9933)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=S.p+S.u(t),l=new Error;S.l(o,(r=>{if(S.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,n[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[o,l,i]=r,s=0;if(o.some((t=>0!==e[t]))){for(n in l)S.o(l,n)&&(S.m[n]=l[n]);i&&i(S)}for(t&&t(r);s<o.length;s++)a=o[s],S.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=globalThis.webpackChunk_next_bricks_diagram=globalThis.webpackChunk_next_bricks_diagram||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),S.nc=void 0;var E=S(9476);window["bricks/diagram"]=E})();
|
|
2
|
+
//# sourceMappingURL=index.9e01b1a6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.9e01b1a6.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAIAC,EAGAC,EAIAC,EAeAC,EAQAC,EAMAC,EAGAC,EAOAC,EAMAC,EAGAC,EAQAC,EAcAC,EAYAC,EAgBAC,EACAC,EA4BAC,EAiEAC,E,kBCvNJ,IAAIC,EAAY,CACf,eAAgB,IACRC,QAAQC,IAA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WtG,EAASA,EAC9D,CAEF,EAcF,IAAI+G,EAAuB,CAACC,EAA4BC,KACvD,IAGInI,EAAUkB,GAHTkH,EAAUC,EAAaC,GAAWH,EAGhB1F,EAAI,EAC3B,GAAG2F,EAASG,MAAMrI,GAAgC,IAAxBuH,EAAgBvH,KAAa,CACtD,IAAIF,KAAYqI,EACZxJ,EAAoBM,EAAEkJ,EAAarI,KACrCnB,EAAoByB,EAAEN,GAAYqI,EAAYrI,IAG7CsI,GAAsBA,EAAQzJ,EAClC,CAEA,IADGqJ,GAA4BA,EAA2BC,GACrD1F,EAAI2F,EAAS1F,OAAQD,IACzBvB,EAAUkH,EAAS3F,GAChB5D,EAAoBM,EAAEsI,EAAiBvG,IAAYuG,EAAgBvG,IACrEuG,EAAgBvG,GAAS,KAE1BuG,EAAgBvG,GAAW,CAC5B,EAIGsH,EAAqBhH,WAA6C,iCAAIA,WAA6C,kCAAK,GAC5HgH,EAAmB5E,QAAQqE,EAAqBlE,KAAK,KAAM,IAC3DyE,EAAmBrG,KAAO8F,EAAqBlE,KAAK,KAAMyE,EAAmBrG,KAAK4B,KAAKyE,G,KCrFvF3J,EAAoBmE,QAAK1D,ECGzB,IAAImJ,EAAsB5J,EAAoB,M","sources":["webpack:///webpack/runtime/load script","webpack:///webpack/runtime/consumes","webpack:///webpack/container-entry","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/node module decorator","webpack:///webpack/runtime/sharing","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/runtime/nonce","webpack:///webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@next-bricks/diagram:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar exists = (scope, key) => {\n\treturn scope && __webpack_require__.o(scope, key);\n}\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar eagerOnly = (versions) => {\n\treturn Object.keys(versions).reduce((filtered, version) => {\n\t\t\tif (versions[version].eager) {\n\t\t\t\tfiltered[version] = versions[version];\n\t\t\t}\n\t\t\treturn filtered;\n\t}, {});\n};\nvar findLatestVersion = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key];\n};\nvar findSatisfyingVersion = (scope, key, requiredVersion, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion, eager) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \")\" + (eager ? \" for eager consumption\" : \"\") + \" of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar fail = (msg) => {\n\tthrow new Error(msg);\n}\nvar failAsNotExist = (scopeName, key) => {\n\treturn fail(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n}\nvar warn = /*#__PURE__*/ (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar init = (fn) => (function(scopeName, key, eager, c, d) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then && !eager) {\n\t\treturn promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], key, false, c, d));\n\t}\n\treturn fn(scopeName, __webpack_require__.S[scopeName], key, eager, c, d);\n});\n\nvar useFallback = (scopeName, key, fallback) => {\n\treturn fallback ? fallback() : failAsNotExist(scopeName, key);\n}\nvar load = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager))\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadStrictVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\tif (fallback) return fallback();\n\tfail(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\treturn get(scope[key][version]);\n});\nvar loadSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\twarn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar loadStrictSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\tfail(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t1030: () => (loadSingletonVersion(\"default\", \"lodash\", false, [1,4,17,21], () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(5250))))))),\n\t1916: () => (loadSingletonVersion(\"default\", \"moment\", false, [0], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(9420))))))),\n\t5310: () => (loadSingletonVersion(\"default\", \"js-yaml\", false, [0], () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(9515))))))),\n\t580: () => (loadSingletonVersion(\"default\", \"@babel/parser\", false, [0], () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(6773))))))),\n\t6548: () => (loadSingletonVersion(\"default\", \"@next-core/utils/general\", false, [1,1,7,36], () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(871))))))),\n\t23: () => (loadSingletonVersion(\"default\", \"@next-core/i18n\", false, [1,1,0,78], () => (Promise.all([__webpack_require__.e(671), __webpack_require__.e(3171)]).then(() => (() => (__webpack_require__(5552))))))),\n\t848: () => (loadSingletonVersion(\"default\", \"i18next-browser-languagedetector\", false, [0], () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(726))))))),\n\t5630: () => (loadSingletonVersion(\"default\", \"i18next\", false, [0], () => (__webpack_require__.e(7304).then(() => (() => (__webpack_require__(7304))))))),\n\t9933: () => (loadSingletonVersion(\"default\", \"@next-core/pipes\", false, [0], () => (__webpack_require__.e(6519).then(() => (() => (__webpack_require__(6519))))))),\n\t8377: () => (loadSingletonVersion(\"default\", \"@easyops-cn/brick-next-pipes\", false, [0], () => (Promise.all([__webpack_require__.e(4306), __webpack_require__.e(1030), __webpack_require__.e(1916), __webpack_require__.e(5310)]).then(() => (() => (__webpack_require__(4306))))))),\n\t8769: () => (loadStrictVersion(\"default\", \"react\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(4041))))))),\n\t7921: () => (loadStrictVersion(\"default\", \"@next-core/element\", false, [1,1,2,18], () => (__webpack_require__.e(3426).then(() => (() => (__webpack_require__(1045))))))),\n\t9435: () => (loadStrictVersion(\"default\", \"react-dom\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(3144).then(() => (() => (__webpack_require__(3144))))))),\n\t1280: () => (loadStrictVersion(\"default\", \"@next-core/react-element\", false, [1,1,0,37], () => (Promise.all([__webpack_require__.e(7921), __webpack_require__.e(9435), __webpack_require__.e(7733)]).then(() => (() => (__webpack_require__(114))))))),\n\t5903: () => (loadSingletonVersion(\"default\", \"@next-core/runtime\", false, [1,1,62,1], () => (Promise.all([__webpack_require__.e(9140), __webpack_require__.e(6548), __webpack_require__.e(1916), __webpack_require__.e(1361), __webpack_require__.e(23), __webpack_require__.e(1321), __webpack_require__.e(2994)]).then(() => (() => (__webpack_require__(9140))))))),\n\t1361: () => (loadSingletonVersion(\"default\", \"@next-core/http\", false, [0], () => (__webpack_require__.e(1370).then(() => (() => (__webpack_require__(8989))))))),\n\t1321: () => (loadSingletonVersion(\"default\", \"@next-core/cook\", false, [0], () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(1122))))))),\n\t1732: () => (loadSingletonVersion(\"default\", \"history\", false, [0], () => (__webpack_require__.e(5384).then(() => (() => (__webpack_require__(5384))))))),\n\t1858: () => (loadSingletonVersion(\"default\", \"moment/locale/zh-cn.js\", false, [0], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(1329))))))),\n\t4167: () => (loadSingletonVersion(\"default\", \"@next-core/supply\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(1940)]).then(() => (() => (__webpack_require__(9559))))))),\n\t4392: () => (loadSingletonVersion(\"default\", \"@next-core/utils/storyboard\", false, [1,1,7,36], () => (__webpack_require__.e(6314).then(() => (() => (__webpack_require__(3933))))))),\n\t5599: () => (loadSingletonVersion(\"default\", \"@next-core/loader\", false, [0], () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(7780))))))),\n\t9283: () => (loadSingletonVersion(\"default\", \"@next-core/inject\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(4658)]).then(() => (() => (__webpack_require__(2277))))))),\n\t6477: () => (loadSingletonVersion(\"default\", \"@next-core/theme\", false, [1,1,5,4], () => (__webpack_require__.e(1889).then(() => (() => (__webpack_require__(1889))))))),\n\t8917: () => (loadStrictVersion(\"default\", \"@next-core/react-runtime\", false, [1,1,7,17], () => (__webpack_require__.e(7218).then(() => (() => (__webpack_require__(4837)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"23\": [\n\t\t23\n\t],\n\t\"580\": [\n\t\t580\n\t],\n\t\"671\": [\n\t\t848,\n\t\t5630\n\t],\n\t\"1030\": [\n\t\t1030\n\t],\n\t\"1280\": [\n\t\t1280\n\t],\n\t\"1321\": [\n\t\t1321\n\t],\n\t\"1361\": [\n\t\t1361\n\t],\n\t\"1916\": [\n\t\t1916\n\t],\n\t\"2994\": [\n\t\t1732,\n\t\t1858,\n\t\t4167,\n\t\t4392,\n\t\t5599,\n\t\t9283\n\t],\n\t\"5310\": [\n\t\t5310\n\t],\n\t\"5903\": [\n\t\t5903\n\t],\n\t\"6477\": [\n\t\t6477\n\t],\n\t\"6519\": [\n\t\t8377\n\t],\n\t\"6548\": [\n\t\t6548\n\t],\n\t\"7921\": [\n\t\t7921\n\t],\n\t\"8769\": [\n\t\t8769\n\t],\n\t\"9435\": [\n\t\t9435\n\t],\n\t\"9441\": [\n\t\t8917\n\t],\n\t\"9933\": [\n\t\t9933\n\t]\n};\nvar startedInstallModules = {};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tif(!startedInstallModules[id]) {\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tstartedInstallModules[id] = true;\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t\t}\n\t\t});\n\t}\n}","var moduleMap = {\n\t\"./eo-diagram\": () => {\n\t\treturn Promise.all(/* eo-diagram */[__webpack_require__.e(7920), __webpack_require__.e(8769), __webpack_require__.e(1030), __webpack_require__.e(7921), __webpack_require__.e(1280), __webpack_require__.e(6477), __webpack_require__.e(5903), __webpack_require__.e(9441), __webpack_require__.e(1361), __webpack_require__.e(3233), __webpack_require__.e(3039)]).then(() => (() => ((__webpack_require__(1508)))));\n\t},\n\t\"./editable-label\": () => {\n\t\treturn Promise.all(/* editable-label */[__webpack_require__.e(8769), __webpack_require__.e(7921), __webpack_require__.e(1280), __webpack_require__.e(6477), __webpack_require__.e(6006)]).then(() => (() => ((__webpack_require__(3328)))));\n\t},\n\t\"./eo-draw-canvas\": () => {\n\t\treturn Promise.all(/* eo-draw-canvas */[__webpack_require__.e(7920), __webpack_require__.e(5670), __webpack_require__.e(8769), __webpack_require__.e(1030), __webpack_require__.e(7921), __webpack_require__.e(6548), __webpack_require__.e(1280), __webpack_require__.e(6477), __webpack_require__.e(9435), __webpack_require__.e(5903), __webpack_require__.e(9441), __webpack_require__.e(296), __webpack_require__.e(8939)]).then(() => (() => ((__webpack_require__(9068)))));\n\t},\n\t\"./experimental-node\": () => {\n\t\treturn Promise.all(/* experimental-node */[__webpack_require__.e(8769), __webpack_require__.e(7921), __webpack_require__.e(1280), __webpack_require__.e(6477), __webpack_require__.e(4422)]).then(() => (() => ((__webpack_require__(5568)))));\n\t},\n\t\"./eo-display-canvas\": () => {\n\t\treturn Promise.all(/* eo-display-canvas */[__webpack_require__.e(7920), __webpack_require__.e(5670), __webpack_require__.e(8769), __webpack_require__.e(1030), __webpack_require__.e(7921), __webpack_require__.e(6548), __webpack_require__.e(1280), __webpack_require__.e(6477), __webpack_require__.e(9435), __webpack_require__.e(5903), __webpack_require__.e(9441), __webpack_require__.e(296), __webpack_require__.e(8939), __webpack_require__.e(9823)]).then(() => (() => ((__webpack_require__(6094)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"chunks/\" + ({\"3039\":\"eo-diagram\",\"4422\":\"experimental-node\",\"6006\":\"editable-label\",\"8939\":\"eo-draw-canvas\",\"9823\":\"eo-display-canvas\"}[chunkId] || chunkId) + \".\" + {\"114\":\"3dc39f03\",\"296\":\"c25216ac\",\"726\":\"36afa7a3\",\"871\":\"6fee04f1\",\"1045\":\"fc9b1386\",\"1122\":\"1957b96a\",\"1370\":\"ff678c2c\",\"1889\":\"cd9c8220\",\"1940\":\"d4e8c5b9\",\"2052\":\"a8ed8891\",\"2277\":\"83e80fbf\",\"3039\":\"a33d3ced\",\"3144\":\"b60bf1f3\",\"3171\":\"373e8a96\",\"3233\":\"e2b04c10\",\"3426\":\"fb6ffa15\",\"3933\":\"8b394359\",\"4041\":\"d0dafc02\",\"4306\":\"ace26fca\",\"4422\":\"6a8615d0\",\"4658\":\"df491375\",\"4837\":\"c1881500\",\"5250\":\"aa8a219f\",\"5384\":\"b76b4b24\",\"5399\":\"b1b4981d\",\"5552\":\"189bdeab\",\"5670\":\"73de56d6\",\"6006\":\"90e84065\",\"6314\":\"8105e59b\",\"6519\":\"4ddc3bd5\",\"6773\":\"ef4413a1\",\"7218\":\"9fa75d3e\",\"7304\":\"2ae2d399\",\"7721\":\"e7aaf5c2\",\"7733\":\"49c9fd7f\",\"7920\":\"367555e2\",\"8939\":\"f4edccba\",\"8989\":\"1bb9349d\",\"9140\":\"506e9829\",\"9441\":\"e15ae062\",\"9515\":\"2b74919b\",\"9559\":\"f28defcc\",\"9823\":\"24f8f219\",\"9844\":\"4a3a83f7\"}[chunkId] + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"@next-bricks/diagram\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@babel/parser\", \"7.27.2\", () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(6773))))));\n\t\t\tregister(\"@easyops-cn/brick-next-pipes\", \"0.7.2\", () => (Promise.all([__webpack_require__.e(4306), __webpack_require__.e(1030), __webpack_require__.e(1916), __webpack_require__.e(5310)]).then(() => (() => (__webpack_require__(4306))))));\n\t\t\tregister(\"@next-core/cook\", \"2.5.9\", () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(1122))))));\n\t\t\tregister(\"@next-core/element\", \"1.2.18\", () => (__webpack_require__.e(1045).then(() => (() => (__webpack_require__(1045))))));\n\t\t\tregister(\"@next-core/http\", \"1.2.13\", () => (__webpack_require__.e(8989).then(() => (() => (__webpack_require__(8989))))));\n\t\t\tregister(\"@next-core/i18n\", \"1.0.78\", () => (Promise.all([__webpack_require__.e(6548), __webpack_require__.e(23), __webpack_require__.e(671), __webpack_require__.e(5552)]).then(() => (() => (__webpack_require__(5552))))));\n\t\t\tregister(\"@next-core/inject\", \"1.0.55\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(9933), __webpack_require__.e(2277)]).then(() => (() => (__webpack_require__(2277))))));\n\t\t\tregister(\"@next-core/loader\", \"1.6.16\", () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(7780))))));\n\t\t\tregister(\"@next-core/pipes\", \"2.0.33\", () => (__webpack_require__.e(6519).then(() => (() => (__webpack_require__(6519))))));\n\t\t\tregister(\"@next-core/react-element\", \"1.0.37\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(7921), __webpack_require__.e(9435), __webpack_require__.e(114)]).then(() => (() => (__webpack_require__(114))))));\n\t\t\tregister(\"@next-core/react-runtime\", \"1.7.17\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(1030), __webpack_require__.e(1280), __webpack_require__.e(5903), __webpack_require__.e(4837)]).then(() => (() => (__webpack_require__(4837))))));\n\t\t\tregister(\"@next-core/runtime\", \"1.62.1\", () => (Promise.all([__webpack_require__.e(9140), __webpack_require__.e(1030), __webpack_require__.e(6548), __webpack_require__.e(1916), __webpack_require__.e(1361), __webpack_require__.e(23), __webpack_require__.e(1321), __webpack_require__.e(2994)]).then(() => (() => (__webpack_require__(9140))))));\n\t\t\tregister(\"@next-core/supply\", \"2.3.6\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(1916), __webpack_require__.e(9933), __webpack_require__.e(9559)]).then(() => (() => (__webpack_require__(9559))))));\n\t\t\tregister(\"@next-core/theme\", \"1.5.4\", () => (Promise.all([__webpack_require__.e(1889), __webpack_require__.e(2052)]).then(() => (() => (__webpack_require__(1889))))));\n\t\t\tregister(\"@next-core/utils/general\", \"1.7.36\", () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(871))))));\n\t\t\tregister(\"@next-core/utils/storyboard\", \"1.7.36\", () => (Promise.all([__webpack_require__.e(6548), __webpack_require__.e(1321), __webpack_require__.e(3933)]).then(() => (() => (__webpack_require__(3933))))));\n\t\t\tregister(\"history\", \"4.10.1\", () => (__webpack_require__.e(5384).then(() => (() => (__webpack_require__(5384))))));\n\t\t\tregister(\"i18next-browser-languagedetector\", \"7.2.2\", () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(726))))));\n\t\t\tregister(\"i18next\", \"22.5.1\", () => (__webpack_require__.e(7304).then(() => (() => (__webpack_require__(7304))))));\n\t\t\tregister(\"js-yaml\", \"3.14.1\", () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(9515))))));\n\t\t\tregister(\"lodash\", \"4.17.21\", () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(5250))))));\n\t\t\tregister(\"moment/locale/zh-cn.js\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(1329))))));\n\t\t\tregister(\"moment\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(9420))))));\n\t\t\tregister(\"react-dom\", \"0.0.0-experimental-ee8509801-20230117\", () => (Promise.all([__webpack_require__.e(3144), __webpack_require__.e(8769)]).then(() => (() => (__webpack_require__(3144))))));\n\t\t\tregister(\"react\", \"0.0.0-experimental-ee8509801-20230117\", () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(4041))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2691: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(1(030|280|321|361|916)|5(310|80|903)|6(477|548|71)|23|2994|7921|8769|9435|9933)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunk_next_bricks_diagram\"] = globalThis[\"webpackChunk_next_bricks_diagram\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(9476);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","exists","get","eagerOnly","findSatisfyingVersion","findSingletonVersionKey","getInvalidSingletonVersionMessage","getInvalidVersionMessage","fail","warn","init","useFallback","loadStrictVersion","loadSingletonVersion","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","nmd","paths","children","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","replace","p","str","split","map","exec","apply","b","t","range","pop","entry","filtered","requiredVersion","scopeName","join","msg","console","fallback","failAsNotExist","promise","satisfyingVersion","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
|
package/dist/manifest.json
CHANGED
|
@@ -138,6 +138,46 @@
|
|
|
138
138
|
"parts": [],
|
|
139
139
|
"description": "构件 `eo-diagram`"
|
|
140
140
|
},
|
|
141
|
+
{
|
|
142
|
+
"name": "diagram.editable-label",
|
|
143
|
+
"properties": [
|
|
144
|
+
{
|
|
145
|
+
"name": "label",
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "type",
|
|
150
|
+
"type": "LabelType"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "readOnly",
|
|
154
|
+
"type": "boolean"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"events": [
|
|
158
|
+
{
|
|
159
|
+
"name": "label.editing.change",
|
|
160
|
+
"detail": {
|
|
161
|
+
"type": "boolean"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "label.change",
|
|
166
|
+
"detail": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"slots": [],
|
|
172
|
+
"methods": [
|
|
173
|
+
{
|
|
174
|
+
"name": "enableEditing",
|
|
175
|
+
"params": []
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"parts": [],
|
|
179
|
+
"description": "构件 `diagram.editable-label`"
|
|
180
|
+
},
|
|
141
181
|
{
|
|
142
182
|
"name": "eo-draw-canvas",
|
|
143
183
|
"properties": [
|
|
@@ -503,46 +543,6 @@
|
|
|
503
543
|
"parts": [],
|
|
504
544
|
"description": "用于手工绘图的画布。\n\n注意:将配套另外一个用于展示的画布构件。"
|
|
505
545
|
},
|
|
506
|
-
{
|
|
507
|
-
"name": "diagram.editable-label",
|
|
508
|
-
"properties": [
|
|
509
|
-
{
|
|
510
|
-
"name": "label",
|
|
511
|
-
"type": "string"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"name": "type",
|
|
515
|
-
"type": "LabelType"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"name": "readOnly",
|
|
519
|
-
"type": "boolean"
|
|
520
|
-
}
|
|
521
|
-
],
|
|
522
|
-
"events": [
|
|
523
|
-
{
|
|
524
|
-
"name": "label.editing.change",
|
|
525
|
-
"detail": {
|
|
526
|
-
"type": "boolean"
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"name": "label.change",
|
|
531
|
-
"detail": {
|
|
532
|
-
"type": "string"
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
],
|
|
536
|
-
"slots": [],
|
|
537
|
-
"methods": [
|
|
538
|
-
{
|
|
539
|
-
"name": "enableEditing",
|
|
540
|
-
"params": []
|
|
541
|
-
}
|
|
542
|
-
],
|
|
543
|
-
"parts": [],
|
|
544
|
-
"description": "构件 `diagram.editable-label`"
|
|
545
|
-
},
|
|
546
546
|
{
|
|
547
547
|
"name": "diagram.experimental-node",
|
|
548
548
|
"properties": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/diagram",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/diagram",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"postpublish": "mv package.json.bak package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@next-core/build-next-bricks": "^1.23.
|
|
39
|
-
"@next-core/test-next": "^
|
|
38
|
+
"@next-core/build-next-bricks": "^1.23.13",
|
|
39
|
+
"@next-core/test-next": "^2.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@next-bricks/basic": "*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e5f0fcf46f2de33066b006e98958b3d7a45e1959"
|
|
45
45
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_diagram=globalThis.webpackChunk_next_bricks_diagram||[]).push([[296],{37:(e,t,n)=>{n.d(t,{C:()=>a});var o=n(1030),i=n(531),r=n(9127),l=n(4516);function a(e,t){let{defaultNodeSize:n,layoutOptions:a,isInitialize:c}=t;const s=null!=e?e:[];return c&&"layered-architecture"===(0,o.get)(a,"initialLayout")&&function(e){const t=e.filter((e=>"node"===e.type&&!(0,o.isNil)(e.containerId)));if(!t.length)return;const n=e.filter(i.WW),a=e.filter(i.t2),c={},s={};(0,o.forEach)((0,o.groupBy)(t,"containerId"),((e,t)=>{c[t]=e,s[t]=new Set(e.map((e=>e.id)))})),n.forEach((e=>{for(const[t,n]of Object.entries(s))if(n.has(e.source)&&n.has(e.target)){c[t].push(e);break}}));let d=0,u=0,v=[];const f=[];a.filter((e=>c[e.id])).sort(((e,t)=>(0,o.get)(t,"view.level",1)-(0,o.get)(e,"view.level",1))).map((e=>e.id)).forEach((e=>{const t=a.find((t=>t.id===e)),n=c[e];["top","bottom"].includes((0,o.get)(t,"view.direction","top"))&&(d+=40);const{getNodeView:s}=(0,r.C)({cells:n});v=n.filter((e=>"node"===e.type)).map((e=>{if((0,i.kN)(e.view)){const t=s(e.id);e.view={...e.view,x:t.x,y:t.y+d,width:t.width,height:t.height}}return e}));const h=(0,l.Z)(v),{height:m,width:g}=h;(0,i.VF)(t.view)&&(t.view={...t.view,...h},g>u&&(u=g),f.push(t)),d+=m+50})),f.forEach((e=>{e.view.width=u}))}(s),s.map((e=>{var t,o;return!(0,i.vC)(e)||void 0!==(null===(t=e.view)||void 0===t?void 0:t.width)&&void 0!==(null===(o=e.view)||void 0===o?void 0:o.height)?e:{...e,view:{width:n[0],height:n[1],...e.view}}}))}},227:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(4197);function i(e,t,n,i){const r=[];if(t){const n=new Set;for(const o of e)"edge"===o.type&&o.source===t.source.id&&n.add(o.target);for(const t of e)switch(t.type){case"node":n.has(t.id)&&r.push(t);break;case"decorator":i&&"text"!=t.decorator&&!n.has(t.id)||r.push(t);break;default:r.push(t)}}else switch(null==n?void 0:n.type){case"multi":{const t=new Map,i=new Set,l=new Set;for(const e of n.targets)"node"===e.type&&(i.add(e.id),l.add(e.id));for(const a of e)"node"===a.type?t.set(a.id,a):"edge"===a.type?i.has(a.source)?l.add(a.target):i.has(a.target)?l.add(a.source):(0,o.Q)(a,n)||r.push(a):(0,o.Q)(a,n)||r.push(a);for(const[e,n]of t)l.has(e)||r.push(n);break}case"node":{const t=new Map,o=new Set([n.id]);for(const i of e)"node"===i.type?t.set(i.id,i):"edge"===i.type?i.source===n.id?o.add(i.target):i.target===n.id?o.add(i.source):r.push(i):r.push(i);for(const[e,n]of t)o.has(e)||r.push(n);break}case"edge":for(const t of e)("edge"===t.type?(0,o.Q)(t,n):"node"===t.type&&(t.id===n.source||t.id===n.target))||r.push(t)}return r}},531:(e,t,n)=>{n.d(t,{N:()=>i,OD:()=>f,VF:()=>h,WW:()=>a,_m:()=>v,bo:()=>d,jw:()=>g,kN:()=>m,mH:()=>r,nv:()=>c,o6:()=>s,om:()=>p,t2:()=>u,vC:()=>l});var o=n(1030);function i(e){return"node"===e.type}function r(e){return"decorator"===e.type}function l(e){return"node"===e.type}function a(e){return"edge"===e.type}function c(e){return"node"===e.type||"edge"===e.type}function s(e){return"node"===e.type||"decorator"===e.type&&"area"===e.decorator}function d(e,t){return"node"===e.type||!!t&&"decorator"===e.type&&"area"===e.decorator}function u(e){return"decorator"===e.type&&"container"===e.decorator}function v(e){return"decorator"===e.type&&"line"===e.decorator}function f(e){return!["manual",void 0].includes(e)}function h(e){return!(e.width&&e.height)}function m(e){return(0,o.isNil)(e.x)||(0,o.isNil)(e.y)}function g(e){return!("polyline"===e||"curve"===e)}function p(e){return!!e.edge}},967:(e,t,n)=>{n.d(t,{V:()=>u,P:()=>v});var o=n(1030),i=n(8875),r=n(4059);function l(e,t){return{x:e.x+e.width/2,y:e.y+e.height/2,width:e.width+t,height:e.height+t}}var a=n(3033),c=n(3188),s=n(531);const d=["right","top","left","bottom"];function u(e,t,n,u,p){var y,w,x,E,k,b;const{type:M,vertices:C,exitPosition:I,entryPosition:L}=null!=n?n:{};if((0,s.jw)(M))return"decorator"===p?[{x:e.x,y:e.y},...null!=C?C:[],{x:t.x,y:t.y}]:(0,c.h)(l(e,I?a.XK:a.p6),l(t,L?a.XK:a.p6),u,n);if(null!=C&&C.length){const n=C[0],o=C[C.length-1];let i,r,l,a;if(I)i=h(e,I);else{let r;if(C.length>1?r=C[1]:L&&(r=h(t,L)),r)i=m(n,e,n.y===r.y);else{const n=o.y<t.y||o.y>t.y+t.height?"ns":"ew";({point:i,direction:l}=g(e,t,C,n))}}if(L)r=h(t,L);else{let i;if(C.length>1?i=C[C.length-2]:I&&(i=h(e,I)),i)r=m(o,t,o.y===i.y);else{const o=n.x<e.x||n.x>e.x+e.width?"ew":"ns";({point:r,direction:a}=g(t,e,C.slice().reverse(),o))}}const{x:c,y:s}=i,{x:d,y:u}=r,f=[i,...C,r],p=[...C];return n&&n.x!==c&&n.y!==s&&p.unshift("ns"===l?{x:c,y:n.y}:"ew"===l?{x:n.x,y:s}:n.x===f[2].x?{x:c,y:n.y}:{x:n.x,y:s}),o&&o.x!==d&&o.y!==u&&p.push("ns"===a?{x:d,y:o.y}:"ew"===a?{x:o.x,y:u}:o.x===f[f.length-3].x?{x:d,y:o.y}:{x:o.x,y:u}),[i,...v(i,p,r),r]}const S=null!=I?I:f(t,e),N=null!=L?L:f(e,t),{x:z,y:P}=h(e,S),{x:R,y:A}=h(t,N),T=(0,i.X)(),H=null!==(y=null===(w=T.find((e=>e.x===S.x&&e.y===S.y)))||void 0===w?void 0:w.d)&&void 0!==y?y:d,W=null!==(x=null===(E=T.find((e=>e.x===N.x&&e.y===N.y)))||void 0===E?void 0:E.d)&&void 0!==x?x:d,j=[...H],Z=[...W];z<R?((0,o.pull)(j,"left"),(0,o.pull)(Z,"right")):((0,o.pull)(j,"right"),(0,o.pull)(Z,"left")),P<A?((0,o.pull)(j,"top"),(0,o.pull)(Z,"bottom")):((0,o.pull)(j,"bottom"),(0,o.pull)(Z,"top"));const D=null!==(k=j[0])&&void 0!==k?k:H[0],$=null!==(b=Z[0])&&void 0!==b?b:W[0],B="left"===D||"right"===D?S.y:S.x,O="left"===$||"right"===$?N.y:N.x;return(0,r.o)(l(e,a.XK),l(t,a.XK),D,$,B,O)}function v(e,t,n){const o=[];let i,r=e,l=0;for(;l<t.length;){const e=t[l],a=e.x!==r.x,c=e.y!==r.y;if(a||c){const c=a?"ew":"ns";if(c!==i){const a=l===t.length-1?n:t[l+1],s=a.x!==e.x,d=a.y!==e.y;(s||d)&&c!==(s?"ew":"ns")&&(i=c,o.push(e),r=e)}}l++}return o}function f(e,t){return t.y+t.height<e.y?{x:.5,y:1}:t.y>e.y+e.height?{x:.5,y:0}:t.x<e.x?{x:1,y:.5}:{x:0,y:.5}}function h(e,t){const n=a.XK/2;return{x:e.x-n+t.x*(e.width+a.XK),y:e.y-n+t.y*(e.height+a.XK)}}function m(e,t,n){let o,i,r,l,c;if(n?(o="y",i="x",r="height",l="width"):(o="x",i="y",r="width",l="height"),t[i]+t[l]<e[i]&&(c={[o]:.5,[i]:1}),t[i]>e[i]&&(c={[o]:.5,[i]:0}),c)return h(t,c);const s=t[o]<e[o]?1:0;return{[o]:t[o]-a.XK/2+s*(t[r]+a.XK),[i]:e[i]}}function g(e,t,n,o){let i,r,l,a,c,s,d,u;"ns"===o?(l="x",a="y",c="width",s="height",d="ns",u="ew"):(l="y",a="x",c="height",s="width",d="ew",u="ns");const v=n[0];if(v[l]>=e[l]&&v[l]<=e[l]+e[c])if(v[a]>e[a]+e[s])i={[l]:v[l],[a]:e[a]+e[s]},r=d;else if(v[a]<e[a])i={[l]:v[l],[a]:e[a]},r=d;else{var f;const o=null!==(f=n[1])&&void 0!==f?f:t;i={[l]:v[l],[a]:o[a]<v[a]?v[a]:e[a]+e[s]},r=d}else v[a]<e[a]?(i={[l]:e[l]+e[c]/2,[a]:e[a]},r=d):v[a]>e[a]+e[s]?(i={[l]:e[l]+e[c]/2,[a]:e[a]+e[s]},r=d):v[l]<e[l]?(i={[l]:e[l],[a]:v[a]},r=u):(i={[l]:e[l]+e[c],[a]:v[a]},r=u);return{point:i,direction:r}}},1103:(e,t,n)=>{n.d(t,{X:()=>u});var o=n(8769),i=n.n(o),r=n(3373),l=n.n(r),a=n(8653),c=n(9978),s=n(967),d=n(7531);function u(e){let{transform:t,lineSettings:n,options:r}=e;const[u,v]=(0,o.useState)(null),{hoverState:f,smartConnectLineState:h,setSmartConnectLineState:m}=(0,c.s)();(0,o.useEffect)((()=>{if(h)return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),o;function e(e){v([(e.clientX-t.x-h.offset[0])/t.k,(e.clientY-t.y-h.offset[1])/t.k])}function n(e){e.preventDefault(),o()}function o(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n),v(null),m(null)}}),[m,h,t]);const g=(0,o.useMemo)((()=>{const e=function(e,t,n,o){if(!e||!t&&void 0===(null==n?void 0:n.activePointIndex))return null;const i=e.source.view;if(void 0!==(null==n?void 0:n.activePointIndex))return(0,s.V)(i,n.cell.view,{...o,exitPosition:e.exitPosition,entryPosition:n.relativePoints[n.activePointIndex]});const[r,l]=t;return(0,s.V)(i,{x:r,y:l,width:0,height:0},{...o,exitPosition:e.exitPosition})}(h,u,f,n);return(0,a.S)(e,"curve"===(null==n?void 0:n.type)?n.curveType:"curveLinear",0,1)}),[u,f,h,n]);let p,y;const w=(0,d.I)(r);for(const e of w)"start"===e.placement?p=r.$markerStartUrl:y=r.$markerEndUrl;return i().createElement("path",{className:l()("connect-line",{connecting:!(!h||!u)}),d:g,fill:"none",stroke:r.strokeColor,strokeWidth:r.strokeWidth,markerStart:p,markerEnd:y})}},1484:(e,t,n)=>{n.d(t,{g:()=>m});var o=n(8769),i=n(7566),r=n(9047),l=n(3033),a=n(531),c=n(9314),s=n(8802),d=n(1489),u=n(6170),v=n(9127);const f=new Map([["center",.5],["left",0],["right",1],["top",0],["bottom",1]]);function h(e,t){if("string"==typeof e){const n=f.get(e);if(void 0!==n)return n;const o=e.match(/^(-?\d+(?:\.\d+)?)%$/);if(o)return Number(o[1])/100;console.error("Unexpected align origin %s:",t,e)}else{if("number"==typeof e)return e;console.error("Unexpected align origin %s, expected %s, received %s:",t,"string | number",typeof e,e)}return.5}function m(e){let{layout:t,layoutOptions:n,autoSize:f,rootRef:m,cells:g,zoomable:p,zoomer:y,scaleRange:w,layoutKey:x,allowEdgeToArea:E,autoCenterWhenCellsChange:k,dispatch:b}=e;const[M,C]=(0,o.useState)("force"!==t&&"dagre"!==t),I=(0,o.useRef)(x),L=(0,o.useCallback)((()=>++I.current),[]),[S,N]=function(e){let{rootRef:t,cells:n,layoutInitialized:u,zoomable:v,zoomer:f,scaleRange:h,autoCenterWhenCellsChange:m,autoSize:g,padding:p}=e;const[y,w]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{n.some((e=>(0,a.N)(e)||(0,a.mH)(e)))&&!m||w(!1)}),[n,m]),(0,o.useEffect)((()=>{const e=t.current;if(!e||!u||y||!n.some((e=>(0,a.N)(e)||(0,a.mH)(e)))||n.some((e=>(0,a.N)(e)&&!e[l.CV])))return;const o=(0,c.S)(n);let m=e.clientWidth,x=e.clientHeight;const E=!(null==g||!g.width),k=!(null==g||!g.height),b=(0,s.D)(null!=p?p:l.rn);var M,C,I,L;E&&(m=Math.min(Math.max(o.width+b[1]+b[3],null!==(M=g.minWidth)&&void 0!==M?M:0),null!==(C=g.maxWidth)&&void 0!==C?C:1/0),e.style.minWidth=`${m}px`),k&&(x=Math.min(Math.max(o.height+b[0]+b[2],null!==(I=g.minHeight)&&void 0!==I?I:0),null!==(L=g.maxHeight)&&void 0!==L?L:1/0),e.style.minHeight=`${x}px`);const{k:S,x:N,y:z}=(0,d.P)(o,{canvasWidth:m,canvasHeight:x,canvasPadding:b,scaleRange:v?h:void 0});f.transform((0,i.A)(e),new r.uV(S,N,z)),w(!0)}),[n,y,u,t,h,v,f,g,p]),[y,w]}({rootRef:m,layoutInitialized:M,cells:g,zoomable:p,zoomer:y,scaleRange:w,autoCenterWhenCellsChange:k,autoSize:f,padding:null==n?void 0:n.padding}),z=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(g.some((e=>(0,a.N)(e)&&!e[l.CV]))||0===g.length)return;if("force"!==t&&"dagre"!==t)return void C(!0);if(I.current!==x||(e=z.current,o=g.filter(a.nv),(null==e?void 0:e.length)===o.length&&e.every(((e,t)=>e===o[t]))))return;var e,o;let i,r;({getNodeView:i,nodePaddings:r}="force"===t?(0,u.k)({cells:g,layoutOptions:n,allowEdgeToArea:E}):(0,v.C)({cells:g,layoutOptions:n,allowEdgeToArea:E}));const c=function(e){const t=null!=e?e:[.5,.5];return[h(t[0],"x"),h(t[1],"y")]}(null==n?void 0:n.alignOrigin),s=g.map((e=>{if(E&&(0,a.o6)(e)||(0,a.N)(e)){const t=i(e.id);return{...e,view:{...e.view,x:t.x-t.width*c[0]+r[3],y:t.y-t.height*c[1]+r[0]},[l.xc]:!0}}return e}));z.current=s.filter(a.nv),b({type:"update-cells",payload:s}),C(!0)}),[g,b,t,x,n,E]),{centered:S,setCentered:N,getNextLayoutKey:L}}},1489:(e,t,n)=>{function o(e,t){let{canvasWidth:n,canvasHeight:o,canvasPadding:i,scaleRange:r}=t;const{left:l,top:a,width:c,height:s,empty:d}=e,[u,v,f,h]=null!=i?i:[0,0,0,0],m=n-h-v,g=o-u-f,p=r&&!d&&(c>m||s>g)?Math.max(Math.min(m/c,g/s,r[1]),r[0]):1;return{x:d?0:(m-c*p)/2+h-l*p,y:d?0:(g-s*p)/2+u-a*p,k:p}}n.d(t,{P:()=>o})},1609:(e,t,n)=>{n.d(t,{m:()=>D});var o=n(8769),i=n.n(o),r=n(3373),l=n.n(r),a=n(531),c=n(1030),s=n(9126),d=n(3033),u=n(8653),v=n(7531),f=n(140),h=n(7390);function m(e){let{edge:t,position:n,offset:o,label:r,text:a,onRendered:c,onClick:s}=e;if(!r&&!a)return null;const d=!(!n||!o);return i().createElement("foreignObject",{className:l()("line-label-container",{ready:d}),x:d?n[0]+o[0]:0,y:d?n[1]+o[1]:0,onClick:s},r?i().createElement("div",{className:"line-label label"},i().createElement(p,{edge:t,label:r,onRendered:c})):i().createElement(g,{text:a,onRendered:c}))}function g(e){let{text:t,onRendered:n}=e;const r=(0,o.useCallback)((e=>{null==n||n(e)}),[n]);return i().createElement("div",{className:"line-label text",ref:r,style:t.style},t.content)}function p(e){let{edge:t,label:n,onRendered:r}=e;const l=(0,o.useMemo)((()=>(0,f.checkIfOfComputed)(n)?n.useBrick:null),[n]),a=(0,o.useMemo)((()=>({edge:t})),[t]);(0,o.useEffect)((()=>{l||setTimeout((()=>{null==r||r(null)}))}),[r,l]),(0,o.useEffect)((()=>()=>{null==r||r(null)}),[]);const c=(0,o.useCallback)((e=>{e&&setTimeout((()=>{null==r||r(e.parentElement)}))}),[r]),s=(0,o.useCallback)((()=>{setTimeout((()=>{null==r||r(null)}))}),[r]);return l?i().createElement(h.ReactUseBrick,{refCallback:c,ignoredCallback:s,useBrick:l,data:a}):null}var y=n(9386);function w(e){var t,n,r,a,f,h,g;let{edge:p,lineConfMap:w,editableLineMap:x,readOnly:E,active:k,activeRelated:b,onSwitchActiveTarget:M}=e;const C=(0,o.useRef)(null),I=w.get(p),{points:L,jumpsMap:S}=null!==(t=x.get(p))&&void 0!==t?t:{},N=(0,o.useMemo)((()=>(0,u.S)(L,"curve"===I.type?I.curveType:"curveLinear",0,1,S)),[I,L,S]),z=(0,o.useMemo)((()=>(0,c.uniqueId)("line-mask-")),[]),[P,R]=(0,o.useState)(null),[A,T]=(0,o.useState)(null),[H,W]=(0,o.useState)(null),j=(0,o.useCallback)((()=>{const e=C.current,{label:t,text:n}=I;if(e&&L&&(t||n)){var o,i;const r=null!==(o=t?t.placement:n.placement)&&void 0!==o?o:"center",l=null!==(i=t?t.offset:n.offset)&&void 0!==i?i:0,a=e.getTotalLength(),c=a/2,s=e.getPointAtLength("start"===r?0:"end"===r?a:c+l);let d="center",u=0;if("start"===r||"end"===r){let e,t;"start"===r?(e=L[0],t=L[1]):(e=L[L.length-1],t=L[L.length-2]),u=Math.atan2(t.y-e.y,t.x-e.x),d=Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?e.x>t.x?"left":"right":e.y>t.y?"top":"bottom"}R([s.x,s.y,d,u,l]);const v=e.getBBox();W({x:v.x-1e3,y:v.y-1e3,width:v.width+2e3,height:v.height+2e3})}}),[I,L]),[Z,D]=(0,o.useState)(null),$=(0,o.useCallback)((e=>{if(C.current=e,e){var t,n,o;D(null!==(t=null===(n=e.getTotalLength)||void 0===n?void 0:n.call(e))&&void 0!==t?t:100);const i=null===(o=e.getBBox)||void 0===o?void 0:o.call(e);p.view={...p.view,x:null==i?void 0:i.x,y:null==i?void 0:i.y,width:null==i?void 0:i.width,height:null==i?void 0:i.height}}j()}),[j,p]),[B,O]=(0,o.useState)(null);(0,o.useEffect)((()=>{if(!B)return void T(null);const e=new s.A((()=>{const{offsetWidth:e,offsetHeight:t}=B;T(0!==e&&0!==t?[e,t]:null)}));return e.observe(B),()=>{e.disconnect()}}),[B]);const U=(0,o.useCallback)((e=>{O(e)}),[]);(0,o.useEffect)((()=>{j()}),[j,L]);const V=(0,o.useCallback)((()=>{null==M||M((0,y.P)(p))}),[p,M]),G=(0,o.useCallback)((e=>{var t,n;!E&&I.callLabelOnDoubleClick&&(e.preventDefault(),e.stopPropagation(),null==B||null===(t=B.firstElementChild)||void 0===t||null===(n=t[I.callLabelOnDoubleClick])||void 0===n||n.call(t))}),[B,I,E]),[X,F]=(0,o.useMemo)((()=>function(e,t){if(!e||!t)return[null,null];const[n,o,i,r,l]=e,[a,c]=t,s=n-a/2-3,d=o-c/2-3;let u=0,v=0;const f=a/2+3,h=c/2+3;switch(i){case"top":u=l*Math.cos(r)-h/Math.tan(r),v=l*Math.sin(r)-h;break;case"bottom":u=l*Math.cos(r)+h/Math.tan(r),v=l*Math.sin(r)+h;break;case"left":u=l*Math.cos(r)-f,v=l*Math.sin(r)-f*Math.tan(r);break;case"right":u=l*Math.cos(r)+f,v=l*Math.sin(r)+f*Math.tan(r)}return[{left:s+u,top:d+v,width:a+6,height:c+6},[u,v]]}(P,A)),[P,A]),Y=(0,o.useMemo)((()=>{if(!X||!H)return null;const e=H.x+H.width,t=H.y+H.height,n=X.left+X.width,o=X.top+X.height;return[[X.left,o],[n,o],[n,X.top],[X.left,X.top],[X.left,H.y],[e,H.y],[e,t],[H.x,t],[H.x,H.y],[X.left,H.y]].map((e=>e.join(","))).join(" ")}),[H,X]);if(!N)return null;let Q,J,_,K,q;const ee=(0,v.I)(I);if(k){var te,ne,oe;const e=null===(te=I.overrides)||void 0===te?void 0:te.active;_=null!==(ne=null==e?void 0:e.strokeColor)&&void 0!==ne?ne:I.strokeColor,K=null!==(oe=null==e?void 0:e.strokeWidth)&&void 0!==oe?oe:I.strokeWidth,q=null==e?void 0:e.motion;for(const e of ee){var ie,re;"start"===e.placement?Q=null!==(ie=I.$activeMarkerStartUrl)&&void 0!==ie?ie:I.$markerStartUrl:J=null!==(re=I.$activeMarkerEndUrl)&&void 0!==re?re:I.$markerEndUrl}}else if(b){var le,ae,ce;const e=null===(le=I.overrides)||void 0===le?void 0:le.activeRelated;_=null!==(ae=null==e?void 0:e.strokeColor)&&void 0!==ae?ae:I.strokeColor,K=null!==(ce=null==e?void 0:e.strokeWidth)&&void 0!==ce?ce:I.strokeWidth,q=null==e?void 0:e.motion;for(const e of ee){var se,de;"start"===e.placement?Q=null!==(se=I.$activeRelatedMarkerStartUrl)&&void 0!==se?se:I.$markerStartUrl:J=null!==(de=I.$activeRelatedMarkerEndUrl)&&void 0!==de?de:I.$markerEndUrl}}else{_=I.strokeColor,K=I.strokeWidth;for(const e of ee)"start"===e.placement?Q=I.$markerStartUrl:J=I.$markerEndUrl}let ue,ve;if("dot"===(null===(n=q)||void 0===n?void 0:n.shape)){const e=null==q.size?2*K:q.size/2;ue=`M 0,${-e} A ${e},${e} 0,1,1 0,${e} A ${e},${e} 0,1,1 0,${-e} z`}else if("triangle"===(null===(r=q)||void 0===r?void 0:r.shape)){const e=null==q.size?2*K:q.size/2,t=e/Math.sqrt(3);ue=`M ${-t},${e} v ${2*-e} L ${2*t},0 z`}var fe,he;Z&&(ve=Z/(null!==(fe=null===(he=q)||void 0===he?void 0:he.speed)&&void 0!==fe?fe:d.Jo)+"s");const me=[null===(a=I.overrides)||void 0===a||null===(a=a.active)||void 0===a||null===(a=a.motion)||void 0===a?void 0:a.shape,null===(f=I.overrides)||void 0===f||null===(f=f.activeRelated)||void 0===f||null===(f=f.motion)||void 0===f?void 0:f.shape].some((e=>"dot"===e||"triangle"===e)),ge=Y?`url(#${z})`:void 0;return i().createElement(i().Fragment,null,Y&&i().createElement("defs",null,i().createElement("clipPath",{id:z},i().createElement("polygon",{points:Y}))),i().createElement("g",{className:"line-group",onDoubleClick:G},i().createElement("path",{d:N,fill:"none",stroke:"transparent",strokeWidth:I.interactStrokeWidth,clipPath:ge}),i().createElement("path",{ref:$,className:l()("line",{dashed:I.dashed,dotted:I.dotted,[(I.dashed?"dashed":I.dotted?"dotted":"solid")+"-animation"]:I.animate.useAnimate}),clipPath:ge,style:{"--time":`${null!==(h=I.animate.duration)&&void 0!==h?h:d.Be}s`,"--solid-length":Z},d:N,fill:"none",stroke:_,strokeWidth:K,markerStart:Q,markerEnd:J}),!(null!==(g=I.overrides)&&void 0!==g&&g.active)&&i().createElement("path",{className:"line-active-bg",d:N,fill:"none",clipPath:ge}),me&&ve&&i().createElement("path",{className:l()("motion",{visible:!!ue}),d:ue,fill:_},i().createElement("animateMotion",{dur:ve,repeatCount:"indefinite",rotate:"auto",path:N}))),i().createElement(m,{edge:p,position:P,offset:F,label:I.label,text:I.text,onClick:V,onRendered:U}))}var x=n(9575);function E(e){let{x:t,y:n}=e;return i().createElement("g",{transform:`translate(${t}, ${n}) scale(0.0234375)`,className:"lock-icon"},i().createElement("path",{d:"M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z",fill:"var(--color-secondary-text)",stroke:"none"}))}function k(e){var t;let{node:n,x:r,y:l,degraded:a,degradedNodeLabel:d,defaultNodeBricks:u,locked:v,containerLocked:m,onResize:g}=e;const p=function(e){const[t,n]=(0,o.useState)(e);return(0,o.useEffect)((()=>{n((t=>(0,c.isEqual)(t,e)?t:e))}),[e]),t}({node:{id:n.id,data:n.data,locked:!!v}}),y=n.useBrick,w=n.component,k=(0,o.useRef)(null),{useBrick:b,component:M}=null!==(t=(0,o.useMemo)((()=>a?null:y?{useBrick:y}:w?{component:w}:null==u?void 0:u.find((e=>(0,f.checkIfByTransform)(e,p)))),[u,a,p,w,y]))&&void 0!==t?t:{},C=(0,o.useMemo)((()=>a?String(f.__secret_internals.legacyDoTransform(p,null!=d?d:"<% DATA.node.id %>")):""),[a,d,p]),I=(0,o.useRef)(null),L=(0,o.useRef)(r),S=(0,o.useRef)(l),N=(0,o.useCallback)((e=>{I.current=e;const t=k.current;t&&(t.disconnect(),k.current=null),e?(null!=L.current&&null!=S.current&&(e.style.left=`${L.current}px`,e.style.top=`${S.current}px`),setTimeout((()=>{const t=new s.A((()=>{g(n.id,[e.offsetWidth,e.offsetHeight])}));t.observe(e),k.current=t}))):g(n.id,null)}),[n.id,g]);(0,o.useEffect)((()=>{L.current=r,S.current=l;const e=I.current;e&&null!=r&&null!=l&&(e.style.top=`${l}px`,e.style.left=`${r}px`)}),[r,l]);const z=(0,o.useCallback)((e=>{if(e){const t=e.getBBox();g(n.id,[t.width,t.height])}else g(n.id,null)}),[n.id,g]),P=(0,o.useRef)(null);return(0,o.useEffect)((()=>{const e=P.current;if(!e||!/firefox/i.test(navigator.userAgent))return;e.style.overflow="hidden";const t=setTimeout((()=>{e.style.overflow="visible"}),500);return()=>clearTimeout(t)}),[]),i().createElement(i().Fragment,null,b||M?i().createElement("foreignObject",{width:9999,height:9999,className:"node",ref:P},M?i().createElement(M,(0,x.A)({},p,{refCallback:N})):i().createElement(h.ReactUseBrick,{useBrick:b,data:p,refCallback:N})):a?i().createElement("g",{className:"degraded",ref:z},i().createElement("circle",{cx:8,cy:8,r:8}),i().createElement("text",{x:8,y:32},C)):null,v&&!m&&null!=r&&null!=l&&i().createElement(E,{x:r+n.view.width+4,y:l+n.view.height-12}))}const b=["center","top","bottom","left","right"];function M(e,t){const n={};for(const r of null!==(o=null==t||null===(i=t.split(/\s+/g))||void 0===i?void 0:i.flatMap((e=>"all"===e?b:e)))&&void 0!==o?o:[]){var o,i;let t;const l=e.x+e.width/2,a=e.y+e.height/2;switch(r){case"center":t=[l,a];break;case"top":t=[l,e.y];break;case"right":t=[e.x+e.width,a];break;case"bottom":t=[l,e.y+e.height];break;case"left":t=[e.x,a];break;default:throw new Error(`Unknown snap position: "${r}"`)}n[r]=t}return n}var C=n(8944),I=n(8185),L=n(4197);const S=["left","center","right"],N=["top","center","bottom"];function z(e,t){var n;let{action:o,cell:i,scale:r,layout:l,layoutOptions:c,activeTarget:s,cells:u,onCellsMoving:v,onCellsMoved:f,onCellResizing:h,onCellResized:m,onSwitchActiveTarget:g,updateCurActiveEditableLine:p}=t;if(e.stopPropagation(),2===e.button||0===e.button&&e.ctrlKey)return;const w=(0,L.Q)(i,s),x=(0,C.E)(u);let E=!1;if(e.shiftKey){const e=s?"multi"===(null==s?void 0:s.type)?s.targets:[s]:[];let t=[];w?t=e.filter((e=>!(0,I.c)(e,i))):(t=[...e,i],E=!0),null==g||g(t.length>0?{type:"multi",targets:t}:null)}else"resize"!==o&&w||(null==g||g((0,y.P)(i)),E=!0);if((0,C.l)(i,x))return;if(E&&((0,a.WW)(i)||(0,a._m)(i))&&(null==p||p(i)),(0,a.WW)(i))return;const k=[],b="multi"===(null==s?void 0:s.type)&&"move"===o?u.filter((e=>(0,L.Q)(e,s))):[i];b.forEach((e=>{k.push(e),"move"===o&&(0,a.t2)(e)&&k.push(...u.filter((t=>(0,a.N)(t)&&t.containerId===e.id&&!b.includes(t))))}));const z="force"===l||"dagre"===l,P=k.filter((e=>!(0,C.l)(e,x)&&((0,a.N)(e)&&!z||(0,a.mH)(e))));if(0===P.length)return;const R=function(e){var t,n,o;const i=e?!0===e?{grid:!0,object:!0}:e:null,r=null!=i&&i.grid?!0===i.grid?{}:i.grid:null,l=null!=i&&i.object?!0===i.object?{}:i.object:null;return{grid:r?{size:null!==(t=r.size)&&void 0!==t?t:d.gx}:null,object:l?{distance:null!==(n=l.distance)&&void 0!==n?n:d.ld,positions:null!==(o=l.positions)&&void 0!==o?o:d.o5}:null}}(null==c?void 0:c.snap),A=null===(n=R.object)||void 0===n?void 0:n.positions,T=[e.clientX,e.clientY],H=P.map((e=>({cell:e,position:"move"===o?[e.view.x,e.view.y]:[e.view.width,e.view.height],snapPositions:"move"!==o||(0,a.WW)(e)?null:M(e.view,A)}))),W=H[0].position;let j=[];if("move"===o&&R.object){const e=u.filter((e=>!(0,a.WW)(e)&&!(0,a._m)(e)&&!k.includes(e)));j=e.map((e=>({cell:e,snapPositions:M(e.view,A)})))}let Z=!1;const D=(e,t)=>{const n=function(e){return[(e.clientX-T[0])/r,(e.clientY-T[1])/r]}(e),l=[...n];let c,s,d,u,g;if(Z||(Z=n[0]**2+n[1]**2>=9),!R.grid&&!R.object||e.altKey)c=H.map((e=>{let{position:t}=e;return[t[0]+n[0],t[1]+n[1]]}));else{let e=1/0,t=1/0;if(R.object){const o=R.object.distance;let i,r,a,c,v=0,f=0;for(const{cell:s,snapPositions:d}of j)for(const{cell:h,snapPositions:m}of H)for(const[p,y]of Object.entries(m)){const m=S.includes(p),w=N.includes(p),[x,E]=d[p],[k,b]=y;if(m){const t=Math.abs(k+n[0]-x);t<o&&t<e&&(e=t,l[0]=x-k,u=h,a=s,i=[x,E],v=b)}if(w){const e=Math.abs(b+n[1]-E);e<o&&e<t&&(t=e,l[1]=E-b,g=h,c=s,r=[x,E],f=k)}}if(a&&a===c){const e=a.view.height/2,t=a.view.width/2;s=[[i[0],i[1]-e],[i[0],i[1]+e]],d=[[r[0]-t,r[1]],[r[0]+t,r[1]]]}else i&&(s=[i,[i[0],v+l[1]]]),r&&(d=[r,[f+l[0],r[1]]])}if(R.grid){const o=R.grid.size,i=[Math.round((W[0]+n[0])/o)*o,Math.round((W[1]+n[1])/o)*o],r=[i[0]-W[0],i[1]-W[1]],a=Math.abs(r[0]-n[0]),c=Math.abs(r[1]-n[1]);a<e&&(e=a,l[0]=r[0],s=void 0,u=void 0),c<t&&(t=c,l[1]=r[1],d=void 0,g=void 0)}c=H.map((e=>{let{position:t}=e;return[t[0]+l[0],t[1]+l[1]]}))}if(Z)if("move"===o){var p;const e=H.map(((e,n)=>{var o;let{cell:i}=e;return{type:i.type,id:i.id,x:c[n][0],y:c[n][1],width:i.view.width,height:i.view.height,decorator:(0,a.mH)(i)?i.decorator:void 0,guideLines:t?void 0:[...u===i?[s]:[],...g===i?[d]:[]],...(0,a._m)(i)?{source:{x:i.view.source.x+l[0],y:i.view.source.y+l[1]},target:{x:i.view.target.x+l[0],y:i.view.target.y+l[1]},vertices:null===(o=i.view.vertices)||void 0===o?void 0:o.map((e=>({x:e.x+l[0],y:e.y+l[1]})))}:null}}));null===(p=t?f:v)||void 0===p||p(e)}else{var y;null===(y=t?m:h)||void 0===y||y({type:i.type,id:i.id,width:c[0][0],height:c[0][1]})}},$=e=>{D(e)},B=e=>{D(e,!0),Z=!1,document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",B)}let P;function R(e){return e?function(){if("boolean"!=typeof P){const e=document.createElement("div");e.setAttribute("contenteditable","PLAINTEXT-ONLY"),P="plaintext-only"===e.contentEditable}return P}()?"plaintext-only":"true":"false"}function A(e){const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();n.removeAllRanges(),n.addRange(t)}var T=n(9068);const H=new Map([["container",function(e){let{cell:t,transform:n,readOnly:r,layout:s,view:d,activeTarget:u,cells:v,locked:f,onCellResizing:h,onCellResized:m,onSwitchActiveTarget:g,onDecoratorTextEditing:p,onDecoratorTextChange:y}=e;const w=(0,c.get)(t.view,"text",""),x=(0,c.get)(t.view,"direction","top"),k=(0,o.useRef)(null),b=i().useRef(null),[M,C]=(0,o.useState)(!1),[I,L]=(0,o.useState)(w),[S,N]=(0,o.useState)(!1),[P,H]=(0,o.useState)(),[W,j]=(0,o.useState)({x:0,y:0,width:t.view.width,height:t.view.height}),Z=(0,o.useCallback)((e=>{r||f||(e.preventDefault(),e.stopPropagation(),C(!0))}),[r,f]),D=(0,o.useCallback)((e=>{r||L(e.target.textContent)}),[r]),$=(0,o.useCallback)((()=>{r||(C(!1),N(!0),H((0,T.uuidV4)()))}),[r]);return(0,o.useEffect)((()=>{L(w)}),[w]),(0,o.useEffect)((()=>{const e=k.current;e&&e.textContent!==I&&(e.textContent=I)}),[I]),(0,o.useEffect)((()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.parentElement;if(t){const{clientWidth:e,clientHeight:n}=t;if(["left","right"].includes(x)){const t={width:e,height:d.height,x:"left"===x?-e:d.width,y:0};j(t)}else{const e={width:d.width,height:n,x:0,y:"top"===x?-n:d.height};j(e)}}}),[d,I,x,P]),(0,o.useEffect)((()=>{M&&k.current&&(k.current.focus(),A(k.current)),null==p||p({id:t.id,editing:M})}),[t.id,M,p]),(0,o.useEffect)((()=>{S&&(null==y||y({id:t.id,view:{...d,text:I}}),N(!1))}),[t,d,I,y,S]),(0,o.useEffect)((()=>{const e=b.current;if(!e||r)return;const o=e=>{z(e,{action:"resize",cell:t,scale:n.k,activeTarget:u,cells:v,onCellResizing:h,onCellResized:m,onSwitchActiveTarget:g})};return e.addEventListener("mousedown",o),()=>{e.removeEventListener("mousedown",o)}}),[u,t,v,m,h,g,r,n.k]),i().createElement("g",{className:"decorator-container"},i().createElement("foreignObject",W,i().createElement("div",{className:l()("text-container",{editing:M,[["left","right"].includes(x)?"vertical":"horizontal"]:!0}),onDoubleClick:Z,style:t.view.titleStyle},i().createElement("div",{className:"text",contentEditable:R(M),ref:k,onInput:D,onBlur:$}))),i().createElement("foreignObject",{className:"container-wrapper"},i().createElement("div",{className:"container",style:{...t.view.style,width:d.width,height:d.height}})),!r&&!f&&!(0,a.OD)(s)&&i().createElement("g",{ref:b,className:"resize-handle",transform:`translate(${d.width-20} ${d.height-20})`},i().createElement("rect",{width:20,height:20}),i().createElement("path",{d:"M10 18L18 10 M15 18L18 15"})),f&&i().createElement(E,{x:t.view.width-16,y:t.view.height-16}))}],["area",function(e){let{cell:t,transform:n,readOnly:r,layoutOptions:l,activeTarget:a,cells:c,locked:s,onCellResizing:d,onCellResized:u,onSwitchActiveTarget:v}=e;const f=i().useRef(null);return(0,o.useEffect)((()=>{const e=f.current;if(!e||r)return;const o=e=>{z(e,{action:"resize",cell:t,scale:n.k,layoutOptions:l,activeTarget:a,cells:c,onCellResizing:d,onCellResized:u,onSwitchActiveTarget:v})};return e.addEventListener("mousedown",o),()=>{e.removeEventListener("mousedown",o)}}),[a,t,c,l,u,d,v,r,n.k]),i().createElement("g",{className:"decorator-area-container"},i().createElement("foreignObject",{className:"decorator-area",width:"9999",height:"9999"},i().createElement("div",{className:"area",style:{...t.view.style,width:t.view.width,height:t.view.height}})),!r&&!s&&i().createElement("g",{ref:f,className:"resize-handle",transform:`translate(${t.view.width-20} ${t.view.height-20})`},i().createElement("rect",{width:20,height:20}),i().createElement("path",{d:"M10 18L18 10 M15 18L18 15"})),s&&i().createElement(E,{x:t.view.width-16,y:t.view.height-16}))}],["text",function(e){var t;let{cell:n,readOnly:r,locked:a,onDecoratorTextEditing:c,onDecoratorTextChange:s}=e;const d=null!==(t=n.view.text)&&void 0!==t?t:"",[u,v]=(0,o.useState)(d),[f,h]=(0,o.useState)(!1),m=(0,o.useRef)(!1),[g,p]=(0,o.useState)(!1),y=(0,o.useRef)(null),w=(0,o.useCallback)((e=>{r||a||(e.preventDefault(),e.stopPropagation(),h(!0))}),[r,a]);(0,o.useEffect)((()=>{const e=y.current;e&&e.textContent!==u&&(e.textContent=u)}),[u]),(0,o.useEffect)((()=>{var e;const t=null===(e=y.current)||void 0===e?void 0:e.parentElement;t&&(n.view.width=t.clientWidth,n.view.height=t.clientHeight)}),[u,n.id]),(0,o.useEffect)((()=>{f&&y.current&&(y.current.focus(),A(y.current)),null==c||c({id:n.id,editing:f})}),[n.id,f,c]),(0,o.useEffect)((()=>{m.current?null==c||c({id:n.id,editing:f}):m.current=!0}),[n.id,f,c]);const x=(0,o.useCallback)((e=>{r||v(e.target.textContent)}),[r]),k=(0,o.useCallback)((()=>{r||(h(!1),p(!0))}),[r]);return(0,o.useEffect)((()=>{g&&(null==s||s({id:n.id,view:{...n.view,text:u}}),p(!1))}),[n,u,s,g]),i().createElement(i().Fragment,null,i().createElement("foreignObject",{className:"decorator-text",width:"9999",height:"9999"},i().createElement("div",{className:l()("text-container",{editing:f}),onDoubleClick:w,style:n.view.style},i().createElement("div",{className:"text",contentEditable:R(f),ref:y,onInput:x,onBlur:k}))),a&&i().createElement(E,{x:n.view.width,y:(n.view.height-12)/2}))}],["rect",function(e){let{cell:t,transform:n,readOnly:r,layout:l,view:c,activeTarget:s,cells:d,locked:u,onCellResizing:v,onCellResized:f,onSwitchActiveTarget:h}=e;const m=i().useRef(null);return(0,o.useEffect)((()=>{const e=m.current;if(!e||r)return;const o=e=>{z(e,{action:"resize",cell:t,scale:n.k,layout:l,activeTarget:s,cells:d,onCellResizing:v,onCellResized:f,onSwitchActiveTarget:h})};return e.addEventListener("mousedown",o),()=>{e.removeEventListener("mousedown",o)}}),[s,t,d,f,v,h,r,n.k,l]),i().createElement("g",{className:"decorator-rect-container"},i().createElement("foreignObject",{className:"decorator-rect",width:"9999",height:"9999"},i().createElement("div",{className:"rect-container",style:{...t.view.style,width:c.width,height:c.height}})),!r&&!u&&!(0,a.OD)(l)&&i().createElement("g",{ref:m,className:"resize-handle",transform:`translate(${c.width-20} ${c.height-20})`},i().createElement("rect",{width:20,height:20}),i().createElement("path",{d:"M10 18L18 10 M15 18L18 15"})),u&&i().createElement(E,{x:t.view.width-16,y:t.view.height-16}))}],["line",function(e){var t;let{cell:n,active:r,lineConfMap:a,editableLineMap:c,locked:s}=e;const d=a.get(n),{points:f,jumpsMap:h}=null!==(t=c.get(n))&&void 0!==t?t:{},m=(0,o.useMemo)((()=>d?(0,u.S)(f,"curve"===d.type?d.curveType:"curveLinear",0,1,h):null),[d,f,h]),g=(0,o.useRef)(null),p=(0,o.useCallback)((e=>{if(g.current=e,e){const t=e.getBBox();n.view={...n.view,x:t.x,y:t.y,width:t.width,height:t.height}}}),[n]),y=(0,o.useMemo)((()=>s&&f?function(e){const t=e[e.length-1];if(e.length<2)return{x:t.x+16,y:t.y-6};const n=e[0],o=t.y-n.y,i=t.x-n.x;let r;r=Math.abs(o)>Math.abs(i)?o>0:i>0;const l=r?e[e.length-2]:e[1],a=r?t:n,c=Math.atan2(a.y-l.y,a.x-l.x)-3*Math.PI/4;return{x:a.x+16*Math.cos(c)-6,y:a.y+16*Math.sin(c)-6}}(f):null),[s,f]);if(!m||!d)return null;let w,x,k,b;const M=(0,v.I)(d);if(r){var C,I,L;const e=null===(C=d.overrides)||void 0===C?void 0:C.active;k=null!==(I=null==e?void 0:e.strokeColor)&&void 0!==I?I:d.strokeColor,b=null!==(L=null==e?void 0:e.strokeWidth)&&void 0!==L?L:d.strokeWidth;for(const e of M){var S,N;"start"===e.placement?w=null!==(S=d.$activeMarkerStartUrl)&&void 0!==S?S:d.$markerStartUrl:x=null!==(N=d.$activeMarkerEndUrl)&&void 0!==N?N:d.$markerEndUrl}}else{k=d.strokeColor,b=d.strokeWidth;for(const e of M)"start"===e.placement?w=d.$markerStartUrl:x=d.$markerEndUrl}return i().createElement("g",{className:"decorator-line"},i().createElement("path",{d:m,fill:"none",stroke:"transparent",strokeWidth:d.interactStrokeWidth}),i().createElement("path",{className:l()("line",{dashed:d.dashed,dotted:d.dotted}),ref:p,d:m,fill:"none",stroke:k,strokeWidth:b,markerStart:w,markerEnd:x}),s&&i().createElement(E,{x:y.x,y:y.y}))}]]);function W(e){let{cell:t,view:n,transform:o,readOnly:r,layout:l,layoutOptions:a,active:c,activeTarget:s,cells:d,lineConfMap:u,editableLineMap:v,locked:f,onCellResizing:h,onCellResized:m,onSwitchActiveTarget:g,onDecoratorTextEditing:p,onDecoratorTextChange:y}=e;const w=H.get(t.decorator);return w?i().createElement(w,{cell:t,view:n,transform:o,readOnly:r,layout:l,layoutOptions:a,active:c,activeTarget:s,cells:d,lineConfMap:u,editableLineMap:v,locked:f,onCellResizing:h,onCellResized:m,onSwitchActiveTarget:g,onDecoratorTextEditing:p,onDecoratorTextChange:y}):(console.error(`Unknown decorator: ${t.decorator}`),null)}var j=n(4516),Z=n(9978);function D(e){let{layout:t,layoutOptions:n,cell:r,cells:s,degraded:d,degradedNodeLabel:u,defaultNodeBricks:v,lineConfMap:f,editableLineMap:h,activeTarget:m,dragoverContainer:g,readOnly:p,transform:x,hoverCell:E,unrelatedCells:b,allowEdgeToArea:M,curActiveEditableLine:C,locked:S,containerLocked:N,updateCurActiveEditableLine:P,onCellsMoving:R,onCellsMoved:A,onCellResizing:T,onCellResized:H,onSwitchActiveTarget:D,onCellContextMenu:$,onCellClick:B,onDecoratorTextEditing:O,onDecoratorTextChange:U,onNodeBrickResize:V,onCellMouseEnter:G,onCellMouseLeave:X}=e;const{lineEditorState:F,smartConnectLineState:Y,setSmartConnectLineState:Q,onConnect:J,setLineEditorState:_,onChangeEdgeView:K}=(0,Z.s)(),q=(0,o.useRef)(null),ee=(0,o.useMemo)((()=>b.some((e=>(0,I.c)(e,r)))),[r,b]),te=(0,o.useMemo)((()=>{if((0,a.t2)(r)&&(0,a.OD)(t)){const e=s.filter((e=>(0,a.N)(e)&&e.containerId===r.id)),t={...r.view,...(0,j.Z)(e)};return r.view=t,t}return(0,a.WW)(r)||(0,a._m)(r)?void 0:(0,c.get)(r,"view",{x:0,y:0,width:0,height:0})}),[t,r,s]);(0,o.useEffect)((()=>{const e=q.current;if(!e)return;const o=e=>{p||(0,a.t2)(r)&&(0,a.OD)(t)?e.stopPropagation():z(e,{layout:t,layoutOptions:n,action:"move",cell:r,scale:x.k,activeTarget:m,cells:s,onCellsMoving:R,onCellsMoved:A,onSwitchActiveTarget:D,updateCurActiveEditableLine:P})};return e.addEventListener("mousedown",o),()=>{e.removeEventListener("mousedown",o)}}),[t,n,r,m,s,A,R,D,P,p,x.k]),(0,o.useEffect)((()=>{const e=q.current;if(!e||!(0,a.bo)(r,M)||!(Y||F&&"control"!==F.type))return;const t=e=>{if(!C||!F||"decorator"!==C.type)if(e.preventDefault(),e.stopPropagation(),Y)Y.source!==r&&(null==J||J(Y.source,r,Y.exitPosition,void 0)),Q(null);else if(C&&F){const{type:e}=F,{source:t,target:n}=h.get(C),{view:o}=C,i="entry"===e;(i?n:t)===r&&(i?null==K||K(t,n,{...o,entryPosition:null}):null==K||K(t,n,{...o,exitPosition:null})),_(null)}};return e.addEventListener("mouseup",t),()=>{e.removeEventListener("mouseup",t)}}),[C,h,M,r,F,K,J,_,Q,Y,P]);const ne=(0,o.useCallback)((e=>{if(p&&"decorator"===r.type)return;e.preventDefault(),e.stopPropagation();let t=m;(0,L.Q)(r,m)||(t=(0,y.P)(r),D(t)),$({cell:r,clientX:e.clientX,clientY:e.clientY,locked:S,target:t})}),[p,r,m,$,S,D]),oe=(0,o.useCallback)((e=>{B&&"decorator"!==r.type&&B({cell:r,clientX:e.clientX,clientY:e.clientY,locked:S})}),[r,B,S]),ie=(0,o.useCallback)((()=>{null==G||G(r)}),[r,G]),re=(0,o.useCallback)((()=>{null==X||X(r)}),[r,X]),le=(0,L.Q)(r,m);return i().createElement("g",{className:l()("cell",{active:le,faded:ee,"read-only":p,"container-dragover":g}),ref:q,transform:(0,a.N)(r)&&!d||(0,a.WW)(r)||(0,a._m)(r)||null==r.view.x||null==r.view.y?void 0:`translate(${te.x},${te.y})`,onContextMenu:ne,onClick:oe,onMouseEnter:ie,onMouseLeave:re},(0,a.N)(r)?i().createElement(k,{node:r,x:null==te?void 0:te.x,y:null==te?void 0:te.y,degraded:d,degradedNodeLabel:u,defaultNodeBricks:v,locked:S,containerLocked:N,onResize:V}):(0,a.WW)(r)?i().createElement(w,{edge:r,active:p?E===r:le,activeRelated:!!(p?E:m)&&!ee,lineConfMap:f,editableLineMap:h,readOnly:p,onSwitchActiveTarget:D}):(0,a.mH)(r)?i().createElement(W,{cell:r,view:te,transform:x,readOnly:p,layout:t,layoutOptions:n,active:le,activeTarget:m,cells:s,lineConfMap:f,editableLineMap:h,locked:S,onCellResizing:T,onCellResized:H,onSwitchActiveTarget:D,onDecoratorTextEditing:O,onDecoratorTextChange:U}):null)}},1819:(e,t,n)=>{n.d(t,{J:()=>r});var o=n(8769),i=n(8185);function r(e){let{rootRef:t,activeTarget:n,doNotResetActiveTargetForSelector:r,doNotResetActiveTargetOutsideCanvas:l,onActiveTargetChange:a}=e;const c=null!=n?n:null,[s,d]=(0,o.useState)(c);(0,o.useEffect)((()=>{d((e=>(0,i.c)(e,c)?e:c))}),[c]);const u=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{u.current?a(s):u.current=!0}),[s,a]),(0,o.useEffect)((()=>{if(!s)return;const e=e=>{const n=e.composedPath(),o=n.indexOf(t.current);(l?0!==o:!(o<=0)||r&&n.some((e=>e instanceof Element&&e.matches(r))))||d(null)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[s,l,r,t]),s}},1825:(e,t,n)=>{n.d(t,{W:()=>m});var o=n(8769),i=n.n(o),r=n(3373),l=n.n(r),a=n(8653),c=n(9978),s=n(1030),d=n(967),u=n(531);function v(e,t,n,o){const{control:i}=t,{points:r}=n.get(e),l=[],[a,c]=o,s=r[0],u=r[r.length-1];0===i.index&&l.push("ns"===i.direction?{x:s.x,y:c}:{x:a,y:s.y});for(let e=1;e<r.length-1;e++){const t=r[e];l.push(e===i.index||e===i.index+1?"ns"===i.direction?{x:t.x,y:c}:{x:a,y:t.y}:t)}return i.index===r.length-2&&l.push("ns"===i.direction?{x:u.x,y:c}:{x:a,y:u.y}),(0,d.P)(s,l,u)}var f=n(7531);const h=["control","corner","break"];function m(e){let{cells:t,editableLineMap:n,transform:r,options:m,activeEditableLine:g}=e;const[p,y]=(0,o.useState)(null),{hoverState:w,lineEditorState:x,setLineEditorState:E,onChangeEdgeView:k,onChangeDecoratorView:b}=(0,c.s)(),M=(0,o.useRef)(!1);(0,o.useEffect)((()=>{x||setTimeout((()=>{M.current=!1}),0)}),[x]),(0,o.useEffect)((()=>{if(!g||!x)return;M.current=!1;const{type:e,offset:o,from:i}=x,l=l=>{const a={x:(l.clientX-r.x-o[0])/r.k,y:(l.clientY-r.y-o[1])/r.k},c=n.get(g).points,s={x:1/0,y:1/0};let d,v;const f=()=>{if(!M.current){const e=(l.clientX-i[0])/r.k,t=(l.clientY-i[1])/r.k;M.current=e**2+t**2>=9}return[a.x,a.y]};if(h.includes(e)&&!l.altKey){const t=x.control;v="control"===e?["ns"===t.direction?"y":"x"]:["x","y"],d=c.filter(((n,o)=>0===o||o===c.length-1||("control"===e?o!==t.index&&o!==t.index+1:"corner"!==e||o!==t.index+1)))}else{if(!(0,u._m)(g)||"exit"!==e&&"entry"!==e||l.altKey)return f();{const t="exit"===e?c[0]:c[c.length-1];d=c.filter((e=>e!==t)),v=["x","y"]}}for(const e of t){if(!(0,u.WW)(e)&&!(0,u._m)(e)||e===g)continue;const t=n.get(e);t&&d.push(...t.points.slice(1,-1))}for(const e of d)for(const t of v){const n=Math.abs(e[t]-a[t]);n<=5&&n<s[t]&&(a[t]=e[t],s[t]=n)}return f()},a=e=>{const t=l(e);M.current&&y(t)};function c(e){if(e.preventDefault(),s(),!M.current)return;const t=l(e),o=(0,u.WW)(g);if("control"!==(null==x?void 0:x.type)){if(!o)switch(null==x?void 0:x.type){case"entry":case"exit":null==b||b(g,{...g.view,["entry"===x.type?"target":"source"]:{x:t[0],y:t[1]}});break;case"corner":null==b||b(g,{...g.view,vertices:g.view.vertices.map(((e,n)=>n===x.control.index?{x:t[0],y:t[1]}:e))});break;case"break":{var i;const e=[...null!==(i=g.view.vertices)&&void 0!==i?i:[]];e.splice(x.control.index,0,{x:t[0],y:t[1]}),null==b||b(g,{...g.view,vertices:e});break}}}else if(o){const e=n.get(g),{source:o,target:i}=e;null==k||k(o,i,{...g.view,vertices:v(g,x,n,t)})}else null==b||b(g,{...g.view,vertices:v(g,x,n,t)})}function s(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",c),y(null),E(null)}return document.addEventListener("mousemove",a),document.addEventListener("mouseup",c),s}),[g,n,x,r,E,k,t,b]),(0,o.useEffect)((()=>{if(!g)return;const e=e=>{M.current&&(e.stopPropagation(),e.preventDefault())};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}}),[g]);const C=(0,o.useMemo)((()=>{const e=function(e,t,n,o,i){if(!e||!t||!(o||"control"!==t.type&&void 0!==(null==i?void 0:i.activePointIndex)))return null;const r=n.get(e);if(!r)return null;const{type:l}=t;let a,c;const f=e.type;if((0,u.om)(r))a=r.source.view,c=r.target.view;else{const e=r.decorator.view;a={...e.source,width:0,height:0},c={...e.target,width:0,height:0}}const h=e.view,{exitPosition:m,entryPosition:g,vertices:p}=null!=h?h:{},y=(0,s.pick)(h,["type","curveType"]);if("control"===l){const i=v(e,t,n,o);return(0,d.V)(a,c,{...y,exitPosition:m,entryPosition:g,vertices:i},0,f)}if("corner"===l){const e=[...p];return e.splice(t.control.index,1,{x:o[0],y:o[1]}),(0,d.V)(a,c,{...y,exitPosition:m,entryPosition:g,vertices:e},0,f)}if("break"===l){const e=[...null!=p?p:[]];return e.splice(t.control.index,0,{x:o[0],y:o[1]}),(0,d.V)(a,c,{...y,exitPosition:m,entryPosition:g,vertices:e},0,f)}if("edge"===f&&void 0!==(null==i?void 0:i.activePointIndex)){const e=i.relativePoints[i.activePointIndex];return(0,d.V)(a,c,{...y,..."entry"===l?{exitPosition:m,entryPosition:e}:{exitPosition:e,entryPosition:g},vertices:p},0,f)}const[w,x]=o;return"entry"===l?(0,d.V)(a,{x:w,y:x,width:0,height:0},{...y,exitPosition:m,vertices:p},0,f):(0,d.V)({x:w,y:x,width:0,height:0},c,{...y,entryPosition:g,vertices:p},0,f)}(g,x,n,p,w),t=null==g?void 0:g.view;return(0,a.S)(e,"curve"===(null==t?void 0:t.type)?t.curveType:"curveLinear",0,1)}),[p,w,g,x,n]);let I,L;const S=(0,f.I)(m);for(const e of S)"start"===e.placement?I=m.$editingStartMarkerUrl:L=m.$editingEndMarkerUrl;return i().createElement("path",{className:l()("editing-line",{editing:!(!x||!p)}),d:C,fill:"none",stroke:m.editingStrokeColor,markerStart:I,markerEnd:L})}},1991:(e,t,n)=>{n.d(t,{_:()=>i});var o=n(531);function i(e,t,n){const i=t.filter((e=>(0,o.N)(e))),r=e.filter((e=>(0,o.t2)(e))).map((e=>e.id)),l=e.filter((e=>{const t=i.find((t=>t.id===e.id)),n=(null==t?void 0:t.containerId)&&r.includes(t.containerId);return(0,o.N)(e)&&!n}));l.forEach((e=>{const n=e.x,i=e.x+e.width,r=e.y,l=e.y+e.height,a=t.filter((e=>{var t;return(0,o.t2)(e)&&!(null!==(t=e.view)&&void 0!==t&&t.locked)}));for(const t of a){const o=t.view.x,a=t.view.x+t.view.width,c=t.view.y,s=t.view.y+t.view.height;if(n>=o&&i<=a&&r>=c&&l<=s){e.containerCell=t;break}}}));let a=[];return a=l.filter((e=>{var t;const n=i.find((t=>t.id===e.id));return(null==n?void 0:n.containerId)!==(null===(t=e.containerCell)||void 0===t?void 0:t.id)})),a.length>0&&(null==n||n(a)),a}},2202:(e,t,n)=>{n.d(t,{F:()=>f});var o=n(9575),i=n(8769),r=n.n(i),l=n(9978),a=n(531);const c="data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIyMnB4IiBoZWlnaHQ9IjIycHgiIHZlcnNpb249IjEuMSI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iNyIgc3Ryb2tlPSIjZmZmIiBmaWxsPSIjMjliNmYyIi8+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iMyIgc3Ryb2tlPSIjZmZmIiBmaWxsPSJ0cmFuc3Bh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U1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxOHB4IiBoZWlnaHQ9IjE4cHgiIHZlcnNpb249IjEuMSI+PGNpcmNsZSBjeD0iOSIgY3k9IjkiIHI9IjUiIHN0cm9rZT0iI2ZmZiIgZmlsbD0iIzI5YjZmMiIvPjwvc3ZnPg==",v=22;function f(e){let{scale:t,editableLineMap:n,activeEditableLine:f,updateCurActiveEditableLine:h}=e;const{rootRef:m,movingCells:g,lineEditorState:p,setLineEditorState:y}=(0,l.s)(),w=(0,i.useRef)(null),x=(0,i.useRef)(null),E=(0,i.useRef)([]),k=(0,a._m)(f);(0,i.useEffect)((()=>{const e=w.current,t=x.current;if(!e||!t||!f)return;const n=e=>t=>{t.stopPropagation(),t.preventDefault();const n=m.current.getBoundingClientRect();y({offset:[n.left,n.top],from:[t.clientX,t.clientY],type:e}),null==h||h(f)},o=n("exit"),i=n("entry");return e.addEventListener("mousedown",o),t.addEventListener("mousedown",i),()=>{e.removeEventListener("mousedown",o),t.removeEventListener("mousedown",i)}}),[f,m,y,h]);const b=(0,i.useMemo)((()=>{var e;if(!f)return[];const t=n.get(f).points;return(0,a.jw)(null===(e=f.view)||void 0===e?void 0:e.type)?k?function(e){const t=[];let n=e[0],o=1;for(;o<e.length;){const i=e[o];t.push({type:"break",index:o-1,x:(n.x+i.x)/2,y:(n.y+i.y)/2}),o<e.length-1&&t.push({...i,type:"corner",index:o-1}),n=i,o++}return t}(t):[]:function(e){const t=[];let n=e[0],o=1;for(;o<e.length;){const i=e[o],r=n.y===i.y,l=n.x===i.x;if(!r||!l){const e=r?"ns":"ew";t.push({type:"control",direction:e,index:o-1,x:(n.x+i.x)/2,y:(n.y+i.y)/2})}n=i,o++}return t}(t)}),[f,n,k]);(0,i.useEffect)((()=>{if(!f)return;const e=E.current,t=b.map((e=>(e=>t=>{t.stopPropagation(),t.preventDefault(),null==h||h(f);const n=m.current.getBoundingClientRect();y({offset:[n.left,n.top],from:[t.clientX,t.clientY],type:e.type,control:e})})(e)));return e.forEach(((e,n)=>{null==e||e.addEventListener("mousedown",t[n])})),()=>{e.forEach(((e,n)=>{null==e||e.removeEventListener("mousedown",t[n])}))}}),[f,b,m,y,h]);const M=(0,i.useRef)(null);if((0,i.useEffect)((()=>{const e=M.current,t=e=>{e.stopPropagation(),e.preventDefault()};return null==e||e.addEventListener("click",t),()=>{null==e||e.removeEventListener("click",t)}}),[]),g)return null;const C=f.view,I=n.get(f).points,{exitPosition:L,entryPosition:S}=null!=C?C:{},N={width:v/t,height:v/t,preserveAspectRatio:"none",cursor:"pointer",pointerEvents:"fill"},z=I[0],P=I[I.length-1],R=v/t/2;return r().createElement("g",{ref:M},r().createElement("image",(0,o.A)({ref:w},N,{x:z.x-R,y:z.y-R,xlinkHref:k?u:L?d:c})),b.map(((e,t)=>r().createElement("image",(0,o.A)({key:t,ref:e=>{E.current[t]=e}},N,{x:e.x-R,y:e.y-R,opacity:"break"!==e.type||"break"===(null==p?void 0:p.type)&&p.control===e?1:.4,xlinkHref:u,cursor:k?"crosshair":"ns"===e.direction?"row-resize":"col-resize"})))),r().createElement("image",(0,o.A)({ref:x},N,{x:P.x-R,y:P.y-R,xlinkHref:k?s:S?d:c})))}},2219:(e,t,n)=>{function o(e,t){let{transform:n,offset:o,onLassoing:i,onLassoed:r}=t;if(e.ctrlKey||e.button)return;e.stopPropagation();const l=[e.clientX,e.clientY],a=(e.clientX-o[0]-n.x)/n.k,c=(e.clientY-o[1]-n.y)/n.k;let s=!1;const d=(e,t)=>{const o=function(e){return[(e.clientX-l[0])/n.k,(e.clientY-l[1])/n.k]}(e);if(s||(s=o[0]**2+o[1]**2>=9),s){let[e,n]=o,l=a,s=c;e<0&&(l=a+e,e=-e),n<0&&(s=c+n,n=-n),(t?r:i)({x:l,y:s,width:e,height:n})}},u=e=>{d(e)},v=e=>{d(e,!0),s=!1,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",v)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",v)}n.d(t,{F:()=>o})},2722:(e,t,n)=>{n.d(t,{T:()=>f});var o=n(8769),i=n.n(o),r=n(9978),l=n(4197),a=n(3033),c=n(531);const s="data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI1cHgiIGhlaWdodD0iNXB4IiB2ZXJzaW9uPSIxLjEiPjxwYXRoIGQ9Im0gMCAwIEwgNSA1IE0gMCA1IEwgNSAwIiBzdHJva2Utd2lkdGg9IjIiIHN0eWxlPSJzdHJva2Utb3BhY2l0eTowLjQiIHN0cm9rZT0iI2ZmZmZmZiIvPjxwYXRoIGQ9Im0gMCAwIEwgNSA1IE0gMCA1IEwgNSAwIiBzdHJva2U9IiMyOWI2ZjIiLz48L3N2Zz4=",d=5,u=8,v=d/2;function f(e){let{activeTarget:t,editableLineMap:n,scale:s,activeEditableLine:d,disabled:v}=e;const{unsetHoverStateTimeoutRef:f,hoverState:m,setHoverState:g,smartConnectLineState:p,lineEditorState:y}=(0,r.s)(),w=(0,o.useCallback)((()=>{null!==f.current&&(clearTimeout(f.current),f.current=null)}),[f]),x=(0,o.useCallback)((()=>{w(),g((e=>void 0===(null==e?void 0:e.activePointIndex)?e:{...m,activePointIndex:void 0}))}),[m,g,w]),E=(0,o.useCallback)((()=>{f.current=setTimeout((()=>{g(null)}))}),[g,f]);let k,b,M;const C=!v&&m&&(!!p||(d&&y?(M=n.get(d))&&!!(0,c.om)(M)&&(({source:k,target:b}=M),"entry"===y.type?m.cell===b:"exit"===y.type&&m.cell===k):!(0,l.Q)(m.cell,t)&&!function(e){return e&&("edge"===e.type||"multi"===e.type&&e.targets.some((e=>"edge"===e.type)))}(t))),I=a.XK,L=I/2;return i().createElement("g",{onMouseEnter:x,onMouseLeave:E},C&&i().createElement(i().Fragment,null,i().createElement("rect",{x:m.cell.view.x-L,y:m.cell.view.y-L,width:m.cell.view.width+I,height:m.cell.view.height+I,fill:"none",stroke:"transparent",strokeWidth:2*u/s,pointerEvents:"stroke"}),void 0!==m.activePointIndex&&i().createElement("circle",{cx:m.points[m.activePointIndex].x,cy:m.points[m.activePointIndex].y,r:u/s,fill:"lightgreen",fillOpacity:.5,pointerEvents:"none"}),m.points.map(((e,t)=>i().createElement(h,{key:t,editableLineMap:n,index:t,point:e,scale:s,activeEditableLine:d,unsetActivePointIndex:x,unsetTimeout:w})))))}function h(e){let{editableLineMap:t,index:n,point:l,scale:a,activeEditableLine:c,unsetTimeout:f,unsetActivePointIndex:h}=e;const{rootRef:m,smartConnectLineState:g,hoverState:p,setHoverState:y,setSmartConnectLineState:w,onConnect:x,lineEditorState:E,setLineEditorState:k,onChangeEdgeView:b}=(0,r.s)(),M=(0,o.useRef)(null);return(0,o.useEffect)((()=>{const e=M.current,t=o=>{"mousemove"===o.type&&(null==e||e.removeEventListener(o.type,t)),f(),y((e=>e&&e.activePointIndex!==n?{...p,activePointIndex:n}:e))};return null==e||e.addEventListener("mouseenter",t),null==e||e.addEventListener("mousemove",t),()=>{null==e||e.removeEventListener("mouseenter",t),null==e||e.removeEventListener("mousemove",t)}}),[p,n,y,f]),(0,o.useEffect)((()=>{if(E)return;const e=e=>{e.preventDefault(),e.stopPropagation();const t=m.current.getBoundingClientRect(),o=p.points[n];w({source:p.cell,from:[o.x,o.y],offset:[t.left,t.top],exitPosition:p.relativePoints[n]})},t=M.current;return null==t||t.addEventListener("mousedown",e),()=>{null==t||t.removeEventListener("mousedown",e)}}),[p,n,E,m,w]),(0,o.useEffect)((()=>{const e=e=>{if(!c||!E||"decorator"!==c.type)if(e.preventDefault(),e.stopPropagation(),g)g.source!==(null==p?void 0:p.cell)&&(null==x||x(g.source,p.cell,g.exitPosition,p.relativePoints[p.activePointIndex])),w(null);else if(c&&E){const e=p.relativePoints[p.activePointIndex],{type:n}=E,{source:o,target:i}=t.get(c),{view:r}=c;"entry"===n?null==b||b(o,i,{...r,entryPosition:e}):null==b||b(o,i,{...r,exitPosition:e}),k(null)}},n=M.current;return null==n||n.addEventListener("mouseup",e),()=>{null==n||n.removeEventListener("mouseup",e)}}),[g,p,x,w,c,E,t,b,k]),i().createElement("g",{ref:M,onMouseLeave:h},i().createElement("circle",{cx:l.x,cy:l.y,r:u,fill:"transparent"}),i().createElement("image",{x:l.x-v/a,y:l.y-v/a,width:d/a,height:d/a,xlinkHref:s,preserveAspectRatio:"none"}))}},2733:(e,t,n)=>{n.d(t,{a:()=>r});var o=n(8944),i=n(4197);function r(e,t){let{cells:n,activeTarget:r,lockedContainerIds:l}=t;const a=n.filter((e=>(0,i.Q)(e,r)&&!(0,o.l)(e,l)));if(0!==a.length)switch(e.key||e.keyCode||e.which){case"Backspace":case 8:case"Delete":case 46:return e.preventDefault(),e.stopPropagation(),{action:"delete-cells",cells:a}}}},2969:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(531),i=n(4197);function r(e,t,n,r){const l=[],a=[];for(const t of n)if((0,i.Q)(t,e)){var c;if((0,o.N)(t)&&t.containerId&&r.includes(t.containerId))continue;(null!==(c=t.view)&&void 0!==c&&c.locked?l:a).push(t)}let s=null;const d=[];return"unlock"!==t&&a.length>0?s=n.map((e=>{if(a.includes(e)){const t={...e,view:{...e.view,locked:!0}};return d.push(t),t}return e})):"lock"!==t&&l.length>0&&(s=n.map((e=>{if(l.includes(e)){const t={...e,view:{...e.view,locked:!1}};return d.push(t),t}return e}))),{newCells:s,updates:d}}},3012:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(6758),i=n.n(o),r=n(935),l=n.n(r)()(i());l.push([e.id,"*{box-sizing:border-box}:host{display:block;position:relative;overflow:hidden;--animation-dasharray:48;--stroke-dashedoffset:96;--stroke-dottedoffset:24;--dasharray:4;--dotted:1;--area-bg-color:rgba(119,141,195,0.1)}:host,\n.root{width:100%;height:100%}:host([hidden]){display:none}.root{opacity:0}.root.ready{opacity:1}.root:focus{outline:none}@keyframes solidAnimation{to{stroke-dashoffset:0}}@keyframes dashedAnimation{0%{stroke-dashoffset:var(--stroke-dashedoffset)}to{stroke-dashoffset:0}}@keyframes dottedAnimation{0%{stroke-dashoffset:var(--stroke-dottedoffset)}to{stroke-dashoffset:0}}.solid-animation{stroke-dasharray:var(--solid-length);stroke-dashoffset:var(--solid-length);animation:solidAnimation var(--time) linear infinite}.dashed-animation{animation:dashedAnimation var(--time) linear infinite}.dotted-animation{animation:dottedAnimation var(--time) linear infinite}.decorator-area .area,\n.container-wrapper .container{background-color:var(--area-bg-color);border:1px solid transparent}.decorator-text .text-container{border:1px solid transparent}.decorator-rect-container .rect-container{border:1px solid rgba(73,126,255,0.7)}.cell.active .decorator-area .area,\n.cell.active .decorator-rect-container .rect-container,\n.cell.active .decorator-text .text-container,\n.cell.active .container-wrapper .container,\n.container-dragover .decorator-container .container{border-style:dashed;border-color:rgba(73,126,255,0.7)}.node,\n.container-wrapper{overflow:visible}.decorator-text,\n.decorator-rect,\n.decorator-area{overflow:visible;pointer-events:none}.lock-icon,\n.decorator-text > *,\n.decorator-rect > *,\n.decorator-area > *{pointer-events:auto}.cell.active .line-active-bg{stroke:var(--palette-blue-5);stroke-dasharray:var(--dasharray);stroke-width:1}.cell:not(.read-only){-webkit-user-select:none;user-select:none}.resize-handle{cursor:nwse-resize;opacity:0}.resize-handle rect{fill:transparent;stroke:none}.resize-handle path{fill:none;stroke:var(--palette-gray-5);stroke-width:1.5}.decorator-area-container:hover .resize-handle,\n.decorator-rect-container:hover .resize-handle,\n.decorator-container:hover .resize-handle{opacity:1}.connect-line{pointer-events:none}.connect-line:not(.connecting){display:none}.editing-line{pointer-events:none;stroke-dasharray:var(--dasharray);stroke-width:1}.editing-line:not(.editing){display:none}.line.dashed{stroke-dasharray:var(--dasharray)}.line.dotted{stroke-dasharray:var(--dotted)}.decorator-text .text-container{width:max-content;padding:0.5em;white-space:pre}.cell:not(.read-only) .decorator-text .text-container:hover{color:#497eff}.decorator-text .text:focus{outline:none}.cell.faded{opacity:0.3}.cell.container-dragover{opacity:1}.cell .node{pointer-events:none}.cell .node > *{position:fixed;pointer-events:auto}.degraded{pointer-events:bounding-box}.degraded circle{fill:rgb(119,141,195)}.degraded text{text-anchor:middle;fill:var(--antd-text-color)}.cell.active .degraded circle,\n.cell.active .degraded text,\n.degraded:hover circle,\n.degraded:hover text{fill:var(--color-brand)}.decorator-container{--defaultSize:24px}.decorator-container .text-container{display:flex;align-items:center;justify-content:center;padding:0.5em;text-align:center;font-size:16px;color:#262626;background-color:rgba(119,141,195,0.25);overflow:hidden}.decorator-container .horizontal{height:max-content;width:100%}.decorator-container .horizontal .text{min-height:var(--defaultSize)}.decorator-container .vertical{width:max-content;height:100%;writing-mode:vertical-lr;-webkit-text-orientation:upright;text-orientation:upright;letter-spacing:4px}.decorator-container .vertical .text{min-width:var(--defaultSize)}.line-label-container{overflow:visible;opacity:0}.line-label-container.ready{opacity:1}.line-label{position:absolute;display:block;transform:translate(-50%,-50%);white-space:pre-line;width:max-content;text-align:center}.line-label.text{font-size:11px;color:var(--color-secondary-text);font-weight:400;line-height:1.63636364}.motion:not(.visible){opacity:0}",""]);const a=l.toString()},3033:(e,t,n)=>{n.d(t,{Be:()=>y,CE:()=>h,CV:()=>o,D9:()=>a,Dm:()=>l,HP:()=>r,Ie:()=>m,Jo:()=>I,N8:()=>c,Ub:()=>p,VO:()=>f,XK:()=>M,XV:()=>g,Yt:()=>u,gx:()=>x,ld:()=>E,mF:()=>v,o5:()=>k,p6:()=>b,pC:()=>w,rn:()=>C,sS:()=>d,w1:()=>s,xc:()=>i});const o=Symbol.for("size-initialized"),i=Symbol.for("layout-initialized"),r=20,l=36,a=50,c=180,s=120,d=.5,u=2,v="gray",f=1,h="rgba(73, 126, 255, 0.7)",m=15,g=!1,p=!0,y=1,w=500,x=10,E=5,k="all",b=5,M=0,C=0,I=50},3371:(e,t,n)=>{n.d(t,{L:()=>f});var o=n(1030),i=n(3033),r=n(531),l=n(37),a=n(9314),c=n(1489),s=n(6170),d=n(9127),u=n(8185);function v(e,t,n,o,i,r,l,a){const c=e+n/2,s=t+o/2,d=i+l/2,u=r+a/2,v=(n+l)/2,f=(o+a)/2;return Math.abs(c-d)<v&&Math.abs(s-u)<f}function f(e){let{cells:t,layout:n,previousCells:f,defaultNodeSize:h,canvasWidth:m,canvasHeight:g,scaleRange:p,transform:y,reason:w,parent:x,allowEdgeToArea:E,layoutOptions:k}=e;const b="force"!==n&&"dagre"!==n,M=(0,l.C)(t,{defaultNodeSize:h,layoutOptions:k,isInitialize:!1}),C=[];let I=!1;const L=new Map;let S=!1;for(const e of f)(0,r.mH)(e)?S=!0:(0,r.N)(e)&&(S=!0,e[i.CV]&&L.set(e.id,e));const N=new Map;for(const e of M)if((0,r.N)(e)){N.set(e.id,e);const t=L.get(e.id);t&&(e.view.width=t.view.width,e.view.height=t.view.height,e[i.CV]=!0)}let z=!1;if("add-related-nodes"===w&&x){const e=new Set;for(const t of M)(0,r.WW)(t)&&t.source===x&&t.target!==x&&e.add(t.target);const t=N.get(x);if(void 0!==(null==t?void 0:t.view.x)&&void 0!==t.view.y){if(z=!0,b)for(const t of M)((0,r.N)(t)&&void 0===t.view.x||(0,r.N)(t)&&void 0===t.view.y)&&e.add(t.id);const n=[...e].map((e=>N.get(e))).filter(Boolean);let o;for(const e of n)void 0!==e.view.x&&void 0!==e.view.y?(!o||e.view.x>o.view.x)&&e.view.y>t.view.y&&(o=e):C.push(e);if(C.length>0&&b){let e,n;if(o)e=o.view.x+o.view.width+i.Dm,n=o.view.y;else{const o=C.reduce(((e,t)=>e+t.view.width+i.Dm),-i.Dm);e=t.view.x-o/2+t.view.width/2,n=t.view.y+t.view.height+i.D9}for(const t of C)t.view.x=e,t.view.y=n,e+=t.view.width+i.Dm}}}if(!z){const e=[];let t=!1;for(const n of M)(0,r.N)(n)?(0,r.kN)(n.view)?C.push(n):e.push(n):(0,r.mH)(n)&&(t=!0);if(b){let n;S||(y=function(e,t){const n=(0,a.S)(e);return(0,c.P)(n,t)}((0,o.without)(M,...C),{canvasWidth:m,canvasHeight:g,scaleRange:p})),0===e.length||1===e.length&&!t&&C.length>0?(C.push(...e),({getNodeView:n}=(0,d.C)({cells:M,allowEdgeToArea:E})),I=0===f.length||f.length===M.length&&f.every(((e,t)=>(0,u.c)(e,M[t])))):({getNodeView:n}=(0,s.k)({cells:M,fixedPosition:!0,allowEdgeToArea:E,center:[(m/2-y.x)/y.k,(g/2-y.y)/y.k]})),function(e,t){let{defaultNodeSize:n}=t;const i=e.filter((e=>"node"===e.type&&(0,r.kN)(e.view)&&!(0,o.isNil)(e.containerId)));if(!i.length)return;const l={};(0,o.forEach)((0,o.groupBy)(i,"containerId"),((e,t)=>{l[t]=e})),e.filter((e=>(0,r.t2)(e)&&l[e.id])).forEach((t=>{const o=t.id,i=t.view,a=e.filter((e=>(null==e?void 0:e.containerId)===o&&!(0,r.kN)(e.view))).map((e=>({x:e.view.x,y:e.view.y})));l[o].forEach((e=>{var t,o;const r=(null===(t=e.view)||void 0===t?void 0:t.width)||n[0],l=(null===(o=e.view)||void 0===o?void 0:o.height)||n[1],c=function(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const{x:l,y:a,width:c}=e,s=n+i,d=o+i,u=Math.floor((c-2*r)/s);let f=0;for(;;){for(let e=0;e<u;e++){const i=l+r+e*s,c=a+r+f*d;if(!t.some((e=>v(i,c,n,o,e.x,e.y,n,o))))return{x:i,y:c}}f++}}(i,a,r,l,10,20);c&&(e.view={...e.view,x:c.x,y:c.y},a.push(c))}))}))}(M,{defaultNodeSize:h});for(const e of M)if((0,r.N)(e)&&(0,r.kN)(e.view)){const t=n(e.id);e.view.x=t.x,e.view.y=t.y}}}return{cells:M,updated:C,shouldReCenter:I}}},3639:(e,t,n)=>{n.d(t,{w:()=>a});var o=n(8769),i=n.n(o),r=n(3373),l=n.n(r);function a(e){let{connectLineState:t,transform:n,markerEnd:r,onConnect:a}=e;const[c,s]=(0,o.useState)(null);return(0,o.useEffect)((()=>{t&&s(t.from)}),[t]),(0,o.useEffect)((()=>{if(t){const e=e=>[(e.clientX-n.x-t.offset[0])/n.k,(e.clientY-n.y-t.offset[1])/n.k],o=t=>{s(e(t))},i=e=>{e.stopPropagation()},r=n=>{n.stopPropagation(),l(),a(t,e(n))},l=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("click",r,{capture:!0}),s(null)};return document.addEventListener("mousemove",o),document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("click",r,{capture:!0}),l}}),[t,a,n]),i().createElement("path",{className:l()("connect-line",{connecting:!!t&&c&&(c[0]-t.from[0])**2+(c[1]-t.from[1])**2>25}),d:t&&c?`M${t.from.join(" ")}L${c.join(" ")}`:"",fill:"none",stroke:"gray",strokeWidth:1,markerEnd:`url(#${r})`})}},4117:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(8769),i=n(531);function r(e,t){return e.find((e=>(0,i.o6)(e)&&e.id===t))}var l=n(967),a=n(1030),c=n(4525);const s=6;function d(e,t,n,o,i){const r=(0,c.y)([e.x,e.y],[t.x,t.y],[n.x,n.y],[o.x,o.y]);if(r){const l=i*i;for(const i of[e,t,n,o]){const e=r[0]-i.x,t=r[1]-i.y;if(e*e+t*t<l)return null}return{x:r[0],y:r[1]}}return null}function u(e){let{cells:t,lineConfMap:n}=e;return(0,o.useMemo)((()=>{const e=new WeakMap,o=function(){const e=[],t=[];return function(n,o){const i=[],r=[];if("curve"!==o.type||"curveLinear"===o.curveType){for(let l=0;l<n.length-1;l++){const c=n[l],u=n[l+1],v=[],f=s/2+o.strokeWidth-1;if(o.jumps)e:for(const n of t){const t=d(c,u,n.start,n.end,f);if(t){for(const n of e)for(const e of n.jumpPoints)if(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))<f+n.radius)continue e;v.push(t)}}if(v.length>0){const t={jumpPoints:(0,a.sortBy)(v,(e=>(e.x-n[0].x)**2+(e.y-n[0].y)**2)),index:l,radius:f};e.push(t),i.push(t)}r.push({start:c,end:u})}t.push(...r)}return i.length>0?new Map(i.map((e=>[e.index,e]))):null}}();for(const a of t)if((0,i.WW)(a)){var c;const s=n.get(a);if(!s)continue;const d=r(t,a.source),u=r(t,a.target),v=(0,i.jw)(null===(c=a.view)||void 0===c?void 0:c.type)&&t.some((e=>{var t;return(0,i.WW)(e)&&a.source===e.target&&a.target===e.source&&(0,i.jw)(null===(t=e.view)||void 0===t?void 0:t.type)}))?s.parallelGap:0,f=d&&u&&null!=d.view.x&&null!=u.view.x?(0,l.V)(d.view,u.view,a.view,v,a.type):null;if(f){const t=o(f,s);e.set(a,{edge:a,points:f,source:d,target:u,parallelGap:v,jumpsMap:t})}}else if((0,i._m)(a)){const t=n.get(a);if(!t)continue;const{source:i,target:r}=a.view,c=i&&r?(0,l.V)({...i,width:0,height:0},{...r,width:0,height:0},a.view,0,a.type):null;if(c){const n=o(c,t);e.set(a,{decorator:a,points:c,parallelGap:0,jumpsMap:n})}}return e}),[t,n])}},4197:(e,t,n)=>{n.d(t,{Q:()=>i});var o=n(8185);function i(e,t){return!!t&&("multi"===t.type?t.targets:[t]).some((t=>(0,o.c)(t,e)))}},4516:(e,t,n)=>{function o(e){let t=1/0,n=1/0,o=-1/0,i=-1/0;return e.forEach((e=>{const{x:r,y:l,width:a,height:c}=e.view;r<t&&(t=r),l<n&&(n=l),r+a>o&&(o=r+a),l+c>i&&(i=l+c)})),[t,o,n,i].some((e=>isFinite(e)))?{x:t-20,y:n-20,width:o-t+40,height:i-n+40}:{}}n.d(t,{Z:()=>o})},5748:(e,t,n)=>{n.d(t,{d:()=>d});var o=n(1030),i=n(531),r=n(3033);const l=[{type:"decorator",decorators:["line","area","container","rect"]},{type:"edge"},{type:"node"},{type:"decorator",decorators:["text"]}];function a(e,t){return c(e,[t])}function c(e,t){if(0===t.length)return e;const n=l.findIndex((e=>s(t[0],e)));-1===n&&console.warn("Default order index unhandled for the cell: %o.\n%s",t[0],"This is a bug of diagram-NB, please report it.");const o=e.findLastIndex((e=>l.findIndex((t=>s(e,t)))<=n))+1;return[...e.slice(0,o),...t,...e.slice(o)]}function s(e,t){return e.type===t.type&&("decorator"!==t.type||t.decorators.includes(e.decorator))}const d=(u={cells:(e,t)=>{switch(t.type){case"drop-node":case"drop-decorator":return a(e,t.payload);case"add-nodes":return c(e,t.payload);case"add-edge":{const n=e.findIndex((e=>"edge"===e.type&&e.source===t.payload.source&&e.target===t.payload.target));return-1===n?a(e,t.payload):[...e.slice(0,n),t.payload,...e.slice(n+1)]}case"change-edge-view":{const n=e.findIndex((e=>"edge"===e.type&&e.source===t.payload.source&&e.target===t.payload.target));return-1===n?e:[...e.slice(0,n),{...e[n],view:t.payload.view},...e.slice(n+1)]}case"change-decorator-view":{const n=e.findIndex((e=>"decorator"===e.type&&e.id===t.payload.id));return-1===n?e:[...e.slice(0,n),{...e[n],view:t.payload.view},...e.slice(n+1)]}case"move-cells":{let n=!1;const i=e.map((e=>{const i=t.payload.find((t=>e.type===t.type&&e.id===t.id));return i?(n=!0,{...e,view:{...e.view,x:i.x,y:i.y,...(0,o.pick)(i,"source","target","vertices")}}):e}));return n?i:e}case"resize-cell":{const{type:n,id:o,width:i,height:r}=t.payload,l=e.findIndex((e=>e.type===n&&e.id===o));if(-1!==l){const t=e[l];return[...e.slice(0,l),{...t,view:{...t.view,width:i,height:r}},...e.slice(l+1)]}return e}case"update-cells":return t.payload;case"update-node-size":return e.map((e=>(0,i.N)(e)&&e.id===t.payload.id?{...e,[r.CV]:!0,view:t.payload.size?{...e.view,width:t.payload.size[0],height:t.payload.size[1]}:e.view}:e))}return e},layoutKey:(e,t)=>"update-node-size"===t.type?t.layoutKey:e},(e,t)=>Object.fromEntries(Object.entries(u).map((n=>{let[o,i]=n;return[o,i(e[o],t)]}))));var u},6170:(e,t,n)=>{n.d(t,{k:()=>v});var o=n(1030),i=n(6149),r=n(4842),l=n(1945),a=n(9418),c=n(3854),s=n(7931),d=n(531),u=n(8802);function v(e){let{cells:t,layoutOptions:n,center:v,fixedPosition:f,allowEdgeToArea:h}=e;const{nodePadding:m,collide:g}={nodePadding:0,...(0,o.pick)(n,["nodePadding"]),collide:!1!==(null==n?void 0:n.collide)&&{radiusDiff:18,strength:1,iterations:1,...!0===(null==n?void 0:n.collide)?null:null==n?void 0:n.collide}},p=(0,u.D)(m),y=[],w=[],x=new Map;for(const e of t)if(h&&(0,d.o6)(e)||(0,d.N)(e)){const t={id:e.id,width:e.view.width+p[1]+p[3],height:e.view.height+p[0]+p[2],...f?{fx:e.view.x,fy:e.view.y}:null};y.push(t),x.set(t.id,t)}else(0,d.WW)(e)&&w.push({source:e.source,target:e.target});const E=(0,i.A)(w).id((e=>e.id)),k=(0,r.A)(y).force("link",E).force("x",(0,l.A)(null==v?void 0:v[0])).force("y",(0,a.A)(null==v?void 0:v[1])).force("charge",(0,c.A)());return g&&k.force("collide",(0,s.A)().radius((e=>Math.sqrt(e.width**2+e.height**2)/2+g.radiusDiff)).strength(g.strength).iterations(g.iterations)),k.stop(),function(e){e.tick(Math.ceil(Math.log(e.alphaMin())/Math.log(1-e.alphaDecay())))}(k),{getNodeView:e=>x.get(e),nodePaddings:p}}},6237:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(6758),i=n.n(o),r=n(935),l=n.n(r)()(i());l.push([e.id,'.zoom-bar{position:absolute;bottom:20px;right:20px;width:40px;scale:0.8}.zoom-slider,\n.center-button{width:100%;display:flex;align-items:center;border:1px solid var(--antd-background-color-base);border-radius:var(--larger-border-radius);box-shadow:var(--connected-overlay-shadow);background-color:var(--color-fill-bg-container-4)}.zoom-slider{height:140px;padding:8px 0;flex-direction:column}[role="button"]{cursor:pointer}.center-button{justify-content:center;margin-bottom:8px;height:40px}.center-button:hover{border-color:var(--antd-btn-default-hover-border-color)}.center-button path{fill:var(--antd-link-hover-color)}.center-button:hover path{fill:var(--palette-blue-7)}.zoom-button{font-size:16px;line-height:0}.zoom-button svg{width:1em;height:1em;fill:var(--antd-link-hover-color)}.zoom-slider .ant-slider-vertical{padding-left:5px;padding-right:5px}.zoom-slider .ant-slider-vertical .ant-slider-rail{width:2px}.zoom-slider .ant-slider-vertical .ant-slider-handle{width:6px;height:6px;left:3px}.zoom-slider .ant-slider .ant-slider-handle:hover::before,\n.zoom-slider .ant-slider .ant-slider-handle:focus::before,\n.zoom-slider .ant-slider .ant-slider-handle::before{width:10px;height:10px;left:-2px}.zoom-slider .ant-slider .ant-slider-handle:hover::after,\n.zoom-slider .ant-slider .ant-slider-handle:focus::after,\n.zoom-slider .ant-slider .ant-slider-handle::after{width:6px;height:6px;top:0;left:0}',""]);const a=l.toString()},7099:(e,t,n)=>{n.d(t,{Y:()=>h});var o=n(8769),i=n.n(o),r=n(1895),l=n(6768),a=n(6313),c=n(5694),s=n(7390),d=n(9575);const u=e=>o.createElement("svg",(0,d.A)({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e),o.createElement("path",{d:"M12 0a.5.5 0 0 1 .5.5v2.013a9.5 9.5 0 0 1 8.987 8.988L23.5 11.5a.5.5 0 0 1 0 1h-2.013a9.5 9.5 0 0 1-8.987 8.987V23.5a.5.5 0 0 1-1 0v-2.013A9.5 9.5 0 0 1 2.514 12.5H.5a.5.5 0 0 1 0-1h2.013A9.5 9.5 0 0 1 11.5 2.514V.5A.5.5 0 0 1 12 0M3.514 11.5H7.5a.5.5 0 0 1 0 1H3.514a8.5 8.5 0 0 0 7.987 7.986L11.5 16.5a.5.5 0 0 1 1 0v3.986a8.5 8.5 0 0 0 7.986-7.986H16.5a.5.5 0 0 1 0-1h3.986A8.5 8.5 0 0 0 12.5 3.515V7.5a.5.5 0 0 1-1 0V3.514a8.5 8.5 0 0 0-7.986 7.987zm8.486-1a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})),v=e=>o.createElement("svg",(0,d.A)({xmlns:"http://www.w3.org/2000/svg",width:128,height:128,className:"icon",viewBox:"0 0 1024 1024"},e),o.createElement("path",{d:"M512 76.8A435.2 435.2 0 1 0 947.2 512 435.71 435.71 0 0 0 512 76.8m0 819.2a384 384 0 1 1 384-384 384 384 0 0 1-384 384"}),o.createElement("path",{d:"M744.448 486.4h-204.8V281.6a25.6 25.6 0 1 0-51.2 0v204.8h-204.8a25.6 25.6 0 0 0 0 51.2h204.8v204.8a25.6 25.6 0 0 0 51.2 0V537.6h204.8a25.6 25.6 0 0 0 0-51.2"})),f=e=>o.createElement("svg",(0,d.A)({xmlns:"http://www.w3.org/2000/svg",width:128,height:128,className:"icon",viewBox:"0 0 1024 1024"},e),o.createElement("path",{d:"M512 76.8A435.2 435.2 0 1 0 947.2 512 435.71 435.71 0 0 0 512 76.8m0 819.2a384 384 0 1 1 384-384 384 384 0 0 1-384 384"}),o.createElement("path",{d:"M744.448 486.4H280.064a25.6 25.6 0 1 0 0 51.2h464.384a25.6 25.6 0 0 0 0-51.2"}));function h(e){let{shadowRoot:t,scale:n,scaleRange:d,onZoomChange:h,onReCenter:m}=e;const g=(0,s.useCurrentTheme)(),p=(0,o.useMemo)((()=>(0,c.VC)()),[]),y=(0,o.useRef)(null),w=100*d[0],x=100*d[1],E=100*n,k=(0,o.useMemo)((()=>({formatter:e=>`${e}%`,placement:"left",getPopupContainer:()=>y.current})),[]),b=(0,o.useCallback)((()=>{h(Math.min(E+5,x))}),[x,h,E]),M=(0,o.useCallback)((()=>{h(Math.max(E-5,w))}),[w,h,E]);return i().createElement(r.Ay,{theme:{algorithm:"dark-v2"===g?l.A.darkAlgorithm:l.A.defaultAlgorithm}},i().createElement(c.N7,{container:t,autoClear:!0,cache:p,hashPriority:"high"},i().createElement("div",{className:"zoom-bar",ref:y},i().createElement("div",{className:"center-button",onClick:m,role:"button"},i().createElement(u,null)),i().createElement("div",{className:"zoom-slider"},i().createElement("div",{className:"zoom-button",role:"button",onClick:b},i().createElement(v,null)),i().createElement(a.A,{min:w,max:x,value:E,step:5,vertical:!0,included:!1,tooltip:k,onChange:h}),i().createElement("div",{className:"zoom-button",role:"button",onClick:M},i().createElement(f,null))))))}},7531:(e,t,n)=>{n.d(t,{I:()=>d,d:()=>c});var o=n(8769),i=n(140),r=n(1030),l=n(531),a=n(3033);function c(e){let{cells:t,defaultEdgeLines:n,markerPrefix:c,lineConnector:f,useMemoizedResult:h}=e;const m=(0,o.useRef)(null);return(0,o.useMemo)((()=>{if(h&&m.current)return m.current;const e=[{strokeColor:a.mF,markerType:"arrow"}];let o=null;if(f){o={...v(),editingStrokeColor:"var(--palette-blue-5)",...(0,r.omitBy)(!0===f?{}:f,r.isUndefined)};const t=d(o);for(const n of t){const{placement:t,type:i}=n,r=null!=i?i:"arrow",l=u({strokeColor:o.strokeColor,markerType:r},e),a=u({strokeColor:o.editingStrokeColor,markerType:r},e);"start"===t?(o.$markerStartUrl=`url(#${c}${l})`,o.$editingStartMarkerUrl=`url(#${c}${a})`):(o.$markerEndUrl=`url(#${c}${l})`,o.$editingEndMarkerUrl=`url(#${c}${a})`)}}const g=new WeakMap;for(const o of t){const t=(0,l.WW)(o),f=(0,l._m)(o);let h;if(t){var p,y;const e=null!==(p=Array.isArray(n)?s(n.find((e=>(0,i.checkIfByTransform)(e,{edge:o}))),o):null===(y=i.__secret_internals.legacyDoTransform({edge:o},n))||void 0===y?void 0:y.find((e=>(0,i.checkIfOfComputed)(e))))&&void 0!==p?p:{};h={...v(),...(0,r.omitBy)(e,r.isUndefined),...(0,r.omitBy)(o.view,r.isUndefined)},void 0===h.parallelGap&&(h.parallelGap=h.interactStrokeWidth)}else h={...v(),showEndArrow:!1,strokeColor:a.CE,...(0,r.omitBy)(o.view,r.isUndefined)};if(t||f){const n=d(h);for(const o of n){var w;const{placement:n,type:i}=o,r=null!=i?i:"arrow",l=u({strokeColor:h.strokeColor,markerType:r},e);"start"===n?h.$markerStartUrl=`url(#${c}${l})`:h.$markerEndUrl=`url(#${c}${l})`;const a=null===(w=h.overrides)||void 0===w||null===(w=w.active)||void 0===w?void 0:w.strokeColor;if(a&&a!==h.strokeColor){const t=u({strokeColor:a,markerType:r},e);"start"===n?h.$activeMarkerStartUrl=`url(#${c}${t})`:h.$activeMarkerEndUrl=`url(#${c}${t})`}if(t){var x;const t=null===(x=h.overrides)||void 0===x||null===(x=x.activeRelated)||void 0===x?void 0:x.strokeColor;if(t&&t!==h.strokeColor){const o=u({strokeColor:t,markerType:r},e);"start"===n?h.$activeRelatedMarkerStartUrl=`url(#${c}${o})`:h.$activeRelatedMarkerEndUrl=`url(#${c}${o})`}}}g.set(o,h)}}return m.current={lineConfMap:g,lineConnectorConf:o,markers:e}}),[t,n,f,c,h])}function s(e,t){var n;if(null!=e&&null!==(n=e.label)&&void 0!==n&&n.useBrick){const{label:{useBrick:n,...o},...r}=e,l=i.__secret_internals.legacyDoTransform({edge:t},{...r,label:o});return{...l,label:{...l.label,useBrick:n}}}return i.__secret_internals.legacyDoTransform({edge:t},e)}function d(e){let t=[];return e.markers?t=e.markers:(e.showStartArrow&&t.push({type:"arrow",placement:"start"}),e.showEndArrow&&t.push({type:"arrow",placement:"end"})),t}function u(e,t){let n=(0,r.findIndex)(t,e);return-1===n&&(n=t.push(e)-1),n}function v(){return{type:"straight",dashed:!1,strokeColor:a.mF,strokeWidth:a.VO,interactStrokeWidth:a.Ie,showStartArrow:a.XV,showEndArrow:a.Ub,animate:{useAnimate:!1,duration:a.Be},jumps:!1}}},8091:(e,t,n)=>{n.d(t,{f:()=>v});var o,i,r,l=n(8769),a=n(7566),c=n(9047),s=n(3033);const d=/mac/i.test(null!==(o=null!==(i=null===(r=navigator.userAgentData)||void 0===r?void 0:r.platform)&&void 0!==i?i:navigator.platform)&&void 0!==o?o:navigator.userAgent);function u(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey&&d?10:1)}function v(e){let{rootRef:t,zoomable:n,scrollable:o,pannable:i,draggable:r,ctrlDraggable:d,scaleRange:v,onSwitchActiveTarget:f}=e;const[h,m]=(0,l.useState)(!1),[g,p]=(0,l.useState)({k:1,x:0,y:0}),y=(0,l.useMemo)((()=>null!=v?v:[s.sS,s.Yt]),[v]),w=(0,l.useMemo)((()=>(0,c.s_)().wheelDelta(u)),[]);return(0,l.useEffect)((()=>{let e=!1;w.scaleExtent(n?y:[1,1]).on("start",(()=>{e=!1,m(!0)})).on("zoom",(t=>{e=!0,p(t.transform)})).on("end",(()=>{m(!1),e||null==f||f(null)})).filter((e=>("wheel"===e.type?e.ctrlKey:d?r||e.ctrlKey:!e.ctrlKey)&&!e.button))}),[f,y,n,w,d,r]),(0,l.useEffect)((()=>{if(d){const e=e=>{e.ctrlKey&&e.preventDefault()};return document.addEventListener("contextmenu",e,!0),()=>{document.removeEventListener("contextmenu",e,!0)}}}),[d]),(0,l.useEffect)((()=>{const e=t.current;if(!e)return;const l=(0,a.A)(e),c=()=>{l.on(".zoom",null).on(".zoom.custom",null).on("wheel",null)};if(n||o||i)return(n||o)&&l.on("wheel.zoom.custom",(e=>{!e.ctrlKey&&o&&(e.preventDefault(),w.translateBy(l,e.wheelDeltaX/5,e.wheelDeltaY/5))})),l.call(w).on("wheel",(e=>{(o||n&&e.ctrlKey)&&e.preventDefault()})).on("dblclick.zoom",null),(r||d)&&i||l.on("mousedown.zoom",null),i||l.on("touchstart.zoom",null).on("touchmove.zoom",null).on("touchend.zoom",null),c;c()}),[d,r,i,t,o,n,w]),{grabbing:h,transform:g,zoomer:w,scaleRange:y}}},8185:(e,t,n)=>{function o(e,t){return e?!!t&&e.type===t.type&&("multi"===e.type?e.targets.length===t.targets.length&&e.targets.every((e=>t.targets.some((t=>o(e,t))))):"node"===e.type||"decorator"===e.type?e.id===t.id:e.source===t.source&&e.target===t.target):!t}n.d(t,{c:()=>o})},8197:(e,t,n)=>{n.d(t,{H:()=>l});var o=n(8769),i=n(531),r=n(3033);function l(e){let{cells:t,layout:n,centered:l}=e;return(0,o.useMemo)((()=>l&&t.every((e=>!(0,i.N)(e)||e[r.CV]&&("force"!==n&&"dagre"!==n||e[r.xc])))),[t,l,n])}},8875:(e,t,n)=>{n.d(t,{G:()=>l,X:()=>r});const o=[{x:0,y:0,d:["top","left"]},{x:.5,y:0,d:["top"]},{x:1,y:0,d:["top","right"]},{x:0,y:.5,d:["left"]},{x:1,y:.5,d:["right"]},{x:0,y:1,d:["bottom","left"]},{x:.5,y:1,d:["bottom"]},{x:1,y:1,d:["bottom","right"]}],i=o.map((e=>({x:e.x,y:e.y})));function r(){return o}function l(){return i}},8944:(e,t,n)=>{n.d(t,{E:()=>i,l:()=>r});var o=n(531);function i(e){return e.filter((e=>{var t;return(null===(t=e.view)||void 0===t?void 0:t.locked)&&(0,o.t2)(e)})).map((e=>e.id))}function r(e,t){var n;return(null===(n=e.view)||void 0===n?void 0:n.locked)||!!((0,o.N)(e)&&e.containerId&&null!=t&&t.includes(e.containerId))}},9127:(e,t,n)=>{n.d(t,{C:()=>c});var o=n(1030),i=n(7586),r=n.n(i),l=n(8802),a=n(531);function c(e){let{cells:t,layoutOptions:n,allowEdgeToArea:i}=e;const{nodePadding:c,...s}={nodePadding:0,rankdir:"TB",ranksep:50,edgesep:10,nodesep:50,...(0,o.pick)(n,["nodePadding","rankdir","ranksep","edgesep","nodesep","align"])},d=(0,l.D)(c);if(!t.some(a.N))return{getNodeView:()=>null,nodePaddings:d};const u=new(r().graphlib.Graph);u.setGraph(s),u.setDefaultEdgeLabel((function(){return{}}));for(const e of t)i&&(0,a.o6)(e)||(0,a.N)(e)?u.setNode(e.id,{id:e.id,width:e.view.width+d[1]+d[3],height:e.view.height+d[0]+d[2]}):(0,a.WW)(e)&&u.setEdge(e.source,e.target);return r().layout(u),{getNodeView:e=>u.node(e),nodePaddings:d}}},9314:(e,t,n)=>{n.d(t,{S:()=>i});var o=n(531);function i(e){let t=1/0,n=1/0,i=-1/0,r=-1/0,l=!0;for(const a of e)if(!(0,o.WW)(a)){l=!1;const{view:e}=a,o=e.x+e.width,c=e.y+e.height;e.x<t&&(t=e.x),o>i&&(i=o),e.y<n&&(n=e.y),c>r&&(r=c)}return{left:t,top:n,width:i-t,height:r-n,empty:l}}},9386:(e,t,n)=>{n.d(t,{P:()=>i});var o=n(1030);function i(e){return"edge"===e.type?(0,o.pick)(e,["type","source","target","data"]):(0,o.pick)(e,["type","id","data"])}},9978:(e,t,n)=>{n.d(t,{H:()=>r,s:()=>l});var o=n(8769),i=n.n(o);const r=i().createContext({rootRef:{current:null},smartConnectLineState:null,unsetHoverStateTimeoutRef:{current:null},hoverState:null,activeEditableLines:[],lineEditorState:null,setLineEditorState:()=>{},setHoverState:()=>{},setSmartConnectLineState:()=>{}});function l(){return i().useContext(r)}}}]);
|
|
2
|
-
//# sourceMappingURL=296.f3b52669.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_diagram=globalThis.webpackChunk_next_bricks_diagram||[]).push([[3171,5552],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>d,i18nText:()=>l,initializeI18n:()=>u});var i=t(5630),s=t(7448),r=t(848);let a=!1;const o=new Set;function u(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var c=t(9005);function l(n){var e;if(!n)return;const t=null!==(e=s.i18n.language)&&void 0!==e?e:"zh-CN";if((0,c.hasOwnProperty)(n,t))return n[t];const i=t.split("-")[0];if(i!==t)return(0,c.hasOwnProperty)(n,i)?n[i]:void 0;const r=`${i}-`;for(const e of Object.keys(n))if(e.startsWith(r))return n[e]}const d=i.default}}]);
|
|
2
|
-
//# sourceMappingURL=3171.4e111cd1.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3233.df97f221.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_diagram=globalThis.webpackChunk_next_bricks_diagram||[]).push([[3233],{821:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(6758),a=n.n(o),i=n(935),l=n.n(i)()(a());l.push([e.id,":host{display:block;width:100%;height:100%;overflow:hidden}:host([hidden]){display:none}*{box-sizing:border-box}.diagram{width:100%;height:100%;position:relative;opacity:0}.diagram:focus{outline:none}.lines,\n.line-labels,\n.nodes{position:absolute;top:0;left:0}.line-labels{opacity:0}.ready{opacity:1}.diagram.ready.pannable{cursor:grab}.diagram.pannable.grabbing{cursor:grabbing}.nodes,\n.lines{transform-origin:0 0}.node,\n.line-label{position:absolute;visibility:hidden}.line-label{transform:translate(-50%,-50%);white-space:pre-line;width:max-content;text-align:center;line-height:1}.lines{pointer-events:none}.line.interactable{pointer-events:auto;cursor:default}.connect-line{position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none}.connect-line:not(.connecting){display:none}.line:not(.active) .active-bg{display:none}",""]);const r=l.toString()},1324:(e,t,n)=>{function o(e,t){for(const{id:n,position:o,placement:a,angle:i,size:l}of e){const e=t.get(n);if(e&&(e.style.left=`${o[0]}px`,e.style.top=`${o[1]}px`,e.style.visibility="visible","center"!==a&&void 0!==i)){const[t,n]=null!=l?l:[0,0],o=Math.floor((i<0?2*Math.PI+i:i)/Math.PI*4),r="start"===a?o:(o+4)%8,s=Math.tan(i),d=i+("start"===a?1:-1)*Math.PI/2,c=2,u=Math.sin(d)*c,f=Math.cos(d)*c;let p;switch(r){case 0:p=`translate(0,${t*s+u}px)`;break;case 1:p=`translate(${n/s-f}px,0)`;break;case 2:p=`translate(calc(${n/s+f}px - 100%),0)`;break;case 3:p=`translate(-100%,${-t*s-u}px)`;break;case 4:p=`translate(-100%,calc(${-t*s+u}px - 100%))`;break;case 5:p=`translate(calc(${-n/s-f}px - 100%),-100%)`;break;case 6:p=`translate(${-n/s+f}px,-100%)`;break;default:p=`translate(0,calc(${t*s-u}px - 100%))`}e.style.transform=p}}}n.d(t,{F:()=>o})},1518:(e,t,n)=>{n.d(t,{R:()=>r});var o=n(8653),a=n(3188),i=n(4059),l=n(733);function r(e,t,n){const r=new WeakMap,c=new Map,u=new Map;for(const e of t)c.set(e.id,e);for(const t of e){const{data:e}=t;r.set(e,t)}let f=!1;return n.map((t=>{var n,p,m,h;let{line:v,edge:g,markers:y,...k}=t;const b=r.get(g);if(!b)return;const w=null!==(n=null===(p=y.find((e=>"default"===e.variant&&"start"===e.placement)))||void 0===p?void 0:p.offset)&&void 0!==n?n:0,x=null!==(m=null===(h=y.find((e=>"default"===e.variant&&"end"===e.placement)))||void 0===h?void 0:h.offset)&&void 0!==m?m:0;let M,{points:R}=b;if(!R){const t=c.get(g.source),n=c.get(g.target);if(t&&n&&t!==n){if("polyline"===v.type){if(!(0,l.w)(t,n,w,x)){var E,L;(()=>{if(f)return;f=!0;const t=(e,t)=>{let n=u.get(e);n||u.set(e,n=new Set);const o=c.get(t);o&&n.add(o)};for(const{data:{source:n,target:o}}of e)n!==o&&(t(n,o),t(o,n))})();const o=s(t,n,w),a=s(n,t,x),l=d(null!==(E=u.get(g.source))&&void 0!==E?E:[],t,o,w),r=d(null!==(L=u.get(g.target))&&void 0!==L?L:[],n,a,x),p=(l.indexOf(n)+1)/(l.length+1),m=(r.indexOf(t)+1)/(r.length+1);R=(0,i.o)(t,n,o,a,p,m)}}else R=(0,a.h)(t,n);if(R){const e=R[0],t=R[R.length-1];M=Math.atan2(t.y-e.y,t.x-e.x)}}}return{...k,markers:y,line:v,edge:g,d:(0,o.S)(R,v.curveType,w,x),angle:M,labelSize:b.labelSize}})).filter(Boolean)}function s(e,t,n){const o=Math.atan2(e.height+2*n,e.width+2*n),{x:a,y:i}=e,{x:l,y:r}=t,s=Math.atan2(r-i,l-a),d=s<0?2*Math.PI+s:s;switch(Math.floor(d/Math.PI*2)){case 0:return d<o?"right":"bottom";case 1:return d<Math.PI-o?"bottom":"left";case 2:return d<Math.PI+o?"left":"top";default:return d<2*Math.PI-o?"top":"right"}}function d(e,t,n,o){return[...e].filter((e=>s(t,e,o)===n)).sort(((e,t)=>{const{x:o,y:a}=e,{x:i,y:l}=t;return"top"===n||"bottom"===n?o-i:a-l}))}},1803:(e,t,n)=>{n.d(t,{m:()=>r});var o=n(8769),a=n.n(o),i=n(3373),l=n.n(i);function r(e){var t,n;let{line:{line:o,edge:i,d:r,markers:s},linePaths:d,lineMaskRects:c,maskPrefix:u,markerPrefix:f,activeLineMarkerPrefix:p,active:m,activeRelated:h,onLineClick:v,onLineDoubleClick:g}=e;const y=c.has(o.$id)?`url(#${u}${o.$id})`:void 0,{strokeColor:k,strokeWidth:b,interactStrokeWidth:w}={...o,...m?null===(t=o.overrides)||void 0===t?void 0:t.active:h?null===(n=o.overrides)||void 0===n?void 0:n.activeRelated:null},x=m?"active":h?"active-related":"default";let M,R;for(const e of s)e.variant===x&&("start"===e.placement?M=`url(#${f}${e.index})`:R=`url(#${f}${e.index})`);return a().createElement("g",{className:l()("line",{interactable:o.interactable,active:m,"active-related":h}),onClick:o.interactable?()=>{null==v||v({id:o.$id,edge:i})}:void 0,onDoubleClick:o.interactable?e=>{e.preventDefault(),e.stopPropagation(),null==g||g({id:o.$id,edge:i})}:void 0,style:{cursor:o.cursor}},o.interactable&&a().createElement("path",{d:r,fill:"none",stroke:"transparent",strokeWidth:w}),a().createElement("path",{ref:e=>d.set(o.$id,e),stroke:k,strokeWidth:b,d:r,fill:"none",markerStart:M,markerEnd:R,mask:y}),a().createElement("path",{stroke:"var(--palette-blue-3)",strokeWidth:b,d:r,fill:"none",className:"active-bg",markerStart:`url(#${p}start)`,markerEnd:`url(#${p}end)`,mask:y}))}},2448:(e,t,n)=>{n.d(t,{P:()=>i});var o=n(140),a=n(8657);function i(e,t){let{nodes:n,nodesRefRepository:i,connectNodes:l,dragNodes:r,scale:s,setConnectLineState:d,setConnectLineTo:c,setManualLayoutStatus:u,setNodeMovement:f,onSwitchActiveTarget:p,onNodesConnect:m}=t;function h(e){if(i)for(const[t,o]of i)if(e(o))return null==n?void 0:n.find((e=>e.id===t))}if(!l&&!r)return;const v=h((t=>t.contains(e.target)));if(!v)return;if(!function(e,t){return e.sourceType?[].concat(e.sourceType).includes(t.type):(0,o.checkIfByTransform)(e,{source:t})}(l||r,v))return;e.stopPropagation();const g=[e.clientX,e.clientY];if(l){d({from:g,options:{strokeColor:a.mF,strokeWidth:a.VO,...o.__secret_internals.legacyDoTransform({source:v},l)}}),c(g),null==p||p({type:"node",nodeId:v.id});const e=e=>{c([e.clientX,e.clientY])},t=n=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t),d(null);const o=n.composedPath(),a=h((e=>o.includes(e)));a&&v!==a&&(null==m||m({source:v,target:a}))};return document.addEventListener("mousemove",e),void document.addEventListener("mouseup",t)}null==p||p({type:"node",nodeId:v.id});let y=!1;const k=e=>{const t=[(e.clientX-g[0])/s,(e.clientY-g[1])/s];y||(y=t[0]**2+t[1]**2>=9,y&&u("started")),y&&f({id:v.id,move:t})},b=()=>{y=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b),f(null),u("finished")};document.addEventListener("mousemove",k),document.addEventListener("mouseup",b)}},2547:(e,t,n)=>{n.d(t,{d2:()=>r});var o=n(8769),a=n.n(o),i=n(7390),l=n(140);function r(e){let{labels:t,onRendered:n}=e;const[i,l]=(0,o.useState)(!1),[r,c]=(0,o.useState)([]),u=(0,o.useMemo)((()=>new Map),[]),f=(0,o.useCallback)(((e,t)=>{t&&u.set(e,t),c((t=>t.includes(e)?t:t.concat(e)))}),[u]),p=(0,o.useCallback)((e=>{c((t=>{const n=t.indexOf(e);return-1===n?t:t.slice(0,n).concat(t.slice(n+1))})),u.delete(e)}),[u]);return(0,o.useEffect)((()=>{l(!(null!=t&&t.some((e=>!r.includes(e.id)))))}),[t,r]),(0,o.useEffect)((()=>{null==n||n(i?u:null)}),[u,i]),a().createElement(a().Fragment,null,null==t?void 0:t.map((e=>{let{text:t,label:n,id:o,edge:i}=e;return n?a().createElement("div",{key:o,className:"line-label"},a().createElement(d,{id:o,edge:i,label:n,onRendered:f,onUnmount:p})):a().createElement(s,{key:o,id:o,text:t,onRendered:f})})))}function s(e){let{id:t,text:n,onRendered:i}=e;const l=(0,o.useCallback)((e=>{null==i||i(t,e)}),[t,i]);return a().createElement("div",{className:"line-label",ref:l,style:n.style},n.content)}function d(e){let{id:t,edge:n,label:r,onRendered:s,onUnmount:d}=e;const c=(0,o.useMemo)((()=>(0,l.checkIfByTransform)(r,{edge:n})?r.useBrick:null),[n,r]),u=(0,o.useMemo)((()=>({edge:n})),[n]);(0,o.useEffect)((()=>{c||setTimeout((()=>{null==s||s(t,null)}))}),[t,s,c]),(0,o.useEffect)((()=>()=>{null==d||d(t)}),[]);const f=(0,o.useCallback)((e=>{e&&setTimeout((()=>{null==s||s(t,e.parentElement)}))}),[t,s]),p=(0,o.useCallback)((()=>{setTimeout((()=>{null==s||s(t,null)}))}),[t,s]);return c?a().createElement(i.ReactUseBrick,{refCallback:f,ignoredCallback:p,useBrick:c,data:u}):null}},2673:(e,t,n)=>{function o(e,t){return e?!!t&&e.type===t.type&&("node"===e.type?e.nodeId===t.nodeId:e.edge.source===t.edge.source&&e.edge.target===t.edge.target):!t}n.d(t,{c:()=>o})},5157:(e,t,n)=>{n.d(t,{a:()=>a});var o=n(1030);function a(e,t){let{renderedNodes:n,activeTarget:o}=t;const a="node"===(null==o?void 0:o.type)?n.find((e=>e.id===o.nodeId)):void 0,l="edge"===(null==o?void 0:o.type)?o.edge:void 0;if(!a&&!l)return;const r=e.key||e.keyCode||e.which;let s,d,c;switch(r){case"Backspace":case 8:case"Delete":case 46:a?(s="delete-node",d=a):(s="delete-edge",c=l);break;default:if(!a)return;switch(r){case"ArrowLeft":case 37:d=i("x",n,a,-1),s="switch-active-node";break;case"ArrowUp":case 38:d=i("y",n,a,-1),s="switch-active-node";break;case"ArrowRight":case 39:d=i("x",n,a,1),s="switch-active-node";break;case"ArrowDown":case 40:d=i("y",n,a,1),s="switch-active-node"}}var u;return s?(e.preventDefault(),e.stopPropagation(),{action:s,node:null===(u=d)||void 0===u?void 0:u.data,edge:c}):void 0}function i(e,t,n,a){const i="x"===e?"y":"x";let l;const r=t.filter((t=>t!==n&&(l=(t[e]-n[e])*a,l>0)&&l>Math.abs(n[i]-t[i])));return(0,o.minBy)(r,(t=>(n[i]-t[i])**2+(n[e]-t[e])**2))}},5987:(e,t,n)=>{function o(e,t){const n=new Map;for(const{id:o,lineId:a,placement:i}of e){if(!t||"center"!==i)continue;const e=t.get(o);if(!e)continue;const{offsetWidth:l,offsetHeight:r}=e;if(0===l||0===r)continue;const s=3;n.set(a,[{left:e.offsetLeft-l/2-s,top:e.offsetTop-r/2-s,width:l+2*s,height:r+2*s}])}return n}n.d(t,{G:()=>o})},6671:(e,t,n)=>{n.d(t,{w:()=>s});var o=n(8769),a=n.n(o),i=n(3373),l=n.n(i),r=n(3739);function s(e){let{connectLineState:t,connectLineTo:n,markerPrefix:o}=e;return a().createElement("svg",{width:"100%",height:"100%",className:l()("connect-line",{connecting:!!t&&(n[0]-t.from[0])**2+(n[1]-t.from[1])**2>25})},a().createElement("defs",null,a().createElement(r.c,{type:"arrow",id:`${o}connect-line`,strokeColor:null==t?void 0:t.options.strokeColor})),a().createElement("path",{d:t?`M${t.from.join(" ")}L${n.join(" ")}`:"",fill:"none",stroke:null==t?void 0:t.options.strokeColor,strokeWidth:null==t?void 0:t.options.strokeWidth,markerEnd:null!=t&&t.options.arrow?`url(#${o}connect-line)`:void 0}))}},6753:(e,t,n)=>{n.d(t,{_:()=>u});var o=n(8769),a=n(140),i=n(6330),l=n(1361),r=function(){var e=(0,i.A)((function*(e,t,n){return(yield l.http.post("api/gateway/cmdb.instance.PostSearchV3/v3/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,o){return e.apply(this,arguments)}}(),s=function(){var e=(0,i.A)((function*(e,t,n,o){return(yield l.http.put("api/gateway/cmdb.instance.UpdateInstanceV2/v2/object/".concat(e,"/instance/").concat(t),n,o)).data}));return function(t,n,o,a){return e.apply(this,arguments)}}(),d=function(){var e=(0,i.A)((function*(e,t,n){return(yield l.http.post("api/gateway/cmdb.instance.CreateInstance/v2/object/".concat(e,"/instance"),t,n)).data}));return function(t,n,o){return e.apply(this,arguments)}}();const c="GRAPH_USER_VIEW@EASYOPS";function u(e){const[t,n]=(0,o.useState)(!e),i=(0,o.useRef)(),[l,u]=(0,o.useState)(null),f=(0,o.useMemo)((()=>function(){let e=!1;const t=[];return async function(n){if(t.push(n),!e){let n;for(e=!0;n=t.shift();)try{await n()}catch(e){console.error(e)}e=!1}}}()),[]);return(0,o.useEffect)((()=>{!async function(){if(!e)return void n(!0);const{namespace:t,key:o}=e;if(!t||!o)return console.error("Namespace and key are required to save graph user view"),void n(!0);try{const e=(await r(c,{fields:["nodes"],query:{namespace:{$eq:t},key:{$eq:o}},page:1,page_size:30})).list;if(e.length>0){var l;const t=e[0],n=new Map(null===(l=t.nodes)||void 0===l?void 0:l.map((e=>[e.id,e])));i.current=t.instanceId,u(n)}else u(null)}catch(e){(0,a.handleHttpError)(e)}finally{n(!0)}}()}),[e]),{userViewReady:t,userViewNodesMap:l,saveUserView:(0,o.useCallback)((t=>{const{namespace:n,key:o}=null!=e?e:{};n&&o&&f((async()=>{const e={namespace:n,key:o,nodes:t};try{if(i.current)await s(c,i.current,e,{interceptorParams:{ignoreLoadingBar:!0}});else{const t=await d(c,e,{interceptorParams:{ignoreLoadingBar:!0}});i.current=t.instanceId}}catch(e){(0,a.handleHttpError)(e)}}))}),[e,f])}}},8060:(e,t,n)=>{function o(e,t,n){return 0===e.length&&0===t.length?e:t.flatMap((e=>{let{line:{text:t,label:o,$id:a},edge:i,labelSize:l,angle:r}=e;const s=n.get(a);if(!t&&!o||!s||!s.getAttribute("d"))return[];let d,c;o?(d="label",c=[].concat(o)):(d="text",c=[].concat(t));const{x:u,y:f,width:p,height:m}=s.getBBox(),h=s.getTotalLength();return c.map((e=>{var t;const n=null!==(t=e.placement)&&void 0!==t?t:"center",o=s.getPointAtLength("start"===n?Math.min(0,h/2):"end"===n?Math.max(h-0,h/2):h/2);return{[d]:e,edge:i,position:[o.x,o.y],lineRect:{left:u,top:f,width:p,height:m},id:`${a}-${n}`,lineId:a,placement:n,angle:r,size:null==l?void 0:l[n]}}))}))}n.d(t,{z:()=>o})},8069:(e,t,n)=>{n.d(t,{o:()=>k});var o=n(8769),a=n(7586),i=n.n(a),l=n(1030);function r(e,t,n){for(const i of e){var o,a;const e=t.get(i.id);i.width=Math.max(null!==(o=null==e?void 0:e.offsetWidth)&&void 0!==o?o:0,10)+n[1]+n[3],i.height=Math.max(null!==(a=null==e?void 0:e.offsetHeight)&&void 0!==a?a:0,10)+n[0]+n[2]}}function s(e,t,n){for(const a of e){var o;const e=a.x-a.width/2+n[3],i=a.y-a.height/2+n[0],l=null===(o=t.get(a.id))||void 0===o?void 0:o.parentElement;l&&(l.style.left=`${e}px`,l.style.top=`${i}px`,l.style.visibility="visible")}}var d=n(8802),c=n(6149),u=n(4842),f=n(1945),p=n(9418),m=n(3854),h=n(7931);function v(e,t){var n;let{normalizedLinesMap:o,lineLabelsRefRepository:a}=t;return null!==(n=null==e?void 0:e.map((e=>{const t=o.get(e),n={};if(t)for(const e of["start","end"]){const o=a.get(`${t}-${e}`);o&&(n[e]=[o.offsetWidth,o.offsetHeight])}return{data:e,labelSize:n}})))&&void 0!==n?n:[]}function g(e,t){return new Array(t).fill(null).map(((t,n)=>({dummy:!0,id:`$dummy-${e.source}-${e.target}-${n}`})))}function y(e,t){return new Array(t+1).fill(null).map(((n,o)=>({dummy:!0,source:0===o?e.source:`$dummy-${e.source}-${e.target}-${o-1}`,target:o===t?e.target:`$dummy-${e.source}-${e.target}-${o}`})))}function k(e){let{layout:t,nodes:n,edges:a,manualLayoutStatus:k,userViewReady:b,userViewNodesMap:w,nodeMovement:x,nodesRefRepository:M,lineLabelsRefRepository:R,normalizedLinesMap:E,nodesRenderId:L,lineLabelsRenderId:$,layoutOptions:C}=e;const P="initial"===k?t:"manual",[S,I]=(0,o.useState)(null),[T,N]=(0,o.useState)({nodes:[],edges:[]});return(0,o.useEffect)((()=>{b&&I((e=>"dagre"===P?function(e,t,n,o){const{nodePadding:a,...c}={nodePadding:0,rankdir:"TB",ranksep:50,edgesep:10,nodesep:50,...(0,l.pick)(o,["nodePadding","rankdir","ranksep","edgesep","nodesep","align"])},u=(0,d.D)(a),f=new(i().graphlib.Graph);f.setGraph(c),f.setDefaultEdgeLabel((function(){return{}}));for(const n of null!=t?t:[]){const t=null==e?void 0:e.getNode(n.id);f.setNode(n.id,(null==t?void 0:t.data)===n?t:{id:n.id,data:n})}for(const e of null!=n?n:[])f.setEdge(e.source,e.target,{data:e});return{layout:"dagre",getNode:e=>f.node(e),applyLayout(e){let{nodesRefRepository:t,lineLabelsRefRepository:n,normalizedLinesMap:o}=e;const a=[];for(const e of f.nodes()){const t=f.node(e);t?a.push(t):console.error("Diagram node not found: %s",e)}if(0===a.length)return null;r(a,t,u);const l=f.edges().map((e=>f.edge(e)));for(const e of l){const t=o.get(e.data);if(t)for(const o of["center","start","end"]){const a=n.get(`${t}-${o}`);if(a){var d;const{offsetWidth:t,offsetHeight:n}=a;"center"===o&&(e.labelpos="c",e.width=t,e.height=n),null!==(d=e.labelSize)&&void 0!==d||(e.labelSize={}),e.labelSize[o]=[t,n]}}}return i().layout(f),s(a,t,u),{nodes:a,edges:l}}}}(e,n,a,C):"force"===P?function(e,t,n,o,a){const{nodePadding:i,dummyNodesOnEdges:k,collide:b}={nodePadding:0,dummyNodesOnEdges:0,...(0,l.pick)(a,["nodePadding","dummyNodesOnEdges"]),collide:!1!==(null==a?void 0:a.collide)&&{dummyRadius:1,radiusDiff:5,strength:1,iterations:1,...!0===(null==a?void 0:a.collide)?null:null==a?void 0:a.collide}},w=(0,d.D)(i),x=[];for(const n of null!=t?t:[]){const t=null==e?void 0:e.getNode(n.id);if((null==t?void 0:t.data)===n)x.push(t);else{const e={id:n.id,data:n},t=null==o?void 0:o.get(n.id);t&&(e.fx=t.x,e.fy=t.y),x.push(e)}}return{layout:"force",getNode:function(e){return x.find((t=>t.data.id===e))},applyLayout(e){let{nodesRefRepository:t,lineLabelsRefRepository:o,normalizedLinesMap:a}=e;if(0===x.length)return null;r(x,t,w);const i=x.slice(),l=[];for(const e of null!=n?n:[])l.push({...e}),k>0&&(i.push(...g(e,k)),l.push(...y(e,k)));const d=(0,c.A)(l).id((e=>e.id));k>0&&d.distance((e=>e.dummy?30/(k+1):30)).strength((e=>e.dummy?.5:1));const M=(0,u.A)(i).force("link",d).force("x",(0,f.A)()).force("y",(0,p.A)()).force("charge",(0,m.A)());b&&M.force("collide",(0,h.A)().radius((e=>e.dummy?b.dummyRadius:Math.sqrt(e.width**2+e.height**2)/2+b.radiusDiff)).strength(b.strength).iterations(b.iterations)),M.stop(),function(e){e.tick(Math.ceil(Math.log(e.alphaMin())/Math.log(1-e.alphaDecay())))}(M),s(x,t,w);const R=v(n,{normalizedLinesMap:a,lineLabelsRefRepository:o});return{nodes:x,edges:R}}}}(e,n,a,w,C):"manual"===P?function(e,t,n,o){const{nodePadding:a}={nodePadding:0,...(0,l.pick)(o,["nodePadding"])},i=(0,d.D)(a),c=[];for(const n of null!=t?t:[]){const t=null==e?void 0:e.getNode(n.id);(null==t?void 0:t.data)===n?(c.push(t),t.x0=t.x,t.y0=t.y):c.push({id:n.id,data:n})}let u;return{layout:"manual",getNode:function(e){return c.find((t=>t.data.id===e))},applyLayout(e){let{manualLayoutStatus:t,nodesRefRepository:o,lineLabelsRefRepository:a,normalizedLinesMap:l,nodeMovement:d}=e;if(0===c.length)return null;var f,p;r(c,o,i),d&&(u=c.find((e=>e.id===d.id)),u&&(u.x=(null!==(f=u.x0)&&void 0!==f?f:0)+d.move[0],u.y=(null!==(p=u.y0)&&void 0!==p?p:0)+d.move[1])),"finished"===t&&u&&(u.x0=u.x,u.y0=u.y),s(c,o,i);const m=v(n,{normalizedLinesMap:l,lineLabelsRefRepository:a});return{nodes:c,edges:m}}}}(e,n,a,C):null))}),[a,n,P,C,b,w]),(0,o.useEffect)((()=>{if(!M||!R||P!==(null==S?void 0:S.layout))return;const e=null==S?void 0:S.applyLayout({manualLayoutStatus:k,nodesRefRepository:M,lineLabelsRefRepository:R,normalizedLinesMap:E,nodeMovement:x});e&&N(e)}),[P,k,S,x,M,R,L,$,E]),T}},8308:(e,t,n)=>{function o(e,t){let{canvasWidth:n,canvasHeight:o,scaleRange:a}=t,i=1/0,l=1/0,r=-1/0,s=-1/0;for(const t of e){const e=t.width/2,n=t.height/2,o=t.x-e,a=t.x+e,d=t.y-n,c=t.y+n;o<i&&(i=o),a>r&&(r=a),d<l&&(l=d),c>s&&(s=c)}const d=r-i,c=s-l,u=a&&(d>n||c>o)?Math.max(Math.min(n/d,o/c,a[1]),a[0]):1;return{x:(n-d*u)/2-i*u,y:(o-c*u)/2-l*u,k:u}}n.d(t,{r:()=>o})},8657:(e,t,n)=>{n.d(t,{Ie:()=>l,KP:()=>i,VO:()=>a,Yt:()=>s,mF:()=>o,sS:()=>r});const o="var(--palette-gray-5)",a=1,i="curveBasis",l=20,r=.5,s=2},8892:(e,t,n)=>{n.d(t,{p:()=>r});var o=n(8769),a=n.n(o),i=n(7390),l=n(140);function r(e){let{nodes:t,nodeBricks:n,onRendered:i}=e;const[l,r]=(0,o.useState)(!1),[d,c]=(0,o.useState)([]),u=(0,o.useMemo)((()=>new Map),[]),f=(0,o.useCallback)(((e,t)=>{t&&u.set(e,t),c((t=>t.includes(e)?t:t.concat(e)))}),[u]),p=(0,o.useCallback)((e=>{c((t=>{const n=t.indexOf(e);return-1===n?t:t.slice(0,n).concat(t.slice(n+1))})),u.delete(e)}),[u]);return(0,o.useEffect)((()=>{r(!(null!=t&&t.some((e=>!d.includes(e.id)))))}),[t,d]),(0,o.useEffect)((()=>{null==i||i(l?u:null)}),[u,l]),a().createElement(a().Fragment,null,null==t?void 0:t.map((e=>a().createElement("div",{key:e.id,className:"node"},a().createElement(s,{nodeBricks:n,node:e,onRendered:f,onUnmount:p})))))}function s(e){let{node:t,nodeBricks:n,onRendered:r,onUnmount:s}=e;const d=(0,o.useMemo)((()=>{var e;return null===(e=function(e,t){return null==t?void 0:t.find((t=>t.nodeType?[].concat(t.nodeType).includes(e.type):(0,l.checkIfByTransform)(t,{node:e})))}(t,n))||void 0===e?void 0:e.useBrick}),[t,n]),c=(0,o.useMemo)((()=>({node:t})),[t]);(0,o.useEffect)((()=>{d||setTimeout((()=>{null==r||r(t.id,null)}))}),[t.id,r,d]),(0,o.useEffect)((()=>()=>{null==s||s(t.id)}),[]);const u=(0,o.useCallback)((e=>{e&&setTimeout((()=>{null==r||r(t.id,e)}))}),[t.id,r]),f=(0,o.useCallback)((()=>{setTimeout((()=>{null==r||r(t.id,null)}))}),[t.id,r]);return d?a().createElement(i.ReactUseBrick,{refCallback:u,ignoredCallback:f,useBrick:d,data:c}):null}},9137:(e,t,n)=>{n.d(t,{t:()=>r});var o=n(1030),a=n(140);function i(e,t){return!!t&&(t.edgeType?[].concat(t.edgeType).includes(e.type):(0,a.checkIfByTransform)(t,{edge:e}))}var l=n(8657);function r(e,t){const n=[],r=new WeakMap,d=[];for(const v of null!=e?e:[]){var c,u;const{label:e,...g}=null!==(c=null==t?void 0:t.find((e=>i(v,e))))&&void 0!==c?c:{},y=a.__secret_internals.legacyDoTransform({edge:v},g);if(!1===(null==y?void 0:y.draw))continue;const k=(0,o.uniqueId)("line-"),b={strokeColor:l.mF,strokeWidth:l.VO,curveType:"polyline"===(null==y?void 0:y.type)?"curveLinear":l.KP,interactStrokeWidth:l.Ie,type:"auto",...y,label:e,$id:k};r.set(v,k);const w=[],x=null!==(u=b.markers)&&void 0!==u?u:b.arrow?[{placement:"end",type:"arrow"}]:[];for(const e of x){var f,p,m,h;const{placement:t,type:n}=e,o=null!=t?t:"end";let a,i;switch(n){case"0..1":case"0..N":i=21,a=n;break;default:i=1,a="arrow"}const l=i*b.strokeWidth,r=s({type:a,strokeColor:b.strokeColor},d);w.push({index:r,placement:o,type:a,variant:"default",offset:l});const c=s({type:a,strokeColor:null!==(f=null===(p=b.overrides)||void 0===p||null===(p=p.active)||void 0===p?void 0:p.strokeColor)&&void 0!==f?f:b.strokeColor},d);w.push({index:c,placement:o,type:a,variant:"active",offset:l});const u=s({type:a,strokeColor:null!==(m=null===(h=b.overrides)||void 0===h||null===(h=h.activeRelated)||void 0===h?void 0:h.strokeColor)&&void 0!==m?m:b.strokeColor},d);w.push({index:u,placement:o,type:a,variant:"active-related",offset:l})}n.push({line:b,markers:w,edge:v})}return{normalizedLines:n,normalizedLinesMap:r,markers:d}}function s(e,t){let n=(0,o.findIndex)(t,e);return-1===n&&(n=t.push(e)-1),n}},9191:(e,t,n)=>{n.d(t,{y:()=>i});var o=n(8769),a=n.n(o);function i(e){let{lineId:t,rects:n,maskPrefix:o,renderedLineLabels:i}=e;const l=i.find((e=>e.lineId===t&&"center"===e.placement));if(!l)return null;const{lineRect:r}=l,s=(c=1e3,{left:(d=r).left-c,top:d.top-c,width:d.width+2e3,height:d.height+2e3});var d,c;return a().createElement("mask",{id:`${o}${t}`,x:s.left,y:s.top,width:s.width,height:s.height},a().createElement("rect",{x:s.left,y:s.top,width:s.width,height:s.height,fill:"white"}),n.map(((e,t)=>a().createElement("rect",{key:t,x:e.left,y:e.top,width:e.width,height:e.height,fill:"black"}))))}}}]);
|
|
3
|
-
//# sourceMappingURL=3233.df97f221.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_diagram=globalThis.webpackChunk_next_bricks_diagram||[]).push([[4837,7218],{4837:(e,r,t)=>{t.r(r),t.d(r,{ReactUseBrick:()=>s,ReactUseMultipleBricks:()=>u,asyncWrapBrick:()=>k,useCurrentApp:()=>l,useCurrentTheme:()=>o,useLazyWrapBrick:()=>w,useNavConfig:()=>h,useProvider:()=>m,useRecentApps:()=>i,useRouteRender:()=>d});var n=t(8769),c=t(140);let s=function(e){let{useBrick:r,data:t,errorBoundary:s,refCallback:u,ignoredCallback:a}=e;const[o,i]=(0,n.useState)(null),l=(0,n.useRef)(),[d,f]=(0,n.useState)(),p=(0,n.useRef)(0),g=(0,n.useMemo)((()=>{var e;return null===(e=c.__secret_internals.getRenderId)||void 0===e?void 0:e.call(c.__secret_internals)}),[]);(0,n.useEffect)((()=>{let e=!1;return async function(){try{const n=await c.__secret_internals.renderUseBrick(r,t,s);if(e)return;i(n),f(++p.current)}catch(n){!e&&function(e){var r;const t=null===(r=c.__secret_internals.getRenderId)||void 0===r?void 0:r.call(c.__secret_internals);return!e||!t||e===t}(g)&&(console.error("Render useBrick failed:",r,"with data:",t),(0,c.handleHttpError)(n))}}(),()=>{e=!0}}),[t,r,g,s]);const y=(0,n.useCallback)((e=>{e?l.current=c.__secret_internals.mountUseBrick(o,e):(c.__secret_internals.unmountUseBrick(o,l.current),l.current=void 0),null==u||u(e)}),[u,o]);if(!o)return null;const{tagName:m}=o;if(null===m)return null==a||a(),null;const v=m;return n.createElement(v,{key:d,ref:y})},u=function(e){let{useBrick:r,data:t,errorBoundary:c}=e;return Array.isArray(r)?n.createElement(n.Fragment,null,r.map(((e,r)=>n.createElement(s,{key:r,useBrick:e,data:t,errorBoundary:c})))):n.createElement(s,{useBrick:r,data:t,errorBoundary:c})};const a=(0,c.getV2RuntimeFromDll)();if(a){const{SingleBrickAsComponentFactory:e,BrickAsComponentFactory:r}=a;e&&r&&(s=e(n),u=r(n))}function o(){const[e,r]=(0,n.useState)(c.getCurrentTheme);return(0,n.useEffect)((()=>{const e=e=>{r(e.detail)};return window.addEventListener("theme.change",e),()=>{window.removeEventListener("theme.change",e)}}),[]),e}function i(){const[e,r]=n.useState((()=>(0,c.getRuntime)().getRecentApps()));return n.useEffect((()=>{const e=e=>{r(e.detail)};return window.addEventListener("app.change",e),()=>window.removeEventListener("app.change",e)}),[]),e}function l(){return i().currentApp}function d(){const[e,r]=n.useState(null);return n.useEffect((()=>{const e=e=>{r(e.detail)};return window.addEventListener("route.render",e),()=>window.removeEventListener("route.render",e)}),[]),e}const f={provider:"",customOptions:{onError:()=>{},transform:(e,r)=>r,data:void 0,loading:!1,suspense:!1,cache:!0},dependencies:void 0},p=Object.entries(f).reduce(((e,r)=>{let[t,n]=r;return"[object Object]"===Object.prototype.toString.call(n)?{...e,...n}:{...e,[t]:n}}),{});var g=t(1030);const y=new Map;function m(){const{provider:e,customOptions:r,dependencies:t,requestInit:s}=function(e,r,t){const c=(0,n.useMemo)((()=>"string"==typeof e?e:f.provider),[e,r]),s=(0,n.useMemo)((()=>{let t={};return(0,g.isObject)(e)?t=e:(0,g.isObject)(r)&&(t=r),{...p,...t}}),[e,r]),u=(0,n.useMemo)((()=>{const e=[...Object.keys(f),...Object.keys(f.customOptions)],{args:r=null,...t}=Object.keys(s).reduce(((r,t)=>(e.includes(t)||(r[t]=s[t]),r)),{});return{options:{...t},args:r}}),[s]),a=(0,n.useMemo)((()=>Array.isArray(r)?r:Array.isArray(t)?t:p.dependencies),[r,t]),o=s.loading||Array.isArray(a);return{provider:c,customOptions:(0,n.useMemo)((()=>({...Object.keys(f.customOptions).reduce(((e,r)=>(e[r]=s[r],e)),{}),loading:o})),[s]),requestInit:u,dependencies:a}}(...arguments),{onError:u,transform:a,suspense:o,cache:i,...l}=r,[d,m]=(0,n.useState)(l.loading),v=(0,n.useRef)("pending"),k=(0,n.useRef)(),h=(0,n.useRef)(!1),w=(0,n.useRef)(),_=(0,n.useRef)(),b=(0,n.useRef)(l.data),B=(0,n.useReducer)((()=>({})),[])[1],E=(0,n.useCallback)((async(e,r)=>{try{w.current=void 0,o||m(!0);const t=await async function(e,r,t){let n;const s=function(e){const r=e=>Object.keys(e).sort().map((r=>({[r]:e[r]})));for(var t=arguments.length,n=new Array(t>1?t-1:0),c=1;c<t;c++)n[c-1]=arguments[c];try{const t="object"!=typeof(s=n)||null===s||Array.isArray(s)?n.map((e=>function(e){return"string"==typeof e}(e)?e:r(e))):r(n);return JSON.stringify({provider:e,args:t})}catch(r){return JSON.stringify({provider:e,args:n})}var s}(e,...t);return!r&&y.has(s)&&y.delete(s),y.has(s)?n=y.get(s):(n=(0,c.fetchByProvider)(e,t,{cache:r?"default":"reload"}),r&&y.set(s,n)),n}(e,i,r);_.current=t,b.current=a(b.current,t)}catch(e){w.current=e,b.current=void 0}return o||m(!1),w.current&&u(w.current),b.current}),[e,r,t,s,o,a,l.data,u,i]),O=(0,n.useCallback)((async(r,t)=>{let n=e,c=[];return(0,g.isString)(r)&&(n=r),(0,g.isObject)(r)?c=r:(0,g.isObject)(t)&&(c=t),o?(async()=>(k.current=E(n,c).then((e=>(v.current="success",e)),(e=>(v.current="error",e.current=e,e))),B(),await k.current))():E(n,c)}),[E]),R=(0,n.useMemo)((()=>Object.defineProperties({query:O},{loading:{get:()=>d},data:{get:()=>b.current},error:{get:()=>w.current}})),[O]);if((0,n.useEffect)((()=>(h.current=!0,Array.isArray(t)&&e&&R.query(e,s.args),()=>h.current=!1)),t),o&&k.current)switch(v.current){case"pending":throw k.current;case"error":throw w.current}return Object.assign([R,_.current,d,w.current],{request:R,...R,response:_.current,data:b.current,loading:d,error:w.current})}var v=t(9859);async function k(e,r){return await c.__secret_internals.loadBricks([e]),(0,v.wrapBrick)(e,r)}function h(){const[e,r]=(0,n.useState)((()=>(0,c.getRuntime)().getNavConfig()));return(0,n.useEffect)((()=>{const e=e=>{r(e.detail)};return window.addEventListener("navConfig.change",e),()=>window.removeEventListener("navConfig.change",e)}),[]),e}function w(e,r){return(0,n.useMemo)((()=>null!=e?(0,n.lazy)((async()=>({default:await k(e,r)}))):null),[e,r])}}}]);
|
|
2
|
-
//# sourceMappingURL=4837.11c3f298.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_diagram=globalThis.webpackChunk_next_bricks_diagram||[]).push([[3171,5552],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>d,i18nText:()=>l,initializeI18n:()=>u});var i=t(5630),s=t(7448),r=t(848);let a=!1;const o=new Set;function u(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var c=t(9005);function l(n){var e;if(!n)return;const t=null!==(e=s.i18n.language)&&void 0!==e?e:"zh-CN";if((0,c.hasOwnProperty)(n,t))return n[t];const i=t.split("-")[0];if(i!==t)return(0,c.hasOwnProperty)(n,i)?n[i]:void 0;const r=`${i}-`;for(const e of Object.keys(n))if(e.startsWith(r))return n[e]}const d=i.default}}]);
|
|
2
|
-
//# sourceMappingURL=5552.c1fe77c8.js.map
|