@next-bricks/diagram 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.7047e1af.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EASAC,EAOAC,EAMAC,EAGAC,EAIAC,EAUAC,EAoBAC,EAMAC,EAIAC,EAUAC,EA2BAC,EAIAC,EAIAC,EAQAC,EACAC,EAiCAC,E,iBCxKJ,IAAIC,EAAY,CACf,eAAgB,IACRC,QAAQC,IAAoB,CAACC,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,QAAQC,MAAK,IAAM,IAASF,EAAoB,SAGzPZ,EAAM,CAACe,EAAQC,KAClBJ,EAAoBK,EAAID,EACxBA,EACCJ,EAAoBM,EAAET,EAAWM,GAC9BN,EAAUM,KACVL,QAAQS,UAAUL,MAAK,KACxB,MAAM,IAAIM,MAAM,WAAaL,EAAS,iCAAiC,IAG1EH,EAAoBK,OAAII,EACjBL,GAEJf,EAAO,CAACqB,EAAYC,KACvB,GAAKX,EAAoBY,EAAzB,CACA,IAAIC,EAAO,UACPC,EAAWd,EAAoBY,EAAEC,GACrC,GAAGC,GAAYA,IAAaJ,EAAY,MAAM,IAAIF,MAAM,mGAExD,OADAR,EAAoBY,EAAEC,GAAQH,EACvBV,EAAoBe,EAAEF,EAAMF,EALD,CAKW,EAI9CX,EAAoBgB,EAAEC,EAAS,CAC9B7B,IAAK,IAAM,EACXC,KAAM,IAAM,G,GC5BT6B,EAA2B,CAAC,EAGhC,SAASlB,EAAoBmB,GAE5B,IAAIC,EAAeF,EAAyBC,GAC5C,QAAqBV,IAAjBW,EACH,OAAOA,EAAaH,QAGrB,IAAId,EAASe,EAAyBC,GAAY,CACjDE,GAAIF,EACJG,QA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BvJ,EAAoB,K","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 ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = 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 findSingletonVersionKey = (scope, key) => {\n\tvar versions = 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 getSingleton = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\treturn get(scope[key][version]);\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = 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 getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") 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 getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warn = (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t5872: () => (loadSingletonVersionCheckFallback(\"default\", \"moment\", [1,2,27,0], () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(9034))))))),\n\t5899: () => (loadSingletonVersionCheckFallback(\"default\", \"js-yaml\", [1,3,14,0], () => (__webpack_require__.e(9431).then(() => (() => (__webpack_require__(9431))))))),\n\t6976: () => (loadSingletonVersionCheckFallback(\"default\", \"lodash\", [1,4,17,19], () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))))),\n\t2573: () => (loadSingletonVersionCheckFallback(\"default\", \"@babel/parser\", [1,7,23,6], () => (__webpack_require__.e(1874).then(() => (() => (__webpack_require__(1874))))))),\n\t3239: () => (loadSingletonVersionCheckFallback(\"default\", \"i18next\", [1,22,5,1], () => (__webpack_require__.e(2993).then(() => (() => (__webpack_require__(2993))))))),\n\t7207: () => (loadSingletonVersionCheckFallback(\"default\", \"i18next-browser-languagedetector\", [1,7,2,0], () => (__webpack_require__.e(2754).then(() => (() => (__webpack_require__(2754))))))),\n\t1065: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/i18n\", [1,1,0,36], () => (Promise.all([__webpack_require__.e(4936), __webpack_require__.e(6205)]).then(() => (() => (__webpack_require__(7164))))))),\n\t1935: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/utils/general\", [1,1,6,8], () => (__webpack_require__.e(7110).then(() => (() => (__webpack_require__(7110))))))),\n\t1502: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/pipes\", [1,2,0,15], () => (__webpack_require__.e(4275).then(() => (() => (__webpack_require__(4275))))))),\n\t5178: () => (loadSingletonVersionCheckFallback(\"default\", \"lodash\", [1,4,17,21], () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))))),\n\t5454: () => (loadSingletonVersionCheckFallback(\"default\", \"@easyops-cn/brick-next-pipes\", [2,0,6,0], () => (Promise.all([__webpack_require__.e(4031), __webpack_require__.e(9758)]).then(() => (() => (__webpack_require__(4031))))))),\n\t8657: () => (loadStrictVersionCheckFallback(\"default\", \"react\", [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(2784).then(() => (() => (__webpack_require__(2784))))))),\n\t5727: () => (loadStrictVersionCheckFallback(\"default\", \"@next-core/element\", [1,1,2,1], () => (__webpack_require__.e(4717).then(() => (() => (__webpack_require__(9549))))))),\n\t2484: () => (loadStrictVersionCheckFallback(\"default\", \"react-dom\", [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(8316).then(() => (() => (__webpack_require__(8316))))))),\n\t6650: () => (loadFallback(\"default\", \"react-dom\", () => (__webpack_require__.e(8316).then(() => (() => (__webpack_require__(8316))))))),\n\t9464: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/runtime\", [1,1,29,1], () => (Promise.all([__webpack_require__.e(4504), __webpack_require__.e(5178), __webpack_require__.e(5932), __webpack_require__.e(8874), __webpack_require__.e(488), __webpack_require__.e(6315)]).then(() => (() => (__webpack_require__(4504))))))),\n\t8874: () => (loadSingletonVersionCheckFallback(\"default\", \"moment\", [1,2,29,4], () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(9034))))))),\n\t488: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/cook\", [1,2,2,11], () => (Promise.all([__webpack_require__.e(5151), __webpack_require__.e(2573)]).then(() => (() => (__webpack_require__(5151))))))),\n\t815: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/inject\", [1,1,0,26], () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(5725)]).then(() => (() => (__webpack_require__(7672))))))),\n\t4699: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/utils/storyboard\", [1,1,6,8], () => (Promise.all([__webpack_require__.e(628), __webpack_require__.e(8691)]).then(() => (() => (__webpack_require__(3458))))))),\n\t5932: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/http\", [1,1,1,8], () => (__webpack_require__.e(1303).then(() => (() => (__webpack_require__(7067))))))),\n\t6974: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/loader\", [1,1,5,3], () => (__webpack_require__.e(6653).then(() => (() => (__webpack_require__(8498))))))),\n\t7857: () => (loadSingletonVersionCheckFallback(\"default\", \"history\", [1,4,10,1], () => (__webpack_require__.e(2024).then(() => (() => (__webpack_require__(2024))))))),\n\t7941: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/supply\", [1,2,1,10], () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(6473)]).then(() => (() => (__webpack_require__(4049))))))),\n\t8525: () => (loadSingletonVersionCheckFallback(\"default\", \"moment/locale/zh-cn.js\", [1,2,29,4], () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(7414))))))),\n\t628: () => (loadSingletonFallback(\"default\", \"@next-core/utils/general\", () => (__webpack_require__.e(7110).then(() => (() => (__webpack_require__(7110))))))),\n\t305: () => (loadStrictVersionCheckFallback(\"default\", \"@next-core/react-element\", [1,1,0,20], () => (Promise.all([__webpack_require__.e(8065), __webpack_require__.e(7746)]).then(() => (() => (__webpack_require__(1646))))))),\n\t1211: () => (loadSingletonFallback(\"default\", \"lodash\", () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))))),\n\t2006: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/theme\", [1,1,4,7], () => (__webpack_require__.e(2108).then(() => (() => (__webpack_require__(2108))))))),\n\t9494: () => (loadStrictVersionCheckFallback(\"default\", \"@next-core/react-runtime\", [1,1,1,45], () => (__webpack_require__.e(5381).then(() => (() => (__webpack_require__(6660)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"488\": [\n\t\t488\n\t],\n\t\"628\": [\n\t\t628\n\t],\n\t\"1502\": [\n\t\t1502\n\t],\n\t\"2573\": [\n\t\t2573\n\t],\n\t\"4275\": [\n\t\t5454\n\t],\n\t\"4936\": [\n\t\t3239,\n\t\t7207\n\t],\n\t\"5178\": [\n\t\t5178\n\t],\n\t\"5727\": [\n\t\t5727\n\t],\n\t\"5932\": [\n\t\t1065,\n\t\t1935\n\t],\n\t\"6315\": [\n\t\t815,\n\t\t4699,\n\t\t5932,\n\t\t6974,\n\t\t7857,\n\t\t7941,\n\t\t8525\n\t],\n\t\"6921\": [\n\t\t305,\n\t\t1211,\n\t\t2006,\n\t\t9494\n\t],\n\t\"8065\": [\n\t\t2484,\n\t\t6650\n\t],\n\t\"8657\": [\n\t\t8657\n\t],\n\t\"8874\": [\n\t\t8874\n\t],\n\t\"9464\": [\n\t\t9464\n\t],\n\t\"9758\": [\n\t\t5872,\n\t\t5899,\n\t\t6976\n\t]\n};\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\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\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});\n\t}\n}","var moduleMap = {\n\t\"./eo-diagram\": () => {\n\t\treturn Promise.all(/* eo-diagram */[__webpack_require__.e(3166), __webpack_require__.e(8657), __webpack_require__.e(9464), __webpack_require__.e(5727), __webpack_require__.e(6921), __webpack_require__.e(9016)]).then(() => (() => ((__webpack_require__(2715)))));\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/\" + (chunkId === 9016 ? \"eo-diagram\" : chunkId) + \".\" + {\"488\":\"5e90153b\",\"628\":\"ae14642a\",\"1303\":\"70dabf75\",\"1502\":\"bee3a64c\",\"1646\":\"6589b358\",\"1874\":\"85ba64ca\",\"2024\":\"53d97685\",\"2108\":\"5684dc40\",\"2573\":\"0baab81f\",\"2754\":\"cbea5866\",\"2784\":\"70c3fd78\",\"2993\":\"ec4c251f\",\"3166\":\"ddb1e0c3\",\"3458\":\"a63a4d80\",\"4031\":\"e35a7582\",\"4049\":\"6256a178\",\"4275\":\"7315c167\",\"4504\":\"82bbca66\",\"4717\":\"34d53aaa\",\"4936\":\"954f2abc\",\"5151\":\"614d7062\",\"5178\":\"018c624e\",\"5381\":\"1b2b9749\",\"5628\":\"c306b668\",\"5725\":\"78b21531\",\"5727\":\"73c569d3\",\"5932\":\"98a700e0\",\"6205\":\"414655fa\",\"6315\":\"b7be1d21\",\"6473\":\"ca92cfbd\",\"6635\":\"41cb938a\",\"6653\":\"e9c85257\",\"6660\":\"7a61b375\",\"6921\":\"f9c2b186\",\"7067\":\"3f1f372f\",\"7110\":\"8e981c34\",\"7164\":\"6d67a26b\",\"7672\":\"15496b7a\",\"7746\":\"98303035\",\"7915\":\"26a8005c\",\"8008\":\"5a59b5bb\",\"8065\":\"ef94b24a\",\"8316\":\"19210606\",\"8498\":\"e0c035d5\",\"8657\":\"318e9117\",\"8691\":\"2d98de11\",\"8874\":\"96dfb1e5\",\"9016\":\"eecac144\",\"9431\":\"968072ff\",\"9464\":\"2876e79a\",\"9549\":\"09d4fb2e\",\"9758\":\"50558c06\"}[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.23.6\", () => (__webpack_require__.e(1874).then(() => (() => (__webpack_require__(1874))))));\n\t\t\tregister(\"@easyops-cn/brick-next-pipes\", \"0.6.0\", () => (Promise.all([__webpack_require__.e(4031), __webpack_require__.e(9758)]).then(() => (() => (__webpack_require__(4031))))));\n\t\t\tregister(\"@next-core/cook\", \"2.2.11\", () => (Promise.all([__webpack_require__.e(5151), __webpack_require__.e(2573)]).then(() => (() => (__webpack_require__(5151))))));\n\t\t\tregister(\"@next-core/element\", \"1.2.1\", () => (__webpack_require__.e(9549).then(() => (() => (__webpack_require__(9549))))));\n\t\t\tregister(\"@next-core/http\", \"1.1.8\", () => (__webpack_require__.e(7067).then(() => (() => (__webpack_require__(7067))))));\n\t\t\tregister(\"@next-core/i18n\", \"1.0.36\", () => (Promise.all([__webpack_require__.e(4936), __webpack_require__.e(5932), __webpack_require__.e(7164)]).then(() => (() => (__webpack_require__(7164))))));\n\t\t\tregister(\"@next-core/inject\", \"1.0.26\", () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(5178), __webpack_require__.e(7672)]).then(() => (() => (__webpack_require__(7672))))));\n\t\t\tregister(\"@next-core/loader\", \"1.5.3\", () => (__webpack_require__.e(8498).then(() => (() => (__webpack_require__(8498))))));\n\t\t\tregister(\"@next-core/pipes\", \"2.0.15\", () => (__webpack_require__.e(4275).then(() => (() => (__webpack_require__(4275))))));\n\t\t\tregister(\"@next-core/react-element\", \"1.0.20\", () => (Promise.all([__webpack_require__.e(8657), __webpack_require__.e(5727), __webpack_require__.e(8065), __webpack_require__.e(1646)]).then(() => (() => (__webpack_require__(1646))))));\n\t\t\tregister(\"@next-core/react-runtime\", \"1.1.45\", () => (Promise.all([__webpack_require__.e(8657), __webpack_require__.e(9464), __webpack_require__.e(6660)]).then(() => (() => (__webpack_require__(6660))))));\n\t\t\tregister(\"@next-core/runtime\", \"1.29.1\", () => (Promise.all([__webpack_require__.e(4504), __webpack_require__.e(5178), __webpack_require__.e(5932), __webpack_require__.e(8874), __webpack_require__.e(488), __webpack_require__.e(6315)]).then(() => (() => (__webpack_require__(4504))))));\n\t\t\tregister(\"@next-core/supply\", \"2.1.10\", () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(5178), __webpack_require__.e(8874), __webpack_require__.e(4049)]).then(() => (() => (__webpack_require__(4049))))));\n\t\t\tregister(\"@next-core/theme\", \"1.4.7\", () => (Promise.all([__webpack_require__.e(2108), __webpack_require__.e(5628)]).then(() => (() => (__webpack_require__(2108))))));\n\t\t\tregister(\"@next-core/utils/general\", \"1.6.8\", () => (__webpack_require__.e(7110).then(() => (() => (__webpack_require__(7110))))));\n\t\t\tregister(\"@next-core/utils/storyboard\", \"1.6.8\", () => (Promise.all([__webpack_require__.e(628), __webpack_require__.e(488), __webpack_require__.e(3458)]).then(() => (() => (__webpack_require__(3458))))));\n\t\t\tregister(\"history\", \"4.10.1\", () => (__webpack_require__.e(2024).then(() => (() => (__webpack_require__(2024))))));\n\t\t\tregister(\"i18next-browser-languagedetector\", \"7.2.0\", () => (__webpack_require__.e(2754).then(() => (() => (__webpack_require__(2754))))));\n\t\t\tregister(\"i18next\", \"22.5.1\", () => (__webpack_require__.e(2993).then(() => (() => (__webpack_require__(2993))))));\n\t\t\tregister(\"js-yaml\", \"3.14.1\", () => (__webpack_require__.e(9431).then(() => (() => (__webpack_require__(9431))))));\n\t\t\tregister(\"lodash\", \"4.17.21\", () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))));\n\t\t\tregister(\"moment/locale/zh-cn.js\", \"2.29.4\", () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(7414))))));\n\t\t\tregister(\"moment\", \"2.29.4\", () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(9034))))));\n\t\t\tregister(\"react-dom\", \"0.0.0-experimental-ee8509801-20230117\", () => (Promise.all([__webpack_require__.e(8316), __webpack_require__.e(8657)]).then(() => (() => (__webpack_require__(8316))))));\n\t\t\tregister(\"react\", \"0.0.0-experimental-ee8509801-20230117\", () => (__webpack_require__.e(2784).then(() => (() => (__webpack_require__(2784))))));\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)\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) 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(/#.*$/, \"\").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\t9093: 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(!/^(5(178|727|932)|6(28|315|921)|8(065|657|874)|1502|2573|488|4936|9464|9758)$/.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 = self[\"webpackChunk_next_bricks_diagram\"] = self[\"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__(565);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findVersion","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingleton","getSingletonVersion","findValidVersion","warn","get","init","loadFallback","loadSingletonFallback","loadSingletonVersionCheckFallback","loadStrictVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","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","replace","p","str","split","map","exec","apply","b","t","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","test","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
1
+ {"version":3,"file":"index.7d701fa7.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EASAC,EAOAC,EAMAC,EAGAC,EAIAC,EAUAC,EAoBAC,EAMAC,EAIAC,EAUAC,EA2BAC,EAIAC,EAIAC,EAQAC,EACAC,EAiCAC,E,iBCxKJ,IAAIC,EAAY,CACf,eAAgB,IACRC,QAAQC,IAAoB,CAACC,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE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OuD,EACbN,EAAMS,QAAUF,EAChBJ,EAAmB,GAAGH,EACvB,CACD,GAEwC,SAAW/F,EAASA,EAC9D,CAEF,EAcF,IAAIyG,EAAuB,CAACC,EAA4BC,KACvD,IAGI7H,EAAUkB,GAHT4G,EAAUC,EAAaC,GAAWH,EAGhBpF,EAAI,EAC3B,GAAGqF,EAASG,MAAM/H,GAAgC,IAAxBgH,EAAgBhH,KAAa,CACtD,IAAIF,KAAY+H,EACZlJ,EAAoBM,EAAE4I,EAAa/H,KACrCnB,EAAoByB,EAAEN,GAAY+H,EAAY/H,IAG7CgI,GAAsBA,EAAQnJ,EAClC,CAEA,IADG+I,GAA4BA,EAA2BC,GACrDpF,EAAIqF,EAASpF,OAAQD,IACzBvB,EAAU4G,EAASrF,GAChB5D,EAAoBM,EAAE+H,EAAiBhG,IAAYgG,EAAgBhG,IACrEgG,EAAgBhG,GAAS,KAE1BgG,EAAgBhG,GAAW,CAC5B,EAIGgH,EAAqBC,KAAuC,iCAAIA,KAAuC,kCAAK,GAChHD,EAAmBtE,QAAQ+D,EAAqB5D,KAAK,KAAM,IAC3DmE,EAAmB/F,KAAOwF,EAAqB5D,KAAK,KAAMmE,EAAmB/F,KAAK4B,KAAKmE,G,KCrFvFrJ,EAAoBmE,QAAK1D,ECGzB,IAAI8I,EAAsBvJ,EAAoB,K","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 ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = 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 findSingletonVersionKey = (scope, key) => {\n\tvar versions = 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 getSingleton = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\treturn get(scope[key][version]);\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = 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 getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") 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 getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warn = (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t5872: () => (loadSingletonVersionCheckFallback(\"default\", \"moment\", [1,2,27,0], () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(9034))))))),\n\t5899: () => (loadSingletonVersionCheckFallback(\"default\", \"js-yaml\", [1,3,14,0], () => (__webpack_require__.e(9431).then(() => (() => (__webpack_require__(9431))))))),\n\t6976: () => (loadSingletonVersionCheckFallback(\"default\", \"lodash\", [1,4,17,19], () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))))),\n\t2573: () => (loadSingletonVersionCheckFallback(\"default\", \"@babel/parser\", [1,7,23,6], () => (__webpack_require__.e(1874).then(() => (() => (__webpack_require__(1874))))))),\n\t3239: () => (loadSingletonVersionCheckFallback(\"default\", \"i18next\", [1,22,5,1], () => (__webpack_require__.e(2993).then(() => (() => (__webpack_require__(2993))))))),\n\t7207: () => (loadSingletonVersionCheckFallback(\"default\", \"i18next-browser-languagedetector\", [1,7,2,0], () => (__webpack_require__.e(2754).then(() => (() => (__webpack_require__(2754))))))),\n\t1065: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/i18n\", [1,1,0,36], () => (Promise.all([__webpack_require__.e(4936), __webpack_require__.e(6205)]).then(() => (() => (__webpack_require__(7164))))))),\n\t1935: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/utils/general\", [1,1,6,8], () => (__webpack_require__.e(7110).then(() => (() => (__webpack_require__(7110))))))),\n\t1502: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/pipes\", [1,2,0,15], () => (__webpack_require__.e(4275).then(() => (() => (__webpack_require__(4275))))))),\n\t5178: () => (loadSingletonVersionCheckFallback(\"default\", \"lodash\", [1,4,17,21], () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))))),\n\t5454: () => (loadSingletonVersionCheckFallback(\"default\", \"@easyops-cn/brick-next-pipes\", [2,0,6,0], () => (Promise.all([__webpack_require__.e(4031), __webpack_require__.e(9758)]).then(() => (() => (__webpack_require__(4031))))))),\n\t8657: () => (loadStrictVersionCheckFallback(\"default\", \"react\", [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(2784).then(() => (() => (__webpack_require__(2784))))))),\n\t5727: () => (loadStrictVersionCheckFallback(\"default\", \"@next-core/element\", [1,1,2,1], () => (__webpack_require__.e(4717).then(() => (() => (__webpack_require__(9549))))))),\n\t2484: () => (loadStrictVersionCheckFallback(\"default\", \"react-dom\", [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(8316).then(() => (() => (__webpack_require__(8316))))))),\n\t6650: () => (loadFallback(\"default\", \"react-dom\", () => (__webpack_require__.e(8316).then(() => (() => (__webpack_require__(8316))))))),\n\t9464: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/runtime\", [1,1,29,1], () => (Promise.all([__webpack_require__.e(4504), __webpack_require__.e(5178), __webpack_require__.e(5932), __webpack_require__.e(8874), __webpack_require__.e(488), __webpack_require__.e(6315)]).then(() => (() => (__webpack_require__(4504))))))),\n\t8874: () => (loadSingletonVersionCheckFallback(\"default\", \"moment\", [1,2,29,4], () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(9034))))))),\n\t488: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/cook\", [1,2,2,11], () => (Promise.all([__webpack_require__.e(5151), __webpack_require__.e(2573)]).then(() => (() => (__webpack_require__(5151))))))),\n\t815: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/inject\", [1,1,0,26], () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(5725)]).then(() => (() => (__webpack_require__(7672))))))),\n\t4699: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/utils/storyboard\", [1,1,6,8], () => (Promise.all([__webpack_require__.e(628), __webpack_require__.e(8691)]).then(() => (() => (__webpack_require__(3458))))))),\n\t5932: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/http\", [1,1,1,8], () => (__webpack_require__.e(1303).then(() => (() => (__webpack_require__(7067))))))),\n\t6974: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/loader\", [1,1,5,3], () => (__webpack_require__.e(6653).then(() => (() => (__webpack_require__(8498))))))),\n\t7857: () => (loadSingletonVersionCheckFallback(\"default\", \"history\", [1,4,10,1], () => (__webpack_require__.e(2024).then(() => (() => (__webpack_require__(2024))))))),\n\t7941: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/supply\", [1,2,1,10], () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(6473)]).then(() => (() => (__webpack_require__(4049))))))),\n\t8525: () => (loadSingletonVersionCheckFallback(\"default\", \"moment/locale/zh-cn.js\", [1,2,29,4], () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(7414))))))),\n\t628: () => (loadSingletonFallback(\"default\", \"@next-core/utils/general\", () => (__webpack_require__.e(7110).then(() => (() => (__webpack_require__(7110))))))),\n\t305: () => (loadStrictVersionCheckFallback(\"default\", \"@next-core/react-element\", [1,1,0,20], () => (Promise.all([__webpack_require__.e(8065), __webpack_require__.e(7746)]).then(() => (() => (__webpack_require__(1646))))))),\n\t1211: () => (loadSingletonFallback(\"default\", \"lodash\", () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))))),\n\t2006: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/theme\", [1,1,4,7], () => (__webpack_require__.e(2108).then(() => (() => (__webpack_require__(2108))))))),\n\t9494: () => (loadStrictVersionCheckFallback(\"default\", \"@next-core/react-runtime\", [1,1,1,45], () => (__webpack_require__.e(5381).then(() => (() => (__webpack_require__(6660)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"488\": [\n\t\t488\n\t],\n\t\"628\": [\n\t\t628\n\t],\n\t\"1502\": [\n\t\t1502\n\t],\n\t\"2573\": [\n\t\t2573\n\t],\n\t\"4275\": [\n\t\t5454\n\t],\n\t\"4936\": [\n\t\t3239,\n\t\t7207\n\t],\n\t\"5178\": [\n\t\t5178\n\t],\n\t\"5727\": [\n\t\t5727\n\t],\n\t\"5932\": [\n\t\t1065,\n\t\t1935\n\t],\n\t\"6315\": [\n\t\t815,\n\t\t4699,\n\t\t5932,\n\t\t6974,\n\t\t7857,\n\t\t7941,\n\t\t8525\n\t],\n\t\"6921\": [\n\t\t305,\n\t\t1211,\n\t\t2006,\n\t\t9494\n\t],\n\t\"8065\": [\n\t\t2484,\n\t\t6650\n\t],\n\t\"8657\": [\n\t\t8657\n\t],\n\t\"8874\": [\n\t\t8874\n\t],\n\t\"9464\": [\n\t\t9464\n\t],\n\t\"9758\": [\n\t\t5872,\n\t\t5899,\n\t\t6976\n\t]\n};\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\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\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});\n\t}\n}","var moduleMap = {\n\t\"./eo-diagram\": () => {\n\t\treturn Promise.all(/* eo-diagram */[__webpack_require__.e(3166), __webpack_require__.e(8657), __webpack_require__.e(9464), __webpack_require__.e(5727), __webpack_require__.e(6921), __webpack_require__.e(9016)]).then(() => (() => ((__webpack_require__(2715)))));\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/\" + (chunkId === 9016 ? \"eo-diagram\" : chunkId) + \".\" + {\"488\":\"5e90153b\",\"628\":\"ae14642a\",\"1303\":\"70dabf75\",\"1502\":\"bee3a64c\",\"1646\":\"6589b358\",\"1874\":\"85ba64ca\",\"2024\":\"53d97685\",\"2108\":\"5684dc40\",\"2573\":\"0baab81f\",\"2754\":\"cbea5866\",\"2784\":\"70c3fd78\",\"2993\":\"ec4c251f\",\"3166\":\"ddb1e0c3\",\"3458\":\"a63a4d80\",\"4031\":\"e35a7582\",\"4049\":\"6256a178\",\"4275\":\"7315c167\",\"4504\":\"82bbca66\",\"4717\":\"34d53aaa\",\"4936\":\"954f2abc\",\"5151\":\"614d7062\",\"5178\":\"018c624e\",\"5381\":\"1b2b9749\",\"5628\":\"c306b668\",\"5725\":\"78b21531\",\"5727\":\"73c569d3\",\"5932\":\"98a700e0\",\"6205\":\"414655fa\",\"6315\":\"b7be1d21\",\"6473\":\"ca92cfbd\",\"6635\":\"41cb938a\",\"6653\":\"e9c85257\",\"6660\":\"7a61b375\",\"6921\":\"f9c2b186\",\"7067\":\"3f1f372f\",\"7110\":\"8e981c34\",\"7164\":\"6d67a26b\",\"7672\":\"15496b7a\",\"7746\":\"98303035\",\"7915\":\"26a8005c\",\"8008\":\"5a59b5bb\",\"8065\":\"ef94b24a\",\"8316\":\"19210606\",\"8498\":\"e0c035d5\",\"8657\":\"318e9117\",\"8691\":\"2d98de11\",\"8874\":\"96dfb1e5\",\"9016\":\"1dc0255a\",\"9431\":\"968072ff\",\"9464\":\"2876e79a\",\"9549\":\"09d4fb2e\",\"9758\":\"50558c06\"}[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.23.6\", () => (__webpack_require__.e(1874).then(() => (() => (__webpack_require__(1874))))));\n\t\t\tregister(\"@easyops-cn/brick-next-pipes\", \"0.6.0\", () => (Promise.all([__webpack_require__.e(4031), __webpack_require__.e(9758)]).then(() => (() => (__webpack_require__(4031))))));\n\t\t\tregister(\"@next-core/cook\", \"2.2.11\", () => (Promise.all([__webpack_require__.e(5151), __webpack_require__.e(2573)]).then(() => (() => (__webpack_require__(5151))))));\n\t\t\tregister(\"@next-core/element\", \"1.2.1\", () => (__webpack_require__.e(9549).then(() => (() => (__webpack_require__(9549))))));\n\t\t\tregister(\"@next-core/http\", \"1.1.8\", () => (__webpack_require__.e(7067).then(() => (() => (__webpack_require__(7067))))));\n\t\t\tregister(\"@next-core/i18n\", \"1.0.36\", () => (Promise.all([__webpack_require__.e(4936), __webpack_require__.e(5932), __webpack_require__.e(7164)]).then(() => (() => (__webpack_require__(7164))))));\n\t\t\tregister(\"@next-core/inject\", \"1.0.26\", () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(5178), __webpack_require__.e(7672)]).then(() => (() => (__webpack_require__(7672))))));\n\t\t\tregister(\"@next-core/loader\", \"1.5.3\", () => (__webpack_require__.e(8498).then(() => (() => (__webpack_require__(8498))))));\n\t\t\tregister(\"@next-core/pipes\", \"2.0.15\", () => (__webpack_require__.e(4275).then(() => (() => (__webpack_require__(4275))))));\n\t\t\tregister(\"@next-core/react-element\", \"1.0.20\", () => (Promise.all([__webpack_require__.e(8657), __webpack_require__.e(5727), __webpack_require__.e(8065), __webpack_require__.e(1646)]).then(() => (() => (__webpack_require__(1646))))));\n\t\t\tregister(\"@next-core/react-runtime\", \"1.1.45\", () => (Promise.all([__webpack_require__.e(8657), __webpack_require__.e(9464), __webpack_require__.e(6660)]).then(() => (() => (__webpack_require__(6660))))));\n\t\t\tregister(\"@next-core/runtime\", \"1.29.1\", () => (Promise.all([__webpack_require__.e(4504), __webpack_require__.e(5178), __webpack_require__.e(5932), __webpack_require__.e(8874), __webpack_require__.e(488), __webpack_require__.e(6315)]).then(() => (() => (__webpack_require__(4504))))));\n\t\t\tregister(\"@next-core/supply\", \"2.1.10\", () => (Promise.all([__webpack_require__.e(1502), __webpack_require__.e(5178), __webpack_require__.e(8874), __webpack_require__.e(4049)]).then(() => (() => (__webpack_require__(4049))))));\n\t\t\tregister(\"@next-core/theme\", \"1.4.7\", () => (Promise.all([__webpack_require__.e(2108), __webpack_require__.e(5628)]).then(() => (() => (__webpack_require__(2108))))));\n\t\t\tregister(\"@next-core/utils/general\", \"1.6.8\", () => (__webpack_require__.e(7110).then(() => (() => (__webpack_require__(7110))))));\n\t\t\tregister(\"@next-core/utils/storyboard\", \"1.6.8\", () => (Promise.all([__webpack_require__.e(628), __webpack_require__.e(488), __webpack_require__.e(3458)]).then(() => (() => (__webpack_require__(3458))))));\n\t\t\tregister(\"history\", \"4.10.1\", () => (__webpack_require__.e(2024).then(() => (() => (__webpack_require__(2024))))));\n\t\t\tregister(\"i18next-browser-languagedetector\", \"7.2.0\", () => (__webpack_require__.e(2754).then(() => (() => (__webpack_require__(2754))))));\n\t\t\tregister(\"i18next\", \"22.5.1\", () => (__webpack_require__.e(2993).then(() => (() => (__webpack_require__(2993))))));\n\t\t\tregister(\"js-yaml\", \"3.14.1\", () => (__webpack_require__.e(9431).then(() => (() => (__webpack_require__(9431))))));\n\t\t\tregister(\"lodash\", \"4.17.21\", () => (__webpack_require__.e(6635).then(() => (() => (__webpack_require__(6635))))));\n\t\t\tregister(\"moment/locale/zh-cn.js\", \"2.29.4\", () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(7414))))));\n\t\t\tregister(\"moment\", \"2.29.4\", () => (Promise.all([__webpack_require__.e(8008), __webpack_require__.e(7915)]).then(() => (() => (__webpack_require__(9034))))));\n\t\t\tregister(\"react-dom\", \"0.0.0-experimental-ee8509801-20230117\", () => (Promise.all([__webpack_require__.e(8316), __webpack_require__.e(8657)]).then(() => (() => (__webpack_require__(8316))))));\n\t\t\tregister(\"react\", \"0.0.0-experimental-ee8509801-20230117\", () => (__webpack_require__.e(2784).then(() => (() => (__webpack_require__(2784))))));\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)\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) 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(/#.*$/, \"\").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\t9093: 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(!/^(5(178|727|932)|6(28|315|921)|8(065|657|874)|1502|2573|488|4936|9464|9758)$/.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 = self[\"webpackChunk_next_bricks_diagram\"] = self[\"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__(565);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findVersion","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingleton","getSingletonVersion","findValidVersion","warn","get","init","loadFallback","loadSingletonFallback","loadSingletonVersionCheckFallback","loadStrictVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","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","replace","p","str","split","map","exec","apply","b","t","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","test","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
package/dist/types.json CHANGED
@@ -460,6 +460,105 @@
460
460
  },
461
461
  "optional": true,
462
462
  "computed": false
463
+ },
464
+ {
465
+ "type": "propertySignature",
466
+ "key": {
467
+ "type": "identifier",
468
+ "name": "rankdir"
469
+ },
470
+ "annotation": {
471
+ "type": "union",
472
+ "types": [
473
+ {
474
+ "type": "jsLiteral",
475
+ "value": "TB"
476
+ },
477
+ {
478
+ "type": "jsLiteral",
479
+ "value": "BT"
480
+ },
481
+ {
482
+ "type": "jsLiteral",
483
+ "value": "LR"
484
+ },
485
+ {
486
+ "type": "jsLiteral",
487
+ "value": "RL"
488
+ }
489
+ ]
490
+ },
491
+ "optional": true,
492
+ "computed": false
493
+ },
494
+ {
495
+ "type": "propertySignature",
496
+ "key": {
497
+ "type": "identifier",
498
+ "name": "ranksep"
499
+ },
500
+ "annotation": {
501
+ "type": "keyword",
502
+ "value": "number"
503
+ },
504
+ "optional": true,
505
+ "computed": false
506
+ },
507
+ {
508
+ "type": "propertySignature",
509
+ "key": {
510
+ "type": "identifier",
511
+ "name": "edgesep"
512
+ },
513
+ "annotation": {
514
+ "type": "keyword",
515
+ "value": "number"
516
+ },
517
+ "optional": true,
518
+ "computed": false
519
+ },
520
+ {
521
+ "type": "propertySignature",
522
+ "key": {
523
+ "type": "identifier",
524
+ "name": "nodesep"
525
+ },
526
+ "annotation": {
527
+ "type": "keyword",
528
+ "value": "number"
529
+ },
530
+ "optional": true,
531
+ "computed": false
532
+ },
533
+ {
534
+ "type": "propertySignature",
535
+ "key": {
536
+ "type": "identifier",
537
+ "name": "align"
538
+ },
539
+ "annotation": {
540
+ "type": "union",
541
+ "types": [
542
+ {
543
+ "type": "jsLiteral",
544
+ "value": "UL"
545
+ },
546
+ {
547
+ "type": "jsLiteral",
548
+ "value": "UR"
549
+ },
550
+ {
551
+ "type": "jsLiteral",
552
+ "value": "DL"
553
+ },
554
+ {
555
+ "type": "jsLiteral",
556
+ "value": "DR"
557
+ }
558
+ ]
559
+ },
560
+ "optional": true,
561
+ "computed": false
463
562
  }
464
563
  ]
465
564
  }
@@ -66,4 +66,9 @@ export interface TransformLiteral {
66
66
  }
67
67
  export interface LayoutOptionsDagre {
68
68
  nodePadding?: number;
69
+ rankdir?: "TB" | "BT" | "LR" | "RL";
70
+ ranksep?: number;
71
+ edgesep?: number;
72
+ nodesep?: number;
73
+ align?: "UL" | "UR" | "DL" | "DR";
69
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/diagram",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/diagram",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "peerDependencies": {
41
41
  "@next-bricks/icons": "*"
42
42
  },
43
- "gitHead": "d82001e9566d338429ae4fc0b9ab684069f42c2c"
43
+ "gitHead": "380ce062c56e487418226850caf03701d8a4b31d"
44
44
  }
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_diagram=self.webpackChunk_next_bricks_diagram||[]).push([[8279],{8279:(e,t,a)=>{a.r(t);var r=a(3395),n=a(1815),i=a(381),o=a(687),s=a(5066),d=a(8657),l=a.n(d),u=a(5727),c=a(305),v=(a(2006),a(908)),h=a.n(v),f=a(1105),g=a(7397),k=a(2779),p=a.n(k),y=a(9494),b=a(9464);function m(e){var{nodes:t,nodeBricks:a,onRendered:r}=e,[n,i]=(0,d.useState)(!1),[o,s]=(0,d.useState)([]),u=(0,d.useMemo)((()=>new Map),[]),c=(0,d.useCallback)(((e,t)=>{t&&u.set(e,t),s((t=>t.includes(e)?t:t.concat(e)))}),[u]),v=(0,d.useCallback)((e=>{s((t=>{var a=t.indexOf(e);return-1===a?t:t.slice(0,a).concat(t.slice(a+1))})),u.delete(e)}),[u]);return(0,d.useEffect)((()=>{i(!(null!=t&&t.some((e=>!o.includes(e.id)))))}),[t,o]),(0,d.useEffect)((()=>{null==r||r(n?u:null)}),[u,n]),l().createElement(l().Fragment,null,null==t?void 0:t.map((e=>l().createElement("div",{key:e.id,className:"node"},l().createElement(w,{nodeBricks:a,node:e,onRendered:c,onUnmount:v})))))}function w(e){var{node:t,nodeBricks:a,onRendered:r,onUnmount:n}=e,i=(0,d.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,b.checkIfByTransform)(t,{node:e})))}(t,a))||void 0===e?void 0:e.useBrick}),[t,a]),o=(0,d.useMemo)((()=>({node:t})),[t]);(0,d.useEffect)((()=>{i||setTimeout((()=>{null==r||r(t.id,null)}))}),[t.id,r,i]),(0,d.useEffect)((()=>()=>{null==n||n(t.id)}),[]);var s=(0,d.useCallback)((e=>{e&&setTimeout((()=>{null==r||r(t.id,e)}))}),[t.id,r]),u=(0,d.useCallback)((()=>{setTimeout((()=>{null==r||r(t.id,null)}))}),[t.id,r]);return i?l().createElement(y.ReactUseBrick,{refCallback:s,ignoredCallback:u,useBrick:i,data:o}):null}var Z=a(3698),E=a(1479),x=a(6481),N=a(9389),B=a(8282),M=a(5004);function W(e,t,a){if(!Array.isArray(e))return"";var r;switch(a){case"curveBasis":r=Z.ZP;break;case"curveBumpX":r=E.sj;break;case"curveBumpY":r=E.BW;break;case"curveMonotoneX":r=x.Z;break;case"curveMonotoneY":r=x.s;break;case"curveNatural":r=N.Z;break;default:r=B.Z}var n=0,i=0;if(t){var{x:o,y:s}=e[e.length-2],{x:d,y:l}=e[e.length-1],u=t/Math.sqrt(Math.pow(d-o,2)+Math.pow(l-s,2));n=(o-d)*u,i=(s-l)*u}var c=e;return(0,M.Z)().x(((t,a)=>t.x-(a===e.length-1?n:0))).y(((t,a)=>t.y-(a===e.length-1?i:0))).curve(r)(c)}var C=a(1211);function S(e,t,a){var r,n=e.filter((e=>e!==t&&(r=(e.x-t.x)*a)>0&&r>Math.abs(t.y-e.y)));return(0,C.minBy)(n,(e=>(t.y-e.y)**2+(t.x-e.x)**2))}function A(e,t,a,r){var n=1===r?"source":"target",i=1===r?"target":"source",o=t.filter((e=>{var{data:t}=e;return t[n]===a.id&&t[i]!==a.id})).map((t=>{var{data:a}=t;return e.find((e=>e.id===a[i]))})).filter((e=>e&&(e.y-a.y)*r>0));return(0,C.minBy)(o,(e=>(a.y-e.y)**2+(a.x-e.x)**2))}var I=a(3028),D="var(--palette-gray-5)",T=1,R="curveBasis";var L,O,K,_,P,z,U,X,Y,H,j,q,G,F,J,Q,V,$,ee,te,ae,re,ne,ie,oe,se,de,le,ue,ce=a(6436),{defineElement:ve,property:he,event:fe}=(0,u.createDecorators)();O=ve("eo-diagram",{styleTexts:[ce.Z]}),K=he({type:String}),P=he({attribute:!1}),U=he({attribute:!1}),Y=he({attribute:!1}),j=he({attribute:!1}),G=he({attribute:!1}),J=he({type:String}),V=he({type:Boolean}),ee=fe({type:"activeNode.change"}),ne=fe({type:"node.delete"});var ge=new WeakMap,ke=new WeakMap,pe=new WeakMap,ye=new WeakMap,be=new WeakMap,me=new WeakMap,we=new WeakMap,Ze=new WeakMap,Ee=new WeakMap,xe=new WeakMap,Ne=new WeakMap,Be=new WeakMap,Me=new WeakMap,We=new WeakMap,Ce=new WeakMap;class Se extends c.ReactNextElement{constructor(){super(...arguments),(0,r.Z)(this,Me,{get:Te,set:De}),(0,r.Z)(this,xe,{get:Ie,set:Ae}),(0,r.Z)(this,ge,{writable:!0,value:(de(this),_(this))}),(0,r.Z)(this,ke,{writable:!0,value:z(this)}),(0,r.Z)(this,pe,{writable:!0,value:X(this)}),(0,r.Z)(this,ye,{writable:!0,value:H(this)}),(0,r.Z)(this,be,{writable:!0,value:q(this)}),(0,r.Z)(this,me,{writable:!0,value:F(this)}),(0,r.Z)(this,we,{writable:!0,value:Q(this)}),(0,r.Z)(this,Ze,{writable:!0,value:$(this)}),(0,r.Z)(this,Ee,{writable:!0,value:te(this)}),(0,r.Z)(this,Ne,{writable:!0,value:e=>{(0,o.Z)(this,xe).emit(e)}}),(0,r.Z)(this,Be,{writable:!0,value:ie(this)}),(0,r.Z)(this,We,{writable:!0,value:e=>{(0,o.Z)(this,Me).emit(e)}}),(0,r.Z)(this,Ce,{writable:!0,value:e=>{this.activeNodeId=e}})}get layout(){return(0,o.Z)(this,ge)}set layout(e){(0,i.Z)(this,ge,e)}get nodes(){return(0,o.Z)(this,ke)}set nodes(e){(0,i.Z)(this,ke,e)}get edges(){return(0,o.Z)(this,pe)}set edges(e){(0,i.Z)(this,pe,e)}get nodeBricks(){return(0,o.Z)(this,ye)}set nodeBricks(e){(0,i.Z)(this,ye,e)}get lines(){return(0,o.Z)(this,be)}set lines(e){(0,i.Z)(this,be,e)}get layoutOptions(){return(0,o.Z)(this,me)}set layoutOptions(e){(0,i.Z)(this,me,e)}get activeNodeId(){return(0,o.Z)(this,we)}set activeNodeId(e){(0,i.Z)(this,we,e)}get disableKeyboardAction(){return(0,o.Z)(this,Ze)}set disableKeyboardAction(e){(0,i.Z)(this,Ze,e)}render(){return l().createElement(Re,{layout:this.layout,nodes:this.nodes,edges:this.edges,nodeBricks:this.nodeBricks,lines:this.lines,layoutOptions:this.layoutOptions,activeNodeId:this.activeNodeId,disableKeyboardAction:this.disableKeyboardAction,onActiveNodeChange:(0,o.Z)(this,Ne),onSwitchActiveNode:(0,o.Z)(this,Ce),onNodeDelete:(0,o.Z)(this,We)})}}function Ae(e){re(this,e)}function Ie(){return ae(this)}function De(e){se(this,e)}function Te(){return oe(this)}function Re(e){var t,{layout:a,nodes:r,edges:n,nodeBricks:i,lines:o,layoutOptions:s,activeNodeId:u,disableKeyboardAction:c,onActiveNodeChange:v,onSwitchActiveNode:k,onNodeDelete:y}=e,[w,Z]=(0,d.useState)(null),[E,x]=(0,d.useState)(!1),[N,B]=(0,d.useState)(0),[M,L]=(0,d.useState)(null),[O,K]=(0,d.useState)([]),[_,P]=(0,d.useState)([]),[z,U]=(0,d.useState)([]),[X,Y]=(0,d.useState)([]),H=(0,d.useRef)(null),[j,q]=(0,d.useState)(!1),[G,F]=(0,d.useState)({k:1,x:0,y:0}),J=(0,d.useRef)(null),Q=(0,d.useRef)(null),[V,$]=(0,d.useState)([0,0]),[ee,te]=(0,d.useState)(!1),ae=null!==(t=null==s?void 0:s.nodePadding)&&void 0!==t?t:0;(0,d.useEffect)((()=>{var e=u?null==r?void 0:r.find((e=>e.id===u)):void 0;null==v||v(e)}),[r,u,v]),(0,d.useEffect)((()=>{Z((e=>{var t=new(h().graphlib.Graph);for(var a of(t.setGraph({ranksep:50,nodesep:20,rankdir:"TB"}),t.setDefaultEdgeLabel((function(){return{}})),null!=r?r:[])){var i=null==e?void 0:e.node(a.id);t.setNode(a.id,(null==i?void 0:i.data)===a?i:{id:a.id,data:a})}for(var o of null!=n?n:[])t.setEdge(o.source,o.target,{data:o});return t}))}),[n,r]),(0,d.useEffect)((()=>{if(w&&M&&0!==w.nodeCount()){for(var e of w.nodes()){var t,a,r=w.node(e);if(r){var n=M.get(e);r.width=(null!==(t=null==n?void 0:n.offsetWidth)&&void 0!==t?t:10)+2*ae,r.height=(null!==(a=null==n?void 0:n.offsetHeight)&&void 0!==a?a:10)+2*ae}else console.error("Diagram node not found: %s",e)}h().layout(w);var i=[];for(var o of w.nodes()){var s,d=w.node(o);if(d){i.push(d);var l=d.x-d.width/2+ae,u=d.y-d.height/2+ae,c=null===(s=M.get(o))||void 0===s?void 0:s.parentElement;c&&(c.style.left="".concat(l,"px"),c.style.top="".concat(u,"px"),c.style.visibility="visible")}}K(i),P(w.edges().map((e=>w.edge(e))))}}),[w,M,N,ae]),(0,d.useEffect)((()=>{var{renderedLines:e,markers:t}=function(e,t){var a=[],r=[],n=function(e){var n=null==t?void 0:t.find((t=>{return a=e.data,!!(r=t)&&(r.edgeType?[].concat(r.edgeType).includes(a.type):(0,b.checkIfByTransform)(r,{edge:a}));var a,r}));if(!1===(null==n?void 0:n.draw))return 1;var i,o=Object.assign({strokeColor:D,strokeWidth:T,curveType:R},n);if(o.arrow){var s={strokeColor:o.strokeColor};-1===(i=(0,C.findIndex)(r,s))&&(i=r.push(s)-1)}a.push((0,I.Z)((0,I.Z)({},e),{},{line:o,markerIndex:i}))};for(var i of e)n(i);return{renderedLines:a,markers:r}}(_,o);U(e),Y(t)}),[o,_]),(0,d.useEffect)((()=>{var e=J.current;if(e&&!c){var t=e=>{var t=function(e,t){var{renderedNodes:a,renderedEdges:r,activeNodeId:n}=t,i=n?a.find((e=>e.id===n)):void 0;if(i){var o,s,d;switch(e.key||e.keyCode||e.which){case"ArrowLeft":case 37:s=S(a,i,-1),o="switch-active-node";break;case"ArrowUp":case 38:s=A(a,r,i,-1),o="switch-active-node";break;case"ArrowRight":case 39:s=S(a,i,1),o="switch-active-node";break;case"ArrowDown":case 40:s=A(a,r,i,1),o="switch-active-node";break;case"Backspace":case 8:case"Delete":case 46:o="delete-node",s=i}if(o)return e.preventDefault(),e.stopPropagation(),{action:o,node:null===(d=s)||void 0===d?void 0:d.data}}}(e,{renderedNodes:O,renderedEdges:_,activeNodeId:u});"delete-node"===(null==t?void 0:t.action)?null==y||y(t.node):"switch-active-node"===(null==t?void 0:t.action)&&t.node&&(null==k||k(t.node.id))};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}}),[u,O,_,c,k,y]);var re=(0,d.useCallback)((e=>{e&&(B((e=>e+1)),L(e)),x((t=>t||!!e))}),[]);(0,d.useEffect)((()=>{var e=J.current,t=H.current;if(e&&t){var a=!1,r=(0,g.sP)().scaleExtent([1,1]).on("start",(()=>{a=!1,q(!0)})).on("zoom",(e=>{a=!0,F(e.transform)})).on("end",(()=>{q(!1),a||null==k||k(void 0)}));(0,f.Z)(t).call(r),(0,f.Z)(e).on("wheel.zoom",(e=>{e.stopPropagation(),e.preventDefault(),r.translateBy((0,f.Z)(t),e.wheelDeltaX/5,e.wheelDeltaY/5)}))}}),[k]),(0,d.useEffect)((()=>{var e=J.current;0!==O.length&&e&&!ee&&($(function(e,t){var[a,r]=t,n=1/0,i=1/0,o=-1/0,s=-1/0;for(var d of e){var l=d.width/2,u=d.height/2,c=d.x-l,v=d.x+l,h=d.y-u,f=d.y+u;c<n&&(n=c),v>o&&(o=v),h<i&&(i=h),f>s&&(s=f)}return[(a-(o-n))/2-i,(r-(s-i))/2-n]}(O,[e.clientWidth,e.clientHeight])),te(!0))}),[ee,O]);var ne=(0,d.useMemo)((()=>"".concat((0,C.uniqueId)("diagram-line-arrow-"),"-")),[]);return"dagre"!==a?l().createElement("div",null,'Diagram layout not supported: "'.concat(a,'"')):l().createElement("div",{className:p()("diagram",{ready:E&&ee}),tabIndex:-1,ref:J},l().createElement("svg",{width:"100%",height:"100%",className:"lines"},l().createElement("defs",null,X.map(((e,t)=>{var{strokeColor:a}=e;return l().createElement("marker",{key:t,id:"".concat(ne).concat(t),viewBox:"0 0 6 6",refX:3,refY:3,markerWidth:6,markerHeight:6,orient:"auto"},l().createElement("path",{d:"M 0.5 0.5 L 5.5 3 L 0.5 5.5 z",stroke:a,strokeWidth:1,fill:a}))}))),l().createElement("g",{transform:"translate(".concat(V[0]+G.x," ").concat(V[1]+G.y,") scale(").concat(G.k,")")},z.map(((e,t)=>{var{points:a,line:r,markerIndex:n}=e;return l().createElement("path",{key:t,stroke:r.strokeColor,strokeWidth:r.strokeWidth,d:W(a,r.arrow?-5:0,r.curveType),fill:"none",markerEnd:void 0===n?void 0:"url(#".concat(ne).concat(n,")")})})))),l().createElement("div",{className:p()("dragger",{grabbing:j}),ref:H}),l().createElement("div",{className:"nodes",ref:Q,style:{left:V[0]+G.x,top:V[1]+G.y}},l().createElement(m,{nodes:r,nodeBricks:i,onRendered:re})))}le=Se,({e:[_,z,X,H,q,F,Q,$,te,ae,re,ie,oe,se,de],c:[ue,L]}=(0,s.Z)(le,[[K,1,"layout"],[P,1,"nodes"],[U,1,"edges"],[Y,1,"nodeBricks"],[j,1,"lines"],[G,1,"layoutOptions"],[J,1,"activeNodeId"],[V,1,"disableKeyboardAction"],[ee,1,"activeNodeChangeEvent",e=>(0,o.Z)(e,Ee),(e,t)=>(0,i.Z)(e,Ee,t)],[ne,1,"nodeDelete",e=>(0,o.Z)(e,Be),(e,t)=>(0,i.Z)(e,Be,t)]],[O],0,(e=>Ce.has((0,n.Z)(e))),c.ReactNextElement)),L()},6436:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(9601),n=a.n(r),i=a(2609),o=a.n(i)()(n());o.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}.ready{opacity:1}.dragger,\n.lines,\n.nodes{position:absolute;top:0;left:0}.node{position:absolute;visibility:hidden}.dragger{width:100%;height:100%;cursor:-webkit-grab;cursor:grab}.grabbing{cursor:-webkit-grabbing;cursor:grabbing}",""]);const s=o.toString()}}]);
2
- //# sourceMappingURL=8279.275441a3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/8279.275441a3.js","mappings":"oTAgBO,SAASA,EAAkBC,GAIO,IAJN,MACjCC,EAAK,WACLC,EAAU,WACVC,GACwBH,GACjBI,EAAUC,IAAeC,EAAAA,EAAAA,WAAS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,GAAAH,GAAA,EAAA3M,EAAA,aAAAE,EAAA,YAAAE,EAAA,YAAAC,EAAA,iBAAAC,EAAA,YAAAC,EAAA,oBAAAC,EAAA,mBAAAC,EAAA,4BAAAE,GAAA,0BAAAoM,IAAA5J,EAAAA,EAAAA,GAAA4J,EAAAzL,IAAA,CAAAyL,EAAAtJ,KAAAC,EAAAA,EAAAA,GAAAqJ,EAAAzL,GAAAmC,IAAA,CAAA7C,GAAA,eAAAmM,IAAA5J,EAAAA,EAAAA,GAAA4J,EAAAtL,IAAA,CAAAsL,EAAAtJ,KAAAC,EAAAA,EAAAA,GAAAqJ,EAAAtL,GAAAgC,KAAA,CAAA5D,GAAA,GAAAmN,GAAApL,GAAAqL,KAAAC,EAAAA,EAAAA,GAAAF,KA7DuBlL,EAAAA,mBAAgB+K,G,mEI5DpCM,E,MAA0B,GAA4B,KAE1DA,EAAwBrF,KAAK,CAACsF,EAAOhT,GAAI,kbAE4J,KAErM,QAAe+S,EAAwBE,U","sources":["webpack:///./src/diagram/NodeComponent.tsx","webpack:///./src/diagram/processors/findNodeBrick.ts","webpack:///./src/diagram/lines/curveLine.ts","webpack:///./src/diagram/processors/handleKeyboard.ts","webpack:///./src/diagram/constants.ts","webpack:///./src/diagram/index.tsx","webpack:///./src/diagram/processors/getRenderedLinesAndMarkers.ts","webpack:///./src/diagram/processors/matchEdgeByFilter.ts","webpack:///./src/diagram/processors/getCenterOffsets.ts","webpack:///./src/diagram/styles.shadow.css"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { ReactUseBrick } from \"@next-core/react-runtime\";\nimport type {\n DiagramNode,\n DiagramNodeId,\n NodeBrickConf,\n RefRepository,\n} from \"./interfaces\";\nimport { findNodeBrick } from \"./processors/findNodeBrick\";\n\nexport interface NodeComponentGroupProps {\n nodes?: DiagramNode[];\n nodeBricks?: NodeBrickConf[];\n onRendered?: (refRepository: RefRepository | null) => void;\n}\n\nexport function NodeComponentGroup({\n nodes,\n nodeBricks,\n onRendered,\n}: NodeComponentGroupProps): JSX.Element {\n const [rendered, setRendered] = useState(false);\n const [renderedIds, setRenderedIds] = useState<DiagramNodeId[]>([]);\n const refRepository = useMemo<RefRepository>(() => new Map(), []);\n\n const handleRenderer = useCallback(\n (id: DiagramNodeId, element: HTMLElement | null) => {\n if (element) {\n refRepository.set(id, element);\n }\n setRenderedIds((previous) =>\n previous.includes(id) ? previous : previous.concat(id)\n );\n },\n [refRepository]\n );\n\n const handleUnmount = useCallback(\n (id: DiagramNodeId) => {\n setRenderedIds((previous) => {\n const index = previous.indexOf(id);\n return index === -1\n ? previous\n : previous.slice(0, index).concat(previous.slice(index + 1));\n });\n refRepository.delete(id);\n },\n [refRepository]\n );\n\n useEffect(() => {\n // All nodes have been rendered.\n setRendered(!nodes?.some((node) => !renderedIds.includes(node.id)));\n }, [nodes, renderedIds]);\n\n useEffect(\n () => {\n onRendered?.(rendered ? refRepository : null);\n },\n // Dot not re-run effect when `onRendered` changed.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [/* onRendered, */ refRepository, rendered]\n );\n\n return (\n <React.Fragment>\n {nodes?.map((node) => (\n <div key={node.id} className=\"node\">\n <NodeComponent\n nodeBricks={nodeBricks}\n node={node}\n onRendered={handleRenderer}\n onUnmount={handleUnmount}\n />\n </div>\n ))}\n </React.Fragment>\n );\n}\n\nexport interface NodeComponentProps {\n node: DiagramNode;\n nodeBricks?: NodeBrickConf[];\n onRendered?: (id: DiagramNodeId, element: HTMLElement | null) => void;\n onUnmount?: (id: DiagramNodeId) => void;\n}\n\nexport function NodeComponent({\n node,\n nodeBricks,\n onRendered,\n onUnmount,\n}: NodeComponentProps): JSX.Element | null {\n const useBrick = useMemo(\n () => findNodeBrick(node, nodeBricks)?.useBrick,\n [node, nodeBricks]\n );\n const memoizedData = useMemo(() => ({ node }), [node]);\n\n useEffect(() => {\n if (!useBrick) {\n // Keep the same time delay for reporting rendered.\n setTimeout(() => {\n onRendered?.(node.id, null);\n });\n }\n }, [node.id, onRendered, useBrick]);\n\n useEffect(\n () => {\n return () => {\n onUnmount?.(node.id);\n };\n },\n // Only unmount once\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n\n const refCallback = useCallback(\n (element: HTMLElement | null) => {\n if (element) {\n // Todo: correctly wait for `useBrick` in v3 to be rendered (after layout)\n // Wait a macro task to let `useBrick` to be rendered.\n setTimeout(() => {\n onRendered?.(node.id, element);\n });\n }\n },\n [node.id, onRendered]\n );\n\n const ignoredCallback = useCallback(() => {\n setTimeout(() => {\n onRendered?.(node.id, null);\n });\n }, [node.id, onRendered]);\n\n if (!useBrick) {\n return null;\n }\n\n return (\n <ReactUseBrick\n refCallback={refCallback}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore For v3 only\n ignoredCallback={ignoredCallback}\n useBrick={useBrick}\n data={memoizedData}\n />\n );\n}\n","import { checkIfByTransform } from \"@next-core/runtime\";\nimport { NodeBrickConf, DiagramNode } from \"../interfaces\";\n\nexport function findNodeBrick(\n node: DiagramNode,\n nodeBricks: NodeBrickConf[] | undefined\n): NodeBrickConf | undefined {\n return nodeBricks?.find((item) => {\n if (item.nodeType) {\n return ([] as unknown[]).concat(item.nodeType).includes(node.type);\n }\n return checkIfByTransform(item, { node });\n });\n}\n","import {\n curveLinear,\n line,\n curveBasis,\n curveBumpX,\n curveBumpY,\n type CurveFactory,\n curveMonotoneX,\n curveNatural,\n curveMonotoneY,\n} from \"d3-shape\";\nimport type { CurveType, NodePosition } from \"../interfaces\";\n\n/**\n * Generate Line from points\n */\nexport function curveLine(\n points: Array<NodePosition>,\n arrowOffset: number,\n curveType?: CurveType\n): string {\n if (!Array.isArray(points)) {\n return \"\";\n }\n let curveFactory: CurveFactory;\n switch (curveType) {\n case \"curveBasis\":\n curveFactory = curveBasis;\n break;\n case \"curveBumpX\":\n curveFactory = curveBumpX;\n break;\n case \"curveBumpY\":\n curveFactory = curveBumpY;\n break;\n case \"curveMonotoneX\":\n curveFactory = curveMonotoneX;\n break;\n case \"curveMonotoneY\":\n curveFactory = curveMonotoneY;\n break;\n case \"curveNatural\":\n curveFactory = curveNatural;\n break;\n default:\n curveFactory = curveLinear;\n }\n let arrowOffsetX = 0;\n let arrowOffsetY = 0;\n if (arrowOffset) {\n const { x: x0, y: y0 } = points[points.length - 2];\n const { x: x1, y: y1 } = points[points.length - 1];\n const distance = Math.sqrt(Math.pow(x1 - x0, 2) + Math.pow(y1 - y0, 2));\n const ratio = arrowOffset / distance;\n arrowOffsetX = (x0 - x1) * ratio;\n arrowOffsetY = (y0 - y1) * ratio;\n }\n const transformPoints = points;\n const lineFunction = line()\n .x(\n (d, index) =>\n (d as unknown as { x: number }).x -\n (index === points.length - 1 ? arrowOffsetX : 0)\n )\n .y(\n (d, index) =>\n (d as unknown as { y: number }).y -\n (index === points.length - 1 ? arrowOffsetY : 0)\n )\n .curve(curveFactory);\n return lineFunction(transformPoints as unknown as Array<[number, number]>)!;\n}\n","import { minBy } from \"lodash\";\nimport type { DiagramNode, RenderedEdge, RenderedNode } from \"../interfaces\";\n\nexport type KeyboardAction =\n | KeyboardActionSwitchActiveNode\n | KeyboardActionDeleteNode;\n\nexport interface KeyboardActionSwitchActiveNode {\n action: \"switch-active-node\";\n node?: DiagramNode;\n}\n\nexport interface KeyboardActionDeleteNode {\n action: \"delete-node\";\n node: DiagramNode;\n}\n\nexport function handleKeyboard(\n event: KeyboardEvent,\n {\n renderedNodes,\n renderedEdges,\n activeNodeId,\n }: {\n renderedNodes: RenderedNode[];\n renderedEdges: RenderedEdge[];\n activeNodeId: string | undefined;\n }\n): KeyboardAction | undefined {\n const activeNode = activeNodeId\n ? renderedNodes.find((node) => node.id === activeNodeId)\n : undefined;\n\n if (!activeNode) {\n return;\n }\n\n const key =\n event.key ||\n /* istanbul ignore next: compatibility */ event.keyCode ||\n /* istanbul ignore next: compatibility */ event.which;\n let action: KeyboardAction[\"action\"] | undefined;\n let node: RenderedNode | undefined;\n switch (key) {\n case \"ArrowLeft\":\n case 37: {\n node = moveOnX(renderedNodes, activeNode, -1);\n action = \"switch-active-node\";\n break;\n }\n case \"ArrowUp\":\n case 38: {\n node = moveOnY(renderedNodes, renderedEdges, activeNode, -1);\n action = \"switch-active-node\";\n break;\n }\n case \"ArrowRight\":\n case 39: {\n node = moveOnX(renderedNodes, activeNode, 1);\n action = \"switch-active-node\";\n break;\n }\n case \"ArrowDown\":\n case 40: {\n node = moveOnY(renderedNodes, renderedEdges, activeNode, 1);\n action = \"switch-active-node\";\n break;\n }\n case \"Backspace\":\n case 8:\n case \"Delete\":\n case 46: {\n action = \"delete-node\";\n node = activeNode;\n break;\n }\n }\n if (action) {\n event.preventDefault();\n event.stopPropagation();\n return { action, node: node?.data } as KeyboardAction;\n }\n}\n\nfunction moveOnX(\n renderedNodes: RenderedNode[],\n activeNode: RenderedNode,\n direction: 1 | -1\n) {\n let diff: number;\n const candidates = renderedNodes.filter(\n (node) =>\n node !== activeNode &&\n ((diff = (node.x - activeNode.x) * direction), diff > 0) &&\n diff > Math.abs(activeNode.y - node.y)\n );\n return minBy(\n candidates,\n (node) => (activeNode.y - node.y) ** 2 + (activeNode.x - node.x) ** 2\n );\n}\n\nfunction moveOnY(\n renderedNodes: RenderedNode[],\n renderedEdges: RenderedEdge[],\n activeNode: RenderedNode,\n direction: 1 | -1\n) {\n const from = direction === 1 ? \"source\" : \"target\";\n const to = direction === 1 ? \"target\" : \"source\";\n const candidateEdges = renderedEdges.filter(\n ({ data }) => data[from] === activeNode.id && data[to] !== activeNode.id\n );\n const candidates = candidateEdges\n .map(({ data }) => renderedNodes.find((node) => node.id === data[to]))\n .filter(\n (node) => node && (node.y - activeNode.y) * direction > 0\n ) as RenderedNode[];\n return minBy(\n candidates,\n (node) => (activeNode.y - node.y) ** 2 + (activeNode.x - node.x) ** 2\n );\n}\n","export const DEFAULT_LINE_STROKE_COLOR = \"var(--palette-gray-5)\";\nexport const DEFAULT_LINE_STROKE_WIDTH = 1;\nexport const DEFAULT_LINE_CURVE_TYPE = \"curveBasis\";\n","import React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { EventEmitter, createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport dagre from \"@dagrejs/dagre\";\nimport { select } from \"d3-selection\";\nimport { zoom } from \"d3-zoom\";\nimport classNames from \"classnames\";\nimport type {\n DiagramEdge,\n DiagramNode,\n LayoutOptionsDagre,\n LineConf,\n LineMarker,\n NodeBrickConf,\n RefRepository,\n RenderedEdge,\n RenderedLine,\n RenderedNode,\n TransformLiteral,\n} from \"./interfaces\";\nimport { NodeComponentGroup } from \"./NodeComponent\";\nimport { curveLine } from \"./lines/curveLine\";\nimport { handleKeyboard } from \"./processors/handleKeyboard\";\nimport { getCenterOffsets } from \"./processors/getCenterOffsets\";\nimport { getRenderedLinesAndMarkers } from \"./processors/getRenderedLinesAndMarkers\";\nimport styleText from \"./styles.shadow.css\";\nimport { uniqueId } from \"lodash\";\n\nconst { defineElement, property, event } = createDecorators();\n\nexport interface EoDiagramProps {\n layout?: \"dagre\";\n nodes?: DiagramNode[];\n edges?: DiagramEdge[];\n nodeBricks?: NodeBrickConf[];\n lines?: LineConf[];\n layoutOptions?: LayoutOptionsDagre;\n activeNodeId?: string;\n disableKeyboardAction?: boolean;\n onActiveNodeChange?(node: DiagramNode | undefined): void;\n onSwitchActiveNode?(id: string | undefined): void;\n onNodeDelete?(node: DiagramNode): void;\n}\n\nexport interface DiagramHandler {\n moveIntoView(id: string): void;\n}\n\n/**\n * 构件 `eo-diagram`\n */\nexport\n@defineElement(\"eo-diagram\", {\n styleTexts: [styleText],\n // shadowOptions: false\n})\nclass EoDiagram extends ReactNextElement implements EoDiagramProps {\n @property({ type: String })\n accessor layout: \"dagre\" | undefined;\n\n @property({ attribute: false })\n accessor nodes: DiagramNode[] | undefined;\n\n @property({ attribute: false })\n accessor edges: DiagramEdge[] | undefined;\n\n @property({ attribute: false })\n accessor nodeBricks: NodeBrickConf[] | undefined;\n\n @property({ attribute: false })\n accessor lines: LineConf[] | undefined;\n\n @property({ attribute: false })\n accessor layoutOptions: LayoutOptionsDagre | undefined;\n\n @property({ type: String })\n accessor activeNodeId: string | undefined;\n\n @property({ type: Boolean })\n accessor disableKeyboardAction: boolean | undefined;\n\n @event({ type: \"activeNode.change\" })\n accessor #activeNodeChangeEvent!: EventEmitter<DiagramNode | undefined>;\n\n #handleActiveNodeChange = (node: DiagramNode | undefined) => {\n // this.activeNodeId = node?.id;\n this.#activeNodeChangeEvent.emit(node);\n };\n\n @event({ type: \"node.delete\" })\n accessor #nodeDelete!: EventEmitter<DiagramNode>;\n\n #handleNodeDelete = (node: DiagramNode) => {\n this.#nodeDelete.emit(node);\n };\n\n #handleSwitchActiveNode = (id: string | undefined) => {\n this.activeNodeId = id;\n };\n\n render() {\n return (\n <EoDiagramComponent\n layout={this.layout}\n nodes={this.nodes}\n edges={this.edges}\n nodeBricks={this.nodeBricks}\n lines={this.lines}\n layoutOptions={this.layoutOptions}\n activeNodeId={this.activeNodeId}\n disableKeyboardAction={this.disableKeyboardAction}\n onActiveNodeChange={this.#handleActiveNodeChange}\n onSwitchActiveNode={this.#handleSwitchActiveNode}\n onNodeDelete={this.#handleNodeDelete}\n />\n );\n }\n}\n\nexport function EoDiagramComponent({\n layout,\n nodes,\n edges,\n nodeBricks,\n lines,\n layoutOptions,\n activeNodeId,\n disableKeyboardAction,\n onActiveNodeChange,\n onSwitchActiveNode,\n onNodeDelete,\n}: EoDiagramProps) {\n // const [nodePositions, setNodePositions] = useState<Map<DiagramNodeId, NodePosition> | undefined>();\n const [graph, setGraph] = useState<dagre.graphlib.Graph<RenderedNode> | null>(\n null\n );\n const [nodesReady, setNodesReady] = useState(false);\n const [renderId, setRenderId] = useState(0);\n const [refRepository, setRefRepository] = useState<RefRepository | null>(\n null\n );\n const [renderedNodes, setRenderedNodes] = useState<RenderedNode[]>([]);\n const [renderedEdges, setRenderedEdges] = useState<RenderedEdge[]>([]);\n const [renderedLines, setRenderedLines] = useState<RenderedLine[]>([]);\n const [markers, setMarkers] = useState<LineMarker[]>([]);\n\n const draggerRef = useRef<HTMLDivElement>(null);\n const [grabbing, setGrabbing] = useState(false);\n const [transform, setTransform] = useState<TransformLiteral>({\n k: 1,\n x: 0,\n y: 0,\n });\n\n const rootRef = useRef<HTMLDivElement>(null);\n const nodesRef = useRef<HTMLDivElement>(null);\n const [offsets, setOffsets] = useState<[x: number, y: number]>([0, 0]);\n const [centered, setCentered] = useState(false);\n\n const nodePadding = layoutOptions?.nodePadding ?? 0;\n\n useEffect(() => {\n const nextActiveNode = activeNodeId\n ? nodes?.find((node) => node.id === activeNodeId)\n : undefined;\n onActiveNodeChange?.(nextActiveNode);\n }, [nodes, activeNodeId, onActiveNodeChange]);\n\n useEffect(() => {\n setGraph((previousGraph) => {\n // Create a new directed graph\n const newGraph = new dagre.graphlib.Graph<RenderedNode>();\n\n // Set an object for the graph label\n newGraph.setGraph({\n ranksep: 50,\n nodesep: 20,\n // padding: 15,\n rankdir: \"TB\",\n // acyclicer: \"greedy\",\n });\n\n // Default to assigning a new object as a label for each new edge.\n newGraph.setDefaultEdgeLabel(function () {\n return {};\n });\n\n for (const node of nodes ?? []) {\n const previousNode = previousGraph?.node(node.id);\n newGraph.setNode(\n node.id,\n previousNode?.data === node\n ? previousNode\n : {\n id: node.id,\n data: node,\n }\n );\n }\n\n for (const edge of edges ?? []) {\n newGraph.setEdge(edge.source, edge.target, { data: edge });\n }\n\n return newGraph;\n });\n }, [edges, nodes]);\n\n useEffect(() => {\n if (!graph || !refRepository || graph.nodeCount() === 0) {\n return;\n }\n\n for (const id of graph.nodes()) {\n const node = graph.node(id);\n if (!node) {\n // eslint-disable-next-line no-console\n console.error(\"Diagram node not found: %s\", id);\n continue;\n }\n const element = refRepository.get(id);\n node.width = (element?.offsetWidth ?? 10) + nodePadding * 2;\n node.height = (element?.offsetHeight ?? 10) + nodePadding * 2;\n }\n\n dagre.layout(graph);\n\n // const positions = new Map<DiagramNodeId, NodePosition>();\n const renderedNodes: RenderedNode[] = [];\n\n for (const v of graph.nodes()) {\n const node = graph.node(v);\n if (!node) {\n continue;\n }\n renderedNodes.push(node);\n const x = node.x - node.width / 2 + nodePadding;\n const y = node.y - node.height / 2 + nodePadding;\n // positions.set(v, { x, y });\n\n const nodeContainer = refRepository.get(v)?.parentElement;\n if (nodeContainer) {\n nodeContainer.style.left = `${x}px`;\n nodeContainer.style.top = `${y}px`;\n nodeContainer.style.visibility = \"visible\";\n }\n }\n\n setRenderedNodes(renderedNodes);\n\n setRenderedEdges(graph.edges().map((e) => graph.edge(e) as RenderedEdge));\n\n // setNodePositions(positions);\n }, [graph, refRepository, renderId, nodePadding]);\n\n useEffect(() => {\n const { renderedLines, markers } = getRenderedLinesAndMarkers(\n renderedEdges,\n lines\n );\n setRenderedLines(renderedLines);\n setMarkers(markers);\n }, [lines, renderedEdges]);\n\n useEffect(() => {\n const root = rootRef.current;\n if (!root || disableKeyboardAction) {\n return;\n }\n const onKeydown = (event: KeyboardEvent) => {\n const action = handleKeyboard(event, {\n renderedNodes,\n renderedEdges,\n activeNodeId,\n });\n\n if (action?.action === \"delete-node\") {\n onNodeDelete?.(action.node);\n } else if (action?.action === \"switch-active-node\" && action.node) {\n onSwitchActiveNode?.(action.node.id);\n }\n };\n root.addEventListener(\"keydown\", onKeydown);\n return () => {\n root.removeEventListener(\"keydown\", onKeydown);\n };\n }, [\n activeNodeId,\n renderedNodes,\n renderedEdges,\n disableKeyboardAction,\n onSwitchActiveNode,\n onNodeDelete,\n ]);\n\n const handleNodesRendered = useCallback(\n (refRepository: RefRepository | null) => {\n if (refRepository) {\n setRenderId((previous) => previous + 1);\n setRefRepository(refRepository);\n }\n setNodesReady((previous) => previous || !!refRepository);\n },\n []\n );\n\n useEffect(() => {\n const root = rootRef.current;\n const dragger = draggerRef.current as Element;\n if (!root || !dragger) {\n return;\n }\n let moved = false;\n const zoomer = zoom()\n .scaleExtent([1, 1])\n .on(\"start\", () => {\n moved = false;\n setGrabbing(true);\n })\n .on(\"zoom\", (e) => {\n moved = true;\n setTransform(e.transform);\n })\n .on(\"end\", () => {\n setGrabbing(false);\n if (!moved) {\n onSwitchActiveNode?.(undefined);\n }\n });\n select(dragger).call(zoomer);\n\n select(root).on(\"wheel.zoom\", (e) => {\n e.stopPropagation();\n e.preventDefault();\n zoomer.translateBy(select(dragger), e.wheelDeltaX / 5, e.wheelDeltaY / 5);\n });\n }, [onSwitchActiveNode]);\n\n useEffect(() => {\n const root = rootRef.current;\n if (renderedNodes.length === 0 || !root || centered) {\n return;\n }\n setOffsets(\n getCenterOffsets(renderedNodes, [root.clientWidth, root.clientHeight])\n );\n setCentered(true);\n }, [centered, renderedNodes]);\n\n const markerPrefix = useMemo(() => `${uniqueId(\"diagram-line-arrow-\")}-`, []);\n\n if (layout !== \"dagre\") {\n return <div>{`Diagram layout not supported: \"${layout}\"`}</div>;\n }\n\n return (\n <div\n className={classNames(\"diagram\", { ready: nodesReady && centered })}\n tabIndex={-1}\n ref={rootRef}\n >\n <svg width=\"100%\" height=\"100%\" className=\"lines\">\n <defs>\n {markers.map(({ strokeColor }, index) => (\n <marker\n key={index}\n id={`${markerPrefix}${index}`}\n viewBox=\"0 0 6 6\"\n refX={3}\n refY={3}\n markerWidth={6}\n markerHeight={6}\n orient=\"auto\"\n >\n <path\n d=\"M 0.5 0.5 L 5.5 3 L 0.5 5.5 z\"\n stroke={strokeColor}\n strokeWidth={1}\n fill={strokeColor}\n />\n </marker>\n ))}\n </defs>\n <g\n transform={`translate(${offsets[0] + transform.x} ${\n offsets[1] + transform.y\n }) scale(${transform.k})`}\n >\n {renderedLines.map(({ points, line, markerIndex }, index) => (\n <path\n key={index}\n stroke={line.strokeColor}\n strokeWidth={line.strokeWidth}\n d={curveLine(points, line.arrow ? -5 : 0, line.curveType)}\n fill=\"none\"\n markerEnd={\n markerIndex === undefined\n ? undefined\n : `url(#${markerPrefix}${markerIndex})`\n }\n />\n ))}\n </g>\n </svg>\n <div className={classNames(\"dragger\", { grabbing })} ref={draggerRef} />\n <div\n className=\"nodes\"\n ref={nodesRef}\n style={{\n left: offsets[0] + transform.x,\n top: offsets[1] + transform.y,\n }}\n >\n <NodeComponentGroup\n nodes={nodes}\n nodeBricks={nodeBricks}\n // nodePositions={nodePositions}\n onRendered={handleNodesRendered}\n />\n </div>\n </div>\n );\n}\n","import { findIndex } from \"lodash\";\nimport type {\n LineConf,\n LineMarker,\n RenderedEdge,\n RenderedLine,\n} from \"../interfaces\";\nimport { matchEdgeByFilter } from \"./matchEdgeByFilter\";\nimport {\n DEFAULT_LINE_CURVE_TYPE,\n DEFAULT_LINE_STROKE_COLOR,\n DEFAULT_LINE_STROKE_WIDTH,\n} from \"../constants\";\n\nexport function getRenderedLinesAndMarkers(\n renderedEdges: RenderedEdge[],\n lines: LineConf[] | undefined\n) {\n const renderedLines: RenderedLine[] = [];\n const markers: LineMarker[] = [];\n for (const renderedEdge of renderedEdges) {\n const lineConf = lines?.find((line) =>\n matchEdgeByFilter(renderedEdge.data, line)\n );\n if (lineConf?.draw === false) {\n continue;\n }\n const line: RenderedLine[\"line\"] = Object.assign(\n {\n strokeColor: DEFAULT_LINE_STROKE_COLOR,\n strokeWidth: DEFAULT_LINE_STROKE_WIDTH,\n curveType: DEFAULT_LINE_CURVE_TYPE,\n },\n lineConf\n );\n\n let markerIndex: number | undefined;\n if (line.arrow) {\n const marker: LineMarker = {\n strokeColor: line.strokeColor,\n };\n markerIndex = findIndex(markers, marker);\n if (markerIndex === -1) {\n markerIndex = markers.push(marker) - 1;\n }\n }\n\n renderedLines.push({\n ...renderedEdge,\n line,\n markerIndex,\n });\n }\n return {\n renderedLines,\n markers,\n };\n}\n","import { checkIfByTransform } from \"@next-core/runtime\";\nimport type { DiagramEdge, LineConf } from \"../interfaces\";\n\nexport function matchEdgeByFilter(\n edge: DiagramEdge,\n filter: LineConf\n): boolean {\n if (!filter) {\n return false;\n }\n if (filter.edgeType) {\n return ([] as string[]).concat(filter.edgeType).includes(edge.type!);\n }\n return checkIfByTransform(filter, { edge });\n}\n","import type { RenderedNode } from \"../interfaces\";\n\nexport function getCenterOffsets(\n renderedNodes: RenderedNode[],\n [canvasWidth, canvasHeight]: [canvasWidth: number, canvasHeight: number]\n): [offsetX: number, offsetY: number] {\n let left = Infinity;\n let top = Infinity;\n let right = -Infinity;\n let bottom = -Infinity;\n for (const node of renderedNodes) {\n const hw = node.width / 2;\n const hh = node.height / 2;\n const l = node.x - hw;\n const r = node.x + hw;\n const t = node.y - hh;\n const b = node.y + hh;\n if (l < left) {\n left = l;\n }\n if (r > right) {\n right = r;\n }\n if (t < top) {\n top = t;\n }\n if (b > bottom) {\n bottom = b;\n }\n }\n\n const width = right - left;\n const height = bottom - top;\n\n return [(canvasWidth - width) / 2 - top, (canvasHeight - height) / 2 - left];\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.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}.ready{opacity:1}.dragger,\n.lines,\n.nodes{position:absolute;top:0;left:0}.node{position:absolute;visibility:hidden}.dragger{width:100%;height:100%;cursor:-webkit-grab;cursor:grab}.grabbing{cursor:-webkit-grabbing;cursor:grabbing}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n"],"names":["NodeComponentGroup","_ref","nodes","nodeBricks","onRendered","rendered","setRendered","useState","renderedIds","setRenderedIds","refRepository","useMemo","Map","handleRenderer","useCallback","id","element","set","previous","includes","concat","handleUnmount","index","indexOf","slice","delete","useEffect","some","node","React","map","key","className","NodeComponent","onUnmount","_ref2","useBrick","_findNodeBrick","find","item","nodeType","type","checkIfByTransform","findNodeBrick","memoizedData","setTimeout","refCallback","ignoredCallback","ReactUseBrick","data","curveLine","points","arrowOffset","curveType","Array","isArray","curveFactory","curveBasis","curveBumpX","curveBumpY","curveMonotoneX","curveMonotoneY","curveNatural","curveLinear","arrowOffsetX","arrowOffsetY","x","x0","y","y0","length","x1","y1","ratio","Math","sqrt","pow","transformPoints","line","d","curve","lineFunction","moveOnX","renderedNodes","activeNode","direction","diff","candidates","filter","abs","minBy","moveOnY","renderedEdges","from","to","_ref3","DEFAULT_LINE_STROKE_COLOR","DEFAULT_LINE_STROKE_WIDTH","DEFAULT_LINE_CURVE_TYPE","_EoDiagram","defineElement","property","event","createDecorators","_dec","styleTexts","styleText","_dec2","String","_dec3","attribute","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","Boolean","_dec10","_dec11","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_activeNodeChangeEvent","_handleActiveNodeChange","_J","_nodeDelete","_handleNodeDelete","_handleSwitchActiveNode","EoDiagram","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","get","_get_nodeDelete2","_set_nodeDelete2","_get_activeNodeChangeEvent2","_set_activeNodeChangeEvent2","writable","value","_initProto","_init_layout","_init_nodes","_init_edges","_init_nodeBricks","_init_lines","_init_layoutOptions","_init_activeNodeId","_init_disableKeyboardAction","_init_activeNodeChangeEvent","_classPrivateFieldGet","this","emit","_init_nodeDelete","activeNodeId","layout","v","_classPrivateFieldSet","edges","lines","layoutOptions","disableKeyboardAction","render","EoDiagramComponent","onActiveNodeChange","onSwitchActiveNode","onNodeDelete","_set_activeNodeChangeEvent","_get_activeNodeChangeEvent","_set_nodeDelete","_get_nodeDelete","_layoutOptions$nodePa","graph","setGraph","nodesReady","setNodesReady","renderId","setRenderId","setRefRepository","setRenderedNodes","setRenderedEdges","renderedLines","setRenderedLines","markers","setMarkers","draggerRef","useRef","grabbing","setGrabbing","transform","setTransform","k","rootRef","nodesRef","offsets","setOffsets","centered","setCentered","nodePadding","nextActiveNode","undefined","previousGraph","newGraph","dagre","Graph","ranksep","nodesep","rankdir","setDefaultEdgeLabel","previousNode","setNode","edge","setEdge","source","target","nodeCount","_element$offsetWidth","_element$offsetHeight","width","offsetWidth","height","offsetHeight","console","error","_refRepository$get","push","nodeContainer","parentElement","style","left","top","visibility","e","_loop","renderedEdge","lineConf","matchEdgeByFilter","edgeType","draw","markerIndex","Object","assign","strokeColor","strokeWidth","arrow","marker","findIndex","_objectSpread","getRenderedLinesAndMarkers","root","current","onKeydown","action","_node","keyCode","which","preventDefault","stopPropagation","handleKeyboard","addEventListener","removeEventListener","handleNodesRendered","dragger","moved","zoomer","zoom","scaleExtent","on","select","call","translateBy","wheelDeltaX","wheelDeltaY","canvasWidth","canvasHeight","Infinity","right","bottom","hw","hh","l","r","t","b","getCenterOffsets","clientWidth","clientHeight","markerPrefix","uniqueId","classNames","ready","tabIndex","ref","viewBox","refX","refY","markerWidth","markerHeight","orient","stroke","fill","markerEnd","_class","c","_initClass","_applyDecs","o","_","has","_checkInRHS","___CSS_LOADER_EXPORT___","module","toString"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_diagram=self.webpackChunk_next_bricks_diagram||[]).push([[9016],{4370:(e,t,a)=>{a.d(t,{n:()=>s});var n=a(8657),r=a.n(n),i=a(9494),o=a(3442);function s(e){var{nodes:t,nodeBricks:a,onRendered:i}=e,[o,s]=(0,n.useState)(!1),[l,u]=(0,n.useState)([]),c=(0,n.useMemo)((()=>new Map),[]),v=(0,n.useCallback)(((e,t)=>{t&&c.set(e,t),u((t=>t.includes(e)?t:t.concat(e)))}),[c]),h=(0,n.useCallback)((e=>{u((t=>{var a=t.indexOf(e);return-1===a?t:t.slice(0,a).concat(t.slice(a+1))})),c.delete(e)}),[c]);return(0,n.useEffect)((()=>{s(!(null!=t&&t.some((e=>!l.includes(e.id)))))}),[t,l]),(0,n.useEffect)((()=>{null==i||i(o?c:null)}),[c,o]),r().createElement(r().Fragment,null,null==t?void 0:t.map((e=>r().createElement("div",{key:e.id,className:"node"},r().createElement(d,{nodeBricks:a,node:e,onRendered:v,onUnmount:h})))))}function d(e){var{node:t,nodeBricks:a,onRendered:s,onUnmount:d}=e,l=(0,n.useMemo)((()=>{var e;return null===(e=(0,o.U)(t,a))||void 0===e?void 0:e.useBrick}),[t,a]),u=(0,n.useMemo)((()=>({node:t})),[t]);(0,n.useEffect)((()=>{l||setTimeout((()=>{null==s||s(t.id,null)}))}),[t.id,s,l]),(0,n.useEffect)((()=>()=>{null==d||d(t.id)}),[]);var c=(0,n.useCallback)((e=>{e&&setTimeout((()=>{null==s||s(t.id,e)}))}),[t.id,s]),v=(0,n.useCallback)((()=>{setTimeout((()=>{null==s||s(t.id,null)}))}),[t.id,s]);return l?r().createElement(i.ReactUseBrick,{refCallback:c,ignoredCallback:v,useBrick:l,data:u}):null}},5318:(e,t,a)=>{a.d(t,{IC:()=>n,_w:()=>r,no:()=>i});var n="var(--palette-gray-5)",r=1,i="curveBasis"},2715:(e,t,a)=>{a.r(t),a.d(t,{EoDiagram:()=>I,EoDiagramComponent:()=>Ee});var n,r,i,o,s,d,l,u,c,v,h,f,g,p,k,y,b,m,w,Z,E,x,M,N,B,W,C,S,I,A=a(3395),D=a(1815),T=a(381),R=a(687),L=a(5066),O=a(8657),_=a.n(O),K=a(5727),U=a(305),P=(a(2006),a(908)),z=a.n(P),X=a(1105),Y=a(7397),H=a(2779),j=a.n(H),q=a(4370),G=a(5807),F=a(5702),J=a(6365),Q=a(693),V=a(6436),$=a(1211),{defineElement:ee,property:te,event:ae}=(0,K.createDecorators)();r=ee("eo-diagram",{styleTexts:[V.Z]}),i=te({type:String}),s=te({attribute:!1}),l=te({attribute:!1}),c=te({attribute:!1}),h=te({attribute:!1}),g=te({attribute:!1}),k=te({type:String}),b=te({type:Boolean}),w=ae({type:"activeNode.change"}),M=ae({type:"node.delete"});var ne=new WeakMap,re=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakMap,de=new WeakMap,le=new WeakMap,ue=new WeakMap,ce=new WeakMap,ve=new WeakMap,he=new WeakMap,fe=new WeakMap,ge=new WeakMap,pe=new WeakMap,ke=new WeakMap;class ye extends U.ReactNextElement{constructor(){super(...arguments),(0,A.Z)(this,ge,{get:Ze,set:we}),(0,A.Z)(this,ve,{get:me,set:be}),(0,A.Z)(this,ne,{writable:!0,value:(C(this),o(this))}),(0,A.Z)(this,re,{writable:!0,value:d(this)}),(0,A.Z)(this,ie,{writable:!0,value:u(this)}),(0,A.Z)(this,oe,{writable:!0,value:v(this)}),(0,A.Z)(this,se,{writable:!0,value:f(this)}),(0,A.Z)(this,de,{writable:!0,value:p(this)}),(0,A.Z)(this,le,{writable:!0,value:y(this)}),(0,A.Z)(this,ue,{writable:!0,value:m(this)}),(0,A.Z)(this,ce,{writable:!0,value:Z(this)}),(0,A.Z)(this,he,{writable:!0,value:e=>{(0,R.Z)(this,ve).emit(e)}}),(0,A.Z)(this,fe,{writable:!0,value:N(this)}),(0,A.Z)(this,pe,{writable:!0,value:e=>{(0,R.Z)(this,ge).emit(e)}}),(0,A.Z)(this,ke,{writable:!0,value:e=>{this.activeNodeId=e}})}get layout(){return(0,R.Z)(this,ne)}set layout(e){(0,T.Z)(this,ne,e)}get nodes(){return(0,R.Z)(this,re)}set nodes(e){(0,T.Z)(this,re,e)}get edges(){return(0,R.Z)(this,ie)}set edges(e){(0,T.Z)(this,ie,e)}get nodeBricks(){return(0,R.Z)(this,oe)}set nodeBricks(e){(0,T.Z)(this,oe,e)}get lines(){return(0,R.Z)(this,se)}set lines(e){(0,T.Z)(this,se,e)}get layoutOptions(){return(0,R.Z)(this,de)}set layoutOptions(e){(0,T.Z)(this,de,e)}get activeNodeId(){return(0,R.Z)(this,le)}set activeNodeId(e){(0,T.Z)(this,le,e)}get disableKeyboardAction(){return(0,R.Z)(this,ue)}set disableKeyboardAction(e){(0,T.Z)(this,ue,e)}render(){return _().createElement(Ee,{layout:this.layout,nodes:this.nodes,edges:this.edges,nodeBricks:this.nodeBricks,lines:this.lines,layoutOptions:this.layoutOptions,activeNodeId:this.activeNodeId,disableKeyboardAction:this.disableKeyboardAction,onActiveNodeChange:(0,R.Z)(this,he),onSwitchActiveNode:(0,R.Z)(this,ke),onNodeDelete:(0,R.Z)(this,pe)})}}function be(e){x(this,e)}function me(){return E(this)}function we(e){W(this,e)}function Ze(){return B(this)}function Ee(e){var t,{layout:a,nodes:n,edges:r,nodeBricks:i,lines:o,layoutOptions:s,activeNodeId:d,disableKeyboardAction:l,onActiveNodeChange:u,onSwitchActiveNode:c,onNodeDelete:v}=e,[h,f]=(0,O.useState)(null),[g,p]=(0,O.useState)(!1),[k,y]=(0,O.useState)(0),[b,m]=(0,O.useState)(null),[w,Z]=(0,O.useState)([]),[E,x]=(0,O.useState)([]),[M,N]=(0,O.useState)([]),[B,W]=(0,O.useState)([]),C=(0,O.useRef)(null),[S,I]=(0,O.useState)(!1),[A,D]=(0,O.useState)({k:1,x:0,y:0}),T=(0,O.useRef)(null),R=(0,O.useRef)(null),[L,K]=(0,O.useState)([0,0]),[U,P]=(0,O.useState)(!1),H=null!==(t=null==s?void 0:s.nodePadding)&&void 0!==t?t:0;(0,O.useEffect)((()=>{var e=d?null==n?void 0:n.find((e=>e.id===d)):void 0;null==u||u(e)}),[n,d,u]),(0,O.useEffect)((()=>{f((e=>{var t=new(z().graphlib.Graph);for(var a of(t.setGraph({ranksep:50,nodesep:20,rankdir:"TB"}),t.setDefaultEdgeLabel((function(){return{}})),null!=n?n:[])){var i=null==e?void 0:e.node(a.id);t.setNode(a.id,(null==i?void 0:i.data)===a?i:{id:a.id,data:a})}for(var o of null!=r?r:[])t.setEdge(o.source,o.target,{data:o});return t}))}),[r,n]),(0,O.useEffect)((()=>{if(h&&b&&0!==h.nodeCount()){for(var e of h.nodes()){var t,a,n=h.node(e);if(n){var r=b.get(e);n.width=(null!==(t=null==r?void 0:r.offsetWidth)&&void 0!==t?t:10)+2*H,n.height=(null!==(a=null==r?void 0:r.offsetHeight)&&void 0!==a?a:10)+2*H}else console.error("Diagram node not found: %s",e)}z().layout(h);var i=[];for(var o of h.nodes()){var s,d=h.node(o);if(d){i.push(d);var l=d.x-d.width/2+H,u=d.y-d.height/2+H,c=null===(s=b.get(o))||void 0===s?void 0:s.parentElement;c&&(c.style.left="".concat(l,"px"),c.style.top="".concat(u,"px"),c.style.visibility="visible")}}Z(i),x(h.edges().map((e=>h.edge(e))))}}),[h,b,k,H]),(0,O.useEffect)((()=>{var{renderedLines:e,markers:t}=(0,Q.b)(E,o);N(e),W(t)}),[o,E]),(0,O.useEffect)((()=>{var e=T.current;if(e&&!l){var t=e=>{var t=(0,F.p)(e,{renderedNodes:w,renderedEdges:E,activeNodeId:d});"delete-node"===(null==t?void 0:t.action)?null==v||v(t.node):"switch-active-node"===(null==t?void 0:t.action)&&t.node&&(null==c||c(t.node.id))};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}}),[d,w,E,l,c,v]);var V=(0,O.useCallback)((e=>{e&&(y((e=>e+1)),m(e)),p((t=>t||!!e))}),[]);(0,O.useEffect)((()=>{var e=T.current,t=C.current;if(e&&t){var a=!1,n=(0,Y.sP)().scaleExtent([1,1]).on("start",(()=>{a=!1,I(!0)})).on("zoom",(e=>{a=!0,D(e.transform)})).on("end",(()=>{I(!1),a||null==c||c(void 0)}));(0,X.Z)(t).call(n),(0,X.Z)(e).on("wheel.zoom",(e=>{e.stopPropagation(),e.preventDefault(),n.translateBy((0,X.Z)(t),e.wheelDeltaX/5,e.wheelDeltaY/5)}))}}),[c]),(0,O.useEffect)((()=>{var e=T.current;0!==w.length&&e&&!U&&(K((0,J.i)(w,[e.clientWidth,e.clientHeight])),P(!0))}),[U,w]);var ee=(0,O.useMemo)((()=>"".concat((0,$.uniqueId)("diagram-line-arrow-"),"-")),[]);return"dagre"!==a?_().createElement("div",null,'Diagram layout not supported: "'.concat(a,'"')):_().createElement("div",{className:j()("diagram",{ready:g&&U}),tabIndex:-1,ref:T},_().createElement("svg",{width:"100%",height:"100%",className:"lines"},_().createElement("defs",null,B.map(((e,t)=>{var{strokeColor:a}=e;return _().createElement("marker",{key:t,id:"".concat(ee).concat(t),viewBox:"0 0 6 6",refX:3,refY:3,markerWidth:6,markerHeight:6,orient:"auto"},_().createElement("path",{d:"M 0.5 0.5 L 5.5 3 L 0.5 5.5 z",stroke:a,strokeWidth:1,fill:a}))}))),_().createElement("g",{transform:"translate(".concat(L[0]+A.x," ").concat(L[1]+A.y,") scale(").concat(A.k,")")},M.map(((e,t)=>{var{points:a,line:n,markerIndex:r}=e;return _().createElement("path",{key:t,stroke:n.strokeColor,strokeWidth:n.strokeWidth,d:(0,G.M)(a,n.arrow?-5:0,n.curveType),fill:"none",markerEnd:void 0===r?void 0:"url(#".concat(ee).concat(r,")")})})))),_().createElement("div",{className:j()("dragger",{grabbing:S}),ref:C}),_().createElement("div",{className:"nodes",ref:R,style:{left:L[0]+A.x,top:L[1]+A.y}},_().createElement(q.n,{nodes:n,nodeBricks:i,onRendered:V})))}S=ye,({e:[o,d,u,v,f,p,y,m,Z,E,x,N,B,W,C],c:[I,n]}=(0,L.Z)(S,[[i,1,"layout"],[s,1,"nodes"],[l,1,"edges"],[c,1,"nodeBricks"],[h,1,"lines"],[g,1,"layoutOptions"],[k,1,"activeNodeId"],[b,1,"disableKeyboardAction"],[w,1,"activeNodeChangeEvent",e=>(0,R.Z)(e,ce),(e,t)=>(0,T.Z)(e,ce,t)],[M,1,"nodeDelete",e=>(0,R.Z)(e,fe),(e,t)=>(0,T.Z)(e,fe,t)]],[r],0,(e=>ke.has((0,D.Z)(e))),U.ReactNextElement)),n()},5807:(e,t,a)=>{a.d(t,{M:()=>l});var n=a(3698),r=a(1479),i=a(6481),o=a(9389),s=a(8282),d=a(5004);function l(e,t,a){if(!Array.isArray(e))return"";var l;switch(a){case"curveBasis":l=n.ZP;break;case"curveBumpX":l=r.sj;break;case"curveBumpY":l=r.BW;break;case"curveMonotoneX":l=i.Z;break;case"curveMonotoneY":l=i.s;break;case"curveNatural":l=o.Z;break;default:l=s.Z}var u=0,c=0;if(t){var{x:v,y:h}=e[e.length-2],{x:f,y:g}=e[e.length-1],p=t/Math.sqrt(Math.pow(f-v,2)+Math.pow(g-h,2));u=(v-f)*p,c=(h-g)*p}var k=e;return(0,d.Z)().x(((t,a)=>t.x-(a===e.length-1?u:0))).y(((t,a)=>t.y-(a===e.length-1?c:0))).curve(l)(k)}},3442:(e,t,a)=>{a.d(t,{U:()=>r});var n=a(9464);function r(e,t){return null==t?void 0:t.find((t=>t.nodeType?[].concat(t.nodeType).includes(e.type):(0,n.checkIfByTransform)(t,{node:e})))}},6365:(e,t,a)=>{function n(e,t){var[a,n]=t,r=1/0,i=1/0,o=-1/0,s=-1/0;for(var d of e){var l=d.width/2,u=d.height/2,c=d.x-l,v=d.x+l,h=d.y-u,f=d.y+u;c<r&&(r=c),v>o&&(o=v),h<i&&(i=h),f>s&&(s=f)}return[(a-(o-r))/2-i,(n-(s-i))/2-r]}a.d(t,{i:()=>n})},693:(e,t,a)=>{a.d(t,{b:()=>s});var n=a(3028),r=a(1211),i=a(5093),o=a(5318);function s(e,t){var a=[],s=[],d=function(e){var d=null==t?void 0:t.find((t=>(0,i.o)(e.data,t)));if(!1===(null==d?void 0:d.draw))return 1;var l,u=Object.assign({strokeColor:o.IC,strokeWidth:o._w,curveType:o.no},d);if(u.arrow){var c={strokeColor:u.strokeColor};-1===(l=(0,r.findIndex)(s,c))&&(l=s.push(c)-1)}a.push((0,n.Z)((0,n.Z)({},e),{},{line:u,markerIndex:l}))};for(var l of e)d(l);return{renderedLines:a,markers:s}}},5702:(e,t,a)=>{a.d(t,{p:()=>r});var n=a(1211);function r(e,t){var{renderedNodes:a,renderedEdges:n,activeNodeId:r}=t,s=r?a.find((e=>e.id===r)):void 0;if(s){var d,l,u;switch(e.key||e.keyCode||e.which){case"ArrowLeft":case 37:l=i(a,s,-1),d="switch-active-node";break;case"ArrowUp":case 38:l=o(a,n,s,-1),d="switch-active-node";break;case"ArrowRight":case 39:l=i(a,s,1),d="switch-active-node";break;case"ArrowDown":case 40:l=o(a,n,s,1),d="switch-active-node";break;case"Backspace":case 8:case"Delete":case 46:d="delete-node",l=s}if(d)return e.preventDefault(),e.stopPropagation(),{action:d,node:null===(u=l)||void 0===u?void 0:u.data}}}function i(e,t,a){var r,i=e.filter((e=>e!==t&&(r=(e.x-t.x)*a)>0&&r>Math.abs(t.y-e.y)));return(0,n.minBy)(i,(e=>(t.y-e.y)**2+(t.x-e.x)**2))}function o(e,t,a,r){var i=1===r?"source":"target",o=1===r?"target":"source",s=t.filter((e=>{var{data:t}=e;return t[i]===a.id&&t[o]!==a.id})).map((t=>{var{data:a}=t;return e.find((e=>e.id===a[o]))})).filter((e=>e&&(e.y-a.y)*r>0));return(0,n.minBy)(s,(e=>(a.y-e.y)**2+(a.x-e.x)**2))}},5093:(e,t,a)=>{a.d(t,{o:()=>r});var n=a(9464);function r(e,t){return!!t&&(t.edgeType?[].concat(t.edgeType).includes(e.type):(0,n.checkIfByTransform)(t,{edge:e}))}},6436:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(9601),r=a.n(n),i=a(2609),o=a.n(i)()(r());o.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}.ready{opacity:1}.dragger,\n.lines,\n.nodes{position:absolute;top:0;left:0}.node{position:absolute;visibility:hidden}.dragger{width:100%;height:100%;cursor:-webkit-grab;cursor:grab}.grabbing{cursor:-webkit-grabbing;cursor:grabbing}",""]);const s=o.toString()}}]);
2
- //# sourceMappingURL=eo-diagram.eecac144.js.map