jch-config-editor 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Canvas/SiblingGroupPanel.d.ts +13 -0
- package/dist/components/Canvas/SiblingGroupPanel.d.ts.map +1 -0
- package/dist/components/Canvas/index.d.ts.map +1 -1
- package/dist/config-editor.es.js +5285 -5111
- package/dist/config-editor.umd.js +7 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/store/editorStore.d.ts +28 -1
- package/dist/store/editorStore.d.ts.map +1 -1
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
(function(Be,l){const L=_0x2299,z=Be();for(;;)try{if(parseInt(L(1696))/1+-parseInt(L(1430))/2*(-parseInt(L(1621))/3)+-parseInt(L(940))/4+-parseInt(L(1506))/5+-parseInt(L(1514))/6*(-parseInt(L(836))/7)+parseInt(L(758))/8+-parseInt(L(1651))/9===l)break;z.push(z.shift())}catch{z.push(z.shift())}})(_0x2cf8,151671),(function(Be,l){const L=_0x2299;typeof exports===L(2151)&&typeof module!==L(1906)?l(exports,require(L(2020)),require(L(761)),require("antd"),require(L(1639)),require("zustand"),require(L(1728)),require(L(2016)),require(L(785)),require(L(1654))):typeof define===L(404)&&define.amd?define([L(1954),L(2020),L(761),"antd",L(1639),L(1589),L(1728),"nanoid","react-zoom-pan-pinch",L(1654)],l):(Be=typeof globalThis!==L(1906)?globalThis:Be||self,l(Be[L(1764)]={},Be[L(2140)],Be[L(1755)],Be[L(1467)],Be[L(417)],Be[L(1589)],Be[L(1728)],Be.nanoid,Be[L(750)]))})(this,function(Be,l,L,z,de,C0,lx,ze,dx){"use strict";function _0x2cf8(){const Be=["yM9YzgvYuMfKAxvZ","BM9Kzvr5CgvZ","DhjPz2DLCK5Vzgu","CMLNAhq","A2vLCefZCgvJDfjHDgLV","y2fUy2vS","C2nOzwr1BgvY","Dw5KzwzPBMvK","zxjYB3iWmdK","6k6+5Ash5zU+5Qch","5lIl5lIa5Q2L","vxbSB2fKignHBMnLBgXLzcbVCIbMywLSzwq6","BgfIzwXtAg93qMC","C2XPy2u","C2v0uhjVCgvYDhK","twf0zxjPywXqyw5LBa","D2LKDgG","yM9YzgvYlxqGyM9YzgvYlwDYyxKTmJaWig10lteGChqTmq","5zYg6kEs55+P5B2I","ywrKrxzLBNrmAxn0zw5LCG","tK9erv9truXfq1q","zw5KC1DPDgG","C2fTCgXLsNnVBG","wM9VBsbjBG","lNjLywn0lwzSB3DFx3bHBMu","CMvHy3qTzMXVD19FzwrNzxvWzgf0zxi","Aw5PDev2zw50","yMfZAwm","qxjYB3C","CMvWzwf0kdGSidfMCIK","C2TLD1G","iZHJogm4yW","5y+n6ycj5B2t6Ag1","DMvYDgLJywW","Cc02","q29UC3vTzxi","C3jJ","mdaZ","C2nHBgvcEq","6ycj5OUP5OIw5yIB5BU65lQl5lU25Rwb","C3bSAxq","576K57UexW","tufurvjjquXFu1rbvfvtx0niqu5hrq","BMv3wq","z2v0vMfSDwvgCM9Tugf0Aa","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iInMywfKmtqIihj4psiYmciVpJWVC3zNpG","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","yxjPyvjVBgu","zgvMyxvSDfj1BNrPBwviyw5KBgvYCW","mdeY","lNjLywn0lwzSB3C","57Yw6l6roIa","ru1qvfK","Bw91C2vvCa","zgvSzxrL","zxHWB3j0CW","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","Bwf0CML4vhjHBNnMB3jT","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","6iQc54k5ieLeoIa","CMvTB3zLqxr0CMLIDxrLtLm","D2fYBMLUzW","y29TCg9ZzwrqyxrO","C3vIAMvJDa","zg9TtM9Kzq","lY8G5PsV5OYb5A+56lgH5OIw5PwW57Ue5Qc85BYpcI8ViowVUEIXOEAGVow8J++8MGP7cIaGiNnWzwvKiJOGmcWkicaIDgvTCci6idi1laOGicjUzxn0zwqIoIb7icj4iJOGmsb9cN0kcI8VioAvSoE7HoAGVow8J++8IoAVJ+MHUEMCGowmHEwqQYbUyw1LiowTL+AUTEEuQos6JUMaIEAlQE+8IE+8MGPBcIaGEYaIBMfTzsi6iclMTyVNGRKXiIWGiNzHBhvLiJOGmtaWlcaIDw5PDci6icjTBsiGFsWkicb7icjUyw1LiJOGiUA1I+EcUtiIlcaIDMfSDwuIoIaYmdaSicj1BML0iJOGiM1TiIb9cL0","DhjHBNnSyxrLrxH0zw50","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","ie0Wia","rxLLt3v0BgLUzwq","q29SBgfWC2u","y3jLyxrLrgvMyxvSDe5Vzgu","y29UBMvJDgLVBLjHzgL1CW","zxzLBNrcBg9JAW","BgLNAhq","DxnLq2fSBgjHy2S","DMfSDwvZ","su1br0u","C2LTCgXLyMv6AwvY","mI4WlJa","jhTSywjLBh3MNidLSjeKE21PBN3KUkRLRzFNRky","tg9VC2u","BgLMDa","x2LK","CxvLCNLtzwXLy3rVCKfSBa","mNb4ihnVBgLKicmXodKWzMy","iZu5ntK1oq","zxjYB3iWmtu","y3vZDg9T","rgf0yvbVB2XnB2rHBa","CMDIysG","C3r5BguU","y29UBMvJDgLVBKXVB2T1Ca","5PAW5BU65lQl5lU25Rwb","x2v4zwn1Dgu","5P2Hl+MHTq","Dg9gAxHLza","zMLYC3rdAgLSza","EvnUyxbWzwq","DxnLCLnWywnLt25vC2u","CMvHy3qTzMXVD19FyMfJA2DYB3vUza","C3vIC2nYAwjL","Dgv4DgfYzwe","qxjYB3DeB3DUt3v0BgLUzwq","y29Z","C3LUyW","5ywL5y+c5zcn56EW77Yi5OYj6l+E57Q/6Ag65BQp77Yj","5lIn5zcm5PA55BYp5A+55BQu5lIl5PA55lIn5zcm6ywn572U6Ag5","i2zHogmXnG","C2vJB25Kyxj5","AhjLzG","5PQc5PEG5PwW5O2U6zUg77Ym6k+35OMt5BYa44cm5PwW5O2U5RgG44cn5RE75yQG","y29UzMLN","CMvHy3qTzMXVD19FBM9Kzq","5OUw5OU95PEl6l2S","B3DUzxjeB2n1BwvUDa","5PwW57UeicG","BMfUB2LK","yMfJA2DYB3vUzeLTywDL","AxnbCNjHEq","zgvSDgfz","CMvHy3qVANn4lxj1BNrPBwu","zhjVCevMzMvJDa","C2fTCgXL","DhjHBNnSyxrLwa","C2nHBgvz","y29UBMvJDe9Uq2XPy2S","Dg9W","ksbZy2fSzsG","C3bHy2uTEs0Z","mdeZ","CMvSzwfZzuXVy2S","C3CTCMvZAxPL","u2nOzwr1BgvKigfJDgLVBIb0AhjLDYbMywXZEsbLCNjVCG","CMvHy3qTzMXVD19Fy29UDhjVBhm","6k+36ycj5OUP5A2J5BQM","AgvPz2H0","yxrHBG","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihCTzNvSBcbWCI00","zgvMCW","y2XPy2TeAxn0yw5Jzq","uMvHy3qGrMXVDW","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/77Ym5l+D5OYb6zw/5BQM","ywjZB2X1DguGDY0ZigGTmYbIzY1IBhvLltuWmcbIB3jKzxiTmIbIB3jKzxiTD2HPDguGCM91BMrLzc1MDwXSign1CNnVCI1TB3zLihOTnta","5BEY56Ab55sO","Bw91C2vKB3DUlMrYywC","B25oB2rLq29UDgv4De1LBNu","y29UBMvJDgfIBgu","Dg9izxHtDhjPBMC","Dg9VigXHDgu7igfSCMvHzhKGC2nOzwr1BgvK","rg93BMXVywrpDxrSAw5Lza","yM91BMreyxrHC2v0qMLUzenVzgu","ChjPBwfYEq","5yc85PAh5PYS","DhjPBq","rNvSBa","6l6t5ywL54Q25Ocb5zcn56EW","y2fSBgjHy2S","AwnVBG","5y2v5l2n77Yi5AAcWRbd44cbjEoaGu1qyEETIE+8Iq","5PwW5O2U6zUg","CMv0DxjUihrYDwu7","yMfZzwXPBMu","5PAh5PYS5Qch562+","zwXLDMf0zu5VzgvZt25tzwXLy3q","BxqTncbMBgv4igP1C3rPzNKTzw5K","5PEG5zU+54Mh","BgLZDc1UB25LihnWywnLlxKTmIbTltaGCc0W","Cg9PBNrLCI1LDMvUDhmTyxv0BW","q29UDhjVBcbqyw5LBa","6ycj5OUP5BM05lUJ","Dg9tDhjPBMDuywC","6ycj5OUP57Q/5P2H5Qc35BYp","C3rHDgu","CMvZAxPPBMC","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","5PYQ55+L55s75BId","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","zwfJAa","5lQl5lU25z2x5PYQ6ywn572Uigv4DgvYBMfSsgfUzgXLCKTLEq","y2fUy2vSq29UBMvJDgLVBG","zxzLBNrcBg9JA3m","DxnLCKfNzw50","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","Bw91C2v1Cc56B29T","5zU+54Mh5zYW5z2aicHZCMmP","6iEQ5A6A5lMj57Ue5lU2","5A2x5Q616AQm6k+b6zsz6k+VjhTSywjLBh0","zw50CMLLCW","ANn4CW","z2vVBwv0CMLJuhjLy2LZAw9U","C21VB3rOC3rLCa","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","AxndB250zw50rwrPDgfIBgu","zg9Tqxr0CMLIDxrLCW","AgLKzgvU","y29UDgfPBNm","Aw5PDgLHBfDPzhrO","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","vgLTzw91DevYCM9Y","y2HPBgrYzw4","5BYa5AEl5PEL5PYF","mda5","DhjHBNnMB3jTu3rHDgu","zxzLBNrcBg9JA0LK","C3rYB25N","zg9JDw1LBNq","B3jPz2LUywXfDMvUDa","C3vWChjLC3nLza","y2XVC2vZDa","6k+35ywi57Ur5A6A5PwW5O2U6zUg","BM9Kzxm","qwXPz25mzwz0t3v0BgLUzwq","5PEl6l2S6kEs5BQM","5A+85yE65B2t5yMn55s75BId","zgvSDgfy","q29UDhjVBhm","z2v0vMLLD3bVCNq","yMCTD2HPDguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWihjVDw5KzwqTBgCGCc0Zig1PBI13lvSXodbWEf0GC2HHzg93lw1K","57ky6ls0iePtt04G5yAf5A6577YA","zwrNzuLUzgv4","tw92zwqGC2vSzwn0zwqGBM9Kzsa","BM9Kzuv4DgvUDa","twLUAu1HCa","Dg9ju09tDhjPBMC","y3vYCMvUDfrHCMDLDa","Dw5ZAgLMDa","u2LTCgXLqMv6AwvYrwrNzuLUDgvYBMfS","5yIG6zMK5zco5PEG5Rov5OgI5Asn77Ym5PIV5zcM57UN57UT77YF","6l+u5zUE5lUk5AsP","Aw5KzxHpzG","55s75BId566H55cg","zwrNzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","y2XHC3m","z2v0u25HChnOB3q","zwrPDa","DxnLq29UDgv4Da","zM9UDfDLAwDODa","DY04igGTmc41igjNlwDYyxKTndaW","5y+c5PwW5zcn77Ym5AAciee","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","ANn4uNvUDgLTzq","Bwf0y2HLCW","Dg9qB3nPDgLVBG","BwiTmW","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","rg90CW","6ycj5OUP5PAW54MP5PAz","y2XPzw50sgvPz2H0","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","z2v0qxr0CMLIDxrL","BMv3","B2jQzwn0","C2HPzNrlzxK","AxrLCMf0B3i","DY00igGTncb0zxH0lwjSDwuTnJaWigjVCMrLCI1NCMf5ltmWmcbYB3vUzgvKigzVy3vZoNjPBMCTyMX1zs01mda","5y+V6lcd5Pw05AsN5Bcp","xNjNyMfCka","CMvZB2X2zuzSB3DfDMvUDejSB2nR","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","DhjHBNnSyxrLwcGTntaLkq","57Uy5yI25lIT","57Ui54k5ifG","DxjSkcCJ","CMvHy3qTzMXVD19FCMvZAxPLlwnVBNrYB2W","57Yw6l6r5lQl5lU25z2x","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMuGB3zLCMzSB3CTAgLKzgvU","5lIl5lIa5BM0icHdB250CM9S6zsU5yQG5y+Z5PA55zcr6zsUkq","C291CMnLrxzLBNq","Dgv4Dc1NCMf5ltyWmcbTDc0WlJu","yMvMB3jLC3rHCNq","DgfYz2v0","Aw50zxjHy3rPB25xAwr0Aa","5PAh5lU25Qc85BYp6zsz6k+V","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","C2v0rMLLBgrZvMfSDwu","zgfYAW","Bw91C2vTB3zLlMrYywCGBw91C2v1Cc5KCMfN","5OMN6kgm6kgO6l6+5BYp","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","rgvSzxrL","5PwW5O2U6k+35Rgc","AxnwywXPza","CMvHy3qTzMXVD19FyMfJA2DYB3vUzc1Wyxr0zxjU","5OUw5OU96lcd5Pw06lw354k5","Dg91y2HZDgfYDa","6ycj5OUP5PwW5O2U6zUg","CMvHy3qTzMXVD19FzwrNzxm","z2v0uM9VDe5Vzgu","5A2x5l2t5AsN5Bcp","CMvZAxPL","57Ur5A6A5PwW5O2U6zUg","zgfZAc1KB3q","6BUy6k6K6Ag555UU","EM9VBq","qxjYB3DeB3DU","BM9Kzuv2zw50qMLUzgLUz3m","z2v0rwrNzuLK","y2HHBMDL","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","x19WCM90B19F","572U5lQo6Ag25Bgc","wvLzwEw5Ta","B25fzgDLC0nOyw5Nzq","C291CMnLsgfUzgXL","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","yMfZzvzHBa","vMvYDgLJywXbBgLNBKjVDhrVBu91DgXPBMvK","zNv0DxjL","uhjVBwLZzq","w2nVBNrLBNrLzgL0ywjSzt0IDhj1zsjD","u2vSzwn0","ChvYCgXL","B3bLBG","Dw5IAw5KqwXSrM9YtM9Kzq","5Qgg6ycj5QIH5BYp","Cgf0DgvYBI0","CgfYDgLHBe9IC2vYDMvY","CM91BMq","zw1PDa","zNjVBu5Vzgu","ugXLyxnLihvZzsbGz2v0tM9KzxncB3vUzhnGigzYB20GyhvZzvjLywn0rMXVD2aVyhvZzvn2zwX0zuzSB3DGigHVB2SGDg8Gzw5ZDxjLignVCNjLy3qGDMfSDwvZigzVCIbZDwiGzMXVD3mUieLMig5VDcbWB3nZAwjSzsWGEw91igHHDMuGDg8GChjVDMLKzsbHig5VzgvmB29RDxaGDg8GC3vWCg9YDcbZDwiGzMXVD3mU","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","5lQl5lU25z2x5PYQ6ywn572UigrHDgfszxf1zxn0s2v5","y3rYBeTLEq","zM9JDxm","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","55s754k557Q/","BgvUz3rO","u2LTCgXLqMv6AwvYrwrNzq","zNvUy3rPB24","zxjYB3iWmdi","zxjYB3iWmdu","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","zxHLy3v0B3juExbL","zhjHz0HHBMrSzq","tK9erv9eruXfveu","Dgv4Dc1ZBq","C2L6zq","6iQc54k55zcn56EW","zg91yMXLq2XPy2S","5B+R6ycF5A+56B2q","AwnVBNm","5BYa5AEl5A2J5BQM","zxzLBM9Kza","mda1","5OM+5lIn5yIW5lQl5lU25z2x","yxbWzw5Kq2HPBgq","x2vYCM9Y","Dg91y2G","55+L6ygt5lQg","DxnLv2f0y2G","zgLZywjSzwq","CMvTB3zLq2HPBgq","CMvHy3qTzMXVD19FBwLUAw1HCc1KzxnJ","y29UzMLNrwrPDg9Y","yxjNCW","rM9YBq","Dgv4Dc1SzYbMB250lw1LzgL1Bq","zM9UDc1TzwrPDw0GDgv4Dc1HBwjLCI05ntaGBwiTmG","zw50zxi","6ycj5OUP5PwW5O2U5A2x5Q61","qxjYB3DsAwDODa","zMLUza","zgf0ys4","Dgv4Dc1ZBsb0zxH0lwDYyxKTnZaW","AwrLBNrPzMLLCG","q2XHC3mGzxH0zw5KCYb2ywX1zsa","CMvUzgvY","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWidGGmca0lJu3msaZlJqYosa0lJu3msa3lJyXoxyZlJa0oeGZlJa0oeeZlJa1nIaZlJa1nIaWidaWmcaXmY43mtr2mtuUmJm4qtmUmdu2idmUmdu2idaGmdaZlJa0ocaZmMGXoc4YodvHmY4WntyGmY4WntyGmcaWmdmUmdq4ltmUmdq4vJeZlJCXngeZlJa1nIaZlJa1nIaWidaWltmUmdq4ltmUmdq3EK0XmI4XosaYnc41mZnHmY4WntyGmY4WntyGmcaWms0ZlJa0nY0ZlJa0nYaZlJa1nIaZlJa1nIaWidaXmY4WndCTmY4WndGGmY4WntyGmY4WntyGmcaWmtmUmdq4idmUmdq4idmUmdu2idmUmdu2idaGmdeTmY4WndGGmY4WndD6BtqUnZi0lteZlJG2nKG3lJq2n1y3lJyXowmWltiUntKGmI4XmZmTnc43mJqGnc43mJmTnc43mJqGmI41oteGmca0lJCYncaYlJeZmYa0lJCYnca0lJCYnhyZlJa0ohO","x3bHCMvUDgfNzq","zgvMyxvSDe5VzgvZ","zgvJAw1HBhm","57YP5Ps+5Q+u5l6l","BgLI","Bw92zq","BgfIzwXcz1n0EwXL","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","6zw/5yIslEwpJoEcUEs6PoABVW","ANn4","zwrNzuXVB2T1Ca","54k55yE75y2h5BQp","vMvYDgLJywW","5zcr5yMniduG6Ag1","B3bZ","x2zPBMfSAxPLCNm","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","ChGP","BM9Kzvf1zxvL","vg9VBhrPCa","57Uy5yI25QIH5BYp","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","CgfKzgLUzW","C2vSzwn0zwroB2rLCW","y29TBw9Utg9JywXL","yxjPyuXHyMvSq29UzMLN","AgfZqxr0CMLIDxrL","cIaGicaGicaG","DxnLqMf0y2HdB250zxH0ig11C3qGyMuGDxnLzcb3AxrOAw4GysbcyxrJAfbYB3zPzgvY","BM9Kzs5Hmtf5rgvZy3jPChrPB24UyxjPyuXPDMvnzxnZywDL","5l+D55wz5Bcp5PwW5l2n","zM9UDc1TB25VihrLEhqTC20","5yAf572U5yQO5l2C5PYQ6ycj5OUP57g75z6l","zgvMyxvSDevKz2vZ","yw55","y2fUDMfZq29UzMLN","BwLUAw1HCc5HCMLHtgfIzwW","yMLUze5Vzgvjza","zxzLBNrcDxm","zxH0zxjUywW","yxv0B1bHBK9Uq29UBMvJDa","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc94BwXUCY8","B3zLCMzSB3CTAgLKzgvU","C2v0vhjHBNnSyxrLrxH0zw50","rg93BLnXDwfYzu91DgXPBMvK","CMvWBgfJzq","B25oB2rLrhjHz1n0B3a","y2fSBgjHy2SGAxmGBM90igeGzNvUy3rPB24","AxnAB29TAw5Nt3jqyw5UAw5N","5yAf6l656lED","5PwW5yc85Qc85BYp5yYw5PE25l+D55wz55Qe5Bcp5PwW5l2n5PwW77YmlthOOAJNPlRKUi3MOlZLVi/LJjy","B3bHy2L0Eq","BM9KzunSAwnRrgLZDgfUy2u","CMvHy3qTzMXVD19FDMLLD3bVCNqGEhLMBg93x192Awv3Cg9YDcbYzwfJDc1MBg93x19JB250ywLUzxi","5PkK6zsaicHdDhjSk1OP","BM9YBwfSu3r5Bgu","CMvJB25Uzwn0ywjSzq","6l6t5ywL6iQc54k55zcn56EW","DxnLrgvIDwDwywX1zq","lMrYywC","y29UDgv4Dg1LBNu","BM9Wyw4","B25tzwXLy3rPB25eCMfN","ywn0sw5ZAwrLsw5WDxrxAxrOtw9KAwzPzxi","Bw91C2u","Dg9WlwXLzNq","CMvHy3qTzMXVD19Fy29UBMvJDgLVBI1WyxrO","57Ur5A6A5A2x5Q61","yMLUza","ufjfu0vovevex0LnquDfx1njtvbmrq","zxHWyw5Kzwrszwn0","6l+u5zUE5yIx6kgO","5RE75yQG5lQl5lU25Rwb","C3rYAwn0","y2fUDMfZzxm","CMvZDwX0","AxntzwXLy3rHyMXL","DxjSka","yMfJA2DYB3vUza","C2v0qxr0CMLIDxrLCW","yMLUzenVzgvZ","BM9Kzu5HBwu","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","Aw5ZDgfUy2u","zxH0zw50","Axnoyu4","Cg9PBNrLCKLK","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","DgLTzq","CMzFx2vKz2uT","5l6l5AAc77YACMvMCMvZAa","Cgf0Ae9WDgLVBNm","y2vUDgvYwq","lM5VA2v5","6ycA6Akr6ycF5BQM5PYj5Pwi5yc8","ChjLDLzPzxDWB3j0","6lw35Q2I5l2n572U77Yi55U45A+56iQc54k577Yj","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","Aw50zxjWB2XHDgu","C3LTyM9S","ChGG","5l6l5AAc77YABg9HzfrYzw5K44cbzMv0y2HezxzPy2vmAxn0","BM9Kzvr5Cgu","vxbtCxvHCMvpDxrSAw5Lza","ywX0s2v5","yM94lxnLBgvJDa","BM9Kzu9YAwDPBG","zgvNksa","tsaYmcaWieWGmcaWidaGmJa","yNvPBhrPBKLK","EMGTy24","x2nHBgW","ChvZAa","zM9UDc1TzwrPDw0GDgv4Dc1ZBsb0CNvUy2f0zq","Bg9VC2u","C2vSzwn0zwroB2rLswrZ","CMvQzwn0","rNjHz21LBNq","6BYG5Qch6yEk5Ps+","mda0","ywjZB2X1DguGDg9WltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","54k555s757Q/77Yi5lIT5B+d57Q/77Yj","zMXLEcbMBgv4lwnVBa","77Yi5y+V6ycj77Yj","BgLUzwfYlwDYywrPzw50khrVihjPz2H0lcbYz2jHkdi0mcWYndaSmJqWldaUmdmPidfWEcWGDhjHBNnWyxjLBNqGmxb4ksWGBgLUzwfYlwDYywrPzw50khrVigjVDhrVBsWGCMDIysGYndaSmJqWldi0mcWWlJaZksaXChGSihrYyw5ZCgfYzw50idfWEcK","x196B29TAw5N","5Rwl6k+v5PwW5O2UicHku09okq","zwXLBwvUDhntzwXLy3rHyMXL","5Qch562+5Qc35BYp","z2v0qKjVEa","5yIG6zMK6k+L5PwW5O2U6zUg77YF","zgf0ytPPBwfNzs9ZDMCREg1Sla","qNv0Dg9U","tM8GC3rHCNqGBM9KzsbMB3vUzcbPBIbLDMvUDcbMBg93","Dg9mB3DLCKnHC2u","CMvHy3qTzMXVD19FBwfYA2vY","CM9VDfbHCMvUDeLUzgv4","AxrLBq","y2fUy2vSywjSzq","C2HVD0DYAwq","mc4Zzw0","6ycA6Akr5yQG6ycF5BQM5PYj5Pwi5yc8","y2XHC3noyw1L","CMvZDgfYDa","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbVDMvYzMXVDY1OAwrKzw4","zgLTzw5ZAw9UCW","C291CMnLtgfIzwW","iwjNlwjSDwuTntaW","C3bHBG","B3jKzxi","6Ag65PE26zki5PEl6l2S6kEs5BQM77Yi5BQM77Yj","DgHYB3DUrxjYB3i","zxjYB3i","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg","y3jLyxrLu1zhug9PBNq","57Ur5A6A54MP5PAz","DxnLCK5Vzgu","BwiTncbWltmGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKigjNlwjSDwuTntaVnta","5BEM5A+56B2q","5A+85ywL55s75BId","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iG","y29SB3i","tw9KywW","ChjLDMLLDW","C2nOzwr1Bgu","6BUy6k6K54Q25Ocb","C2v0u2nHBgvfEhrLBNq","5PAW5lQl5lU25z2x","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94BgLUAW","su5qvvq","CgfUqNK","C2fTCgXLiePtt04G5PEG5Pwi","Aw5JBhvKzuHPzgrLBK5VzgvZ","w2rHDgeTAgfUzgXLpsjZDgfYDcjD","y3jVC3m","y29WEq","zxHW","CMvM","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltmGDY1MDwXSihb5ltiG","yNvPBhrPBKnVBMzPzW","77YA5lI65Q+p5lIQ5A2q6iQc54k56ywn572U5AsA5lIQ54Q25Ocb5zkm57Ur5A6A","CMvHzefZvgv4Da","y3vYCMvUDfn0yxr1C0LK","Bw91C2vy","zwzMzwn0qwXSB3DLza","zgf0yvrYyw5ZzMvY","Aw5JBhvKzxm","x3zHBhvL","twvZC2fNzsdLHAJLSydMJ5dNPlOGkgfUDgqP","y3jLyxrLq29UDgv4Da","ywn0Aw9UCW","mta4ma","qebPDgvYyxrVCG","54Q25Ocb5PwWoIa","CM90yxrLka","Aw5ZzxqOmtaWjsK","Dgv4Dc1ZBsb0zxH0lwDYyxKTnJaW","zM9YrwfJAa","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","Dg91y2GW","x19LC01VzhvSzq","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","BM9KzuXVB2T1Ca","zgvZyW","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","5lIk5lIQ5PYiicJNV7VPOBxKUiRPLk4P","tw96vxnLCLnLBgvJDa","Dw5YzwDPC3rLCKv2zw50qMXVy2S","DxjSkcnNCMLKkq","w2rHDgeTy2fUDMfZpsj0CNvLiL0","5A+85yE65OIq5yQF77Yb","CgfNzvG","Dw5RBM93BIb0ExbLoIa","CM90yxrL","x25Vzgu","zML0vMLLD1jLC29SDMvY","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+pgnPCMnSzsbJEd0ImZaIign5psiZnsiGCJ0ImJaIigzPBgW9iInIzMjMyMyIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+phjLy3qGEd0ImJuIihK9iJuIihDPzhrOpsiXmciGAgvPz2H0psiXnsiGzMLSBd0IiZu5ntK1osiVpJXWyxrOigq9iK0ZmcaYmcbmmZaGmZuGttiWidmWifeZmca0nsa0mcaZmciGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIigzPBgW9iM5VBMuIlZ48l3n2zZ4","yxv0B1bHBK9UtM9KzurYywC","u3rYywLNAhrfzgDLsw50zxjUywW","yMfJAW","y2fSBa","Cg9PBNrLCI1LDMvUDhmTBM9Uzq","nsW1","CMvHy3qTzMXVD19FzwrNzq","BMuTCMvZAxPL","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","C3rHDhvZtgLZDa","mca0ChG","Dg91y2HTB3zL","6zw/5yIslEEcUEs6PoABVW","ChjVzhvJDgLVBG","y2XVBMvfBgvTzw50","zMLSzxm","tgLUzxm","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","B2jZzxj2zq","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS","q1vtve9n","BM9KzuLK","C2v0rwrNzxm","C3rHDhvZswq","C3bHy2u","Ac1MDwXSigzSzxGGzMXLEc1JB2W","BgLUzvr5Cgu","wM9VBu91De91DgXPBMvK","zgf0ys1Pza","6iom5PMV5zU+54Mh5lIk5lYG5OIq5yQF","5lIl5A+56B2q","CMvHy3qTzMXVD19FDMLLD3bVCNqTCg9YDgfS","lte0ChG","DxnLuMvM","y29UDgv4De1LBNu","wvLzwq","BgfIzwW","t1busu9o","ChjVzhvJzq","Aw52zxj0wa","y29UC3rYywLU","Aw1N","BM9KzxntzwXLy3rPB25by3rPDMu","BM93AgvLBa","zMXLEcbMBgv4lwnVBca","jhTSywjLBh3KUi3OG73OVAZMJAlKUlRML6xMNj8","ios4QUIkGUEcUq","yxrHBJi","CMvHy3qTzMXVD19FAgfUzgXL","B2jQzwn0ihvUC3vIC2nYAwjLza","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","5y+V6ycj77YA57Ur5A6A5zco6kgO6l6+5BYp5lIT55QeigrHDgeG5lYA5ywi5zci5BM26k+L5PwW5O2U6zUg55QeihnHBxbSzE+8JowgJEwqIow5TUEuU+w4G+s8OowfPEEAHoI/KoIHJoAxTUAvSoAnRUoaGUs4JEE7KEwUMUAxTIbKyxrHios7HEADPEIhQUI/KoIHJoAxTUoaGG","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","zw51BwvYywjSzq","r3jVDxbpDxrSAw5Lza","w3jVBgu9iMnVBwjVyM94iL0","B25fCNjVCG","x3n1yNnJCMLIzq","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlwWGyM9YzgvYlwDYyxKTmJaW","DMfSDwvtB3vYy2vdB2rL","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWma","CMzFx2nVBNrYB2XZ","Dgv4Dc14CYb0zxH0lwjSDwuTntaWigzVBNqTyM9Sza","5yAf6igu6isA5PYS","5A+85yE6iePtt04","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","zhjHzW","54k55yE76zMn5BQp","yMCTyMX1zs01mcbYAw5NltiGCMLUzY1IBhvLltqWma","Aw52zxj0","DxbKyxrLtM9Kzq","BwfYA2vY","Bw91C2veB3DU","BM9KzvG","Dg91y2HTB3zLlNPVB20","6k+36l6t5ywLjhTSywjLBh0","DxnLtM9KzunVBM5Ly3rPB25ZoIboBYbUB2rLieLeigzVDw5KlIbdywXSihvZzu5VzgvdB25Uzwn0Aw9UCYbPBNnPzguGysbJDxn0B20GtM9KzsbVCIbWCM92AwrLigeGBM9Kzsbjrc4","yxjYB3C","5B2t5yMn546V5Akd5lIn5PsV5OYb55s75BId5yIh5O2I","C2v0tM9Kzxm","qxjYB3DvCe91DgXPBMvK","5PwW5O2U5RgG","5lIk5lIa5lIw57QQ","qMv6AwvYrwrNzq","zM9JDxnHyMXL","uMvHy3rAB29TugfUugLUy2G","C3rLCfbVC2L0Aw9U","Bg9HzgLUzW","q29WEu91DgXPBMvK","ios4QUEkTUAaGq","Bwf0y2HnzwrPyq","5AAc77YA55s15PY65Rwl54k56zUg","rxnJyxbL","mJi4nJa0ohbks2DdyW","zNjVBNq","zw5KlNn0EwXLlG","CMvHy3q","Bwv0yuTLEq","6ycj5OUP5BEY5RoO5yAm55Qe5Asw6yoO5PA55Rov","rxzLBNqGzMXVDYbLEgvJDxrPB24GzxjYB3i6","DhjHBNnSyxrL","rwrNzsb0ExbLici","CgfYzw50","B25gAw5HBgL6zq","Aw5ZDa","zgf0ytPPBwfNzs9ZDMCREg1S","A2v5CW","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBw91Da","Aw5PDgLHBeHLAwDODa","DhjHBNnSyxrLwq","CMvHy3qTzMXVD19Fyxr0CMLIDxrPB24","6lEZ6l2S55s75BId","C291CMnLug9ZAxrPB24","5BYa5AEl5zgO","5PYQ6ywn572U55UU5Qch55s75BIdieLe","5Qch6k+g5lIn6io95lI656M6","Bwf0CML4","BwLU","6iom5PMV5zU+54Mh","x2LUBMvYu3vIC2nYAwjL","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","zwXLDMf0zuvKz2vZt25tzwXLy3q","DgfWrgLZDgfUy2u","576K57Ue6iQc54k5","w0rfufjfq0fururDifrOzsbGzgvZDhjVEwaGBwv0Ag9KihDPBgWGyMuGDw5ZDxbWB3j0zwqGAw4GysbMDxr1CMuGDMvYC2LVBI4Gsw5ZDgvHzcb1C2uGDw5ZDwjZy3jPyMuGzNvUy3rPB24GCMv0DxjUzwqGyNKGC3vIC2nYAwjLlIbfDMvYExrOAw5NihDPBgWGyMuGz2fYyMfNzs1JB2XSzwn0zwqGAwyGC3rVCMuGAxmGz2fYyMfNzs1JB2XSzwn0zwqU","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvK","CMvSzwfZzvbVAw50zxjdyxb0DxjL","DxnLCLnLBgvJDgLVBLjLy3q","y2fUDMfZxW","Ahr0CdOVl3D3DY53mY5VCMCVwe1mlZe5otGVBMfTzxnWywnL","zgvMyxvSDa","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","w2rHDgeTAgfUzgXLpsjLBMqIxq","sxrLBq","C3r5Bgu","ug9Wy29UzMLYBq","DgLTzxi","5PYa5AsAjhTTyxH95lIQjhTSywjLBh0","Bw91C2vpDMvY","C2v0qxr0CMLIDxrL","mda4","CgvUzgLUzW","y2f0y2G","AxntDg9WCgvK","BM9KzxndB25Uzwn0ywjSzq","Aw5qCM9NCMvZCW","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","x19VBG","BMv4Da","5lIl5lIa5lIw57QQ","CMDI","yxv0BW","zg90","qMv6AwvYrwrNzuLUDgvYBMfS","6k+35AgR5yAz5O+q56s65yAf5A65","5AgR5ywf6AkC6iMY77Yi5z+65PYS5B2I54Q277Yj","C2nOzw1LxW","zhjHz2DHyMXL","AxnqCMLTyxj5","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Ilti","z2v0u2nYzwvUq1rn","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","q29UDhjVBa","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","C2vSzwn0q2HPBgq","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlxiGyM9YzgvYlwDYyxKTmJaW","x2fJDgL2zq","Aw5Zzxj0qMvMB3jL","zhvYyxrPB24","Bw92zwq","AxneCMfNz2fIBgu","ndK2m25uwLvXuG","CMvTB3zL","x196B29T","yMX1CG","Dgv4Dc14BcbMB250lwjVBgqGDgv4Dc1IBhvLltyWma","Dg91y2HZDgfYDc5KCMfN","rhjHz091DgXPBMvK","zgjSy2XPy2SUEM9VBq","iIbPCYbPBNzHBgLKlIbqBgvHC2uGChjVDMLKzsbHig51BwjLCIbVCIbHihn0CMLUzYb3AxrOigeGDMfSAwqGDw5PDcaOChGGB3iGjsKU","vxbSB2fKt3v0BgLUzwq","CMDIysGWldaSmcWWkq","CgfYyw1Zq29Kzq","BM9Kzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","yxbWBgLJyxrPB24VANnVBG","zMLYC3rfBgvTzw50q2HPBgq","zNjVBq","BgfUzW","BM9eCMfNq2XHC3noyw1L","zgvZDhjVEq","tKvhqvrjvKvFsu5gsu5jvfK","DxnLrwzMzwn0","ywjZB2X1DguGlxrVCc02igXLzNqTmcbIzY1IBhvLltuWmcb0zxH0lxDOAxrLihrLEhqTEhmGChGTmIbWEs0WlJuGCM91BMrLzcb3AgL0zxnWywnLlw5VD3jHCa","yxnZzxj0AxzL","CMvHy3qTzMXVD19Fy29UDhjVBhmTzML0DMLLDW","ChjVCgvYDhK","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/kvXZkG","zMLSBenVBg9Y","zxzLBNrtDwjQzwn0CW","yMX1zq","Dg9tDhjPBMC","vgv4DefYzwe","CM9VDa","Aw50zxjYDxb0lNPVB20Gzw5KlNPVB20","twv0yq","zxHLy3v0Aw9Uugf0Aa","DxjSkcm","qxjYB3DdBg9Zzwq","rgL2AwrLCG","5lQm57U056cb6l+h5PYF","Bw9Kzq","6k+35AgR5yAz5zcn56EW","6k+36ycj5OUP5BM05lU9","y2HYB21L","5B2t5yMn54Q25OcboG","BgfIzwXgB250v2vPz2H0","yxnpyNnLCNzHyMXL","mcaWidi1idmY","77Ym6Ake6kEi5PE25lUL5QIH5P2/5lI65BQv5zci5BM255s75BId44cm5QIH5OUF5PwW5O2U44cn44cc5PwW57Ue5Qc85BYp6zYa5yYf5zcRig5HBwuG5A2x5Q6155sO5lQo6ycj5OUP44cc","ksb0CMfUC2XHDguO","AgLZDg9YEq","zgvZy3jPChrPB24","5lQl5lU25Rwb","AgfZ","yxjNCY4","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGigzPBgu6BxiTncbMAwXLoNb5ltiGzMLSztPWEc00cIaGicaGicaGicaGicaGzMLSztPYB3vUzgvKlwz1BgWGzMLSztPIB3jKzxiTmaOGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicbMAwXLoMjNlwjSDwuTntaGzMLSztP0zxH0lwjSDwuTnZaWcIaGicaGicaGicaGicaGAg92zxi6zMLSztPIzY1IBhvLlteWma","B25qB2LUDgvYrg93BG","CMvTB3zLuhjVCgvYDhK","zw5HyMXLza","igrVzxmGBM90igv4Axn0lG","B25SEvjLBMrLCLzPC2LIBgvfBgvTzw50CW","6iQc54k55PwWoIa","EGOGicaGicaGie0","zM9Yy2u","y3vYC29YlwDYywi","5Bgv5BYa6kgm","iIbYEd0InciVpJWVC3zNpG","jhbYzxyU","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","AgfZrxjYB3i","x19KyxrHx18","C3rHCNruCMfUC2L0Aw9U","y2LYy2XL","x3bHCMvUDa","lcb5oIa","sw1Hz2u","C2v0vMLLD3bVCNq","CgfUzurYywDNAw5N","BM9KzxngB2n1C2fIBgu","vw5KB091DgXPBMvK","44cn77Yi5Pw05z2x6l+u5zUE5yc877Yj","zM9YBwf0shnS","x19KzwzHDwX0x18","zgvSDgfnB2rL","yMLUze5VzgvfDMvUDa","6ycj5OUP5zgO","CMvHy3qTzMXVD19FBM9Kzxm","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","zM9UDfnPEMu","5BEY5RE75yQG","C29SAwq","6iom5PMV6iMY","y29UDhjVBhmUzML0vMLLDY5HCMLHtgfIzwW","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","jhTSywjLBh3MLBdPH4/POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","5O+q56s65yAf5A65","C2v0tM9Kzuv4DgvUDa","C3rHCNrxAwr0Aa","jhTSywjLBh3KUi3OG73KUlRNQBRLRzFNRky","CMvZzxq","DxbKyxrLq29UBMvJDgLVBG","u3rYywLNAhq","yxnZAwDU","y29UBMvJDgLVBG","zwrPDgLUz0v2zw50uM9VDeLK","mJCZodi4ugLgvhjH","DxnLu3LUy0v4DgvYBMfSu3rVCMu","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","zwrNzxm","5A+85ywL57Ue5Ocb5PA55Qgi","y2XVC2vK","twLUAsbnyxa","y29UDhjVBhmUyxjPyuXHyMvS","uMvHy3qGrMXVDYbHDhrYAwj1DgLVBG","zwfZzq","sw5WDxq","mtjWEcaW","zgLZCgXHEu5HBwu","z2v0","DxnLtgf5B3v0rwzMzwn0","CgWTmIbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Zmda","BwvTBW","zgf0ys1Oyw5KBgvPza","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q61","z2v0q29TChv0zwrtDhLSzq","5PwW5O2U6zUgia","C3vIC2nYAxb0Aw9UCW","Dgv4Dc1NCMf5ltqWmcbOB3zLCJP0zxH0lxjLzc01mdaGy3vYC29YlxbVAw50zxi","AxnwAwv3","Ag9YAxPVBNrHBa","6k+35AgR5yAz6k+35Rgc5Qch6k+g","C3vJy2vZCW","AxngAw5PDgu","CMvHy3qTzMXVD19Fy29UBMvJDgLVBMXPBMuGCMvHy3qTzMXVD19Fy29UDgfPBMvY","zgf0yxnLDa","y2XPzw50wq","vhLWB2DYyxbOEq","yMfJA2DYB3vUzenVBg9Y","zw5Kwa","Cg9PBNrLCLK","AwXSzwDHBcb0ExbLoIa","rxzLBNqGzMXVDYbLCNjVCJO","cIaGicaGicaGicbYB3vUzgvKlwXNihrYyw5ZAxrPB24TywXSigr1CMf0Aw9UltiWmcbZzwXLy3qTBM9UzqOGicaGicaGicaG","DY1MDwXSigP1C3rPzNKTzw5K","C2v0twLUwM9VBq","Dg91y2HZDgfYDc56B29T","EM9VBs53AgvLBa","5PwW57Ue56YSia","CMvXDwvZDefZEw5Jswq","BwWTmIb0zxH0lxnTigzVBNqTBwvKAxvTihrLEhqTyMX1zs02mda","6k+36ycj5OUP6kEM5y+r5PA55BYp","C3rVCfbYB3bHz2f0Aw9U","Aw50zxjUywW","5PwW5O2U5QIH5OUF","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","y3vYCMvUDe9IC2vYDMvYCW","AxnjBNrLCM5HBa","uhjVDMLKzxi","zgLZy29UBMvJDa","CgfUwM9VBq","5RE75yQG5ywL5y+c6kgm77Yi56YS5yEG5lIQ5y+c5PwW77Yj","zg93BMXVywq","C2v0vhjHBNnMB3jT","C3rHCNry","EMHFq04","zxHLy3v0zuv2zw50rMXVDW","AhnSka","6k+36l6t5ywL5PcC57sI5yAf5A65","igvYCM9YCYbVy2n1CNjLzcbKDxjPBMCGDw5ZDwjZy3jPChrPB246cG","Aw5MBW","qMfJA2DYB3vUza","zgvMyxvSDhm","BwvYz2vsDw50Aw1LsgfUzgXLCNm","yxjNCY5WCMv2ma","ywjZB2X1DguGDg9WltaGBgvMDc0W","CMvJEwnSzufZEw5Jswq","BxqTmsb0zxH0lwfTyMvYltGWma","Dg9qCMLTAxrPDMu","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","x25LEhq","i2zMzG","5lIk5lIa5Q2L","y2vPBa","BMv4DfnPyMXPBMC","5PEG562B6ycj6Ag5","DgLTzxjjza","CMvHy3qTzMXVD19FyxjPys1SAxzL","5RIq5y+y6iMY","5OUw5OU96lcd5Pw05AsN5Bcp","tM8GDgLTzw91DcbWCM92AwrLzc4","y2XVBMvoB2rL","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltq","vgHLig9SzcbLzgDLihDPDgGGAwq9","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","zML0vMLLD09WDgLVBNm","ugfYDgLHBa","xhmQkfSRlv0/xgqRkvXZkG","zhjHz2DPBMC","Dgv4Dc1ZBsb0zxH0lwjSDwuTnZaW","y29UDhjVBerPCMvJDgLVBG","y2XHC3nmAxn0","CMzFx25VzguT","zgvMAw5LuhjVCgvYDhK","DxnLu3rHDgu","5yc85Qc35BYp","6yEn5ygAicHdDhjSk1KP","zgLYzwn0Aw9U","Dg9qCM9TAxnL","z2v0qxr0CMLIDxrLtLm","zNjLzq","B3DUzxjtvKDfBgvTzw50","6Ag75lI6jhTSzw595lIQjhTSywjLBh0","z2v0t3DUuhjVCgvYDhLtEw1IB2XZ","CMvZAxPLrgLYzwn0Aw9U","mtKYma","DgvZDa","y3vYC29YlxbVAw50zxiGBwiTma","5yc85P2L5RQq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","BM9KCMfN","t3b0Aw9U","lI4U","CMv0DxjUig51BgW7","rwrNzsbMCM9Tia","5PEG54Q25Ocb","zgf0yvjLCxvLC3q","q3jVC3m","5Qch562+5PAh5PYSicHSywjLBcK","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iIm1mMm0mweIlZ48l3n2zZ4","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","Aw5KzxG","B25oB2rLC0rLBgv0zq","DgfYz2v0ug9ZAxrPB24","CgLWzq","D2HLzwWUEM9VBq","Cc0ZigjVCMrLCI10igjVCMrLCI1NCMf5ltiWmcbIzY1NCMf5ltuW","y3vYC29YlxbVAw50zxi","CMvJDcGWChGSidbWEcWGmhb4lcaWChGP","5lQl5lU25Rwb57Yw6l6r5zMO","jhTSywjLBh3MNidLSi/LGlZKUlOKE21PBN0","zMXLEc0Xig1PBI13lta","B3b0Aw9UCW","C2v0vgLTzw91Da","C3rYAw5NAwz5","Bwf0zxjPywW","5BYa5AEl5BM05lU9","AgLKzuf0DhjPyNv0Aw9U","Dgv4Da","zgvZDgLUyxrPB24","zw5Kwq","CxvLCNLtzwXLy3rVCG","C2vSzwn0","yw5PBwf0zwq","BgfIzwXtDhLSzq","zxH0zxjUywXiyw5KBgvYs2v5","y2XPy2S","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","ioMHUsK","z2v0uhjVDg90ExbLt2y","q29SDw1UsgvPz2H0t3v0BgLUzwq","C3rHCNrizwLNAhq","BgfIzwXcz0jVCMrLCLjHzgL1CW","qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","x2HHC1bHCMvUDa","CMvTB3zLqxr0CMLIDxrL","DhjHBNnPDgLVBIa","q2fUDMfZ","zg9TywLU","Bw91C2vmzwf2zq","ltuSltqGmcWWic01ldqGltuSltq","B25dB25Uzwn0u3rHCNq","Bwf4","CMvHy3qTzMXVD19Fy29UDgfPBMvY","z3jPza","CMv2zxjZzq","zhjHz3n0yxj0lMrYywC","Axnqyw5ty3jVBgXPBMC","zxHLy3v0zuj1AwX0Aw4","DgfYz2v0sgfUzgXL","55s75BId5A+85yE65OIq5yQF77Yb","C2HVDwXKvw5ZDwjZy3jPyMu","CMvHy3qTzMXVD19FzwrNzs1KzxnJ","iw1Ylta","5BEY5OMR5O+p","y292zxi","6l6t5ywL5zU+54MhifvstcdMIjBKUiRKVkdLM77NIyC","y3vYCMvUDa","Dw5IAw5KtM9Kzuv2zw50","Aw52B2TLuNvUDgLTzuHHBMrSzxi","C2nHBgu","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWlti","zNvSBa","y29UDgvUDgvKAxrHyMXL","lwzSB3DFx2HHBMrSzq","54Q25Ocb6kgO6l6+5BYp5OMN6kgm5AsX6lsLifS","54k55yE75yI35PAW","zxjYB3jZ","w3jVBgu9iMXPC3rIB3GIxq","y2HLy2TLza","C3fYDa","DhjHBNnMB3jT","5lIk5lIa5BM05lUJ","6iom5PMV6AkC6iMY","AxnfzgL0Aw5NrxzLBNrgBg93","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","DgfWCW","y29UBMvJDgLVBK1Vzgu","6k+36ycj5OUP5OMN6kgm5PA55BYp","yxr0CLr3zwvU","5lIl5lIa5BM05lUJ","y29UBMvJDgfIBgvLBMq","6kEM5y+r5PA55BYp","uMvKB091DgXPBMvK","twfYA2vYrgvMAw5PDgLVBNm","ww91ihbYB3zPzgvKia","Dg91y2HHyMXL","EfnUyxbWzwq","C3rHCNrbBMDSzq","DMfSDwvtDhLSzq","AxnwywXPzenVBM5Ly3rPB24","5zcr5yMnidmG6Ag1","wM9VBsbpDxq","DgfYz2v0q2fUDMfZswq","zgvSyxK","DgHYB3C","y2XPy2SUzhjHzW","x25HBwu","5BYa5AEl5PE26zE0","zM9YBwf0sgv4oa","ig5VDcbMB3vUza","CMvSyxrPDMu","BwfUDwfS","Dg91y2HLBMq","u3bHy2u","C3zN","5PAW5BU655s75BId","BwvHC3vYzwq","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","sg9YAxPVBNrHBa","BgLUzxm","C3rHCNqUEM9VBq","ugX1C091DgXPBMvK","x2vUDgvY","DY1MDwXSia","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","AgvHza","rNjLzq","Aw5WDxq","5PU05O2I54MP5PAz","BM9VCgvUzxiGBM9YzwzLCNjLCG","yxjPyuXHyMvS","y3jLyxrLrwXLBwvUDe5t","CMvZzxrtzwXLy3rLzevSzw1LBNrZ","yw50ze1LC3nHz2u","iIbYEd0ImJaIlZ48l3n2zZ4","yNvPBgrnzxjNzwreyxrHuMvJB3jK","DMLLD3bVCNq","u1fsvdi","6ycp5PIo5BQM","ChjVDg90ExbL","5Q+p5lIQ5PwW5O2U6zUg5y+V5lUL5PIViePtt04G5A+56lgH5QIH5P2/77YiuMvJB3jK77Yj5OIw5PwW57Ue44cc54Q25Ocb57Ur5A6A5zco77Ym6kgO6l6+5BYp562+5zcn5lI6","zw5KlNjLBw92zq","BwvZC2fNzq","C2vSzwn0C3rHCNqUzhjHzW","5zcr5zcoidmG6Ag1","5PAh5lU25lIk5lYG5lIT","qMv6AwvY","C3bHy2uTEs00","Dg90ywXjBMnVBwLUzW","u21VB3rOu3rLCa","AxneCMf3Aw5N","DMfSDwvgB250v2vPz2H0","x2DYB3vWCW","zMLSDgvY","z2v0u2vYDMvYu3rHDgu","Aw5PDgLHBfrLyxjKB3DU","y29UC3rYDwn0B3i","z2v0rgf0yq","wM9VBuLUt3v0BgLUzwq","u3rLCevKz2vjBNrLCM5HBa","D2HLzwW","y29UC29SAwrHDgu","DxnLzfjPz2H0tw91C2vcDxr0B24","sw5WDxroDw1Izxi","BwiTncbWltmGyMCTyMX1zs01mcbIB3jKzxiGyM9YzgvYlwjSDwuTmJaWihjVDw5KzwqTBgC","zgf0yvbVB2W","ChjLDMvUDerLzMf1Bhq","55s75BIdia","C3bSAwnL","C2nHBgvfEhrLBNq","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","DgHLBG","zgv0ywLS","5ywO6ycj5OMa5PYj","CMvHzefZrgf0yvvsta","BxqTna","zgLZCgXHEwfIBgu","x3rYEvn1yNnJCMLIzq","5y+V5O6s5BQp","yxjNCY5WCMv2","Ag92zxi6yMCTz3jHEs0Xmda","y2XPzw50wa","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","B25nB3zLu3rHCNq","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/ksvCCYO","zxzLCNK","yMCTz3jHEs0Xmda","y3jLyxrLrgvMyxvSDfn0yxr1CW","DhLWzq","rxzLBNqGzMXVDYbUB3qGAw5PDgLHBgL6zwqGzM9Yia","zxH0zxjUywXfDMvUDeTLEq","x3bHCMvUDhm","z2v0uhjVCgvYDhLwywX1zq","yM90Dg9TlxjPz2H0","6l6t5ywL5Qch562+5PAh5PYS","5PAh5A2x6AkC6iMY","CMvJDa","C3rHCNq","EhKTzwrNzv9F","B25SB2fK","5Asn5yI25OIq5yQF","5zcr5zcoiduG6Ag1","Bw91C2v1Cc5KCMfN","C21HBgW","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWyY00lJeXncaXlJGYoc0XlJm3idiUmtmZlJmWnsaYlJqZocaXlJy3nI4ZmduGnc40mIaYlJu5idqUndiGns4Xodf2mY4WndHimY4WndDbmY4WntyGmY4WntyGmcaWmdaGmtmUnZe0DJe1lJiZoeeZlJa1nIaZlJa1nIaWidaWmY4WndGGmZjOmtGUmJG1ytmUmdu2idmUmdu2idaGmdaZlJa0oc0ZlJa0ofyXmY43mtrHmY4WntyGmY4WntyGmcaWmc0ZlJa0oc0ZlJa0n3PnmtiUmtKGmJqUntmZytmUmdu2idmUmdu2idaGmdeTmY4WndCTmY4WndCGmY4WntyGmY4WntyGmcaWmtmUmdq3ltmUmdq4idmUmdu2idmUmdu2idaGmdeZlJa0ocaZlJa0ocaZlJa1nIaZlJa1nIaWidaXltmUmdq4idmUmdq3EG","kgrHDgePid0+igjVB2XLyw4","CMvHy3qTzMXVD19FCgfUzwW","Aw52zxjZzq","sgfUzgXL","C2nYB2XSvg8","Bg9JywW","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","B250B3vJAhn0yxj0","y29UDgvUDeLUzM8","vgLTzw91DcbOyxmGB2nJDxjYzwq","u2f2zu91DgXPBMvK","Dgv4Dc14CW","y2XLyxi","5Bcg57Q/5P2H5y+y5lI65z6c55U057Q/77Ym5l+D5OYb6zw/5BQM","iZe4otbMzG","DhjHBNnPDgLVBG","C3rLCa","5OMN6kgm5lUJ56cb","6Ake6kEi5PAh5lU2","CMzFx2jHy2TNCM91BMq","zxzLBNrgBg93rgf0yq","zwrNzxnszwnVBM5Ly3rHyMXL","x+wKJEwiTG","zgvMyxvSDfzPzxC","ChGPihnJywXLka","BNvTyMvY","z3jPzcbNCMLKlwnVBhmTmIbNyxaTmG","AgfZvMfSDwu","y29Uy2f0","y29UDhjVBeLUzM8","C3LZDgvT","BwLUwM9VBq","B2jZzxj2ywjSzq","u21VB3rOu3rLCevKz2u","idaGvG","B25dBgLJAW","Cg9PBNrLCG","uhjVCgvYDhLqyw5LBa","yxbWzw5K","C3rHCNrsB3rHDgu","zxzLBNrgBg93","5lQl5lU25Rwb5yIB5BU65OIq5yQF","yxv0B1bHBK9UtM9KzuzVy3vZ","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","x3rOCM93swzdBg9Zzwq","CMvHy3qTzMXVD19FC2vSzwn0Aw9UihjLywn0lwzSB3DFx2nVBNrHAw5LCG","8j+sOsdMJ5dNPlRVVjRMI5BMI73NIANMLPNLIldNLlVLUipLIjVLU7ROIOlNGRNVViZNGRNLH7VNUR/MNAhNIANMLPNOV5VLHAxNU5JLIlBMQkhLVi8","EKLUzgv4tw9Kzq","qM90Dg9T","BMfTzxnWywnLvvjj","BgLUzurYyxDPBMC","zxjYB3iWmtm","5y+w5RAi5O6s5BQp","yxjYB3DJBg9Zzwq","C2v0q2vUDgvY","zgf0Dw0","B25oB2rLq2XPy2S","C3rHCNrz","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","ChjLCgfYzuv2zw50qxjNCW","mc4X","cIaGicaGicaGica","yM9YzgvY","CgfYzw50swq","CgfYzw50rwXLBwvUDa","DhjHBNnPDgLVBIbUB3qGzM91BMq","lNn2zW","6BYG5Qch56E75ywL","Dgv4Dc14CYbTyI0X","y29UDgfPBMvY","DgHPy2TUzxnZ","54k55yE757Q/5P2H54MP5PAz5BYa5AEl57Uy5yI2","zw5HyMXL","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","zMLUywXPEMu","Dgv4DenVBNrLBNq","yNvPBhrPBG","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95A2x56YM5lMl6zE0","q291BgrUj3qGy3jLyxrLigvKz2uGzM9Yia","qxjYB3Dmzwz0","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg5l2C5lI65PwW5O2U5RQq","ttmYide4lJeZm0GXoc4XmZnwmZjOltqUmJy2vJe4lJeZm0GWDI00lJi2nMGXmY44nJDwmgG0lJi2nNyXmY44nJDimZj6","DxnLtwvTBW","w2rHDgeTBM9Kzs1Pzd0I","iokaLca","Bw91C2vz","CgfYDgLHBa","6iEQ5A6A5lMj","57Ut5P2F5BM05lU9","z2v0sw5ZDgfUy2u","yxv0B1bHBLnWzwvK","BwiTna","C3rHCNroB2rLwa","yMCTD2HPDguGChGTmsbYB3vUzgvK","6k+36ycj5OUP5yAf572U5yQO5l2C","mdaX","i2y1mJiYza","DMLZAwjSzq","54Q25OcbicH0ExbLkq","vgfN","vevyva","BwiTmcbTDc00","C2vSzwn0ywjSzq","zwrNzq","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVVjRNLlhMLBdMJA7MSAaGC2fTCgXL77Yi6iUL5BEY57Ur5A6A77Yj5lIo55s75BId6l+q6kgm5PE25PwW5O2U5zci5BM277YB5Rwl54k55PwW57Ue5lYA5OYjihbHCMfTC0nVzguG5yAz5ywLigrHDghJGilPOBSGCMv0DxjUihrYDwuVzMfSC2xJGii","u3DPDgnO","ChjLDG","6k+36ycj5OUP5lIa5lIQ6iQc54k5","Dg91y2GX","yNv0Dg9U","ywjZB2X1DguGyM90Dg9TltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","q2XVC2vpDxrSAw5Lza","yM90Dg9TlwXLzNq","sxqGBg9VA3mGBgLRzsb5B3uNDMuGy3jLyxrLzcbHig5LDYbUB2rLvhLWzxmGB3iGzwrNzvr5CgvZig9IAMvJDc4GswyGDgHPCYb3yxnUj3qGB24GChvYCg9ZzsbWBgvHC2uGzgvMAw5LihrOzsbUB2rLvhLWzxmVzwrNzvr5CgvZig91DhnPzguGB2yGDgHLignVBxbVBMvUDcbVCIbTzw1VAxPLihrOzw0U","D29YAW","Dg91y2HTB3zLlMrYywC","5A2q6iQc54k5ia","twvZC2fNzsdMJ5dNPlRLHOxLRRNKUlRNQBO","ChjLDMLVDxntAwjSAw5N","5y2G5l2n56YM77YAE3TWCMv2Fx3JGif7E+wfPEwpGUwqJx19iow8LEEuQos4IUA4UoI/NUE6V+wfPEwpGU+8M3T7jgrHDgeUEhH4Fx0G5y+w5lQl5lU25lIk5lIl5PAhigrHDge","q29UzMLNuhjVDMLKzxi","Aw50zxjYDxb0","iZaWmtKZqW","CMvHy3qTzMXVD19FCgfUzq","vMvYDgLJywXbBgLNBLrVCe91DgXPBMvK","Cg9ZAxrPB24","6Ake6kEi5QIH5BYp","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","5y+Z5A+56B2q","yxjNCY5WCMv2mq","zgvIDwC","D2L0Aa","tM9Kzsb3AxrOigLKici","zxHWyw5KugfYzw50","zxHWCMvZC2LVBG","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWihb4ltqGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUigzSzxGTC2HYAw5Rlta","C3rHCNroB2rLwq","rwrNzvrLEhq","u3rLCa","zw5KlG","Dhj1zq","C2nHBgvuBW","zgf0yq","5lIl5lIa6Ag1","5lQl5lU25Rwb57Ur5A6A","zwrNzxngB2n1C2fIBgu","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","iZaWmdaWma","B3jPz2LU","6ycj5OUP6kEM5y+r5PA55BYp77Yire9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO77Yj","zM9YBwf0uMDI","DgHHDa","zgL2","rML0ifzPzxC","zxHLyW","Bw91C2vKB3DU","Dgv4Dc1Jzw50zxiGDgv4Dc14CYb0zxH0lwDYyxKTntaW","C2v0sw50zxj2ywW","x3jLBw92zvbHCMvUDa","BM9qyw5dBgfZC05HBwu","8j+sOsdMJ5dNPlRVVjRNGRNLH7VNU5JLIlBNUR/MRRxVViZLJ6/OV57NU63NU5JLIlBLPjRMRRxNUR/VViZLJ4ZLH7VNU5pMNz/NU5JLIlBVViXfu0mG5y+w5RAi","r3jHCgHwAwv3","DhjHBNnSyxrLqNK","CgHHBNrVBq","AgfUzgXLCW","zg9Uzq","zMXLEc1ZDgfYDa","mJeZofnmt01QDa","zxHLy3v0zq","i2vImMy5nG","5y+w5RAi5ywO6ycj","6k+36ycj5OUP","Aw1Hz2uVkG","DhjHBNnWyxjLBNq","tgvMDa","y2HLy2TfCxvHBgL0Eq","5A+85ywL5OIq5yQF77Yb","6ycj5OUP5yw35l2t5yAf572U6io95yQB","uMvHy3qGrMXVDZOGDhjPz2DLCIbLzgDLignOyw5Nzxm","562j5Q+u57YP5Ps+6iQc54k555Qe5A696AUy","6BUy6k6K5yc877Yi5Ash55sO77Yj","5zYO5lIl5PA556YSia","EKLUzgv4","B2zMC2v0","BgLUAW","kow9K+wjJsK","6iom5PMV6Ake6kEi","DY1MDwXSigGTndGGCc0ZigjVCMrLCIbIB3jKzxiTz3jHEs0ZmdaGCM91BMrLzc1SzYbMB250lw1VBM8GDgv4Dc1ZBsbYzxnPEMuTBM9UzsbMB2n1CZPVDxrSAw5Llw5VBMuGzM9JDxm6CMLUzY0YigzVy3vZoNjPBMCTyMX1zs01mda","5PQc5PEG54MP5PAz","mdaY","vhjHBNnMB3jTq29TCg9Uzw50","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","tgf5B3v0","ltzWEa","CMv0DxjUigzHBhnLoW","DMfSDwvgB250u2L6zq","Aw1Hz2uV","D2HLzwXezwX0yq","Cg9PBNrLCLG","DMfSDwu","5yIG6zMK6ycj5lITicHezwXLDguP","z2v0sw5PDgLHBfn0yxrL","DhjHBNnSyxrLvg8","5Asw6yoO5PA55Rov","yw50za","zw5Kug9PBNq","ChGS","zMLUzeLUzgv4","57Ut5P2F5A+86kEi","AhLWB3q","y3jLyxrLrwXLBwvUDa","5PQc5PEG5lQl5lU25Rwb","iZCZzdeZza","ywjZB2X1DguGAw5ZzxqTmcbWB2LUDgvYlwv2zw50CY1UB25L","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","y3jLyxrL","Bwf4wM9VBq","Dg91y2GTywn0Aw9U","zxzLBNrMBg93","rgvSzxrLt3v0BgLUzwq","sxrLCMfIBguGy2fUBM90igjLig51BgW","BgvMDa","zxHLy3v0zvnPBMDSzuzSB3DoB2rL","77Ym5AsA5ywL6l6555sOia","5A+85ywL5lI65PAW55s75BId77Yi5lIn6kAg55Uw5B2t5yMn55s75BId77Yj","CMvHy3qTzMXVD19FzwrNzs0","5y+V54k55yE7","Aw52zxj0wq","CMvZzxrgAwvSzhm","6ycj5OUP57Ur5A6A5yc8","AgfUzgXLCG","ywjZ","6yEn572U6kEg5zU+","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWltq","CMzjza","Aw5WDxrZ","i2iXyJfInW","Aw5ZDgfUDa","5Asw6yoO5lQl5lU25Qch6k+g","AxntzwXLy3rLza","x190CMfUC2L0Aw9U","Bw91C2vcDxr0B24","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltq","mZGZnZeWwK9YBvDY","AM9PBG","i2zMzMzMzG","57Ut5P2F5A2J5BQM","B25dBgLJA0nVBM5Ly3rfBMq","jhTSywjLBh3MMk/KUidKUkRML6dMLyJML6xMNj8","B2jZzxj2zwq","5Asn5yI26iQc54k5","mtmXnejwt0zMtW","Dw5ZDwjZy3jPyMu","vgfIBgu","yxn5BMnjDgvYyxrVCG","Dw5PDa","BgLZDa","CgfZDa","zxHLy3v0zuzSB3DoB2rLCW","CMvHy3qTzMXVD19FAgfUzgXLlq","ywjZB2X1Dgu","CgfYzw50tM9Kzq","u2v0DgLUz091DgXPBMvK","y29YBMvY","twfJ","5y+Z6zsU6i+C5y2v","y2vUDgvYwa","ywXS","ywrK","CMvHy3qTzMXVD19Fy29UBMvJDgLVBG","yM9VBgvHBG","zxzLBNq","yM9YzgvYlwjVEa","Dgv4Dc14CYb0zxH0lwDYyxKTndaWihCTnq","lwnHBNzHCY0","u0vmrunu","zgvSzxrHyMXL","lMPZB24","BgLUzs1KCMf3","tgLZDa","BMv3wa","CNvUDgLTzuHHBMrSzxjZ","5yAf572U5yQO5l2C","zMXVD0rHDge","Bw91C2vKB3DUlNPVB20","C29Tzq","5PAW5BU65PwW5O2U6zUg","BgfIzwXgB250u2L6zq","56s65l6l5PwW5O2U77YisLnptIdLR7NOSAhMIjBMLBdNU4tVViK","l2rPC3qVC3r5BguUy3nZjYbVCIbIyxnLlMnZCYb0BYbTywTLihn1CMuGzxzLCNL0AgLUzYbPCYb3B3jRAw5NihbYB3bLCMX5lG","ihrVia","5y+V5OUw5OU9","CMv0DxjU","lwzSB3DFx2vKz2u","DxnLsw1WzxjHDgL2zuHHBMrSzq","ufjpuevsvfLFq0HbtKDf","6ycj5OUP57Ur5A6A5A2x5Q61","6k+36ycj5OUP5PEL5PYF","CMvTB3zLrxzLBNrmAxn0zw5LCG","Ac0XmIbIzY13AgL0zsbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltq","rw50zxi","DMfSAwq","DhDLzw4","C2v0ug9PBNrLCKnHChr1CMu","57ky6ls0iePtt04G5yAf5A65lI4U","Bw91C2v1Ca","C2vSzwn0Aw9U","Aw50zxjUywXZ","zM9UDc1TzwrPDw0","Cgf0DgvYBG","vxbSB2fK","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","5OMl5yQO6l6t5ywL5PI+56s655Qe5yc8","u3rYAwn0","y2XPzw50vg9W","5ywO6ycj5B2t6Ag1","BgLZDgvUzxi","zNjVBuHHBMrSzq","yxbWBgLJyxrPB24","yM91BMreyxrHC2v0swq","ioADOEwfPEI+UsdIHPdJGiW","Dg91y2HLCW","Dg9iyw5KBgu","xcKK","5PQc5PEG5PwW5O2U","vgHLifjLywn0iezSB3CGCgfYzw50ignVBNrHAw5LCIbUzwvKCYbHihDPzhrOigfUzcbHigHLAwDODcb0BYbYzw5KzxiGDgHLigDYyxbOlG","ENvZDgfUza","CgfUu2nYB2XSvgLTzw91Da","CMvHy3qTzMXVD19FBwLUAw1HCc1UB2rL","Bgv2zwW","vw5ZDwjZy3jPChrPB25fCNjVCG","CMvHy3qTzMXVD19FBwLUAw1HCa","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","54Q25Ocb5zcn56EW","oJPLEhq6oG","DMfSDwvdB2XVCG","5OYb57UT5PE26zE077Yi56Es77Yj","DxnLCLnLBgvJDgLVBKfJDgL2zq","C29YDa","C2TLD1GO","iZCYmMvKmq","57Ur5A6A5yc8","5z6c55U05yIg5BId","DhjPz2DLCK5VzgvdAgfUz2vZ","AgfZt3DUuhjVCgvYDhK","x2fKzfbHCMvUDa","zxHLy3v0Aw5NigeGy2fUy2vSBgvKigfJDgLVBG","C2HPzNq","Bs9ZWRi","vhjHBNnMB3jTv3jHChbLCG","yM9Sza","C2vSzwn0zwrtDgf0Dxnjza","jhTSywjLBh3POBVKUlOKE2XLBN3KUkRLRzFNRky","zM9YD2fYzfjLzG","Aw52ywXPza","C2v0","jhTSywjLBh3KUi3MMk/KUidKUkRMNiNMLyJNMOqKE3r5Cgv9","zgv2zwXVCg1LBNq","nM96yM1Hwa","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","C3r5BgvuD2vLBG","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","zgv2AwnL","cIaG","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24TCMvJDa","qebVyNnLCNzHyMXL","6BYG5Qch6l+B5ywL","C2v0vgLTzq","B25dB25Uzwn0rw5K","zgfZAgvK","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","BwfYz2LU","ue9tsvrjvKvFsu5gsu5jvfK","Bwf0zxjPywXZ","y29TCgXLDgu","t2jQzwn0igLZig5VDcbPDgvYywjSzs4","qgfUDc1KzxnPz24VAwnVBNm","C25HCeDYAwq","rxHWzxjPBwvUDe91DgXPBMvK","BM9YBwfS","57Q/5A6977Yi5yop57sG77Yj","Cg9W","Bw91C2vTB3zLlMrYywC","xMHZBgfCka","C3vIBwL0","mcaWidmYidmY","mxb4igrHC2HLzcb0CMfUC3bHCMvUDa","y2XLyxjjBNrLCNzHBa","mtK5nJu2mePfswXLCW","vgfICW","yxjPyuXPDMvnzxnZywDL","CMvHy3qTzg9T","C2nHBguO","ywjZB2X1DguGyM90Dg9TltqGCMLNAhqTncb6lteWigjNlxDOAxrLihjVDw5KzwqTBgCGC2HHzg93lwXNihaTmG","DxbKyxrL","DgfNtMfTzq","zwrNzvf1zxvL","C2vSzwn0zwq","y29Kzq","y29UDgfPBG","tufyx1zbtfvf","jhTSywjLBh3LV4xPOBVNRyNKUO4KE2XLBN0","jhTSywjLBh3MNidLPkFLGlZKUlOKE21HEh0","yMCTz3jHEs0XmdaGChGTmsbYB3vUzgvK","6ycj5OUP5PYi5lU9","y2vUDgvY","57Ui54k5ifK","BgfIzwXdB2XVCG","zg93BG","ww91igfYzsb1C2LUzYbHBIbVDxrKyxrLzcWGChjLlxjLBgvHC2uGywXWAgeGB2yGuMvHy3qGmtGGDgHHDcbKB2vZig5VDcbZDxbWB3j0ihvZzvn5BMnfEhrLCM5HBfn0B3jLlIbuAguGDxnLlxn5BMmTzxH0zxjUywWTC3rVCMuGC2HPBsb3AwXSig5VDcb3B3jRignVCNjLy3rSEs4GvxbNCMfKzsb0BYbHig5LD2vYihbYzs1YzwXLyxnLlG","Bw91C2vTB3zLlNPVB20","mdeX","q29UBMvJDgLVBKXPBMu","iZi2mJyYnG","ywn0AxzL","y2fUDMfZ","C25HCfrVr3jPza","yM91BMrHCMLLCW","5Asw6yoO5lQl5lU2","5Asw6yoO5PA55Rov5Qch6k+g","zwXLBwvUDezYB21qB2LUDa","y2vUDgvYignLBNrLCG","C2v0qxr0CMLIDxrLtLm","DMLLDW","5PQc5PEG5PwW5O2U6zUg77Ym6k+354k55yE744cm5PAW5BU644cn","zg90CW","5lIk5lYG5zU+54Mh","5y+Q6io95lIk5lYG5zU+54Mh5PAh5lU2iq","uMLNAhq","6ycj5OUP54MP5PAz","B25tzwXLy3rPB25eCMfNu3rVCa","C2vUDa","6zw/5yIs6zE06zQu","nZu1ndv0z0fXs3m","zMXLEa","zxjYB3iWmdy","CMvSyxrPDMuG","ChGSia","z3jHyG","54MP5PAz5BgE5OcN","y3jLyxrLrxzLBNq","BwiTmG","Dhj5CW","rwrPDe91DgXPBMvK","yM90Dg9T","5lIk5lYGifnwrW","566H55cg55s75BIdlI4U","AxnjzgvUDgL0Eq","AxndBgLJA2fIBgu6","Cg93","C3rHCNrZv2L0Aa","5lIl6l295PAh5lU2","Bw91C2vfBNrLCG","r2vUzxjHDg9YigLZigfSCMvHzhKGzxHLy3v0Aw5NlG","C291CMnL","54Q25Ocb5yIx6kgO","zxjYB3iWmti","x25HBwvZ","B25oB2rLrg91yMXLq2XPy2S","Bwv0yq","BM93","y2XVC2vKlq","C2v0rhjHz0LTywDL","56gU6k6K5yIG6zMK","5l6l5AAc77YA5l+D5A2y5OIq5yQFioAiLIdNU5pMNPZVVjP7E3bYzxz9Fq","Aw1Tzxi","jhTSywjLBh3ML6xMNj/MOlZLVi/ML6dMLyG","5RE75yQG54Q25Ocb","zMLUzefJDgL2zvn0yxr1CW","iIbKB2vZig5VDcbLEgLZDcWGAxqGBwf5igHHDMuGyMvLBIbYzw1VDMvKlIbuAgLZignHBIbOyxbWzw4GD2HLBIbHig5VzguGAxmGzgvSzxrLzcbIzwzVCMuGDgHLicjVBK5VzgvdBgLJAYiGAgfUzgXLCIbPCYbJywXSzwqU","yM91BMreyxrHC2v0qMLUzfzHBhvL","DhjHBNnSyxrLka","57Ut5P2F5PYi5lU9","x19UzxDFxW","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","z2v0uMvHzgvY","zxzLBNruExbL","u2HPzNq","lIbozxCGCg9ZAxrPB24SihG6ia","5ywZ6zET6kgm","uhjVDMLKzwqGB2jQzwn0igrVzxmGBM90ignVCNjLy3rSEsbPBxbSzw1LBNqGu3LTyM9SlM9IC2vYDMfIBgu","5PAW6iQc54k5","B25dBgLJA0nVBM5Ly3rtDgfYDa","5PYQ55+L57g75z6l","z3jVDxa","zgvMAw5LuhjVCgvYDgLLCW","z2v0qM91BMrPBMDdBgLLBNrszwn0","BwfYA2vYrw5K","C3rVCa","CgfYyw1ZtMfTzq","BM9KzvK","zMXVB3i","uMvHy3q","55s75BId5A+85yE65AsX6lsL","Bwf4vg91y2HqB2LUDhm","mtjWEa","C2vSzwn0zwroB2rLswq","jhTSywjLBh3KUi7MQkhLVi/KUi3LJlNPHy0KE3bHDhrLCM59","zxzLBNrsB290CW","CMvZB2X2zq","rw1WDhK","q29UzMLNrwrPDg9Y","twLUDxndAxjJBgvpDxrSAw5Lza","sgfUzgXLoIboBYbUB2rLigLKigzVDw5KlIbnywTLihn1CMuGDg8GB25SEsb1C2uGysbiyw5KBguGAw5ZAwrLigeGy3vZDg9Tie5VzguU","y3jLyxrLrxzLBNrgBg93ugLWzwXPBMu","y29UDgvUDa","5zU+54Mh5BgE5OcN","C2nHBgvy","6ycj5OUP6k+L5A2x5Q615A+55BQu55Qe5yw35l2t5yc85lUL5A6A5l2n5PwW5O2U6Ag5","teLorq","Cgf0Aa","BgLUzq","CMvXDwvZDefUAw1HDgLVBKzYyw1L","Dw5VyNnLCNzL","x3rPBwu","x+EkTUAaGq","BgLUzvDLAwDODa","BM9KzxneCMfNz2fIBgu","Dgv4Dc14CYb0zxH0lwDYzwvUltyWma","C2LU","yMXVy2SGDhj1BMnHDgu","x2nVBxbSzxrL","55s75BIdide","A2v5zg93BG","zg9JDw1LBNrfBgvTzw50","Dgv4Dc1NCMf5ltGWma","A2v5","zgvMyxvSDevKz2vpChrPB25Z","5BgE5OcN6z2I5P2/","CMvNAxn0zxjfDMvUDejSB2nR","u3rYywLNAhrfzgDL","D2fYBG","BM9Uzq","iIWGzwrNzsbPzdOG","Bw91C2vTB3zL","CMvHza","5lIk5lYG6zsz6k+V","B2jZzxj2zxjZ","BgLUzwfY","CgfYC2u","Eg1SBNm","ltuSltqGmcWWic01ldq","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","6ycj5OUP5BM05lU9","zMLSzq","y2HLy2TwAxnPyMLSAxr5","55s75BId5A+85ywL5OIq5yQF77Yb","57ky6ls055s75BIdiePtt04G5yAf5A65lI4U","y2HHBMDLzfrVDwnOzxm","imk3ia","qxjYB3DvCa","mxb4ihnVBgLKicnKowq5zdK","BgfZDeLUzgv4","rxzLBNqGyMXVy2SGBM90igzVDw5KoIa","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","57Ut5P2F5PE26zE0","C2vSzwn0zwrfzgDLCW","6ycj5OUP5PE26zE0","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","DY0XmcbOlteWig9IAMvJDc1JB250ywLU","C2v0rgvMyxvSDe5VzgvZqw5KrwrNzxm","yxbWBhK","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","mtaWjq","5Pw05z2x6l+u5zUE5yc8","zM9UDc1TzwrPDw0GDgv4Dc1NCMf5ltGWmcbTyI0Y","B25nB3zLrw5K","zw5K","B25ZzwXLy3rZDgfYDa","u2LTCgXLqMv6AwvY","CMvKDwnL","C2v0u3rHDgu","5lIk5A+56B2q","zgf0yvjLCxvLC3rlzxK","DgL0Bgu","z2v0u3rHDgu","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBwLU","twvZC2fNzsdMJ5dNPlO","Cg9ZAxrPB25byNnVBhv0zq","z2v0tM9Kzuv2zw50qMLUzgLUz3m","5PwW5O2U5RgG77Yi6iQc54k554Q25Ocb55sO77Yj","BM9KzuvSzw1LBNq","y2XPzw50v2LKDgG","C3rHy2S","6iQc54k554Q25Ocb55sO55Qe5PwW5O2U6zUg77Yi5lIo5lQl5lU25Rwb5PEG5ywZ77Yj","zMLSBgvK","BwfW","zxjYB3iWmde","B25fzgDLC0rLBgv0zq","Cg9SEwXPBMu","mde1","B3bLCMf0B3i","BM9Kzq","Bwf4lwGTwZqWmhb4xsbVDMvYzMXVDY15lwf1Dg8","57Ut5P2F5PEL5PYF","zML0vMLLDW","mdeW","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iG","CMvHy3qTzMXVD19Fy29UDhjVBhmTyNv0Dg9U","CMfUz2u","C3rYAw5N","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq","zMX1C2G","6k+35AgR5yAz5OMN6kgm5lUJ56cb","5z+656ga5B2I54Q2","lwzSB3DFx25Vzgu","BwfYA2vYvw5PDhm","5BEY5yIG6zMK77Ym55U45ywZ54Q25Ocb5BEY6kEJ6zMK5PwW5O2U6zUg57Ur5A6A","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","BMfTzq","B25ezwXLDgu","A2v5Dxa","CMvHy3qTzMXVD19FBM9Kzs0","xNjNyLWO","zgLZDgfUy2u","6BYG5Qch5OYj5lIl","ugfYzw50ig5VzguG","yxr0CI4","Aw5Uzxjive1m","C2uTCMvZAxPL","DxnLu3LUy0v4DgvYBMfSu3rVCMvxAxrOu2vSzwn0B3i","DMLLD3bVCNrjBML0AwfSAxPLza","tgLUzq","i2q5zdLKoq","BwfYA2vYu3rHCNq","AgfUzgXLqM91BMrZ","DxnLrM9YBq","Aw5SAw5Lu2nYAxb0","vg9W","BMf0AxzLrxzLBNq","Bg9N","iZuYyZqXyq","x19UB3nLBgvJDa","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","5A2x5l2t57kx57Ug","y3vYCMvUDenHBNzHC0LK"];return _0x2cf8=function(){return Be},_0x2cf8()}function _0x2299(Be,l){Be=Be-330;const L=_0x2cf8();let z=L[Be];if(_0x2299.imWTpF===void 0){var de=function(dx){const c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let rt="",Nt="";for(let Fe=0,Dn,Ln,St=0;Ln=dx.charAt(St++);~Ln&&(Dn=Fe%4?Dn*64+Ln:Ln,Fe++%4)?rt+=String.fromCharCode(255&Dn>>(-2*Fe&6)):0)Ln=c.indexOf(Ln);for(let Fe=0,Dn=rt.length;Fe<Dn;Fe++)Nt+="%"+("00"+rt.charCodeAt(Fe).toString(16)).slice(-2);return decodeURIComponent(Nt)};_0x2299.ayWTMo=de,_0x2299.dBDsli={},_0x2299.imWTpF=!0}const C0=L[0],lx=Be+C0,ze=_0x2299.dBDsli[lx];return ze?z=ze:(z=_0x2299.ayWTMo(z),_0x2299.dBDsli[lx]=z),z}const c=_0x2299;var rt=document.createElement(c(799));rt[c(1338)]=`.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.ConfigEditor-module__configEditor__dinNG{width:100%;height:100%;display:flex;flex-direction:column}.ConfigEditor-module__configEditor__dinNG .ant-layout{background:#f5f5f5}.ConfigEditor-module__configEditor__dinNG .ant-layout-sider{background:#fff}.ConfigEditor-module__configEditor__dinNG .ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding:8px 0}.ConfigEditor-module__configEditor__dinNG .ant-list-item{padding:8px 12px}.ConfigEditor-module__canvasGrid__yL2Pn{background-image:linear-gradient(#e8e8e8 1px,transparent 1px),linear-gradient(90deg,#e8e8e8 1px,transparent 1px);background-size:20px 20px}.ConfigEditor-module__nodeSelected__CePHY{box-shadow:0 0 0 2px #1890ff,0 0 10px #1890ff4d}.ConfigEditor-module__dragging__w3tvz{cursor:grabbing!important;opacity:.8}.ConfigEditor-module__toolbarBtn__vRYDU{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.ConfigEditor-module__toolbarBtn__vRYDU:hover{background-color:#f3f4f6}.ConfigEditor-module__toolbarBtn__vRYDU.ConfigEditor-module__active__nREu2{background-color:#dbeafe;color:#2563eb}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item{margin-bottom:12px}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item-label{padding-bottom:4px}.ConfigEditor-module__materialItem__rDby0{transition:all .2s}.ConfigEditor-module__materialItem__rDby0:hover{background-color:#f9fafb}.ConfigEditor-module__materialItem__rDby0.ConfigEditor-module__selected__rIJzf{background-color:#eff6ff;box-shadow:0 0 0 2px #60a5fa}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar{width:6px;height:6px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb:hover{background:#a8a8a8}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.m-0{margin:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.\\!mr-0{margin-right:0!important}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\\[400px\\]{max-height:400px}.w-0\\.5{width:.125rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\\[180px\\]{min-width:180px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\\!bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\\/50{background-color:#eff6ff80}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\\/10{background-color:#3b82f61a}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1)) }.ring-opacity-50{--tw-ring-opacity: .5 }.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.file\\:mr-4::file-selector-button{margin-right:1rem}.file\\:rounded-full::file-selector-button{border-radius:9999px}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-blue-50::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.file\\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-semibold::file-selector-button{font-weight:600}.file\\:text-blue-700::file-selector-button{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.hover\\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:file\\:bg-blue-100::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1)) }
|
|
2
|
-
/*$vite$:1*/`,document[c(1183)].appendChild(rt);function Nt(e){const n=c;return e&&e[n(647)]&&Object.prototype[n(1607)].call(e,n(795))?e[n(795)]:e}var Fe={},Dn={exports:{}},Ln;function St(){const e=c;return Ln||(Ln=1,(function(n){const t=e;function o(x){return x&&x[_0x2299(647)]?x:{default:x}}n[t(1954)]=o,n[t(1954)][t(647)]=!0,n.exports[t(795)]=n.exports})(Dn)),Dn[e(1954)]}var kt={},Zo;function ls(){const e=c;if(Zo)return kt;Zo=1,Object[e(1038)](kt,e(647),{value:!0}),kt[e(795)]=void 0;const n={items_per_page:e(1994),jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:e(1406),prev_5:e(458),next_5:e(1259),prev_3:e(1157),next_3:e(1202),page_size:"页码"};return kt.default=n,kt}var Pt={},It={},At={},jt={},Ko;function ds(){const e=c;return Ko||(Ko=1,Object[e(1038)](jt,e(647),{value:!0}),jt.commonLocale=void 0,jt[e(469)]={yearFormat:e(699),dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),jt}var Ro;function us(){const e=c;if(Ro)return At;Ro=1,Object[e(1038)](At,e(647),{value:!0}),At.default=void 0;var n=ds();function t(s){"@babel/helpers - typeof";const d=e;return t=typeof Symbol=="function"&&d(544)==typeof Symbol.iterator?function(f){return typeof f}:function(f){const b=d;return f&&b(404)==typeof Symbol&&f[b(1214)]===Symbol&&f!==Symbol[b(1197)]?b(544):typeof f},t(s)}function o(s,d){const f=e;var b=Object[f(771)](s);if(Object[f(1048)]){var g=Object[f(1048)](s);d&&(g=g[f(1211)](function(m){const h=f;return Object.getOwnPropertyDescriptor(s,m)[h(717)]})),b[f(557)][f(1824)](b,g)}return b}function x(s){const d=e;for(var f=1;f<arguments.length;f++){var b=arguments[f]!=null?arguments[f]:{};f%2?o(Object(b),!0)[d(644)](function(g){r(s,g,b[g])}):Object[d(730)]?Object[d(1748)](s,Object.getOwnPropertyDescriptors(b)):o(Object(b)).forEach(function(g){Object[d(1038)](s,g,Object.getOwnPropertyDescriptor(b,g))})}return s}function r(s,d,f){const b=e;return d=i(d),d in s?Object[b(1038)](s,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[d]=f,s}function i(s){const d=e;var f=a(s,d(1863));return d(544)==t(f)?f:String(f)}function a(s,d){const f=e;if(f(2151)!=t(s)||!s)return s;var b=s[Symbol[f(1012)]];if(b!==void 0){var g=b.call(s,d);if(f(2151)!=t(g))return g;throw new TypeError(f(1098))}return(d==="string"?String:Number)(s)}var u=x(x({},n.commonLocale),{},{locale:e(999),today:"今天",now:"此刻",backToToday:e(2128),ok:"确定",timeSelect:e(1820),dateSelect:"选择日期",weekSelect:e(920),clear:"清除",week:"周",month:"月",year:"年",previousMonth:e(652),nextMonth:"下个月 (翻页下键)",monthSelect:e(1667),yearSelect:e(1806),decadeSelect:e(2069),previousYear:e(1864),nextYear:e(341),previousDecade:e(1138),nextDecade:e(1146),previousCentury:e(747),nextCentury:e(814),yearFormat:e(376),cellDateFormat:"D",monthBeforeYear:!1});return At[e(795)]=u,At}var Yt={},_o;function Jo(){const e=c;if(_o)return Yt;_o=1,Object[e(1038)](Yt,e(647),{value:!0}),Yt[e(795)]=void 0;const n={placeholder:"请选择时间",rangePlaceholder:[e(1164),e(1818)]};return Yt[e(795)]=n,Yt}var Fo;function Qo(){const e=c;if(Fo)return It;Fo=1;var n=St()[e(795)];Object[e(1038)](It,e(647),{value:!0}),It[e(795)]=void 0;var t=n(us()),o=n(Jo());const x={lang:{placeholder:e(1560),yearPlaceholder:e(877),quarterPlaceholder:e(2034),monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:[e(2100),e(1857)],rangeYearPlaceholder:[e(1081),e(1351)],rangeMonthPlaceholder:["开始月份",e(1735)],rangeQuarterPlaceholder:[e(418),e(1509)],rangeWeekPlaceholder:[e(778),"结束周"],...t[e(795)]},timePickerLocale:{...o[e(795)]}};return x[e(852)].ok="确定",It[e(795)]=x,It}var $o;function fs(){const e=c;if($o)return Pt;$o=1;var n=St()[e(795)];Object[e(1038)](Pt,e(647),{value:!0}),Pt[e(795)]=void 0;var t=n(Qo());return Pt[e(795)]=t[e(795)],Pt}var er;function hs(){const e=c;if(er)return Fe;er=1;var n=St()[e(795)];Object.defineProperty(Fe,"__esModule",{value:!0}),Fe[e(795)]=void 0;var t=n(ls()),o=n(fs()),x=n(Qo()),r=n(Jo());const i=e(1619),a={locale:e(555),Pagination:t.default,DatePicker:x[e(795)],TimePicker:r[e(795)],Calendar:o[e(795)],global:{placeholder:e(1434),close:"关闭",sortable:e(1236)},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:e(1019),filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:e(1587),selectAll:e(1578),selectInvert:e(1931),selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:e(900),collapse:e(1742),triggerDesc:e(732),triggerAsc:e(456),cancelSort:e(1315)},Modal:{okText:"确定",cancelText:"取消",justOkText:e(425)},Tour:{Next:e(1909),Previous:e(1016),Finish:e(1471)},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:e(1002),itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:e(1231),deselectAll:e(1433),removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:e(1203),removeFile:"删除文件",uploadError:e(1799),previewFile:e(1281),downloadFile:e(1714)},Empty:{description:e(1587)},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:e(1258),expand:"展开",collapse:"收起"},Form:{optional:e(568),defaultValidateMessages:{default:e(2086),required:e(740),enum:"${label}必须是其中一个[${enum}]",whitespace:e(933),date:{format:e(1729),parse:e(709),invalid:e(1511)},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:e(1615),min:e(1979),max:"${label}最多${max}个字符",range:e(1340)},number:{len:e(1664),min:e(1075),max:e(1665),range:e(1336)},array:{len:e(1047),min:"最少${min}个${label}",max:e(802),range:e(929)},pattern:{mismatch:e(1760)}}},QRCode:{expired:e(874),refresh:e(1132),scanned:e(1120)},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:e(1022)}};return Fe.default=a,Fe}var M0,nr;function bs(){return nr||(nr=1,M0=hs()),M0}var gs=bs();const ys=Nt(gs),ms=e=>(n,t,o)=>{const x=c;return o[x(1834)]=(r,i,...a)=>{const u=x,s=typeof r=="function"?lx[u(702)](r):r;return n(s,i,...a)},e(o[x(1834)],t,o)},ws=ms;function vs(e){return Array.isArray(e)}function tr(e){const n=c,t=[];for(const o of Object.keys(e)){t[n(557)](o);const x=e[o];if(x!==null&&typeof x===n(2151)&&!Array[n(2018)](x))for(const r of Object.keys(x))t[n(557)](o+"."+r)}return t}function ps(e,n,t){const o=e.sample;if(vs(o)){if(n!=null&&t!=null){const x=o.find(r=>r[n]===t);if(x)return x}return{}}return o}function xr(e,n,t,o){const x=c,r=ps(e,t,o),i={...r};if(n&&typeof n===x(2151)&&!Array[x(2018)](n))return{...i,...n};if(Array[x(2018)](n)){const a={...i};for(const u of n){if(!u||typeof u!="object")continue;const s=u;s[x(847)]!=null&&(a[String(s[x(847)])]=s[x(1462)])}return a}return i}const zs={id:"_",name:"_",sample:{}};function B0(e,n,t){const o=c,x=e.boundDatasetId!=null?String(e[o(1582)]).trim():"",r=x?t[o(438)](a=>a.id===x):void 0,i=r??zs;try{const a=xr(i,n,e[o(2050)],e[o(1733)]);return new Function(o(1405),e[o(1397)])(a)===!0}catch(a){return console[o(1794)](o(1131)+e[o(1872)]+"]:",a),!1}}function or(e,n,t){for(const o of e)if(B0(o,n,t))return o}function rr(e,n){const t=c;for(const o of e){for(const x of o[t(1271)][t(673)])x[t(1582)]===n&&(x[t(1582)]=null,x[t(2050)]=null,x[t(1733)]=null);o[t(1246)]==="group"&&o[t(2099)]?.[t(402)]&&rr(o[t(2099)],n)}}function D0(e){const n=c;for(const t of e){for(const o of t.contentInfo[n(673)])delete o[n(525)];t[n(1246)]===n(1747)&&t[n(2099)]?.[n(402)]&&D0(t[n(2099)])}}const L0=(e,n)=>({id:e||ze[c(2016)](),name:n||c(1785),nodes:[],canvasConfig:{width:1920,height:1080,background:c(1385),showGrid:!0},viewport:{scale:1,positionX:0,positionY:0},selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null,history:{past:[],future:[]}}),Cs=()=>{const e=c,n=L0();return{id:ze[e(2016)](),name:e(367),canvases:[n],currentCanvasId:n.id}},ir=Cs(),qn=ir[c(519)][0],Ms={root:ir,materials:[],mode:"select",lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:qn[c(2110)],canvas:qn.canvasConfig,viewport:qn[c(1194)],selectedNodeId:qn[c(1759)],selectedNodeIds:qn[c(560)],selectedStatusId:qn[c(1614)],history:qn.history},vn=(e,n,t)=>({id:ze.nanoid(),type:e,targetId:n,payload:t,timestamp:Date.now()}),qe=C0.create()(ws((e,n)=>({...Ms,addCanvas:t=>{const o=c,x=L0(ze[o(2016)](),t||o(1225)+(n()[o(867)][o(519)][o(402)]+1));return e(r=>{const i=o;r[i(867)][i(519)][i(557)](x),r[i(867)].currentCanvasId=x.id;const a=x;r[i(2110)]=a[i(2110)],r[i(1678)]=a[i(480)],r[i(1194)]=a[i(1194)],r[i(1759)]=a[i(1759)],r.selectedNodeIds=a[i(560)],r.selectedStatusId=a[i(1614)],r.history=a[i(885)]}),x.id},removeCanvas:t=>{e(o=>{const x=_0x2299,r=o[x(867)][x(519)][x(1470)](i=>i.id===t);if(r!==-1&&!(o[x(867)][x(519)][x(402)]<=1)&&(o[x(867)].canvases[x(1226)](r,1),o[x(867)][x(1898)]===t)){const i=o.root[x(519)][0];o[x(867)][x(1898)]=i.id,o[x(2110)]=i.nodes,o[x(1678)]=i.canvasConfig,o[x(1194)]=i[x(1194)],o[x(1759)]=i.selectedNodeId,o[x(560)]=i.selectedNodeIds,o[x(1614)]=i.selectedStatusId,o[x(885)]=i[x(885)]}})},switchCanvas:t=>{e(o=>{const x=_0x2299,r=o[x(867)][x(519)][x(438)](i=>i.id===t);r&&(o[x(867)][x(1898)]=t,o.nodes=r.nodes,o[x(1678)]=r[x(480)],o.viewport=r[x(1194)],o[x(1759)]=r[x(1759)],o[x(560)]=r[x(560)],o[x(1614)]=r[x(1614)],o[x(885)]=r.history)})},updateCanvasName:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)][r(519)][r(438)](a=>a.id===t);i&&(i[r(1872)]=o)})},getCurrentCanvas:()=>{const t=c,o=n();return o.root[t(519)][t(438)](x=>x.id===o[t(867)][t(1898)])},setSelectedNodeIds:t=>{e(o=>{const x=_0x2299,r=o[x(867)][x(519)].find(i=>i.id===o[x(867)][x(1898)]);r&&(r[x(560)]=t,o.selectedNodeIds=t)})},addSelectedNodeId:t=>{e(o=>{const x=_0x2299,r=o.root.canvases[x(438)](i=>i.id===o[x(867)].currentCanvasId);r&&!r.selectedNodeIds.includes(t)&&(r[x(560)].push(t),o[x(560)]=r[x(560)])})},removeSelectedNodeId:t=>{e(o=>{const x=_0x2299,r=o[x(867)][x(519)][x(438)](i=>i.id===o.root.currentCanvasId);r&&(r.selectedNodeIds=r[x(560)][x(1211)](i=>i!==t),o[x(560)]=r.selectedNodeIds)})},clearSelectedNodeIds:()=>{e(t=>{const o=_0x2299,x=t[o(867)][o(519)][o(438)](r=>r.id===t.root[o(1898)]);x&&(x.selectedNodeIds=[],t[o(560)]=[])})},addNode:(t,o=!0)=>{e(x=>{const r=_0x2299,i=x[r(867)].canvases.find(u=>u.id===x.root[r(1898)]);if(!i)return;const a={...t,id:t.id||ze[r(2016)]()};i[r(2110)][r(557)](a),x[r(2110)]=i[r(2110)],o&&(i[r(1759)]=a.id,x[r(1759)]=a.id,i[r(885)][r(1520)][r(557)](vn(r(1919),a.id)),x[r(885)]=i[r(885)])})},updateNode:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)][r(519)][r(438)](u=>u.id===x[r(867)].currentCanvasId);if(!i)return;const a=i.nodes[r(438)](u=>u.id===t);a&&(o[r(500)]&&Object[r(937)](a.normalStyle,o[r(500)]),o[r(1271)]&&(a[r(1271)]={...a[r(1271)],...o.contentInfo}),o[r(1872)]&&(a[r(1872)]=o[r(1872)]),o[r(1292)]&&Object[r(937)](a[r(1292)],o[r(1292)]),o[r(2099)]&&(a[r(2099)]=o[r(2099)]),i[r(885)][r(1520)].push(vn(r(1558),t,o)),x[r(885)]=i[r(885)],x[r(2110)]=i[r(2110)])})},updateNodeStyle:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)][r(519)].find(u=>u.id===x.root[r(1898)]);if(!i)return;const a=i[r(2110)].find(u=>u.id===t);a&&(Object[r(937)](a[r(500)],o),i[r(885)][r(1520)][r(557)](vn(r(1558),t,{normalStyle:o})),x.history=i.history,x.nodes=i.nodes)})},updateNodeContent:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)][r(519)].find(u=>u.id===x[r(867)][r(1898)]);if(!i)return;const a=i[r(2110)].find(u=>u.id===t);a&&(a[r(1271)]={...a[r(1271)],...o},i[r(885)][r(1520)][r(557)](vn(r(1558),t,{contentInfo:o})),x[r(885)]=i[r(885)],x[r(2110)]=i[r(2110)])})},updateNodeControl:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)][r(519)][r(438)](u=>u.id===x[r(867)][r(1898)]);if(!i)return;const a=i[r(2110)].find(u=>u.id===t);a&&(Object[r(937)](a[r(1292)],o),i[r(885)].past[r(557)](vn("PROPERTY_CHANGE",t,{controlInfo:o})),x[r(885)]=i[r(885)],x[r(2110)]=i[r(2110)])})},removeNode:t=>{e(o=>{const x=_0x2299,r=o[x(867)].canvases[x(438)](a=>a.id===o.root[x(1898)]);if(!r)return;const i=r[x(2110)][x(1470)](a=>a.id===t);i!==-1&&(r[x(2110)][x(1226)](i,1),o[x(2110)]=r.nodes,r.selectedNodeId===t&&(r[x(1759)]=null,o[x(1759)]=null,r[x(1614)]=null,o[x(1614)]=null),r[x(560)]=r[x(560)][x(1211)](a=>a!==t),o[x(560)]=r.selectedNodeIds,r[x(885)][x(1520)][x(557)](vn(x(411),t)),o.history=r[x(885)])})},selectNode:t=>{e(o=>{const x=_0x2299,r=o.root[x(519)][x(438)](i=>i.id===o[x(867)].currentCanvasId);r&&(r[x(1759)]=t,o[x(1759)]=t,r.selectedStatusId=null,o[x(1614)]=null,t&&(r[x(885)].past[x(557)](vn(x(1919),t)),o[x(885)]=r[x(885)]))})},bringToFront:t=>{e(o=>{const x=_0x2299,r=o[x(867)][x(519)][x(438)](u=>u.id===o[x(867)].currentCanvasId);if(!r)return;const i=r.nodes[x(1470)](u=>u.id===t);if(i===-1||i===r[x(2110)].length-1)return;const[a]=r[x(2110)][x(1226)](i,1);r.nodes[x(557)](a),o[x(2110)]=r[x(2110)],r[x(885)].past[x(557)](vn(x(1558),t,{zOrder:x(759)})),o.history=r.history})},sendToBack:t=>{e(o=>{const x=_0x2299,r=o[x(867)][x(519)].find(u=>u.id===o[x(867)][x(1898)]);if(!r)return;const i=r[x(2110)].findIndex(u=>u.id===t);if(i<=0)return;const[a]=r[x(2110)][x(1226)](i,1);r[x(2110)][x(2125)](a),o.nodes=r.nodes,r[x(885)].past[x(557)](vn(x(1558),t,{zOrder:x(666)})),o[x(885)]=r[x(885)]})},addStatus:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)].canvases[r(438)](s=>s.id===x.root[r(1898)]);if(!i)return;const a=i[r(2110)][r(438)](s=>s.id===t);if(!a)return;const u={...o,id:ze[r(2016)]()};a[r(1271)].statusList[r(557)](u),i[r(885)][r(1520)][r(557)](vn(r(1941),t,{statusId:u.id})),x[r(885)]=i[r(885)]})},removeStatus:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(867)][r(519)][r(438)](s=>s.id===x[r(867)][r(1898)]);if(!i)return;const a=i[r(2110)][r(438)](s=>s.id===t);if(!a)return;const u=a[r(1271)].statusList[r(1470)](s=>s.id===o);u!==-1&&(a[r(1271)][r(673)][r(1226)](u,1),a[r(1271)].currentStatusId===o&&(a[r(1271)][r(629)]=void 0),i.selectedStatusId===o&&(i[r(1614)]=null,x[r(1614)]=null))})},updateStatus:(t,o,x)=>{e(r=>{const i=_0x2299,a=r[i(867)][i(519)].find(d=>d.id===r[i(867)].currentCanvasId);if(!a)return;const u=a.nodes.find(d=>d.id===t);if(!u)return;const s=u[i(1271)][i(673)][i(438)](d=>d.id===o);s&&Object[i(937)](s,x)})},selectStatus:t=>{e(o=>{const x=_0x2299,r=o.root[x(519)].find(i=>i.id===o[x(867)][x(1898)]);r&&(r[x(1614)]=t,o[x(1614)]=t)})},evaluateCurrentStatus:(t,o)=>{const x=c,r=n(),i=r.root[x(519)][x(438)](s=>s.id===r[x(867)][x(1898)]);if(!i)return;const a=i.nodes[x(438)](s=>s.id===t);if(!a)return;const{dataPool:u}=n();for(const s of a[x(1271)][x(673)])if(B0(s,o,u))return s.id},addDataPoolItem:t=>{const o=c,x=ze[o(2016)]();return e(r=>{const i=o;let a={};t[i(2022)]&&typeof t.sample===i(2151)&&(Array[i(2018)](t[i(2022)]),a=t.sample),r[i(1223)][i(557)]({...t,id:x,sample:a})}),x},updateDataPoolItem:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(1223)][r(438)](a=>a.id===t);i&&(o[r(1872)]!==void 0&&(i[r(1872)]=o[r(1872)]),o[r(2022)]!==void 0&&(o[r(2022)]&&typeof o[r(2022)]===r(2151)?i[r(2022)]=o[r(2022)]:i[r(2022)]={}))})},removeDataPoolItem:t=>{e(o=>{const x=_0x2299,r=o[x(1223)][x(1470)](i=>i.id===t);if(r!==-1){o.dataPool.splice(r,1);for(const i of o[x(867)][x(519)])rr(i[x(2110)],t)}})},setDataPool:t=>{e(o=>{const x=_0x2299;o[x(1223)]=t.map(r=>{const i=x;let a={};return r.sample&&typeof r[i(2022)]===i(2151)&&(a=r[i(2022)]),{...r,sample:a}})})},setEventFlow:t=>{e(o=>{const x=_0x2299;o[x(1303)]={eventBlocks:t[x(2080)]??[],eventRoots:t.eventRoots??[],editingEventRootId:t.editingEventRootId??null,isEditingEventFlow:t[x(1140)]??!1}})},setExternalHandlerCatalog:t=>{e(o=>{const x=_0x2299,r=new Set;o[x(1957)]=[];for(const i of t){const a=String(i.key??"")[x(2053)]();!a||r.has(a)||(r[x(1531)](a),o[x(1957)].push({key:a,label:String(i[x(700)]??"").trim()||a,description:i[x(886)]}))}})},addMaterial:t=>{e(o=>{const x=_0x2299;if(o.materials[x(1548)](a=>a.name===t.name))return;const i={...t,id:ze[x(2016)]()};o[x(1636)][x(557)](i)})},updateMaterial:(t,o)=>{e(x=>{const r=_0x2299,i=x.materials.find(a=>a.id===t);i&&Object[r(937)](i,o)})},removeMaterial:t=>{e(o=>{const x=_0x2299,r=o[x(1636)].findIndex(i=>i.id===t);r!==-1&&o.materials[x(1226)](r,1)})},setViewport:t=>{e(o=>{const x=_0x2299,r=o[x(867)].canvases[x(438)](i=>i.id===o.root[x(1898)]);r&&(Object[x(937)](r[x(1194)],t),o[x(1194)]=r.viewport)})},setCanvasConfig:t=>{e(o=>{const x=_0x2299,r=o[x(867)].canvases[x(438)](i=>i.id===o.root[x(1898)]);r&&(r.canvasConfig={...r[x(480)],...t},o[x(1678)]=r[x(480)])})},setMode:t=>{e(o=>{const x=_0x2299;o[x(875)]=t})},startLineDrawing:t=>{e(o=>{const x=_0x2299;o.mode=x(1541),o[x(1313)]={isDrawing:!0,material:t,startPoint:null,endPoint:null}})},updateLineDrawing:t=>{e(o=>{const x=_0x2299;o[x(1313)].isDrawing&&(o[x(1313)][x(1468)]=t)})},endLineDrawing:()=>{e(t=>{const o=_0x2299;t[o(875)]=o(1087),t[o(1313)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{e(t=>{const o=_0x2299;t[o(875)]="select",t[o(1313)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{e(t=>{const o=_0x2299,x=t[o(867)].canvases[o(438)](i=>i.id===t[o(867)].currentCanvasId);if(!x)return;const r=x[o(885)][o(1520)][o(1644)]();r&&(x[o(885)][o(382)].push(r),t[o(885)]=x.history)})},redo:()=>{e(t=>{const o=_0x2299,x=t[o(867)].canvases[o(438)](i=>i.id===t[o(867)][o(1898)]);if(!x)return;const r=x[o(885)].future.pop();r&&(x[o(885)][o(1520)][o(557)](r),t.history=x[o(885)])})},recordEvent:t=>{e(o=>{const x=_0x2299,r=o.root[x(519)][x(438)](i=>i.id===o[x(867)][x(1898)]);r&&(r.history[x(1520)][x(557)](t),r[x(885)].future=[],o[x(885)]=r[x(885)])})},exportScheme:()=>{const t=c,o=n();return{version:t(1978),root:o[t(867)],materials:o[t(1636)],dataPool:o[t(1223)],eventFlow:o.eventFlow,metadata:{name:o.root.name,description:"",createdAt:new Date()[t(2123)](),updatedAt:new Date()[t(2123)]()}}},importScheme:t=>{e(o=>{const x=_0x2299;if(t.root){o.root=t[x(867)],o.dataPool=t[x(1223)]??[],t[x(1303)]&&(o[x(1303)]={eventBlocks:t[x(1303)][x(2080)]??[],eventRoots:t.eventFlow[x(1761)]??[],editingEventRootId:t[x(1303)][x(939)]??null,isEditingEventFlow:t.eventFlow.isEditingEventFlow??!1});const r=o[x(867)][x(519)][x(438)](i=>i.id===o.root[x(1898)])||o[x(867)].canvases[0];r&&(o[x(867)][x(1898)]=r.id,o[x(2110)]=r[x(2110)],o[x(1678)]=r[x(480)],o[x(1194)]=r.viewport,o.selectedNodeId=r.selectedNodeId,o[x(560)]=r.selectedNodeIds,o[x(1614)]=r[x(1614)],o[x(885)]=r[x(885)])}else{const r=L0();r[x(2110)]=t[x(2110)]||[],o[x(867)][x(519)]=[r],o[x(867)][x(1898)]=r.id,o[x(1223)]=t[x(1223)]??[],t[x(1303)]&&(o[x(1303)]={eventBlocks:t[x(1303)][x(2080)]??[],eventRoots:t[x(1303)].eventRoots??[],editingEventRootId:t[x(1303)][x(939)]??null,isEditingEventFlow:t[x(1303)][x(1140)]??!1}),o[x(2110)]=r[x(2110)],o[x(1678)]=r[x(480)],o[x(1194)]=t[x(1194)]||r.viewport,o[x(1759)]=null,o[x(1614)]=null,o[x(885)]={past:[],future:[]}}for(const r of o[x(867)].canvases)D0(r[x(2110)])})},exportCanvas:t=>{const o=c,x=n(),r=t||x.root.currentCanvasId,i=x.root.canvases[o(438)](a=>a.id===r);if(!i)throw new Error(o(1225)+r+" 不存在");return{version:o(1978),canvas:i,metadata:{name:i[o(1872)],description:"",exportedAt:new Date()[o(2123)]()}}},importCanvas:(t,o)=>{e(x=>{const r=_0x2299,i=t[r(1678)],a=o||x[r(867)][r(1898)],u=x.root[r(519)][r(438)](s=>s.id===a);if(u)u[r(1872)]=i[r(1872)],u[r(2110)]=i[r(2110)]||[],u[r(480)]=i.canvasConfig,u[r(1194)]=i[r(1194)],u[r(1759)]=null,u[r(560)]=[],u[r(1614)]=null,u[r(885)]=i[r(885)]||{past:[],future:[]},a===x[r(867)][r(1898)]&&(x[r(2110)]=u[r(2110)],x[r(1678)]=u[r(480)],x[r(1194)]=u[r(1194)],x[r(1759)]=u[r(1759)],x[r(560)]=u.selectedNodeIds,x[r(1614)]=u[r(1614)],x[r(885)]=u[r(885)]);else{const s={...i,id:ze[r(2016)](),selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null};x[r(867)][r(519)][r(557)](s),x[r(867)][r(1898)]=s.id,x[r(2110)]=s[r(2110)],x[r(1678)]=s[r(480)],x[r(1194)]=s[r(1194)],x[r(1759)]=s[r(1759)],x[r(560)]=s[r(560)],x[r(1614)]=s[r(1614)],x[r(885)]=s[r(885)]}for(const s of x[r(867)][r(519)])D0(s[r(2110)])})},addEventBlock:t=>{const o=c,x=ze[o(2016)]();return e(r=>{const i=o;r.eventFlow[i(2080)][i(557)]({...t,id:x})}),x},upsertEventBlock:t=>{e(o=>{const x=_0x2299,r=o[x(1303)][x(2080)].findIndex(i=>i.id===t.id);r!==-1?o[x(1303)][x(2080)][r]={...t}:o[x(1303)][x(2080)][x(557)]({...t})})},updateEventBlock:(t,o)=>{e(x=>{const r=_0x2299,i=x[r(1303)].eventBlocks[r(438)](a=>a.id===t);i&&Object[r(937)](i,o)})},removeEventBlock:t=>{e(o=>{const x=_0x2299,r=o[x(1303)].eventBlocks[x(1470)](i=>i.id===t);r!==-1&&o.eventFlow[x(2080)][x(1226)](r,1)})},addEventRoot:t=>{const o=c,x=ze[o(2016)]();return e(r=>{const i=o;r.eventFlow[i(1761)][i(557)]({...t,id:x})}),x},updateEventRoot:(t,o)=>{e(x=>{const r=_0x2299,i=x.eventFlow[r(1761)].find(a=>a.id===t);i&&Object[r(937)](i,o)})},removeEventRoot:t=>{e(o=>{const x=_0x2299,r=o[x(1303)][x(1761)][x(1470)](i=>i.id===t);r!==-1&&o[x(1303)].eventRoots[x(1226)](r,1)})},setEditingEventRoot:t=>{e(o=>{const x=_0x2299;o[x(1303)][x(939)]=t})},setIsEditingEventFlow:t=>{e(o=>{const x=_0x2299;o[x(1303)].isEditingEventFlow=t})},bindNodeEvent:(t,o,x)=>{const r=ze.nanoid();return e(i=>{const a=_0x2299;i[a(1303)][a(1761)][a(557)]({id:r,bindNodeId:t,eventType:o,flowData:x,enabled:!0})}),r},unbindNodeEvent:(t,o,x)=>{e(r=>{const i=_0x2299,a=r.eventFlow.eventRoots[i(1470)](u=>{const s=i;return u[s(482)]!==t||u.eventType!==o?!1:o==="external"?(u[s(1248)]||"").trim()===(x||"")[s(2053)]():!0});a!==-1&&r[i(1303)][i(1761)].splice(a,1)})},getNodeEventRoots:t=>{const o=c;return n().eventFlow[o(1761)][o(1211)](x=>x[o(482)]===t)}}))),ar=[{id:ze[c(2016)](),name:"矩形",type:c(1976),src:c(576)+encodeURIComponent(c(1054))},{id:ze[c(2016)](),name:"圆形",type:c(1976),src:c(576)+encodeURIComponent(c(1064))},{id:ze[c(2016)](),name:c(1917),type:c(1976),src:c(576)+encodeURIComponent(c(1944))},{id:ze[c(2016)](),name:"阀门",type:"IMAGE",src:c(576)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M10 20 L30 10 L50 20 L50 40 L30 50 L10 40 Z" fill="#bfbfbf" stroke="#595959" stroke-width="2"/><circle cx="30" cy="30" r="8" fill="#1890ff"/></svg>')},{id:ze[c(2016)](),name:"泵",type:c(1976),src:c(576)+encodeURIComponent(c(663))},{id:ze.nanoid(),name:"罐体",type:c(1976),src:c(576)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="80"><ellipse cx="30" cy="10" rx="25" ry="10" fill="#d9d9d9" stroke="#595959" stroke-width="2"/><rect x="5" y="10" width="50" height="60" fill="#f0f0f0" stroke="#595959" stroke-width="2"/><ellipse cx="30" cy="70" rx="25" ry="10" fill="#d9d9d9" stroke="#595959" stroke-width="2"/></svg>')},{id:ze.nanoid(),name:c(2062),type:"TEXT",content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:c(1613),color:c(1676),textAlign:"left"},valueStyle:{fontSize:14,fontWeight:c(1642),color:"#1890ff",textAlign:c(1484)}}},{id:ze[c(2016)](),name:"线条",type:"LINE",config:{thickness:2,lineWeight:2,color:c(1676),lineType:c(925)}}],N0=e=>({id:ze[c(2016)](),name:c(612),expression:c(2060),material:{...e,id:ze[c(2016)]()},boundDatasetId:null}),cr=(e,n,t)=>{const o=c;if(t?.[o(1246)]===o(684)&&t[o(2011)]?.[o(2110)]){const x=t[o(2011)][o(2110)][o(1849)](d=>({...d,id:ze[o(2016)]()}));let r=1/0,i=1/0,a=-1/0,u=-1/0;x[o(644)](d=>{const f=o,b=d[f(500)].x||0,g=d[f(500)].y||0,m=d.normalStyle.width||0,h=d[f(500)][f(2035)]||0;r=Math[f(782)](r,b),i=Math[f(782)](i,g),a=Math[f(1108)](a,b+m),u=Math.max(u,g+h)});const s=x[o(1849)](d=>({...d,normalStyle:{...d[o(500)],x:(d[o(500)].x||0)-r,y:(d[o(500)].y||0)-i,scale:void 0}}));return{id:ze[o(2016)](),name:t[o(1872)]||o(788),type:o(1747),normalStyle:{width:a-r,height:u-i,x:e,y:n},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:s}}return{id:ze[o(2016)](),name:o(1744),type:o(1642),normalStyle:{width:120,height:100,x:e,y:n,background:o(1436),padding:8},contentInfo:{statusList:t?[N0(t)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:it}=z[c(1969)],{Text:ux}=z[c(971)],sr=({onUploadSvg:e})=>{const n=c,{materials:t,addMaterial:o,removeMaterial:x,selectedStatusId:r,selectStatus:i,mode:a,lineDrawing:u,startLineDrawing:s,cancelLineDrawing:d}=qe(),[f,b]=L[n(1039)]([n(1926),"device",n(1083),n(1774)]),g=y=>{const v=n,w=new FileReader;return w.onload=C=>{const S=_0x2299,U=C.target?.result;o({name:y[S(1872)][S(490)](".svg",""),type:"IMAGE",src:U})},w[v(1232)](y),!1},m={basic:t[n(1211)](y=>["矩形","圆形",n(1917)][n(633)](y[n(1872)])),device:t[n(1211)](y=>["阀门","泵","罐体"][n(633)](y[n(1872)])||y[n(1246)]===n(1976)&&!["矩形","圆形","圆角矩形"][n(633)](y[n(1872)])&&y[n(1872)]!==n(1350)),text:t[n(1211)](y=>y[n(1246)]===n(1363)),line:t[n(1211)](y=>y[n(1246)]===n(1772)),group:t[n(1211)](y=>y[n(1246)]===n(684)&&y[n(2011)]?.[n(2110)]),custom:t[n(1211)](y=>y[n(1246)]==="CUSTOM"&&!y[n(2011)]?.[n(2110)]||y[n(1246)]===n(1976)&&!["矩形","圆形",n(1917),"阀门","泵","罐体"].includes(y[n(1872)]))},h=(y,v)=>{const w=n;y[w(632)][w(631)]=w(622),y[w(632)].setData(w(849),JSON.stringify(v));const C=y[w(2124)][w(1086)](".material-preview");C&&y.dataTransfer[w(1725)](C,20,20)},p=y=>{y[n(1246)]==="LINE"&&s(y)},M=(y,v=!1)=>{const w=n,C=v===!0,S=a==="line-draw"&&C&&u[w(1080)]?.id===y.id;return l.jsx(z[w(1542)][w(798)],{draggable:!C,onDragStart:U=>h(U,y),onClick:()=>C&&p(y),className:w(977)+(C?w(1072):"cursor-move")+w(1324)+w(1238)+w(1324)+(S?w(733):"")+w(472),actions:[C?l.jsx(z.Button,{type:w(1083),size:"small",icon:l[w(454)](de[w(1706)],{}),onClick:U=>{U[w(986)](),p(y)},children:"绘制"},"draw"):null,l[w(454)](z.Button,{type:w(1083),size:w(1261),danger:!0,icon:l[w(454)](de[w(1482)],{}),onClick:U=>{U.stopPropagation(),x(y.id)}},"delete")][w(1211)](Boolean),children:l[w(2088)]("div",{className:w(625)+(C?"":w(668)),children:[l[w(454)](w(1415),{className:"material-preview w-12 h-12 flex items-center justify-center bg-white rounded border border-gray-200",children:y[w(1246)]===w(1976)&&y[w(1935)]?l[w(454)](z[w(910)],{src:y[w(1935)],alt:y[w(1872)],width:40,height:40,preview:!1}):y[w(1246)]===w(1363)?l[w(454)](w(594),{className:w(826),children:"T"}):y.type==="LINE"?l[w(454)](w(1415),{className:"w-8 h-0.5 bg-gray-400"}):y[w(1246)]===w(684)&&y[w(2011)]?.[w(2110)]?l.jsx(w(594),{className:w(727),children:"G"}):l.jsx(w(594),{className:w(826),children:"?"})}),l[w(2088)](w(1415),{className:w(1076),children:[l[w(454)](ux,{strong:!0,className:w(1783),children:y.name}),l[w(2088)](w(1415),{className:"flex items-center gap-1",children:[l[w(454)](ux,{type:w(2008),className:w(1274),children:y[w(1246)]}),S&&l[w(454)](z[w(1362)],{color:w(864),className:w(1274),children:w(335)})]})]})]})},y.id)};return l[n(2088)](n(1415),{className:n(830),children:[l[n(2088)](n(1415),{className:n(1624),children:[l[n(454)]("h3",{className:n(1595),children:"物料库"}),l[n(454)](ux,{type:n(2008),className:n(412),children:n(1896)})]}),l[n(454)](n(1415),{className:"p-3 border-b border-gray-200",children:e?l[n(454)](z[n(577)],{icon:l[n(454)](de[n(845)],{}),block:!0,type:n(1632),onClick:()=>{const y=n;e()[y(807)](v=>{const w=y;console[w(1893)](w(1910),v)})},children:n(1708)}):l[n(454)](z.Upload,{accept:n(1329),beforeUpload:g,showUploadList:!1,children:l[n(454)](z[n(577)],{icon:l.jsx(de[n(845)],{}),block:!0,type:n(1632),children:n(1708)})})}),l[n(454)]("div",{className:n(1127),children:l[n(2088)](z[n(1969)],{activeKey:f,onChange:y=>b(y),ghost:!0,expandIconPosition:n(1830),children:[l[n(454)](it,{header:n(1867),children:l.jsx(z.List,{dataSource:m[n(1926)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(454)](z.Empty,{description:n(1451),image:z[n(1763)][n(514)]})}})},n(1926)),l[n(454)](it,{header:n(1908),children:l[n(454)](z[n(1542)],{dataSource:m[n(1625)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(454)](z[n(1763)],{description:n(1451),image:z[n(1763)][n(514)]})}})},"device"),l.jsx(it,{header:"文本",children:l[n(454)](z[n(1542)],{dataSource:m.text,renderItem:y=>M(y,!1),locale:{emptyText:l[n(454)](z.Empty,{description:n(1451),image:z.Empty[n(514)]})}})},"text"),l[n(2088)](it,{header:l[n(2088)](n(1415),{className:n(1228),children:[l[n(454)]("span",{children:"线条"}),a===n(1541)&&l[n(454)](z[n(1362)],{color:"blue",className:n(1274),children:n(465)})]}),children:[l.jsx(z[n(1542)],{dataSource:m[n(1774)],renderItem:y=>M(y,!0),locale:{emptyText:l[n(454)](z[n(1763)],{description:n(1451),image:z.Empty[n(514)]})}}),a===n(1541)&&l[n(2088)](n(1415),{className:n(333),children:[l[n(454)](n(1415),{children:n(1334)}),l[n(454)]("div",{children:"点击画布确定起点和终点"})]})]},n(1774)),m[n(1747)][n(402)]>0&&l.jsx(it,{header:"群组",children:l[n(454)](z[n(1542)],{dataSource:m.group,renderItem:y=>M(y,!1),locale:{emptyText:l[n(454)](z[n(1763)],{description:n(1451),image:z.Empty[n(514)]})}})},n(1747)),m[n(1987)][n(402)]>0&&l[n(454)](it,{header:"自定义",children:l[n(454)](z[n(1542)],{dataSource:m.custom,renderItem:y=>M(y,!1),locale:{emptyText:l[n(454)](z[n(1763)],{description:n(1451),image:z[n(1763)][n(514)]})}})},n(1987))]})}),l[n(454)](n(1415),{className:n(1071),children:l[n(454)](ux,{type:n(2008),className:n(1274),children:a==="line-draw"?l[n(454)](l[n(562)],{children:n(1423)}):l[n(454)](l[n(562)],{children:n(1309)})})})]})};var S0=function(e,n){return S0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){const x=_0x2299;t[x(374)]=o}||function(t,o){const x=_0x2299;for(var r in o)Object[x(1197)][x(1607)][x(667)](o,r)&&(t[r]=o[r])},S0(e,n)};function An(e,n){const t=c;if(typeof n!="function"&&n!==null)throw new TypeError(t(442)+String(n)+" is not a constructor or null");S0(e,n);function o(){const x=t;this[x(1214)]=e}e[t(1197)]=n===null?Object[t(1478)](n):(o.prototype=n[t(1197)],new o)}function Bs(e,n,t,o){function x(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function a(d){const f=_0x2299;try{s(o[f(813)](d))}catch(b){i(b)}}function u(d){try{s(o.throw(d))}catch(f){i(f)}}function s(d){const f=_0x2299;d[f(1428)]?r(d[f(1462)]):x(d.value)[f(1229)](a,u)}s((o=o.apply(e,n||[])).next())})}function lr(e,n){const t=c;var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},x,r,i,a=Object[t(1478)]((typeof Iterator===t(404)?Iterator:Object)[t(1197)]);return a[t(813)]=u(0),a[t(1161)]=u(1),a[t(1555)]=u(2),typeof Symbol===t(404)&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return s([d,f])}}function s(d){const f=t;if(x)throw new TypeError(f(1716));for(;a&&(a=0,d[0]&&(o=0)),o;)try{if(x=1,r&&(i=d[0]&2?r[f(1555)]:d[0]?r[f(1161)]||((i=r[f(1555)])&&i.call(r),0):r[f(813)])&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[d[0]&2,i[f(1462)]]),d[0]){case 0:case 1:i=d;break;case 4:return o[f(700)]++,{value:d[1],done:!1};case 5:o[f(700)]++,r=d[1],d=[0];continue;case 7:d=o.ops.pop(),o.trys[f(1644)]();continue;default:if(i=o[f(1705)],!(i=i[f(402)]>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){o.label=d[1];break}if(d[0]===6&&o[f(700)]<i[1]){o[f(700)]=i[1],i=d;break}if(i&&o[f(700)]<i[2]){o.label=i[2],o[f(459)][f(557)](d);break}i[2]&&o[f(459)].pop(),o[f(1705)][f(1644)]();continue}d=n[f(667)](e,o)}catch(b){d=[6,b],r=0}finally{x=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function at(e){const n=c;var t=typeof Symbol===n(404)&&Symbol[n(2153)],o=t&&e[t],x=0;if(o)return o[n(667)](e);if(e&&typeof e[n(402)]===n(1288))return{next:function(){return e&&x>=e.length&&(e=void 0),{value:e&&e[x++],done:!e}}};throw new TypeError(n(t?1638:648))}function fx(e,n){const t=c;var o=typeof Symbol===t(404)&&e[Symbol[t(2153)]];if(!o)return e;var x=o.call(e),r,i=[],a;try{for(;(n===void 0||n-- >0)&&!(r=x[t(813)]())[t(1428)];)i[t(557)](r[t(1462)])}catch(u){a={error:u}}finally{try{r&&!r[t(1428)]&&(o=x[t(1555)])&&o.call(x)}finally{if(a)throw a[t(598)]}}return i}function hx(e,n,t){const o=c;if(t||arguments[o(402)]===2)for(var x=0,r=n.length,i;x<r;x++)(i||!(x in n))&&(i||(i=Array.prototype.slice[o(667)](n,0,x)),i[x]=n[x]);return e[o(1291)](i||Array.prototype.slice[o(667)](n))}function ct(e){return this instanceof ct?(this.v=e,this):new ct(e)}function Ds(e,n,t){const o=c;if(!Symbol[o(1517)])throw new TypeError(o(1306));var x=t[o(1824)](e,n||[]),r,i=[];return r=Object[o(1478)]((typeof AsyncIterator=="function"?AsyncIterator:Object)[o(1197)]),u(o(813)),u(o(1161)),u("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(m){return function(h){return Promise[_0x2299(1762)](h).then(m,b)}}function u(m,h){x[m]&&(r[m]=function(p){return new Promise(function(M,y){i[_0x2299(557)]([m,p,M,y])>1||s(m,p)})},h&&(r[m]=h(r[m])))}function s(m,h){try{d(x[m](h))}catch(p){g(i[0][3],p)}}function d(m){const h=o;m[h(1462)]instanceof ct?Promise[h(1762)](m.value.v).then(f,b):g(i[0][2],m)}function f(m){s("next",m)}function b(m){s(o(1161),m)}function g(m,h){const p=o;m(h),i[p(1610)](),i[p(402)]&&s(i[0][0],i[0][1])}}function Ls(e){const n=c;if(!Symbol[n(1517)])throw new TypeError(n(1306));var t=e[Symbol[n(1517)]],o;return t?t[n(667)](e):(e=typeof at===n(404)?at(e):e[Symbol[n(2153)]](),o={},x("next"),x(n(1161)),x(n(1555)),o[Symbol[n(1517)]]=function(){return this},o);function x(i){o[i]=e[i]&&function(a){return new Promise(function(u,s){const d=_0x2299;a=e[i](a),r(u,s,a[d(1428)],a[d(1462)])})}}function r(i,a,u,s){const d=n;Promise[d(1762)](s)[d(1229)](function(f){i({value:f,done:u})},a)}}typeof SuppressedError===c(404)&&SuppressedError;function Ue(e){return typeof e===c(404)}function k0(e){const n=c;var t=function(x){const r=_0x2299;Error[r(667)](x),x[r(1846)]=new Error()[r(1846)]},o=e(t);return o[n(1197)]=Object[n(1478)](Error[n(1197)]),o[n(1197)].constructor=o,o}var P0=k0(function(e){return function(t){const o=_0x2299;e(this),this.message=t?t[o(402)]+o(1003)+t.map(function(x,r){const i=o;return r+1+") "+x[i(865)]()})[o(1507)](o(1626)):"",this.name=o(1593),this[o(1133)]=t}});function bx(e,n){const t=c;if(e){var o=e[t(2129)](n);0<=o&&e.splice(o,1)}}var Et=(function(){const e=c;function n(t){const o=_0x2299;this[o(1213)]=t,this[o(945)]=!1,this[o(445)]=null,this[o(460)]=null}return n[e(1197)][e(1515)]=function(){const t=e;var o,x,r,i,a;if(!this[t(945)]){this[t(945)]=!0;var u=this[t(445)];if(u)if(this._parentage=null,Array[t(2018)](u))try{for(var s=at(u),d=s[t(813)]();!d.done;d=s[t(813)]()){var f=d[t(1462)];f[t(837)](this)}}catch(M){o={error:M}}finally{try{d&&!d[t(1428)]&&(x=s[t(1555)])&&x[t(667)](s)}finally{if(o)throw o[t(598)]}}else u[t(837)](this);var b=this[t(1213)];if(Ue(b))try{b()}catch(M){a=M instanceof P0?M[t(1133)]:[M]}var g=this[t(460)];if(g){this[t(460)]=null;try{for(var m=at(g),h=m.next();!h[t(1428)];h=m[t(813)]()){var p=h.value;try{fr(p)}catch(M){a=a??[],M instanceof P0?a=hx(hx([],fx(a)),fx(M[t(1133)])):a.push(M)}}}catch(M){r={error:M}}finally{try{h&&!h.done&&(i=m.return)&&i[t(667)](m)}finally{if(r)throw r[t(598)]}}}if(a)throw new P0(a)}},n[e(1197)][e(1531)]=function(t){const o=e;var x;if(t&&t!==this)if(this.closed)fr(t);else{if(t instanceof n){if(t[o(945)]||t[o(1100)](this))return;t[o(1608)](this)}(this[o(460)]=(x=this._finalizers)!==null&&x!==void 0?x:[]).push(t)}},n.prototype._hasParent=function(t){const o=e;var x=this[o(445)];return x===t||Array[o(2018)](x)&&x.includes(t)},n[e(1197)][e(1608)]=function(t){const o=e;var x=this[o(445)];this._parentage=Array.isArray(x)?(x[o(557)](t),x):x?[x,t]:t},n[e(1197)][e(1421)]=function(t){const o=e;var x=this[o(445)];x===t?this._parentage=null:Array[o(2018)](x)&&bx(x,t)},n[e(1197)][e(837)]=function(t){var x=this[e(460)];x&&bx(x,t),t instanceof n&&t._removeParent(this)},n[e(1951)]=(function(){const t=e;var o=new n;return o[t(945)]=!0,o})(),n})(),dr=Et.EMPTY;function ur(e){const n=c;return e instanceof Et||e&&n(945)in e&&Ue(e.remove)&&Ue(e[n(1531)])&&Ue(e.unsubscribe)}function fr(e){const n=c;Ue(e)?e():e[n(1515)]()}var Ns={Promise:void 0},Ss={setTimeout:function(e,n){const t=c;for(var o=[],x=2;x<arguments[t(402)];x++)o[x-2]=arguments[x];return setTimeout[t(1824)](void 0,hx([e,n],fx(o)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hr(e){Ss[c(1078)](function(){throw e})}function br(){}function gx(e){e()}var I0=(function(e){const n=c;An(t,e);function t(o){const x=_0x2299;var r=e.call(this)||this;return r[x(808)]=!1,o?(r[x(1084)]=o,ur(o)&&o[x(1531)](r)):r[x(1084)]=Is,r}return t[n(1478)]=function(o,x,r){return new A0(o,x,r)},t[n(1197)][n(813)]=function(o){this[n(808)]||this._next(o)},t.prototype[n(598)]=function(o){this[n(808)]||(this.isStopped=!0,this._error(o))},t[n(1197)][n(1637)]=function(){const o=n;this.isStopped||(this[o(808)]=!0,this[o(1784)]())},t[n(1197)][n(1515)]=function(){const o=n;!this[o(945)]&&(this.isStopped=!0,e[o(1197)][o(1515)][o(667)](this),this[o(1084)]=null)},t[n(1197)]._next=function(o){const x=n;this[x(1084)][x(813)](o)},t[n(1197)][n(423)]=function(o){const x=n;try{this.destination[x(598)](o)}finally{this[x(1515)]()}},t[n(1197)][n(1784)]=function(){const o=n;try{this.destination[o(1637)]()}finally{this[o(1515)]()}},t})(Et),ks=(function(){const e=c;function n(t){this.partialObserver=t}return n[e(1197)][e(813)]=function(t){const o=e;var x=this[o(391)];if(x[o(813)])try{x[o(813)](t)}catch(r){yx(r)}},n.prototype[e(598)]=function(t){const o=e;var x=this[o(391)];if(x[o(598)])try{x[o(598)](t)}catch(r){yx(r)}else yx(t)},n[e(1197)].complete=function(){const t=e;var o=this[t(391)];if(o[t(1637)])try{o[t(1637)]()}catch(x){yx(x)}},n})(),A0=(function(e){An(n,e);function n(t,o,x){var i=e[_0x2299(667)](this)||this,a;return Ue(t)||!t?a={next:t??void 0,error:o??void 0,complete:x??void 0}:a=t,i.destination=new ks(a),i}return n})(I0);function yx(e){hr(e)}function Ps(e){throw e}var Is={closed:!0,next:br,error:Ps,complete:br},j0=(function(){const e=c;return typeof Symbol=="function"&&Symbol[e(1295)]||e(1628)})();function gr(e){return e}function As(e){const n=c;return e[n(402)]===0?gr:e[n(402)]===1?e[0]:function(o){return e[n(1833)](function(r,i){return i(r)},o)}}var xn=(function(){const e=c;function n(t){const o=_0x2299;t&&(this[o(721)]=t)}return n[e(1197)][e(1981)]=function(t){const o=e;var x=new n;return x[o(1717)]=this,x[o(1854)]=t,x},n.prototype[e(2e3)]=function(t,o,x){var r=this,i=Ys(t)?t:new A0(t,o,x);return gx(function(){const a=_0x2299;var u=r,s=u[a(1854)],d=u[a(1717)];i[a(1531)](s?s[a(667)](i,d):d?r[a(721)](i):r[a(1235)](i))}),i},n[e(1197)]._trySubscribe=function(t){const o=e;try{return this[o(721)](t)}catch(x){t[o(598)](x)}},n[e(1197)][e(644)]=function(t,o){var x=this;return o=yr(o),new o(function(r,i){const a=_0x2299;var u=new A0({next:function(s){const d=_0x2299;try{t(s)}catch(f){i(f),u[d(1515)]()}},error:i,complete:r});x[a(2e3)](u)})},n[e(1197)][e(721)]=function(t){const o=e;var x;return(x=this.source)===null||x===void 0?void 0:x[o(2e3)](t)},n[e(1197)][j0]=function(){return this},n.prototype[e(1069)]=function(){const t=e;for(var o=[],x=0;x<arguments[t(402)];x++)o[x]=arguments[x];return As(o)(this)},n[e(1197)][e(1043)]=function(t){var o=this;return t=yr(t),new t(function(x,r){const i=_0x2299;var a;o[i(2e3)](function(u){return a=u},function(u){return r(u)},function(){return x(a)})})},n.create=function(t){return new n(t)},n})();function yr(e){const n=c;var t;return(t=e??Ns[n(383)])!==null&&t!==void 0?t:Promise}function js(e){const n=c;return e&&Ue(e.next)&&Ue(e.error)&&Ue(e[n(1637)])}function Ys(e){return e&&e instanceof I0||js(e)&&ur(e)}function Es(e){return Ue(e?.[c(1981)])}function Wn(e){return function(n){const t=_0x2299;if(Es(n))return n[t(1981)](function(o){const x=t;try{return e(o,this)}catch(r){this[x(598)](r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Xn(e,n,t,o,x){return new Us(e,n,t,o,x)}var Us=(function(e){const n=c;An(t,e);function t(o,x,r,i,a,u){const s=_0x2299;var d=e[s(667)](this,o)||this;return d[s(768)]=a,d[s(1117)]=u,d._next=x?function(f){const b=s;try{x(f)}catch(g){o[b(598)](g)}}:e[s(1197)][s(1014)],d[s(423)]=i?function(f){const b=s;try{i(f)}catch(g){o[b(598)](g)}finally{this[b(1515)]()}}:e.prototype[s(423)],d[s(1784)]=r?function(){const f=s;try{r()}catch(b){o[f(598)](b)}finally{this.unsubscribe()}}:e[s(1197)][s(1784)],d}return t[n(1197)][n(1515)]=function(){const o=n;var x;if(!this[o(1117)]||this[o(1117)]()){var r=this[o(945)];e[o(1197)].unsubscribe[o(667)](this),!r&&((x=this[o(768)])===null||x===void 0||x.call(this))}},t})(I0),Os=k0(function(e){return function(){const t=_0x2299;e(this),this[t(1872)]=t(942),this.message=t(713)}}),mr=(function(e){const n=c;An(t,e);function t(){const o=_0x2299;var x=e[o(667)](this)||this;return x[o(945)]=!1,x[o(990)]=null,x[o(1800)]=[],x[o(808)]=!1,x.hasError=!1,x[o(597)]=null,x}return t[n(1197)][n(1981)]=function(o){const x=n;var r=new wr(this,this);return r[x(1854)]=o,r},t.prototype[n(1307)]=function(){if(this[n(945)])throw new Os},t.prototype[n(813)]=function(o){var x=this;gx(function(){const r=_0x2299;var i,a;if(x[r(1307)](),!x.isStopped){!x[r(990)]&&(x[r(990)]=Array[r(851)](x.observers));try{for(var u=at(x[r(990)]),s=u.next();!s[r(1428)];s=u[r(813)]()){var d=s[r(1462)];d[r(813)](o)}}catch(f){i={error:f}}finally{try{s&&!s[r(1428)]&&(a=u[r(1555)])&&a[r(667)](u)}finally{if(i)throw i[r(598)]}}}})},t[n(1197)][n(598)]=function(o){var x=this;gx(function(){const r=_0x2299;if(x._throwIfClosed(),!x[r(808)]){x.hasError=x[r(808)]=!0,x[r(597)]=o;for(var i=x[r(1800)];i[r(402)];)i[r(1610)]().error(o)}})},t[n(1197)][n(1637)]=function(){var o=this;gx(function(){const x=_0x2299;if(o[x(1307)](),!o[x(808)]){o[x(808)]=!0;for(var r=o[x(1800)];r.length;)r.shift()[x(1637)]()}})},t[n(1197)].unsubscribe=function(){const o=n;this.isStopped=this[o(945)]=!0,this.observers=this[o(990)]=null},Object[n(1038)](t.prototype,n(1512),{get:function(){const o=n;var x;return((x=this[o(1800)])===null||x===void 0?void 0:x[o(402)])>0},enumerable:!1,configurable:!0}),t[n(1197)][n(1235)]=function(o){const x=n;return this[x(1307)](),e.prototype[x(1235)][x(667)](this,o)},t.prototype._subscribe=function(o){const x=n;return this._throwIfClosed(),this[x(1240)](o),this[x(784)](o)},t.prototype[n(784)]=function(o){const x=n;var r=this,i=this,a=i[x(904)],u=i[x(808)],s=i[x(1800)];return a||u?dr:(this[x(990)]=null,s.push(o),new Et(function(){const d=x;r[d(990)]=null,bx(s,o)}))},t[n(1197)][n(1240)]=function(o){const x=n;var r=this,i=r.hasError,a=r.thrownError,u=r[x(808)];i?o[x(598)](a):u&&o[x(1637)]()},t[n(1197)][n(881)]=function(){const o=n;var x=new xn;return x[o(1717)]=this,x},t.create=function(o,x){return new wr(o,x)},t})(xn),wr=(function(e){const n=c;An(t,e);function t(o,x){const r=_0x2299;var i=e[r(667)](this)||this;return i[r(1084)]=o,i.source=x,i}return t.prototype[n(813)]=function(o){const x=n;var r,i;(i=(r=this[x(1084)])===null||r===void 0?void 0:r[x(813)])===null||i===void 0||i.call(r,o)},t.prototype[n(598)]=function(o){const x=n;var r,i;(i=(r=this[x(1084)])===null||r===void 0?void 0:r[x(598)])===null||i===void 0||i[x(667)](r,o)},t.prototype[n(1637)]=function(){const o=n;var x,r;(r=(x=this.destination)===null||x===void 0?void 0:x[o(1637)])===null||r===void 0||r[o(667)](x)},t[n(1197)][n(721)]=function(o){const x=n;var r,i;return(i=(r=this[x(1717)])===null||r===void 0?void 0:r.subscribe(o))!==null&&i!==void 0?i:dr},t})(mr),Gs={now:function(){return Date[c(1723)]()}},Hs=(function(e){const n=c;An(t,e);function t(o,x){return e.call(this)||this}return t[n(1197)].schedule=function(o,x){return this},t})(Et),vr={setInterval:function(e,n){const t=c;for(var o=[],x=2;x<arguments.length;x++)o[x-2]=arguments[x];return setInterval[t(1824)](void 0,hx([e,n],fx(o)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Vs=(function(e){const n=c;An(t,e);function t(o,x){const r=_0x2299;var i=e[r(667)](this,o,x)||this;return i.scheduler=o,i[r(1377)]=x,i[r(806)]=!1,i}return t[n(1197)][n(611)]=function(o,x){const r=n;var i;if(x===void 0&&(x=0),this[r(945)])return this;this[r(2072)]=o;var a=this.id,u=this[r(1905)];return a!=null&&(this.id=this[r(1010)](u,a,x)),this.pending=!0,this[r(1160)]=x,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(u,this.id,x),this},t.prototype[n(983)]=function(o,x,r){const i=n;return r===void 0&&(r=0),vr[i(1420)](o[i(1865)][i(513)](o,this),r)},t.prototype.recycleAsyncId=function(o,x,r){const i=n;return r===void 0&&(r=0),r!=null&&this[i(1160)]===r&&this[i(806)]===!1?x:(x!=null&&vr[i(1650)](x),void 0)},t[n(1197)][n(1431)]=function(o,x){const r=n;if(this[r(945)])return new Error(r(1609));this.pending=!1;var i=this[r(1993)](o,x);if(i)return i;this[r(806)]===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t[n(1197)]._execute=function(o,x){const r=n;var i=!1,a;try{this[r(1377)](o)}catch(u){i=!0,a=u||new Error(r(2032))}if(i)return this[r(1515)](),a},t.prototype.unsubscribe=function(){const o=n;if(!this[o(945)]){var x=this,r=x.id,i=x[o(1905)],a=i.actions;this[o(1377)]=this.state=this[o(1905)]=null,this[o(806)]=!1,bx(a,this),r!=null&&(this.id=this[o(1010)](i,r,null)),this[o(1160)]=null,e[o(1197)][o(1515)][o(667)](this)}},t})(Hs),pr=(function(){const e=c;function n(t,o){const x=_0x2299;o===void 0&&(o=n[x(1723)]),this[x(1013)]=t,this[x(1723)]=o}return n[e(1197)][e(611)]=function(t,o,x){const r=e;return o===void 0&&(o=0),new this[r(1013)](this,t)[r(611)](x,o)},n[e(1723)]=Gs[e(1723)],n})(),Ts=(function(e){const n=c;An(t,e);function t(o,x){const r=_0x2299;x===void 0&&(x=pr[r(1723)]);var i=e[r(667)](this,o,x)||this;return i[r(637)]=[],i[r(831)]=!1,i}return t[n(1197)][n(1865)]=function(o){const x=n;var r=this[x(637)];if(this[x(831)]){r[x(557)](o);return}var i;this[x(831)]=!0;do if(i=o[x(1431)](o[x(2072)],o[x(1160)]))break;while(o=r[x(1610)]());if(this._active=!1,i){for(;o=r.shift();)o[x(1515)]();throw i}},t})(pr),qs=new Ts(Vs);function Ws(e){return e&&Ue(e[c(611)])}function Xs(e){return e[e.length-1]}function Zs(e){return Ws(Xs(e))?e.pop():void 0}var zr=function(e){const n=c;return e&&typeof e[n(402)]=="number"&&typeof e!==n(404)};function Cr(e){return Ue(e?.[c(1229)])}function Mr(e){return Ue(e[j0])}function Br(e){const n=c;return Symbol[n(1517)]&&Ue(e?.[Symbol[n(1517)]])}function Dr(e){const n=c;return new TypeError(n(1151)+(e!==null&&typeof e===n(2151)?"an invalid object":"'"+e+"'")+n(1633))}function Ks(){const e=c;return typeof Symbol!==e(404)||!Symbol[e(2153)]?e(639):Symbol[e(2153)]}var Lr=Ks();function Nr(e){return Ue(e?.[Lr])}function Sr(e){return Ds(this,arguments,function(){var t,o,x,r;return lr(this,function(i){const a=_0x2299;switch(i[a(700)]){case 0:t=e[a(1738)](),i[a(700)]=1;case 1:i[a(1705)][a(557)]([1,,9,10]),i.label=2;case 2:return[4,ct(t[a(1798)]())];case 3:return o=i[a(1694)](),x=o.value,r=o[a(1428)],r?[4,ct(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,ct(x)];case 6:return[4,i[a(1694)]()];case 7:return i[a(1694)](),[3,2];case 8:return[3,10];case 9:return t[a(2030)](),[7];case 10:return[2]}})})}function kr(e){return Ue(e?.[c(1738)])}function Zn(e){if(e instanceof xn)return e;if(e!=null){if(Mr(e))return Rs(e);if(zr(e))return _s(e);if(Cr(e))return Js(e);if(Br(e))return Pr(e);if(Nr(e))return Fs(e);if(kr(e))return Qs(e)}throw Dr(e)}function Rs(e){return new xn(function(n){const t=_0x2299;var o=e[j0]();if(Ue(o[t(2e3)]))return o.subscribe(n);throw new TypeError(t(1743))})}function _s(e){return new xn(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function Js(e){return new xn(function(n){const t=_0x2299;e.then(function(o){const x=_0x2299;!n[x(945)]&&(n[x(813)](o),n[x(1637)]())},function(o){return n.error(o)})[t(1229)](null,hr)})}function Fs(e){return new xn(function(n){const t=_0x2299;var o,x;try{for(var r=at(e),i=r.next();!i[t(1428)];i=r[t(813)]()){var a=i.value;if(n.next(a),n[t(945)])return}}catch(u){o={error:u}}finally{try{i&&!i[t(1428)]&&(x=r[t(1555)])&&x.call(r)}finally{if(o)throw o[t(598)]}}n[t(1637)]()})}function Pr(e){return new xn(function(n){const t=_0x2299;$s(e,n)[t(807)](function(o){return n[t(598)](o)})})}function Qs(e){return Pr(Sr(e))}function $s(e,n){var t,o,x,r;return Bs(this,void 0,void 0,function(){var i,a;return lr(this,function(u){const s=_0x2299;switch(u.label){case 0:u[s(1705)][s(557)]([0,5,6,11]),t=Ls(e),u[s(700)]=1;case 1:return[4,t[s(813)]()];case 2:if(o=u[s(1694)](),!!o.done)return[3,4];if(i=o[s(1462)],n.next(i),n.closed)return[2];u[s(700)]=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u[s(1694)](),x={error:a},[3,11];case 6:return u[s(1705)][s(557)]([6,,9,10]),o&&!o[s(1428)]&&(r=t[s(1555)])?[4,r[s(667)](t)]:[3,8];case 7:u[s(1694)](),u[s(700)]=8;case 8:return[3,10];case 9:if(x)throw x[s(598)];return[7];case 10:return[7];case 11:return n[s(1637)](),[2]}})})}function jn(e,n,t,o,x){const r=c;o===void 0&&(o=0),x===void 0&&(x=!1);var i=n.schedule(function(){const a=_0x2299;t(),x?e[a(1531)](this[a(611)](null,o)):this[a(1515)]()},o);if(e[r(1531)](i),!x)return i}function Ir(e,n){return n===void 0&&(n=0),Wn(function(t,o){t.subscribe(Xn(o,function(x){return jn(o,e,function(){return o[_0x2299(813)](x)},n)},function(){return jn(o,e,function(){return o.complete()},n)},function(x){return jn(o,e,function(){return o.error(x)},n)}))})}function Ar(e,n){return n===void 0&&(n=0),Wn(function(t,o){const x=_0x2299;o[x(1531)](e[x(611)](function(){return t[x(2e3)](o)},n))})}function el(e,n){const t=c;return Zn(e)[t(1069)](Ar(n),Ir(n))}function nl(e,n){const t=c;return Zn(e)[t(1069)](Ar(n),Ir(n))}function tl(e,n){return new xn(function(t){const o=_0x2299;var x=0;return n[o(611)](function(){const r=o;x===e.length?t[r(1637)]():(t[r(813)](e[x++]),!t[r(945)]&&this[r(611)]())})})}function xl(e,n){return new xn(function(t){var o;return jn(t,n,function(){o=e[Lr](),jn(t,n,function(){const x=_0x2299;var r,i,a;try{r=o[x(813)](),i=r[x(1462)],a=r[x(1428)]}catch(u){t[x(598)](u);return}a?t[x(1637)]():t[x(813)](i)},0,!0)}),function(){const x=_0x2299;return Ue(o?.[x(1555)])&&o[x(1555)]()}})}function jr(e,n){const t=c;if(!e)throw new Error(t(1483));return new xn(function(o){jn(o,n,function(){var x=e[Symbol.asyncIterator]();jn(o,n,function(){const r=_0x2299;x[r(813)]()[r(1229)](function(i){const a=r;i.done?o[a(1637)]():o[a(813)](i.value)})},0,!0)})})}function ol(e,n){return jr(Sr(e),n)}function rl(e,n){if(e!=null){if(Mr(e))return el(e,n);if(zr(e))return tl(e,n);if(Cr(e))return nl(e,n);if(Br(e))return jr(e,n);if(Nr(e))return xl(e,n);if(kr(e))return ol(e,n)}throw Dr(e)}function mx(e,n){return n?rl(e,n):Zn(e)}function sn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Zs(e);return mx(e,t)}function He(e,n){var t=Ue(e)?e:function(){return e},o=function(x){return x[_0x2299(598)](t())};return new xn(o)}function il(e){return e instanceof Date&&!isNaN(e)}var al=k0(function(e){return function(t){const o=_0x2299;t===void 0&&(t=null),e(this),this[o(1200)]=o(1272),this.name=o(2098),this.info=t}});function cl(e,n){const t=c;var o=il(e)?{first:e}:{each:e},x=o.first,r=o[t(2077)],i=o[t(1394)],a=i===void 0?sl:i,u=o[t(1905)],s=u===void 0?qs:u,d=o[t(1722)],f=d===void 0?null:d;if(x==null&&r==null)throw new TypeError(t(1024));return Wn(function(b,g){const m=t;var h,p,M=null,y=0,v=function(w){p=jn(g,s,function(){const C=_0x2299;try{h[C(1515)](),Zn(a({meta:f,lastValue:M,seen:y}))[C(2e3)](g)}catch(S){g[C(598)](S)}},w)};h=b[m(2e3)](Xn(g,function(w){p?.[m(1515)](),y++,g.next(M=w),r>0&&v(r)},void 0,void 0,function(){const w=m;!p?.closed&&p?.[w(1515)](),M=null})),!y&&v(x!=null?typeof x===m(1288)?x:+x-s[m(1723)]():r)})}function sl(e){throw new al(e)}function wx(e,n){return Wn(function(t,o){const x=_0x2299;var r=0;t[x(2e3)](Xn(o,function(i){const a=x;o[a(813)](e[a(667)](n,i,r++))}))})}function ll(e,n,t,o,x,r,i,a){var u=[],s=0,d=0,f=!1,b=function(){const h=_0x2299;f&&!u.length&&!s&&n[h(1637)]()},g=function(h){const p=_0x2299;return s<o?m(h):u[p(557)](h)},m=function(h){const p=_0x2299;s++;var M=!1;Zn(t(h,d++))[p(2e3)](Xn(n,function(y){n[p(813)](y)},function(){M=!0},void 0,function(){const y=p;if(M)try{s--;for(var v=function(){var w=u.shift();i||m(w)};u[y(402)]&&s<o;)v();b()}catch(w){n[y(598)](w)}}))};return e.subscribe(Xn(n,g,function(){f=!0,b()})),function(){}}function Y0(e,n,t){return t===void 0&&(t=1/0),Ue(n)?Y0(function(o,x){return wx(function(r,i){return n(o,r,x,i)})(Zn(e(o,x)))},t):(typeof n=="number"&&(t=n),Wn(function(o,x){return ll(o,x,e,t)}))}function vx(e){return Wn(function(n,t){const o=_0x2299;var x=null,r=!1,i;x=n[o(2e3)](Xn(t,void 0,void 0,function(a){const u=o;i=Zn(e(a,vx(e)(n))),x?(x.unsubscribe(),x=null,i[u(2e3)](t)):r=!0})),r&&(x[o(1515)](),x=null,i.subscribe(t))})}function dl(e,n,t){var o=Ue(e)||n||t?{next:e,error:n,complete:t}:e;return o?Wn(function(x,r){const i=_0x2299;var a;(a=o[i(2e3)])===null||a===void 0||a.call(o);var u=!0;x[i(2e3)](Xn(r,function(s){const d=i;var f;(f=o[d(813)])===null||f===void 0||f[d(667)](o,s),r.next(s)},function(){const s=i;var d;u=!1,(d=o[s(1637)])===null||d===void 0||d.call(o),r[s(1637)]()},function(s){const d=i;var f;u=!1,(f=o[d(598)])===null||f===void 0||f[d(667)](o,s),r[d(598)](s)},function(){const s=i;var d,f;u&&((d=o[s(1515)])===null||d===void 0||d.call(o)),(f=o[s(1337)])===null||f===void 0||f[s(667)](o)}))}):gr}function E0(e){const n=c;return encodeURIComponent((e||"").trim()||n(917))}function ul(e){const n=c;return e.eventType===n(484)?e.bindNodeId+"::ext::"+E0(e[n(1248)]??""):e[n(482)]+"::"+e[n(1739)]}function Yr(e,n){return e+":"+n}class st{static[c(528)];[c(863)]=new Map;[c(961)]=new Map;[c(2080)]=new Map;[c(370)]=new Map;[c(1947)];constructor(){}static getInstance(){const n=c;return!st[n(528)]&&(st.instance=new st),st[n(528)]}[c(1792)](n){const t=c;this[t(2080)][t(1618)](n.id,n)}[c(654)](n){this[c(2080)].delete(n)}getEventBlock(n){const t=c;return this[t(2080)][t(953)](n)}setDefaultRuntimeHandlers(n){const t=c;this[t(1947)]=n}[c(1174)](n){const t=c;if(!n)return;const o=this[t(1947)];this[t(1947)]={dataRequest:{...o?.[t(1061)],...n[t(1061)]},external:{...o?.[t(484)],...n.external}}}mergeRuntimeHandlers(n){const t=c,o=this[t(1947)];if(!(!o&&!n))return{dataRequest:{...o?.dataRequest,...n?.[t(1061)]},external:{...o?.[t(484)],...n?.[t(484)]}}}[c(651)](n){const t=c,o=this[t(961)][t(953)](n.id);o&&(o[t(1515)](),this[t(961)][t(1953)](n.id)),this.eventSubjects.delete(n.id)}bindNodeEvent(n){const t=c,o=ul(n),x=this.nodeEventBindings.get(o);x&&x.id!==n.id&&this[t(651)](x),this[t(370)].set(o,n),!this[t(863)][t(888)](n.id)&&this[t(1767)](n)}[c(1124)](n,t,o){const x=c;if(t===x(484)){const u=n+x(1597)+E0(o??""),s=this[x(370)].get(u);s&&(this[x(651)](s),this[x(370)].delete(u));return}const r=n+"::"+t,i=Yr(n,t),a=this.nodeEventBindings[x(953)](r)??this[x(370)][x(953)](i);a&&(this[x(651)](a),this[x(370)][x(1953)](r),this.nodeEventBindings[x(1953)](i))}unbindAllForNode(n){const t=c,o=[];this[t(370)][t(644)]((x,r)=>{const i=t;x[i(482)]===n&&o[i(557)]({key:r,root:x})}),o[t(644)](({key:x,root:r})=>{const i=t;this[i(651)](r),this[i(370)][i(1953)](x)})}[c(1842)](n){const t=c,o=[];return this.nodeEventBindings[t(644)](x=>{x[t(482)]===n&&o.push(x)}),o}emit(n,t,o){const x=c,r=n+"::"+t,i=this[x(370)][x(953)](r)??this[x(370)][x(953)](Yr(n,t));if(!i||!i[x(893)])return sn({success:!0,result:null,path:[],duration:0});if(!this[x(863)][x(953)](i.id))return He(()=>new Error(x(1247)+r));const u=Date[x(1723)](),s={...o,executionPath:o[x(870)]||[],runtimeHandlers:this.mergeRuntimeHandlers(o[x(1544)])};return this[x(1e3)](i,s)[x(1069)](wx(d=>({success:!0,result:d,path:s.executionPath,duration:Date.now()-u})),vx(d=>sn({success:!1,error:d[x(1200)]||x(790),path:s[x(870)],duration:Date.now()-u})))}emitExternal(n,t,o){const x=c,r=n+"::ext::"+E0(t),i=this[x(370)][x(953)](r);if(!i||!i[x(893)])return sn({success:!0,result:null,path:[],duration:0});if(!this.eventSubjects.get(i.id))return He(()=>new Error(x(1247)+r));const u=Date.now(),s={...o,executionPath:o.executionPath||[],runtimeHandlers:this[x(1007)](o.runtimeHandlers)};return this[x(1e3)](i,s).pipe(wx(d=>({success:!0,result:d,path:s.executionPath,duration:Date[x(1723)]()-u})),vx(d=>sn({success:!1,error:d[x(1200)]||x(790),path:s[x(870)],duration:Date[x(1723)]()-u})))}[c(1767)](n){const t=c,o=new mr;this[t(863)][t(1618)](n.id,o)}[c(1e3)](n,t){const o=c,{nodes:x,edges:r}=n[o(1546)];if(x.length===0)return sn(null);const i=x.filter(a=>a[o(1498)][o(402)]===0);return i[o(402)]===0?He(()=>new Error(o(578))):this[o(1521)](i,x,r,t,{})}executeFlowNodes(n,t,o,x,r){const i=c;if(n[i(402)]===0)return sn(r);const a=n.map(u=>this[i(1485)](u,x,r)[i(1069)](dl(s=>{r[u.id]=s,x.executionPath.push(u.id)})));return mx(a)[i(1069)](Y0(u=>u,1),wx(()=>{const u=i,s=new Set;return n[u(644)](f=>{const b=u;f.outputs[b(644)](g=>{const m=b,h=t[m(438)](p=>p.id===g);h&&h[m(1498)][m(1243)](M=>r[M]!==void 0)&&s[m(1531)](g)})}),t[u(1211)](f=>s[u(888)](f.id))}),Y0(u=>u[i(402)]>0?this.executeFlowNodes(u,t,o,x,r):sn(r)),cl(3e4),vx(u=>{const s=i;return console[s(598)](s(764),u),He(()=>u)}))}[c(332)](n){const t=c;return this[t(2080)][t(953)](n[t(2103)])??n[t(1405)][t(1972)]}[c(1805)](n,t,o){const x=c;return n[x(490)](/\{\{\s*([^}]+?)\s*\}\}/g,(r,i)=>{const a=x,u=String(i)[a(2053)]();if(u.startsWith("$")){const d=this[a(1943)](o,u[a(1912)](1));return d==null?"":String(d)}const s=t[u];return s==null?"":String(s)})}[c(1114)](n,t,o){const x=c,r=n[x(554)];if(!r)return He(()=>new Error(x(477)));if(r===x(1191)){const i=n[x(626)]??{},a=String(i[x(1768)]??""),u=i[x(1592)]??x(1004),s=i[x(833)],d=this.interpolateBuiltinString(a,o,t);if(!d[x(2053)]())return He(()=>new Error(x(1380)));try{const f={type:u,content:d};if(s!=null&&s!==""){const b=Number(s);!Number[x(530)](b)&&(f[x(833)]=b)}return z[x(1200)][x(387)](f),sn({ok:!0,builtinId:r,content:d,level:u})}catch(f){return He(()=>f)}}if(r==="switchCanvas"){const i=n[x(626)]??{},a=String(i.targetCanvasId??"")[x(2053)]();if(!a)return He(()=>new Error(x(779)));if(!t.switchCanvas)return He(()=>new Error(x(743)));try{return t.switchCanvas(a),sn({ok:!0,builtinId:r,targetCanvasId:a})}catch(u){return He(()=>u)}}return He(()=>new Error("未知内置动作: "+String(r)))}[c(1125)](n,t,o){try{const x=n(t,o);return x instanceof Promise?mx(x):sn(x)}catch(x){return He(()=>x)}}[c(1485)](n,t,o){const x=c,r=this[x(332)](n);if(!r)return He(()=>new Error(x(1816)+n.eventBlockId));const i=this[x(1322)](n,t,o),a=r[x(409)]??x(1890);if(a===x(1061)){const u=(r.dataRequestKey||"")[x(2053)]();if(!u)return He(()=>new Error(x(397)));const s=t[x(1544)]?.[x(1061)]?.[u];return s?this.invokeRuntimeHandler(s,t,i):He(()=>new Error("未注册 dataRequest 处理器: "+u))}if(a===x(484)){const u=(r.externalHandlerKey||"")[x(2053)]();if(!u)return He(()=>new Error(x(2078)));const s=t.runtimeHandlers?.[x(484)]?.[u];return s?this[x(1125)](s,t,i):He(()=>new Error(x(400)+u))}if(a==="builtin")return this.executeBuiltin(r,t,i);try{const u=new Function(x(1855),"context",x(431),r.callback),s=u(t.triggerNode,t,i);return s instanceof Promise?mx(s):sn(s)}catch(u){return He(()=>u)}}[c(1322)](n,t,o){const x=c,r={$event:t[x(2106)],$data:t[x(1405)],$node:t[x(1901)]},{inputMapping:i}=n[x(1405)];return i&&Object[x(2087)](i)[x(644)](([a,u])=>{const s=x;if(u[s(1713)](s(902))){const d=u[s(490)]("$prev.","");r[a]=o[d]}else if(u[s(1713)]("$")){const d=u[s(1912)](1);r[a]=this[s(1943)](t,d)}else r[a]=u}),r}[c(1943)](n,t){const o=c;return t[o(1939)](".")[o(1833)]((x,r)=>{if(x!==null&&typeof x===o(2151)&&r in x)return x[r]},n)}clearAll(){const n=c;this.subscriptions[n(644)](t=>t[n(1515)]()),this[n(961)][n(1275)](),this[n(863)][n(1275)](),this[n(370)].clear()}}const lt=st[c(1352)](),Er=({node:e,children:n,runtimeHandlers:t,flowContextData:o})=>{const x=c,{eventFlow:r,switchCanvas:i}=qe(),a=L[x(697)](null),u=L[x(1974)](()=>{const d=x;return r[d(1761)][d(1211)](f=>f.bindNodeId===e.id&&f.enabled)},[r.eventRoots,e.id]),s=L[x(1974)](d=>f=>{const b=_0x2299,g=u().filter(h=>h.eventType===d);if(g[b(402)]===0)return;d!=="mouseOver"&&d!==b(1105)&&f.preventDefault(),f.stopPropagation();const m=o&&typeof o=="object"?{...o}:{};g[b(644)](h=>{const p=b;lt[p(393)](e.id,d,{triggerNode:e,originalEvent:f,data:m,runtimeHandlers:t,switchCanvas:i}).subscribe({next:M=>{const y=p;!M[y(966)]&&console[y(598)]("Event flow execution failed:",M.error)},error:M=>{const y=p;console[y(598)](y(976),M)}})})},[u,e,t,o]);return L[x(856)](()=>{const d=x;return u()[d(644)](b=>{lt[d(919)](b)}),()=>{lt[d(388)](e.id)}},[u,e.id]),L[x(856)](()=>{const d=x,f=a.current;if(!f)return;const b={click:s(d(1091)),mousedown:s(d(737)),mouseup:s(d(1952)),dblclick:s(d(415)),mouseover:s(d(803)),mouseleave:s(d(1105)),mouseenter:s(d(1715)),contextmenu:s(d(698))};return Object[d(2087)](b).forEach(([g,m])=>{f[d(1918)](g,m,!0)}),()=>{const g=d;Object[g(2087)](b)[g(644)](([m,h])=>{f.removeEventListener(m,h,!0)})}},[s]),L[x(678)](n,{ref:d=>{const f=x;a[f(1123)]=d;const b=n[f(624)];typeof b===f(404)?b(d):b&&"current"in b&&(b[f(1123)]=d)}})},{Text:Ur}=z.Typography,Or=(e,n)=>{const t=c;if(!n||!e)return{value:void 0};if(Array[t(2018)](e)){const o=e[t(438)](x=>x[t(847)]===n);if(o)return{value:o[t(1462)],unit:o[t(1518)]}}else if(typeof e===t(2151)){const o=n[t(1939)](".");let x=e;for(const r of o){if(x===null||typeof x!==t(2151))return{value:void 0};x=x[r]}if(x!==void 0)return{value:x,unit:e.unit}}return{value:void 0}};function fl(e){return Array[c(2018)](e)}const hl=(e,n,t)=>{const o=c,x=e[o(1768)]||{},{valueSourceCode:r,boundDatasetId:i,boundDatasetBindCode:a,boundDatasetBindValue:u}=x;if(!r)return{value:void 0};if(i){const s=n[o(438)](d=>d.id===i);if(s){let d;fl(s.sample)?a!=null&&u!=null?d=s.sample[o(438)](b=>b[a]===u)||{}:d={}:d=s[o(2022)];const f=t&&typeof t===o(2151)?{...d,...t}:d;return Or(f,r)}}return Or(t,r)},bl=(e,n)=>{const t=c;if(e==null||e==="")return"";if(n===-1)return String(e);const o=Number(e);return isNaN(o)?String(e):o[t(1995)](n??2)},gl=(e,n,t,o,x)=>{const r=c;switch(e.type){case"IMAGE":const i=e,a=i[r(972)],u=i[r(862)];let s=i[r(1935)];return u&&s&&s[r(633)](r(770))&&(e[r(1872)]==="矩形"?s=r(576)+encodeURIComponent(r(607)+u+r(901)):e[r(1872)]==="圆形"?s=r(576)+encodeURIComponent(r(1860)+u+'"/></svg>'):e[r(1872)]==="圆角矩形"&&(s=r(576)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"><rect width="100" height="60" fill="'+u+r(1192)))),l[r(454)]("div",{className:r(590),style:{backgroundColor:a},children:s?l[r(454)](r(705),{src:s,alt:e[r(1872)],style:{width:r(1826),height:"100%",objectFit:"contain"}}):l[r(454)](r(1415),{className:r(811),children:l[r(454)](r(594),{className:r(373),children:r(2065)})})});case r(1363):const d=e,{label:f,value:b,valueSourceCode:g,unit:m,decimals:h,labelStyle:p,valueStyle:M,customStyle:y}=d[r(1768)]||{},{value:v,unit:w}=g?hl(d,x||[],n):{value:void 0,unit:void 0},C=v!==void 0?v:b,S=bl(C,h),U=m||w||"";return l[r(2088)](r(1415),{className:"w-full h-full flex flex-col justify-center gap-1",style:{...y},children:[f&&l[r(454)](Ur,{style:{fontSize:14,fontWeight:r(1613),color:r(1676),textAlign:r(1484),...p},children:f}),S&&l[r(2088)](Ur,{style:{fontSize:14,color:r(1277),textAlign:r(1484),...M},children:[S,U?" "+U:""]})]});case r(1772):const G=e,{thickness:H=2,color:O=r(1886),dashed:_=!1,lineType:X=_?r(1632):"solid",lineWeight:q=H,startX:T=0,startY:N=0,endX:D=100,endY:B=0}=G.config||{},A=Q=>{const J=r,$=Math[J(1108)](q,1);switch(Q){case J(925):return"";case"dashed":return $*8+","+$*4;case"center":return $*12+","+$*3+","+$*2+","+$*3;case J(1426):return $*12+","+$*3+","+$*2+","+$*3+","+$*2+","+$*3;case"dot":return $+","+$*3;case J(366):return $*8+","+$*3+","+$+","+$*3;default:return""}},P=A(X),I=t?r(1277):O;return l.jsx(r(1415),{className:r(1141),style:{overflow:r(1360)},children:l.jsxs(r(1171),{className:r(1009),width:r(1826),height:r(1826),style:{overflow:r(1360),pointerEvents:r(1795)},children:[l[r(454)](r(1774),{x1:T,y1:N,x2:D,y2:B,stroke:"transparent",strokeWidth:Math.max(q,10),strokeLinecap:"round",strokeLinejoin:r(392),style:{pointerEvents:"stroke",cursor:r(1299)}}),l[r(454)](r(1774),{x1:T,y1:N,x2:D,y2:B,stroke:I,strokeWidth:q,strokeDasharray:P,strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"}})]})});case r(684):const Z=e;return Z[r(443)]?Z[r(443)]({}):l[r(454)](r(1415),{className:r(527),children:l[r(454)]("span",{className:r(373),children:r(2085)})});default:return l[r(454)](r(1415),{className:r(527),children:l[r(454)](r(594),{className:r(373),children:r(1746)})})}},yl=({node:e,isSelected:n=!1,onClick:t,onMouseDown:o,data:x,onUpdateNode:r,scale:i=1,enableEventFlow:a=!1,eventFlowData:u})=>{const s=c,{normalStyle:d,controlInfo:f}=e,{isClickable:b,isDraggable:g,isResizable:m}=f,h=e[s(1271)],p=qe(R=>R[s(1223)]),M=qe(R=>R.updateNode),y=L[s(697)](t);L.useEffect(()=>{const R=s;y[R(1123)]=t},[t]);const[v,w]=L[s(1039)](null),C=L.useRef(null),S=L[s(697)](null),U=L[s(697)](null),G=L[s(697)](null),H=L[s(697)](null),[O,_]=L[s(1039)](null),[X,q]=L[s(1039)](null),T=L[s(697)](null),N=L[s(1345)](()=>{const R=s,k=e[R(1271)][R(673)];if(k[R(402)]===0)return;const j=or(k,x,p);return j||k[0]},[e[s(1271)][s(673)],x,p]),D=L[s(697)](e.contentInfo.currentStatusId);L.useEffect(()=>{const R=s;D[R(1123)]=e[R(1271)][R(629)]},[e.id]),L[s(856)](()=>{const R=s,k=N?.id;k!==void 0&&D.current!==k&&(D[R(1123)]=k,M(e.id,{contentInfo:{...e[R(1271)],currentStatusId:k}}))},[N?.id,e.id,M]);const B=N?.[s(1080)],A=B?.type===s(1772),P=A?B[s(2011)]:null,I=d[s(1126)]??1,Z=(d.width||100)*I,Q=(d[s(2035)]||100)*I,J=L[s(1974)](()=>{const R=s,k=H[R(1123)]?.[R(2108)](R(656));if(!k)return i;const j=k[R(1749)](),W=parseFloat(k[R(799)][R(1915)]);return W?j[R(1915)]/W:i},[i]),$=L[s(1974)]((R,k)=>{const j=s;R[j(986)](),R[j(1224)]();const W=P?.startX||0,E=P?.[j(1320)]||0,oe=P?.[j(973)]||0,se=P?.[j(1085)]||0,ce=d.x||0,be=d.y||0,we=Math.max((P?.[j(1779)]||P?.thickness||2)*2,4),Ne=Math[j(782)](W,oe),Ce=Math[j(782)](E,se),ke=Math[j(1108)](W,oe),Ee=Math.max(E,se),Pe=Math[j(1108)](ke-Ne,we),Ie=Math[j(1108)](Ee-Ce,we);C[j(1123)]={mouseX:R.clientX,mouseY:R.clientY,startX:W,startY:E,endX:oe,endY:se,nodeX:ce,nodeY:be};const Ae=Math[j(782)](W,oe),Ve=Math.min(E,se);U.current={nodeX:ce+Ae,nodeY:be+Ve,width:Pe,height:Ie,startX:W-Ae,startY:E-Ve,endX:oe-Ae,endY:se-Ve},S[j(1123)]=N||null,w(k)},[P,d.x,d.y,N]);L[s(856)](()=>{const R=s;if(!v||!A||!P||!r)return;const k=W=>{const E=_0x2299,oe=C.current;if(!oe||!H[E(1123)])return;const se=J(),ce=(W.clientX-oe[E(630)])/se,be=(W[E(970)]-oe[E(1348)])/se;let we=oe[E(998)],Ne=oe[E(1320)],Ce=oe[E(973)],ke=oe[E(1085)],Ee=oe[E(738)],Pe=oe.nodeY;v===E(1255)?(we=oe[E(998)]+ce,Ne=oe[E(1320)]+be,we<0&&(Ee=oe[E(738)]+we,Ce=oe[E(973)]-we,we=0),Ne<0&&(Pe=oe[E(1753)]+Ne,ke=oe[E(1085)]-Ne,Ne=0)):(Ce=oe[E(973)]+ce,ke=oe[E(1085)]+be,Ce<0&&(Ee=oe[E(738)]+Ce,we=oe[E(998)]-Ce,Ce=0),ke<0&&(Pe=oe[E(1753)]+ke,Ne=oe[E(1320)]-ke,ke=0));const Ie=Math.max((P[E(1779)]||2)*2,4),Ae=Math.min(we,Ce),Ve=Math[E(782)](Ne,ke),nn=Math[E(1108)](we,Ce),bn=Math[E(1108)](Ne,ke),_e=Ee+Ae,on=Pe+Ve,Xe=we-Ae,rn=Ne-Ve,an=Ce-Ae,tn=ke-Ve,gn=Math.max(nn-Ae,Ie),In=Math[E(1108)](bn-Ve,Ie);U[E(1123)]={nodeX:_e,nodeY:on,width:gn,height:In,startX:Xe,startY:rn,endX:an,endY:tn};const Je=H[E(1123)];Je[E(799)][E(1484)]=_e+"px",Je[E(799)][E(2026)]=on+"px",Je[E(799)][E(1915)]=gn+"px",Je[E(799)][E(2035)]=In+"px",Je[E(1983)]("svg line").forEach(We=>{const yn=E;We[yn(804)]("x1",String(Xe)),We[yn(804)]("y1",String(rn)),We[yn(804)]("x2",String(an)),We[yn(804)]("y2",String(tn))});const Ze=Je[E(1086)](E(620)),Hn=Je[E(1086)](E(797));Ze&&(Ze.style[E(1484)]=Xe-6+"px",Ze[E(799)][E(2026)]=rn-6+"px"),Hn&&(Hn.style[E(1484)]=an-6+"px",Hn.style[E(2026)]=tn-6+"px")},j=()=>{const W=_0x2299,E=U[W(1123)];if(!E||!r){w(null),C.current=null,U.current=null,S.current=null;return}const oe=qe[W(1838)]()[W(2110)][W(438)](Ce=>Ce.id===e.id),se=oe?.contentInfo.statusList??e[W(1271)][W(673)],ce=S[W(1123)],be=ce?.id??se.find(Ce=>Ce[W(1080)][W(1246)]==="LINE")?.id,we=se[W(1849)](Ce=>{const ke=W;if(Ce[ke(1080)][ke(1246)]!=="LINE"||Ce.id!==be)return Ce;const Ee=Ce[ke(1080)];return{...Ce,material:{...Ee,config:{...Ee[ke(2011)],startX:E[ke(998)],startY:E[ke(1320)],endX:E[ke(973)],endY:E[ke(1085)]}}}}),Ne=oe?.[W(1271)]??h;r(e.id,{normalStyle:{x:E[W(738)],y:E[W(1753)],width:E[W(1915)],height:E[W(2035)]},contentInfo:{...Ne,statusList:we}}),w(null),C[W(1123)]=null,U[W(1123)]=null,S[W(1123)]=null};return window[R(1918)](R(1797),k),window[R(1918)](R(1568),j),()=>{const W=R;window.removeEventListener("mousemove",k),window[W(1561)](W(1568),j)}},[v,A,P,e.id,d,h,e[s(1271)][s(673)],r,J]),L[s(856)](()=>{const R=s;if(!O||!r)return;const k=W=>{const E=_0x2299;if(!H.current)return;const oe=J(),se=(W[E(1239)]-O[E(998)])/oe,ce=(W.clientY-O[E(1320)])/oe,be=O[E(1302)],we=be*Math.PI/180,Ne=Math[E(2003)](we),Ce=Math[E(1782)](we),ke=se*Ne+ce*Ce,Ee=-se*Ce+ce*Ne;let Pe=O[E(932)],Ie=O[E(1096)],Ae=O[E(1355)],Ve=O.startNodeY;switch(O[E(1526)]){case"se":Pe=Math[E(1108)](20,O[E(932)]+ke),Ie=Math.max(20,O[E(1096)]+Ee);break;case"sw":Pe=Math[E(1108)](20,O[E(932)]-ke),Ie=Math[E(1108)](20,O.startHeight+Ee),Ae=O[E(1355)]+(O.startWidth-Pe);break;case"ne":Pe=Math[E(1108)](20,O[E(932)]+ke),Ie=Math[E(1108)](20,O.startHeight-Ee),Ve=O.startNodeY+(O.startHeight-Ie);break;case"nw":Pe=Math[E(1108)](20,O[E(932)]-ke),Ie=Math[E(1108)](20,O[E(1096)]-Ee),Ae=O.startNodeX+(O.startWidth-Pe),Ve=O[E(1399)]+(O.startHeight-Ie);break}if(be!==0){let bn=0,_e=0,on=0,Xe=0;switch(O[E(1526)]){case"se":bn=0,_e=0,on=0,Xe=0;break;case"sw":bn=O.startWidth,_e=0,on=Pe,Xe=0;break;case"ne":bn=0,_e=O[E(1096)],on=0,Xe=Ie;break;case"nw":bn=O[E(932)],_e=O[E(1096)],on=Pe,Xe=Ie;break}const rn=bn-O[E(932)]/2,an=_e-O[E(1096)]/2,tn=rn*Ne-an*Ce,gn=rn*Ce+an*Ne,In=on-Pe/2,Je=Xe-Ie/2,Bt=In*Ne-Je*Ce,Ze=In*Ce+Je*Ne;Ae=O[E(1355)]+O[E(932)]/2-Pe/2+tn-Bt,Ve=O[E(1399)]+O[E(1096)]/2-Ie/2+gn-Ze}G[E(1123)]={x:Ae,y:Ve,width:Pe,height:Ie};const nn=H[E(1123)];nn[E(799)][E(1484)]=Ae+"px",nn.style[E(2026)]=Ve+"px",nn[E(799)][E(1915)]=Pe+"px",nn[E(799)][E(2035)]=Ie+"px"},j=()=>{const W=_0x2299,E=G.current;E&&r(e.id,{normalStyle:{...d,x:E.x,y:E.y,width:E[W(1915)],height:E[W(2035)]}}),_(null),G[W(1123)]=null};return window.addEventListener("mousemove",k),window[R(1918)]("mouseup",j),()=>{const W=R;window[W(1561)](W(1797),k),window[W(1561)](W(1568),j)}},[O,r,e.id,d,J]);const xe=L[s(1974)]((R,k)=>{const j=s;R[j(986)](),R.preventDefault(),_({corner:k,startX:R[j(1239)],startY:R.clientY,startWidth:d[j(1915)]||100,startHeight:d.height||100,startNodeX:d.x||0,startNodeY:d.y||0,startRotate:d[j(660)]||0})},[d[s(1915)],d.height,d.x,d.y,d[s(660)]]),ae=L[s(1974)](R=>{const k=s;R[k(986)](),R[k(1224)]();const j=H[k(1123)]?.getBoundingClientRect();j&&q({startX:R.clientX,startY:R.clientY,startAngle:d[k(660)]||0,centerX:j[k(1484)]+j.width/2,centerY:j.top+j.height/2})},[d[s(660)]]);L.useEffect(()=>{const R=s;if(!X)return;const k=W=>{const E=_0x2299,oe=W[E(1239)]-X[E(1529)],se=W[E(970)]-X[E(537)];let be=(Math[E(711)](se,oe)*(180/Math.PI)+90)%360;if(be<0&&(be+=360),T[E(1123)]=be,H.current){const we=d[E(1137)]||"";H[E(1123)][E(799)][E(1137)]=("rotate("+be+E(552)+we)[E(2053)]()}},j=()=>{const W=_0x2299,E=T[W(1123)]??X[W(1154)];T.current=null,r&&r(e.id,{normalStyle:{...d,rotate:Math[W(392)](E)}}),q(null)};return window.addEventListener("mousemove",k),window[R(1918)](R(1568),j),()=>{const W=R;window.removeEventListener("mousemove",k),window[W(1561)](W(1568),j)}},[X,r,e.id,d]);const le=e[s(1246)]===s(1747),fe={position:s(1523),left:d.x||0,top:d.y||0,width:Z,height:Q,background:le?"transparent":d[s(523)]||s(1436),backgroundImage:le?void 0:d[s(2017)]?s(522)+d[s(2017)]+")":void 0,backgroundSize:s(1121),backgroundPosition:s(1668),padding:Array.isArray(d[s(467)])?d[s(467)][s(1507)](s(545))+"px":d[s(467)],margin:Array[s(2018)](d[s(1634)])?d[s(1634)][s(1507)](s(545))+"px":d[s(1634)],borderRadius:le?void 0:d[s(1899)],border:n&&!A?s(1984):A?"none":le?s(1795):d[s(1325)]||s(1649),pointerEvents:s(816),opacity:d[s(496)]??1,transform:A?d.transform||void 0:(s(641)+(T[s(1123)]??(d[s(660)]||0))+s(552)+(d[s(1137)]||""))[s(2053)](),transformOrigin:s(1684),zIndex:n?1e3:d[s(1445)]??1,cursor:g&&!v?s(450):b?s(1299):"default",boxSizing:s(1535),overflow:n||A||le?"visible":s(2094)},re=P?{x:P.startX||0,y:P[s(1320)]||0}:{x:0,y:0},K=P?{x:P.endX||0,y:P[s(1085)]||0}:{x:0,y:0},ie=l[s(2088)](s(1415),{ref:H,"data-node-id":e.id,style:fe,onClick:R=>{const k=s;console.log("NodeRenderer onClick",e.id,k(1711),b);const j=y.current;b&&j&&!v&&!O&&!X&&(R[k(986)](),j(R))},onMouseDown:R=>{g&&o&&!v&&o(R)},children:[n&&!A&&l[s(2088)](l.Fragment,{children:[!le&&l[s(2088)](l[s(562)],{children:[l.jsx(s(1415),{className:s(1825),style:{zIndex:9999,pointerEvents:"auto",cursor:"nw-resize",marginTop:s(1456),marginLeft:s(1456)},onMouseDown:R=>xe(R,"nw"),title:"拖拽调整大小"}),l[s(454)](s(1415),{className:s(565),style:{zIndex:9999,pointerEvents:s(816),cursor:s(671),marginTop:"-6px",marginRight:s(1456)},onMouseDown:R=>xe(R,"ne"),title:s(1023)}),l[s(454)](s(1415),{className:"absolute bottom-0 left-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:s(816),cursor:s(2031),marginBottom:s(1456),marginLeft:"-6px"},onMouseDown:R=>xe(R,"sw"),title:"拖拽调整大小"}),l[s(454)]("div",{className:s(1373),style:{zIndex:9999,pointerEvents:s(816),cursor:s(1882),marginBottom:s(1456),marginRight:s(1456)},onMouseDown:R=>xe(R,"se"),title:"拖拽调整大小"})]}),l[s(454)](s(1415),{className:s(2074),style:{zIndex:9999,pointerEvents:s(816),cursor:s(1701),marginTop:"-20px",transform:s(334),boxShadow:s(922)},onMouseDown:R=>ae(R),title:s(2013)}),l[s(454)](s(1415),{className:"absolute top-0 left-1/2 w-0.5 h-3 bg-green-500",style:{zIndex:9998,pointerEvents:"none",marginTop:s(696),transform:s(334)}}),l[s(2088)](s(1415),{className:s(857),children:[e[s(1872)]," ",N?"("+N[s(1872)]+")":""]})]}),n&&A&&P&&r&&l[s(2088)](l[s(562)],{children:[l[s(454)](s(1415),{"data-handle":"start",className:s(2042),style:{left:re.x-6,top:re.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:R=>$(R,s(1255)),title:s(358)}),l[s(454)](s(1415),{"data-handle":"end",className:s(2042),style:{left:K.x-6,top:K.y-6,boxShadow:s(922)},onMouseDown:R=>$(R,"end"),title:"拖拽调整终点"}),l[s(454)]("div",{className:s(857),children:e[s(1872)]})]}),l[s(454)]("div",{className:s(1141),children:B?l.jsx(s(1415),{className:"w-full h-full",children:gl(B,x,n,e,p)}):le?null:l[s(454)]("div",{className:s(903),children:s(1060)})}),e[s(1246)]===s(1747)&&e[s(2099)]&&l[s(454)](s(1415),{className:s(1476),children:e[s(2099)][s(1849)](R=>l[s(454)](s(1415),{className:s(2067),children:l[s(454)](U0,{node:R,isSelected:!1,data:x,onUpdateNode:r,scale:i,enableEventFlow:a,eventFlowData:u})},R.id))})]});return a?l[s(454)](Er,{node:e,flowContextData:u,children:ie}):ie},U0=L.memo(yl,(e,n)=>{const t=c,o=e[t(1855)],x=n.node,r=o.id===x.id&&o[t(500)].x===x[t(500)].x&&o[t(500)].y===x.normalStyle.y&&o.normalStyle.width===x[t(500)][t(1915)]&&o[t(500)].height===x[t(500)][t(2035)]&&o.normalStyle.rotate===x[t(500)][t(660)],i=o[t(1271)]===x.contentInfo,a=JSON.stringify(e[t(1283)]??null)===JSON[t(1079)](n[t(1283)]??null),u=e[t(1502)]===n[t(1502)]&&e.scale===n[t(1126)]&&e.enableEventFlow===n.enableEventFlow&&a,s=g=>{const m=t,h=[];return g[m(1271)]?.statusList?.[m(644)](p=>{const M=m;if(p[M(1080)]?.[M(1246)]===M(1772)){const y=p[M(1080)][M(2011)];h[M(557)]({statusId:p.id,startX:y?.[M(998)]??0,startY:y?.startY??0,endX:y?.[M(973)]??100,endY:y?.[M(1085)]??0})}}),h},d=s(o),f=s(x);let b=!0;if(d.length!==f.length)b=!1;else for(let g=0;g<d[t(402)];g++){const m=d[g],h=f[t(438)](p=>p[t(687)]===m.statusId);if(!h||m[t(998)]!==h[t(998)]||m[t(1320)]!==h[t(1320)]||m[t(973)]!==h.endX||m[t(1085)]!==h[t(1085)]){b=!1;break}}return r&&i&&u&&b}),ml=[c(1277),c(1894),"#faad14",c(1359),c(1603),c(1432),"#13c2c2",c(2007),c(1985),"#262626",c(1930),"#d9d9d9",c(1508),c(1410),"#ff4d4f",c(1475)],dt=({value:e=c(1277),onChange:n,onChangeComplete:t})=>{const o=c,[x,r]=L[o(1039)](!1),[i,a]=L[o(1039)](e),u=L[o(697)](null);L[o(856)](()=>{a(e)},[e]),L[o(856)](()=>{const d=o,f=b=>{const g=_0x2299;u[g(1123)]&&!u.current.contains(b[g(345)])&&(r(!1),t?.({toHexString:()=>i}))};return x&&document[d(1918)]("mousedown",f),()=>document.removeEventListener(d(1418),f)},[x,t,i]);const s=d=>{a(d),n?.({toHexString:()=>d})};return l.jsxs("div",{ref:u,style:{position:o(1167),display:"inline-block"},children:[l[o(454)](o(1415),{onClick:()=>r(!x),style:{width:28,height:28,backgroundColor:i,border:o(1814),borderRadius:4,cursor:o(1299)}}),x&&l[o(2088)](o(1415),{style:{position:o(1523),top:32,left:0,zIndex:1e3,background:o(1015),padding:8,borderRadius:4,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",border:"1px solid #f0f0f0"},children:[l.jsx("div",{style:{display:o(1110),gridTemplateColumns:o(1928),gap:4},children:ml.map(d=>l[o(454)](o(1415),{onClick:()=>{s(d),r(!1),t?.({toHexString:()=>d})},style:{width:20,height:20,backgroundColor:d,border:i===d?"2px solid #1890ff":o(1814),borderRadius:2,cursor:o(1299)}},d))}),l.jsx(o(1185),{type:o(608),value:i,onChange:d=>s(d[o(345)][o(1462)]),onBlur:()=>t?.({toHexString:()=>i}),style:{width:o(1826),marginTop:8,height:28,border:o(1814),borderRadius:4}})]})]})},{TextArea:wl}=z[c(950)];function vl(e){const n=c;if(!e||!(e instanceof HTMLElement))return!1;const t=e[n(1658)];return!!(t===n(616)||t==="TEXTAREA"||t===n(1538)||t===n(701)||e[n(2092)]||e[n(2108)](n(384))||e[n(2108)](n(719))||e.closest(n(1134)))}const Gr=({defaultTestData:e,readonly:n=!1,backgroundImageUrl:t,initialViewportWidth:o,initialViewportHeight:x})=>{const r=c,i=L.useRef(null),a=L.useRef(null),u=L[r(697)](null),{nodes:s,selectedNodeId:d,selectedNodeIds:f,mode:b,lineDrawing:g,viewport:m,canvas:h,root:p,setViewport:M,setCanvasConfig:y,addNode:v,selectNode:w,updateNode:C,removeNode:S,bringToFront:U,sendToBack:G,undo:H,redo:O,setMode:_,startLineDrawing:X,endLineDrawing:q,cancelLineDrawing:T,addCanvas:N,removeCanvas:D,switchCanvas:B,updateCanvasName:A,exportCanvas:P,importCanvas:I,setSelectedNodeIds:Z}=qe(),[Q,J]=L.useState(!1),[,$]=L[r(1039)]({}),xe=L.useRef(b);L[r(856)](()=>{xe.current=b},[b]),L[r(856)](()=>{_(n?"preview":"select")},[n,_]);const ae=n&&o&&h[r(1915)]>0?Math[r(782)](o/h[r(1915)],1):.5,le=n&&o?1:5,fe=n&&o&&h.width>0?ae:1,re=n&&o?"viewport-"+o+"-"+(x||r(816))+r(1537)+h[r(1915)]+"-"+h.height:r(795),K=L[r(697)](fe),ie=L[r(697)](!1),R=L[r(697)]({x:0,y:0}),k=L[r(697)]({x:0,y:0,newX:0,newY:0}),j=L.useRef(null),[W,E]=L[r(1039)]({start:null,end:null,isDrawing:!1}),[oe,se]=L[r(1039)]({start:null,end:null}),ce=f,be=Z;L[r(697)](!1);const[we,Ne]=L.useState(!1),[Ce,ke]=L[r(1039)](!1),[Ee,Pe]=L[r(1039)](()=>JSON[r(1079)](e??null,null,2)),Ie=L[r(1345)](()=>{const Y=r;if(!Ce)return e;try{return JSON[Y(1802)](Ee)}catch{return e}},[Ee,e,Ce]),Ae=L.useMemo(()=>{const Y=r,V=Ie;if(V!==null&&typeof V===Y(2151))return V;if(V!==void 0)return{_payload:V}},[Ie]),Ve=L[r(1345)](()=>{const Y=r,V=Ie;return V!==null&&typeof V===Y(2151)&&!Array[Y(2018)](V)?V:Array[Y(2018)](V)?{_telemetryRows:V}:V==null?{}:{_payload:V}},[Ie]),nn=L.useCallback(()=>{const Y=r;let V=e;if(Ce)try{V=JSON[Y(1802)](Ee)}catch{V=e}Pe(JSON.stringify(V??null,null,2)),Ne(!0)},[Ee,e,Ce]),[bn,_e]=L[r(1039)](!1),[on,Xe]=L[r(1039)](!1),[rn,an]=L[r(1039)](""),[tn,gn]=L.useState(!1),In=L[r(1974)](()=>{const Y=r;try{const V=P(),te=JSON[Y(1079)](V,null,2),ne=Y(683)+encodeURIComponent(te),ue=Y(793)+V.canvas.name+"_"+Date[Y(1723)]()+Y(1540),F=document[Y(1473)]("a");F[Y(804)](Y(2009),ne),F.setAttribute(Y(996),ue),F[Y(1091)](),z[Y(1200)][Y(966)](Y(1116))}catch{z[Y(1200)][Y(598)](Y(1756))}},[P]),Je=L.useCallback(()=>{const Y=r;try{const V=JSON[Y(1802)](rn);tn?I(V):I(V,p[Y(1898)]||void 0),Xe(!1),an(""),gn(!1),z[Y(1200)].success("画布导入成功!")}catch{z.message[Y(598)]("JSON 格式错误,请检查输入")}},[rn,tn,I,p[r(1898)]]),Bt=L.useCallback(Y=>{const V=r,te=new FileReader;return te[V(1257)]=ne=>{const ue=V;try{const F=ne[ue(345)]?.result,ee=JSON[ue(1802)](F);tn?I(ee):I(ee,p[ue(1898)]||void 0),z.message[ue(966)](ue(1809)),Xe(!1),gn(!1)}catch{z[ue(1200)][ue(598)](ue(347))}},te[V(628)](Y),!1},[tn,I,p.currentCanvasId]),[Ze,Hn]=L[r(1039)](!1),We=L[r(1974)]((Y,V)=>{const te=r;if(!a.current)return{x:0,y:0};const ne=a[te(1123)][te(1749)](),ue=Y-ne[te(1484)],F=V-ne[te(2026)],ee=ne.width/h.width,ge=ne[te(2035)]/h[te(2035)],me=ue/ee,ye=F/ge;return{x:Math.round(me),y:Math.round(ye)}},[h[r(1915)],h[r(2035)]]),yn=L[r(1974)]((Y,V)=>We(Y,V),[We]),Dt=L[r(1974)]((Y,V,te=!0)=>{const ne=r;if(!g[ne(1080)])return;const ue=g[ne(1080)],F=ue.config||{},ee=F[ne(1779)]||F[ne(1333)]||2,ge=Math[ne(782)](Y.x,V.x),me=Math[ne(782)](Y.y,V.y),ye=Math[ne(392)](Y.x-ge),Me=Math[ne(392)](Y.y-me),pe=Math[ne(392)](V.x-ge),Se=Math[ne(392)](V.y-me),Ge=Math.max(ee*2,4),Mn=Math[ne(1108)](Math[ne(1494)](Y.x-V.x),Ge),mn=Math.max(Math.abs(Y.y-V.y),Ge),Ke={...ue,id:ze[ne(2016)](),config:{color:F[ne(608)],lineWeight:ee,thickness:ee,lineType:F[ne(690)],startX:ye,startY:Me,endX:pe,endY:Se}},ve={id:ze[ne(2016)](),name:ue[ne(1872)]+"_"+Date[ne(1723)](),type:ne(1642),normalStyle:{width:Mn,height:mn,x:ge,y:me,background:ne(1436)},contentInfo:{statusList:[N0(Ke)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(v(ve,!1),te){const De={x:V.x,y:V.y};E({start:De,end:{...De},isDrawing:!0})}else E({start:null,end:null,isDrawing:!1}),q()},[g[r(1080)],v,q]),Po=L.useCallback(()=>{const Y=r,V=i[Y(1123)]?.[Y(528)];if(!V)return;const te=V[Y(2102)];K[Y(1123)]=te[Y(1126)],M({scale:te[Y(1126)],positionX:0,positionY:0})},[M]),Io=L[r(1974)](Y=>{const V=r;ie.current||b!==V(550)&&(Y[V(345)]===a.current||Y.target[V(969)]?.[V(1678)]===V(1403))&&(w(null),be([]))},[w,b]),Ao=L[r(1974)](Y=>{const V=r;if(Y[V(1372)]===0){if(b===V(1541)&&g[V(1080)]){Y.stopPropagation();const te=We(Y[V(1239)],Y[V(970)]);W[V(1208)]?W[V(1255)]&&Dt(W[V(1255)],te,!0):E({start:te,end:te,isDrawing:!0});return}if(b==="box-select"&&!Ze){const te=yn(Y[V(1239)],Y[V(970)]);se({start:te,end:te}),be([]),w(null),Y.preventDefault(),Y.stopPropagation()}}},[b,g.material,W[r(1208)],W[r(1255)],Ze,Dt,We,yn]),jo=L[r(1974)](Y=>{const V=r;if(!(b!=="line-draw"||!g[V(1080)])&&W[V(1208)]&&W[V(1255)]){const te=We(Y[V(1239)],Y[V(970)]);Dt(W.start,te,!1)}},[b,g.material,W[r(1208)],W.start,Dt,We]),Yo=L[r(1974)](Y=>{const V=r;Y[V(1224)](),Y[V(632)][V(2021)]=V(622),J(!0)},[]),Eo=L[r(1974)](Y=>{Y[r(1224)](),J(!1)},[]),Uo=L[r(1974)](Y=>{const V=r;if(Y.preventDefault(),J(!1),!(!a[V(1123)]||b!=="select"))try{const te=Y[V(632)][V(1215)]("application/json");if(!te)return;const ne=JSON[V(1802)](te),ue=We(Y.clientX,Y.clientY),F=ue.x-50,ee=ue.y-50,ge=cr(F,ee,ne);v(ge),be([ge.id])}catch(te){console.error("Failed to parse dropped material:",te)}},[b,v,We]),Oo=L.useCallback((Y,V)=>{const te=r;b!==te(1087)&&b!==te(550)||!V[te(1292)][te(835)]||(Y[te(986)](),w(V.id),ie[te(1123)]=!0,R[te(1123)]={x:Y[te(1239)],y:Y[te(970)]},k.current={x:V[te(500)].x||0,y:V[te(500)].y||0,newX:V[te(500)].x||0,newY:V[te(500)].y||0},j[te(1123)]=V,Y[te(1224)]())},[b,w]);L.useEffect(()=>{const Y=r,V=F=>{const ee=_0x2299;if(ie[ee(1123)]&&d&&j[ee(1123)]){if(!a[ee(1123)])return;const ge=a[ee(1123)][ee(1749)](),me=ge[ee(1915)]/h.width,ye=ge[ee(2035)]/h.height,Me=F[ee(1239)]-R.current.x,pe=F.clientY-R[ee(1123)].y,Se=Me/me,Ge=pe/ye,Mn=k[ee(1123)].x+Se,mn=k[ee(1123)].y+Ge,Ke=document[ee(1086)](ee(1346)+d+'"]');Ke&&(Ke[ee(799)][ee(1484)]=Mn+"px",Ke[ee(799)][ee(2026)]=mn+"px"),k[ee(1123)][ee(1543)]=Mn,k.current[ee(1942)]=mn}if(b===ee(550)&&oe.start){const ge=yn(F.clientX,F[ee(970)]);se(me=>({...me,end:ge}))}if(b==="line-draw"&&W[ee(1208)]){const ge=We(F[ee(1239)],F[ee(970)]);E(me=>({...me,end:ge}))}},te=()=>{const F=_0x2299;if(ie[F(1123)]&&d&&j[F(1123)]){const ee=qe[F(1838)](),ge=k.current.newX??k[F(1123)].x,me=k[F(1123)][F(1942)]??k[F(1123)].y;ee[F(735)](d,{normalStyle:{...j[F(1123)][F(500)],x:ge,y:me}})}if(ie.current=!1,j[F(1123)]=null,$({}),b===F(550)&&oe[F(1255)]&&oe[F(1830)]){const ee=Math[F(782)](oe.start.x,oe.end.x),ge=Math.max(oe[F(1255)].x,oe.end.x),me=Math[F(782)](oe[F(1255)].y,oe[F(1830)].y),ye=Math[F(1108)](oe[F(1255)].y,oe[F(1830)].y),Me=s.filter(pe=>{const Se=F,Ge=pe.normalStyle.x||0,Mn=pe[Se(500)].y||0,mn=pe.normalStyle[Se(1915)]||0,Ke=pe[Se(500)][Se(2035)]||0,ve=Ge+mn/2,De=Mn+Ke/2;return ve>=ee&&ve<=ge&&De>=me&&De<=ye})[F(1849)](pe=>pe.id);be(Me),se({start:null,end:null})}},ne=F=>{const ee=_0x2299;if(!vl(F[ee(345)])){if(F.key===ee(757)&&b===ee(1541)&&(E({start:null,end:null,isDrawing:!1}),T()),F[ee(1789)]===ee(354)&&(d?S(d):ce.length>0&&(ce[ee(644)](ge=>S(ge)),be([]))),F[ee(398)]&&F[ee(1789)]==="z"&&(F[ee(1224)](),H()),F[ee(398)]&&F[ee(1789)]==="y"&&(F.preventDefault(),O()),(b===ee(1087)||b===ee(550))&&(F[ee(1789)]===ee(1342)||F[ee(1789)]===ee(437)||F.key===ee(1813)||F.key===ee(369))){const ge=ce[ee(402)]>0?ce:d?[d]:[];if(ge[ee(402)]>0){F[ee(1224)]();const me=F[ee(1789)]==="ArrowLeft"?-2:F[ee(1789)]===ee(437)?2:0,ye=F[ee(1789)]===ee(1813)?-2:F.key===ee(369)?2:0;ge[ee(644)](Me=>{const pe=ee,Se=s[pe(438)](Ge=>Ge.id===Me);Se&&C(Me,{normalStyle:{...Se[pe(500)],x:(Se[pe(500)].x||0)+me,y:(Se[pe(500)].y||0)+ye}})})}}F[ee(1789)]===" "&&!Ze&&(F.preventDefault(),Hn(!0))}},ue=F=>{F[_0x2299(1789)]===" "&&Ze&&Hn(!1)};return window.addEventListener(Y(1797),V),window.addEventListener(Y(1568),te),window[Y(1918)]("keydown",ne),window[Y(1918)](Y(1874),ue),()=>{const F=Y;window[F(1561)](F(1797),V),window.removeEventListener(F(1568),te),window.removeEventListener("keydown",ne),window.removeEventListener("keyup",ue)}},[d,oe,b,W[r(1208)],ce,s,h[r(1915)],h.height,S,H,Ze,O,T,We,yn,be,C]);const s0=(Y,V=!0)=>{const te=r,ne={...Y,id:ze.nanoid(),name:Y[te(1872)]+"_副本",normalStyle:{...Y.normalStyle,x:(Y[te(500)].x||0)+(V?20:0),y:(Y.normalStyle.y||0)+(V?20:0)}};return Y[te(1246)]===te(1747)&&Y.children&&(ne[te(2099)]=Y[te(2099)][te(1849)](ue=>s0(ue,!1))),ne},l0=L.useCallback(()=>{const Y=r,V=ce.length>0?ce[Y(1849)](ne=>s[Y(438)](ue=>ue.id===ne))[Y(1211)](Boolean):d?[s[Y(438)](ne=>ne.id===d)][Y(1211)](Boolean):[];if(V[Y(402)]===0)return;const te=[];V.forEach(ne=>{const ue=Y,F=s0(ne);v(F),te[ue(557)](F.id)}),te[Y(402)]===1?w(te[0]):be(te)},[d,ce,s,v,w,be]),d0=L.useCallback(()=>{const Y=r;if(ce[Y(402)]<2)return;const V=[];for(let me=0;me<ce.length;me++){const ye=ce[me],Me=s[Y(438)](pe=>pe.id===ye);if(Me){if(Me?.[Y(1246)]===Y(1747)){Me.children[Y(644)](Se=>V[Y(557)]({...Se,normalStyle:{...Se.normalStyle,x:(Me.normalStyle.x||0)+(Se[Y(500)].x||0),y:(Me[Y(500)].y||0)+(Se[Y(500)].y||0)}})),S(ye);continue}V[Y(557)](Me)}}if(V[Y(402)]<2)return;let te=1/0,ne=1/0,ue=-1/0,F=-1/0;V[Y(644)](me=>{const ye=Y,Me=me[ye(500)].x||0,pe=me[ye(500)].y||0,Se=me[ye(500)][ye(1915)]||0,Ge=me[ye(500)][ye(2035)]||0;te=Math[ye(782)](te,Me),ne=Math[ye(782)](ne,pe),ue=Math[ye(1108)](ue,Me+Se),F=Math.max(F,pe+Ge)});const ee=V[Y(1849)](me=>({...me,normalStyle:{...me[Y(500)],x:(me[Y(500)].x||0)-te,y:(me.normalStyle.y||0)-ne}})),ge={id:ze.nanoid(),name:Y(1940)+Date[Y(1723)](),type:Y(1747),normalStyle:{x:te,y:ne,width:ue-te,height:F-ne,background:"transparent"},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:ee};ce[Y(644)](me=>S(me)),v(ge),be([]),w(ge.id)},[ce,s,S,v,w]),u0=Y=>{const V=r,te={...Y,id:ze[V(2016)]()};return Y[V(1246)]===V(1747)&&Y[V(2099)]&&(te[V(2099)]=Y[V(2099)].map(ne=>u0(ne))),te},f0=L[r(1974)](()=>{const Y=r,V=ce[Y(402)]>0?ce.map(te=>s[Y(438)](ne=>ne.id===te))[Y(1211)](te=>!!te&&te[Y(1246)]===Y(1747)):d?[s[Y(438)](te=>te.id===d)][Y(1211)](te=>!!te&&te[Y(1246)]==="group"):[];V[Y(402)]!==0&&(V.forEach(te=>{const ne=Y;if(!te[ne(2099)]||te.children[ne(402)]===0)return;const ue=te[ne(500)].x||0,F=te[ne(500)].y||0,ee=te[ne(500)].width||0,ge=te[ne(500)][ne(2035)]||0,me=te[ne(500)][ne(660)]||0,ye=me*Math.PI/180,Me=Math[ne(2003)](ye),pe=Math[ne(1782)](ye),Se=ue+ee/2,Ge=F+ge/2,Mn=(Ke,ve)=>{const De=Ke-ee/2,nt=ve-ge/2;return{x:Se+De*Me-nt*pe,y:Ge+De*pe+nt*Me}},mn=te[ne(2099)][ne(1849)](Ke=>{const ve=ne,De=u0(Ke);if(De.contentInfo[ve(673)].some(Vo=>Vo[ve(1080)][ve(1246)]===ve(1772))){const Vo=De[ve(500)].x||0,lb=De[ve(500)].y||0,xs=De[ve(500)][ve(1915)]||0,os=De.normalStyle[ve(2035)]||0,db=De[ve(500)][ve(660)]||0,rs=db*Math.PI/180,is=Math[ve(2003)](rs),as=Math[ve(1782)](rs),cs=(ot,Te)=>{const wn=ot-xs/2,Bn=Te-os/2,cn=wn*is-Bn*as+xs/2,Xo=wn*as+Bn*is+os/2;return Mn(Vo+cn,lb+Xo)};let tt=1/0,xt=1/0,To=-1/0,qo=-1/0,Wo=2;const ub=De[ve(1271)][ve(673)][ve(1849)](ot=>{const Te=ve;if(ot[Te(1080)][Te(1246)]!==Te(1772))return null;const wn=ot[Te(1080)][Te(2011)]||{},Bn=cs(wn.startX||0,wn[Te(1320)]||0),cn=cs(wn.endX||0,wn[Te(1085)]||0);return tt=Math[Te(782)](tt,Bn.x,cn.x),xt=Math[Te(782)](xt,Bn.y,cn.y),To=Math[Te(1108)](To,Bn.x,cn.x),qo=Math[Te(1108)](qo,Bn.y,cn.y),Wo=Math[Te(1108)](Wo,wn[Te(1779)]||wn[Te(1333)]||2),{s:Bn,e:cn}});if(Number[ve(967)](tt)&&Number[ve(967)](xt)){const ot=Math.max(Wo*2,4),Te=Math[ve(1108)](To-tt,ot),wn=Math[ve(1108)](qo-xt,ot),Bn=De[ve(1271)][ve(673)][ve(1849)]((cn,Xo)=>{const z0=ve,sx=ub[Xo];if(!sx||cn.material[z0(1246)]!==z0(1772))return cn;const ss=cn[z0(1080)];return{...cn,material:{...ss,config:{...ss[z0(2011)]||{},startX:sx.s.x-tt,startY:sx.s.y-xt,endX:sx.e.x-tt,endY:sx.e.y-xt}}}});return{...De,normalStyle:{...De[ve(500)],x:tt,y:xt,width:Te,height:wn,rotate:0},contentInfo:{...De[ve(1271)],statusList:Bn}}}}const w0=De[ve(500)][ve(1915)]||0,v0=De.normalStyle.height||0,p0=De[ve(500)].x||0,cx=De[ve(500)].y||0,ns=p0+w0/2-ee/2,ts=cx+v0/2-ge/2,ib=Se+ns*Me-ts*pe,ab=Ge+ns*pe+ts*Me,cb=De[ve(500)][ve(660)]||0,sb=((cb+me)%360+360)%360;return{...De,normalStyle:{...De[ve(500)],x:ib-w0/2,y:ab-v0/2,rotate:sb}}});S(te.id),mn[ne(644)](Ke=>v(Ke))}),be([]),w(null))},[d,ce,s,S,v,w,be]),ox=L[r(1974)](Y=>{const V=r;if(ce[V(402)]<2)return;const te=ce[V(1849)](ye=>s[V(438)](Me=>Me.id===ye))[V(1211)](ye=>!!ye&&ye[V(1246)]!==V(1747));if(te[V(402)]<2)return;let ne=1/0,ue=-1/0,F=1/0,ee=-1/0;te.forEach(ye=>{const Me=V,pe=ye.normalStyle.x||0,Se=ye[Me(500)].y||0;ne=Math[Me(782)](ne,pe),ue=Math.max(ue,pe),F=Math[Me(782)](F,Se),ee=Math[Me(1108)](ee,Se)});const ge=[...te][V(1601)]((ye,Me)=>{const pe=V;return Y===pe(964)?(ye[pe(500)].x||0)-(Me[pe(500)].x||0):(ye.normalStyle.y||0)-(Me[pe(500)].y||0)}),me=ge.length;if(Y===V(964)){const ye=ue-ne,Me=ye/(me-1);ge[V(644)]((pe,Se)=>{const Ge=ne+Me*Se;C(pe.id,{normalStyle:{...pe.normalStyle,x:Ge}})})}else{const ye=ee-F,Me=ye/(me-1);ge[V(644)]((pe,Se)=>{const Ge=F+Me*Se;C(pe.id,{normalStyle:{...pe.normalStyle,y:Ge}})})}},[ce,s,C]),Vn=Y=>{const V=r,te=Y[V(1271)][V(673)][V(438)](ne=>ne[V(1080)][V(1246)]===V(1772));return te?te[V(1080)][V(2011)]:null},Tn=L[r(1974)](Y=>{const V=r;if(ce[V(402)]<2)return;const te=qe[V(1838)](),ne=ce.map(F=>s.find(ee=>ee.id===F))[V(1211)](F=>!!F);if(ne[V(402)]<2)return;let ue=0;switch(Y){case V(1484):ue=Math[V(782)](...ne.map(F=>{const ee=V,ge=Vn(F);return ge?(F[ee(500)].x||0)+(ge[ee(998)]||0):F.normalStyle.x||0}));break;case V(1902):ue=Math.max(...ne[V(1849)](F=>{const ee=V,ge=Vn(F);return ge?(F[ee(500)].x||0)+(ge[ee(973)]||0):(F[ee(500)].x||0)+(F[ee(500)][ee(1915)]||0)}));break;case V(2026):ue=Math[V(782)](...ne[V(1849)](F=>{const ee=V,ge=Vn(F);return ge?(F[ee(500)].y||0)+(ge.startY||0):F.normalStyle.y||0}));break;case"bottom":ue=Math[V(1108)](...ne[V(1849)](F=>{const ee=V,ge=Vn(F);return ge?(F[ee(500)].y||0)+(ge.endY||0):(F[ee(500)].y||0)+(F[ee(500)][ee(2035)]||0)}));break}ne[V(644)](F=>{const ee=V;let ge=F.normalStyle.x||0,me=F[ee(500)].y||0;const ye=Vn(F);switch(Y){case"left":ye?ge=ue-(ye.startX||0):ge=ue;break;case ee(1902):ye?ge=ue-(ye[ee(973)]||0):ge=ue-(F[ee(500)][ee(1915)]||0);break;case ee(2026):ye?me=ue-(ye[ee(1320)]||0):me=ue;break;case ee(1707):ye?me=ue-(ye[ee(1085)]||0):me=ue-(F[ee(500)][ee(2035)]||0);break}te[ee(735)](F.id,{normalStyle:{...F.normalStyle,x:ge,y:me}})})},[ce,s]),h0=[{icon:l[r(454)](de.SelectOutlined,{}),title:"选择模式",active:b===r(1087),onClick:()=>{_(r(1087))}},{icon:l[r(454)](de[r(718)],{}),title:r(389),active:b===r(550),onClick:()=>{_(r(550)),be([])}},{icon:l[r(454)](de[r(842)],{}),title:"拖拽模式",active:b==="drag",onClick:()=>{_("drag")}},{icon:l[r(454)](de.EditOutlined,{}),title:"线条绘制",active:b===r(1541),onClick:()=>{_(r(1541))}},{icon:l[r(454)](de[r(1968)],{}),title:r(1389),active:b===r(610),onClick:()=>{_(r(610))}}],Lt=L[r(1974)](()=>ce[r(402)]>0?ce:d?[d]:[],[ce,d]),b0=L.useCallback(()=>{const Y=r,V=Lt();if(V[Y(402)]===0)return;s.filter(ne=>V[Y(633)](ne.id))[Y(1849)](ne=>ne.id)[Y(644)](ne=>U(ne))},[Lt,s,U]),g0=L[r(1974)](()=>{const Y=r,V=Lt();if(V.length===0)return;[...s[Y(1211)](ne=>V[Y(633)](ne.id)).map(ne=>ne.id)][Y(1111)]()[Y(644)](ne=>G(ne))},[Lt,s,G]),Go=L[r(1345)](()=>[{icon:l[r(454)](de[r(914)],{}),title:r(499),onClick:H},{icon:l.jsx(de[r(1149)],{}),title:r(1041),onClick:O},{icon:l[r(454)](de[r(548)],{}),title:r(375),disabled:!d&&ce[r(402)]===0,onClick:b0},{icon:l[r(454)](de[r(489)],{}),title:"置于底层",disabled:!d&&ce[r(402)]===0,onClick:g0},{icon:l[r(454)](de.CopyOutlined,{}),title:r(1513),disabled:!d&&ce[r(402)]===0,onClick:l0},{icon:l[r(454)](de[r(718)],{}),title:"组合选中节点",disabled:ce[r(402)]<2,onClick:d0},{icon:l[r(454)](de.UngroupOutlined,{}),title:"解除组合",disabled:!d&&ce.length===0,onClick:f0},{icon:l[r(454)](de[r(2111)],{}),title:r(604),disabled:ce[r(402)]<2,onClick:()=>Tn(r(1484))},{icon:l[r(454)](de.AlignRightOutlined,{}),title:r(1391),disabled:ce[r(402)]<2,onClick:()=>Tn("right")},{icon:l[r(454)](de[r(1387)],{}),title:r(1835),disabled:ce[r(402)]<2,onClick:()=>Tn("top")},{icon:l.jsx(de[r(381)],{}),title:r(694),disabled:ce[r(402)]<2,onClick:()=>Tn(r(1707))},{icon:l.jsx(de.ColumnWidthOutlined,{}),title:"水平分布",disabled:ce[r(402)]<2,onClick:()=>ox(r(964))},{icon:l.jsx(de[r(1095)],{}),title:r(1605),disabled:ce[r(402)]<2,onClick:()=>ox("vertical")},{icon:l[r(454)](de[r(1525)],{}),title:"画布配置",onClick:()=>_e(!0)},{icon:l[r(454)](de[r(1641)],{}),title:r(988),type:r(2051),onClick:nn},{icon:l.jsx(de.DeleteOutlined,{}),title:r(1463),disabled:!d&&ce[r(402)]===0,onClick:()=>{d?S(d):ce[r(402)]>0&&(ce.forEach(V=>S(V)),be([]))}}],[H,O,b,_,be,ce,d0,f0,l0,Tn,ox,b0,g0,_e,Ne,nn,d,S,p[r(1898)]]),[Ho,y0]=L.useState(!1),[rx,ix]=L[r(1039)](""),[m0,ax]=L[r(1039)](null);return l.jsxs(r(1415),{className:r(708)+(n?"":"flex-1 h-full bg-gray-100"),children:[!n&&l[r(2088)](r(1415),{className:r(1562),children:[l.jsxs(z[r(1170)],{children:[h0[r(1849)](Y=>l[r(454)](z[r(464)],{title:Y.title,children:l[r(454)](z.Button,{type:Y[r(1677)]?r(2051):r(795),icon:Y[r(2057)],onClick:Y[r(1298)]})},Y[r(1837)])),l[r(454)](r(1415),{className:r(714)}),l.jsx(z[r(385)],{value:p[r(1898)],onChange:B,style:{width:140},dropdownRender:Y=>l[r(2088)](l[r(562)],{children:[Y,l.jsx("div",{className:r(1916),children:l[r(454)](z[r(577)],{type:"link",size:r(1261),block:!0,onClick:()=>y0(!0),children:r(1709)})})]}),children:p[r(519)].map(Y=>l[r(454)](z[r(385)][r(1056)],{value:Y.id,children:Y.name},Y.id))}),l[r(454)](z[r(577)],{icon:l[r(454)](de.PlusOutlined,{}),size:r(1261),onClick:()=>N(),title:r(1172)}),l[r(454)](z.Tooltip,{title:r(2113),children:l[r(454)](z[r(577)],{icon:l.jsx(de[r(2049)],{}),size:r(1261),onClick:In})}),l[r(454)](z[r(464)],{title:r(605),children:l[r(454)](z.Button,{icon:l[r(454)](de.UploadOutlined,{}),size:r(1261),onClick:()=>Xe(!0)})})]}),l.jsx(z[r(1170)],{children:Go.map(Y=>l[r(454)](z[r(464)],{title:Y[r(1837)],children:l[r(454)](z[r(577)],{type:Y[r(1677)]?"primary":Y.type||"default",icon:Y[r(2057)],onClick:Y[r(1298)],disabled:Y[r(427)]})},Y[r(1837)]))})]}),l[r(454)]("div",{ref:u,className:"relative "+(n?"":"flex-1"),style:n&&o?{display:r(1697),justifyContent:r(1429),alignItems:r(1429)}:void 0,onWheel:n&&o?Y=>{const V=r;Y[V(1224)](),Y[V(986)]();const te=i[V(1123)];if(!te)return;const ne=K[V(1123)],ue=.1,F=Y[V(2019)]>0?Math[V(1108)](ne-ue,ae):Math[V(782)](ne+ue,le);te[V(997)](0,0,F,0)}:void 0,children:l[r(454)](dx[r(1612)],{ref:i,initialScale:fe,initialPositionX:0,initialPositionY:0,minScale:ae,maxScale:le,onTransformed:Po,limitToBounds:n&&!!o,centerZoomedOut:n&&!!o,panning:{disabled:!Ze&&b!==r(731),velocityDisabled:!0},wheel:{disabled:n&&!!o,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:Y,zoomOut:V,resetTransform:te})=>l[r(2088)](l.Fragment,{children:[!n&&l[r(454)]("div",{className:r(1656),children:l.jsxs(z[r(1170)],{direction:"vertical",children:[l[r(454)](z.Tooltip,{title:"放大",children:l[r(454)](z.Button,{icon:l[r(454)](de[r(1216)],{}),onClick:()=>Y()})}),l[r(454)](z[r(464)],{title:"缩小",children:l[r(454)](z.Button,{icon:l[r(454)](de[r(691)],{}),onClick:()=>V()})}),l[r(454)](z[r(464)],{title:r(1495),children:l[r(454)](z.Button,{onClick:()=>te(),children:"100%"})}),l[r(2088)](r(1415),{className:r(1419),children:[Math[r(392)](m[r(1126)]*100),"%"]})]})}),l.jsx(dx[r(1453)],{wrapperStyle:n&&o?{width:o,height:x||h.height*(K[r(1123)]||1)+"px",position:r(1167),overflow:"hidden"}:{width:"100%",height:n?h[r(2035)]*(K.current||1)+"px":"100%",position:r(1167),overflow:r(n?1360:2094)},contentStyle:{width:n?h[r(1915)]+"px":r(1826),height:n?h[r(2035)]+"px":"100%",display:r(1697),alignItems:n?r(1429):"center",justifyContent:n?"flex-start":r(1668)},children:l[r(2088)](r(1415),{ref:a,"data-canvas":r(1403),className:r(1699)+(Q?r(1945):"")+" "+(b===r(1541)?"cursor-crosshair":"")+" "+(Ze?r(899):""),style:{width:h[r(1915)],height:h.height,flexShrink:0,backgroundColor:h[r(523)],backgroundImage:h[r(2017)]?r(522)+h[r(2017)]+")":void 0,backgroundSize:r(1121),backgroundPosition:r(1668)},onClick:Io,onMouseDown:Ao,onDoubleClick:jo,onDragOver:Yo,onDragLeave:Eo,onDrop:Uo,children:[t&&!n&&l.jsxs("div",{className:r(340),style:{width:h[r(1915)],height:h[r(2035)]},children:[l[r(454)]("img",{src:t,alt:"",className:"absolute top-0 left-0 select-none",draggable:!1}),l[r(454)](r(1171),{className:"absolute top-0 left-0 pointer-events-none",width:1920,height:1080,children:l[r(454)]("rect",{x:"0",y:"0",width:r(1050),height:r(638),fill:r(1795),stroke:"yellow",strokeWidth:"2"})})]}),h[r(584)]!==!1&&l[r(2088)](r(1171),{className:r(542),width:h[r(1915)],height:h[r(2035)],children:[l[r(454)]("defs",{children:l[r(454)](r(1572),{id:r(1110),width:"20",height:"20",patternUnits:r(1998),children:l[r(454)]("path",{d:r(553),fill:r(1795),stroke:"#f0f0f0",opacity:r(1323),strokeWidth:"1"})})}),l[r(454)](r(1254),{width:"100%",height:r(1826),fill:r(655)})]}),s[r(1849)](ne=>l[r(454)](U0,{node:ne,isSelected:b===r(610)?!1:d===ne.id||ce.includes(ne.id),data:Ae,onClick:b===r(610)?void 0:ue=>{const F=r;console[F(1893)]("Node onClick:",ne.id,"mode:",xe[F(1123)]),xe[F(1123)]!==F(1541)&&(ue[F(2152)]?(w(ne.id),be([...ce,ne.id])):(w(ne.id),be([ne.id])))},onMouseDown:b===r(610)?void 0:ue=>Oo(ue,ne),onUpdateNode:b===r(610)?void 0:(ue,F)=>C(ue,F),scale:m.scale,enableEventFlow:b===r(610),eventFlowData:Ve},""+ne.id)),b===r(1541)&&W[r(1208)]&&W.start&&W[r(1830)]&&l[r(454)](r(1171),{className:"absolute top-0 left-0 pointer-events-none",width:h[r(1915)],height:h[r(2035)],children:l.jsx(r(1774),{x1:W[r(1255)].x,y1:W[r(1255)].y,x2:W.end.x,y2:W.end.y,stroke:"#1890ff",strokeWidth:"2",strokeDasharray:r(669),strokeLinecap:r(392),strokeLinejoin:r(392)})}),b===r(550)&&oe[r(1255)]&&oe.end&&l[r(454)]("div",{className:r(1065),style:{left:Math[r(782)](oe[r(1255)].x,oe.end.x),top:Math[r(782)](oe[r(1255)].y,oe.end.y),width:Math[r(1494)](oe[r(1830)].x-oe[r(1255)].x),height:Math.abs(oe[r(1830)].y-oe[r(1255)].y),zIndex:9999}})]})})]})},re)}),l[r(454)](z[r(609)],{title:"数据模拟",open:we,onCancel:()=>Ne(!1),footer:null,children:l.jsx(z[r(432)],{layout:"vertical",children:l[r(454)](z[r(432)][r(798)],{label:r(571),children:l.jsx(wl,{value:Ee,onChange:Y=>{const V=r;ke(!0),Pe(Y[V(345)].value)},rows:10,placeholder:"输入 JSON 格式的测试数据;未编辑前画布跟随外部 defaultTestData(如监控推送)"})})})}),l[r(454)](z.Modal,{title:"画布配置",open:bn,onCancel:()=>_e(!1),footer:null,children:l[r(2088)](z[r(432)],{layout:r(1932),children:[l[r(454)](z[r(432)][r(798)],{label:"宽度",children:l.jsx(z[r(1221)],{value:h.width,onChange:Y=>y({width:Y||1920}),min:100,max:5e3,style:{width:r(1826)}})}),l[r(454)](z.Form.Item,{label:"高度",children:l[r(454)](z[r(1221)],{value:h[r(2035)],onChange:Y=>y({height:Y||1080}),min:100,max:5e3,style:{width:"100%"}})}),l[r(454)](z.Form[r(798)],{label:"显示网格",children:l.jsx(z[r(1368)],{checked:h[r(584)]!==!1,onChange:Y=>y({showGrid:Y})})}),l[r(454)](z[r(432)][r(798)],{label:r(926),children:l[r(2088)](r(1415),{className:"flex items-center gap-2",children:[l[r(454)](dt,{value:h[r(523)]||r(1385),onChange:Y=>y({background:Y.toHexString()})}),l[r(454)](z[r(950)],{value:h[r(523)],onChange:Y=>y({background:Y[r(345)][r(1462)]}),placeholder:r(1508)})]})}),l[r(2088)](z[r(432)][r(798)],{label:r(783),children:[l[r(2088)](r(1415),{className:"flex items-center gap-2",children:[l.jsx(z[r(1573)],{accept:r(1435),showUploadList:!1,beforeUpload:Y=>{const V=r;if(!Y.type[V(1713)](V(1459)))return z[V(1200)].error(V(1690)),!1;const ne=new FileReader;return ne[V(1257)]=ue=>{const F=V,ee=ue.target?.result;y({backgroundImage:ee}),z.message[F(966)](F(693))},ne.readAsDataURL(Y),!1},children:l[r(454)](z[r(577)],{icon:l.jsx(de[r(845)],{}),children:r(1689)})}),l[r(454)](z[r(950)],{value:h[r(2017)],onChange:Y=>y({backgroundImage:Y[r(345)][r(1462)]}),placeholder:r(1122),style:{flex:1}}),h.backgroundImage&&l[r(454)](z.Button,{icon:l[r(454)](de[r(1374)],{}),onClick:()=>y({backgroundImage:void 0}),danger:!0,size:r(1261)})]}),h[r(2017)]&&l[r(454)]("div",{className:"mt-2 p-2 border rounded",style:{maxWidth:r(1826)},children:l.jsx(r(705),{src:h[r(2017)],alt:r(1449),style:{maxWidth:r(1826),maxHeight:120,objectFit:r(1662)}})})]})]})}),l[r(2088)](z[r(609)],{title:r(2130),open:Ho,onCancel:()=>{y0(!1),ax(null),ix("")},footer:null,children:[l[r(454)](z[r(1542)],{dataSource:p[r(519)],renderItem:Y=>l.jsx(z.List.Item,{actions:[m0===Y.id?l[r(454)](z[r(577)],{type:r(2051),size:r(1261),onClick:()=>{A(Y.id,rx),ax(null)},children:"保存"}):l[r(454)](z.Button,{type:r(1083),icon:l[r(454)](de[r(1706)],{}),size:r(1261),onClick:()=>{const V=r;ax(Y.id),ix(Y[V(1872)])}}),p.canvases.length>1&&l.jsx(z[r(577)],{type:r(1083),danger:!0,icon:l[r(454)](de.DeleteOutlined,{}),size:r(1261),onClick:()=>D(Y.id)})][r(1211)](Boolean),children:m0===Y.id?l[r(454)](z[r(950)],{value:rx,onChange:V=>ix(V[r(345)][r(1462)]),size:r(1261),style:{width:200}}):l[r(2088)]("span",{style:{fontWeight:p[r(1898)]===Y.id?r(1613):r(1642)},children:[Y[r(1872)]," ",p[r(1898)]===Y.id&&r(1448)]})})}),l[r(454)](r(1415),{className:r(2064),children:l[r(454)](z[r(577)],{type:r(2051),icon:l[r(454)](de[r(1179)],{}),onClick:()=>N(),children:"新建画布"})})]}),l[r(454)](z[r(609)],{title:r(605),open:on,onOk:Je,onCancel:()=>{Xe(!1),an(""),gn(!1)},width:600,children:l[r(2088)](r(1415),{className:"space-y-4",children:[l[r(2088)](r(1415),{children:[l[r(454)]("p",{className:"mb-2",children:r(928)}),l[r(454)]("input",{type:r(1807),accept:".json",onChange:Y=>{const V=r,te=Y[V(345)].files?.[0];te&&Bt(te)},className:r(890)})]}),l[r(454)]("div",{className:r(725),children:"或"}),l[r(2088)](r(1415),{children:[l.jsx("p",{className:r(1704),children:r(2118)}),l[r(454)](r(2001),{value:rn,onChange:Y=>an(Y[r(345)].value),placeholder:r(1810),className:r(1450)})]}),l[r(2088)](r(1415),{className:r(796),children:[l.jsx("input",{type:"checkbox",id:"importAsNewCanvas",checked:tn,onChange:Y=>gn(Y[r(345)].checked),className:r(2154)}),l[r(454)](r(700),{htmlFor:"importAsNewCanvas",className:r(440),children:r(1487)})]})]})})]})},{Option:px}=z[c(385)];function Hr(e){return Array[c(2018)](e)}function pl(e){const n=c,t=new Set;return e[n(644)](o=>Object[n(771)](o).forEach(x=>t.add(x))),Array.from(t)}function zl(e,n){const t=c;return e[t(1849)]((o,x)=>{const r=t,i=o[n],a=o[r(1872)];return{label:String(a??"项 "+(x+1)),value:typeof i===r(1863)||typeof i===r(1288)?i:String(i)}})}function Vr(e,n=""){const t=c,o=[];for(const[x,r]of Object[t(2087)](e)){const i=n?n+"."+x:x;r!==null&&typeof r===t(2151)&&!Array.isArray(r)?o[t(557)](...Vr(r,i)):o[t(557)]({paramsCode:i,paramsName:i,value:r})}return o}function Cl(e,n,t){const o=c;if(Hr(e)){if(n!=null&&t!=null){const x=e[o(438)](r=>r[n]===t);if(x)return x}return{}}return e}const Ml=({material:e,onSave:n})=>{const t=c,o=e,x=o.content||{},r=qe(v=>v[t(1223)]),[i,a]=L[t(1039)]({label:x[t(700)]||"",value:x.value||"",valueSourceCode:x[t(724)]||"",unit:x.unit||"",decimals:x[t(447)]??2,labelFontSize:x.labelStyle?.[t(923)]||14,labelFontWeight:x[t(1089)]?.[t(2136)]||t(1613),labelColor:x[t(1089)]?.[t(608)]||t(1676),valueFontSize:x[t(1155)]?.[t(923)]||14,valueFontWeight:x[t(1155)]?.[t(2136)]||"normal",valueColor:x.valueStyle?.[t(608)]||t(1277),boundDatasetId:x[t(1582)]||"",boundDatasetBindCode:x[t(2050)]||"",boundDatasetBindValue:x[t(1733)]??null}),u=L.useMemo(()=>r[t(438)](w=>w.id===i.boundDatasetId),[r,i[t(1582)]]),s=u?Hr(u[t(2022)]):!1,d=L.useMemo(()=>{const v=t;if(!u)return[];const w=Cl(u[v(2022)],i[v(2050)],i[v(1733)]);return Vr(w)},[u,i.boundDatasetBindCode,i[t(1733)]]);L[t(856)](()=>{const v=t;a({label:x.label||"",value:x[v(1462)]||"",valueSourceCode:x[v(724)]||"",unit:x[v(1518)]||"",decimals:x[v(447)]??2,labelFontSize:x[v(1089)]?.[v(923)]||14,labelFontWeight:x[v(1089)]?.[v(2136)]||"bold",labelColor:x[v(1089)]?.[v(608)]||v(1676),valueFontSize:x[v(1155)]?.[v(923)]||14,valueFontWeight:x[v(1155)]?.[v(2136)]||v(1642),valueColor:x.valueStyle?.[v(608)]||v(1277),boundDatasetId:x[v(1582)]||"",boundDatasetBindCode:x[v(2050)]||"",boundDatasetBindValue:x.boundDatasetBindValue??null})},[e.id]);const f=(v,w)=>{a(C=>({...C,[v]:w}))},b=v=>{a(w=>({...w,boundDatasetId:v,boundDatasetBindCode:"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetId:v||void 0,boundDatasetBindCode:void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},g=v=>{a(w=>({...w,boundDatasetBindCode:v||"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindCode:v||void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},m=v=>{a(w=>({...w,boundDatasetBindValue:v??null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindValue:v??void 0,valueSourceCode:void 0}})},0)},h=v=>{const w=t,C=d.find(U=>U.paramsCode===v),S=C?.[w(1518)]||"";a(U=>({...U,valueSourceCode:v,unit:S,value:String(C?.[w(1462)]||"")})),setTimeout(()=>{n({content:{...x,valueSourceCode:v,value:String(C?.[w(1462)]||""),unit:S}})},0)},p=()=>{const v=t;n({content:{...x,label:i[v(700)],value:i[v(1462)],valueSourceCode:i[v(724)],unit:i[v(1518)],decimals:i[v(447)],boundDatasetId:i.boundDatasetId||void 0,boundDatasetBindCode:i[v(2050)]||void 0,boundDatasetBindValue:i[v(1733)]??void 0,labelStyle:{fontSize:i[v(1550)],fontWeight:i.labelFontWeight,color:i.labelColor},valueStyle:{fontSize:i[v(1458)],fontWeight:i[v(1209)],color:i[v(1598)]}}})},M=u&&s?pl(u[t(2022)]):[],y=u&&s&&i[t(2050)]?zl(u[t(2022)],i[t(2050)]):[];return l[t(2088)]("div",{className:t(1205),children:[l[t(454)](z[t(873)],{style:{marginTop:0},children:"文本内容"}),l[t(2088)](z[t(432)],{layout:"vertical",children:[l[t(454)](z[t(432)][t(798)],{label:t(1063),children:l[t(454)](z[t(950)],{value:i[t(700)],onChange:v=>f(t(700),v[t(345)][t(1462)]),onBlur:p,placeholder:t(1252)})}),l[t(454)](z[t(432)][t(798)],{label:t(365),help:t(1343),children:l[t(454)](z[t(385)],{allowClear:!0,placeholder:r[t(402)]===0?"暂无数据集":t(360),value:i[t(1582)]||void 0,onChange:b,style:{width:t(1826)},options:r[t(1849)](v=>({label:v[t(1872)],value:v.id}))})}),u&&s&&l[t(2088)](l[t(562)],{children:[l[t(454)](z[t(432)][t(798)],{label:t(512),help:"该数据集的 sample 为数组,请选择用于匹配数据项的字段",children:l[t(454)](z[t(385)],{allowClear:!0,placeholder:t(1559),value:i[t(2050)]||void 0,onChange:g,style:{width:t(1826)},options:M[t(1849)](v=>({label:v,value:v}))})}),i[t(2050)]&&l.jsx(z[t(432)][t(798)],{label:t(1604),help:t(1771),children:l[t(454)](z[t(385)],{allowClear:!0,placeholder:t(1492),value:i[t(1733)]??void 0,onChange:m,style:{width:t(1826)},options:y})})]}),l[t(454)](z[t(432)].Item,{label:t(1053),help:u?"从绑定的数据中选择字段":t(2109),children:l.jsx(z[t(385)],{value:i[t(724)]||void 0,onChange:h,placeholder:t(u?436:2109),allowClear:!0,disabled:!u,style:{width:t(1826)},options:d[t(1849)](v=>({value:v[t(847)],label:v[t(1752)]}))})}),l.jsx(z[t(432)].Item,{label:i[t(724)]?t(1443):t(2052),help:i[t(724)]?t(958):t(1575),children:l[t(454)](z.Input,{value:i[t(1462)],onChange:v=>f(t(1462),v[t(345)][t(1462)]),onBlur:p,placeholder:i[t(724)]?"数据字段无值时显示此备用值":"输入值文本",disabled:!!i[t(724)],variant:i[t(724)]?t(1848):void 0})}),l[t(454)](z[t(432)][t(798)],{label:"单位",help:"优先从绑定数据自动获取,也可手动输入",children:l[t(454)](z.Input,{value:i[t(1518)],onChange:v=>f(t(1518),v.target[t(1462)]),onBlur:p,placeholder:t(2058),suffix:i[t(724)]&&d[t(402)]>0?l[t(454)](z[t(1362)],{color:t(864),style:{marginRight:-8},children:"自动"}):null})}),l[t(454)](z[t(432)][t(798)],{label:t(475),help:t(495),children:l.jsx(z.InputNumber,{value:i[t(447)],onChange:v=>f("decimals",v??2),onBlur:p,min:-1,max:10,style:{width:t(1826)}})})]}),l[t(454)](z.Divider,{children:t(573)}),l[t(2088)](z[t(432)],{layout:t(1932),children:[l.jsxs(z[t(1170)],{children:[l[t(454)](z[t(432)][t(798)],{label:t(363),children:l[t(454)](z[t(1221)],{value:i[t(1550)],onChange:v=>f("labelFontSize",v||14),onBlur:p,min:8,max:72})}),l[t(454)](z[t(432)][t(798)],{label:t(1897),children:l.jsxs(z[t(385)],{value:i[t(880)],onChange:v=>{f(t(880),v),setTimeout(p,0)},style:{width:100},children:[l[t(454)](px,{value:t(1642),children:"正常"}),l[t(454)](px,{value:t(1613),children:"粗体"})]})})]}),l[t(454)](z[t(432)][t(798)],{label:t(1253),children:l[t(2088)](t(1415),{className:t(796),children:[l[t(454)](dt,{value:i.labelColor||"#262626",onChange:v=>{const w=t;f(w(1670),v[w(2047)]())},onChangeComplete:v=>{const w=t;n({content:{...x,label:i[w(700)],value:i.value,valueSourceCode:i[w(724)],unit:i.unit,decimals:i[w(447)],boundDatasetId:i.boundDatasetId||void 0,boundDatasetBindCode:i[w(2050)]||void 0,boundDatasetBindValue:i[w(1733)]??void 0,labelStyle:{fontSize:i.labelFontSize,fontWeight:i[w(880)],color:v[w(2047)]()},valueStyle:{fontSize:i.valueFontSize,fontWeight:i[w(1209)],color:i[w(1598)]}}})}}),l[t(454)](z[t(950)],{value:i[t(1670)],onChange:v=>f(t(1670),v[t(345)][t(1462)]),onBlur:p,placeholder:"#262626",style:{width:100}})]})})]}),l[t(454)](z[t(873)],{children:t(1040)}),l[t(2088)](z[t(432)],{layout:t(1932),children:[l[t(2088)](z.Space,{children:[l[t(454)](z[t(432)].Item,{label:"字体大小",children:l.jsx(z[t(1221)],{value:i[t(1458)],onChange:v=>f(t(1458),v||14),onBlur:p,min:8,max:72})}),l.jsx(z[t(432)][t(798)],{label:t(1897),children:l[t(2088)](z.Select,{value:i[t(1209)],onChange:v=>{f("valueFontWeight",v),setTimeout(p,0)},style:{width:100},children:[l.jsx(px,{value:t(1642),children:"正常"}),l[t(454)](px,{value:t(1613),children:"粗体"})]})})]}),l.jsx(z[t(432)][t(798)],{label:t(1253),children:l.jsxs(t(1415),{className:"flex items-center gap-2",children:[l[t(454)](dt,{value:i.valueColor||"#1890ff",onChange:v=>{const w=t;f(w(1598),v[w(2047)]())},onChangeComplete:v=>{const w=t;n({content:{...x,label:i[w(700)],value:i[w(1462)],valueSourceCode:i[w(724)],unit:i[w(1518)],decimals:i[w(447)],boundDatasetId:i.boundDatasetId||void 0,boundDatasetBindCode:i[w(2050)]||void 0,boundDatasetBindValue:i.boundDatasetBindValue??void 0,labelStyle:{fontSize:i[w(1550)],fontWeight:i[w(880)],color:i.labelColor},valueStyle:{fontSize:i[w(1458)],fontWeight:i[w(1209)],color:v[w(2047)]()}}})}}),l[t(454)](z[t(950)],{value:i[t(1598)],onChange:v=>f(t(1598),v.target.value),onBlur:p,placeholder:t(1277),style:{width:100}})]})})]})]})},Bl=({material:e,onSave:n})=>{const t=c,o=e,[x,r]=L[t(1039)]({name:e.name,src:o[t(1935)]||"",backgroundColor:o[t(972)]||"",fillColor:o[t(862)]||""});L[t(856)](()=>{const u=t;r({name:e[u(1872)],src:o[u(1935)]||"",backgroundColor:o[u(972)]||"",fillColor:o.fillColor||""})},[e.id]);const i=(u,s)=>{r(d=>({...d,[u]:s}))},a=()=>{const u=t;n({name:x[u(1872)],src:x[u(1935)],backgroundColor:x[u(972)]})};return l[t(2088)](t(1415),{className:"space-y-4",children:[l[t(454)](z[t(873)],{style:{marginTop:0},children:t(1769)}),l.jsxs(z.Form,{layout:t(1932),children:[l.jsx(z.Form[t(798)],{label:"图片名称",children:l.jsx(z[t(950)],{value:x[t(1872)],onChange:u=>i(t(1872),u.target[t(1462)]),onBlur:a})}),l[t(454)](z[t(432)][t(798)],{label:t(2084),children:l.jsx(z[t(950)][t(866)],{value:x[t(1935)],onChange:u=>i(t(1935),u[t(345)].value),onBlur:a,rows:4,placeholder:t(1029)})}),l.jsx(z[t(432)][t(798)],{label:t(820),children:l.jsxs(t(1415),{className:"flex items-center gap-2",children:[l.jsx(dt,{value:x[t(862)]||t(1277),onChange:u=>{const s=t,d=u[s(2047)]();i(s(862),d),n({name:x[s(1872)],src:x[s(1935)],backgroundColor:x[s(972)],fillColor:d})}}),l.jsx(z.Input,{value:x[t(862)],onChange:u=>i(t(862),u.target[t(1462)]),onBlur:a,placeholder:t(1277)})]})}),l[t(454)](z.Form[t(798)],{label:t(1139),children:l[t(2088)](t(1415),{className:t(796),children:[l[t(454)](dt,{value:x[t(972)]||t(1277),onChange:u=>{const s=t,d=u[s(2047)]();i(s(972),d),n({name:x[s(1872)],src:x[s(1935)],backgroundColor:d,fillColor:x[s(862)]})}}),l[t(454)](z[t(950)],{value:x[t(972)],onChange:u=>i("backgroundColor",u[t(345)][t(1462)]),onBlur:a,placeholder:"#1890ff"})]})})]})]})},{Option:Dl}=z[c(385)],Ll=({material:e,onSave:n})=>{const t=c,o=e[t(2011)]||{},[x,r]=L[t(1039)]({lineWeight:o[t(1779)]||o[t(1333)]||2,color:o[t(608)]||t(1676),lineType:o[t(690)]||t(925),startX:o[t(998)]??0,startY:o.startY??0,endX:o[t(973)]??100,endY:o[t(1085)]??0}),i=JSON[t(1079)]({sw:o.lineWeight??o[t(1333)],c:o[t(608)],t:o.lineType,sx:o.startX,sy:o[t(1320)],ex:o[t(973)],ey:o[t(1085)]});L[t(856)](()=>{const s=t;r({lineWeight:o[s(1779)]||o[s(1333)]||2,color:o[s(608)]||s(1676),lineType:o[s(690)]||s(925),startX:o.startX??0,startY:o[s(1320)]??0,endX:o[s(973)]??100,endY:o.endY??0})},[e.id,i]);const a=s=>{const d=t,f={...x,...s};r(f),n({config:{...o,thickness:f[d(1779)],lineWeight:f[d(1779)],color:f.color,lineType:f[d(690)],startX:f[d(998)],startY:f.startY,endX:f[d(973)],endY:f.endY}})},u=[{value:t(925),label:"实线",desc:"连续实线"},{value:t(1632),label:"虚线",desc:t(1695)},{value:t(1668),label:t(566),desc:"长点-短点交替"},{value:t(1426),label:"假想线",desc:t(453)},{value:t(817),label:"点线",desc:"密集点状"},{value:t(366),label:t(401),desc:t(676)}];return l[t(2088)]("div",{className:"space-y-4",children:[l[t(454)](z[t(873)],{style:{marginTop:0},children:t(541)}),l[t(2088)](z[t(432)],{layout:t(1932),children:[l.jsxs(t(1415),{className:t(1289),children:[l[t(454)](z[t(432)][t(798)],{label:"起点 X",className:t(1704),children:l[t(454)](z[t(1221)],{value:x[t(998)],onChange:s=>a({startX:s??0}),style:{width:t(1826)}})}),l.jsx(z[t(432)].Item,{label:"起点 Y",className:"mb-2",children:l[t(454)](z.InputNumber,{value:x[t(1320)],onChange:s=>a({startY:s??0}),style:{width:t(1826)}})}),l[t(454)](z.Form[t(798)],{label:t(336),className:t(1704),children:l[t(454)](z[t(1221)],{value:x[t(973)],onChange:s=>a({endX:s??100}),style:{width:t(1826)}})}),l[t(454)](z.Form[t(798)],{label:t(1669),className:t(1704),children:l[t(454)](z[t(1221)],{value:x[t(1085)],onChange:s=>a({endY:s??0}),style:{width:t(1826)}})})]}),l[t(454)](z[t(432)][t(798)],{label:t(416),className:t(1233),children:l[t(2088)](z[t(1170)],{children:[l[t(454)](z.Button,{size:t(1261),onClick:()=>{const s=t,d=o[s(998)]??x[s(998)],f=o[s(1320)]??x[s(1320)],b=o[s(973)]??x[s(973)],g=o.endY??x[s(1085)],m=b-d,h=g-f,p=Math[s(1136)](m*m+h*h),M=m>=0?1:-1;a({endX:d+M*p,endY:f})},title:t(2041),children:"水平"}),l.jsx(z.Button,{size:"small",onClick:()=>{const s=t,d=o[s(998)]??x[s(998)],f=o[s(1320)]??x[s(1320)],b=o.endX??x[s(973)],g=o[s(1085)]??x[s(1085)],m=b-d,h=g-f,p=Math[s(1136)](m*m+h*h),M=h>=0?1:-1;a({endX:d,endY:f+M*p})},title:t(1276),children:"垂直"}),l.jsx(z[t(577)],{size:t(1261),onClick:()=>{const s=t,d=o[s(998)]??x[s(998)],f=o[s(1320)]??x[s(1320)],b=o[s(973)]??x.endX,g=o[s(1085)]??x.endY;a({startX:b,startY:g,endX:d,endY:f})},title:"交换起点和终点",children:"反向"})]})})]}),l[t(454)](z[t(873)],{children:"线条属性"}),l.jsxs(z[t(432)],{layout:"vertical",children:[l.jsx(z[t(432)][t(798)],{label:"线型",help:t(2071),children:l.jsx(z[t(385)],{value:x[t(690)],onChange:s=>a({lineType:s}),children:u.map(s=>l[t(454)](Dl,{value:s[t(1462)],children:l.jsxs(t(1415),{className:t(567),children:[l[t(454)](t(594),{children:s[t(700)]}),l[t(454)](t(594),{className:t(1574),children:s[t(650)]})]})},s.value))})}),l.jsx(z.Form[t(798)],{label:t(1643),children:l[t(454)](z[t(1221)],{value:x.lineWeight,onChange:s=>a({lineWeight:s||2}),min:1,max:20,style:{width:120}})}),l.jsx(z[t(432)].Item,{label:"颜色",children:l[t(2088)](t(1415),{className:"flex items-center gap-2",children:[l.jsx(dt,{value:x.color||t(1886),onChange:s=>a({color:s.toHexString()})}),l[t(454)](z[t(950)],{value:x[t(608)],onChange:s=>a({color:s[t(345)][t(1462)]}),placeholder:t(1886),style:{width:100}})]})})]})]})};function Tr(e){return Array.isArray(e)}function Nl(e){const n=c,t=new Set;return e[n(644)](o=>Object.keys(o)[n(644)](x=>t[n(1531)](x))),Array[n(851)](t)}function Sl(e,n){return e.map((t,o)=>{const x=_0x2299,r=t[n],i=t[x(1872)];return{label:String(i??"项 "+(o+1)),value:typeof r=="string"||typeof r===x(1288)?r:String(r)}})}function kl(e,n,t){const o=c;if(Tr(e)){if(n!=null&&t!=null){const x=e[o(438)](r=>r[n]===t);if(x)return x}return{}}return e}const qr=({status:e,onUpdate:n,onAppendToExpression:t})=>{const o=c,x=qe(h=>h[o(1223)]),r=x.find(h=>h.id===e[o(1582)]),i=r?Tr(r[o(2022)]):!1,a=r?kl(r[o(2022)],e.boundDatasetBindCode,e[o(1733)]):{},u=tr(a),s=h=>{const p=o,M=p(439)+h;t?t(M):n({expression:""+(e[p(1397)]||"")+M})},d=h=>{n({boundDatasetId:h??null,boundDatasetBindCode:null,boundDatasetBindValue:null})},f=h=>{n({boundDatasetBindCode:h??null,boundDatasetBindValue:null})},b=h=>{n({boundDatasetBindValue:h??null})},g=r&&i?Nl(r.sample):[],m=r&&i&&e.boundDatasetBindCode?Sl(r[o(2022)],e[o(2050)]):[];return l[o(2088)](l[o(562)],{children:[l[o(454)](z.Form[o(798)],{label:"绑定数据集",extra:x[o(402)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":o(715),children:l[o(454)](z[o(385)],{allowClear:!0,placeholder:x.length===0?o(2010):o(599),value:e.boundDatasetId??void 0,options:x[o(1849)](h=>({label:h.name,value:h.id})),onChange:d})}),r&&i&&l[o(2088)](l.Fragment,{children:[l[o(454)](z[o(432)][o(798)],{label:o(512),extra:"该数据集的 sample 为数组,请选择用于匹配数据项的字段",children:l.jsx(z[o(385)],{allowClear:!0,placeholder:o(1559),value:e[o(2050)]??void 0,options:g[o(1849)](h=>({label:h,value:h})),onChange:f})}),e[o(2050)]&&l[o(454)](z[o(432)][o(798)],{label:"绑定值",extra:o(1771),children:l.jsx(z.Select,{allowClear:!0,placeholder:"选择绑定值",value:e.boundDatasetBindValue??void 0,options:m,onChange:b})})]}),u.length>0&&l[o(454)](z.Form[o(798)],{label:o(1737),children:l[o(454)](z[o(1170)],{size:[4,4],wrap:!0,children:u[o(1849)](h=>l[o(454)](z[o(1362)],{className:o(1052),onClick:()=>s(h),children:o(439)+h},h))})})]})},Wr=({material:e,onSave:n})=>{const t=c;switch(e.type){case t(1363):return l[t(454)](Ml,{material:e,onSave:n});case t(1976):return l[t(454)](Bl,{material:e,onSave:n});case t(1772):return l[t(454)](Ll,{material:e,onSave:n});default:return l.jsx(t(1415),{className:t(466),children:"暂不支持编辑此类型的物料"})}},{Panel:Xr}=z.Collapse,{TextArea:Pl}=z[c(950)],Il=({node:e,updateNode:n,materials:t})=>{const o=c,x=t[o(1211)](f=>f[o(1246)]!==o(684)||!f[o(2011)]?.[o(2110)]),r=(f,b)=>{const g=o,m=e[g(2099)]?.[g(1849)](h=>{const p=g;return h.id===f?{...h,contentInfo:{...h[p(1271)],statusList:b}}:h});n(e.id,{children:m})},i=f=>{const b=o,g=e[b(2099)]?.[b(438)](h=>h.id===f);if(!g)return;const m={id:ze[b(2016)](),name:"状态"+(g[b(1271)].statusList[b(402)]+1),expression:g.contentInfo[b(673)][b(402)]===0?b(2060):b(1457),material:{...x[0],id:ze[b(2016)]()},boundDatasetId:null};r(f,[...g[b(1271)][b(673)],m])},a=(f,b)=>{const g=o,m=e[g(2099)]?.find(p=>p.id===f);if(!m)return;const h=m.contentInfo[g(673)].filter(p=>p.id!==b);r(f,h)},u=(f,b,g)=>{const m=o,h=e[m(2099)]?.[m(438)](M=>M.id===f);if(!h)return;const p=h[m(1271)][m(673)][m(1849)](M=>M.id===b?{...M,...g}:M);r(f,p)},s=(f,b,g)=>{const m=o,h=e[m(2099)]?.[m(438)](y=>y.id===f);if(!h)return;const p=h[m(1271)][m(673)][m(1470)](y=>y.id===b);if(p===-1)return;const M=[...h[m(1271)][m(673)]];g==="up"&&p>0?[M[p],M[p-1]]=[M[p-1],M[p]]:g==="down"&&p<M[m(402)]-1&&([M[p],M[p+1]]=[M[p+1],M[p]]),r(f,M)},d=(f,b,g)=>{const m=o,h=t[m(438)](p=>p.id===g);h&&u(f,b,{material:{...h,id:ze[m(2016)]()}})};return l[o(2088)](o(1415),{className:o(1205),children:[l.jsx(o(1415),{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg mb-4",children:l[o(2088)](o(1415),{className:o(1034),children:[l[o(454)](o(2104),{children:o(788)}),o(627)]})}),l[o(454)](z.Collapse,{ghost:!0,children:e[o(2099)]?.[o(1849)]((f,b)=>l[o(454)](Xr,{header:l[o(2088)]("div",{className:o(2037),children:[l[o(2088)](o(594),{className:"font-medium text-sm",children:[o(1379),b+1]}),l[o(2088)](z.Tag,{color:o(864),style:{fontSize:o(1758),padding:o(674)},children:[f[o(1271)][o(673)][o(402)],o(754)]})]}),children:l[o(2088)]("div",{className:o(2028),children:[l[o(2088)]("div",{className:"flex justify-between items-center mb-3",children:[l[o(454)](o(594),{className:o(643),children:o(1718)}),l[o(454)](z[o(577)],{type:o(2051),size:o(1261),icon:l[o(454)](de[o(1179)],{}),onClick:()=>i(f.id),children:"添加状态"})]}),f.contentInfo[o(673)][o(402)]===0?l[o(454)](o(1415),{className:o(2076),children:o(1269)}):l[o(454)](z[o(1969)],{ghost:!0,children:f.contentInfo[o(673)][o(1849)]((g,m)=>l[o(454)](Xr,{header:l[o(2088)](o(1415),{className:o(796),children:[l.jsx("span",{className:o(1536),children:m+1}),l[o(454)](o(594),{className:o(1571),children:g.name}),l[o(454)](z[o(1362)],{color:o(795),className:o(1274),children:g[o(1080)][o(1246)]})]}),extra:l.jsxs(z[o(1170)],{size:o(1261),onClick:h=>h[o(986)](),children:[l[o(454)](z[o(577)],{type:o(1083),size:o(1261),icon:l[o(454)](de[o(745)],{}),disabled:m===0,onClick:h=>{h.stopPropagation(),s(f.id,g.id,"up")}}),l[o(454)](z[o(577)],{type:o(1083),size:o(1261),icon:l[o(454)](de[o(2002)],{}),disabled:m===f[o(1271)][o(673)].length-1,onClick:h=>{const p=o;h[p(986)](),s(f.id,g.id,p(1671))}}),l[o(454)](z.Button,{type:"text",size:"small",danger:!0,icon:l[o(454)](de[o(1482)],{}),onClick:h=>{h[o(986)](),a(f.id,g.id)}})]}),children:l.jsxs(z[o(432)],{layout:o(1932),children:[l[o(454)](z[o(432)][o(798)],{label:o(1596),children:l[o(454)](z[o(950)],{value:g[o(1872)],onChange:h=>u(f.id,g.id,{name:h.target[o(1462)]}),placeholder:"输入状态名称"})}),l[o(454)](qr,{status:g,onUpdate:h=>u(f.id,g.id,h)}),l[o(454)](z[o(432)][o(798)],{label:o(352),help:o(1477),children:l.jsx(Pl,{value:g.expression,onChange:h=>u(f.id,g.id,{expression:h[o(345)][o(1462)]}),rows:3,placeholder:o(2060)})}),l.jsx(z[o(432)][o(798)],{label:o(1186),children:l.jsxs(o(1415),{className:o(796),children:[l[o(454)](z[o(1362)],{color:o(864),children:g[o(1080)].name}),l[o(454)](z[o(1362)],{color:"default",children:g.material[o(1246)]}),l[o(454)](z.Select,{placeholder:o(2146),style:{width:150},value:void 0,onChange:h=>h&&d(f.id,g.id,h),options:x[o(1849)](h=>({value:h.id,label:h[o(1872)]+" ("+h.type+")"}))})]})}),l.jsx(z[o(873)],{style:{margin:o(951)}}),l[o(2088)](o(1415),{className:o(1821),children:[l[o(2088)](o(1415),{className:o(989),children:[l[o(454)](o(594),{className:"text-sm font-medium",children:o(1702)}),l[o(454)](z[o(1362)],{children:g[o(1080)][o(1872)]})]}),l[o(454)](Wr,{material:g[o(1080)],onSave:h=>{const p=o,M={...g[p(1080)],...h};u(f.id,g.id,{material:M})}})]})]})},g.id))})]})},f.id))})]})};function Oe(e){const n=c;if(typeof e===n(1863)||typeof e===n(1288))return""+e;let t="";if(Array[n(2018)](e))for(let o=0,x;o<e[n(402)];o++)(x=Oe(e[o]))!==""&&(t+=(t&&" ")+x);else for(let o in e)e[o]&&(t+=(t&&" ")+o);return t}var Al={value:()=>{}};function zx(){const e=c;for(var n=0,t=arguments[e(402)],o={},x;n<t;++n){if(!(x=arguments[n]+"")||x in o||/[\s.]/[e(1051)](x))throw new Error(e(975)+x);o[x]=[]}return new Cx(o)}function Cx(e){this._=e}function jl(e,n){const t=c;return e[t(2053)]()[t(1939)](/^|\s+/)[t(1849)](function(o){const x=t;var r="",i=o[x(2129)](".");if(i>=0&&(r=o[x(1912)](i+1),o=o[x(1912)](0,i)),o&&!n.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:r}})}Cx[c(1197)]=zx.prototype={constructor:Cx,on:function(e,n){const t=c;var o=this._,x=jl(e+"",o),r,i=-1,a=x.length;if(arguments[t(402)]<2){for(;++i<a;)if((r=(e=x[i])[t(1246)])&&(r=Yl(o[r],e[t(1872)])))return r;return}if(n!=null&&typeof n!==t(404))throw new Error("invalid callback: "+n);for(;++i<a;)if(r=(e=x[i]).type)o[r]=Zr(o[r],e[t(1872)],n);else if(n==null)for(r in o)o[r]=Zr(o[r],e[t(1872)],null);return this},copy:function(){var e={},n=this._;for(var t in n)e[t]=n[t].slice();return new Cx(e)},call:function(e,n){const t=c;if((r=arguments.length-2)>0)for(var o=new Array(r),x=0,r,i;x<r;++x)o[x]=arguments[x+2];if(!this._[t(1607)](e))throw new Error("unknown type: "+e);for(i=this._[e],x=0,r=i.length;x<r;++x)i[x][t(1462)].apply(n,o)},apply:function(e,n,t){const o=c;if(!this._[o(1607)](e))throw new Error(o(659)+e);for(var x=this._[e],r=0,i=x[o(402)];r<i;++r)x[r].value.apply(n,t)}};function Yl(e,n){const t=c;for(var o=0,x=e[t(402)],r;o<x;++o)if((r=e[o])[t(1872)]===n)return r[t(1462)]}function Zr(e,n,t){const o=c;for(var x=0,r=e[o(402)];x<r;++x)if(e[x][o(1872)]===n){e[x]=Al,e=e.slice(0,x)[o(1291)](e.slice(x+1));break}return t!=null&&e[o(557)]({name:n,value:t}),e}var O0=c(645);const Kr={svg:"http://www.w3.org/2000/svg",xhtml:O0,xlink:c(615),xml:c(794),xmlns:c(486)};function Mx(e){const n=c;var t=e+="",o=t[n(2129)](":");return o>=0&&(t=e[n(1912)](0,o))!==n(1803)&&(e=e[n(1912)](o+1)),Kr[n(1607)](t)?{space:Kr[t],local:e}:e}function El(e){return function(){const n=_0x2299;var t=this.ownerDocument,o=this.namespaceURI;return o===O0&&t[n(1787)].namespaceURI===O0?t[n(1473)](e):t.createElementNS(o,e)}}function Ul(e){return function(){const n=_0x2299;return this[n(2014)][n(1189)](e.space,e[n(1268)])}}function Rr(e){var n=Mx(e);return(n.local?Ul:El)(n)}function Ol(){}function G0(e){return e==null?Ol:function(){return this[_0x2299(1086)](e)}}function Gl(e){const n=c;typeof e!="function"&&(e=G0(e));for(var t=this[n(1210)],o=t[n(402)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(402)],u=x[r]=new Array(a),s,d,f=0;f<a;++f)(s=i[f])&&(d=e[n(667)](s,s.__data__,f,i))&&(n(905)in s&&(d.__data__=s[n(905)]),u[f]=d);return new Qe(x,this[n(1249)])}function Hl(e){const n=c;return e==null?[]:Array[n(2018)](e)?e:Array[n(851)](e)}function Vl(){return[]}function _r(e){return e==null?Vl:function(){return this.querySelectorAll(e)}}function Tl(e){return function(){return Hl(e[_0x2299(1824)](this,arguments))}}function ql(e){const n=c;typeof e=="function"?e=Tl(e):e=_r(e);for(var t=this[n(1210)],o=t[n(402)],x=[],r=[],i=0;i<o;++i)for(var a=t[i],u=a[n(402)],s,d=0;d<u;++d)(s=a[d])&&(x.push(e[n(667)](s,s[n(905)],d,a)),r[n(557)](s));return new Qe(x,r)}function Jr(e){return function(){return this[_0x2299(2141)](e)}}function Fr(e){return function(n){return n.matches(e)}}var Wl=Array[c(1197)][c(438)];function Xl(e){return function(){const n=_0x2299;return Wl[n(667)](this[n(2099)],e)}}function Zl(){return this[c(850)]}function Kl(e){const n=c;return this[n(1087)](e==null?Zl:Xl(typeof e===n(404)?e:Fr(e)))}var Rl=Array[c(1197)].filter;function _l(){const e=c;return Array[e(851)](this[e(2099)])}function Jl(e){return function(){const n=_0x2299;return Rl[n(667)](this[n(2099)],e)}}function Fl(e){const n=c;return this.selectAll(e==null?_l:Jl(typeof e===n(404)?e:Fr(e)))}function Ql(e){const n=c;typeof e!="function"&&(e=Jr(e));for(var t=this[n(1210)],o=t[n(402)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(402)],u=x[r]=[],s,d=0;d<a;++d)(s=i[d])&&e[n(667)](s,s.__data__,d,i)&&u.push(s);return new Qe(x,this[n(1249)])}function Qr(e){return new Array(e.length)}function $l(){const e=c;return new Qe(this[e(1180)]||this[e(1210)].map(Qr),this[e(1249)])}function Bx(e,n){const t=c;this[t(2014)]=e[t(2014)],this[t(1312)]=e[t(1312)],this._next=null,this._parent=e,this[t(905)]=n}Bx[c(1197)]={constructor:Bx,appendChild:function(e){const n=c;return this._parent[n(832)](e,this[n(1014)])},insertBefore:function(e,n){const t=c;return this[t(908)][t(832)](e,n)},querySelector:function(e){const n=c;return this[n(908)][n(1086)](e)},querySelectorAll:function(e){const n=c;return this[n(908)][n(1983)](e)}};function ed(e){return function(){return e}}function nd(e,n,t,o,x,r){const i=c;for(var a=0,u,s=n[i(402)],d=r[i(402)];a<d;++a)(u=n[a])?(u[i(905)]=r[a],o[a]=u):t[a]=new Bx(e,r[a]);for(;a<s;++a)(u=n[a])&&(x[a]=u)}function td(e,n,t,o,x,r,i){const a=c;var u,s,d=new Map,f=n[a(402)],b=r.length,g=new Array(f),m;for(u=0;u<f;++u)(s=n[u])&&(g[u]=m=i[a(667)](s,s[a(905)],u,n)+"",d[a(888)](m)?x[u]=s:d[a(1618)](m,s));for(u=0;u<b;++u)m=i[a(667)](e,r[u],u,r)+"",(s=d[a(953)](m))?(o[u]=s,s.__data__=r[u],d[a(1953)](m)):t[u]=new Bx(e,r[u]);for(u=0;u<f;++u)(s=n[u])&&d[a(953)](g[u])===s&&(x[u]=s)}function xd(e){return e[c(905)]}function od(e,n){const t=c;if(!arguments.length)return Array[t(851)](this,xd);var o=n?td:nd,x=this[t(1249)],r=this[t(1210)];typeof e!==t(404)&&(e=ed(e));for(var i=r[t(402)],a=new Array(i),u=new Array(i),s=new Array(i),d=0;d<i;++d){var f=x[d],b=r[d],g=b[t(402)],m=rd(e[t(667)](f,f&&f[t(905)],d,x)),h=m[t(402)],p=u[d]=new Array(h),M=a[d]=new Array(h),y=s[d]=new Array(g);o(f,b,p,M,y,m,n);for(var v=0,w=0,C,S;v<h;++v)if(C=p[v]){for(v>=w&&(w=v+1);!(S=M[w])&&++w<h;);C[t(1014)]=S||null}}return a=new Qe(a,x),a[t(1180)]=u,a._exit=s,a}function rd(e){const n=c;return typeof e===n(2151)&&n(402)in e?e:Array[n(851)](e)}function id(){const e=c;return new Qe(this._exit||this[e(1210)][e(1849)](Qr),this._parents)}function ad(e,n,t){const o=c;var x=this[o(435)](),r=this,i=this.exit();return typeof e===o(404)?(x=e(x),x&&(x=x.selection())):x=x[o(1301)](e+""),n!=null&&(r=n(r),r&&(r=r.selection())),t==null?i.remove():t(i),x&&r?x.merge(r)[o(595)]():r}function cd(e){const n=c;for(var t=e[n(1569)]?e[n(1569)]():e,o=this[n(1210)],x=t[n(1210)],r=o.length,i=x[n(402)],a=Math[n(782)](r,i),u=new Array(r),s=0;s<a;++s)for(var d=o[s],f=x[s],b=d[n(402)],g=u[s]=new Array(b),m,h=0;h<b;++h)(m=d[h]||f[h])&&(g[h]=m);for(;s<r;++s)u[s]=o[s];return new Qe(u,this[n(1249)])}function sd(){const e=c;for(var n=this[e(1210)],t=-1,o=n[e(402)];++t<o;)for(var x=n[t],r=x[e(402)]-1,i=x[r],a;--r>=0;)(a=x[r])&&(i&&a.compareDocumentPosition(i)^4&&i[e(1524)].insertBefore(a,i),i=a);return this}function ld(e){const n=c;e||(e=dd);function t(b,g){return b&&g?e(b[_0x2299(905)],g.__data__):!b-!g}for(var o=this[n(1210)],x=o.length,r=new Array(x),i=0;i<x;++i){for(var a=o[i],u=a[n(402)],s=r[i]=new Array(u),d,f=0;f<u;++f)(d=a[f])&&(s[f]=d);s[n(1601)](t)}return new Qe(r,this[n(1249)]).order()}function dd(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function ud(){const e=c;var n=arguments[0];return arguments[0]=this,n[e(1824)](null,arguments),this}function fd(){return Array[c(851)](this)}function hd(){const e=c;for(var n=this._groups,t=0,o=n[e(402)];t<o;++t)for(var x=n[t],r=0,i=x.length;r<i;++r){var a=x[r];if(a)return a}return null}function bd(){let e=0;for(const n of this)++e;return e}function gd(){return!this[c(1855)]()}function yd(e){const n=c;for(var t=this[n(1210)],o=0,x=t[n(402)];o<x;++o)for(var r=t[o],i=0,a=r.length,u;i<a;++i)(u=r[i])&&e[n(667)](u,u[n(905)],i,r);return this}function md(e){return function(){this[_0x2299(1101)](e)}}function wd(e){return function(){const n=_0x2299;this[n(1959)](e[n(688)],e.local)}}function vd(e,n){return function(){this[_0x2299(804)](e,n)}}function pd(e,n){return function(){const t=_0x2299;this.setAttributeNS(e[t(688)],e[t(1268)],n)}}function zd(e,n){return function(){const t=_0x2299;var o=n.apply(this,arguments);o==null?this[t(1101)](e):this[t(804)](e,o)}}function Cd(e,n){return function(){const t=_0x2299;var o=n[t(1824)](this,arguments);o==null?this[t(1959)](e[t(688)],e[t(1268)]):this[t(1685)](e[t(688)],e.local,o)}}function Md(e,n){const t=c;var o=Mx(e);if(arguments.length<2){var x=this[t(1855)]();return o[t(1268)]?x.getAttributeNS(o[t(688)],o.local):x[t(2149)](o)}return this[t(2077)]((n==null?o[t(1268)]?wd:md:typeof n===t(404)?o.local?Cd:zd:o[t(1268)]?pd:vd)(o,n))}function $r(e){const n=c;return e[n(2014)]&&e[n(2014)][n(1286)]||e[n(2105)]&&e||e[n(1286)]}function Bd(e){return function(){const n=_0x2299;this[n(799)][n(892)](e)}}function Dd(e,n,t){return function(){this[_0x2299(799)].setProperty(e,n,t)}}function Ld(e,n,t){return function(){const o=_0x2299;var x=n[o(1824)](this,arguments);x==null?this[o(799)][o(892)](e):this[o(799)].setProperty(e,x,t)}}function Nd(e,n,t){const o=c;return arguments[o(402)]>1?this[o(2077)]((n==null?Bd:typeof n===o(404)?Ld:Dd)(e,n,t??"")):ut(this[o(1855)](),e)}function ut(e,n){const t=c;return e[t(799)][t(1250)](n)||$r(e)[t(959)](e,null)[t(1250)](n)}function Sd(e){return function(){delete this[e]}}function kd(e,n){return function(){this[e]=n}}function Pd(e,n){return function(){var o=n[_0x2299(1824)](this,arguments);o==null?delete this[e]:this[e]=o}}function Id(e,n){const t=c;return arguments[t(402)]>1?this[t(2077)]((n==null?Sd:typeof n===t(404)?Pd:kd)(e,n)):this.node()[e]}function ei(e){const n=c;return e[n(2053)]()[n(1939)](/^|\s+/)}function H0(e){return e.classList||new ni(e)}function ni(e){const n=c;this[n(661)]=e,this[n(1720)]=ei(e[n(2149)](n(2132))||"")}ni[c(1197)]={add:function(e){const n=c;var t=this[n(1720)][n(2129)](e);t<0&&(this._names.push(e),this[n(661)][n(804)](n(2132),this._names.join(" ")))},remove:function(e){const n=c;var t=this._names[n(2129)](e);t>=0&&(this._names[n(1226)](t,1),this._node[n(804)]("class",this._names[n(1507)](" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ti(e,n){const t=c;for(var o=H0(e),x=-1,r=n.length;++x<r;)o[t(1531)](n[x])}function xi(e,n){const t=c;for(var o=H0(e),x=-1,r=n.length;++x<r;)o[t(837)](n[x])}function Ad(e){return function(){ti(this,e)}}function jd(e){return function(){xi(this,e)}}function Yd(e,n){return function(){(n[_0x2299(1824)](this,arguments)?ti:xi)(this,e)}}function Ed(e,n){const t=c;var o=ei(e+"");if(arguments.length<2){for(var x=H0(this[t(1855)]()),r=-1,i=o[t(402)];++r<i;)if(!x[t(2095)](o[r]))return!1;return!0}return this[t(2077)]((typeof n===t(404)?Yd:n?Ad:jd)(o,n))}function Ud(){const e=c;this[e(1338)]=""}function Od(e){return function(){this.textContent=e}}function Gd(e){return function(){const n=_0x2299;var t=e[n(1824)](this,arguments);this[n(1338)]=t??""}}function Hd(e){const n=c;return arguments[n(402)]?this[n(2077)](e==null?Ud:(typeof e=="function"?Gd:Od)(e)):this.node()[n(1338)]}function Vd(){this.innerHTML=""}function Td(e){return function(){const n=_0x2299;this[n(1881)]=e}}function qd(e){return function(){const n=_0x2299;var t=e[n(1824)](this,arguments);this[n(1881)]=t??""}}function Wd(e){const n=c;return arguments.length?this.each(e==null?Vd:(typeof e===n(404)?qd:Td)(e)):this.node().innerHTML}function Xd(){const e=c;this[e(1018)]&&this[e(1524)][e(422)](this)}function Zd(){return this[c(2077)](Xd)}function Kd(){const e=c;this[e(1381)]&&this.parentNode[e(832)](this,this[e(1524)][e(1996)])}function Rd(){return this[c(2077)](Kd)}function _d(e){const n=c;var t=typeof e===n(404)?e:Rr(e);return this.select(function(){return this[n(422)](t.apply(this,arguments))})}function Jd(){return null}function Fd(e,n){const t=c;var o=typeof e===t(404)?e:Rr(e),x=n==null?Jd:typeof n=="function"?n:G0(n);return this[t(1087)](function(){const r=t;return this[r(832)](o[r(1824)](this,arguments),x[r(1824)](this,arguments)||null)})}function Qd(){const e=c;var n=this.parentNode;n&&n[e(428)](this)}function $d(){return this[c(2077)](Qd)}function eu(){const e=c;var n=this.cloneNode(!1),t=this[e(1524)];return t?t.insertBefore(n,this.nextSibling):n}function nu(){const e=c;var n=this[e(1025)](!0),t=this[e(1524)];return t?t[e(832)](n,this[e(1018)]):n}function tu(e){return this.select(e?nu:eu)}function xu(e){const n=c;return arguments[n(402)]?this[n(860)]("__data__",e):this[n(1855)]().__data__}function ou(e){return function(n){const t=_0x2299;e[t(667)](this,n,this[t(905)])}}function ru(e){const n=c;return e[n(2053)]().split(/^|\s+/)[n(1849)](function(t){const o=n;var x="",r=t[o(2129)](".");return r>=0&&(x=t.slice(r+1),t=t.slice(0,r)),{type:t,name:x}})}function iu(e){return function(){const n=_0x2299;var t=this.__on;if(t){for(var o=0,x=-1,r=t.length,i;o<r;++o)i=t[o],(!e.type||i[n(1246)]===e[n(1246)])&&i[n(1872)]===e[n(1872)]?this[n(1561)](i[n(1246)],i[n(1579)],i[n(1077)]):t[++x]=i;++x?t[n(402)]=x:delete this[n(812)]}}}function au(e,n,t){return function(){const o=_0x2299;var x=this[o(812)],r,i=ou(n);if(x){for(var a=0,u=x.length;a<u;++a)if((r=x[a])[o(1246)]===e[o(1246)]&&r[o(1872)]===e[o(1872)]){this[o(1561)](r[o(1246)],r[o(1579)],r[o(1077)]),this[o(1918)](r.type,r.listener=i,r.options=t),r[o(1462)]=n;return}}this[o(1918)](e[o(1246)],i,t),r={type:e[o(1246)],name:e[o(1872)],value:n,listener:i,options:t},x?x[o(557)](r):this[o(812)]=[r]}}function cu(e,n,t){const o=c;var x=ru(e+""),r,i=x[o(402)],a;if(arguments[o(402)]<2){var u=this[o(1855)]()[o(812)];if(u){for(var s=0,d=u[o(402)],f;s<d;++s)for(r=0,f=u[s];r<i;++r)if((a=x[r])[o(1246)]===f.type&&a[o(1872)]===f.name)return f.value}return}for(u=n?au:iu,r=0;r<i;++r)this[o(2077)](u(x[r],n,t));return this}function oi(e,n,t){const o=c;var x=$r(e),r=x.CustomEvent;typeof r===o(404)?r=new r(n,t):(r=x[o(2105)][o(1703)]("Event"),t?(r[o(1925)](n,t.bubbles,t[o(583)]),r[o(1230)]=t.detail):r[o(1925)](n,!1,!1)),e.dispatchEvent(r)}function su(e,n){return function(){return oi(this,e,n)}}function lu(e,n){return function(){return oi(this,e,n[_0x2299(1824)](this,arguments))}}function du(e,n){const t=c;return this[t(2077)]((typeof n===t(404)?lu:su)(e,n))}function*uu(){const e=c;for(var n=this[e(1210)],t=0,o=n[e(402)];t<o;++t)for(var x=n[t],r=0,i=x[e(402)],a;r<i;++r)(a=x[r])&&(yield a)}var ri=[null];function Qe(e,n){const t=c;this[t(1210)]=e,this[t(1249)]=n}function Ut(){const e=c;return new Qe([[document[e(1787)]]],ri)}function fu(){return this}Qe[c(1197)]=Ut[c(1197)]={constructor:Qe,select:Gl,selectAll:ql,selectChild:Kl,selectChildren:Fl,filter:Ql,data:od,enter:$l,exit:id,join:ad,merge:cd,selection:fu,order:sd,sort:ld,call:ud,nodes:fd,node:hd,size:bd,empty:gd,each:yd,attr:Md,style:Nd,property:Id,classed:Ed,text:Hd,html:Wd,raise:Zd,lower:Rd,append:_d,insert:Fd,remove:$d,clone:tu,datum:xu,on:cu,dispatch:du,[Symbol.iterator]:uu};function $e(e){const n=c;return typeof e===n(1863)?new Qe([[document[n(1086)](e)]],[document[n(1787)]]):new Qe([[e]],ri)}function hu(e){let n;for(;n=e.sourceEvent;)e=n;return e}function ln(e,n){const t=c;if(e=hu(e),n===void 0&&(n=e[t(2124)]),n){var o=n[t(1046)]||n;if(o.createSVGPoint){var x=o[t(600)]();return x.x=e[t(1239)],x.y=e[t(970)],x=x[t(1956)](n[t(825)]()[t(1265)]()),[x.x,x.y]}if(n[t(1749)]){var r=n[t(1749)]();return[e[t(1239)]-r[t(1484)]-n.clientLeft,e[t(970)]-r.top-n[t(1577)]]}}return[e[t(658)],e.pageY]}const bu={passive:!1},Ot={capture:!0,passive:!1};function V0(e){e.stopImmediatePropagation()}function ft(e){const n=c;e[n(1224)](),e[n(589)]()}function ii(e){const n=c;var t=e[n(2105)].documentElement,o=$e(e).on(n(1112),ft,Ot);"onselectstart"in t?o.on(n(1201),ft,Ot):(t.__noselect=t[n(799)][n(653)],t[n(799)][n(653)]=n(1795))}function ai(e,n){const t=c;var o=e[t(2105)][t(1787)],x=$e(e).on(t(1112),null);n&&(x.on("click.drag",ft,Ot),setTimeout(function(){const r=t;x.on(r(1162),null)},0)),t(1831)in o?x.on(t(1201),null):(o[t(799)][t(653)]=o.__noselect,delete o[t(1895)])}const Dx=e=>()=>e;function T0(e,{sourceEvent:n,subject:t,target:o,identifier:x,active:r,x:i,y:a,dx:u,dy:s,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:x,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:d}})}T0.prototype.on=function(){const e=c;var n=this._.on[e(1824)](this._,arguments);return n===this._?this:n};function gu(e){const n=c;return!e[n(398)]&&!e[n(1372)]}function yu(){return this[c(1524)]}function mu(e,n){return n??{x:e.x,y:e.y}}function wu(){const e=c;return navigator.maxTouchPoints||e(1270)in this}function ci(){const e=c;var n=gu,t=yu,o=mu,x=wu,r={},i=zx(e(1255),e(731),e(1830)),a=0,u,s,d,f,b=0;function g(C){const S=e;C.on(S(2044),m).filter(x).on(S(841),M).on(S(1378),y,bu).on(S(681),v)[S(799)](S(1480),S(1795))[S(799)]("-webkit-tap-highlight-color",S(846))}function m(C,S){const U=e;if(!(f||!n[U(667)](this,C,S))){var G=w(this,t[U(667)](this,C,S),C,S,U(509));G&&($e(C[U(1686)]).on(U(1645),h,Ot).on(U(1260),p,Ot),ii(C[U(1686)]),V0(C),d=!1,u=C[U(1239)],s=C[U(970)],G(U(1255),C))}}function h(C){const S=e;if(ft(C),!d){var U=C[S(1239)]-u,G=C[S(970)]-s;d=U*U+G*G>b}r[S(509)](S(731),C)}function p(C){const S=e;$e(C.view).on(S(351),null),ai(C.view,d),ft(C),r.mouse(S(1830),C)}function M(C,S){const U=e;if(n[U(667)](this,C,S)){var G=C[U(1811)],H=t[U(667)](this,C,S),O=G[U(402)],_,X;for(_=0;_<O;++_)(X=w(this,H,C,S,G[_].identifier,G[_]))&&(V0(C),X(U(1255),C,G[_]))}}function y(C){const S=e;var U=C[S(1811)],G=U[S(402)],H,O;for(H=0;H<G;++H)(O=r[U[H].identifier])&&(ft(C),O(S(731),C,U[H]))}function v(C){const S=e;var U=C[S(1811)],G=U[S(402)],H,O;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),H=0;H<G;++H)(O=r[U[H][S(441)]])&&(V0(C),O("end",C,U[H]))}function w(C,S,U,G,H,O){const _=e;var X=i.copy(),q=ln(O||U,S),T,N,D;if((D=o[_(667)](C,new T0(_(344),{sourceEvent:U,target:g,identifier:H,active:a,x:q[0],y:q[1],dx:0,dy:0,dispatch:X}),G))!=null)return T=D.x-q[0]||0,N=D.y-q[1]||0,function B(A,P,I){const Z=_;var Q=q,J;switch(A){case Z(1255):r[H]=B,J=a++;break;case Z(1830):delete r[H],--a;case"drag":q=ln(I||P,S),J=a;break}X[Z(667)](A,C,new T0(A,{sourceEvent:P,subject:D,target:g,identifier:H,active:J,x:q[0]+T,y:q[1]+N,dx:q[0]-Q[0],dy:q[1]-Q[1],dispatch:X}),G)}}return g[e(1211)]=function(C){const S=e;return arguments[S(402)]?(n=typeof C===S(404)?C:Dx(!!C),g):n},g[e(1332)]=function(C){const S=e;return arguments[S(402)]?(t=typeof C===S(404)?C:Dx(C),g):t},g[e(1962)]=function(C){const S=e;return arguments[S(402)]?(o=typeof C===S(404)?C:Dx(C),g):o},g.touchable=function(C){return arguments.length?(x=typeof C=="function"?C:Dx(!!C),g):x},g.on=function(){const C=e;var S=i.on[C(1824)](i,arguments);return S===i?g:S},g[e(2039)]=function(C){const S=e;return arguments.length?(b=(C=+C)*C,g):Math[S(1136)](b)},g}function q0(e,n,t){const o=c;e[o(1197)]=n[o(1197)]=t,t[o(1214)]=e}function si(e,n){const t=c;var o=Object[t(1478)](e[t(1197)]);for(var x in n)o[x]=n[x];return o}function Gt(){}var Ht=.7,Lx=1/Ht,ht=c(1032),Vt=c(861),pn=c(1242),vu=/^#([0-9a-f]{3,8})$/,pu=new RegExp(c(1876)+ht+","+ht+","+ht+c(1586)),zu=new RegExp(c(1876)+pn+","+pn+","+pn+c(1586)),Cu=new RegExp(c(331)+ht+","+ht+","+ht+","+Vt+c(1586)),Mu=new RegExp("^rgba\\("+pn+","+pn+","+pn+","+Vt+c(1586)),Bu=new RegExp("^hsl\\("+Vt+","+pn+","+pn+"\\)$"),Du=new RegExp(c(1646)+Vt+","+pn+","+pn+","+Vt+"\\)$"),li={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};q0(Gt,Kn,{copy(e){const n=c;return Object[n(937)](new this[n(1214)],this,e)},displayable(){const e=c;return this.rgb()[e(1234)]()},hex:di,formatHex:di,formatHex8:Lu,formatHsl:Nu,formatRgb:ui,toString:ui});function di(){return this[c(815)]().formatHex()}function Lu(){const e=c;return this.rgb()[e(1165)]()}function Nu(){const e=c;return yi(this)[e(916)]()}function ui(){const e=c;return this[e(815)]()[e(1413)]()}function Kn(e){const n=c;var t,o;return e=(e+"")[n(2053)]()[n(579)](),(t=vu[n(1417)](e))?(o=t[1][n(402)],t=parseInt(t[1],16),o===6?fi(t):o===3?new Re(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):o===8?Nx(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):o===4?Nx(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pu[n(1417)](e))?new Re(t[1],t[2],t[3],1):(t=zu[n(1417)](e))?new Re(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Cu.exec(e))?Nx(t[1],t[2],t[3],t[4]):(t=Mu[n(1417)](e))?Nx(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Bu[n(1417)](e))?gi(t[1],t[2]/100,t[3]/100,1):(t=Du[n(1417)](e))?gi(t[1],t[2]/100,t[3]/100,t[4]):li[n(1607)](e)?fi(li[e]):e===n(1436)?new Re(NaN,NaN,NaN,0):null}function fi(e){return new Re(e>>16&255,e>>8&255,e&255,1)}function Nx(e,n,t,o){return o<=0&&(e=n=t=NaN),new Re(e,n,t,o)}function Su(e){const n=c;return e instanceof Gt||(e=Kn(e)),e?(e=e.rgb(),new Re(e.r,e.g,e.b,e[n(496)])):new Re}function W0(e,n,t,o){return arguments[c(402)]===1?Su(e):new Re(e,n,t,o??1)}function Re(e,n,t,o){const x=c;this.r=+e,this.g=+n,this.b=+t,this[x(496)]=+o}q0(Re,W0,si(Gt,{brighter(e){const n=c;return e=e==null?Lx:Math[n(1712)](Lx,e),new Re(this.r*e,this.g*e,this.b*e,this[n(496)])},darker(e){const n=c;return e=e==null?Ht:Math[n(1712)](Ht,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){const e=c;return new Re(Rn(this.r),Rn(this.g),Rn(this.b),Sx(this[e(496)]))},displayable(){const e=c;return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this[e(496)]&&this[e(496)]<=1},hex:hi,formatHex:hi,formatHex8:ku,formatRgb:bi,toString:bi}));function hi(){return"#"+_n(this.r)+_n(this.g)+_n(this.b)}function ku(){const e=c;return"#"+_n(this.r)+_n(this.g)+_n(this.b)+_n((isNaN(this[e(496)])?1:this[e(496)])*255)}function bi(){const e=c,n=Sx(this[e(496)]);return""+(n===1?"rgb(":e(1989))+Rn(this.r)+", "+Rn(this.g)+", "+Rn(this.b)+(n===1?")":", "+n+")")}function Sx(e){const n=c;return isNaN(e)?1:Math[n(1108)](0,Math[n(782)](1,e))}function Rn(e){return Math.max(0,Math.min(255,Math[c(392)](e)||0))}function _n(e){const n=c;return e=Rn(e),(e<16?"0":"")+e[n(865)](16)}function gi(e,n,t,o){return o<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new dn(e,n,t,o)}function yi(e){const n=c;if(e instanceof dn)return new dn(e.h,e.s,e.l,e[n(496)]);if(e instanceof Gt||(e=Kn(e)),!e)return new dn;if(e instanceof dn)return e;e=e[n(815)]();var t=e.r/255,o=e.g/255,x=e.b/255,r=Math[n(782)](t,o,x),i=Math.max(t,o,x),a=NaN,u=i-r,s=(i+r)/2;return u?(t===i?a=(o-x)/u+(o<x)*6:o===i?a=(x-t)/u+2:a=(t-o)/u+4,u/=s<.5?i+r:2-i-r,a*=60):u=s>0&&s<1?0:a,new dn(a,u,s,e.opacity)}function Pu(e,n,t,o){return arguments[c(402)]===1?yi(e):new dn(e,n,t,o??1)}function dn(e,n,t,o){const x=c;this.h=+e,this.s=+n,this.l=+t,this[x(496)]=+o}q0(dn,Pu,si(Gt,{brighter(e){const n=c;return e=e==null?Lx:Math[n(1712)](Lx,e),new dn(this.h,this.s,this.l*e,this.opacity)},darker(e){const n=c;return e=e==null?Ht:Math[n(1712)](Ht,e),new dn(this.h,this.s,this.l*e,this[n(496)])},rgb(){const e=c;var n=this.h%360+(this.h<0)*360,t=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,x=o+(o<.5?o:1-o)*t,r=2*o-x;return new Re(X0(n>=240?n-240:n+120,r,x),X0(n,r,x),X0(n<120?n+240:n-120,r,x),this[e(496)])},clamp(){const e=c;return new dn(mi(this.h),kx(this.s),kx(this.l),Sx(this[e(496)]))},displayable(){const e=c;return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this[e(496)]&&this[e(496)]<=1},formatHsl(){const e=c,n=Sx(this[e(496)]);return""+(n===1?e(1001):"hsla(")+mi(this.h)+", "+kx(this.s)*100+"%, "+kx(this.l)*100+"%"+(n===1?")":", "+n+")")}}));function mi(e){return e=(e||0)%360,e<0?e+360:e}function kx(e){return Math.max(0,Math.min(1,e||0))}function X0(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const Z0=e=>()=>e;function Iu(e,n){return function(t){return e+t*n}}function Au(e,n,t){const o=c;return e=Math.pow(e,t),n=Math[o(1712)](n,t)-e,t=1/t,function(x){return Math[o(1712)](e+x*n,t)}}function ju(e){return(e=+e)==1?wi:function(n,t){return t-n?Au(n,t,e):Z0(isNaN(n)?t:n)}}function wi(e,n){var t=n-e;return t?Iu(e,t):Z0(isNaN(e)?n:e)}const Px=(function e(n){var t=ju(n);function o(x,r){const i=_0x2299;var a=t((x=W0(x)).r,(r=W0(r)).r),u=t(x.g,r.g),s=t(x.b,r.b),d=wi(x[i(496)],r[i(496)]);return function(f){const b=i;return x.r=a(f),x.g=u(f),x.b=s(f),x[b(496)]=d(f),x+""}}return o.gamma=e,o})(1);function Yu(e,n){const t=c;n||(n=[]);var o=e?Math.min(n.length,e.length):0,x=n[t(1912)](),r;return function(i){for(r=0;r<o;++r)x[r]=e[r]*(1-i)+n[r]*i;return x}}function Eu(e){return ArrayBuffer[c(963)](e)&&!(e instanceof DataView)}function Uu(e,n){const t=c;var o=n?n.length:0,x=e?Math[t(782)](o,e[t(402)]):0,r=new Array(x),i=new Array(o),a;for(a=0;a<x;++a)r[a]=Tt(e[a],n[a]);for(;a<o;++a)i[a]=n[a];return function(u){for(a=0;a<x;++a)i[a]=r[a](u);return i}}function Ou(e,n){var t=new Date;return e=+e,n=+n,function(o){return t[_0x2299(1630)](e*(1-o)+n*o),t}}function zn(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function Gu(e,n){var t={},o={},x;(e===null||typeof e!="object")&&(e={}),(n===null||typeof n!="object")&&(n={});for(x in n)x in e?t[x]=Tt(e[x],n[x]):o[x]=n[x];return function(r){for(x in t)o[x]=t[x](r);return o}}var K0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,R0=new RegExp(K0[c(1717)],"g");function Hu(e){return function(){return e}}function Vu(e){return function(n){return e(n)+""}}function vi(e,n){const t=c;var o=K0.lastIndex=R0.lastIndex=0,x,r,i,a=-1,u=[],s=[];for(e=e+"",n=n+"";(x=K0[t(1417)](e))&&(r=R0.exec(n));)(i=r[t(1066)])>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(x=x[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:zn(x,r)})),o=R0[t(1815)];return o<n[t(402)]&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?Vu(s[0].x):Hu(n):(n=s[t(402)],function(d){for(var f=0,b;f<n;++f)u[(b=s[f]).i]=b.x(d);return u.join("")})}function Tt(e,n){const t=c;var o=typeof n,x;return n==null||o===t(1533)?Z0(n):(o==="number"?zn:o===t(1863)?(x=Kn(n))?(n=x,Px):vi:n instanceof Kn?Px:n instanceof Date?Ou:Eu(n)?Yu:Array.isArray(n)?Uu:typeof n.valueOf!="function"&&typeof n[t(865)]!="function"||isNaN(n)?Gu:zn)(e,n)}var pi=180/Math.PI,_0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zi(e,n,t,o,x,r){const i=c;var a,u,s;return(a=Math[i(1136)](e*e+n*n))&&(e/=a,n/=a),(s=e*t+n*o)&&(t-=e*s,o-=n*s),(u=Math[i(1136)](t*t+o*o))&&(t/=u,o/=u,s/=u),e*o<n*t&&(e=-e,n=-n,s=-s,a=-a),{translateX:x,translateY:r,rotate:Math[i(711)](n,e)*pi,skewX:Math[i(2036)](s)*pi,scaleX:a,scaleY:u}}var Ix;function Tu(e){const n=c,t=new(typeof DOMMatrix===n(404)?DOMMatrix:WebKitCSSMatrix)(e+"");return t[n(1710)]?_0:zi(t.a,t.b,t.c,t.d,t.e,t.f)}function qu(e){const n=c;return e==null||(Ix||(Ix=document[n(1189)](n(1321),"g")),Ix[n(804)]("transform",e),!(e=Ix.transform[n(380)][n(1219)]()))?_0:(e=e[n(781)],zi(e.a,e.b,e.c,e.d,e.e,e.f))}function Ci(e,n,t,o){function x(s){const d=_0x2299;return s[d(402)]?s[d(1644)]()+" ":""}function r(s,d,f,b,g,m){const h=_0x2299;if(s!==f||d!==b){var p=g[h(557)](h(1734),null,n,null,t);m[h(557)]({i:p-4,x:zn(s,f)},{i:p-2,x:zn(d,b)})}else(f||b)&&g[h(557)](h(1734)+f+n+b+t)}function i(s,d,f,b){const g=_0x2299;s!==d?(s-d>180?d+=360:d-s>180&&(s+=360),b[g(557)]({i:f[g(557)](x(f)+g(641),null,o)-2,x:zn(s,d)})):d&&f[g(557)](x(f)+g(641)+d+o)}function a(s,d,f,b){const g=_0x2299;s!==d?b[g(557)]({i:f[g(557)](x(f)+g(1602),null,o)-2,x:zn(s,d)}):d&&f[g(557)](x(f)+"skewX("+d+o)}function u(s,d,f,b,g,m){const h=_0x2299;if(s!==f||d!==b){var p=g[h(557)](x(g)+h(1655),null,",",null,")");m[h(557)]({i:p-4,x:zn(s,f)},{i:p-2,x:zn(d,b)})}else(f!==1||b!==1)&&g.push(x(g)+h(1655)+f+","+b+")")}return function(s,d){const f=_0x2299;var b=[],g=[];return s=e(s),d=e(d),r(s.translateX,s[f(774)],d[f(2023)],d[f(774)],b,g),i(s[f(660)],d[f(660)],b,g),a(s[f(1929)],d[f(1929)],b,g),u(s.scaleX,s[f(2024)],d[f(1770)],d.scaleY,b,g),s=d=null,function(m){for(var h=-1,p=g.length,M;++h<p;)b[(M=g[h]).i]=M.x(m);return b.join("")}}}var Wu=Ci(Tu,c(1700),c(462),"deg)"),Xu=Ci(qu,", ",")",")"),Zu=1e-12;function Mi(e){return((e=Math.exp(e))+1/e)/2}function Ku(e){return((e=Math[c(623)](e))-1/e)/2}function Ru(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ax=(function e(n,t,o){function x(r,i){const a=_0x2299;var u=r[0],s=r[1],d=r[2],f=i[0],b=i[1],g=i[2],m=f-u,h=b-s,p=m*m+h*h,M,y;if(p<Zu)y=Math[a(1893)](g/d)/n,M=function(G){return[u+G*m,s+G*h,d*Math.exp(n*G*y)]};else{var v=Math[a(1136)](p),w=(g*g-d*d+o*p)/(2*d*t*v),C=(g*g-d*d-o*p)/(2*g*t*v),S=Math.log(Math.sqrt(w*w+1)-w),U=Math[a(1893)](Math[a(1136)](C*C+1)-C);y=(U-S)/n,M=function(G){var H=G*y,O=Mi(S),_=d/(t*v)*(O*Ru(n*H+S)-Ku(S));return[u+_*m,s+_*h,d*O/Mi(n*H+S)]}}return M[a(833)]=y*1e3*n/Math[a(1195)],M}return x.rho=function(r){var i=Math.max(.001,+r),a=i*i,u=a*a;return e(i,a,u)},x})(Math.SQRT2,2,4);var bt=0,qt=0,Wt=0,Bi=1e3,jx,Xt,Yx=0,Jn=0,Ex=0,Zt=typeof performance===c(2151)&&performance[c(1723)]?performance:Date,Di=typeof window===c(2151)&&window.requestAnimationFrame?window[c(1775)][c(513)](window):function(e){setTimeout(e,17)};function J0(){const e=c;return Jn||(Di(_u),Jn=Zt[e(1723)]()+Ex)}function _u(){Jn=0}function Ux(){const e=c;this[e(556)]=this[e(1777)]=this[e(1014)]=null}Ux[c(1197)]=Li.prototype={constructor:Ux,restart:function(e,n,t){const o=c;if(typeof e!==o(404))throw new TypeError(o(492));t=(t==null?J0():+t)+(n==null?0:+n),!this._next&&Xt!==this&&(Xt?Xt[o(1014)]=this:jx=this,Xt=this),this._call=e,this[o(1777)]=t,F0()},stop:function(){const e=c;this[e(556)]&&(this[e(556)]=null,this[e(1777)]=1/0,F0())}};function Li(e,n,t){const o=c;var x=new Ux;return x[o(588)](e,n,t),x}function Ju(){const e=c;J0(),++bt;for(var n=jx,t;n;)(t=Jn-n[e(1777)])>=0&&n[e(556)][e(667)](void 0,t),n=n[e(1014)];--bt}function Ni(){Jn=(Yx=Zt.now())+Ex,bt=qt=0;try{Ju()}finally{bt=0,Qu(),Jn=0}}function Fu(){var n=Zt[c(1723)](),t=n-Yx;t>Bi&&(Ex-=t,Yx=n)}function Qu(){const e=c;for(var n,t=jx,o,x=1/0;t;)t._call?(x>t[e(1777)]&&(x=t._time),n=t,t=t[e(1014)]):(o=t._next,t[e(1014)]=null,t=n?n[e(1014)]=o:jx=o);Xt=n,F0(x)}function F0(e){const n=c;if(!bt){qt&&(qt=clearTimeout(qt));var t=e-Jn;t>24?(e<1/0&&(qt=setTimeout(Ni,e-Zt.now()-Ex)),Wt&&(Wt=clearInterval(Wt))):(Wt||(Yx=Zt[n(1723)](),Wt=setInterval(Fu,Bi)),bt=1,Di(Ni))}}function Si(e,n,t){const o=c;var x=new Ux;return n=n==null?0:+n,x[o(588)](r=>{x.stop(),e(r+n)},n,t),x}var $u=zx(c(1255),c(1830),c(1904),"interrupt"),ef=[],ki=0,Pi=1,Q0=2,Ox=3,Ii=4,$0=5,Gx=6;function Hx(e,n,t,o,x,r){const i=c;var a=e.__transition;if(!a)e.__transition={};else if(t in a)return;nf(e,t,{name:n,index:o,group:x,on:$u,tween:ef,time:r[i(533)],delay:r[i(1160)],duration:r[i(833)],ease:r[i(949)],timer:null,state:ki})}function eo(e,n){const t=c;var o=un(e,n);if(o[t(2072)]>ki)throw new Error(t(2048));return o}function Cn(e,n){const t=c;var o=un(e,n);if(o[t(2072)]>Ox)throw new Error("too late; already running");return o}function un(e,n){const t=c;var o=e[t(1503)];if(!o||!(o=o[n]))throw new Error(t(1328));return o}function nf(e,n,t){const o=c;var x=e.__transition,r;x[n]=t,t[o(801)]=Li(i,0,t.time);function i(d){const f=o;t[f(2072)]=Pi,t[f(801)][f(588)](a,t[f(1160)],t[f(533)]),t[f(1160)]<=d&&a(d-t[f(1160)])}function a(d){const f=o;var b,g,m,h;if(t[f(2072)]!==Pi)return s();for(b in x)if(h=x[b],h.name===t.name){if(h[f(2072)]===Ox)return Si(a);h.state===Ii?(h[f(2072)]=Gx,h[f(801)][f(1751)](),h.on[f(667)](f(1384),e,e[f(905)],h[f(1066)],h[f(1747)]),delete x[b]):+b<n&&(h[f(2072)]=Gx,h[f(801)][f(1751)](),h.on[f(667)](f(1904),e,e[f(905)],h[f(1066)],h.group),delete x[b])}if(Si(function(){const p=f;t[p(2072)]===Ox&&(t.state=Ii,t[p(801)][p(588)](u,t.delay,t[p(533)]),u(d))}),t.state=Q0,t.on[f(667)]("start",e,e[f(905)],t[f(1066)],t[f(1747)]),t[f(2072)]===Q0){for(t[f(2072)]=Ox,r=new Array(m=t[f(1565)][f(402)]),b=0,g=-1;b<m;++b)(h=t[f(1565)][b].value[f(667)](e,e.__data__,t[f(1066)],t[f(1747)]))&&(r[++g]=h);r.length=g+1}}function u(d){const f=o;for(var b=d<t[f(833)]?t[f(949)][f(667)](null,d/t[f(833)]):(t.timer.restart(s),t[f(2072)]=$0,1),g=-1,m=r[f(402)];++g<m;)r[g].call(e,b);t[f(2072)]===$0&&(t.on[f(667)]("end",e,e[f(905)],t.index,t.group),s())}function s(){const d=o;t[d(2072)]=Gx,t.timer[d(1751)](),delete x[n];for(var f in x)return;delete e[d(1503)]}}function Vx(e,n){const t=c;var o=e.__transition,x,r,i=!0,a;if(o){n=n==null?null:n+"";for(a in o){if((x=o[a])[t(1872)]!==n){i=!1;continue}r=x[t(2072)]>Q0&&x[t(2072)]<$0,x[t(2072)]=Gx,x[t(801)].stop(),x.on[t(667)](t(r?1384:1904),e,e.__data__,x[t(1066)],x[t(1747)]),delete o[a]}i&&delete e.__transition}}function tf(e){return this[c(2077)](function(){Vx(this,e)})}function xf(e,n){var t,o;return function(){const x=_0x2299;var r=Cn(this,e),i=r.tween;if(i!==t){o=t=i;for(var a=0,u=o[x(402)];a<u;++a)if(o[a][x(1872)]===n){o=o[x(1912)](),o[x(1226)](a,1);break}}r[x(1565)]=o}}function of(e,n,t){const o=c;var x,r;if(typeof t!==o(404))throw new Error;return function(){const i=o;var a=Cn(this,e),u=a[i(1565)];if(u!==x){r=(x=u).slice();for(var s={name:n,value:t},d=0,f=r[i(402)];d<f;++d)if(r[d][i(1872)]===n){r[d]=s;break}d===f&&r.push(s)}a[i(1565)]=r}}function rf(e,n){const t=c;var o=this[t(1982)];if(e+="",arguments[t(402)]<2){for(var x=un(this[t(1855)](),o)[t(1565)],r=0,i=x[t(402)],a;r<i;++r)if((a=x[r])[t(1872)]===e)return a[t(1462)];return null}return this[t(2077)]((n==null?xf:of)(o,e,n))}function no(e,n,t){const o=c;var x=e[o(1982)];return e[o(2077)](function(){const r=o;var i=Cn(this,x);(i.value||(i[r(1462)]={}))[n]=t.apply(this,arguments)}),function(r){const i=o;return un(r,x)[i(1462)][n]}}function Ai(e,n){var t;return(typeof n=="number"?zn:n instanceof Kn?Px:(t=Kn(n))?(n=t,Px):vi)(e,n)}function af(e){return function(){this.removeAttribute(e)}}function cf(e){return function(){const n=_0x2299;this.removeAttributeNS(e[n(688)],e.local)}}function sf(e,n,t){var o,x=t+"",r;return function(){var i=this.getAttribute(e);return i===x?null:i===o?r:r=n(o=i,t)}}function lf(e,n,t){var o,x=t+"",r;return function(){var a=this[_0x2299(1044)](e.space,e.local);return a===x?null:a===o?r:r=n(o=a,t)}}function df(e,n,t){var o,x,r;return function(){const i=_0x2299;var a,u=t(this),s;return u==null?void this.removeAttribute(e):(a=this[i(2149)](e),s=u+"",a===s?null:a===o&&s===x?r:(x=s,r=n(o=a,u)))}}function uf(e,n,t){var o,x,r;return function(){const i=_0x2299;var a,u=t(this),s;return u==null?void this[i(1959)](e[i(688)],e.local):(a=this[i(1044)](e[i(688)],e[i(1268)]),s=u+"",a===s?null:a===o&&s===x?r:(x=s,r=n(o=a,u)))}}function ff(e,n){const t=c;var o=Mx(e),x=o===t(1137)?Xu:Ai;return this[t(1145)](e,typeof n===t(404)?(o[t(1268)]?uf:df)(o,x,no(this,"attr."+e,n)):n==null?(o[t(1268)]?cf:af)(o):(o[t(1268)]?lf:sf)(o,x,n))}function hf(e,n){return function(t){this[_0x2299(804)](e,n.call(this,t))}}function bf(e,n){return function(t){const o=_0x2299;this[o(1685)](e[o(688)],e.local,n.call(this,t))}}function gf(e,n){const t=c;var o,x;function r(){var a=n[_0x2299(1824)](this,arguments);return a!==x&&(o=(x=a)&&bf(e,a)),o}return r[t(634)]=n,r}function yf(e,n){const t=c;var o,x;function r(){var a=n[_0x2299(1824)](this,arguments);return a!==x&&(o=(x=a)&&hf(e,a)),o}return r[t(634)]=n,r}function mf(e,n){const t=c;var o=t(1880)+e;if(arguments[t(402)]<2)return(o=this[t(1565)](o))&&o._value;if(n==null)return this[t(1565)](o,null);if(typeof n!==t(404))throw new Error;var x=Mx(e);return this.tween(o,(x[t(1268)]?gf:yf)(x,n))}function wf(e,n){return function(){const t=_0x2299;eo(this,e)[t(1160)]=+n.apply(this,arguments)}}function vf(e,n){return n=+n,function(){const t=_0x2299;eo(this,e)[t(1160)]=n}}function pf(e){const n=c;var t=this[n(1982)];return arguments[n(402)]?this[n(2077)]((typeof e===n(404)?wf:vf)(t,e)):un(this[n(1855)](),t)[n(1160)]}function zf(e,n){return function(){const t=_0x2299;Cn(this,e)[t(833)]=+n[t(1824)](this,arguments)}}function Cf(e,n){return n=+n,function(){const t=_0x2299;Cn(this,e)[t(833)]=n}}function Mf(e){const n=c;var t=this._id;return arguments[n(402)]?this[n(2077)]((typeof e=="function"?zf:Cf)(t,e)):un(this[n(1855)](),t)[n(833)]}function Bf(e,n){if(typeof n!="function")throw new Error;return function(){const t=_0x2299;Cn(this,e)[t(949)]=n}}function Df(e){const n=c;var t=this[n(1982)];return arguments[n(402)]?this[n(2077)](Bf(t,e)):un(this.node(),t).ease}function Lf(e,n){return function(){const t=_0x2299;var o=n[t(1824)](this,arguments);if(typeof o!="function")throw new Error;Cn(this,e)[t(949)]=o}}function Nf(e){if(typeof e!==c(404))throw new Error;return this.each(Lf(this._id,e))}function Sf(e){const n=c;typeof e!==n(404)&&(e=Jr(e));for(var t=this[n(1210)],o=t[n(402)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(402)],u=x[r]=[],s,d=0;d<a;++d)(s=i[d])&&e[n(667)](s,s[n(905)],d,i)&&u[n(557)](s);return new Nn(x,this._parents,this[n(1163)],this[n(1982)])}function kf(e){const n=c;if(e._id!==this[n(1982)])throw new Error;for(var t=this._groups,o=e[n(1210)],x=t.length,r=o[n(402)],i=Math[n(782)](x,r),a=new Array(x),u=0;u<i;++u)for(var s=t[u],d=o[u],f=s[n(402)],b=a[u]=new Array(f),g,m=0;m<f;++m)(g=s[m]||d[m])&&(b[m]=g);for(;u<x;++u)a[u]=t[u];return new Nn(a,this[n(1249)],this[n(1163)],this[n(1982)])}function Pf(e){const n=c;return(e+"")[n(2053)]()[n(1939)](/^|\s+/)[n(1243)](function(t){var x=t[n(2129)](".");return x>=0&&(t=t.slice(0,x)),!t||t==="start"})}function If(e,n,t){var o,x,r=Pf(n)?eo:Cn;return function(){const i=_0x2299;var a=r(this,e),u=a.on;u!==o&&(x=(o=u)[i(622)]()).on(n,t),a.on=x}}function Af(e,n){const t=c;var o=this[t(1982)];return arguments[t(402)]<2?un(this[t(1855)](),o).on.on(e):this.each(If(o,e,n))}function jf(e){return function(){const n=_0x2299;var t=this[n(1524)];for(var o in this[n(1503)])if(+o!==e)return;t&&t[n(428)](this)}}function Yf(){const e=c;return this.on(e(1199),jf(this._id))}function Ef(e){const n=c;var t=this[n(1163)],o=this[n(1982)];typeof e!="function"&&(e=G0(e));for(var x=this[n(1210)],r=x[n(402)],i=new Array(r),a=0;a<r;++a)for(var u=x[a],s=u[n(402)],d=i[a]=new Array(s),f,b,g=0;g<s;++g)(f=u[g])&&(b=e[n(667)](f,f.__data__,g,u))&&(n(905)in f&&(b[n(905)]=f[n(905)]),d[g]=b,Hx(d[g],t,o,g,d,un(f,o)));return new Nn(i,this._parents,t,o)}function Uf(e){const n=c;var t=this[n(1163)],o=this[n(1982)];typeof e!==n(404)&&(e=_r(e));for(var x=this[n(1210)],r=x.length,i=[],a=[],u=0;u<r;++u)for(var s=x[u],d=s[n(402)],f,b=0;b<d;++b)if(f=s[b]){for(var g=e.call(f,f[n(905)],b,s),m,h=un(f,o),p=0,M=g[n(402)];p<M;++p)(m=g[p])&&Hx(m,t,o,p,g,h);i.push(g),a.push(f)}return new Nn(i,a,t,o)}var Of=Ut.prototype[c(1214)];function Gf(){const e=c;return new Of(this[e(1210)],this._parents)}function Hf(e,n){var t,o,x;return function(){const r=_0x2299;var i=ut(this,e),a=(this[r(799)][r(892)](e),ut(this,e));return i===a?null:i===t&&a===o?x:x=n(t=i,o=a)}}function ji(e){return function(){this[_0x2299(799)].removeProperty(e)}}function Vf(e,n,t){var o,x=t+"",r;return function(){var i=ut(this,e);return i===x?null:i===o?r:r=n(o=i,t)}}function Tf(e,n,t){var o,x,r;return function(){const i=_0x2299;var a=ut(this,e),u=t(this),s=u+"";return u==null&&(s=u=(this[i(799)][i(892)](e),ut(this,e))),a===s?null:a===o&&s===x?r:(x=s,r=n(o=a,u))}}function qf(e,n){const t=c;var o,x,r,i=t(1990)+n,a=t(1402)+i,u;return function(){const s=t;var d=Cn(this,e),f=d.on,b=d[s(1462)][i]==null?u||(u=ji(n)):void 0;(f!==o||r!==b)&&(x=(o=f)[s(622)]()).on(a,r=b),d.on=x}}function Wf(e,n,t){const o=c;var x=(e+="")===o(1137)?Wu:Ai;return n==null?this.styleTween(e,Hf(e,x)).on("end.style."+e,ji(e)):typeof n===o(404)?this[o(1623)](e,Tf(e,x,no(this,"style."+e,n)))[o(2077)](qf(this._id,e)):this.styleTween(e,Vf(e,x,n),t).on(o(760)+e,null)}function Xf(e,n,t){return function(o){const x=_0x2299;this[x(799)][x(1913)](e,n[x(667)](this,o),t)}}function Zf(e,n,t){var o,x;function r(){var a=n[_0x2299(1824)](this,arguments);return a!==x&&(o=(x=a)&&Xf(e,a,t)),o}return r._value=n,r}function Kf(e,n,t){const o=c;var x=o(1990)+(e+="");if(arguments.length<2)return(x=this[o(1565)](x))&&x[o(634)];if(n==null)return this[o(1565)](x,null);if(typeof n!==o(404))throw new Error;return this[o(1565)](x,Zf(e,n,t??""))}function Rf(e){return function(){const n=_0x2299;this[n(1338)]=e}}function _f(e){return function(){const n=_0x2299;var t=e(this);this[n(1338)]=t??""}}function Jf(e){const n=c;return this[n(1565)](n(1083),typeof e===n(404)?_f(no(this,n(1083),e)):Rf(e==null?"":e+""))}function Ff(e){return function(n){const t=_0x2299;this[t(1338)]=e[t(667)](this,n)}}function Qf(e){var n,t;function o(){var r=e[_0x2299(1824)](this,arguments);return r!==t&&(n=(t=r)&&Ff(r)),n}return o._value=e,o}function $f(e){const n=c;var t="text";if(arguments[n(402)]<1)return(t=this.tween(t))&&t[n(634)];if(e==null)return this[n(1565)](t,null);if(typeof e!==n(404))throw new Error;return this[n(1565)](t,Qf(e))}function e2(){const e=c;for(var n=this[e(1163)],t=this[e(1982)],o=Yi(),x=this[e(1210)],r=x[e(402)],i=0;i<r;++i)for(var a=x[i],u=a.length,s,d=0;d<u;++d)if(s=a[d]){var f=un(s,t);Hx(s,n,o,d,a,{time:f[e(533)]+f[e(1160)]+f[e(833)],delay:0,duration:f[e(833)],ease:f.ease})}return new Nn(x,this[e(1249)],n,o)}function n2(){const e=c;var n,t,o=this,x=o[e(1982)],r=o[e(413)]();return new Promise(function(i,a){var u={value:a},s={value:function(){--r===0&&i()}};o.each(function(){const d=_0x2299;var f=Cn(this,x),b=f.on;b!==n&&(t=(n=b).copy(),t._.cancel[d(557)](u),t._[d(1384)][d(557)](u),t._[d(1830)][d(557)](s)),f.on=t}),r===0&&i()})}var t2=0;function Nn(e,n,t,o){const x=c;this[x(1210)]=e,this[x(1249)]=n,this[x(1163)]=t,this._id=o}function Yi(){return++t2}var Sn=Ut.prototype;Nn[c(1197)]={constructor:Nn,select:Ef,selectAll:Uf,selectChild:Sn[c(829)],selectChildren:Sn.selectChildren,filter:Sf,merge:kf,selection:Gf,transition:e2,call:Sn[c(667)],nodes:Sn.nodes,node:Sn[c(1855)],size:Sn[c(413)],empty:Sn.empty,each:Sn[c(2077)],on:Af,attr:ff,attrTween:mf,style:Wf,styleTween:Kf,text:Jf,textTween:$f,remove:Yf,tween:rf,delay:pf,duration:Mf,ease:Df,easeVarying:Nf,end:n2,[Symbol[c(2153)]]:Sn[Symbol[c(2153)]]};function x2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var o2={time:null,delay:0,duration:250,ease:x2};function r2(e,n){const t=c;for(var o;!(o=e[t(1503)])||!(o=o[n]);)if(!(e=e[t(1524)]))throw new Error(t(1102)+n+t(1166));return o}function i2(e){const n=c;var t,o;e instanceof Nn?(t=e[n(1982)],e=e[n(1163)]):(t=Yi(),(o=o2).time=J0(),e=e==null?null:e+"");for(var x=this[n(1210)],r=x[n(402)],i=0;i<r;++i)for(var a=x[i],u=a[n(402)],s,d=0;d<u;++d)(s=a[d])&&Hx(s,e,t,d,a,o||r2(s,t));return new Nn(x,this[n(1249)],e,t)}Ut.prototype[c(1384)]=tf,Ut[c(1197)][c(1278)]=i2;const Tx=e=>()=>e;function a2(e,{sourceEvent:n,target:t,transform:o,dispatch:x}){Object[c(1748)](this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:x}})}function kn(e,n,t){this.k=e,this.x=n,this.y=t}kn[c(1197)]={constructor:kn,scale:function(e){return e===1?this:new kn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new kn(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){const n=c;return e[n(622)]()[n(1104)](e[n(1862)]().map(this[n(703)],this)[n(1849)](e[n(734)],e))},rescaleY:function(e){const n=c;return e[n(622)]().domain(e[n(1862)]().map(this[n(1490)],this)[n(1849)](e[n(734)],e))},toString:function(){const e=c;return e(1734)+this.x+","+this.y+e(2027)+this.k+")"}};var qx=new kn(1,0,0);Ei[c(1197)]=kn[c(1197)];function Ei(e){const n=c;for(;!e[n(838)];)if(!(e=e.parentNode))return qx;return e[n(838)]}function to(e){e[c(589)]()}function Kt(e){const n=c;e[n(1224)](),e[n(589)]()}function c2(e){const n=c;return(!e.ctrlKey||e[n(1246)]===n(1218))&&!e[n(1372)]}function s2(){const e=c;var n=this;return n instanceof SVGElement?(n=n[e(1046)]||n,n[e(471)]("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n[e(2035)]]]):[[0,0],[n[e(1915)][e(380)][e(1462)],n[e(2035)].baseVal[e(1462)]]]):[[0,0],[n[e(1845)],n[e(2147)]]]}function Ui(){return this[c(838)]||qx}function l2(e){const n=c;return-e[n(2019)]*(e[n(918)]===1?.05:e.deltaMode?1:.002)*(e[n(398)]?10:1)}function d2(){return navigator[c(1757)]||"ontouchstart"in this}function u2(e,n,t){const o=c;var x=e[o(703)](n[0][0])-t[0][0],r=e[o(703)](n[1][0])-t[1][0],i=e[o(1490)](n[0][1])-t[0][1],a=e[o(1490)](n[1][1])-t[1][1];return e[o(765)](r>x?(x+r)/2:Math[o(782)](0,x)||Math[o(1108)](0,r),a>i?(i+a)/2:Math[o(782)](0,i)||Math[o(1108)](0,a))}function Oi(){const e=c;var n=c2,t=s2,o=u2,x=l2,r=d2,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],u=250,s=Ax,d=zx(e(1255),"zoom","end"),f,b,g,m=500,h=150,p=0,M=10;function y(N){const D=e;N.property(D(838),Ui).on(D(1070),H,{passive:!1}).on(D(1547),O).on(D(843),_).filter(r).on(D(980),X).on(D(739),q).on("touchend.zoom touchcancel.zoom",T)[D(799)](D(379),"rgba(0,0,0,0)")}y.transform=function(N,D,B,A){const P=e;var I=N[P(1569)]?N[P(1569)]():N;I[P(860)](P(838),Ui),N!==I?S(N,D,B,A):I.interrupt()[P(2077)](function(){const Z=P;U(this,arguments)[Z(1534)](A)[Z(1255)]()[Z(368)](null,typeof D=="function"?D[Z(1824)](this,arguments):D).end()})},y[e(1937)]=function(N,D,B,A){const P=e;y[P(1404)](N,function(){const I=P;var Z=this.__zoom.k,Q=typeof D===I(404)?D[I(1824)](this,arguments):D;return Z*Q},B,A)},y[e(1404)]=function(N,D,B,A){const P=e;y[P(1137)](N,function(){const I=P;var Z=t[I(1824)](this,arguments),Q=this[I(838)],J=B==null?C(Z):typeof B=="function"?B[I(1824)](this,arguments):B,$=Q.invert(J),xe=typeof D===I(404)?D.apply(this,arguments):D;return o(w(v(Q,xe),J,$),Z,a)},B,A)},y[e(1425)]=function(N,D,B,A){const P=e;y[P(1137)](N,function(){const I=P;return o(this.__zoom[I(765)](typeof D=="function"?D.apply(this,arguments):D,typeof B=="function"?B[I(1824)](this,arguments):B),t.apply(this,arguments),a)},null,A)},y[e(1465)]=function(N,D,B,A,P){const I=e;y[I(1137)](N,function(){const Z=I;var Q=t.apply(this,arguments),J=this[Z(838)],$=A==null?C(Q):typeof A=="function"?A[Z(1824)](this,arguments):A;return o(qx.translate($[0],$[1])[Z(1126)](J.k).translate(typeof D===Z(404)?-D[Z(1824)](this,arguments):-D,typeof B===Z(404)?-B[Z(1824)](this,arguments):-B),Q,a)},A,P)};function v(N,D){const B=e;return D=Math.max(i[0],Math[B(782)](i[1],D)),D===N.k?N:new kn(D,N.x,N.y)}function w(N,D,B){var A=D[0]-B[0]*N.k,P=D[1]-B[1]*N.k;return A===N.x&&P===N.y?N:new kn(N.k,A,P)}function C(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function S(N,D,B,A){const P=e;N.on(P(1178),function(){const I=P;U(this,arguments)[I(1534)](A)[I(1255)]()}).on(P(868),function(){const I=P;U(this,arguments)[I(1534)](A)[I(1830)]()}).tween(P(368),function(){const I=P;var Z=this,Q=arguments,J=U(Z,Q).event(A),$=t[I(1824)](Z,Q),xe=B==null?C($):typeof B===I(404)?B.apply(Z,Q):B,ae=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),le=Z[I(838)],fe=typeof D=="function"?D[I(1824)](Z,Q):D,re=s(le[I(734)](xe)[I(1291)](ae/le.k),fe.invert(xe)[I(1291)](ae/fe.k));return function(K){const ie=I;if(K===1)K=fe;else{var R=re(K),k=ae/R[2];K=new kn(k,xe[0]-R[0]*k,xe[1]-R[1]*k)}J[ie(368)](null,K)}})}function U(N,D,B){return!B&&N[e(570)]||new G(N,D)}function G(N,D){const B=e;this[B(1414)]=N,this[B(431)]=D,this[B(1677)]=0,this[B(342)]=null,this[B(529)]=t[B(1824)](N,D),this[B(1142)]=0}G[e(1197)]={event:function(N){const D=e;return N&&(this[D(342)]=N),this},start:function(){const N=e;return++this[N(1677)]===1&&(this.that[N(570)]=this,this[N(393)]("start")),this},zoom:function(N,D){const B=e;return this.mouse&&N!==B(509)&&(this[B(509)][1]=D[B(734)](this[B(509)][0])),this.touch0&&N!==B(424)&&(this[B(646)][1]=D[B(734)](this[B(646)][0])),this[B(1371)]&&N!==B(424)&&(this[B(1371)][1]=D[B(734)](this[B(1371)][0])),this[B(1414)][B(838)]=D,this[B(393)]("zoom"),this},end:function(){const N=e;return--this[N(1677)]===0&&(delete this[N(1414)].__zooming,this[N(393)]("end")),this},emit:function(N){const D=e;var B=$e(this[D(1414)])[D(1318)]();d[D(667)](N,this[D(1414)],new a2(N,{sourceEvent:this[D(342)],target:y,transform:this[D(1414)][D(838)],dispatch:d}),B)}};function H(N,...D){const B=e;if(!n[B(1824)](this,arguments))return;var A=U(this,D).event(N),P=this[B(838)],I=Math[B(1108)](i[0],Math[B(782)](i[1],P.k*Math.pow(2,x[B(1824)](this,arguments)))),Z=ln(N);if(A[B(1218)])(A[B(509)][0][0]!==Z[0]||A[B(509)][0][1]!==Z[1])&&(A[B(509)][1]=P[B(734)](A.mouse[0]=Z)),clearTimeout(A[B(1218)]);else{if(P.k===I)return;A[B(509)]=[Z,P[B(734)](Z)],Vx(this),A[B(1255)]()}Kt(N),A[B(1218)]=setTimeout(Q,h),A[B(368)](B(509),o(w(v(P,I),A[B(509)][0],A[B(509)][1]),A.extent,a));function Q(){const J=B;A[J(1218)]=null,A.end()}}function O(N,...D){const B=e;if(g||!n.apply(this,arguments))return;var A=N.currentTarget,P=U(this,D,!0)[B(1534)](N),I=$e(N[B(1686)]).on(B(1673),$,!0).on(B(2083),xe,!0),Z=ln(N,A),Q=N[B(1239)],J=N[B(970)];ii(N.view),to(N),P[B(509)]=[Z,this[B(838)][B(734)](Z)],Vx(this),P[B(1255)]();function $(ae){const le=B;if(Kt(ae),!P[le(834)]){var fe=ae[le(1239)]-Q,re=ae.clientY-J;P.moved=fe*fe+re*re>p}P.event(ae)[le(368)](le(509),o(w(P[le(1414)].__zoom,P[le(509)][0]=ln(ae,A),P.mouse[1]),P.extent,a))}function xe(ae){const le=B;I.on("mousemove.zoom mouseup.zoom",null),ai(ae[le(1686)],P[le(834)]),Kt(ae),P[le(1534)](ae).end()}}function _(N,...D){const B=e;if(n[B(1824)](this,arguments)){var A=this[B(838)],P=ln(N[B(1811)]?N[B(1811)][0]:N,this),I=A[B(734)](P),Z=A.k*(N[B(2152)]?.5:2),Q=o(w(v(A,Z),P,I),t[B(1824)](this,D),a);Kt(N),u>0?$e(this)[B(1278)]().duration(u).call(S,Q,P,N):$e(this)[B(667)](y[B(1137)],Q,P,N)}}function X(N,...D){const B=e;if(n.apply(this,arguments)){var A=N.touches,P=A[B(402)],I=U(this,D,N[B(1811)][B(402)]===P).event(N),Z,Q,J,$;for(to(N),Q=0;Q<P;++Q)J=A[Q],$=ln(J,this),$=[$,this[B(838)].invert($),J[B(441)]],I[B(646)]?!I[B(1371)]&&I[B(646)][2]!==$[2]&&(I[B(1371)]=$,I[B(1142)]=0):(I[B(646)]=$,Z=!0,I[B(1142)]=1+!!f);f&&(f=clearTimeout(f)),Z&&(I.taps<2&&(b=$[0],f=setTimeout(function(){f=null},m)),Vx(this),I[B(1255)]())}}function q(N,...D){const B=e;if(this[B(570)]){var A=U(this,D)[B(1534)](N),P=N[B(1811)],I=P.length,Z,Q,J,$;for(Kt(N),Z=0;Z<I;++Z)Q=P[Z],J=ln(Q,this),A[B(646)]&&A.touch0[2]===Q[B(441)]?A[B(646)][0]=J:A[B(1371)]&&A[B(1371)][2]===Q[B(441)]&&(A[B(1371)][0]=J);if(Q=A[B(1414)][B(838)],A[B(1371)]){var xe=A[B(646)][0],ae=A[B(646)][1],le=A.touch1[0],fe=A[B(1371)][1],re=(re=le[0]-xe[0])*re+(re=le[1]-xe[1])*re,K=(K=fe[0]-ae[0])*K+(K=fe[1]-ae[1])*K;Q=v(Q,Math.sqrt(re/K)),J=[(xe[0]+le[0])/2,(xe[1]+le[1])/2],$=[(ae[0]+fe[0])/2,(ae[1]+fe[1])/2]}else if(A.touch0)J=A[B(646)][0],$=A[B(646)][1];else return;A.zoom(B(424),o(w(Q,J,$),A.extent,a))}}function T(N,...D){const B=e;if(this.__zooming){var A=U(this,D)[B(1534)](N),P=N[B(1811)],I=P[B(402)],Z,Q;for(to(N),g&&clearTimeout(g),g=setTimeout(function(){g=null},m),Z=0;Z<I;++Z)Q=P[Z],A[B(646)]&&A.touch0[2]===Q[B(441)]?delete A.touch0:A[B(1371)]&&A[B(1371)][2]===Q[B(441)]&&delete A[B(1371)];if(A[B(1371)]&&!A[B(646)]&&(A[B(646)]=A.touch1,delete A.touch1),A.touch0)A[B(646)][1]=this[B(838)].invert(A.touch0[0]);else if(A[B(1830)](),A[B(1142)]===2&&(Q=ln(Q,this),Math[B(1472)](b[0]-Q[0],b[1]-Q[1])<M)){var J=$e(this).on(B(843));J&&J[B(1824)](this,arguments)}}}return y[e(1460)]=function(N){return arguments[e(402)]?(x=typeof N=="function"?N:Tx(+N),y):x},y.filter=function(N){const D=e;return arguments[D(402)]?(n=typeof N===D(404)?N:Tx(!!N),y):n},y[e(1152)]=function(N){const D=e;return arguments.length?(r=typeof N===D(404)?N:Tx(!!N),y):r},y.extent=function(N){const D=e;return arguments.length?(t=typeof N===D(404)?N:Tx([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),y):t},y[e(1227)]=function(N){return arguments[e(402)]?(i[0]=+N[0],i[1]=+N[1],y):[i[0],i[1]]},y[e(1965)]=function(N){return arguments.length?(a[0][0]=+N[0][0],a[1][0]=+N[1][0],a[0][1]=+N[0][1],a[1][1]=+N[1][1],y):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},y[e(704)]=function(N){return arguments.length?(o=N,y):o},y[e(833)]=function(N){return arguments[e(402)]?(u=+N,y):u},y[e(543)]=function(N){return arguments.length?(s=N,y):s},y.on=function(){var N=d.on.apply(d,arguments);return N===d?y:N},y[e(2039)]=function(N){const D=e;return arguments[D(402)]?(p=(N=+N)*N,y):Math[D(1136)](p)},y[e(787)]=function(N){return arguments[e(402)]?(M=+N,y):M},y}const en={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>c(1376),error003:e=>'Node type "'+e+c(606),error004:()=>c(1588),error005:()=>"Only child nodes can use a parent extent.",error006:()=>c(1966),error007:e=>c(1028)+e+c(894),error009:e=>'Marker type "'+e+`" doesn't exist.`,error008:(e,{id:n,sourceHandle:t,targetHandle:o})=>c(1341)+e+' handle id: "'+(e===c(1717)?t:o)+c(1796)+n+".",error010:()=>c(1766),error011:e=>c(766)+e+c(606),error012:e=>c(1395)+e+c(1732),error013:(e="react")=>"It seems that you haven't loaded the styles. Please import '@xyflow/"+e+c(1552),error014:()=>c(741),error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Rt=[[Number[c(855)],Number[c(855)]],[Number[c(1635)],Number[c(1635)]]],Gi=[c(1563)," ",c(757)],Hi={"node.a11yDescription.default":c(828),"node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:n,y:t})=>c(2120)+e+c(1741)+n+c(909)+t,"edge.a11yDescription.default":c(1390),"controls.ariaLabel":c(2068),"controls.zoomIn.ariaLabel":c(1922),"controls.zoomOut.ariaLabel":c(1158),"controls.fitView.ariaLabel":c(1416),"controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":c(946),"handle.ariaLabel":c(1266)};var gt;(function(e){const n=c;e.Strict=n(518),e[n(1980)]=n(559)})(gt||(gt={}));var Fn;(function(e){const n=c;e.Free=n(1045),e[n(457)]=n(1932),e[n(1176)]=n(964)})(Fn||(Fn={}));var _t;(function(e){const n=c;e.Partial=n(1349),e.Full=n(1128)})(_t||(_t={}));const Vi={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Yn;(function(e){const n=c;e[n(1204)]="default",e[n(936)]="straight",e[n(1401)]=n(1279),e[n(1207)]=n(2090),e.SimpleBezier=n(1977)})(Yn||(Yn={}));var Wx;(function(e){const n=c;e[n(1927)]=n(742),e[n(872)]=n(1316)})(Wx||(Wx={}));var he;(function(e){const n=c;e.Left=n(1484),e[n(1891)]=n(2026),e[n(1691)]=n(1902),e[n(1311)]=n(1707)})(he||(he={}));const Ti={[he.Left]:he[c(1691)],[he[c(1691)]]:he.Left,[he[c(1891)]]:he.Bottom,[he[c(1311)]]:he[c(1891)]};function qi(e){const n=c;return e===null?null:n(e?1564:1617)}const Wi=e=>"id"in e&&"source"in e&&c(345)in e,f2=e=>"id"in e&&c(1388)in e&&!("source"in e)&&!(c(345)in e),xo=e=>"id"in e&&"internals"in e&&!("source"in e)&&!(c(345)in e),Jt=(e,n=[0,0])=>{const t=c,{width:o,height:x}=Pn(e),r=e.origin??n,i=o*r[0],a=x*r[1];return{x:e[t(1388)].x-i,y:e[t(1388)].y-a}},h2=(e,n={nodeOrigin:[0,0]})=>{const t=c;if(process.env.NODE_ENV===t(1620)&&!n[t(649)]&&console[t(1794)](t(395)),e.length===0)return{x:0,y:0,width:0,height:0};const o=e.reduce((x,r)=>{const i=t,a=typeof r===i(1863);let u=!n[i(649)]&&!a?r:void 0;n[i(649)]&&(u=a?n[i(649)][i(953)](r):xo(r)?r:n.nodeLookup[i(953)](r.id));const s=u?Kx(u,n[i(551)]):{x:0,y:0,x2:0,y2:0};return Xx(x,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Zx(o)},Ft=(e,n={})=>{const t=c;let o={x:1/0,y:1/0,x2:-1/0,y2:-1/0},x=!1;return e[t(644)](r=>{const i=t;(n[i(1211)]===void 0||n[i(1211)](r))&&(o=Xx(o,Kx(r)),x=!0)}),x?Zx(o):{x:0,y:0,width:0,height:0}},oo=(e,n,[t,o,x]=[0,0,1],r=!1,i=!1)=>{const a=c,u={...ex(n,[t,o,x]),width:n[a(1915)]/x,height:n[a(2035)]/x},s=[];for(const d of e[a(1975)]()){const{measured:f,selectable:b=!0,hidden:g=!1}=d;if(i&&!b||g)continue;const m=f[a(1915)]??d[a(1915)]??d[a(2096)]??null,h=f[a(2035)]??d[a(2035)]??d.initialHeight??null,p=Qt(u,mt(d)),M=(m??0)*(h??0),y=r&&p>0;(!d.internals.handleBounds||y||p>=M||d[a(1033)])&&s.push(d)}return s},b2=(e,n)=>{const t=c,o=new Set;return e[t(644)](x=>{o[t(1531)](x.id)}),n[t(1211)](x=>o[t(888)](x[t(1717)])||o[t(888)](x[t(345)]))};function g2(e,n){const t=c,o=new Map,x=n?.[t(2110)]?new Set(n[t(2110)][t(1849)](r=>r.id)):null;return e[t(644)](r=>{const i=t;r[i(1173)].width&&r[i(1173)].height&&(n?.[i(619)]||!r.hidden)&&(!x||x[i(888)](r.id))&&o.set(r.id,r)}),o}async function y2({nodes:e,width:n,height:t,panZoom:o,minZoom:x,maxZoom:r},i){const a=c;if(e.size===0)return Promise[a(1762)](!0);const u=g2(e,i),s=Ft(u),d=io(s,n,t,i?.minZoom??x,i?.[a(1479)]??r,i?.[a(467)]??.1);return await o.setViewport(d,{duration:i?.[a(833)],ease:i?.[a(949)],interpolate:i?.[a(543)]}),Promise[a(1762)](!0)}function Xi({nodeId:e,nextPosition:n,nodeLookup:t,nodeOrigin:o=[0,0],nodeExtent:x,onError:r}){const i=c,a=t[i(953)](e),u=a[i(1326)]?t[i(953)](a[i(1326)]):void 0,{x:s,y:d}=u?u[i(1570)][i(1841)]:{x:0,y:0},f=a[i(1411)]??o;let b=a[i(529)]||x;if(a[i(529)]===i(767)&&!a[i(1396)])if(!u)r?.(i(420),en[i(406)]());else{const m=u[i(1173)][i(1915)],h=u[i(1173)].height;m&&h&&(b=[[s,d],[s+m,d+h]])}else u&&vt(a[i(529)])&&(b=[[a[i(529)][0][0]+s,a[i(529)][0][1]+d],[a.extent[1][0]+s,a[i(529)][1][1]+d]]);const g=vt(b)?Qn(n,b,a[i(1173)]):n;return(a.measured.width===void 0||a[i(1173)].height===void 0)&&r?.(i(1853),en[i(1986)]()),{position:{x:g.x-s+(a[i(1173)].width??0)*f[0],y:g.y-d+(a[i(1173)][i(2035)]??0)*f[1]},positionAbsolute:g}}async function m2({nodesToRemove:e=[],edgesToRemove:n=[],nodes:t,edges:o,onBeforeDelete:x}){const r=c,i=new Set(e[r(1849)](g=>g.id)),a=[];for(const g of t){if(g.deletable===!1)continue;const m=i[r(888)](g.id),h=!m&&g[r(1326)]&&a[r(438)](p=>p.id===g.parentId);(m||h)&&a[r(557)](g)}const u=new Set(n[r(1849)](g=>g.id)),s=o.filter(g=>g[r(1539)]!==!1),d=b2(a,s),f=d;for(const g of s)u[r(888)](g.id)&&!f[r(438)](h=>h.id===g.id)&&f[r(557)](g);if(!x)return{edges:f,nodes:a};const b=await x({nodes:a,edges:f});return typeof b=="boolean"?b?{edges:f,nodes:a}:{edges:[],nodes:[]}:b}const yt=(e,n=0,t=1)=>Math[c(782)](Math[c(1108)](e,n),t),Qn=(e={x:0,y:0},n,t)=>({x:yt(e.x,n[0][0],n[1][0]-(t?.[c(1915)]??0)),y:yt(e.y,n[0][1],n[1][1]-(t?.[c(2035)]??0))});function Zi(e,n,t){const o=c,{width:x,height:r}=Pn(t),{x:i,y:a}=t[o(1570)][o(1841)];return Qn(e,[[i,a],[i+x,a+r]],n)}const Ki=(e,n,t)=>{const o=c;return e<n?yt(Math[o(1494)](e-n),1,n)/n:e>t?-yt(Math.abs(e-t),1,n)/n:0},Ri=(e,n,t=15,o=40)=>{const x=c,r=Ki(e.x,o,n[x(1915)]-o)*t,i=Ki(e.y,o,n.height-o)*t;return[r,i]},Xx=(e,n)=>({x:Math[c(782)](e.x,n.x),y:Math[c(782)](e.y,n.y),x2:Math[c(1108)](e.x2,n.x2),y2:Math[c(1108)](e.y2,n.y2)}),ro=({x:e,y:n,width:t,height:o})=>({x:e,y:n,x2:e+t,y2:n+o}),Zx=({x:e,y:n,x2:t,y2:o})=>({x:e,y:n,width:t-e,height:o-n}),mt=(e,n=[0,0])=>{const t=c,{x:o,y:x}=xo(e)?e.internals.positionAbsolute:Jt(e,n);return{x:o,y:x,width:e[t(1173)]?.[t(1915)]??e[t(1915)]??e[t(2096)]??0,height:e[t(1173)]?.height??e[t(2035)]??e.initialHeight??0}},Kx=(e,n=[0,0])=>{const t=c,{x:o,y:x}=xo(e)?e[t(1570)][t(1841)]:Jt(e,n);return{x:o,y:x,x2:o+(e[t(1173)]?.[t(1915)]??e[t(1915)]??e[t(2096)]??0),y2:x+(e[t(1173)]?.[t(2035)]??e[t(2035)]??e[t(773)]??0)}},_i=(e,n)=>Zx(Xx(ro(e),ro(n))),Qt=(e,n)=>{const t=c,o=Math[t(1108)](0,Math[t(782)](e.x+e[t(1915)],n.x+n[t(1915)])-Math.max(e.x,n.x)),x=Math[t(1108)](0,Math[t(782)](e.y+e[t(2035)],n.y+n[t(2035)])-Math[t(1108)](e.y,n.y));return Math[t(1017)](o*x)},Ji=e=>fn(e.width)&&fn(e[c(2035)])&&fn(e.x)&&fn(e.y),fn=e=>!isNaN(e)&&isFinite(e),Fi=(e,n)=>{process.env.NODE_ENV==="development"&&console.warn("[React Flow]: "+n+" Help: https://reactflow.dev/error#"+e)},$t=(e,n=[1,1])=>{const t=c;return{x:n[0]*Math.round(e.x/n[0]),y:n[1]*Math[t(392)](e.y/n[1])}},ex=({x:e,y:n},[t,o,x],r=!1,i=[1,1])=>{const a={x:(e-t)/x,y:(n-o)/x};return r?$t(a,i):a},Rx=({x:e,y:n},[t,o,x])=>({x:e*x+t,y:n*x+o});function wt(e,n){const t=c;if(typeof e=="number")return Math[t(1754)]((n-n/(1+e))*.5);if(typeof e===t(1863)&&e[t(1920)]("px")){const o=parseFloat(e);if(!Number[t(530)](o))return Math[t(1754)](o)}if(typeof e===t(1863)&&e[t(1920)]("%")){const o=parseFloat(e);if(!Number.isNaN(o))return Math[t(1754)](n*o*.01)}return console.error('[React Flow] The padding value "'+e+t(844)),0}function w2(e,n,t){const o=c;if(typeof e=="string"||typeof e===o(1288)){const x=wt(e,t),r=wt(e,n);return{top:x,right:r,bottom:x,left:r,x:r*2,y:x*2}}if(typeof e===o(2151)){const x=wt(e[o(2026)]??e.y??0,t),r=wt(e[o(1707)]??e.y??0,t),i=wt(e.left??e.x??0,n),a=wt(e[o(1902)]??e.x??0,n);return{top:x,right:a,bottom:r,left:i,x:i+a,y:x+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function v2(e,n,t,o,x,r){const i=c,{x:a,y:u}=Rx(e,[n,t,o]),{x:s,y:d}=Rx({x:e.x+e[i(1915)],y:e.y+e[i(2035)]},[n,t,o]),f=x-s,b=r-d;return{left:Math.floor(a),top:Math.floor(u),right:Math.floor(f),bottom:Math[i(1754)](b)}}const io=(e,n,t,o,x,r)=>{const i=c,a=w2(r,n,t),u=(n-a.x)/e.width,s=(t-a.y)/e.height,d=Math[i(782)](u,s),f=yt(d,o,x),b=e.x+e.width/2,g=e.y+e[i(2035)]/2,m=n/2-b*f,h=t/2-g*f,p=v2(e,m,h,f,n,t),M={left:Math[i(782)](p.left-a[i(1484)],0),top:Math[i(782)](p[i(2026)]-a[i(2026)],0),right:Math[i(782)](p[i(1902)]-a[i(1902)],0),bottom:Math[i(782)](p.bottom-a[i(1707)],0)};return{x:m-M[i(1484)]+M[i(1902)],y:h-M.top+M[i(1707)],zoom:f}},nx=()=>typeof navigator!==c(1906)&&navigator?.[c(2081)]?.[c(2129)](c(1527))>=0;function vt(e){const n=c;return e!=null&&e!==n(767)}function Pn(e){const n=c;return{width:e[n(1173)]?.[n(1915)]??e.width??e[n(2096)]??0,height:e[n(1173)]?.[n(2035)]??e[n(2035)]??e[n(773)]??0}}function Qi(e){const n=c;return(e[n(1173)]?.[n(1915)]??e[n(1915)]??e.initialWidth)!==void 0&&(e[n(1173)]?.[n(2035)]??e[n(2035)]??e[n(773)])!==void 0}function $i(e,n={width:0,height:0},t,o,x){const r=c,i={...e},a=o[r(953)](t);if(a){const u=a[r(1411)]||x;i.x+=a[r(1570)][r(1841)].x-(n.width??0)*u[0],i.y+=a[r(1570)][r(1841)].y-(n[r(2035)]??0)*u[1]}return i}function ea(e,n){const t=c;if(e.size!==n[t(413)])return!1;for(const o of e)if(!n.has(o))return!1;return!0}function p2(){let e,n;return{promise:new Promise((o,x)=>{e=o,n=x}),resolve:e,reject:n}}function z2(e){return{...Hi,...e||{}}}function tx(e,{snapGrid:n=[0,0],snapToGrid:t=!1,transform:o,containerBounds:x}){const r=c,{x:i,y:a}=hn(e),u=ex({x:i-(x?.[r(1484)]??0),y:a-(x?.top??0)},o),{x:s,y:d}=t?$t(u,n):u;return{xSnapped:s,ySnapped:d,...u}}const ao=e=>({width:e.offsetWidth,height:e.offsetHeight}),na=e=>e?.[c(362)]?.()||window?.[c(2105)],C2=[c(616),c(1538),"TEXTAREA"];function ta(e){const n=c,t=e[n(1961)]?.()?.[0]||e[n(345)];return t?.[n(547)]!==1?!1:C2[n(633)](t[n(526)])||t.hasAttribute(n(1129))||!!t[n(2108)](".nokey")}const xa=e=>c(1239)in e,hn=(e,n)=>{const t=c,o=xa(e),x=o?e.clientX:e.touches?.[0][t(1239)],r=o?e[t(970)]:e[t(1584)]?.[0][t(970)];return{x:x-(n?.[t(1484)]??0),y:r-(n?.[t(2026)]??0)}},oa=(e,n,t,o,x)=>{const r=c,i=n.querySelectorAll("."+e);return!i||!i[r(402)]?null:Array.from(i).map(a=>{const u=r,s=a[u(1749)]();return{id:a[u(2149)](u(957)),type:e,nodeId:x,position:a[u(2149)]("data-handlepos"),x:(s[u(1484)]-t[u(1484)])/o,y:(s[u(2026)]-t[u(2026)])/o,...ao(a)}})};function ra({sourceX:e,sourceY:n,targetX:t,targetY:o,sourceControlX:x,sourceControlY:r,targetControlX:i,targetControlY:a}){const u=c,s=e*.125+x*.375+i*.375+t*.125,d=n*.125+r*.375+a*.375+o*.125,f=Math.abs(s-e),b=Math[u(1494)](d-n);return[s,d,f,b]}function _x(e,n){const t=c;return e>=0?.5*e:n*25*Math[t(1136)](-e)}function ia({pos:e,x1:n,y1:t,x2:o,y2:x,c:r}){const i=c;switch(e){case he[i(1437)]:return[n-_x(n-o,r),t];case he.Right:return[n+_x(o-n,r),t];case he[i(1891)]:return[n,t-_x(t-x,r)];case he[i(1311)]:return[n,t+_x(x-t,r)]}}function aa({sourceX:e,sourceY:n,sourcePosition:t=he[c(1311)],targetX:o,targetY:x,targetPosition:r=he.Top,curvature:i=.25}){const[a,u]=ia({pos:t,x1:e,y1:n,x2:o,y2:x,c:i}),[s,d]=ia({pos:r,x1:o,y1:x,x2:e,y2:n,c:i}),[f,b,g,m]=ra({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:a,sourceControlY:u,targetControlX:s,targetControlY:d});return["M"+e+","+n+" C"+a+","+u+" "+s+","+d+" "+o+","+x,f,b,g,m]}function ca({sourceX:e,sourceY:n,targetX:t,targetY:o}){const x=c,r=Math[x(1494)](t-e)/2,i=t<e?t+r:t-r,a=Math[x(1494)](o-n)/2,u=o<n?o+a:o-a;return[i,u,r,a]}function M2({sourceNode:e,targetNode:n,selected:t=!1,zIndex:o=0,elevateOnSelect:x=!1,zIndexMode:r="basic"}){const i=c;if(r===i(1168))return o;const a=x&&t?o+1e3:o,u=Math[i(1108)](e.parentId||x&&e[i(1660)]?e[i(1570)].z:0,n[i(1326)]||x&&n.selected?n[i(1570)].z:0);return a+u}function B2({sourceNode:e,targetNode:n,width:t,height:o,transform:x}){const r=Xx(Kx(e),Kx(n));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);const i={x:-x[0]/x[2],y:-x[1]/x[2],width:t/x[2],height:o/x[2]};return Qt(i,Zx(r))>0}const D2=({source:e,sourceHandle:n,target:t,targetHandle:o})=>c(1256)+e+(n||"")+"-"+t+(o||""),L2=(e,n)=>{const t=c;return n[t(1548)](o=>o[t(1717)]===e[t(1717)]&&o[t(345)]===e.target&&(o.sourceHandle===e[t(378)]||!o[t(378)]&&!e.sourceHandle)&&(o.targetHandle===e.targetHandle||!o[t(1115)]&&!e[t(1115)]))},sa=(e,n,t={})=>{const o=c;if(!e.source||!e[o(345)])return Fi("006",en[o(1698)]()),n;const x=t[o(371)]||D2;let r;return Wi(e)?r={...e}:r={...e,id:x(e)},L2(r,n)?n:(r[o(378)]===null&&delete r[o(378)],r[o(1115)]===null&&delete r[o(1115)],n[o(1291)](r))};function la({sourceX:e,sourceY:n,targetX:t,targetY:o}){const[x,r,i,a]=ca({sourceX:e,sourceY:n,targetX:t,targetY:o});return["M "+e+","+n+"L "+t+","+o,x,r,i,a]}const da={[he[c(1437)]]:{x:-1,y:0},[he[c(1691)]]:{x:1,y:0},[he[c(1891)]]:{x:0,y:-1},[he[c(1311)]]:{x:0,y:1}},N2=({source:e,sourcePosition:n=he[c(1311)],target:t})=>n===he[c(1437)]||n===he.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1},ua=(e,n)=>Math.sqrt(Math[c(1712)](n.x-e.x,2)+Math.pow(n.y-e.y,2));function S2({source:e,sourcePosition:n=he[c(1311)],target:t,targetPosition:o=he[c(1891)],center:x,offset:r,stepPosition:i}){const a=c,u=da[n],s=da[o],d={x:e.x+u.x*r,y:e.y+u.y*r},f={x:t.x+s.x*r,y:t.y+s.y*r},b=N2({source:d,sourcePosition:n,target:f}),g=b.x!==0?"x":"y",m=b[g];let h=[],p,M;const y={x:0,y:0},v={x:0,y:0},[,,w,C]=ca({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[g]*s[g]===-1){g==="x"?(p=x.x??d.x+(f.x-d.x)*i,M=x.y??(d.y+f.y)/2):(p=x.x??(d.x+f.x)/2,M=x.y??d.y+(f.y-d.y)*i);const H=[{x:p,y:d.y},{x:p,y:f.y}],O=[{x:d.x,y:M},{x:f.x,y:M}];u[g]===m?h=g==="x"?H:O:h=g==="x"?O:H}else{const H=[{x:d.x,y:f.y}],O=[{x:f.x,y:d.y}];if(g==="x"?h=u.x===m?O:H:h=u.y===m?H:O,n===o){const N=Math[a(1494)](e[g]-t[g]);if(N<=r){const D=Math.min(r-1,r-N);u[g]===m?y[g]=(d[g]>e[g]?-1:1)*D:v[g]=(f[g]>t[g]?-1:1)*D}}if(n!==o){const N=g==="x"?"y":"x",D=u[g]===s[N],B=d[N]>f[N],A=d[N]<f[N];(u[g]===1&&(!D&&B||D&&A)||u[g]!==1&&(!D&&A||D&&B))&&(h=g==="x"?H:O)}const _={x:d.x+y.x,y:d.y+y.y},X={x:f.x+v.x,y:f.y+v.y},q=Math[a(1108)](Math[a(1494)](_.x-h[0].x),Math[a(1494)](X.x-h[0].x)),T=Math[a(1108)](Math[a(1494)](_.y-h[0].y),Math[a(1494)](X.y-h[0].y));q>=T?(p=(_.x+X.x)/2,M=h[0].y):(p=h[0].x,M=(_.y+X.y)/2)}const S={x:d.x+y.x,y:d.y+y.y},U={x:f.x+v.x,y:f.y+v.y};return[[e,...S.x!==h[0].x||S.y!==h[0].y?[S]:[],...h,...U.x!==h[h[a(402)]-1].x||U.y!==h[h[a(402)]-1].y?[U]:[],t],p,M,w,C]}function k2(e,n,t,o){const x=Math.min(ua(e,n)/2,ua(n,t)/2,o),{x:r,y:i}=n;if(e.x===r&&r===t.x||e.y===i&&i===t.y)return"L"+r+" "+i;if(e.y===i){const s=e.x<t.x?-1:1,d=e.y<t.y?1:-1;return"L "+(r+x*s)+","+i+"Q "+r+","+i+" "+r+","+(i+x*d)}const a=e.x<t.x?1:-1,u=e.y<t.y?-1:1;return"L "+r+","+(i+x*u)+"Q "+r+","+i+" "+(r+x*a)+","+i}function co({sourceX:e,sourceY:n,sourcePosition:t=he[c(1311)],targetX:o,targetY:x,targetPosition:r=he[c(1891)],borderRadius:i=5,centerX:a,centerY:u,offset:s=20,stepPosition:d=.5}){const f=c,[b,g,m,h,p]=S2({source:{x:e,y:n},sourcePosition:t,target:{x:o,y:x},targetPosition:r,center:{x:a,y:u},offset:s,stepPosition:d});let M="M"+b[0].x+" "+b[0].y;for(let y=1;y<b[f(402)]-1;y++)M+=k2(b[y-1],b[y],b[y+1],i);return M+="L"+b[b.length-1].x+" "+b[b[f(402)]-1].y,[M,g,m,h,p]}function fa(e){const n=c;return e&&!!(e[n(1570)][n(1888)]||e[n(1427)]?.[n(402)])&&!!(e[n(1173)][n(1915)]||e.width||e[n(2096)])}function P2(e){const n=c,{sourceNode:t,targetNode:o}=e;if(!fa(t)||!fa(o))return null;const x=t[n(1570)].handleBounds||ha(t[n(1427)]),r=o[n(1570)][n(1888)]||ha(o[n(1427)]),i=ba(x?.[n(1717)]??[],e[n(378)]),a=ba(e[n(1143)]===gt[n(1576)]?r?.[n(345)]??[]:(r?.target??[]).concat(r?.[n(1717)]??[]),e[n(1115)]);if(!i||!a)return e[n(720)]?.(n(805),en.error008(n(i?345:1717),{id:e.id,sourceHandle:e[n(378)],targetHandle:e[n(1115)]})),null;const u=i?.[n(1388)]||he[n(1311)],s=a?.position||he.Top,d=$n(t,i,u),f=$n(o,a,s);return{sourceX:d.x,sourceY:d.y,targetX:f.x,targetY:f.y,sourcePosition:u,targetPosition:s}}function ha(e){const n=c;if(!e)return null;const t=[],o=[];for(const x of e)x[n(1915)]=x[n(1915)]??1,x[n(2035)]=x[n(2035)]??1,x[n(1246)]===n(1717)?t[n(557)](x):x[n(1246)]==="target"&&o[n(557)](x);return{source:t,target:o}}function $n(e,n,t=he[c(1437)],o=!1){const x=c,r=(n?.x??0)+e[x(1570)][x(1841)].x,i=(n?.y??0)+e[x(1570)][x(1841)].y,{width:a,height:u}=n??Pn(e);if(o)return{x:r+a/2,y:i+u/2};switch(n?.[x(1388)]??t){case he[x(1891)]:return{x:r+a/2,y:i};case he[x(1691)]:return{x:r+a,y:i+u/2};case he[x(1311)]:return{x:r+a/2,y:i+u};case he.Left:return{x:r,y:i+u/2}}}function ba(e,n){const t=c;return e&&(n?e[t(438)](o=>o.id===n):e[0])||null}function so(e,n){const t=c;return e?typeof e===t(1863)?e:""+(n?n+"__":"")+Object.keys(e)[t(1601)]()[t(1849)](x=>x+"="+e[x])[t(1507)]("&"):""}function I2(e,{id:n,defaultColor:t,defaultMarkerStart:o,defaultMarkerEnd:x}){const r=c,i=new Set;return e[r(1833)]((a,u)=>{const s=r;return[u[s(1887)]||o,u[s(1750)]||x].forEach(d=>{const f=s;if(d&&typeof d===f(2151)){const b=so(d,n);!i[f(888)](b)&&(a[f(557)]({id:b,color:d[f(608)]||t,...d}),i[f(1531)](b))}}),a},[])[r(1601)]((a,u)=>a.id.localeCompare(u.id))}const ga=1e3,A2=10,lo={nodeOrigin:[0,0],nodeExtent:Rt,elevateNodesOnSelect:!0,zIndexMode:c(1926),defaults:{}},j2={...lo,checkEquality:!0};function uo(e,n){const t={...e};for(const o in n)n[o]!==void 0&&(t[o]=n[o]);return t}function Y2(e,n,t){const o=c,x=uo(lo,t);for(const r of e[o(1975)]())if(r[o(1326)])bo(r,e,n,x);else{const i=Jt(r,x[o(551)]),a=vt(r[o(529)])?r[o(529)]:x[o(2121)],u=Qn(i,a,Pn(r));r[o(1570)][o(1841)]=u}}function E2(e,n){const t=c;if(!e.handles)return e[t(1173)]?n?.internals.handleBounds:void 0;const o=[],x=[];for(const r of e[t(1427)]){const i={id:r.id,width:r[t(1915)]??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r[t(1388)],type:r[t(1246)]};r[t(1246)]===t(1717)?o[t(557)](i):r[t(1246)]===t(345)&&x[t(557)](i)}return{source:o,target:x}}function fo(e){return e===c(1168)}function ho(e,n,t,o={}){const x=c,r=uo(j2,o),i={i:0},a=new Map(n),u=r?.[x(2063)]&&!fo(r[x(1310)])?ga:0;let s=e.length>0,d=!1;n[x(1275)](),t[x(1275)]();for(const f of e){let b=a[x(953)](f.id);if(r[x(1438)]&&f===b?.[x(1570)][x(602)])n[x(1618)](f.id,b);else{const g=Jt(f,r.nodeOrigin),m=vt(f[x(529)])?f[x(529)]:r[x(2121)],h=Qn(g,m,Pn(f));b={...r[x(1006)],...f,measured:{width:f[x(1173)]?.width,height:f[x(1173)]?.[x(2035)]},internals:{positionAbsolute:h,handleBounds:E2(f,b),z:ya(f,u,r[x(1310)]),userNode:f}},n.set(f.id,b)}(b[x(1173)]===void 0||b[x(1173)][x(1915)]===void 0||b.measured[x(2035)]===void 0)&&!b.hidden&&(s=!1),f[x(1326)]&&bo(b,n,t,o,i),d||=f[x(1660)]??!1}return{nodesInitialized:s,hasSelectedNodes:d}}function U2(e,n){const t=c;if(!e[t(1326)])return;const o=n[t(953)](e[t(1326)]);o?o[t(1618)](e.id,e):n[t(1618)](e[t(1326)],new Map([[e.id,e]]))}function bo(e,n,t,o,x){const r=c,{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:u,zIndexMode:s}=uo(lo,o),d=e[r(1326)],f=n[r(953)](d);if(!f){console[r(1794)](r(1879)+d+" not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.");return}U2(e,t),x&&!f[r(1326)]&&f[r(1570)].rootParentIndex===void 0&&s===r(816)&&(f[r(1570)].rootParentIndex=++x.i,f.internals.z=f.internals.z+x.i*A2),x&&f[r(1570)][r(581)]!==void 0&&(x.i=f.internals[r(581)]);const b=i&&!fo(s)?ga:0,{x:g,y:m,z:h}=O2(e,f,a,u,b,s),{positionAbsolute:p}=e[r(1570)],M=g!==p.x||m!==p.y;(M||h!==e[r(1570)].z)&&n[r(1618)](e.id,{...e,internals:{...e[r(1570)],positionAbsolute:M?{x:g,y:m}:p,z:h}})}function ya(e,n,t){const o=c,x=fn(e[o(1445)])?e.zIndex:0;return fo(t)?x:x+(e[o(1660)]?n:0)}function O2(e,n,t,o,x,r){const i=c,{x:a,y:u}=n[i(1570)][i(1841)],s=Pn(e),d=Jt(e,t),f=vt(e.extent)?Qn(d,e[i(529)],s):d;let b=Qn({x:a+f.x,y:u+f.y},o,s);e[i(529)]==="parent"&&(b=Zi(b,s,n));const g=ya(e,x,r),m=n[i(1570)].z??0;return{x:b.x,y:b.y,z:m>=g?m+1:g}}function go(e,n,t,o=[0,0]){const x=c,r=[],i=new Map;for(const a of e){const u=n[x(953)](a[x(1326)]);if(!u)continue;const s=i[x(953)](a[x(1326)])?.[x(515)]??mt(u),d=_i(s,a[x(1254)]);i[x(1618)](a.parentId,{expandedRect:d,parent:u})}return i[x(413)]>0&&i[x(644)](({expandedRect:a,parent:u},s)=>{const d=x,f=u[d(1570)].positionAbsolute,b=Pn(u),g=u.origin??o,m=a.x<f.x?Math[d(392)](Math.abs(f.x-a.x)):0,h=a.y<f.y?Math[d(392)](Math[d(1494)](f.y-a.y)):0,p=Math.max(b.width,Math[d(392)](a.width)),M=Math[d(1108)](b[d(2035)],Math.round(a[d(2035)])),y=(p-b[d(1915)])*g[0],v=(M-b.height)*g[1];(m>0||h>0||y||v)&&(r[d(557)]({id:s,type:d(1388),position:{x:u.position.x-m+y,y:u[d(1388)].y-h+v}}),t[d(953)](s)?.[d(644)](w=>{const C=d;!e[C(1548)](S=>S.id===w.id)&&r[C(557)]({id:w.id,type:C(1388),position:{x:w[C(1388)].x+m,y:w[C(1388)].y+h}})})),(b.width<a[d(1915)]||b.height<a.height||m||h)&&r.push({id:s,type:d(591),setAttributes:!0,dimensions:{width:p+(m?g[0]*m-y:0),height:M+(h?g[1]*h-v:0)}})}),r}function G2(e,n,t,o,x,r,i){const a=c,u=o?.[a(1086)](".xyflow__viewport");let s=!1;if(!u)return{changes:[],updatedInternals:s};const d=[],f=window[a(959)](u),{m22:b}=new window.DOMMatrixReadOnly(f[a(1137)]),g=[];for(const m of e[a(1975)]()){const h=n[a(953)](m.id);if(!h)continue;if(h.hidden){n[a(1618)](h.id,{...h,internals:{...h.internals,handleBounds:void 0}}),s=!0;continue}const p=ao(m[a(1844)]),M=h.measured[a(1915)]!==p[a(1915)]||h[a(1173)][a(2035)]!==p[a(2035)];if(!!(p.width&&p[a(2035)]&&(M||!h[a(1570)].handleBounds||m[a(898)]))){const v=m[a(1844)][a(1749)](),w=vt(h[a(529)])?h[a(529)]:r;let{positionAbsolute:C}=h[a(1570)];h.parentId&&h[a(529)]==="parent"?C=Zi(C,p,n[a(953)](h.parentId)):w&&(C=Qn(C,w,p));const S={...h,measured:p,internals:{...h[a(1570)],positionAbsolute:C,handleBounds:{source:oa("source",m[a(1844)],v,b,h.id),target:oa(a(345),m.nodeElement,v,b,h.id)}}};n[a(1618)](h.id,S),h.parentId&&bo(S,n,t,{nodeOrigin:x,zIndexMode:i}),s=!0,M&&(d.push({id:h.id,type:"dimensions",dimensions:p}),h[a(1396)]&&h[a(1326)]&&g[a(557)]({id:h.id,parentId:h[a(1326)],rect:mt(S,x)}))}}if(g[a(402)]>0){const m=go(g,n,t,x);d[a(557)](...m)}return{changes:d,updatedInternals:s}}async function H2({delta:e,panZoom:n,transform:t,translateExtent:o,width:x,height:r}){const i=c;if(!n||!e.x&&!e.y)return Promise[i(1762)](!1);const a=await n[i(2148)]({x:t[0]+e.x,y:t[1]+e.y,zoom:t[2]},[[0,0],[x,r]],o),u=!!a&&(a.x!==t[0]||a.y!==t[1]||a.k!==t[2]);return Promise[i(1762)](u)}function ma(e,n,t,o,x,r){const i=c;let a=x;const u=o[i(953)](a)||new Map;o[i(1618)](a,u[i(1618)](t,n)),a=x+"-"+e;const s=o.get(a)||new Map;if(o.set(a,s[i(1618)](t,n)),r){a=x+"-"+e+"-"+r;const d=o.get(a)||new Map;o[i(1618)](a,d[i(1618)](t,n))}}function wa(e,n,t){const o=c;e[o(1275)](),n[o(1275)]();for(const x of t){const{source:r,target:i,sourceHandle:a=null,targetHandle:u=null}=x,s={edgeId:x.id,source:r,target:i,sourceHandle:a,targetHandle:u},d=r+"-"+a+"--"+i+"-"+u,f=i+"-"+u+"--"+r+"-"+a;ma("source",s,f,e,r,a),ma("target",s,d,e,i,u),n[o(1618)](x.id,x)}}function va(e,n){const t=c;if(!e[t(1326)])return!1;const o=n[t(953)](e[t(1326)]);return o?o[t(1660)]?!0:va(o,n):!1}function pa(e,n,t){const o=c;let x=e;do{if(x?.[o(2141)]?.(n))return!0;if(x===t)return!1;x=x?.[o(1327)]}while(x);return!1}function V2(e,n,t,o){const x=c,r=new Map;for(const[i,a]of e)if((a[x(1660)]||a.id===o)&&(!a[x(1326)]||!va(a,e))&&(a[x(822)]||n&&typeof a[x(822)]===x(1906))){const u=e[x(953)](i);u&&r[x(1618)](i,{id:i,position:u[x(1388)]||{x:0,y:0},distance:{x:t.x-u[x(1570)][x(1841)].x,y:t.y-u[x(1570)][x(1841)].y},extent:u[x(529)],parentId:u[x(1326)],origin:u[x(1411)],expandParent:u[x(1396)],internals:{positionAbsolute:u[x(1570)][x(1841)]||{x:0,y:0}},measured:{width:u[x(1173)][x(1915)]??0,height:u.measured[x(2035)]??0}})}return r}function yo({nodeId:e,dragItems:n,nodeLookup:t,dragging:o=!0}){const x=c,r=[];for(const[a,u]of n){const s=t[x(953)](a)?.internals.userNode;s&&r[x(557)]({...s,position:u[x(1388)],dragging:o})}if(!e)return[r[0],r];const i=t[x(953)](e)?.internals[x(602)];return[i?{...i,position:n.get(e)?.[x(1388)]||i.position,dragging:o}:r[0],r]}function T2({dragItems:e,snapGrid:n,x:t,y:o}){const x=c,r=e[x(1975)]()[x(813)]()[x(1462)];if(!r)return null;const i={x:t-r[x(1877)].x,y:o-r[x(1877)].y},a=$t(i,n);return{x:a.x-i.x,y:a.y-i.y}}function q2({onNodeMouseDown:e,getStoreItems:n,onDragStart:t,onDrag:o,onDragStop:x}){let r={x:null,y:null},i=0,a=new Map,u=!1,s={x:0,y:0},d=null,f=!1,b=null,g=!1,m=!1,h=null;function p({noDragClassName:y,handleSelector:v,domNode:w,isSelectable:C,nodeId:S,nodeClickDistance:U=0}){const G=_0x2299;b=$e(w);function H({x:q,y:T}){const N=_0x2299,{nodeLookup:D,nodeExtent:B,snapGrid:A,snapToGrid:P,nodeOrigin:I,onNodeDrag:Z,onSelectionDrag:Q,onError:J,updateNodePositions:$}=n();r={x:q,y:T};let xe=!1;const ae=a[N(413)]>1,le=ae&&B?ro(Ft(a)):null,fe=ae&&P?T2({dragItems:a,snapGrid:A,x:q,y:T}):null;for(const[re,K]of a){if(!D[N(888)](re))continue;let ie={x:q-K.distance.x,y:T-K[N(1877)].y};P&&(ie=fe?{x:Math[N(392)](ie.x+fe.x),y:Math[N(392)](ie.y+fe.y)}:$t(ie,A));let R=null;if(ae&&B&&!K.extent&&le){const{positionAbsolute:W}=K[N(1570)],E=W.x-le.x+B[0][0],oe=W.x+K[N(1173)].width-le.x2+B[1][0],se=W.y-le.y+B[0][1],ce=W.y+K[N(1173)][N(2035)]-le.y2+B[1][1];R=[[E,se],[oe,ce]]}const{position:k,positionAbsolute:j}=Xi({nodeId:re,nextPosition:ie,nodeLookup:D,nodeExtent:R||B,nodeOrigin:I,onError:J});xe=xe||K[N(1388)].x!==k.x||K[N(1388)].y!==k.y,K[N(1388)]=k,K[N(1570)][N(1841)]=j}if(m=m||xe,!!xe&&($(a,!0),h&&(o||Z||!S&&Q))){const[re,K]=yo({nodeId:S,dragItems:a,nodeLookup:D});o?.(h,a,re,K),Z?.(h,re,K),!S&&Q?.(h,K)}}async function O(){if(!d)return;const{transform:q,panBy:T,autoPanSpeed:N,autoPanOnNodeDrag:D}=n();if(!D){u=!1,cancelAnimationFrame(i);return}const[B,A]=Ri(s,d,N);(B!==0||A!==0)&&(r.x=(r.x??0)-B/q[2],r.y=(r.y??0)-A/q[2],await T({x:B,y:A})&&H(r)),i=requestAnimationFrame(O)}function _(q){const T=_0x2299,{nodeLookup:N,multiSelectionActive:D,nodesDraggable:B,transform:A,snapGrid:P,snapToGrid:I,selectNodesOnDrag:Z,onNodeDragStart:Q,onSelectionDragStart:J,unselectNodesAndEdges:$}=n();f=!0,(!Z||!C)&&!D&&S&&!N[T(953)](S)?.[T(1660)]&&$(),C&&Z&&S&&e?.(S);const xe=tx(q[T(342)],{transform:A,snapGrid:P,snapToGrid:I,containerBounds:d});if(r=xe,a=V2(N,B,xe,S),a[T(413)]>0&&(t||Q||!S&&J)){const[ae,le]=yo({nodeId:S,dragItems:a,nodeLookup:N});t?.(q[T(342)],a,ae,le),Q?.(q[T(342)],ae,le),!S&&J?.(q[T(342)],le)}}const X=ci().clickDistance(U).on("start",q=>{const T=_0x2299,{domNode:N,nodeDragThreshold:D,transform:B,snapGrid:A,snapToGrid:P}=n();d=N?.getBoundingClientRect()||null,g=!1,m=!1,h=q[T(342)],D===0&&_(q),r=tx(q[T(342)],{transform:B,snapGrid:A,snapToGrid:P,containerBounds:d}),s=hn(q[T(342)],d)}).on("drag",q=>{const T=_0x2299,{autoPanOnNodeDrag:N,transform:D,snapGrid:B,snapToGrid:A,nodeDragThreshold:P,nodeLookup:I}=n(),Z=tx(q.sourceEvent,{transform:D,snapGrid:B,snapToGrid:A,containerBounds:d});if(h=q[T(342)],(q.sourceEvent[T(1246)]==="touchmove"&&q[T(342)][T(1584)][T(402)]>1||S&&!I[T(888)](S))&&(g=!0),!g){if(!u&&N&&f&&(u=!0,O()),!f){const Q=hn(q.sourceEvent,d),J=Q.x-s.x,$=Q.y-s.y;Math[T(1136)](J*J+$*$)>P&&_(q)}(r.x!==Z[T(1153)]||r.y!==Z[T(1997)])&&a&&f&&(s=hn(q[T(342)],d),H(Z))}}).on("end",q=>{const T=_0x2299;if(!(!f||g)&&(u=!1,f=!1,cancelAnimationFrame(i),a[T(413)]>0)){const{nodeLookup:N,updateNodePositions:D,onNodeDragStop:B,onSelectionDragStop:A}=n();if(m&&(D(a,!1),m=!1),x||B||!S&&A){const[P,I]=yo({nodeId:S,dragItems:a,nodeLookup:N,dragging:!1});x?.(q[T(342)],a,P,I),B?.(q[T(342)],P,I),!S&&A?.(q[T(342)],I)}}})[G(1211)](q=>{const T=G,N=q.target;return!q[T(1372)]&&(!y||!pa(N,"."+y,w))&&(!v||pa(N,v,w))});b[G(667)](X)}function M(){const y=_0x2299;b?.on(y(504),null)}return{update:p,destroy:M}}function W2(e,n,t){const o=c,x=[],r={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const i of n[o(1975)]())Qt(r,mt(i))>0&&x[o(557)](i);return x}const X2=250;function Z2(e,n,t,o){const x=c;let r=[],i=1/0;const a=W2(e,t,n+X2);for(const u of a){const s=[...u.internals[x(1888)]?.[x(1717)]??[],...u[x(1570)].handleBounds?.[x(345)]??[]];for(const d of s){if(o[x(685)]===d.nodeId&&o[x(1246)]===d[x(1246)]&&o.id===d.id)continue;const{x:f,y:b}=$n(u,d,d[x(1388)],!0),g=Math[x(1136)](Math[x(1712)](f-e.x,2)+Math[x(1712)](b-e.y,2));g>n||(g<i?(r=[{...d,x:f,y:b}],i=g):g===i&&r[x(557)]({...d,x:f,y:b}))}}if(!r.length)return null;if(r[x(402)]>1){const u=o[x(1246)]===x(1717)?"target":x(1717);return r.find(s=>s.type===u)??r[0]}return r[0]}function za(e,n,t,o,x,r=!1){const i=c,a=o.get(e);if(!a)return null;const u=x==="strict"?a[i(1570)][i(1888)]?.[n]:[...a[i(1570)].handleBounds?.[i(1717)]??[],...a[i(1570)][i(1888)]?.[i(345)]??[]],s=(t?u?.find(d=>d.id===t):u?.[0])??null;return s&&r?{...s,...$n(a,s,s[i(1388)],!0)}:s}function Ca(e,n){const t=c;return e||(n?.classList[t(2095)](t(345))?t(345):n?.[t(1036)][t(2095)]("source")?t(1717):null)}function K2(e,n){let t=null;return n?t=!0:e&&!n&&(t=!1),t}const Ma=()=>!0;function R2(e,{connectionMode:n,connectionRadius:t,handleId:o,nodeId:x,edgeUpdaterType:r,isTarget:i,domNode:a,nodeLookup:u,lib:s,autoPanOnConnect:d,flowId:f,panBy:b,cancelConnection:g,onConnectStart:m,onConnect:h,onConnectEnd:p,isValidConnection:M=Ma,onReconnectEnd:y,updateConnection:v,getTransform:w,getFromHandle:C,autoPanSpeed:S,dragThreshold:U=1,handleDomNode:G}){const H=c,O=na(e[H(345)]);let _=0,X;const{x:q,y:T}=hn(e),N=Ca(r,G),D=a?.[H(1749)]();let B=!1;if(!D||!N)return;const A=za(x,N,o,u,n);if(!A)return;let P=hn(e,D),I=!1,Z=null,Q=!1,J=null;function $(){if(!d||!D)return;const[R,k]=Ri(P,D,S);b({x:R,y:k}),_=requestAnimationFrame($)}const xe={...A,nodeId:x,type:N,position:A[H(1388)]},ae=u.get(x);let fe={inProgress:!0,isValid:null,from:$n(ae,xe,he[H(1437)],!0),fromHandle:xe,fromPosition:xe[H(1388)],fromNode:ae,to:P,toHandle:null,toPosition:Ti[xe.position],toNode:null,pointer:P};function re(){B=!0,v(fe),m?.(e,{nodeId:x,handleId:o,handleType:N})}U===0&&re();function K(R){const k=H;if(!B){const{x:ce,y:be}=hn(R),we=ce-q,Ne=be-T;if(!(we*we+Ne*Ne>U*U))return;re()}if(!C()||!xe){ie(R);return}const j=w();P=hn(R,D),X=Z2(ex(P,j,!1,[1,1]),t,u,xe),!I&&($(),I=!0);const W=Ba(R,{handle:X,connectionMode:n,fromNodeId:x,fromHandleId:o,fromType:k(i?345:1717),isValidConnection:M,doc:O,lib:s,flowId:f,nodeLookup:u});J=W.handleDomNode,Z=W[k(938)],Q=K2(!!X,W[k(356)]);const E=u[k(953)](x),oe=E?$n(E,xe,he.Left,!0):fe.from,se={...fe,from:oe,isValid:Q,to:W[k(1585)]&&Q?Rx({x:W[k(1585)].x,y:W[k(1585)].y},j):P,toHandle:W[k(1585)],toPosition:Q&&W[k(1585)]?W[k(1585)][k(1388)]:Ti[xe[k(1388)]],toNode:W.toHandle?u[k(953)](W[k(1585)][k(685)]):null,pointer:P};v(se),fe=se}function ie(R){const k=H;if(!("touches"in R&&R.touches[k(402)]>0)){if(B){(X||J)&&Z&&Q&&h?.(Z);const{inProgress:j,...W}=fe,E={...W,toPosition:fe[k(1585)]?fe[k(2142)]:null};p?.(R,E),r&&y?.(R,E)}g(),cancelAnimationFrame(_),I=!1,Q=!1,Z=null,J=null,O[k(1561)](k(1797),K),O[k(1561)](k(1568),ie),O.removeEventListener(k(675),K),O.removeEventListener(k(1169),ie)}}O[H(1918)](H(1797),K),O[H(1918)](H(1568),ie),O[H(1918)]("touchmove",K),O[H(1918)](H(1169),ie)}function Ba(e,{handle:n,connectionMode:t,fromNodeId:o,fromHandleId:x,fromType:r,doc:i,lib:a,flowId:u,isValidConnection:s=Ma,nodeLookup:d}){const f=c,b=r===f(345),g=n?i.querySelector("."+a+'-flow__handle[data-id="'+u+"-"+n?.[f(685)]+"-"+n?.id+"-"+n?.type+'"]'):null,{x:m,y:h}=hn(e),p=i[f(1683)](m,h),M=p?.classList[f(2095)](a+f(1130))?p:g,y={handleDomNode:M,isValid:!1,connection:null,toHandle:null};if(M){const v=Ca(void 0,M),w=M.getAttribute("data-nodeid"),C=M[f(2149)](f(957)),S=M[f(1036)][f(2095)](f(2046)),U=M[f(1036)][f(2095)](f(1147));if(!w||!v)return y;const G={source:b?w:o,sourceHandle:b?C:x,target:b?o:w,targetHandle:b?x:C};y[f(938)]=G;const H=S&&U,O=H&&(t===gt[f(1576)]?b&&v===f(1717)||!b&&v===f(345):w!==o||C!==x);y.isValid=O&&s(G),y[f(1585)]=za(w,v,C,d,t,!0)}return y}const mo={onPointerDown:R2,isValid:Ba};function _2({domNode:e,panZoom:n,getTransform:t,getViewScale:o}){const x=$e(e);function r({translateExtent:a,width:u,height:s,zoomStep:d=1,pannable:f=!0,zoomable:b=!0,inversePan:g=!1}){const m=_0x2299,h=w=>{const C=_0x2299;if(w.sourceEvent.type!==C(1218)||!n)return;const S=t(),U=w[C(342)][C(398)]&&nx()?10:1,G=-w[C(342)][C(2019)]*(w[C(342)][C(918)]===1?.05:w.sourceEvent[C(918)]?1:.002)*d,H=S[2]*Math[C(1712)](2,G*U);n.scaleTo(H)};let p=[0,0];const M=w=>{const C=_0x2299;(w[C(342)][C(1246)]===C(1418)||w[C(342)][C(1246)]===C(359))&&(p=[w[C(342)][C(1239)]??w.sourceEvent[C(1584)][0].clientX,w[C(342)].clientY??w[C(342)][C(1584)][0].clientY])},y=w=>{const C=_0x2299,S=t();if(w[C(342)][C(1246)]!==C(1797)&&w[C(342)][C(1246)]!==C(675)||!n)return;const U=[w[C(342)][C(1239)]??w[C(342)][C(1584)][0][C(1239)],w[C(342)][C(970)]??w[C(342)][C(1584)][0][C(970)]],G=[U[0]-p[0],U[1]-p[1]];p=U;const H=o()*Math[C(1108)](S[2],Math.log(S[2]))*(g?-1:1),O={x:S[0]-G[0]*H,y:S[1]-G[1]*H},_=[[0,0],[u,s]];n[C(2148)]({x:O.x,y:O.y,zoom:S[2]},_,a)},v=Oi().on(m(1255),M).on(m(368),f?y:null).on(m(981),b?h:null);x[m(667)](v,{})}function i(){const a=_0x2299;x.on(a(368),null)}return{update:r,destroy:i,pointer:ln}}const Jx=e=>({x:e.x,y:e.y,zoom:e.k}),wo=({x:e,y:n,zoom:t})=>qx[c(765)](e,n)[c(1126)](t),pt=(e,n)=>e.target[c(2108)]("."+n),Da=(e,n)=>n===2&&Array[c(2018)](e)&&e[c(633)](2),J2=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,vo=(e,n=0,t=J2,o=()=>{})=>{const x=c,r=typeof n===x(1288)&&n>0;return!r&&o(),r?e[x(1278)]()[x(833)](n)[x(949)](t).on(x(1830),o):e},La=e=>{const n=c,t=e[n(398)]&&nx()?10:1;return-e[n(2019)]*(e.deltaMode===1?.05:e[n(918)]?1:.002)*t};function F2({zoomPanValues:e,noWheelClassName:n,d3Selection:t,d3Zoom:o,panOnScrollMode:x,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:a,onPanZoom:u,onPanZoomEnd:s}){return d=>{const f=_0x2299;if(pt(d,n))return d.ctrlKey&&d[f(1224)](),!1;d.preventDefault(),d[f(589)]();const b=t[f(860)](f(838)).k||1;if(d[f(398)]&&i){const M=ln(d),y=La(d),v=b*Math.pow(2,y);o[f(1404)](t,v,M,d);return}const g=d[f(918)]===1?20:1;let m=x===Fn[f(457)]?0:d[f(2114)]*g,h=x===Fn.Horizontal?0:d[f(2019)]*g;!nx()&&d[f(2152)]&&x!==Fn[f(457)]&&(m=d.deltaY*g,h=0),o[f(1425)](t,-(m/b)*r,-(h/b)*r,{internal:!0});const p=Jx(t.property(f(838)));clearTimeout(e[f(1590)]),e[f(1113)]?(u?.(d,p),e[f(1590)]=setTimeout(()=>{const M=f;s?.(d,p),e[M(1113)]=!1},150)):(e.isPanScrolling=!0,a?.(d,p))}}function Q2({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:t}){return function(o,x){const r=_0x2299,i=o[r(1246)]===r(1218),a=!n&&i&&!o[r(398)],u=pt(o,e);if(o[r(398)]&&i&&u&&o.preventDefault(),a||u)return null;o.preventDefault(),t.call(this,o,x)}}function $2({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:t}){return o=>{const x=_0x2299;if(o.sourceEvent?.internal)return;const r=Jx(o[x(1137)]);e.mouseButton=o[x(342)]?.[x(1372)]||0,e.isZoomingOrPanning=!0,e[x(540)]=r,o[x(342)]?.type===x(1418)&&n(!0),t&&t?.(o.sourceEvent,r)}}function e5({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:t,onTransformChange:o,onPanZoom:x}){return r=>{const i=_0x2299;e[i(1220)]=!!(t&&Da(n,e.mouseButton??0)),!r[i(342)]?.[i(2004)]&&o([r.transform.x,r[i(1137)].y,r[i(1137)].k]),x&&!r.sourceEvent?.[i(987)]&&x?.(r[i(342)],Jx(r[i(1137)]))}}function n5({zoomPanValues:e,panOnDrag:n,panOnScroll:t,onDraggingChange:o,onPanZoomEnd:x,onPaneContextMenu:r}){return i=>{const a=_0x2299;if(!i[a(342)]?.[a(987)]&&(e[a(493)]=!1,r&&Da(n,e[a(1504)]??0)&&!e[a(1220)]&&i.sourceEvent&&r(i.sourceEvent),e[a(1220)]=!1,o(!1),x)){const u=Jx(i[a(1137)]);e.prevViewport=u,clearTimeout(e.timerId),e[a(1020)]=setTimeout(()=>{x?.(i.sourceEvent,u)},t?150:0)}}}function t5({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:t,panOnDrag:o,panOnScroll:x,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:a,noPanClassName:u,lib:s,connectionInProgress:d}){return f=>{const b=_0x2299,g=e||n,m=t&&f[b(398)],h=f[b(1246)]===b(1218);if(f[b(1372)]===1&&f[b(1246)]===b(1418)&&(pt(f,s+b(1868))||pt(f,s+b(1556))))return!0;if(!o&&!g&&!x&&!r&&!t||i||d&&!h||pt(f,a)&&h||pt(f,u)&&(!h||x&&h&&!e)||!t&&f[b(398)]&&h)return!1;if(!t&&f.type===b(359)&&f[b(1584)]?.[b(402)]>1)return f.preventDefault(),!1;if(!g&&!x&&!m&&h||!o&&(f[b(1246)]===b(1418)||f.type===b(359))||Array[b(2018)](o)&&!o[b(633)](f[b(1372)])&&f.type==="mousedown")return!1;const p=Array[b(2018)](o)&&o[b(633)](f[b(1372)])||!f[b(1372)]||f[b(1372)]<=1;return(!f[b(398)]||h)&&p}}function x5({domNode:e,minZoom:n,maxZoom:t,translateExtent:o,viewport:x,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:a,onDraggingChange:u}){const s=c,d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e[s(1749)](),b=Oi()[s(1227)]([n,t]).translateExtent(o),g=$e(e)[s(667)](b);v({x:x.x,y:x.y,zoom:yt(x[s(368)],n,t)},[[0,0],[f[s(1915)],f.height]],o);const m=g.on(s(1070)),h=g.on(s(843));b[s(1460)](La);function p(X,q){const T=s;return g?new Promise(N=>{const D=_0x2299;b?.interpolate(q?.[D(543)]===D(1801)?Tt:Ax).transform(vo(g,q?.[D(833)],q?.[D(949)],()=>N(!0)),X)}):Promise[T(1762)](!1)}function M({noWheelClassName:X,noPanClassName:q,onPaneContextMenu:T,userSelectionActive:N,panOnScroll:D,panOnDrag:B,panOnScrollMode:A,panOnScrollSpeed:P,preventScrolling:I,zoomOnPinch:Z,zoomOnScroll:Q,zoomOnDoubleClick:J,zoomActivationKeyPressed:$,lib:xe,onTransformChange:ae,connectionInProgress:le,paneClickDistance:fe,selectionOnDrag:re}){const K=s;N&&!d.isZoomingOrPanning&&y();const ie=D&&!$&&!N;b[K(2039)](re?1/0:!fn(fe)||fe<0?0:fe);const R=ie?F2({zoomPanValues:d,noWheelClassName:X,d3Selection:g,d3Zoom:b,panOnScrollMode:A,panOnScrollSpeed:P,zoomOnPinch:Z,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:a}):Q2({noWheelClassName:X,preventScrolling:I,d3ZoomHandler:m});if(g.on(K(1070),R,{passive:!1}),!N){const j=$2({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:i});b.on(K(1255),j);const W=e5({zoomPanValues:d,panOnDrag:B,onPaneContextMenu:!!T,onPanZoom:r,onTransformChange:ae});b.on(K(368),W);const E=n5({zoomPanValues:d,panOnDrag:B,panOnScroll:D,onPaneContextMenu:T,onPanZoomEnd:a,onDraggingChange:u});b.on(K(1830),E)}const k=t5({zoomActivationKeyPressed:$,panOnDrag:B,zoomOnScroll:Q,panOnScroll:D,zoomOnDoubleClick:J,zoomOnPinch:Z,userSelectionActive:N,noPanClassName:q,noWheelClassName:X,lib:xe,connectionInProgress:le});b[K(1211)](k),J?g.on(K(843),h):g.on(K(843),null)}function y(){const X=s;b.on(X(368),null)}async function v(X,q,T){const N=s,D=wo(X),B=b?.[N(704)]()(D,q,T);return B&&await p(B),new Promise(A=>A(B))}async function w(X,q){const T=wo(X);return await p(T,q),new Promise(N=>N(T))}function C(X){const q=s;if(g){const T=wo(X),N=g[q(860)](q(838));(N.k!==X[q(368)]||N.x!==X.x||N.y!==X.y)&&b?.[q(1137)](g,T,null,{sync:!0})}}function S(){const X=s,q=g?Ei(g[X(1855)]()):{x:0,y:0,k:1};return{x:q.x,y:q.y,zoom:q.k}}function U(X,q){const T=s;return g?new Promise(N=>{const D=_0x2299;b?.[D(543)](q?.[D(543)]===D(1801)?Tt:Ax)[D(1404)](vo(g,q?.[D(833)],q?.[D(949)],()=>N(!0)),X)}):Promise[T(1762)](!1)}function G(X,q){const T=s;return g?new Promise(N=>{const D=_0x2299;b?.[D(543)](q?.[D(543)]==="linear"?Tt:Ax).scaleBy(vo(g,q?.[D(833)],q?.[D(949)],()=>N(!0)),X)}):Promise[T(1762)](!1)}function H(X){b?.[s(1227)](X)}function O(X){b?.[s(1965)](X)}function _(X){const q=s,T=!fn(X)||X<0?0:X;b?.[q(2039)](T)}return{update:M,destroy:y,setViewport:w,setViewportConstrained:v,getViewport:S,scaleTo:U,scaleBy:G,setScaleExtent:H,setTranslateExtent:O,syncViewport:C,setClickDistance:_}}var zt;(function(e){const n=c;e[n(1885)]=n(1774),e[n(1266)]="handle"})(zt||(zt={}));function o5({width:e,prevWidth:n,height:t,prevHeight:o,affectsX:x,affectsY:r}){const i=e-n,a=t-o,u=[i>0?1:i<0?-1:0,a>0?1:a<0?-1:0];return i&&x&&(u[0]=u[0]*-1),a&&r&&(u[1]=u[1]*-1),u}function Na(e){const n=c,t=e[n(633)](n(1902))||e[n(633)](n(1484)),o=e[n(633)](n(1707))||e.includes(n(2026)),x=e.includes(n(1484)),r=e[n(633)](n(2026));return{isHorizontal:t,isVertical:o,affectsX:x,affectsY:r}}function En(e,n){return Math[c(1108)](0,n-e)}function Un(e,n){return Math[c(1108)](0,e-n)}function Fx(e,n,t){return Math[c(1108)](0,n-e,e-t)}function Sa(e,n){return e?!n:n}function r5(e,n,t,o,x,r,i,a){const u=c;let{affectsX:s,affectsY:d}=n;const{isHorizontal:f,isVertical:b}=n,g=f&&b,{xSnapped:m,ySnapped:h}=t,{minWidth:p,maxWidth:M,minHeight:y,maxHeight:v}=o,{x:w,y:C,width:S,height:U,aspectRatio:G}=e;let H=Math[u(1754)](f?m-e[u(1461)]:0),O=Math[u(1754)](b?h-e[u(974)]:0);const _=S+(s?-H:H),X=U+(d?-O:O),q=-r[0]*S,T=-r[1]*U;let N=Fx(_,p,M),D=Fx(X,y,v);if(i){let P=0,I=0;s&&H<0?P=En(w+H+q,i[0][0]):!s&&H>0&&(P=Un(w+_+q,i[1][0])),d&&O<0?I=En(C+O+T,i[0][1]):!d&&O>0&&(I=Un(C+X+T,i[1][1])),N=Math[u(1108)](N,P),D=Math[u(1108)](D,I)}if(a){let P=0,I=0;s&&H>0?P=Un(w+H,a[0][0]):!s&&H<0&&(P=En(w+_,a[1][0])),d&&O>0?I=Un(C+O,a[0][1]):!d&&O<0&&(I=En(C+X,a[1][1])),N=Math[u(1108)](N,P),D=Math.max(D,I)}if(x){if(f){const P=Fx(_/G,y,v)*G;if(N=Math[u(1108)](N,P),i){let I=0;!s&&!d||s&&!d&&g?I=Un(C+T+_/G,i[1][1])*G:I=En(C+T+(s?H:-H)/G,i[0][1])*G,N=Math[u(1108)](N,I)}if(a){let I=0;!s&&!d||s&&!d&&g?I=En(C+_/G,a[1][1])*G:I=Un(C+(s?H:-H)/G,a[0][1])*G,N=Math[u(1108)](N,I)}}if(b){const P=Fx(X*G,p,M)/G;if(D=Math[u(1108)](D,P),i){let I=0;!s&&!d||d&&!s&&g?I=Un(w+X*G+q,i[1][0])/G:I=En(w+(d?O:-O)*G+q,i[0][0])/G,D=Math[u(1108)](D,I)}if(a){let I=0;!s&&!d||d&&!s&&g?I=En(w+X*G,a[1][0])/G:I=Un(w+(d?O:-O)*G,a[0][0])/G,D=Math[u(1108)](D,I)}}}O=O+(O<0?D:-D),H=H+(H<0?N:-N),x&&(g?_>X*G?O=(Sa(s,d)?-H:H)/G:H=(Sa(s,d)?-O:O)*G:f?(O=H/G,d=s):(H=O*G,s=d));const B=s?w+H:w,A=d?C+O:C;return{width:S+(s?-H:H),height:U+(d?-O:O),x:r[0]*H*(s?-1:1)+B,y:r[1]*O*(d?-1:1)+A}}const ka={width:0,height:0,x:0,y:0},i5={...ka,pointerX:0,pointerY:0,aspectRatio:1};function a5(e){const n=c;return[[0,0],[e.measured[n(1915)],e.measured.height]]}function c5(e,n,t){const o=c,x=n[o(1388)].x+e[o(1388)].x,r=n[o(1388)].y+e[o(1388)].y,i=e[o(1173)][o(1915)]??0,a=e.measured[o(2035)]??0,u=t[0]*i,s=t[1]*a;return[[x-u,r-s],[x+i-u,r+a-s]]}function s5({domNode:e,nodeId:n,getStoreItems:t,onChange:o,onEnd:x}){const r=c,i=$e(e);let a={controlDirection:Na(r(1251)),boundaries:{minWidth:0,minHeight:0,maxWidth:Number[r(1663)],maxHeight:Number[r(1663)]},resizeDirection:void 0,keepAspectRatio:!1};function u({controlPosition:d,boundaries:f,keepAspectRatio:b,resizeDirection:g,onResizeStart:m,onResize:h,onResizeEnd:p,shouldResize:M}){const y=r;let v={...ka},w={...i5};a={boundaries:f,resizeDirection:g,keepAspectRatio:b,controlDirection:Na(d)};let C,S=null,U=[],G,H,O,_=!1;const X=ci().on(y(1255),q=>{const T=y,{nodeLookup:N,transform:D,snapGrid:B,snapToGrid:A,nodeOrigin:P,paneDomNode:I}=t();if(C=N.get(n),!C)return;S=I?.[T(1749)]()??null;const{xSnapped:Z,ySnapped:Q}=tx(q[T(342)],{transform:D,snapGrid:B,snapToGrid:A,containerBounds:S});v={width:C.measured[T(1915)]??0,height:C[T(1173)][T(2035)]??0,x:C.position.x??0,y:C[T(1388)].y??0},w={...v,pointerX:Z,pointerY:Q,aspectRatio:v[T(1915)]/v[T(2035)]},G=void 0,C.parentId&&(C[T(529)]===T(767)||C.expandParent)&&(G=N[T(953)](C[T(1326)]),H=G&&C[T(529)]==="parent"?a5(G):void 0),U=[],O=void 0;for(const[J,$]of N)if($.parentId===n&&(U.push({id:J,position:{...$.position},extent:$[T(529)]}),$[T(529)]===T(767)||$[T(1396)])){const xe=c5($,C,$[T(1411)]??P);O?O=[[Math.min(xe[0][0],O[0][0]),Math[T(782)](xe[0][1],O[0][1])],[Math[T(1108)](xe[1][0],O[1][0]),Math[T(1108)](xe[1][1],O[1][1])]]:O=xe}m?.(q,{...v})}).on(y(731),q=>{const T=y,{transform:N,snapGrid:D,snapToGrid:B,nodeOrigin:A}=t(),P=tx(q.sourceEvent,{transform:N,snapGrid:D,snapToGrid:B,containerBounds:S}),I=[];if(!C)return;const{x:Z,y:Q,width:J,height:$}=v,xe={},ae=C[T(1411)]??A,{width:le,height:fe,x:re,y:K}=r5(w,a[T(1035)],P,a[T(1680)],a[T(1903)],ae,H,O),ie=le!==J,R=fe!==$,k=re!==Z&&ie,j=K!==Q&&R;if(!k&&!j&&!ie&&!R)return;if((k||j||ae[0]===1||ae[1]===1)&&(xe.x=k?re:v.x,xe.y=j?K:v.y,v.x=xe.x,v.y=xe.y,U[T(402)]>0)){const se=re-Z,ce=K-Q;for(const be of U)be[T(1388)]={x:be[T(1388)].x-se+ae[0]*(le-J),y:be[T(1388)].y-ce+ae[1]*(fe-$)},I[T(557)](be)}if((ie||R)&&(xe[T(1915)]=ie&&(!a[T(1049)]||a.resizeDirection===T(964))?le:v[T(1915)],xe.height=R&&(!a[T(1049)]||a[T(1049)]===T(1932))?fe:v[T(2035)],v[T(1915)]=xe[T(1915)],v.height=xe[T(2035)]),G&&C[T(1396)]){const se=ae[0]*(xe[T(1915)]??0);xe.x&&xe.x<se&&(v.x=se,w.x=w.x-(xe.x-se));const ce=ae[1]*(xe[T(2035)]??0);xe.y&&xe.y<ce&&(v.y=ce,w.y=w.y-(xe.y-ce))}const W=o5({width:v.width,prevWidth:J,height:v[T(2035)],prevHeight:$,affectsX:a[T(1035)].affectsX,affectsY:a[T(1035)].affectsY}),E={...v,direction:W};M?.(q,E)!==!1&&(_=!0,h?.(q,E),o(xe,I))}).on(y(1830),q=>{_&&(p?.(q,{...v}),x?.({...v}),_=!1)});i.call(X)}function s(){const d=r;i.on(d(504),null)}return{update:u,destroy:s}}var Qx={exports:{}},po={},$x={exports:{}},zo={},Pa;function l5(){const e=c;if(Pa)return zo;Pa=1;var n=L;function t(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}var o=e(404)===typeof Object.is?Object.is:t,x=n.useState,r=n[e(856)],i=n[e(954)],a=n[e(503)];function u(b,g){const m=e;var h=g(),p=x({inst:{value:h,getSnapshot:g}}),M=p[0][m(769)],y=p[1];return i(function(){const v=m;M[v(1462)]=h,M.getSnapshot=g,s(M)&&y({inst:M})},[b,h,g]),r(function(){return s(M)&&y({inst:M}),b(function(){s(M)&&y({inst:M})})},[b]),a(h),h}function s(b){const g=e;var m=b.getSnapshot;b=b[g(1462)];try{var h=m();return!o(b,h)}catch{return!0}}function d(b,g){return g()}var f=typeof window>"u"||e(1906)===typeof window[e(2105)]||e(1906)===typeof window[e(2105)][e(1473)]?d:u;return zo[e(941)]=n.useSyncExternalStore!==void 0?n[e(941)]:f,zo}var Co={},Ia;function d5(){return Ia||(Ia=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x2299;function n(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}function t(m,h){const p=_0x2299;f||r[p(906)]===void 0||(f=!0,console[p(598)](p(1672)));var M=h();if(!b){var y=h();i(M,y)||(console[p(598)]("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}y=a({inst:{value:M,getSnapshot:h}});var v=y[0][p(769)],w=y[1];return s(function(){const C=p;v[C(1462)]=M,v[C(2133)]=h,o(v)&&w({inst:v})},[m,M,h]),u(function(){return o(v)&&w({inst:v}),m(function(){o(v)&&w({inst:v})})},[m]),d(M),M}function o(m){const h=_0x2299;var p=m.getSnapshot;m=m[h(1462)];try{var M=p();return!i(m,M)}catch{return!0}}function x(m,h){return h()}e(1906)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(404)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(1175)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(1175)](Error());var r=L,i=e(404)===typeof Object.is?Object.is:n,a=r.useState,u=r.useEffect,s=r.useLayoutEffect,d=r[e(503)],f=!1,b=!1,g=e(1906)===typeof window||e(1906)===typeof window[e(2105)]||e(1906)===typeof window[e(2105)].createElement?x:t;Co[e(941)]=r.useSyncExternalStore!==void 0?r[e(941)]:g,e(1906)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(404)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(2139)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(2139)](Error())})()),Co}var Aa;function ja(){const e=c;return Aa||(Aa=1,process.env.NODE_ENV===e(677)?$x[e(1954)]=l5():$x.exports=d5()),$x[e(1954)]}var Ya;function u5(){const e=c;if(Ya)return po;Ya=1;var n=L,t=ja();function o(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var x=typeof Object.is=="function"?Object.is:o,r=t[e(941)],i=n.useRef,a=n[e(856)],u=n[e(1345)],s=n.useDebugValue;return po[e(1883)]=function(d,f,b,g,m){const h=e;var p=i(null);if(p[h(1123)]===null){var M={hasValue:!1,value:null};p.current=M}else M=p.current;p=u(function(){function v(G){const H=_0x2299;if(!w){if(w=!0,C=G,G=g(G),m!==void 0&&M[H(1290)]){var O=M.value;if(m(O,G))return S=O}return S=G}if(O=S,x(C,G))return O;var _=g(G);return m!==void 0&&m(O,_)?(C=G,O):(C=G,S=_)}var w=!1,C,S,U=b===void 0?null:b;return[function(){return v(f())},U===null?void 0:function(){return v(U())}]},[f,b,g,m]);var y=r(d,p[0],p[1]);return a(function(){const v=h;M[v(1290)]=!0,M.value=y},[y]),s(y),y},po}var Mo={},Ea;function f5(){const e=c;return Ea||(Ea=1,e(677)!==process.env.NODE_ENV&&(function(){const n=e;function t(f,b){return f===b&&(f!==0||1/f===1/b)||f!==f&&b!==b}n(1906)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&n(404)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(1175)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(1175)](Error());var o=L,x=ja(),r=typeof Object.is=="function"?Object.is:t,i=x[n(941)],a=o[n(697)],u=o.useEffect,s=o[n(1345)],d=o[n(503)];Mo[n(1883)]=function(f,b,g,m,h){const p=n;var M=a(null);if(M.current===null){var y={hasValue:!1,value:null};M.current=y}else y=M[p(1123)];M=s(function(){function w(H){const O=_0x2299;if(!C){if(C=!0,S=H,H=m(H),h!==void 0&&y[O(1290)]){var _=y[O(1462)];if(h(_,H))return U=_}return U=H}if(_=U,r(S,H))return _;var X=m(H);return h!==void 0&&h(_,X)?(S=H,_):(S=H,U=X)}var C=!1,S,U,G=g===void 0?null:g;return[function(){return w(b())},G===null?void 0:function(){return w(G())}]},[b,g,m,h]);var v=i(f,M[0],M[1]);return u(function(){const w=p;y[w(1290)]=!0,y[w(1462)]=v},[v]),d(v),v},n(1906)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&n(404)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(2139)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(2139)](Error())})()),Mo}var Ua;function h5(){const e=c;return Ua||(Ua=1,process.env.NODE_ENV===e(677)?Qx.exports=u5():Qx[e(1954)]=f5()),Qx[e(1954)]}var b5=h5();const g5=Nt(b5),y5={},Oa=e=>{let n;const t=new Set,o=(d,f)=>{const b=_0x2299,g=typeof d=="function"?d(n):d;if(!Object.is(g,n)){const m=n;n=f??(typeof g!==b(2151)||g===null)?g:Object[b(937)]({},n,g),t.forEach(h=>h(n,m))}},x=()=>n,r=()=>s,i=d=>{const f=_0x2299;return t[f(1531)](d),()=>t[f(1953)](d)},a=()=>{const d=_0x2299;(y5?d(677):void 0)!==d(677)&&console[d(1794)](d(789)),t[d(1275)]()},u={setState:o,getState:x,getInitialState:r,subscribe:i,destroy:a},s=n=e(o,x,u);return u},m5=e=>e?Oa(e):Oa,{useDebugValue:w5}=L,{useSyncExternalStoreWithSelector:v5}=g5,p5=e=>e;function Ga(e,n=p5,t){const o=c,x=v5(e[o(2e3)],e[o(1838)],e[o(1212)]||e[o(1464)],n,t);return w5(x),x}const Ha=(e,n)=>{const t=c,o=m5(e),x=(r,i=n)=>Ga(o,r,i);return Object[t(937)](x,o),x},z5=(e,n)=>e?Ha(e,n):Ha;function je(e,n){const t=c;if(Object.is(e,n))return!0;if(typeof e!==t(2151)||e===null||typeof n!==t(2151)||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e[t(413)]!==n[t(413)])return!1;for(const[x,r]of e)if(!Object.is(r,n.get(x)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e[t(413)]!==n[t(413)])return!1;for(const x of e)if(!n[t(888)](x))return!1;return!0}const o=Object[t(771)](e);if(o[t(402)]!==Object.keys(n)[t(402)])return!1;for(const x of o)if(!Object.prototype[t(1607)].call(n,x)||!Object.is(e[x],n[x]))return!1;return!0}const e0=L[c(636)](null),C5=e0[c(992)],Va=en[c(1850)]();function Le(e,n){const t=c,o=L[t(2135)](e0);if(o===null)throw new Error(Va);return Ga(o,e,n)}function Ye(){const e=c,n=L.useContext(e0);if(n===null)throw new Error(Va);return L[e(1345)](()=>({getState:n[e(1838)],setState:n[e(1834)],subscribe:n[e(2e3)]}),[n])}const Ta={display:c(1795)},M5={position:c(1523),width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:c(1073),clipPath:c(642)},qa="react-flow__node-desc",Wa=c(1118),B5=c(1021),D5=e=>e[c(1653)],L5=e=>e[c(470)];function N5({rfId:e}){const n=c,t=Le(D5);return l[n(454)](n(1415),{id:B5+"-"+e,"aria-live":n(858),"aria-atomic":n(1403),style:M5,children:t})}function S5({rfId:e,disableKeyboardA11y:n}){const t=c,o=Le(L5);return l[t(2088)](l[t(562)],{children:[l[t(454)](t(1415),{id:qa+"-"+e,style:Ta,children:n?o[t(848)]:o[t(396)]}),l.jsx(t(1415),{id:Wa+"-"+e,style:Ta,children:o[t(2131)]}),!n&&l[t(454)](N5,{rfId:e})]})}const n0=L[c(1616)](({position:e=c(510),children:n,className:t,style:o,...x},r)=>{const i=c,a=(""+e)[i(1939)]("-");return l[i(454)](i(1415),{className:Oe([i(1264),t,...a]),style:o,ref:r,...x,children:n})});n0.displayName="Panel";function k5({proOptions:e,position:n=c(1251)}){const t=c;return e?.[t(1082)]?null:l[t(454)](n0,{position:n,className:t(775),"data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:l[t(454)]("a",{href:"https://reactflow.dev",target:"_blank",rel:t(1187),"aria-label":t(948),children:t(2040)})})}const P5=e=>{const n=c,t=[],o=[];for(const[,x]of e[n(649)])x.selected&&t[n(557)](x[n(1570)][n(602)]);for(const[,x]of e.edgeLookup)x[n(1660)]&&o[n(557)](x);return{selectedNodes:t,selectedEdges:o}},t0=e=>e.id;function I5(e,n){const t=c;return je(e.selectedNodes.map(t0),n[t(468)][t(1849)](t0))&&je(e[t(1819)][t(1849)](t0),n[t(1819)][t(1849)](t0))}function A5({onSelectionChange:e}){const n=c,t=Ye(),{selectedNodes:o,selectedEdges:x}=Le(P5,I5);return L[n(856)](()=>{const r=n,i={nodes:o,edges:x};e?.(i),t[r(1838)]()[r(672)][r(644)](a=>a(i))},[o,x,e]),null}const j5=e=>!!e.onSelectionChangeHandlers;function Y5({onSelectionChange:e}){const n=c,t=Le(j5);return e||t?l[n(454)](A5,{onSelectionChange:e}):null}const Bo=typeof window<"u"?L[c(954)]:L.useEffect,Xa=[0,0],E5={x:0,y:0,zoom:1},U5=[c(2110),c(943),c(446),c(478),"onConnect",c(1107),c(1631),c(1745),c(1510),c(1780),c(1305),c(809),"nodesFocusable",c(1408),c(1284),"elevateNodesOnSelect",c(786),c(1294),c(1479),c(2121),"onNodesChange",c(377),c(572),"connectionMode","snapGrid",c(1679),c(1965),c(2025),c(1790),c(1858),c(1030),c(1067),c(1851),c(1873),"onNodeDrag","onNodeDragStart",c(491),c(507),"onSelectionDragStart",c(1693),c(1241),"onMove",c(1829),c(1422),c(551),c(485),c(664),c(720),"connectionRadius",c(1156),"selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete",c(1393),c(1353),c(470),c(1310)],Za=[...U5,c(1497)],O5=e=>({setNodes:e[c(744)],setEdges:e[c(686)],setMinZoom:e[c(979)],setMaxZoom:e.setMaxZoom,setTranslateExtent:e[c(488)],setNodeExtent:e[c(931)],reset:e[c(934)],setDefaultNodesAndEdges:e[c(1823)]}),Ka={translateExtent:Rt,nodeOrigin:Xa,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:c(506),rfId:"1"};function G5(e){const n=c,{setNodes:t,setEdges:o,setMinZoom:x,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:a,reset:u,setDefaultNodesAndEdges:s}=Le(O5,je),d=Ye();Bo(()=>{const b=_0x2299;return s(e[b(446)],e[b(478)]),()=>{f.current=Ka,u()}},[]);const f=L.useRef(Ka);return Bo(()=>{const b=_0x2299;for(const g of Za){const m=e[g],h=f[b(1123)][g];m!==h&&(typeof e[g]>"u"||(g===b(2110)?t(m):g===b(943)?o(m):g===b(1294)?x(m):g===b(1479)?r(m):g===b(1965)?i(m):g===b(2121)?a(m):g===b(470)?d[b(1834)]({ariaLabelConfig:z2(m)}):g===b(1858)?d.setState({fitViewQueued:m}):g===b(1030)?d.setState({fitViewOptions:m}):d.setState({[g]:m})))}f[b(1123)]=e},Za[n(1849)](b=>e[b])),null}function Ra(){const e=c;return typeof window===e(1906)||!window[e(755)]?null:window[e(755)]("(prefers-color-scheme: dark)")}function H5(e){const n=c,[t,o]=L.useState(e===n(1293)?null:e);return L[n(856)](()=>{const x=n;if(e!==x(1293)){o(e);return}const r=Ra(),i=()=>o(r?.matches?x(350):x(1973));return i(),r?.[x(1918)](x(372),i),()=>{const a=x;r?.[a(1561)](a(372),i)}},[e]),t!==null?t:Ra()?.[n(2141)]?"dark":n(1973)}const _a=typeof document!==c(1906)?document:null;function xx(e=null,n={target:_a,actInsideInputWithModifier:!0}){const t=c,[o,x]=L[t(1039)](!1),r=L.useRef(!1),i=L[t(697)](new Set([])),[a,u]=L[t(1345)](()=>{const s=t;if(e!==null){const d=Array[s(2018)](e)?e:[e],f=d[s(1211)](g=>typeof g===s(1863))[s(1849)](g=>g[s(490)]("+",`
|
|
1
|
+
(function(Me,l){const B=_0x4806,z=Me();for(;;)try{if(-parseInt(B(1951))/1*(parseInt(B(1640))/2)+-parseInt(B(1711))/3*(parseInt(B(1470))/4)+parseInt(B(2130))/5*(parseInt(B(605))/6)+-parseInt(B(385))/7+-parseInt(B(639))/8*(-parseInt(B(794))/9)+parseInt(B(1385))/10*(-parseInt(B(1664))/11)+parseInt(B(1466))/12===l)break;z.push(z.shift())}catch{z.push(z.shift())}})(_0x1b50,33e4),(function(Me,l){const B=_0x4806;typeof exports===B(2171)&&typeof module<"u"?l(exports,require(B(377)),require(B(1978)),require("antd"),require(B(1087)),require(B(1195)),require(B(1668)),require("nanoid"),require(B(531)),require(B(974))):typeof define===B(1154)&&define.amd?define([B(1749),B(377),B(1978),B(1703),B(1087),B(1195),B(1668),B(1161),B(531),"react-dom"],l):(Me=typeof globalThis<"u"?globalThis:Me||self,l(Me[B(1829)]={},Me[B(1863)],Me[B(1780)],Me[B(1703)],Me[B(453)],Me.zustand,Me[B(1668)],Me[B(1161)],Me[B(1818)]))})(this,function(Me,l,B,z,ae,zx,l0,be,d0){"use strict";function _0x1b50(){const Me=["zgfZAgvK","B25oB2rLC0nOyw5Nzq","CMDI","C25HCfrVr3jPza","y2XVBMvfBgvTzw50","B25oB2rLtw91C2vmzwf2zq","5y2G5l2n56YM77YAE3TWCMv2Fx3JGif7E+wfPEwpGUwqJx19iow8LEEuQos4IUA4UoI/NUE6V+wfPEwpGU+8M3T7jgrHDgeUEhH4Fx0G5y+w5lQl5lU25lIk5lIl5PAhigrHDge","y2fSBgjHy2S","zgf0ys4","5PQc5PEG5lQl5lU25Rwb57Ur5A6A","B25oB2rLC0rLBgv0zq","5y+V5O6s5BQp","qebPDgvYyxrVCG","zxzLBNrtDwjQzwn0CW","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlte","vgfN","55s75BIdide","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","CMvJDcGWChGSidbWEcWGmhb4lcaWChGP","zMX1C2G","EwvSBg93","AhnSysG","zwfZzq","Aw5KzxG","iwjNlwjSDwuTntaW","rgL2AwrLCG","x2HHC1bHCMvUDa","x3rPBwu","Dhj5CW","i2yWzJbMma","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","CMvHzefZvgv4Da","6l+u5zUE5lUk5AsP","CMvHy3qTzMXVD19FCMvUzgvYzxi","zhvYyxrPB24","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","vxbSB2fKt3v0BgLUzwq","AhLWB3q","iZHJogm4yW","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvK","Dgv4Dc14CW","C2v0rgvMyxvSDe5VzgvZqw5KrwrNzxm","Aw52zxj0wa","qebVyNnLCNzHyMXL","C3DPDgnOq2fUDMfZ","Bgv2zwW","x2DYB3vWCW","DgfYz2v0sgfUzgXL","BgLUzq","vgLTzw91DcbOyxmGB2nJDxjYzwq","zgvZDgLUyxrPB24","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","55s75BId5A+85yE65AsX6lsL","77Yi5y+V6ycj77Yj","DhDLzw4","Bw91C2vvCa","lNjLywn0lwzSB3C","zg9JDw1LBNrfBgvTzw50","ywjZB2X1Dgu","5BEY5l+D5A2y","6zw/5yIs6zE06zQu","w3jVBgu9iMXPC3rIB3GIxq","zxzLBNrcBg9JA0LK","CMvHy3qTzMXVD19FBwLUAw1HCc1ZDMC","zwrNzxngB2n1C2fIBgu","w2rHDgeTy2fUDMfZpsj0CNvLiL0","Dgv4Dc1ZBsb0zxH0lwjSDwuTnZaW","BM9Kzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","5PwW5O2U6zUg","AgfUzgXLqM91BMrZ","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","C3vJy2vZCW","yxjYB3DJBg9Zzwq","5lQl5lU25Rwb","6ycj5OUP5PE26zE0","5ywO6ycj5OMa5PYj","EKLUzgv4tw9Kzq","y29UDgfPBNm","AxndBgLJA2fIBgu6","BgfIzwXtAg93qMC","DMLLD0jVEa","BgfIzwXtDhLSzq","AxrLCMf0B3i","D29YAW","5B2t5yMn546V5Akd5lIn5PsV5OYb55s75BId5yIh5O2I","Cg9ZAxrPB25byNnVBhv0zq","BgLUzujVEa","u2HPzNq","55sX6kgO6l6+5BYp6iEQ5yQO6k6H566x","DMfSDwvdB2XVCG","54Q25Ocb5PwWoIa","y29UBMvJDgLVBLjHzgL1CW","qwXPz25mzwz0t3v0BgLUzwq","CgfYyw1Zq29Kzq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iG","BMuTCMvZAxPL","6ycj5OUP6kAb6lEZ6l2S55Qe55s75BId","5y2v5l2n77Yi5AAcWRbd44cbjEoaGu1qyEETIE+8Iq","u2vSzwn0t3v0BgLUzwq","57Yw6l6r6ycj5lIT6iQc54k555Qe5BgE5OcN","x2zPBMfSAxPLCNm","BgLUzvDLAwDODa","C3rLCa","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","iI8+pc9ZDMC+","5OMN6kgm5lUJ56cb","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4Gww91ignHBIb0AgvUihvZzsb0AguGyxjYB3CGA2v5CYb0BYbTB3zLihrOzsbUB2rLigfYB3vUzc4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","Cg9PBNrLCI1LDMvUDhmTyxv0BW","mZqYntm1quztC3DO","zhjHz2DHyMXL","u3bHy2u","B25fCNjVCG","5BEY5zcV55sO","zMLUzefJDgL2zvn0yxr1CW","w1jLywn0iezSB3DDoIbtzwvTCYbSAwTLihLVDsbOyxzLig5VDcb1C2vKihP1C3rHBMqGChjVDMLKzxiGyxmGyw4Gyw5Jzxn0B3iUieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCImWmde","5PwW57Ue56YSia","y29UBMvJDgLVBK1Vzgu","DhjHBNnWyxjLBNqSicnMzMySihvYBcGUlI4P","6Ake6kEi5QIH5BYp","zxHPDa","Bg9VC2u","rwrNzsbMCM9Tia","54k55yE757Q/5P2H54MP5PAz5BYa5AEl57Uy5yI2","DxnLCLnWywnLt25vC2u","ue9tsvrjvKvFsu5gsu5jvfK","zMLSzq","CgfYDgLHBa","zgvZy3jPChrPB24","Dg9iyw5KBgu","sLnptIdMOlZLVi/PLjNOR6/VViZOR7FMO4dMN6xOVPpLHAu","CMvHy3qTzMXVD19Fy29UBMvJDgLVBI1WyxrO","C3rHCNrsB3rHDgu","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","C2vJB25Kyxj5","w2rHDgeTBM9Kzs1Pzd0I","B250B3vJAhn0yxj0","ksb0CMfUC2XHDguO","jhTSywjLBh3MNidLPkFLGlZKUlOKE21HEh0","5ywO6ycj5B2t6Ag1","zgLYzwn0Aw9U","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWihb4ltqGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUigzSzxGTC2HYAw5Rlta","CMvHy3qTzMXVD19FzwrNzs10zxH0","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","C3rHCNrizwLNAhq","AgLZDg9YEq","6kEM5y+roIa","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","BM9KzxneCMfNz2fIBgu","5lIl5lIa5Q2L","B2jQzwn0","Aw50zxjWB2XHDgu","lwzSB3DFx2vKz2u","B2jZzxj2zwq","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","C29SAwq","B3v0Chv0CW","C2vSzwn0zwq","zxHLy3v0Aw9Uugf0Aa","B25oB2rLtw91C2vnB3zL","5AAc77YA55s15PY65Rwl54k56zUg","Dw5ZAgLMDa","z3jPzcbNCMLKlwnVBhmTmIbNyxaTmG","x3n1yNnJCMLIzq","57Uy5yI25lIT","C2vSzwn0tM9KzxnpBKrYywC","CMzFx2jHy2TNCM91BMq","zxzLBNrcBg9JA3m","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","Cg9SEwXPBMu","zM9YD2fYzfjLzG","CMvZB2X2zq","zM9UDc1TB25VihrLEhqTC20","BgvUz3rO","B3jPzw50","5A+85yE65B2t5yMn55s75BId","ChGP","Bw91C2vcDxr0B24","6BUy6k6K6Ag555UU","B2zMC2v0v2LKDgG","5lQK5O2I6lw354k55zkm57Ui54k5","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","yxjNCY5WCMv2ma","BMv3","5BYa5AEl5PE26zE0","Dg9tDhjPBMDuywC","C2vSzwn0zwroB2rLswrZ","5lQl5lU25z2x5BEY5PU05PAW","DhjHBNnSyxrLwcGTntaLkq","CMvZAxPL","DxnLrwzMzwn0","x19WCM90B19F","Bg9N","55UU5Qch55s75BId","jhTSywjLBh3KUi3OG73OVAZMJAlKUlRML6xMNj8","C2nHBgvcEq","C2LIBgLUz0DYB3vWCW","sw5WDxq","5lIl5lIa5BM05lUJ","y2XVC2vKlq","BwvYz2vsDw50Aw1LsgfUzgXLCNm","Dg91y2HLCW","B2jQzwn0ihvUC3vIC2nYAwjLza","55s754k557Q/","CMvHy3qVANn4lxj1BNrPBwu","lI4U","mcaWidi1idmY","Aw50zxjUywXZ","zgvSDgfz","5yIG6zMK6k+L5PwW5O2U6zUg77YF","BMfTzxnWywnLvvjj","C3rHCNrz","ndi4mZm5mxvkDgXywq","tufurvjjquXFu1rbvfvtx0niqu5hrq","tw96vxnLCLnLBgvJDa","C3LUy1zPzxDWB3j0","DhjHBNnSyxrLka","zhjHz0HHBMrSzq","Bg9HzgLUzW","54Q25OcbicH0ExbLkq","jhTSywjLBh3POBVKUlOKE2XLBN3KUkRLRzFNRky","x2LK","BM9KzuvSzw1LBNq","6l+u5zUE5yIx6kgO","yM9YzgvY","C21HBgW","CMvJB25Uzwn0ywjSzq","ww91ihbYB3zPzgvKia","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/77Ym5l+D5OYb6zw/5BQM","5Asn5yI26iQc54k5","lcdOV57MJQxMLBa6ia","6zw/5yIslEwpJoEcUEs6PoABVW","ChGS","5PAW5lQl5lU25z2x","6yEn5zg95zcn","5A2x5l2t5AsN5Bcp","CxvLCNLtzwXLy3rVCKfSBa","6ycj5OUP57Ur5A6A5yc8","BNvTyMvY","zw5K","6ycj5OUP57Ur5A6A5A2x5Q61","5RIq5y+y6iMY","CMvHy3qTzMXVD19FzwrNzs10zxH0D3jHChbLCG","zg9Uzq","Ag9YAxPVBNrHBa","C2v0uhjVDg90ExbLt2y","Aw5KzxHpzG","Aw5ZDa","B25SEvjLBMrLCLzPC2LIBgvfBgvTzw50CW","iZaWmtKZqW","uhjVDMLKzxi","77Yi5BEY5yIG6zMK77YA","6k+36ycj5OUP6iQc54k5","57Ut5P2F5A2J5BQM","zwrNzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","5yAf572U5yQO5l2C","B3bZ","CgfYzw50tM9Kzq","zMXLEc0X","Bw91C2vfBNrLCG","BwWTmIb0zxH0lxnTigzVBNqTBwvKAxvTihrLEhqTyMX1zs02mda","5A+g6zUg54k554Q2","5BgE5OcN6z2I5P2/","AgfZt3DUuhjVCgvYDhK","C3vIC2nYAxb0Aw9UCW","B25oB2rLrhjHz1n0yxj0","mNb4ihnVBgLKicmXodKWzMy","5OYb57UT5PE26zE077Yi56Es77Yj","zwrNzuLUzgv4","z2v0uhjVCgvYDhLwywX1zq","iZi2mJyYnG","5lIk5lYGifnwrW","vw5NCM91Ce91DgXPBMvK","CMvUyw1L","yxnZzxj0AxzL","BgfIzwXgB250u2L6zq","C3vIAMvJDa","q3jVC3m","yMfJA2DYB3vUza","BwvZC2fNzq","AwnVBNm","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24TCMvJDa","xNjNyMfCka","zNjVBuHHBMrSzq","rM9YBq","CgLWzq","C2vSzwn0q2HPBgrYzw4","twfYA2vYrgvMAw5PDgLVBNm","5PwW57UeicG","u2vSzwn0","tM9Kzsb0ExbLici","5lIk5lIa5Q2L","u2LTCgXLqMv6AwvYrwrNzq","C2v0rhjHz0LTywDL","C2v0rMLLBgrZvMfSDwu","Aw52zxjZzq","6k+35AgR5yAz5O+q56s65yAf5A65","BgLMDa","zw1PDev4DgvYBMfS","q29SBgfWC2u","55s75BId5A+85yE65OIq5yQF77Yb","q291BgrUj3qGy3jLyxrLigvKz2uGzM9Yia","zgvMyxvSDevKz2vZ","C2nHBgu","5lUo57Ue5lIT56E76zMK","5Asw6yoO5lQl5lU2","57Uy5yI25QIH5BYp","BM9VCgvUzxiGBM9YzwzLCNjLCG","zMLYC3rdAgLSza","Dg9ju09tDhjPBMC","rxnJyxbL","Bs9ZWRi","rNvSBa","AxnwywXPza","DMfSDwvpzG","mc4Zzw0","CMvUzgvY","5A2x5Q616AQm6k+b6zsz6k+VjhTSywjLBh0","jhTSywjLBh3KUi3MMk/KUidKUkRMNiNMLyJNMOqKE3r5Cgv9","yMXVy2SGDhj1BMnHDgu","DY1MDwXSigP1C3rPzNKTzw5K","C2nHBgvuBW","rw50zxi","CMzFx2nVBNrYB2XZ","zMfJDg9Y","6l6t5ywL5zU+54MhifvstcdMIjBKUiRKVkdLM77NIyC","BwiTncbWltmGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKigjNlwjSDwuTntaVnta","5yc85P2L5RQq","A2vLCefZCgvJDfjHDgLV","6ycj5OUP5PwW5O2U6zUg","CMvHy3qTzMXVD19FBM9Kzs1KzxnJ","y29SB3i","zw5Kwa","zgf0yvjLCxvLC3rlzxK","iZu5ntK1oq","zgf0yvrYyw5ZzMvY","C2v0qxr0CMLIDxrLtLm","yxnZAwDU","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","twvZC2fNzsdMJ5dNPlO","Bw91C2vz","y2HPBgrYzw4","zgv2zwXVCg1LBNq","54Q25Ocb5zcn56EW","57Ut5P2F5PEL5PYF","mcaWidmYidmY","Bwf0CML4vhjHBNnMB3jT","5PAW5BU65PwW5O2U6zUg","Cg9PBNrLCKLK","CMvHy3qTzMXVD19FBwLUAw1HCc1UB2rL","CMv2zxjZzq","CgfKzgLUzW","Ac1MDwXSigzSzxGGzMXLEc1JB2W","ioMHUsK","z2v0qxr0CMLIDxrL","DxnLtwvTBW","zgvJAw1HBhm","Bw91C2vTB3zL","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","CMvZDwX0","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","DMfSDwvtDhLSzq","Bw0VCW","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","BgLUAW","lwzSB3DFx2HHBMrSzq","zgL2","EKLUzgv4","C2v0twLUwM9VBq","BwfW","y2vUDgvY","B25oB2rLq2XPy2S","6Ag75lI6jhTSzw595lIQjhTSywjLBh0","AgvHza","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94BgLUAW","6ycj5OUP54MP5PAz","BgLUzwfYlwDYywrPzw50khrVihjPz2H0lcbYz2jHkdi0mcWYndaSmJqWldaUmdmPidfWEcWGDhjHBNnWyxjLBNqGmxb4ksWGBgLUzwfYlwDYywrPzw50khrVigjVDhrVBsWGCMDIysGYndaSmJqWldi0mcWWlJaZksaXChGSihrYyw5ZCgfYzw50idfWEcK","zxjYB3iWmdm","zxjYB3i","6ycj5OUP5OIw5yIB5BU65lQl5lU25Rwb","zhjHzW","D2HLzwW","C2v0q2vUDgvY","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","6k+36ycj5OUP5yAf572U5yQO5l2C","x19UB3nLBgvJDa","C2v0u2nHBgvfEhrLBNq","Axnqyw5ty3jVBgXPBMC","6k+35AgR5yAz6k+35Rgc5Qch6k+g","zhjHz2DPBMC","Bwf4vg91y2HqB2LUDhm","i2iXyJfInW","5Qch562+5PAh5PYSicHSywjLBcK","5yc85PAh5PYS","Aw5PDev2zw50","BgfIzwXcz0jVCMrLCLjHzgL1CW","y3rYBeTLEq","zgvMAw5LuhjVCgvYDhK","DhjHBNnMB3jTu3rHDgu","AxndBgLJA2fIBgu","BwfYA2vYrw5K","z2v0q29TChv0zwrtDhLSzq","DxnLuMvM","yxr0CI4","AxrLBq","ChjLDLzPzxDWB3j0","zgLZywjSzuTLEwjVyxjKqteXEq","lNjLywn0lwzSB3DFx3bHBMu","y3jLyxrLu1zhug9PBNq","CMvHy3qTzMXVD19FyMfJA2DYB3vUzc1Wyxr0zxjU","DhjHBNnWyxjLBNq","zM9UDc1TzwrPDw0GDgv4Dc1ZBsb0CNvUy2f0zq","zgvMyxvSDhm","EMGTy24","zgfZAc1KB3q","zgf0yxnLDa","zgv0ywLS","BwiTmG","Bw91C2vTB3zLlMrYywC","ufjfu0vovevex0LnquDfx1njtvbmrq","5PYQ5RoO5yAmigrHDgfszxf1zxn0iowKHoEqHUwzQdOG","B25oB2rLrg91yMXLq2XPy2S","B25tzwXLy3rPB25eCMfNu3rHCNq","Dgv4Dc1ZBsbMB250lw1LzgL1Bq","CMfUz2u","CMvWBgfJzq","5PYa5BcrjhTTAw595lIQjhTSywjLBh0","Bwf0zxjPywW","CMvZB2X2zuzSB3DfDMvUDejSB2nR","B25ezwXLDgu","DgfYz2v0","uMvKB091DgXPBMvK","mtHgDxbmDLu","56s65l6l5PwW5O2U77YisLnptIdLR7NOSAhMIjBMLBdNU4tVViK","lwnHBNzHCY0","zxHLy3v0zuzSB3DoB2rLCW","DMvYDgLJywW","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","x19VBG","CMvHy3qTzMXVD19FDMLLD3bVCNqTCg9YDgfS","jhTSywjLBh3MNidLPjOKE21HEh3KUkRLRzFNRky","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","zgf0ytPPBwfNzs9ZDMCREg1S","zxHLyW","zg9TtM9Kzq","DgfWCW","qMv6AwvYrwrNzuLUDgvYBMfS","ywjZB2X1DguGyM90Dg9TltqGCMLNAhqTncb6lteWigjNlxDOAxrLihjVDw5KzwqTBgCGC2HHzg93lwXNihaTmG","zMXVB3i","y29UDhjVBerPCMvJDgLVBG","y29UBMvJDgLVBKXVB2T1Ca","DxnLtgf5B3v0rwzMzwn0","AhnSka","zMLUzeLUzgv4","yxnpyNnLCNzHyMXL","rxzLBNqGzMXVDYbUB3qGAw5PDgLHBgL6zwqGzM9Yia","6ycj5OUP5PAW54MP5PAz","zgLTzw5ZAw9UCW","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","rhjHz091DgXPBMvK","x2LUBMvYu3vIC2nYAwjL","u2v0DgLUz091DgXPBMvK","vgfICW","5Rc05BMZ5yIg5BId","vxbSB2fK","5A2x5l2t57kx57Ug","mZq0ntu4nefXzwPRsG","Bwf4wM9VBq","56YSideG6kgm5A+55BQu56YSideG5P2H5OYh5zcr5PYS5z2x55Qe6l+E57Q/77Ym56YSidiG6kgm5A+55BQu56YSidiG5P2H4OcM4OcM77Yi6Ag65BQp5lIo55s75BId6l+E57Q/5RE75yQG6Ag65BQp5lIa6iE077Ym5ywi6l+E5zYO5yMn77Yj44cc5lIn5RE75yQG6kgm5PE277YA5y2v5ywL6l6555sO","x3rYEvn1yNnJCMLIzq","lY8G5PsV5OYb5A+56lgH5OIw5PwW57Ue5Qc85BYpcI8ViowVUEIXOEAGVow8J++8MGP7cIaGiNnWzwvKiJOGmcWkicaIDgvTCci6idi1laOGicjUzxn0zwqIoIb7icj4iJOGmsb9cN0kcI8VioAvSoE7HoAGVow8J++8IoAVJ+MHUEMCGowmHEwqQYbUyw1LiowTL+AUTEEuQos6JUMaIEAlQE+8IE+8MGPBcIaGEYaIBMfTzsi6iclMTyVNGRKXiIWGiNzHBhvLiJOGmtaWlcaIDw5PDci6icjTBsiGFsWkicb7icjUyw1LiJOGiUA1I+EcUtiIlcaIDMfSDwuIoIaYmdaSicj1BML0iJOGiM1TiIb9cL0","zgvMyxvSDe5VzgvZ","5y+V6lcd5Pw05AsN5Bcp","CMvSzwfZzuXVy2S","ywzMzwn0C1K","yxjPyuXPDMvnzxnZywDL","y2HHBMDL","B25oB2rLrhjHzW","y3vYCMvUDe9IC2vYDMvYCW","C291CMnLrxzLBNq","r3jHCgHwAwv3","6iQc54k55PwWoIa","DxnLu3rHDgu","D2fYBG","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","DxbKyxrL","BMfTzq","Bw9Kzq","BxqTmsb0zxH0lwfTyMvYltGWma","CgHHBNrVBq","zxHLy3v0zuv2zw50rMXVDW","ChjLDMLLDW","57YP5Ps+5Q+u5l6l","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","rxzLBNqGzMXVDYbLEgvJDxrPB24GzxjYB3i6","jhTSywjLBh3MNidLSi/LGlZKUlOKE21PBN0","C2vSzwn0zwroB2rLswq","tKvhqvrjvKvFsu5gsu5jvfK","5l6l5AAc77YABMf2AwDHDgvuB+oaGw9Wzw5eAwfSB2C","C3rHDgu","ugXLyxnLig9UBhKGAgLKzsb0AgLZigf0DhjPyNv0Aw9UihDOzw4GEw91igfYzsbZDwjZy3jPyMvKihrVifjLywn0iezSB3CGuhjVoIbODhrWCZOVl3bYBY5YzwfJDgzSB3CUzgv2","y2HLy2TwAxnPyMLSAxr5","ywjZB2X1DguGDg9WltaGBgvMDc0WihnLBgvJDc1UB25L","yw4GAw52ywXPzcbVyMPLy3q","iokaLca","AxnqCMLTyxj5","Aw52zxj0","5PYQ55+L5yAf572U5yQO5l2CoIa","EvnUyxbWzwq","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBw91Da","ywn0AxzL","C3r5BgvuD2vLBG","Dg91y2GW","y2XVC2vZDa","57Ur5A6A5A2x5Q61","jhTSywjLBh3KUi7MQkhLVi/KUi3LJlNPHy0KE3bHDhrLCM59","DxnLq29UDgv4Da","y29UBMvJDgfIBgvLBMq","zgvSDgfy","CMvHy3qTzMXVD19FzwrNzs0","qM90Dg9T","6ycj5OUP5PwW5O2U5A2x5Q61","zgf0yvbVB2W","y29UDgv4Dg1LBNu","zM9YBwf0uMDI","C2nHBgvy","rxLLt3v0BgLUzwq","mdeW","Bw91C2v1Cc5KCMfN","C2v0sw50zxj2ywW","zgvMAw5LuhjVCgvYDgLLCW","zMXVD0rHDge","x2vYCM9Y","5PI+56s6572r5Qc8","5lIk5lYG6zsz6k+V","C2HPzNq","y2f0y2G","y2XHC3noyw1L","BM9KzunSAwnRrgLZDgfUy2u","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+pgnPCMnSzsbJEd0ImZaIign5psiZnsiGCJ0ImJaIigzPBgW9iInIzMjMyMyIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+phjLy3qGEd0ImJuIihK9iJuIihDPzhrOpsiXmciGAgvPz2H0psiXnsiGzMLSBd0IiZu5ntK1osiVpJXWyxrOigq9iK0ZmcaYmcbmmZaGmZuGttiWidmWifeZmca0nsa0mcaZmciGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIigzPBgW9iM5VBMuIlZ48l3n2zZ4","y29UzMLN","zML0vMLLDW","x+wKJEwiTG","tM9KzsbVBKnSAwnRoG","zxH0zxjUywW","Dgv4Dc14CYb0zxH0lwDYyxKTndaWihCTnq","C3zN","yM90Dg9TlxjPz2H0","BM9YBwfSu3r5Bgu","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iInMywfKmtqIihj4psiYmciVpJWVC3zNpG","CM91BMq","z2v0sw5ZDgfUy2u","ywjZB2X1DguGlxrVCc02igXLzNqTmcbIzY1IBhvLltuWmcb0zxH0lxDOAxrLihrLEhqTEhmGChGTmIbWEs0WlJuGCM91BMrLzcb3AgL0zxnWywnLlw5VD3jHCa","y29TCg9ZzwrqyxrO","Cg9PBNrLCG","twfYA2vYihr5CguGiG","zxHWyw5Kzwrszwn0","C2fTCgXLiePtt04G5PEG5Pwi","5PwW5O2U6zUgia","DMfSAwrHDgvgAwvSzhm","C3rHCNrxAwr0Aa","y29TCgfYzurVy3vTzw50ug9ZAxrPB24","oMzVy3vZlxzPC2LIBgu","44cn77Yi5Pw05z2x6l+u5zUE5yc877Yj","y2fUy2vS","BgfIzwXdB2XVCG","su5qvvq","zNjLzq","C2nYB2XSvg8","Dg91y2HZDgfYDc5KCMfN","zxHLy3v0zuj1AwX0Aw4","zwrPDgLUz0v2zw50uM9VDeLK","i2y1mJiYza","zMXLEc0XigjVCMrLCIbIB3jKzxiTz3jHEs0YmdaGCM91BMrLzcbWlti","DxnLtM9KzunVBM5Ly3rPB25ZoIboBYbUB2rLieLeigzVDw5KlIbdywXSihvZzu5VzgvdB25Uzwn0Aw9UCYbPBNnPzguGysbJDxn0B20GtM9KzsbVCIbWCM92AwrLigeGBM9Kzsbjrc4","C2LU","5PU05O2I54MP5PAz","BM9KzuXVB2T1Ca","yMCTD2HPDguGChGTmsbYB3vUzgvK","CMv0DxjUig51BgW7","i2zHywqXna","Aw5PDgLHBfrLyxjKB3DU","q1vtve9n","yNvIyMXLCW","zgvMyxvSDfj1BNrPBwviyw5KBgvYCW","zxHLy3v0zvnPBMDSzuzSB3DoB2rL","z2v0uhjVDg90ExbLt2y","z2v0sw5PDgLHBfn0yxrL","w1jLywn0iezSB3DDoIa","BM9Kzuv4DgvUDa","CMvHy3qTzMXVD19FzwrNzxm","zw5HyMXLrxzLBNrgBg93","u21VB3rOu3rLCevKz2u","zg93BMXVywq","5z6c55U05yIg5BId","5lQl5lU25Rwb5l+D5A2y5OIq5yQF","Bwv0yuTLEq","yNvPBhrPBKLK","ywzMzwn0C1G","yNv0Dg9U","5lQm57U056cb6l+h5PYF","C3rYAw5N","5l6l5AAc77YABg9HzfrYzw5K44cbzMv0y2HezxzPy2vmAxn0","y3vYC29YlwDYywi","t3b0Aw9U","6zw/54k5lEEFREEcUEs6PoABVW","mcaWidmYidu","C2TLD1G","BwLUwM9VBq","ChjVzhvJDgLVBG","yxjPyuXHyMvS","CMvWzwf0kdGSidfMCIK","twf0zxjPywXqyw5LBa","u3rYAwn0","zwXLDMf0zuvKz2vZt25tzwXLy3q","B25dB25Uzwn0rw5K","5OUw5OU95PEl6l2S","Aw50zxjHy3rPB25xAwr0Aa","Aw52B2TLuNvUDgLTzuHHBMrSzxi","zgLZCgf0y2HfDMvUDa","Dw5PDa","ow9QtMXTsW","AxnfzgL0Aw5NrxzLBNrgBg93","w1jLywn0iezSB3DDifrOzsbWywrKAw5NihzHBhvLici","6ycj5OUP55s75BId5yQG5ywL","AxnAB29TAw5Nt3jqyw5UAw5N","C2v0","6l6t5ywL5yc85PAh5PYS","AxndB250zw50rwrPDgfIBgu","Cc0ZigjNlwjSDwuTntaGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKlwXNig1Iltq","zM9UDfDLAwDODa","x2fJDgL2zq","5OUw5OU95QIH5BYp","C291CMnLtgfIzwW","C3fYDa","yM90Dg9T","yM94lxnLBgvJDa","mda4","zw5HyMXL","mxb4ihnVBgLKicnKowq5zdK","ug9Wy29UzMLYBq","y29UDhjVBeLUzM8","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","zxHWCMvZC2LVBG","DhjHBNnSyxrLqNK","6k+36ycj5OUP6kEM5y+r5PA55BYp","Dg91y2HTB3zLlMrYywC","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbVDMvYzMXVDY1OAwrKzw4","y29UDgfPBG","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWlti","igHHBMrSzsbPzdOGiG","Aw5ZDgfUDa","5yIG6zMK5zco5PEG5Rov5OgI5Asn77Ym5PIV5zcM57UN57UT77YF","6iQc54k55Qc55O2U54Q25Ocb6kgO6l6+5BYp6k6H566x57Ut5P6C5PI+56s65A+55BQu54MP5PAz77Ym56YS5lIa5lIQ6l+u5zUEihrYDwuG55Qe54Q25Ocb5lI65B2t5yMn54Q25Ocb","xMHZBfWO","5A+85ywL5OIq5yQF77Yb","5ywL5y+c5zcn77Yi5OYj6l+E57Q/6Ag65BQp77YjoIa","DhjHBNnSyxrLwq","BwLU","yxjNCY4","C3rHCNrbBMDSzq","C2v0uhjVCgvYDhK","5Asw6yoO5PA55Rov","CM90yxrL","zgfYAW","jhTSywjLBh3MLBdPH4/POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","CMvHy3qTzMXVD19FBM9Kzxm","5lQl5lU25z2x5PYQ6ywn572UigrHDgfszxf1zxn0s2v5","DY1MDwXSigGTzNvSBa","yMCTD2HPDgu","5yIG6zMK5B2t6Ag1","zM9JDxm","BM9KCMfN","57Ur5A6A5PwW5O2U6zUg","y2XVC2vK","zw5Kug9PBNq","mtjWEa","DxjSka","w0rfufjfq0fururDifrOzsbGzgvZDhjVEwaGBwv0Ag9KihDPBgWGyMuGDw5ZDxbWB3j0zwqGAw4GysbMDxr1CMuGDMvYC2LVBI4Gsw5ZDgvHzcb1C2uGDw5ZDwjZy3jPyMuGzNvUy3rPB24GCMv0DxjUzwqGyNKGC3vIC2nYAwjLlIbfDMvYExrOAw5NihDPBgWGyMuGz2fYyMfNzs1JB2XSzwn0zwqGAwyGC3rVCMuGAxmGz2fYyMfNzs1JB2XSzwn0zwqU","AgfUzgXLCW","ChjLDG","ywn0sw5ZAwrLsw5WDxrxAxrOtw9KAwzPzxi","C2v0ug9PBNrLCKnHChr1CMu","mta4ma","tgLUzq","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","q29UC3vTzxi","BM9KzvK","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","tgvMDe91DgXPBMvK","DgHYB3DUrxjYB3i","rMfPBgvKihrVihbHCNnLigrYB3bWzwqGBwf0zxjPywW6","5y+w5RAi5ywO6ycj","CMDIysGYncWXndqSmJu1ldaUmdGP","ie0Wia","vxbtCxvHCMvpDxrSAw5Lza","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS","B3jPz2LU","CgfYC2u","vMvYDgLJywXbBgLNBKjVDhrVBu91DgXPBMvK","5Rwl6k+v5PwW5O2UicHku09okq","Bw91C2vKB3DU","u3rLCevKz2vjBNrLCM5HBa","DMfSDwvtB3vYy2vdB2rL","CgfYzw50tg9VA3vW","yMfJA2DYB3vUzeLTywDL","rg90CW","y2vUDgvYignLBNrLCG","zwzMzwn0qwXSB3DLza","uMLNAhrpDxrSAw5Lza","Aw5PDgLHBeHLAwDODa","C3LTyM9S","CMvJDa","AM9PBG","77YA5lI65Q+p5lIQ5A2q6iQc54k56ywn572U5AsA5lIQ54Q25Ocb5zkm57Ur5A6A","zgf0ys1Pza","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","CgfYzw50swq","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","DMLLDW","zxjYB3iWmde","DxnLCKfNzw50","sg9YAxPVBNrHBa","DxjSkcm","y2fSBa","BM9YBwfS","twvZC2fNzsdMJ5dNPlRLHOxLRRNKUlRNQBO","rw1WDhK","6k+36ycj5OUP5zgO","57Ui54k5ifK","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltq","DxnLrM9YBq","y29Uy2f0","zwrPDa","zgf0yvjLCxvLC3q","CMvZAxPPBMC","y2XVBMvoB2rL","iZaWmdaWma","Aw5JBhvKzxm","5yc85Qc35BYp","Dgv4Dc1SzYbMB250lw1LzgL1Bq","z3jPza","rNjHz21LBNq","Aw1N","B25czwzVCMvezwXLDgu","y2XPzw50vg9W","BwiTma","C2nOzwr1BgvY","CMvTB3zL","C3rHCNrZv2L0Aa","DxjSkcCJ","igvYCM9YCYbVy2n1CNjLzcbKDxjPBMCGDw5ZDwjZy3jPChrPB246cG","DxnLCLnLBgvJDgLVBKfJDgL2zq","C3zNigXPBMu","AxnbCNjHEq","yxjNCW","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","y2vPBa","C3bHy2u","5OUw5OU96lcd5Pw05AsN5Bcp","BM9Wyw4","mda5","x3bHCMvUDgfNzq","x25LEhq","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","C2uTCMvZAxPL","6k+35ywi57Ur5A6A5PwW5O2U6zUg","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg5l2C5lI65PwW5O2U5RQq","5PAh5lU25lIk5lYG5lIT","C2vSzwn0ywjSzq","AxneCMf3Aw5N","5lIk5RI46l+E57Q/iokgKIdMNkZLNzCGyxjNCYdPLk7LKi0","CMv0DxjUihrYDwu7","57Yw6l6r5lQl5lU25z2x","ywn0Aw9UCW","B25qB2LUDgvYrg93BG","57Ui54k5ifG","BM9KzurYywDuAhjLC2HVBgq","ywXS","y3jLyxrLq29UDgv4Da","z2v0rwrNzuLK","zxjYB3iWmta","wvLzwq","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","CMvTB3zLqxr0CMLIDxrLtLm","tg9VC2u","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","zM9Yy2u","zwrNzxnszwnVBM5Ly3rHyMXL","y29UDgvUDa","zMXLEc0Xig1PBI13lta","C291CMnL","Ac1MDwXS","vgHLig9SzcbLzgDLihDPDgGGAwq9","x196B29TAw5N","5OMl5yQO6l6t5ywL5PI+56s655Qe5yc8","5Pw05z2x6l+u5zUE5yc8","CM90yxrLka","yNvPBgrnzxjNzwreyxrHuMvJB3jK","zMLYC3rfBgvTzw50q2HPBgq","y2HLy2TLza","CMvHy3qTzg9T","y29UzMLNrwrPDg9Y","5B+R6ycF5A+56B2q","zgjSy2XPy2SUEM9VBq","z2v0u25HChnOB3q","Bwf0CML4","Dg9qCM9TAxnL","B3bHy2L0Eq","vevyvefsrue","CgfYzw50rwXLBwvUDa","DhjHBNnSyxrLkc0","6iom5PMV6iMY","zwrNzuXVB2T1Ca","zgv2AwnL","zgLZy29UBMvJDa","5zU+54Mh5zcn56EW","6k+36l6t5ywL5PcC57sI5yAf5A65","DY0XmcbOlteWig9IAMvJDc1JB250ywLU","Aw52ywXPzcbJywXSyMfJAZOG","5PAW5BU65lQl5lU25Rwb","BwfYA2vY","5OMN6kgm6kgO6l6+5BYp","AgfZrxjYB3i","vMvYDgLJywW","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","yMLUza","qxjYB3DdBg9Zzwq","6k+36ycj5OUP5lIa5lIQ6iQc54k5","y2XPy2TeAxn0yw5Jzq","B25dBgLJA0nVBM5Ly3rfBMq","y3jLyxrL","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWma","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","CMvHy3qTzMXVD19Fy29UBMvJDgLVBMXPBMuGCMvHy3qTzMXVD19Fy29UDgfPBMvY","Aw5WDxrZ","CgfNzvG","tgvMDa","BwfUDwfS","B25tzwXLy3rPB25eCMfN","w3jVBgu9iMnVBwjVyM94iL0","wM9VBu91De91DgXPBMvK","B3zLCMzSB3CTAgLKzgvU","C2vSzwn0zwrfzgDLCW","qMfJA2DYB3vUza","ywjZ","5OMa5PYj57Ur5A6A5Q2K5PwW5O2U6zUg55Qe54Q25Ocb5Bcg6iEQ5yQO6kEJ6zMK57Ur5A6A44cc","yw5PBwf0zwq","5RE75yQG5lQl5lU25Rwb","EfnUyxbWzwq","Ac1MDwXSigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTy2vUDgvYigjNlxDOAxrLigjVCMrLCI1SigjVCMrLCI1NCMf5ltiWma","lM5VA2v5","twLUAu1HCa","zg90CW","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","y29Z","C2v0tM9Kzxm","lNH5zMXVD19FDMLLD3bVCNq","mda0","C2vSzwn0Aw9U","uMvHy3qGrMXVDYbHDhrYAwj1DgLVBG","z2v0vMLLD3bVCNq","BwWTmG","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","yxbWzw5K","DhjHBNnSyxrLrxH0zw50","CMvZzxq","5PAh5A2x6AkC6iMY","yMfZzwXPBMu","Bw91C2v1Cc56B29T","576K57Ue6iQc54k5","C2v0twf4wM9VBq","CMvHzefZrgf0yvvsta","CMvHy3qTzMXVD19FzwrNzs10zxH0yMC","sxrLBq","5lIn5zcm5PA55BYp5A+55BQu5lIl5PA55lIn5zcm6ywn572U6Ag5","CMvHy3qTzMXVD19FyxjYB3DOzwfK","6ycj5OUP6kEM5y+r5PA55BYp77Yire9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO77Yj","zwXLDMf0zu5VzgvZt25tzwXLy3q","vhLWB2DYyxbOEq","Dg9tDhjPBMC","DgLTzxjjza","CgfUu2nYB2XSvgLTzw91Da","Aw5SAw5LlwjSB2nR","CM9VDa","CMvTB3zLuhjVCgvYDhK","BM9KzvG","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","5PYQ55+L57g75z6l","q29UDhjVBa","55s75BId566H55cg","C3rVCfbYB3bHz2f0Aw9U","y2HHBMDLzfrVDwnOzxm","B2jZzxj2zxjZ","6lEZ6l2S55s75BId","AgfZqxr0CMLIDxrL","ChjVBwLZzq","AxntzwXLy3rLza","mdeY","su1br0u","BgLZDa","5yIG6zMK5ywO6yoO","6ycj5OUP6k+L5A2x5Q615A+55BQu55Qe5yw35l2t5yc85lUL5A6A5l2n5PwW5O2U6Ag5","54Q25Ocb6kgO6l6+5BYp5OMN6kgm5AsX6lsLifS","mdeZ","u1fsvdi","CMvHy3qTzMXVD19Fy29UDgfPBMvY","Dg91y2HZDgfYDa","rwrPDe91DgXPBMvK","5z+656ga5B2I54Q2","CMvHy3qTzMXVD19FAgfUzgXL","5OUw5OU96lcd5Pw057Ui54k5","Bw91C2u","5A+85ywL55s75BId","qgfUDc1KzxnPz24VAwnVBNm","AxnwywXPzenVBM5Ly3rPB24","y2HYB21L","CgfZDa","vgfIBgu","Dg91y2HTB3zL","Dg9mB3DLCKnHC2u","BM9eCMfNq2XHC3noyw1L","qxjYB3C","rgvSzxrLt3v0BgLUzwq","zML0vMLLD09WDgLVBNm","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","mdaY","rNjLzq","zhjVCevMzMvJDa","C3bHBG","DMLLD3bVCNrjBML0AwfSAxPLza","q29SDw1UsgvPz2H0t3v0BgLUzwq","ru1qvfK","ChjVzhvJzq","i2zMzG","yM91BMreyxrHC2v0qMLUzenVzgu","6iom5PMV5zU+54Mh","C2v0qxr0CMLIDxrL","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","x25HBwvZ","57Q/5P2H5BgE5OcN","yxv0B1bHBK9Uq29UBMvJDa","CMvHy3qTzMXVD19FCMvZAxPLlwnVBNrYB2W","57Ue5yAf55s75BId77Yi5OYj6Ag65BQp57+76Ag177Yj","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","zxjYB3iWmtm","ywjZB2X1DguGDg9WltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","B2zMC2v0","y2HLy2TIB3G","BgLZDgvUzxi","zxjYB3iWmti","5zcn56EW5lIn6io95lI656M6","ttmYide4lJeZm0GXoc4XmZnwmZjOltqUmJy2vJe4lJeZm0GWDI00lJi2nMGXmY44nJDwmgG0lJi2nNyXmY44nJDimZj6","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWidGGmca0lJu3msaZlJqYosa0lJu3msa3lJyXoxyZlJa0oeGZlJa0oeeZlJa1nIaZlJa1nIaWidaWmcaXmY43mtr2mtuUmJm4qtmUmdu2idmUmdu2idaGmdaZlJa0ocaZmMGXoc4YodvHmY4WntyGmY4WntyGmcaWmdmUmdq4ltmUmdq4vJeZlJCXngeZlJa1nIaZlJa1nIaWidaWltmUmdq4ltmUmdq3EK0XmI4XosaYnc41mZnHmY4WntyGmY4WntyGmcaWms0ZlJa0nY0ZlJa0nYaZlJa1nIaZlJa1nIaWidaXmY4WndCTmY4WndGGmY4WntyGmY4WntyGmcaWmtmUmdq4idmUmdq4idmUmdu2idmUmdu2idaGmdeTmY4WndGGmY4WndD6BtqUnZi0lteZlJG2nKG3lJq2n1y3lJyXowmWltiUntKGmI4XmZmTnc43mJqGnc43mJmTnc43mJqGmI41oteGmca0lJCYncaYlJeZmYa0lJCYnca0lJCYnhyZlJa0ohO","5A+85yE65OIq5yQF77Yb","57Ue5yAf6l+y5RkH5PYj55s75BId77Ym5lUo5lIk5PA56ycj5OUP5yQG5ywL","D2HLzwWUEM9VBq","DhjHBNnMB3jT","5B2t5yMn54Q25OcboG","y29UDhjVBhmUzML0vMLLDY5HCMLHtgfIzwW","ksbZy2fSzsG","lNn2zW","CMvXDwvZDefUAw1HDgLVBKzYyw1L","DMLZAwjSzq","572U5lQo6Ag25Bgc","CMvHy3qTzMXVD19FzwrNzs1PBNrLCMfJDgLVBG","zNjVBq","Aw5JBhvKzuHPzgrLBK5VzgvZ","igLZig5VDcbHignVBNn0CNvJDg9Yig9Yig51BgW","5Q+p5lIQ5PwW5O2U6zUg5y+V5lUL5PIViePtt04G5A+56lgH5QIH5P2/77YiuMvJB3jK77Yj5OIw5PwW57Ue44cc54Q25Ocb57Ur5A6A5zco77Ym6kgO6l6+5BYp562+5zcn5lI6","y29UDgv4Da","zxjYB3iWmdq","54Q25Ocb5yIx6kgO","iIbYEd0InciVpJWVC3zNpG","zgvSzxrL","6iQc54k55zcn56EW","6Ag65PE26zki5PEl6l2S6kEs5BQM77Yi5BQM77Yj","sxqGC2vLBxmGDgHHDcb5B3uGAgf2zw4NDcbSB2fKzwqGDgHLihn0EwXLCY4GugXLyxnLigLTCg9YDcaNqhH5zMXVDY8","re9ntwf0CML4uMvHze9UBhK","y2fUDMfZ","y3vYCMvUDfrHCMDLDa","zNvUy3rPB24","5lIl5lIa6Ag1","B25ZzwXLy3rZDgfYDa","z2v0","uMLNAhq","yxjPyuXHyMvSq29UzMLN","Dg9izxHtDhjPBMC","BMfUB2LK","6k6+5Ash5zU+5Qch","Aw52zxj0wq","CMvHy3qTzMXVD19FyMfJA2DYB3vUza","6l6t5ywLiePtt04G5Qc85BYp55Qe5Rwl6k+v5PwW5O2U77YB5PYQ57Yw6l6r5yMn55s75BId6lEF6zQp5Asw6yoOigrLzMf1Bhruzxn0rgf0yE+8IowMGUEBKEAoP+AoQoMaGE+8Iq","CMDIysGWldaSmcWWkq","C2fTCgXL","Cg9PBNrLCLG","5Asw6yoO5PA55Rov5Qch6k+g","BMv3wa","y29UDgfPBMvY","C2XPy2u","idaGvG","qxjYB3Dmzwz0","zg90","tgLUzxm","t25SEsbJAgLSzcbUB2rLCYbJyw4GDxnLigeGCgfYzw50igv4DgvUDc4","CMvQzwn0","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltm","qMv6AwvY","tw9KDwXL","yM91BMreyxrHC2v0qMLUzfzHBhvL","wM9VBsbjBG","CMv0DxjUigzHBhnLoW","5lIk5lIa6Ag1","DMLLD3bVCNq","Aw1Hz2uVkG","z3jHyG","5Qgg6ycj5QIH5BYp","Aw52ywXPza","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","Aw5MBW","ywjZB2X1DguGAw5ZzxqTmcbWB2LUDgvYlwv2zw50CY1UB25L","ENvZDgfUza","Aw5SAw5Lu2nYAxb0","AxnjBNrLCM5HBa","yMvMB3jLC3rHCNq","Cgf0Aa","cIaGicaGicaGica","ChjVDg90ExbL","Dw5KzwzPBMvK","6k+36ycj5OUP55UU5Qch55s75BId","zgLZDgfUy2u","CgfYyw1ZtMfTzq","B3jKzxi","q29SDw1Uv2LKDgHpDxrSAw5Lza","DxbKyxrLtM9KzuLUDgvYBMfSCW","C2nOzwr1Bgu","ltuSltqGmcWWic01ldq","6k+36ycj5OUP5PYi5lU9","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+phbHDgGGzd0ItteWidiWieWZmcaXmcbmntaGmJaGtduWidqWieWZmca1mcbmmtaGndaGwIiGzMLSBd0Ii2jMyMzIzIiGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIlZ48y2LYy2XLign4psiZmciGy3K9iJmWiIbYpsi4iIbMAwXSpsiJmtG5mgzMiI8+pc9ZDMC+","DY1MDwXSigGTzNvSBcbMBgv4igzSzxGTy29SigP1C3rPzNKTy2vUDgvYigDHCc0X","zMLYC3q","zgf0ytPPBwfNzs9ZDMCREg1Sla","DMLLD3bVCNqT","C2nHBgvz","CMv0DxjUigfYz3m7","zMXLEcbNyxaTna","DxnLCK5Vzgu","zgvNksa","sgfUzgXL","AwrLBNrPzMLLCG","6k+35Rgc5PwW5O2U","y29UBMvJDgfIBgu","Aw5Uzxjive1m","zMXLEcbMBgv4lwnVBa","C2TLD1GO","Bw9KztO","CgfYDgLHBe9IC2vYDMvY","zxzLBNruExbL","6ycj5OUP5zgO","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc94BwXUCY8","5lQl5lU25Rwb5yIB5BU65OIq5yQF","yxjNCY5WCMv2","ChjPBwfYEq","BM9KzxngB2n1C2fIBgu","D2LKDgG","ANn4CW","5Qch562+5Qc35BYp","yxbWBhK","5lIl5lIa5BM0icHdB250CM9S6zsU5yQG5y+Z5PA55zcr6zsUkq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","DhjHBNnPDgLVBG","CMvTB3zLqxr0CMLIDxrL","qMfJA3nWywnL","C3rHDhvZtgLZDa","zxzLBNq","Aw5Zzxj0qMvMB3jL","qwXPz25sAwDODe91DgXPBMvK","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","CMvJEwnSzufZEw5Jswq","CMvZAxPLrgLYzwn0Aw9U","6BYG5Qch6yEk5Ps+","6kEJ6zMK57Ue5zci","BM9Kzvf1zxvL","zxzHBhvHDgvtDgf0DxnfEhbYzxnZAw9U","DhjPBq","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","y3vZDg9T","5zcr5zcoidmG6Ag1","u2LTCgXLqMv6AwvYrwrNzuLUDgvYBMfS","y3jVC3m","zxjYB3iWmdi","AgvPz2H0","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","6iEQ5A6A5lMj","x19LC01VzhvSzq","y3jLyxrLrgvMyxvSDfn0yxr1CW","Bw91C2vTB3zLlMrYywCGBw91C2v1Cc5KCMfN","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi4mci+pgvSBgLWC2uGy3G9iJmWiIbJEt0ImtaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJXYzwn0ihG9iJuIihK9iJeWiIb3Awr0Ad0IntaIigHLAwDODd0InJaIigzPBgW9iInMmgyWzJaIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+pgvSBgLWC2uGy3G9iJmWiIbJEt0InZaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJWVC3zNpG","5zYg6kEs55+P5B2I","DhjHBNnSyxrL","yM9VBgvHBG","5y+V6ycj77YA57Ur5A6A5zco6kgO6l6+5BYp5lIT55QeigrHDgeG5lYA5ywi5zci5BM26k+L5PwW5O2U6zUg55QeihnHBxbSzE+8JowgJEwqIow5TUEuU+w4G+s8OowfPEEAHoI/KoIHJoAxTUAvSoAnRUoaGUs4JEE7KEwUMUAxTIbKyxrHios7HEADPEIhQUI/KoIHJoAxTUoaGG","6lw354k5ifK","5A+85ywL5lI65PAW55s75BId77Yi5lIn6kAg55Uw5B2t5yMn55s75BId77Yj","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","y2XPy2S","Bw92zwq","t1busu9o","BM9Kzu9YAwDPBG","B25fzgDLC0rLBgv0zq","C2vSzwn0q2HPBgq","5BYa5AEl5A2J5BQM","57Ut5P2F5PE26zE0","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","imk3ia","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","jhbYzxyU","5zYO562B6ycj6Ag55lIT5PcC57sI","5lIl5lIQ5PYiicJNV7VPOBxKUiVPLk4P","54k555s757Q/77Yi5lIT5B+d57Q/77Yj","zM9YBwf0shnS","C2HVD0DYAwq","5BYa5AEl5PEL5PYF","y29UDgvUDgvKAxrHyMXL","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iIm1mMm0mweIlZ48l3n2zZ4","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","5PwW5O2U6k+35Rgc","zxzLBNrgBg93","DgLTzq","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","twv0yq","yMX1zq","z2v0vMfSDwvgCM9Tugf0Aa","y2XPzw50tgvMDa","CMvHy3qTzMXVD19FAgfUzgXLlq","C2fTCgXLiow/HEMHU+AyRYbku09oiowVUEIXOEAiLUAvSoE7Ha","Aw5qCM9NCMvZCW","BwvTBW","x3bHCMvUDa","yxv0BW","566H55cg55s75BIdlI4U","Dgv4Dc14CYb0zxH0lwjSDwuTntaWigzVBNqTyM9Sza","Cc0ZigjVCMrLCI10igjVCMrLCI1NCMf5ltiWmcbIzY1NCMf5ltuW","5y+V5OUw5OU9","zg91yMXLq2XPy2S","A2v5Dxa","CgfUzurYywDNAw5N","5PQc5PEG5PwW5O2U","lMPZB24","DxbKyxrLtM9Kzq","wM9VBuLUt3v0BgLUzwq","rML0ifzPzxC","zxHW","yw55","y29UBMvJDgLVBG","lteWic0XmcaYmcaYma","CMvTB3zLq2HPBgq","6BYG5Qch6l+B5ywL","qxjYB3DsAwDODa","C2v0rgf0yq","B3b0Aw9UCW","zxzLBNrMBg93","zwrNzxm","tK9erv9eruXfveu","CMvTB3zLrxzLBNrmAxn0zw5LCG","6BYG5Qch5OYj5lIl","rgf0yvbVB2XnB2rHBa","y3jPC3bfzgDLCW","z2v0u2vYDMvYu3rHDgu","5A+85ywLiePtt04","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","C3r5Bgu","x2jSyw5R","5BEM5A+56B2q","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","Aw5PDgLHBfDPzhrO","ugfYzw50ig5VzguG","ugfYDgLHBa","BM9Kzuv2zw50qMLUzgLUz3m","A2v5zg93BG","C3bHy2uTEs0Z","5l+D55wz5Bcp5PwW5l2n","56gU6k6K5yIG6zMK","AgfZvMfSDwu","DgfYz2v0q2fUDMfZswq","x2fKzfbHCMvUDa","BM9Kzxm","yxr0CLr3zwvU","yxv0BY1ZDgfYDc1YzxzLCNnL","vw5ZDwjZy3jPChrPB25fCNjVCG","yxbWzw5Kq2HPBgq","5lIk5lIa5BM05lUJ","z2v0qxr0CMLIDxrLtLm","DY04igGTmc41igjNlwDYyxKTndaW","zM9YrwfJAa","tufyx1zbtfvf","56gU6k6K5yIG6zMK6k+L5zcm57QN5ywZ57o757Ue77YF","DxnLv2f0y2G","i2zMzMzMzG","DhjHBNnSyxrLvg8","ChGSia","5PAh5lU25Qc85BYp6zsz6k+V","C2vUDa","5yIG6zMK6ycj5lITicHezwXLDguP","BwLUAw1HCc5HCMLHtgfIzwW","B25dBgLJAW","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltq","vw5HyMXLihrVigXPzNqGDw5RBM93BIbpyNnLCNzHyMXLihr5Cgu","C2nHBgvfEhrLBNq","Cg9W","mtyZmdeWtgzuzhf3","EM9VBq","zg93BG","iIbKB2vZig5VDcbLEgLZDcWGAxqGBwf5igHHDMuGyMvLBIbYzw1VDMvKlIbuAgLZignHBIbOyxbWzw4GD2HLBIbHig5VzguGAxmGzgvSzxrLzcbIzwzVCMuGDgHLicjVBK5VzgvdBgLJAYiGAgfUzgXLCIbPCYbJywXSzwqU","zwrNzvf1zxvL","rg93BMXVywrpDxrSAw5Lza","B25nB3zLu3rHCNq","u2LTCgXLqMv6AwvY","5Pon5l2C5OIq5yQF","zML0vMLLD1jLC29SDMvY","mc4X","iZCYmMvKmq","zM9UDc1TzwrPDw0GDgv4Dc1HBwjLCI05ntaGBwiTmG","y2fUDMfZq29UzMLN","tw92zwqGC2vSzwn0zwqGBM9Kzsa","zxjYB3jZ","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","BgLI","zMLSBenVBg9Y","Bw91C2vKB3DUlNPVB20","zgvNkq","DxbKyxrLq29UBMvJDgLVBG","DY1MDwXSigGTndGGCc0ZigjVCMrLCIbIB3jKzxiTz3jHEs0ZmdaGCM91BMrLzc1SzYbMB250lw1VBM8GDgv4Dc1ZBsbYzxnPEMuTBM9UzsbMB2n1CZPVDxrSAw5Llw5VBMuGzM9JDxm6CMLUzY0YigzVy3vZoNjPBMCTyMX1zs01mda","y3jLyxrLrwXLBwvUDe5t","yMLUze5VzgvfDMvUDa","yxv0B1bHBK9UtM9KzurYywC","zgf0ys1Oyw5KBgvPza","AhjLzG","Dg9W","C2v0vgLTzq","zhjHz3n0yxj0lMrYywC","y3vYCMvUDfn0yxr1C0LK","ww91igfYzsb1C2LUzYbHBIbVDxrKyxrLzcWGChjLlxjLBgvHC2uGywXWAgeGB2yGuMvHy3qGmtGGDgHHDcbKB2vZig5VDcbZDxbWB3j0ihvZzvn5BMnfEhrLCM5HBfn0B3jLlIbuAguGDxnLlxn5BMmTzxH0zxjUywWTC3rVCMuGC2HPBsb3AwXSig5VDcb3B3jRignVCNjLy3rSEs4GvxbNCMfKzsb0BYbHig5LD2vYihbYzs1YzwXLyxnLlG","Aw5WDxq","D2fYBMLUzW","ChjLCgfYzuv2zw50qxjNCW","zw5KlNjLBw92zq","y3jLyxrLrxzLBNq","Bw91C2vy","DhLWzq","C291CMnLug9ZAxrPB24","zxH0zxjUywXfDMvUDeTLEq","q2XVC2vpDxrSAw5Lza","ieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCIm","Bwv0yq","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihCTzNvSBcbWCI00","5y+V54k55yE7","B2jZzxj2zq","Cg93","vgHLifjLywn0iezSB3CGCgfYzw50ignVBNrHAw5LCIbUzwvKCYbHihDPzhrOigfUzcbHigHLAwDODcb0BYbYzw5KzxiGDgHLigDYyxbOlG","B25nB3zL","y2XLyxjbBgW","55s75BIdia","ios4QUEkTUAaGq","Bwf4","BwfYA2vYu3rHCNq","55s75BId5A+85ywL5OIq5yQF77Yb","ugX1C091DgXPBMvK","Bw91C2vTB3zLlNPVB20","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","zgLZCgXHEwfIBgu","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","DxnLrgvIDwDwywX1zq","CMzFx2vKz2uT","BMv3wq","zw5HyMXLza","C2vSzwn0C3rHCNqUzhjHzW","zxzLCNK","yM9YzgvYq29SB3i","tM8GC3rHCNqGBM9KzsbMB3vUzcbPBIbLDMvUDcbMBg93","AxnwAwv3","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","x190CMfUC2L0Aw9U","5P2Hl+MHTq","tM8GDgLTzw91DcbWCM92AwrLzc4","A2v5","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q61","yMfZzvzHBa","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMuGB3zLCMzSB3CTAgLKzgvU","5ywL5y+c5zcn56EW77Yi5OYj6l+E57Q/6Ag65BQp77Yj","ChvZAa","mtm1ntuWodbAu09ssfG","5BYa5AEl5PYi5lU9","zgf0yq","6zw/5yIslEEcUEs6PoABVW","ngDxwLbMrq","CMvSyxrPDMuG","BxqTmIbWltiGyM9YzgvYihjVDw5Kzwq","yMfJA2DYB3vUzenVBg9Y","BM93AgvLBa","5A+85yE6iePtt04","CMLNAhq","DY00igGTncb0zxH0lwjSDwuTnJaWigjVCMrLCI1NCMf5ltmWmcbYB3vUzgvKigzVy3vZoNjPBMCTyMX1zs01mda","x196B29T","x3zHBhvL","sgfUzgXLoIboBYbUB2rLigLKigzVDw5KlIbnywTLihn1CMuGDg8GB25SEsb1C2uGysbiyw5KBguGAw5ZAwrLigeGy3vZDg9Tie5VzguU","vg9W","57ky6ls0iePtt04G5yAf5A65lI4U","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBwLU","rgvSzxrL","z2v0tM9Kzuv2zw50qMLUzgLUz3m","l2rPC3qVC3r5BguUy3nZjYbVCIbIyxnLlMnZCYb0BYbTywTLihn1CMuGzxzLCNL0AgLUzYbPCYb3B3jRAw5NihbYB3bLCMX5lG","B25tzwXLy3rPB25eCMfNu3rVCa","zw5Kwq","tw9KywW","ig5VDcbMB3vUza","57Ur5A6A54MP5PAz","vxbSB2fKignHBMnLBgXLzcbVCIbMywLSzwq6","mxb4igrHC2HLzcb0CMfUC3bHCMvUDa","qMv6AwvYrwrNzq","zgLZCgXHEu5HBwu","EM9VBs53AgvLBa","CMvHy3qTzMXVD19FCgfUzwW","sw1Hz2u","yM91BMrHCMLLCW","vw5KB091DgXPBMvK","Dhj1zq","q3vZDg9TrxzLBNq","zwXLBwvUDhntzwXLy3rHyMXL","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","vevyva","CMDIysG","Bwf0zxjPywXZ","Ac0XmIbIzY13AgL0zsbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltq","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/ksvCCYO","DxnLCLnLBgvJDgLVBLjLy3q","qLvuve9o","8j+sOsdMJ5dNPlRVVjRMI5BMI73NIANMLPNLIldNLlVLUipLIjVLU7ROIOlNGRNVViZNGRNLH7VNUR/MNAhNIANMLPNOV5VLHAxNU5JLIlBMQkhLVi8","C2v0rwrNzxm","CMvZDgfYDa","C3rVCa","5PwW5O2U5RgG","C2HPzNrlzxK","5PQc5PEG5PwW5O2U6zUg77Ym6k+35OMt5BYa44cm5PwW5O2U5RgG44cn5RE75yQG","5BEY5RE75yQG","tgLZDa","Dg90ywXjBMnVBwLUzW","CMHV","54k55yE76zMn5BQp","mda1","yMCTz3jHEs0XmdaGChGTmsbYB3vUzgvK","BM9Kzu5HBwu","zxzLBNrsB290CW","z2v0rxzLBNrcBg9JAW","BMf0AxzLrxzLBNq","y29UDhjVBhmUyxjPyuXHyMvS","CMvXDwvZDefZEw5Jswq","zw5KlG","DMfSDwvZ","mdaZ","B25gAw5HBgL6zq","y29UDgvUDeLUzM8","Dgv4Dc1Jzw50zxiGDgv4Dc14CYb0zxH0lwDYyxKTntaW","B25dB25Uzwn0u3rHCNq","BgfZDeLUzgv4","6k+35AgR5yAz5Asw6yoO5PA55Rov5Qch6k+g","CxvLCNLtzwXLy3rVCG","Cg9ZAxrPB24","5A2q6iQc54k5ia","AwnVBG","C3rHy2S","CMvHy3qTzMXVD19FzwrNzxvWzgf0zxi","Aw50zxjUywW","Aw5ZDgfUy2u","5yAf6l656lED","zwrNzq","5lIk5RI46l+E57Q/oG","x19KzwzHDwX0x18","y29TCgXLDgu","C3rHCNry","y29Kzq","BgvMDa","rxzLBNrgBg93qMLUzgLUzW","5PQc5PEG54MP5PAz","y3vYCMvUDa","jhTSywjLBh3MNidLSjeKE21PBN3KUkRLRzFNRky","B25fzgDLC0nOyw5Nzq","BxqTncbMBgv4igP1C3rPzNKTzw5K","C3rYB2TLv2LKDgG","xhmQkfSRlv0/xgqRkvXZkG","B3DUzxjtvKDfBgvTzw50","y3jLyxrLrxzLBNrgBg93ugLWzwXPBMu","y29UC29SAwrHDgu","y2XPzw50wa","y3LHBG","C3rYAw5NAwz5","Dgv4DgfYzwe","xcKK","Dw5RBM93BIb0ExbLoIa","ChGPihnJywXLka","C29YDa","yxrHBG","jhTSywjLBh3ML6xMNj/MOlZLVi/ML6dMLyG","BgfIzwXcz1bHzgrPBMC","6ycj5OUP5PYi5lU9","Dw5ZDwjZy3jPyMu","zgvMyxvSDa","BwvHC3vYzwq","6ycj5OUP5BEY5RoO5yAm55Qe5Asw6yoO5PA55Rov","y2XHC3m","BgLUzvr5Cgu","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","DhjPz2DLCK5Vzgu","zNv0DxjL","57+75yIW5lIl5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","DxnLq2fSBgjHy2S","qxjYB3DvCe91DgXPBMvK","mxb4ihnVBgLKicnMmgyWzJa","CMvHy3qTzMXVD19FzwrNzq","ywjZB2X1DguGDg9WltaGBgvMDc0W","zMXLEc1ZDgfYDa","5BEY56Ab55sO","w2nVBNrLBNrLzgL0ywjSzt0IDhj1zsjD","jhTSywjLBh3LV4xPOBVMMk/LHBBKUk3KUidKUkPBjhTLBNvTFv0","CMvHy3qTzMXVD19Fy29UDhjVBhmTyNv0Dg9U","BgLUzurYyxDPBMC","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","igrVzxmGBM90igv4Axn0lG","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","D2L0Aa","CMvKDwnL","mI4WlJa","C3rHDhvZswq","y2LYy2XL","CMvHy3qTzMXVD19FzwrNzwXHyMvSlxjLBMrLCMvY","5yIG6zMK5PAh5lU2","y29UC3rYywLU","5PEG562B6ycj6Ag5","zg9TywLU","C3bSAxq","zMXLEa","DgfWrgLZDgfUy2u","DgfYz2v0ug9ZAxrPB24","Dg91y2GX","mdaX","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","y29UDgv4De1LBNu","C25HCeDYAwq","zgvZDhjVEq","zMXLEcbMBgv4lwnVBca","BM9KzuLK","AwXSzwDHBcb0ExbLoIa","CMvHy3qTzMXVD19FzwrNzs1KzxnJ","6l6t5ywL5Qch562+5PAh5PYS","tM9KzvjLBMrLCMvY","AxntDg9WCgvK","u3rLCevKz2u","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGigzPBgu6BxiTncbMAwXLoNb5ltiGzMLSztPWEc00cIaGicaGicaGicaGicaGzMLSztPYB3vUzgvKlwz1BgWGzMLSztPIB3jKzxiTmaOGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicbMAwXLoMjNlwjSDwuTntaGzMLSztP0zxH0lwjSDwuTnZaWcIaGicaGicaGicaGicaGAg92zxi6zMLSztPIzY1IBhvLlteWma","6k+35AgR5yAz5OMN6kgm5lUJ56cb","z2fTBwe","C2HVDwXKvw5ZDwjZy3jPyMu","yM9YzgvYuMfKAxvZ","AxneCMfNz2fIBgu","DgHYB3C","mLHuANDosG","zMLSDgvY","yw50ze1LC3nHz2u","zw5KlNn0EwXLlG","zg9JDw1LBNq","CMv0DxjU","5RE75yQG5ywL5y+c6kgm77Yi56YS5yEG5lIQ5y+c5PwW77Yj","AxngAw5PDgu","yMX1CG","5y+Q6io95lIk5lYG5zU+54Mh5PAh5lU2iq","zgvMyxvSDevKz2vpChrPB25Z","A2v5CW","x2vUDgvY","6k+36ycj5OUP5PEL5PYF","vg9VBhrPCa","y3vYC29YlxbVAw50zxiGBwiTma","BgLUzwfY","yNvPBhrPBG","B3DUzxjeB2n1BwvUDa","C2v0vMLLD3bVCNq","D2HLzwXezwX0yq","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltmGDY1MDwXSihb5ltiG","zgvMyxvSDfzPzxC","zM9JDxnHyMXL","mJiWzKjNEK9W","ChjVCgvYDhK","CMvZzxrtzwXLy3rLzevSzw1LBNrZ","57Ut5P2F5BM05lU9","Aw1Tzxi","yM91BMreyxrHC2v0swq","yxv0B1bHBLnWzwvK","BMv4DfnPyMXPBMC","Dg91y2HLBMq","zxH0zxjUywXiyw5KBgvYs2v5","yMCTD2HPDguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWihjVDw5KzwqTBgCGCc0Zig1PBI13lvSXodbWEf0GC2HHzg93lw1K","zg9Tqxr0CMLIDxrLCW","DxnLzfjPz2H0tw91C2vcDxr0B24","Dg91y2HTB3zLlNPVB20","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWltq","u3rYywLNAhrfzgDL","x19UzxDFxW","kow9K+wjJsK","x3rOCM93swzdBg9Zzwq","x2nVBxbSzxrL","Dw5VyNnLCNzL","zw1PDa","BwfYA2vYvw5PDhm","CMvHy3qTzMXVD19Fy29UDhjVBhmTzML0DMLLDW","zxHLy3v0Aw5NigeGy2fUy2vSBgvKigfJDgLVBG","yxrHBJi","iZe4otbMzG","5lIl5lIa5lIw57QQ","DgL0Bgu","iIWGzwrNzsbPzdOG","5PYQ55+L55s75BId","6ycj5OUP5BM05lU9","77Ym6Ake6kEi5PE25lUL5QIH5P2/5lI65BQv5zci5BM255s75BId44cm5QIH5OUF5PwW5O2U44cn44cc5PwW57Ue5Qc85BYp6zYa5yYf5zcRig5HBwuG5A2x5Q6155sO5lQo6ycj5OUP44cc","x2v4zwn1Dgu","cIaGicaGicaGicbYB3vUzgvKlwXNihrYyw5ZAxrPB24TywXSigr1CMf0Aw9UltiWmcbZzwXLy3qTBM9UzqOGicaGicaGicaG","zNjVBNq","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","kgrHDgePid0+igjVB2XLyw4","C2vSzwn0zwrtDgf0Dxnjza","yw50za","Dg9gAxHLza","C2L6zq","C2LIBgLUz3m","q29WEu91DgXPBMvK","5y+Z6zsU6i+C5y2v","DhjHBNnPDgLVBIbUB3qGzM91BMq","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","nZiYnduXA1fdsMD6","BM9Uzq","yM9Sza","zxHWyw5KugfYzw50","uMvHy3qGrMXVDW","zw5KC1DPDgG","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Ilti","zxjYB3iWmtu","Bwf0y2HLCW","C3r5BguU","yMLUze5Vzgvjza","C3vIC2nYAwjL","5Asw6yoO5lQl5lU25Qch6k+g","rxzLBNqGyMXVy2SGBM90igzVDw5KoIa","zgvSyxK","zgf0ys1Oyw5KBgvWB3m","Axnoyu4","z3jVDxa","u0vmrunu","57Ue5zci6ycj5lIT6iQc54k5","C2v0vhjHBNnMB3jT","BM9qyw5dBgfZC05HBwu","AgfUzgXLCG","i2zHogmXnG","5PAh5PYS5Qch562+","vgHLihjLC3vSDcbVzIbNzxrtBMfWC2HVDcbZAg91BgqGyMuGy2fJAgvKihrVigf2B2LKigfUigLUzMLUAxrLigXVB3a","qxjYB3DeB3DU","q29UDhjVBhm","DMfSDwvgB250u2L6zq","z2v0u3rHDgu","zMLSzxm","B25oB2rLq29UDgv4De1LBNu","zxH0zw50","DgLTzxi","Bwf0zxjPywWTChjLDMLLDYb3lteYigGTmtiGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Jzw50zxiGyMCTD2HPDguGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","Bw91C2vpDMvY","zxzLBNrcBg9JAW","C29Tzq","zxHWB3j0CW","yMfZAwm","CM9VDfbHCMvUDeLUzgv4","C3rYAwn0","57Yw6l6roIa","6ycj5OUP5PEL5PYF","Dgv4Da","5Qch6k+g5lIn6io95lI656M6","ywrK","BM9Kzs5Hmtf5rgvZy3jPChrPB24UyxjPyuXPDMvnzxnZywDL","zM9UDc1Zzw1PyM9Szcb0zxH0lwDYyxKTnZaW","i2zMngq0zG","z2v0qM91BMrPBMDdBgLLBNrszwn0","Bw91C2v1Ca","DhjHBNnSyxrLwa","y29TBw9Utg9JywXL","zM9YBwf0sgv4oa","C2v0u3rHDgu","5Asn5yI25OIq5yQF","y2fUDMfZswrZ","Dgv4Dc1ZBsb0zxH0lwDYyxKTnZaW","C3vWChjLC3nLza","zxHLy3v0B3juExbL","Bw91C2vmzwf2zq","Dg9qB3nPDgLVBG","C291CMnLswq","57ky6ls0iePtt04G5yAf5A6577YA","zM9UDfnPEMu","55wz56M65l2/55sOigfUDgqG6BUy6k6K77YB5AgRidaG6kgO56s65lIn6iEQ5yQO5ywZ6zET","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","vgv4DefYzwe","uMvHy3q","CMvHy3qTzMXVD19FBwLUAw1HCa","5lIk5A+56B2q","sw5WDxroDw1Izxi","Eg1SBNm","BgLUzs1KCMf3","vg9Nz2XLieLUDgvYywn0AxzPDhK","5PwW5O2U5QIH5OUF","CgfUwM9VBq","C3rHCNroB2rLwq","u2f2zu91DgXPBMvK","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","Dw5IAw5KqwXSrM9YtM9Kzq","ttaGmgGZmNy0lJjimhO","DgvZDa","CMDIka","DgHLBG","6ycj5OUP5BM05lUJ","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlwWGyM9YzgvYlwDYyxKTmJaW","6ycj5OUP5QIH5BYp","Dgv4DenVBNrLBNq","CMvZzxrgAwvSzhm","q29UBMvJDgLVBKXPBMu","AgfUzgXLrg9TtM9Kzq","qNv0Dg9U","mtaWjq","6Ake6kEi5PAh5lU2","yxjPyvjVBgu","C3bSAwnL","5yAf572U5yQO5l2C5PYQ6ycj5OUP57g75z6l","5y+n6ycj5B2t6Ag1","rxzLBNq","Bw91C2vKB3DUlMrYywC","Aw50zxjYDxb0lNPVB20Gzw5KlNPVB20","55s75BId5yIx6kgO","zxjYB3iWmte","zMLUywXPEMu","Dg91y2HLBMqUEM9VBsb0B3vJAgnHBMnLBc56B29T","uMvHy3rAB29TugfUugLUy2G","zxzLBNrgBg93rgf0yq","q2fUDMfZ","AgLKzgvU","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iG","ugfUzwW","CgfYzw50","DhjPz2DLCK5VzgvdAgfUz2vZ","AgfZ","CNvUDgLTzuHHBMrSzxjZ","5PEG5zU+54Mh","q29UzMLNrwrPDg9Y","twvZC2fNzsdLHAJLSydMJ5dNPlOGkgfUDgqP","C3LZDgvT","DgHPy2TUzxnZ","Cgf0DgvYBG","BgfIzwW","ig5VDcbMB3vUzc4GugXLyxnLig1HA2uGC3vYzsb0Agf0ihbHCMvUDcbUB2rLCYbHCMuGAw4GzNjVBNqGB2yGDgHLAxiGy2HPBgqGBM9KzxmGAw4GDgHLig5VzgvZigfYCMf5lG","EGOGicaGicaGie0","CMvSyxrPDMu","C2fTCgXLsNnVBG","C2v0vhjHBNnSyxrLrxH0zw50","r3jVDxbpDxrSAw5Lza","B25SB2fK","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","x19KyxrHx18","z2v0qKjVEa","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq","y29YBMvY","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","Cgf0Ae9WDgLVBNm","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","C3vIBwL0","u21VB3rOu3rLCa","5PkK6zsaicHdDhjSk1OP","yNvPBhrPBKnVBMzPzW","y2XPzw50sgvPz2H0","BgfIzwXgB250v2vPz2H0","54MP5PAz5BQt","6iom5PMV6AkC6iMY","BgLNAhq","mtjWEcaW","57Ut5P2F5PYi5lU9","C2vSzwn0zwroB2rLCW","ANn4uNvUDgLTzq","C21VB3rOC3rLCa","Dg91y2GTywn0Aw9U","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY0WlJuGAc0ZigjNlwDYzwvUltuWma","5zcm57QN5ywZ57o757Ue","6ycp5PIo5BQM","AxntzwXLy3rHyMXL","u3DPDgnO","yxbWBgLJyxrPB24","CMvHy3qTzMXVD19FBM9Kzs0","C2v0qxr0CMLIDxrLCW","Dg91y2HHyMXL","57+75yIW5lIk5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","zMLUza","C2vSzwn0","x25Vzgu","iZCZzdeZza","x3jLBw92zvbHCMvUDa","teLorq","qxjYB3DeB3DUt3v0BgLUzwq","Bg9JywXLq29TCgfYzq","Cg9PBNrLCI1LDMvUDhmTBM9Uzq","yxbWBgLJyxrPB24VANnVBG","Dgv4Dc14CYb0zxH0lwDYzwvUltyWma","y3vYC29Ylw1VDMu","Dg91y2G","y2fUDMfZzxm","6BYG5Qch56E75yE6","Bg9JywW","6k+35AgR5yAz5zcn56EW","54MP5PAz5BgE5OcN","yxn5BMnjDgvYyxrVCG","lMrYywC","oJPLEhq6oG","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","uMvHy3qGrMXVDZOGDhjPz2DLCIbLzgDLignOyw5Nzxm","5zcr5yMniduG6Ag1","zM9UDc1TzwrPDw0","C2nOzw1LxW","DxjSkcnNCMLKkq","i2q5zdLKoq","CgvUzgLUzW","Dgv4Dc1ZBsb0zxH0lwDYyxKTnJaW","zxzLBM9Kza","6k+36ycj5OUP5BM05lU9","nNb4idHWEa","C3jJ","C3rYB25N","x2nHBgW","y292zxi","BNCTCMvZAxPL","u3rLCa","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","x3bHCMvUDhm","q29UzMLNuhjVDMLKzxi","5zcr5zcoiduG6Ag1","ChGG","zwfJAa","C3bHy2uTEs00","z2v0u2nYzwvUq1rn","ChjLDMvUDerLzMf1Bhq","C3rHCNroB2rLwa","jsWG","5OMN6kgm5PA55BYp","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","zxHLy3v0zq","Dg91y2HZDgfYDc56B29T","y2XHC3nmAxn0","CMzFx21PBMLTyxa","5lQl5lU25z2x5PYQ6ywn572Uigv4DgvYBMfSsgfUzgXLCKTLEq","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","rxHWzxjPBwvUDe91DgXPBMvK","BwfYz2LU","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","y29UDhjVBa","ywjZB2X1DguGyM90Dg9TltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","562j5Q+u57YP5Ps+6iQc54k555Qe5A696AUy","5ywZ6zET6kgm","zw50CMLLCW","6yEn572U6kEg5zU+","zw1WDhK","y3vYCMvUDenHBNzHC0LK","6BUy6k6K5yc877Yi5Ash55sO77Yj","y2XPzw50wq","zMXLEc0XigGTzNvSBcbIzY1NCMf5lteWma","qxjYB3DvCa","DY1MDwXSia","mJu3mdu5y0XoBgnW","vMvYDgLJywXbBgLNBLrVCe91DgXPBMvK","vgLTzw91DevYCM9Y","lIbozxCGCg9ZAxrPB24SihG6ia","y29WEq","B3jPz2LUywXfDMvUDa","y29SBgvJDerHDgfZzxrgAwvSzfbHDgHZ","DgHHDa","C2nHBguO","BM93","zgvZyW","CMvHy3qTzMXVD19FDMLLD3bVCNqGEhLMBg93x192Awv3Cg9YDcbYzwfJDc1MBg93x19JB250ywLUzxi","5RE75yQG5lQl5lU25z2x","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","5zcm57QN5ywZ57o7","ywrKrxzLBNrmAxn0zw5LCG","ywX0s2v5","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","z2v0t3DUuhjVCgvYDhLtEw1IB2XZ","5PAW5BU655s75BId","tgf5B3v0","6yEn5ygAicHdDhjSk1KP","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","5BYa5AEl5BM05lU9","y29UC3rYDwn0B3i","6k+36ycj5OUP5BEM5l6N5lIa5lIQ5zcm57QN5ywZ57o757Ue","ltzWEa","CMvHy3q","yxjNCY5WCMv2mq","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","DMfSDwu","C3rHDhvZ","CMvHy3qTzMXVD19FC2vSzwn0Aw9UihjLywn0lwzSB3DFx2nVBNrHAw5LCG","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","x2v4Axq","BM9KzxndB25Uzwn0ywjSzq","zgf0Dw0","CMvHy3qTzMXVD19FBwfYA2vY","C3rHCNq","y3jLyxrLrwXLBwvUDa","BMv4Da","iw1Ylta","ANn4","CMvHy3qTzMXVD19FBM9Kzq","iZeZyZjJmG","CMzjza","BM9Kzq","zxjYB3iWmdK","Aw50zxjYDxb0","mdeX","6l6t5ywL54Q25Ocb5zcn56EW","zgvSzxrHyMXL","5PAW6iQc54k5","C2LTCgXLyMv6AwvY","5PYQ6ywn572U55UU5Qch55s75BIdieLe","5y+Z5A+56B2q","DxnLu3LUy0v4DgvYBMfSu3rVCMu","C291CMnLsgfUzgXL","DMfSDwvgB250v2vPz2H0","iZuYyZqXyq","z2v0uMvHzgvY","x25HBwu","5PEG54Q25Ocb","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaWig1Iltm","5lIk5lIQ5PYiicJNV7VPOBxKUiRPLk4P","y2XLyxi","ufjpuevsvfLFq0HbtKDf","ugXLyxnLihvZzsbGz2v0tM9KzxncB3vUzhnGigzYB20GyhvZzvjLywn0rMXVD2aVyhvZzvn2zwX0zuzSB3DGigHVB2SGDg8Gzw5ZDxjLignVCNjLy3qGDMfSDwvZigzVCIbZDwiGzMXVD3mUieLMig5VDcbWB3nZAwjSzsWGEw91igHHDMuGDg8GChjVDMLKzsbHig5VzgvmB29RDxaGDg8GC3vWCg9YDcbZDwiGzMXVD3mU","zgvSDgfnB2rL","B2zMC2v0sgvPz2H0","C2v0tM9Kzuv4DgvUDa"];return _0x1b50=function(){return Me},_0x1b50()}function _0x4806(Me,l){Me=Me-361;const B=_0x1b50();let z=B[Me];if(_0x4806.XvjAdb===void 0){var ae=function(d0){const a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let rt="",Nt="";for(let Qe=0,Bn,Dn,St=0;Dn=d0.charAt(St++);~Dn&&(Bn=Qe%4?Bn*64+Dn:Dn,Qe++%4)?rt+=String.fromCharCode(255&Bn>>(-2*Qe&6)):0)Dn=a.indexOf(Dn);for(let Qe=0,Bn=rt.length;Qe<Bn;Qe++)Nt+="%"+("00"+rt.charCodeAt(Qe).toString(16)).slice(-2);return decodeURIComponent(Nt)};_0x4806.zeULrZ=ae,_0x4806.VDfstB={},_0x4806.XvjAdb=!0}const zx=B[0],l0=Me+zx,be=_0x4806.VDfstB[l0];return be?z=be:(z=_0x4806.zeULrZ(z),_0x4806.VDfstB[l0]=z),z}const a=_0x4806;var rt=document[a(1990)](a(1346));rt[a(1800)]=`.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.ConfigEditor-module__configEditor__dinNG{width:100%;height:100%;display:flex;flex-direction:column}.ConfigEditor-module__configEditor__dinNG .ant-layout{background:#f5f5f5}.ConfigEditor-module__configEditor__dinNG .ant-layout-sider{background:#fff}.ConfigEditor-module__configEditor__dinNG .ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding:8px 0}.ConfigEditor-module__configEditor__dinNG .ant-list-item{padding:8px 12px}.ConfigEditor-module__canvasGrid__yL2Pn{background-image:linear-gradient(#e8e8e8 1px,transparent 1px),linear-gradient(90deg,#e8e8e8 1px,transparent 1px);background-size:20px 20px}.ConfigEditor-module__nodeSelected__CePHY{box-shadow:0 0 0 2px #1890ff,0 0 10px #1890ff4d}.ConfigEditor-module__dragging__w3tvz{cursor:grabbing!important;opacity:.8}.ConfigEditor-module__toolbarBtn__vRYDU{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.ConfigEditor-module__toolbarBtn__vRYDU:hover{background-color:#f3f4f6}.ConfigEditor-module__toolbarBtn__vRYDU.ConfigEditor-module__active__nREu2{background-color:#dbeafe;color:#2563eb}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item{margin-bottom:12px}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item-label{padding-bottom:4px}.ConfigEditor-module__materialItem__rDby0{transition:all .2s}.ConfigEditor-module__materialItem__rDby0:hover{background-color:#f9fafb}.ConfigEditor-module__materialItem__rDby0.ConfigEditor-module__selected__rIJzf{background-color:#eff6ff;box-shadow:0 0 0 2px #60a5fa}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar{width:6px;height:6px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb:hover{background:#a8a8a8}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.m-0{margin:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.\\!mr-0{margin-right:0!important}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\\[400px\\]{max-height:400px}.w-0\\.5{width:.125rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\\[180px\\]{min-width:180px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\\!bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\\/50{background-color:#eff6ff80}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\\/10{background-color:#3b82f61a}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1)) }.ring-opacity-50{--tw-ring-opacity: .5 }.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.file\\:mr-4::file-selector-button{margin-right:1rem}.file\\:rounded-full::file-selector-button{border-radius:9999px}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-blue-50::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.file\\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-semibold::file-selector-button{font-weight:600}.file\\:text-blue-700::file-selector-button{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.hover\\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:file\\:bg-blue-100::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1)) }
|
|
2
|
+
/*$vite$:1*/`,document[a(546)][a(1365)](rt);function Nt(e){const n=a;return e&&e[n(1268)]&&Object.prototype[n(436)].call(e,"default")?e[n(1582)]:e}var Qe={},Bn={exports:{}},Dn;function St(){const e=a;return Dn?Bn.exports:(Dn=1,(function(n){const t=_0x4806;function o(x){return x&&x[_0x4806(1268)]?x:{default:x}}n[t(1749)]=o,n[t(1749)].__esModule=!0,n[t(1749)][t(1582)]=n[t(1749)]})(Bn),Bn[e(1749)])}var kt={},Ko;function ls(){const e=a;if(Ko)return kt;Ko=1,Object[e(570)](kt,e(1268),{value:!0}),kt[e(1582)]=void 0;const n={items_per_page:e(1458),jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:e(1186),next_page:e(1155),prev_5:e(1899),next_5:e(1918),prev_3:"向前 3 页",next_3:e(1261),page_size:"页码"};return kt.default=n,kt}var It={},Pt={},At={},jt={},Zo;function ds(){const e=a;return Zo||(Zo=1,Object[e(570)](jt,e(1268),{value:!0}),jt[e(1764)]=void 0,jt.commonLocale={yearFormat:e(955),dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),jt}var Ro;function us(){const e=a;if(Ro)return At;Ro=1,Object[e(570)](At,"__esModule",{value:!0}),At[e(1582)]=void 0;var n=ds();function t(s){"@babel/helpers - typeof";const u=e;return t=typeof Symbol=="function"&&u(884)==typeof Symbol[u(2104)]?function(f){return typeof f}:function(f){const y=u;return f&&typeof Symbol=="function"&&f[y(1975)]===Symbol&&f!==Symbol.prototype?y(884):typeof f},t(s)}function o(s,u){const f=e;var y=Object[f(1651)](s);if(Object[f(1969)]){var g=Object[f(1969)](s);u&&(g=g.filter(function(p){return Object.getOwnPropertyDescriptor(s,p).enumerable})),y[f(1465)][f(1241)](y,g)}return y}function x(s){const u=e;for(var f=1;f<arguments.length;f++){var y=arguments[f]!=null?arguments[f]:{};f%2?o(Object(y),!0).forEach(function(g){r(s,g,y[g])}):Object[u(1111)]?Object[u(703)](s,Object.getOwnPropertyDescriptors(y)):o(Object(y)).forEach(function(g){Object[u(570)](s,g,Object.getOwnPropertyDescriptor(y,g))})}return s}function r(s,u,f){return u=i(u),u in s?Object.defineProperty(s,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[u]=f,s}function i(s){const u=e;var f=c(s,"string");return u(884)==t(f)?f:String(f)}function c(s,u){const f=e;if(f(2171)!=t(s)||!s)return s;var y=s[Symbol.toPrimitive];if(y!==void 0){var g=y[f(897)](s,u);if(f(2171)!=t(g))return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f(774)===u?String:Number)(s)}var d=x(x({},n[e(1764)]),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:e(2054),ok:"确定",timeSelect:e(2096),dateSelect:e(1754),weekSelect:e(1232),clear:"清除",week:"周",month:"月",year:"年",previousMonth:e(2015),nextMonth:e(1293),monthSelect:e(1580),yearSelect:e(1695),decadeSelect:e(1797),previousYear:e(1846),nextYear:e(1242),previousDecade:e(1366),nextDecade:e(371),previousCentury:"上一世纪",nextCentury:e(1691),yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return At[e(1582)]=d,At}var Et={},Jo;function _o(){const e=a;if(Jo)return Et;Jo=1,Object[e(570)](Et,e(1268),{value:!0}),Et.default=void 0;const n={placeholder:"请选择时间",rangePlaceholder:[e(2205),e(1287)]};return Et[e(1582)]=n,Et}var Fo;function Qo(){const e=a;if(Fo)return Pt;Fo=1;var n=St()[e(1582)];Object[e(570)](Pt,e(1268),{value:!0}),Pt[e(1582)]=void 0;var t=n(us()),o=n(_o());const x={lang:{placeholder:e(1653),yearPlaceholder:e(1907),quarterPlaceholder:"请选择季度",monthPlaceholder:e(1211),weekPlaceholder:e(901),rangePlaceholder:[e(1297),e(517)],rangeYearPlaceholder:[e(1974),e(1667)],rangeMonthPlaceholder:[e(1467),e(1861)],rangeQuarterPlaceholder:[e(1286),e(426)],rangeWeekPlaceholder:["开始周","结束周"],...t[e(1582)]},timePickerLocale:{...o[e(1582)]}};return x.lang.ok="确定",Pt[e(1582)]=x,Pt}var $o;function fs(){const e=a;if($o)return It;$o=1;var n=St().default;Object[e(570)](It,e(1268),{value:!0}),It[e(1582)]=void 0;var t=n(Qo());return It[e(1582)]=t[e(1582)],It}var er;function hs(){const e=a;if(er)return Qe;er=1;var n=St().default;Object[e(570)](Qe,"__esModule",{value:!0}),Qe[e(1582)]=void 0;var t=n(ls()),o=n(fs()),x=n(Qo()),r=n(_o());const i=e(491),c={locale:e(586),Pagination:t[e(1582)],DatePicker:x[e(1582)],TimePicker:r[e(1582)],Calendar:o[e(1582)],global:{placeholder:"请选择",close:"关闭",sortable:e(2033)},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:e(1613),filterCheckAll:"全选",filterSearchPlaceholder:e(1292),emptyText:e(1322),selectAll:e(2160),selectInvert:e(1810),selectNone:"清空所有",selectionAll:e(2097),sortTitle:"排序",expand:"展开行",collapse:e(1941),triggerDesc:e(1524),triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:e(2170),Previous:e(464),Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:e(990),itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:e(2160),removeCurrent:e(843),selectAll:e(2097),deselectAll:e(865),removeAll:e(1074),selectInvert:e(1810)},Upload:{uploading:e(941),removeFile:e(1611),uploadError:e(707),previewFile:e(1806),downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:e(1767),expand:"展开",collapse:"收起"},Form:{optional:e(2075),defaultValidateMessages:{default:e(490),required:"请输入${label}",enum:e(1599),whitespace:"${label}不能为空字符",date:{format:e(1578),parse:e(367),invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:e(393),min:e(1561),max:e(613),range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:e(668),max:e(2159),range:e(2164)},array:{len:e(545),min:e(599),max:"最多${max}个${label}",range:e(838)},pattern:{mismatch:e(688)}}},QRCode:{expired:e(773),refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:e(414)}};return Qe[e(1582)]=c,Qe}var Cx,nr;function gs(){return nr||(nr=1,Cx=hs()),Cx}var ys=gs();const ms=Nt(ys),ws=e=>(n,t,o)=>{const x=a;return o[x(1766)]=(r,i,...c)=>{const d=x,s=typeof r===d(1154)?l0[d(1106)](r):r;return n(s,i,...c)},e(o[x(1766)],t,o)},vs=ws;function ps(e){return Array[a(927)](e)}function tr(e){const n=a,t=[];for(const o of Object[n(1651)](e)){t[n(1465)](o);const x=e[o];if(x!==null&&typeof x===n(2171)&&!Array[n(927)](x))for(const r of Object.keys(x))t.push(o+"."+r)}return t}function bs(e,n,t){const o=a,x=e[o(1167)];if(ps(x)){if(n!=null&&t!=null){const r=x.find(i=>i[n]===t);if(r)return r}return{}}return x}function xr(e,n,t,o){const x=a,r=bs(e,t,o),i={...r};if(n&&typeof n===x(2171)&&!Array.isArray(n))return{...i,...n};if(Array[x(927)](n)){const c={...i};for(const d of n){if(!d||typeof d!="object")continue;const s=d;s[x(2115)]!=null&&(c[String(s[x(2115)])]=s.value)}return c}return i}const zs={id:"_",name:"_",sample:{}};function Mx(e,n,t){const o=a,x=e[o(1669)]!=null?String(e[o(1669)]).trim():"",r=x?t[o(1876)](c=>c.id===x):void 0,i=r??zs;try{const c=xr(i,n,e.boundDatasetBindCode,e[o(1183)]);return new Function(o(1468),e[o(816)])(c)===!0}catch(c){return console[o(656)](o(1076)+e[o(659)]+"]:",c),!1}}function or(e,n,t){for(const o of e)if(Mx(o,n,t))return o}function rr(e,n){const t=a;for(const o of e){for(const x of o[t(1537)][t(1247)])x[t(1669)]===n&&(x[t(1669)]=null,x[t(1108)]=null,x[t(1183)]=null);o.type===t(1728)&&o.children?.length&&rr(o[t(514)],n)}}function Bx(e){const n=a;for(const t of e){for(const o of t.contentInfo[n(1247)])delete o.bindCodes;t[n(1424)]==="group"&&t[n(514)]?.[n(2194)]&&Bx(t[n(514)])}}const Dx=(e,n)=>({id:e||be[a(1161)](),name:n||a(2038),nodes:[],canvasConfig:{width:1920,height:1080,background:"#00193C",showGrid:!0},viewport:{scale:1,positionX:0,positionY:0},selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null,history:{past:[],future:[]}}),Cs=()=>{const e=a,n=Dx();return{id:be[e(1161)](),name:e(2199),canvases:[n],currentCanvasId:n.id,siblingGroups:[]}},ir=Cs(),qn=ir[a(1889)][0],Ms={root:ir,materials:[],mode:"select",lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:qn.nodes,canvas:qn[a(1398)],viewport:qn[a(1187)],selectedNodeId:qn[a(669)],selectedNodeIds:qn[a(2207)],selectedStatusId:qn.selectedStatusId,history:qn[a(2166)]},pn=(e,n,t)=>({id:be[a(1161)](),type:e,targetId:n,payload:t,timestamp:Date[a(1960)]()}),He=zx.create()(vs((e,n)=>({...Ms,addCanvas:t=>{const o=a,x=Dx(be[o(1161)](),t||o(1437)+(n().root[o(1889)].length+1));return e(r=>{const i=o;r[i(1057)][i(1889)][i(1465)](x),r[i(1057)][i(1945)]=x.id;const c=x;r[i(1361)]=c.nodes,r[i(1152)]=c[i(1398)],r[i(1187)]=c.viewport,r[i(669)]=c[i(669)],r.selectedNodeIds=c[i(2207)],r[i(1702)]=c[i(1702)],r[i(2166)]=c[i(2166)]}),x.id},removeCanvas:t=>{e(o=>{const x=_0x4806,r=o[x(1057)][x(1889)][x(626)](i=>i.id===t);if(r!==-1&&!(o[x(1057)][x(1889)][x(2194)]<=1)){if(o[x(1057)][x(1889)][x(1808)](r,1),o.root.siblingGroups)for(const i of o[x(1057)].siblingGroups){const c=i[x(1768)].indexOf(t);c!==-1&&i[x(1768)].splice(c,1)}if(o.root[x(1945)]===t){const i=o[x(1057)][x(1889)][0];o[x(1057)][x(1945)]=i.id,o.nodes=i[x(1361)],o[x(1152)]=i[x(1398)],o[x(1187)]=i[x(1187)],o[x(669)]=i.selectedNodeId,o[x(2207)]=i[x(2207)],o[x(1702)]=i[x(1702)],o.history=i[x(2166)]}}})},switchCanvas:t=>{e(o=>{const x=_0x4806,r=o[x(1057)].canvases[x(1876)](i=>i.id===t);r&&(o[x(1057)][x(1945)]=t,o.nodes=r[x(1361)],o[x(1152)]=r[x(1398)],o[x(1187)]=r[x(1187)],o[x(669)]=r.selectedNodeId,o[x(2207)]=r[x(2207)],o.selectedStatusId=r[x(1702)],o.history=r[x(2166)])})},updateCanvasName:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1057)].canvases[r(1876)](c=>c.id===t);i&&(i.name=o)})},getCurrentCanvas:()=>{const t=a,o=n();return o[t(1057)][t(1889)][t(1876)](x=>x.id===o.root.currentCanvasId)},addSiblingGroup:(t,o)=>{const x=a,r=be[x(1161)]();return e(i=>{const c=x;i.root[c(369)]||(i[c(1057)].siblingGroups=[]);const d=i[c(1057)][c(369)][c(2194)]+1,s=Array[c(1139)](new Set((o||[]).filter(u=>i[c(1057)][c(1889)][c(1748)](f=>f.id===u))));i.root[c(369)][c(1465)]({id:r,name:t||"同级关系 "+d,canvasIds:s})}),r},removeSiblingGroup:t=>{e(o=>{const x=_0x4806;if(!o[x(1057)].siblingGroups)return;const r=o[x(1057)][x(369)][x(626)](i=>i.id===t);r!==-1&&o[x(1057)][x(369)][x(1808)](r,1)})},updateSiblingGroup:(t,o)=>{e(x=>{const r=_0x4806;if(!x[r(1057)][r(369)])return;const i=x[r(1057)][r(369)][r(1876)](c=>c.id===t);if(i&&(o[r(659)]!==void 0&&(i[r(659)]=o[r(659)]),o[r(1768)]!==void 0)){const c=new Set,d=[];for(const s of o[r(1768)])c[r(1826)](s)||x[r(1057)][r(1889)].some(u=>u.id===s)&&(c.add(s),d[r(1465)](s));i[r(1768)]=d}})},addCanvasToSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x4806;if(!r[i(1057)].siblingGroups)return;const c=r[i(1057)][i(369)].find(d=>d.id===t);c&&r[i(1057)][i(1889)][i(1748)](d=>d.id===o)&&(c[i(1768)][i(911)](o)||(typeof x=="number"&&x>=0&&x<=c[i(1768)].length?c[i(1768)][i(1808)](x,0,o):c[i(1768)][i(1465)](o)))})},removeCanvasFromSiblingGroup:(t,o)=>{e(x=>{const r=_0x4806;if(!x[r(1057)][r(369)])return;const i=x[r(1057)][r(369)][r(1876)](d=>d.id===t);if(!i)return;const c=i[r(1768)][r(419)](o);c!==-1&&i[r(1768)][r(1808)](c,1)})},moveCanvasInSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x4806;if(!r.root[i(369)])return;const c=r[i(1057)].siblingGroups[i(1876)](u=>u.id===t);if(!c)return;const d=c[i(1768)][i(419)](o);if(d===-1)return;const s=x==="up"?d-1:d+1;s<0||s>=c[i(1768)][i(2194)]||([c[i(1768)][d],c.canvasIds[s]]=[c[i(1768)][s],c[i(1768)][d]])})},nextSiblingCanvas:(t,o=!1)=>{const x=a,r=n(),i=r.root.siblingGroups?.[x(1876)](u=>u.id===t);if(!i||i[x(1768)][x(2194)]===0)return null;const c=i[x(1768)][x(1641)](u=>r[x(1057)][x(1889)].some(f=>f.id===u));if(c[x(2194)]===0)return null;const d=c[x(419)](r[x(1057)][x(1945)]||"");let s;if(d===-1)s=0;else if(d===c[x(2194)]-1){if(!o)return null;s=0}else s=d+1;return n()[x(2066)](c[s]),c[s]},prevSiblingCanvas:(t,o=!1)=>{const x=a,r=n(),i=r[x(1057)][x(369)]?.[x(1876)](u=>u.id===t);if(!i||i[x(1768)][x(2194)]===0)return null;const c=i[x(1768)][x(1641)](u=>r[x(1057)].canvases.some(f=>f.id===u));if(c[x(2194)]===0)return null;const d=c[x(419)](r.root[x(1945)]||"");let s;if(d===-1)s=c.length-1;else if(d===0){if(!o)return null;s=c[x(2194)]-1}else s=d-1;return n()[x(2066)](c[s]),c[s]},gotoSiblingCanvas:(t,o)=>{const x=a,r=n(),i=r.root.siblingGroups?.find(d=>d.id===t);if(!i)return null;const c=i[x(1768)][x(1641)](d=>r[x(1057)].canvases[x(1748)](s=>s.id===d));return o<0||o>=c[x(2194)]?null:(n()[x(2066)](c[o]),c[o])},getSiblingGroupsByCanvas:t=>{const o=a;return(n()[o(1057)][o(369)]||[])[o(1641)](r=>r[o(1768)][o(911)](t))},setSelectedNodeIds:t=>{e(o=>{const x=_0x4806,r=o.root.canvases[x(1876)](i=>i.id===o[x(1057)].currentCanvasId);r&&(r[x(2207)]=t,o[x(2207)]=t)})},addSelectedNodeId:t=>{e(o=>{const x=_0x4806,r=o.root[x(1889)][x(1876)](i=>i.id===o[x(1057)][x(1945)]);r&&!r[x(2207)][x(911)](t)&&(r[x(2207)][x(1465)](t),o[x(2207)]=r[x(2207)])})},removeSelectedNodeId:t=>{e(o=>{const x=_0x4806,r=o[x(1057)][x(1889)][x(1876)](i=>i.id===o[x(1057)][x(1945)]);r&&(r[x(2207)]=r[x(2207)].filter(i=>i!==t),o.selectedNodeIds=r.selectedNodeIds)})},clearSelectedNodeIds:()=>{e(t=>{const o=_0x4806,x=t[o(1057)][o(1889)][o(1876)](r=>r.id===t[o(1057)][o(1945)]);x&&(x[o(2207)]=[],t.selectedNodeIds=[])})},addNode:(t,o=!0)=>{e(x=>{const r=_0x4806,i=x[r(1057)].canvases[r(1876)](d=>d.id===x[r(1057)][r(1945)]);if(!i)return;const c={...t,id:t.id||be[r(1161)]()};i[r(1361)][r(1465)](c),x[r(1361)]=i[r(1361)],o&&(i[r(669)]=c.id,x[r(669)]=c.id,i[r(2166)][r(1090)].push(pn("NODE_SELECT",c.id)),x[r(2166)]=i[r(2166)])})},updateNode:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1057)].canvases[r(1876)](d=>d.id===x.root[r(1945)]);if(!i)return;const c=i.nodes[r(1876)](d=>d.id===t);c&&(o[r(721)]&&Object.assign(c.normalStyle,o[r(721)]),o[r(1537)]&&(c[r(1537)]={...c[r(1537)],...o[r(1537)]}),o[r(659)]&&(c[r(659)]=o.name),o[r(814)]&&Object[r(510)](c.controlInfo,o[r(814)]),o[r(514)]&&(c[r(514)]=o[r(514)]),i[r(2166)][r(1090)].push(pn(r(2017),t,o)),x[r(2166)]=i[r(2166)],x.nodes=i[r(1361)])})},updateNodeStyle:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1057)][r(1889)].find(d=>d.id===x[r(1057)].currentCanvasId);if(!i)return;const c=i[r(1361)][r(1876)](d=>d.id===t);c&&(Object[r(510)](c[r(721)],o),i[r(2166)][r(1090)][r(1465)](pn(r(2017),t,{normalStyle:o})),x[r(2166)]=i.history,x[r(1361)]=i[r(1361)])})},updateNodeContent:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1057)][r(1889)][r(1876)](d=>d.id===x.root[r(1945)]);if(!i)return;const c=i[r(1361)][r(1876)](d=>d.id===t);c&&(c[r(1537)]={...c[r(1537)],...o},i.history[r(1090)][r(1465)](pn(r(2017),t,{contentInfo:o})),x[r(2166)]=i[r(2166)],x[r(1361)]=i[r(1361)])})},updateNodeControl:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1057)][r(1889)].find(d=>d.id===x[r(1057)][r(1945)]);if(!i)return;const c=i[r(1361)][r(1876)](d=>d.id===t);c&&(Object[r(510)](c[r(814)],o),i.history[r(1090)][r(1465)](pn("PROPERTY_CHANGE",t,{controlInfo:o})),x[r(2166)]=i.history,x[r(1361)]=i.nodes)})},removeNode:t=>{e(o=>{const x=_0x4806,r=o[x(1057)][x(1889)][x(1876)](c=>c.id===o.root.currentCanvasId);if(!r)return;const i=r[x(1361)].findIndex(c=>c.id===t);i!==-1&&(r[x(1361)][x(1808)](i,1),o[x(1361)]=r[x(1361)],r.selectedNodeId===t&&(r[x(669)]=null,o[x(669)]=null,r.selectedStatusId=null,o[x(1702)]=null),r[x(2207)]=r[x(2207)][x(1641)](c=>c!==t),o[x(2207)]=r[x(2207)],r.history[x(1090)].push(pn(x(1338),t)),o.history=r.history)})},selectNode:t=>{e(o=>{const x=_0x4806,r=o[x(1057)].canvases[x(1876)](i=>i.id===o[x(1057)].currentCanvasId);r&&(r[x(669)]=t,o[x(669)]=t,r[x(1702)]=null,o[x(1702)]=null,t&&(r.history[x(1090)].push(pn("NODE_SELECT",t)),o[x(2166)]=r[x(2166)]))})},bringToFront:t=>{e(o=>{const x=_0x4806,r=o[x(1057)][x(1889)].find(d=>d.id===o[x(1057)].currentCanvasId);if(!r)return;const i=r[x(1361)][x(626)](d=>d.id===t);if(i===-1||i===r[x(1361)][x(2194)]-1)return;const[c]=r[x(1361)][x(1808)](i,1);r.nodes.push(c),o.nodes=r[x(1361)],r[x(2166)][x(1090)][x(1465)](pn(x(2017),t,{zOrder:x(1699)})),o[x(2166)]=r.history})},sendToBack:t=>{e(o=>{const x=_0x4806,r=o.root.canvases.find(d=>d.id===o[x(1057)][x(1945)]);if(!r)return;const i=r.nodes.findIndex(d=>d.id===t);if(i<=0)return;const[c]=r[x(1361)].splice(i,1);r[x(1361)][x(2182)](c),o[x(1361)]=r[x(1361)],r[x(2166)].past[x(1465)](pn(x(2017),t,{zOrder:"back"})),o[x(2166)]=r.history})},addStatus:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1057)][r(1889)][r(1876)](s=>s.id===x[r(1057)].currentCanvasId);if(!i)return;const c=i[r(1361)].find(s=>s.id===t);if(!c)return;const d={...o,id:be[r(1161)]()};c.contentInfo.statusList[r(1465)](d),i[r(2166)].past[r(1465)](pn(r(386),t,{statusId:d.id})),x[r(2166)]=i[r(2166)]})},removeStatus:(t,o)=>{e(x=>{const r=_0x4806,i=x.root[r(1889)][r(1876)](s=>s.id===x[r(1057)][r(1945)]);if(!i)return;const c=i[r(1361)][r(1876)](s=>s.id===t);if(!c)return;const d=c[r(1537)].statusList[r(626)](s=>s.id===o);d!==-1&&(c[r(1537)][r(1247)][r(1808)](d,1),c[r(1537)][r(1416)]===o&&(c.contentInfo[r(1416)]=void 0),i[r(1702)]===o&&(i.selectedStatusId=null,x[r(1702)]=null))})},updateStatus:(t,o,x)=>{e(r=>{const i=_0x4806,c=r.root[i(1889)][i(1876)](u=>u.id===r[i(1057)].currentCanvasId);if(!c)return;const d=c[i(1361)].find(u=>u.id===t);if(!d)return;const s=d[i(1537)][i(1247)][i(1876)](u=>u.id===o);s&&Object[i(510)](s,x)})},selectStatus:t=>{e(o=>{const x=_0x4806,r=o[x(1057)][x(1889)][x(1876)](i=>i.id===o.root.currentCanvasId);r&&(r[x(1702)]=t,o.selectedStatusId=t)})},evaluateCurrentStatus:(t,o)=>{const x=a,r=n(),i=r[x(1057)][x(1889)][x(1876)](s=>s.id===r.root[x(1945)]);if(!i)return;const c=i[x(1361)][x(1876)](s=>s.id===t);if(!c)return;const{dataPool:d}=n();for(const s of c[x(1537)].statusList)if(Mx(s,o,d))return s.id},addDataPoolItem:t=>{const o=a,x=be[o(1161)]();return e(r=>{const i=o;let c={};t.sample&&typeof t[i(1167)]===i(2171)&&(Array[i(927)](t[i(1167)])?c=t.sample:c=t[i(1167)]),r[i(695)][i(1465)]({...t,id:x,sample:c})}),x},updateDataPoolItem:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(695)][r(1876)](c=>c.id===t);i&&(o[r(659)]!==void 0&&(i[r(659)]=o[r(659)]),o[r(1167)]!==void 0&&(o[r(1167)]&&typeof o[r(1167)]===r(2171)?i[r(1167)]=o[r(1167)]:i[r(1167)]={}))})},removeDataPoolItem:t=>{e(o=>{const x=_0x4806,r=o[x(695)].findIndex(i=>i.id===t);if(r!==-1){o[x(695)][x(1808)](r,1);for(const i of o[x(1057)][x(1889)])rr(i[x(1361)],t)}})},setDataPool:t=>{e(o=>{const x=_0x4806;o.dataPool=t[x(542)](r=>{const i=x;let c={};return r[i(1167)]&&typeof r[i(1167)]===i(2171)&&(c=r[i(1167)]),{...r,sample:c}})})},setEventFlow:t=>{e(o=>{const x=_0x4806;o.eventFlow={eventBlocks:t[x(2188)]??[],eventRoots:t[x(1528)]??[],editingEventRootId:t[x(744)]??null,isEditingEventFlow:t.isEditingEventFlow??!1}})},setExternalHandlerCatalog:t=>{e(o=>{const x=_0x4806,r=new Set;o[x(1304)]=[];for(const i of t){const c=String(i.key??"").trim();!c||r[x(1826)](c)||(r[x(1757)](c),o[x(1304)][x(1465)]({key:c,label:String(i.label??"").trim()||c,description:i[x(2149)]}))}})},addMaterial:t=>{e(o=>{const x=_0x4806;if(o[x(1507)].some(c=>c[x(659)]===t[x(659)]))return;const i={...t,id:be[x(1161)]()};o[x(1507)][x(1465)](i)})},updateMaterial:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1507)][r(1876)](c=>c.id===t);i&&Object.assign(i,o)})},removeMaterial:t=>{e(o=>{const x=_0x4806,r=o[x(1507)].findIndex(i=>i.id===t);r!==-1&&o[x(1507)][x(1808)](r,1)})},setViewport:t=>{e(o=>{const x=_0x4806,r=o.root[x(1889)].find(i=>i.id===o[x(1057)][x(1945)]);r&&(Object[x(510)](r[x(1187)],t),o.viewport=r[x(1187)])})},setCanvasConfig:t=>{e(o=>{const x=_0x4806,r=o.root[x(1889)].find(i=>i.id===o[x(1057)][x(1945)]);r&&(r.canvasConfig={...r[x(1398)],...t},o[x(1152)]=r[x(1398)])})},setMode:t=>{e(o=>{o.mode=t})},startLineDrawing:t=>{e(o=>{const x=_0x4806;o[x(660)]=x(1785),o[x(1601)]={isDrawing:!0,material:t,startPoint:null,endPoint:null}})},updateLineDrawing:t=>{e(o=>{const x=_0x4806;o[x(1601)].isDrawing&&(o[x(1601)][x(848)]=t)})},endLineDrawing:()=>{e(t=>{const o=_0x4806;t[o(660)]=o(1877),t[o(1601)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{e(t=>{const o=_0x4806;t[o(660)]=o(1877),t[o(1601)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{e(t=>{const o=_0x4806,x=t[o(1057)][o(1889)][o(1876)](i=>i.id===t[o(1057)][o(1945)]);if(!x)return;const r=x[o(2166)][o(1090)][o(1384)]();r&&(x[o(2166)][o(1589)][o(1465)](r),t.history=x[o(2166)])})},redo:()=>{e(t=>{const o=_0x4806,x=t.root[o(1889)][o(1876)](i=>i.id===t[o(1057)][o(1945)]);if(!x)return;const r=x.history.future[o(1384)]();r&&(x[o(2166)][o(1090)][o(1465)](r),t[o(2166)]=x[o(2166)])})},recordEvent:t=>{e(o=>{const x=_0x4806,r=o[x(1057)].canvases[x(1876)](i=>i.id===o.root.currentCanvasId);r&&(r[x(2166)][x(1090)][x(1465)](t),r.history[x(1589)]=[],o[x(2166)]=r[x(2166)])})},exportScheme:()=>{const t=a,o=n();return{version:"2.0.0",root:o.root,materials:o.materials,dataPool:o.dataPool,eventFlow:o[t(1302)],metadata:{name:o[t(1057)][t(659)],description:"",createdAt:new Date()[t(482)](),updatedAt:new Date()[t(482)]()}}},importScheme:t=>{e(o=>{const x=_0x4806;if(t.root){if(o[x(1057)]=t[x(1057)],!o[x(1057)][x(369)])o.root.siblingGroups=[];else{const i=new Set(o[x(1057)][x(1889)][x(542)](c=>c.id));for(const c of o.root[x(369)])c[x(1768)]=c[x(1768)][x(1641)](d=>i[x(1826)](d))}o[x(695)]=t[x(695)]??[],t[x(1302)]&&(o[x(1302)]={eventBlocks:t[x(1302)].eventBlocks??[],eventRoots:t[x(1302)][x(1528)]??[],editingEventRootId:t[x(1302)][x(744)]??null,isEditingEventFlow:t[x(1302)].isEditingEventFlow??!1});const r=o[x(1057)].canvases[x(1876)](i=>i.id===o.root[x(1945)])||o[x(1057)][x(1889)][0];r&&(o[x(1057)][x(1945)]=r.id,o.nodes=r[x(1361)],o[x(1152)]=r[x(1398)],o[x(1187)]=r.viewport,o[x(669)]=r.selectedNodeId,o.selectedNodeIds=r.selectedNodeIds,o[x(1702)]=r[x(1702)],o[x(2166)]=r.history)}else{const r=Dx();r[x(1361)]=t[x(1361)]||[],o[x(1057)].canvases=[r],o[x(1057)][x(1945)]=r.id,o[x(1057)][x(369)]=[],o[x(695)]=t.dataPool??[],t[x(1302)]&&(o[x(1302)]={eventBlocks:t[x(1302)][x(2188)]??[],eventRoots:t[x(1302)][x(1528)]??[],editingEventRootId:t[x(1302)].editingEventRootId??null,isEditingEventFlow:t[x(1302)].isEditingEventFlow??!1}),o[x(1361)]=r[x(1361)],o[x(1152)]=r[x(1398)],o.viewport=t[x(1187)]||r[x(1187)],o.selectedNodeId=null,o[x(1702)]=null,o[x(2166)]={past:[],future:[]}}for(const r of o.root[x(1889)])Bx(r.nodes)})},exportCanvas:t=>{const o=a,x=n(),r=t||x[o(1057)][o(1945)],i=x.root[o(1889)][o(1876)](c=>c.id===r);if(!i)throw new Error(o(1437)+r+" 不存在");return{version:o(1607),canvas:i,metadata:{name:i.name,description:"",exportedAt:new Date()[o(482)]()}}},importCanvas:(t,o)=>{e(x=>{const r=_0x4806,i=t[r(1152)],c=o||x.root[r(1945)],d=x.root[r(1889)].find(s=>s.id===c);if(d)d.name=i.name,d[r(1361)]=i.nodes||[],d[r(1398)]=i[r(1398)],d.viewport=i[r(1187)],d.selectedNodeId=null,d.selectedNodeIds=[],d[r(1702)]=null,d[r(2166)]=i[r(2166)]||{past:[],future:[]},c===x[r(1057)][r(1945)]&&(x[r(1361)]=d[r(1361)],x[r(1152)]=d[r(1398)],x[r(1187)]=d[r(1187)],x[r(669)]=d.selectedNodeId,x.selectedNodeIds=d[r(2207)],x[r(1702)]=d[r(1702)],x[r(2166)]=d[r(2166)]);else{const s={...i,id:be[r(1161)](),selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null};x[r(1057)][r(1889)][r(1465)](s),x[r(1057)][r(1945)]=s.id,x[r(1361)]=s[r(1361)],x.canvas=s.canvasConfig,x[r(1187)]=s[r(1187)],x[r(669)]=s[r(669)],x[r(2207)]=s[r(2207)],x[r(1702)]=s[r(1702)],x[r(2166)]=s[r(2166)]}for(const s of x[r(1057)][r(1889)])Bx(s[r(1361)])})},addEventBlock:t=>{const o=a,x=be[o(1161)]();return e(r=>{const i=o;r[i(1302)][i(2188)][i(1465)]({...t,id:x})}),x},upsertEventBlock:t=>{e(o=>{const x=_0x4806,r=o[x(1302)][x(2188)][x(626)](i=>i.id===t.id);r!==-1?o[x(1302)][x(2188)][r]={...t}:o.eventFlow[x(2188)].push({...t})})},updateEventBlock:(t,o)=>{e(x=>{const r=_0x4806,i=x.eventFlow.eventBlocks[r(1876)](c=>c.id===t);i&&Object[r(510)](i,o)})},removeEventBlock:t=>{e(o=>{const x=_0x4806,r=o.eventFlow.eventBlocks[x(626)](i=>i.id===t);r!==-1&&o[x(1302)][x(2188)][x(1808)](r,1)})},addEventRoot:t=>{const o=a,x=be[o(1161)]();return e(r=>{const i=o;r[i(1302)][i(1528)][i(1465)]({...t,id:x})}),x},updateEventRoot:(t,o)=>{e(x=>{const r=_0x4806,i=x[r(1302)].eventRoots.find(c=>c.id===t);i&&Object.assign(i,o)})},removeEventRoot:t=>{e(o=>{const x=_0x4806,r=o[x(1302)][x(1528)].findIndex(i=>i.id===t);r!==-1&&o.eventFlow.eventRoots[x(1808)](r,1)})},setEditingEventRoot:t=>{e(o=>{const x=_0x4806;o[x(1302)][x(744)]=t})},setIsEditingEventFlow:t=>{e(o=>{const x=_0x4806;o.eventFlow[x(795)]=t})},bindNodeEvent:(t,o,x)=>{const r=a,i=be[r(1161)]();return e(c=>{c[r(1302)].eventRoots.push({id:i,bindNodeId:t,eventType:o,flowData:x,enabled:!0})}),i},unbindNodeEvent:(t,o,x)=>{e(r=>{const i=_0x4806,c=r[i(1302)][i(1528)][i(626)](d=>{const s=i;return d.bindNodeId!==t||d[s(1231)]!==o?!1:o===s(717)?(d[s(1426)]||"")[s(1258)]()===(x||"").trim():!0});c!==-1&&r[i(1302)][i(1528)][i(1808)](c,1)})},getNodeEventRoots:t=>{const o=a;return n()[o(1302)][o(1528)][o(1641)](x=>x.bindNodeId===t)}}))),cr=[{id:be[a(1161)](),name:"矩形",type:a(1072),src:"data:image/svg+xml,"+encodeURIComponent(a(1243))},{id:be[a(1161)](),name:"圆形",type:a(1072),src:a(1215)+encodeURIComponent(a(1299))},{id:be[a(1161)](),name:"圆角矩形",type:a(1072),src:"data:image/svg+xml,"+encodeURIComponent(a(722))},{id:be[a(1161)](),name:"阀门",type:a(1072),src:a(1215)+encodeURIComponent(a(1212))},{id:be[a(1161)](),name:"泵",type:"IMAGE",src:a(1215)+encodeURIComponent(a(712))},{id:be.nanoid(),name:"罐体",type:a(1072),src:"data:image/svg+xml,"+encodeURIComponent(a(1271))},{id:be[a(1161)](),name:a(1735),type:a(1505),content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:a(1713),color:"#262626",textAlign:a(1557)},valueStyle:{fontSize:14,fontWeight:a(898),color:a(1690),textAlign:a(1557)}}},{id:be[a(1161)](),name:"线条",type:a(1881),config:{thickness:2,lineWeight:2,color:a(443),lineType:a(2176)}}],Lx=e=>({id:be[a(1161)](),name:"默认状态",expression:"return true;",material:{...e,id:be.nanoid()},boundDatasetId:null}),ar=(e,n,t)=>{const o=a;if(t?.[o(1424)]===o(755)&&t.config?.[o(1361)]){const x=t[o(713)][o(1361)].map(u=>({...u,id:be[o(1161)]()}));let r=1/0,i=1/0,c=-1/0,d=-1/0;x[o(1369)](u=>{const f=o,y=u[f(721)].x||0,g=u[f(721)].y||0,p=u[f(721)][f(1238)]||0,h=u[f(721)][f(1265)]||0;r=Math.min(r,y),i=Math[f(831)](i,g),c=Math.max(c,y+p),d=Math[f(1439)](d,g+h)});const s=x.map(u=>({...u,normalStyle:{...u[o(721)],x:(u[o(721)].x||0)-r,y:(u[o(721)].y||0)-i,scale:void 0}}));return{id:be[o(1161)](),name:t[o(659)]||o(1043),type:o(1728),normalStyle:{width:c-r,height:d-i,x:e,y:n},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:s}}return{id:be.nanoid(),name:o(2003),type:o(898),normalStyle:{width:120,height:100,x:e,y:n,background:o(583),padding:8},contentInfo:{statusList:t?[Lx(t)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:it}=z[a(472)],{Text:u0}=z[a(1052)],sr=({onUploadSvg:e})=>{const n=a,{materials:t,addMaterial:o,removeMaterial:x,selectedStatusId:r,selectStatus:i,mode:c,lineDrawing:d,startLineDrawing:s,cancelLineDrawing:u}=He(),[f,y]=B[n(655)]([n(1750),n(987),n(1755),n(2070)]),g=v=>{const m=n,w=new FileReader;return w[m(1841)]=C=>{const k=m,O=C.target?.result;o({name:v[k(659)][k(598)](k(1134),""),type:k(1072),src:O})},w[m(1045)](v),!1},p={basic:t[n(1641)](v=>["矩形","圆形",n(1272)][n(911)](v[n(659)])),device:t.filter(v=>["阀门","泵","罐体"][n(911)](v.name)||v.type===n(1072)&&!["矩形","圆形",n(1272)][n(911)](v[n(659)])&&v[n(659)]!==n(1267)),text:t.filter(v=>v[n(1424)]===n(1505)),line:t[n(1641)](v=>v[n(1424)]===n(1881)),group:t.filter(v=>v[n(1424)]===n(755)&&v[n(713)]?.[n(1361)]),custom:t.filter(v=>v[n(1424)]==="CUSTOM"&&!v[n(713)]?.[n(1361)]||v[n(1424)]==="IMAGE"&&!["矩形","圆形",n(1272),"阀门","泵","罐体"].includes(v[n(659)]))},h=(v,m)=>{const w=n;v[w(508)][w(881)]=w(1955),v[w(508)][w(1334)](w(1885),JSON.stringify(m));const C=v[w(1153)][w(1542)](".material-preview");C&&v[w(508)][w(466)](C,20,20)},b=v=>{const m=n;v[m(1424)]===m(1881)&&s(v)},M=(v,m=!1)=>{const w=n,C=m===!0,k=c===w(1785)&&C&&d[w(600)]?.id===v.id;return l[w(1993)](z[w(1521)][w(1047)],{draggable:!C,onDragStart:O=>h(O,v),onClick:()=>C&&b(v),className:w(1698)+(C?"cursor-pointer":w(1887))+w(1200)+"hover:bg-gray-100"+w(1200)+(k?"bg-blue-50 ring-2 ring-blue-400":"")+`
|
|
3
|
+
`,actions:[C?l[w(1993)](z[w(1804)],{type:w(1755),size:w(398),icon:l[w(1993)](ae[w(1081)],{}),onClick:O=>{O[w(1064)](),b(v)},children:"绘制"},"draw"):null,l[w(1993)](z[w(1804)],{type:w(1755),size:w(398),danger:!0,icon:l.jsx(ae[w(1096)],{}),onClick:O=>{O[w(1064)](),x(v.id)}},"delete")][w(1641)](Boolean),children:l.jsxs(w(539),{className:w(1661)+(C?"":w(1884)),children:[l[w(1993)](w(539),{className:w(1745),children:v[w(1424)]===w(1072)&&v[w(1909)]?l[w(1993)](z[w(1498)],{src:v[w(1909)],alt:v[w(659)],width:40,height:40,preview:!1}):v[w(1424)]===w(1505)?l[w(1993)](w(1102),{className:w(1259),children:"T"}):v[w(1424)]==="LINE"?l[w(1993)](w(539),{className:w(1368)}):v.type===w(755)&&v[w(713)]?.[w(1361)]?l.jsx("span",{className:w(1316),children:"G"}):l[w(1993)](w(1102),{className:w(1259),children:"?"})}),l[w(1239)](w(539),{className:w(963),children:[l.jsx(u0,{strong:!0,className:w(492),children:v[w(659)]}),l.jsxs(w(539),{className:w(2036),children:[l.jsx(u0,{type:w(2155),className:w(2062),children:v.type}),k&&l[w(1993)](z[w(2037)],{color:w(1306),className:"text-xs",children:w(2185)})]})]})]})},v.id)};return l[n(1239)](n(539),{className:"h-full flex flex-col bg-white border-r border-gray-200",children:[l[n(1239)](n(539),{className:n(1401),children:[l[n(1993)]("h3",{className:n(1036),children:n(1857)}),l[n(1993)](u0,{type:n(2155),className:"text-sm",children:n(614)})]}),l.jsx(n(539),{className:"p-3 border-b border-gray-200",children:e?l[n(1993)](z[n(1804)],{icon:l[n(1993)](ae.UploadOutlined,{}),block:!0,type:n(2022),onClick:()=>{const v=n;e()[v(709)](m=>{const w=v;console[w(365)](w(1492),m)})},children:n(444)}):l[n(1993)](z[n(637)],{accept:n(1134),beforeUpload:g,showUploadList:!1,children:l[n(1993)](z.Button,{icon:l[n(1993)](ae[n(2058)],{}),block:!0,type:n(2022),children:n(444)})})}),l[n(1993)]("div",{className:n(822),children:l[n(1239)](z[n(472)],{activeKey:f,onChange:v=>y(v),ghost:!0,expandIconPosition:"end",children:[l.jsx(it,{header:"基础形状",children:l[n(1993)](z[n(1521)],{dataSource:p.basic,renderItem:v=>M(v,!1),locale:{emptyText:l[n(1993)](z.Empty,{description:n(1559),image:z[n(900)][n(592)]})}})},n(1750)),l.jsx(it,{header:n(1162),children:l[n(1993)](z[n(1521)],{dataSource:p[n(987)],renderItem:v=>M(v,!1),locale:{emptyText:l.jsx(z[n(900)],{description:n(1559),image:z[n(900)][n(592)]})}})},"device"),l[n(1993)](it,{header:"文本",children:l[n(1993)](z[n(1521)],{dataSource:p.text,renderItem:v=>M(v,!1),locale:{emptyText:l[n(1993)](z[n(900)],{description:n(1559),image:z[n(900)][n(592)]})}})},"text"),l[n(1239)](it,{header:l.jsxs(n(539),{className:n(556),children:[l[n(1993)](n(1102),{children:"线条"}),c===n(1785)&&l[n(1993)](z[n(2037)],{color:"blue",className:n(2062),children:n(479)})]}),children:[l.jsx(z[n(1521)],{dataSource:p[n(2070)],renderItem:v=>M(v,!0),locale:{emptyText:l.jsx(z[n(900)],{description:n(1559),image:z.Empty[n(592)]})}}),c==="line-draw"&&l[n(1239)](n(539),{className:n(1604),children:[l.jsx(n(539),{children:n(2144)}),l[n(1993)](n(539),{children:"点击画布确定起点和终点"})]})]},"line"),p[n(1728)].length>0&&l[n(1993)](it,{header:"群组",children:l[n(1993)](z[n(1521)],{dataSource:p[n(1728)],renderItem:v=>M(v,!1),locale:{emptyText:l.jsx(z[n(900)],{description:n(1559),image:z[n(900)][n(592)]})}})},"group"),p[n(1260)][n(2194)]>0&&l[n(1993)](it,{header:n(1267),children:l[n(1993)](z.List,{dataSource:p.custom,renderItem:v=>M(v,!1),locale:{emptyText:l[n(1993)](z[n(900)],{description:n(1559),image:z[n(900)][n(592)]})}})},"custom")]})}),l[n(1993)](n(539),{className:n(1317),children:l.jsx(u0,{type:"secondary",className:n(2062),children:c===n(1785)?l[n(1993)](l[n(915)],{children:"💡 提示:点击绘制线段,可连续绘制多段线,双击结束绘制,ESC 取消"}):l[n(1993)](l[n(915)],{children:n(1513)})})})]})};var Nx=function(e,n){const t=a;return Nx=Object[t(418)]||{__proto__:[]}instanceof Array&&function(o,x){const r=t;o[r(364)]=x}||function(o,x){const r=t;for(var i in x)Object[r(1201)][r(436)].call(x,i)&&(o[i]=x[i])},Nx(e,n)};function An(e,n){const t=a;if(typeof n!==t(1154)&&n!==null)throw new TypeError("Class extends value "+String(n)+t(1141));Nx(e,n);function o(){const x=t;this[x(1975)]=e}e.prototype=n===null?Object[t(1004)](n):(o[t(1201)]=n[t(1201)],new o)}function Bs(e,n,t,o){function x(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){const c=_0x4806;function d(f){const y=_0x4806;try{u(o[y(1991)](f))}catch(g){i(g)}}function s(f){try{u(o.throw(f))}catch(y){i(y)}}function u(f){const y=_0x4806;f[y(416)]?r(f[y(1981)]):x(f.value)[y(1796)](d,s)}u((o=o[c(1241)](e,n||[]))[c(1991)]())})}function lr(e,n){const t=a;var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},x,r,i,c=Object[t(1004)]((typeof Iterator===t(1154)?Iterator:Object)[t(1201)]);return c[t(1991)]=d(0),c[t(1639)]=d(1),c[t(1645)]=d(2),typeof Symbol=="function"&&(c[Symbol[t(2104)]]=function(){return this}),c;function d(u){return function(f){return s([u,f])}}function s(u){const f=t;if(x)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(o=0)),o;)try{if(x=1,r&&(i=u[0]&2?r[f(1645)]:u[0]?r[f(1639)]||((i=r[f(1645)])&&i[f(897)](r),0):r[f(1991)])&&!(i=i[f(897)](r,u[1]))[f(416)])return i;switch(r=0,i&&(u=[u[0]&2,i[f(1981)]]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o[f(1834)]++,r=u[1],u=[0];continue;case 7:u=o.ops[f(1384)](),o.trys[f(1384)]();continue;default:if(i=o[f(2050)],!(i=i[f(2194)]>0&&i[i[f(2194)]-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o[f(1834)]<i[1]){o[f(1834)]=i[1],i=u;break}if(i&&o[f(1834)]<i[2]){o.label=i[2],o.ops[f(1465)](u);break}i[2]&&o[f(429)][f(1384)](),o.trys[f(1384)]();continue}u=n[f(897)](e,o)}catch(y){u=[6,y],r=0}finally{x=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ct(e){const n=a;var t=typeof Symbol===n(1154)&&Symbol[n(2104)],o=t&&e[t],x=0;if(o)return o.call(e);if(e&&typeof e[n(2194)]===n(411))return{next:function(){return e&&x>=e.length&&(e=void 0),{value:e&&e[x++],done:!e}}};throw new TypeError(t?"Object is not iterable.":n(1349))}function f0(e,n){const t=a;var o=typeof Symbol=="function"&&e[Symbol[t(2104)]];if(!o)return e;var x=o.call(e),r,i=[],c;try{for(;(n===void 0||n-- >0)&&!(r=x[t(1991)]())[t(416)];)i.push(r[t(1981)])}catch(d){c={error:d}}finally{try{r&&!r[t(416)]&&(o=x[t(1645)])&&o[t(897)](x)}finally{if(c)throw c.error}}return i}function h0(e,n,t){const o=a;if(t||arguments[o(2194)]===2)for(var x=0,r=n[o(2194)],i;x<r;x++)(i||!(x in n))&&(i||(i=Array[o(1201)][o(1172)].call(n,0,x)),i[x]=n[x]);return e[o(905)](i||Array.prototype.slice[o(897)](n))}function at(e){return this instanceof at?(this.v=e,this):new at(e)}function Ds(e,n,t){const o=a;if(!Symbol[o(1894)])throw new TypeError("Symbol.asyncIterator is not defined.");var x=t[o(1241)](e,n||[]),r,i=[];return r=Object[o(1004)]((typeof AsyncIterator=="function"?AsyncIterator:Object)[o(1201)]),d("next"),d(o(1639)),d(o(1645),c),r[Symbol.asyncIterator]=function(){return this},r;function c(p){return function(h){const b=_0x4806;return Promise[b(2192)](h)[b(1796)](p,y)}}function d(p,h){x[p]&&(r[p]=function(b){return new Promise(function(M,v){i.push([p,b,M,v])>1||s(p,b)})},h&&(r[p]=h(r[p])))}function s(p,h){try{u(x[p](h))}catch(b){g(i[0][3],b)}}function u(p){const h=o;p.value instanceof at?Promise[h(2192)](p[h(1981)].v)[h(1796)](f,y):g(i[0][2],p)}function f(p){s("next",p)}function y(p){s(o(1639),p)}function g(p,h){const b=o;p(h),i.shift(),i[b(2194)]&&s(i[0][0],i[0][1])}}function Ls(e){const n=a;if(!Symbol[n(1894)])throw new TypeError(n(998));var t=e[Symbol[n(1894)]],o;return t?t[n(897)](e):(e=typeof ct===n(1154)?ct(e):e[Symbol[n(2104)]](),o={},x(n(1991)),x(n(1639)),x(n(1645)),o[Symbol[n(1894)]]=function(){return this},o);function x(i){o[i]=e[i]&&function(c){return new Promise(function(d,s){const u=_0x4806;c=e[i](c),r(d,s,c[u(416)],c[u(1981)])})}}function r(i,c,d,s){const u=n;Promise[u(2192)](s)[u(1796)](function(f){i({value:f,done:d})},c)}}typeof SuppressedError=="function"&&SuppressedError;function Ue(e){return typeof e=="function"}function Sx(e){const n=a;var t=function(x){const r=_0x4806;Error[r(897)](x),x[r(1546)]=new Error()[r(1546)]},o=e(t);return o[n(1201)]=Object[n(1004)](Error[n(1201)]),o[n(1201)][n(1975)]=o,o}var kx=Sx(function(e){return function(t){const o=_0x4806;e(this),this.message=t?t[o(2194)]+o(924)+t.map(function(x,r){return r+1+") "+x.toString()})[o(886)](`
|
|
4
|
+
`):"",this.name=o(1364),this[o(1400)]=t}});function g0(e,n){const t=a;if(e){var o=e[t(419)](n);0<=o&&e[t(1808)](o,1)}}var Yt=(function(){const e=a;function n(t){const o=_0x4806;this[o(754)]=t,this.closed=!1,this[o(935)]=null,this._finalizers=null}return n.prototype[e(1581)]=function(){const t=e;var o,x,r,i,c;if(!this[t(847)]){this[t(847)]=!0;var d=this[t(935)];if(d)if(this._parentage=null,Array[t(927)](d))try{for(var s=ct(d),u=s[t(1991)]();!u[t(416)];u=s[t(1991)]()){var f=u[t(1981)];f[t(921)](this)}}catch(M){o={error:M}}finally{try{u&&!u.done&&(x=s[t(1645)])&&x[t(897)](s)}finally{if(o)throw o.error}}else d.remove(this);var y=this[t(754)];if(Ue(y))try{y()}catch(M){c=M instanceof kx?M[t(1400)]:[M]}var g=this[t(2122)];if(g){this._finalizers=null;try{for(var p=ct(g),h=p.next();!h[t(416)];h=p.next()){var b=h[t(1981)];try{fr(b)}catch(M){c=c??[],M instanceof kx?c=h0(h0([],f0(c)),f0(M[t(1400)])):c[t(1465)](M)}}}catch(M){r={error:M}}finally{try{h&&!h[t(416)]&&(i=p[t(1645)])&&i[t(897)](p)}finally{if(r)throw r[t(551)]}}}if(c)throw new kx(c)}},n[e(1201)][e(1757)]=function(t){const o=e;var x;if(t&&t!==this)if(this[o(847)])fr(t);else{if(t instanceof n){if(t[o(847)]||t[o(2048)](this))return;t[o(1360)](this)}(this._finalizers=(x=this[o(2122)])!==null&&x!==void 0?x:[])[o(1465)](t)}},n[e(1201)][e(2048)]=function(t){const o=e;var x=this[o(935)];return x===t||Array.isArray(x)&&x[o(911)](t)},n[e(1201)][e(1360)]=function(t){const o=e;var x=this[o(935)];this[o(935)]=Array[o(927)](x)?(x[o(1465)](t),x):x?[x,t]:t},n[e(1201)]._removeParent=function(t){const o=e;var x=this[o(935)];x===t?this[o(935)]=null:Array.isArray(x)&&g0(x,t)},n[e(1201)][e(921)]=function(t){const o=e;var x=this[o(2122)];x&&g0(x,t),t instanceof n&&t[o(1880)](this)},n[e(1105)]=(function(){const t=e;var o=new n;return o[t(847)]=!0,o})(),n})(),dr=Yt[a(1105)];function ur(e){const n=a;return e instanceof Yt||e&&n(847)in e&&Ue(e[n(921)])&&Ue(e[n(1757)])&&Ue(e[n(1581)])}function fr(e){const n=a;Ue(e)?e():e[n(1581)]()}var Ns={Promise:void 0},Ss={setTimeout:function(e,n){const t=a;for(var o=[],x=2;x<arguments[t(2194)];x++)o[x-2]=arguments[x];return setTimeout.apply(void 0,h0([e,n],f0(o)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hr(e){Ss.setTimeout(function(){throw e})}function gr(){}function y0(e){e()}var Ix=(function(e){const n=a;An(t,e);function t(o){const x=_0x4806;var r=e[x(897)](this)||this;return r.isStopped=!1,o?(r[x(2072)]=o,ur(o)&&o[x(1757)](r)):r.destination=Ps,r}return t[n(1004)]=function(o,x,r){return new Px(o,x,r)},t[n(1201)][n(1991)]=function(o){const x=n;this[x(1631)]||this[x(936)](o)},t[n(1201)].error=function(o){const x=n;this.isStopped||(this.isStopped=!0,this[x(705)](o))},t[n(1201)][n(1554)]=function(){const o=n;this.isStopped||(this[o(1631)]=!0,this._complete())},t[n(1201)][n(1581)]=function(){const o=n;!this.closed&&(this[o(1631)]=!0,e.prototype[o(1581)][o(897)](this),this[o(2072)]=null)},t[n(1201)][n(936)]=function(o){const x=n;this[x(2072)][x(1991)](o)},t.prototype[n(705)]=function(o){const x=n;try{this.destination[x(551)](o)}finally{this[x(1581)]()}},t.prototype._complete=function(){const o=n;try{this[o(2072)][o(1554)]()}finally{this[o(1581)]()}},t})(Yt),ks=(function(){const e=a;function n(t){this.partialObserver=t}return n[e(1201)][e(1991)]=function(t){const o=e;var x=this.partialObserver;if(x[o(1991)])try{x[o(1991)](t)}catch(r){m0(r)}},n[e(1201)].error=function(t){const o=e;var x=this[o(1230)];if(x.error)try{x[o(551)](t)}catch(r){m0(r)}else m0(t)},n[e(1201)][e(1554)]=function(){const t=e;var o=this[t(1230)];if(o.complete)try{o[t(1554)]()}catch(x){m0(x)}},n})(),Px=(function(e){An(n,e);function n(t,o,x){const r=_0x4806;var i=e[r(897)](this)||this,c;return Ue(t)||!t?c={next:t??void 0,error:o??void 0,complete:x??void 0}:c=t,i[r(2072)]=new ks(c),i}return n})(Ix);function m0(e){hr(e)}function Is(e){throw e}var Ps={closed:!0,next:gr,error:Is,complete:gr},Ax=(function(){const e=a;return typeof Symbol===e(1154)&&Symbol.observable||e(2065)})();function yr(e){return e}function As(e){const n=a;return e.length===0?yr:e[n(2194)]===1?e[0]:function(o){return e[n(1606)](function(r,i){return i(r)},o)}}var on=(function(){const e=a;function n(t){t&&(this._subscribe=t)}return n[e(1201)][e(470)]=function(t){const o=e;var x=new n;return x[o(964)]=this,x.operator=t,x},n[e(1201)][e(1722)]=function(t,o,x){var r=this,i=Es(t)?t:new Px(t,o,x);return y0(function(){const c=_0x4806;var d=r,s=d.operator,u=d.source;i[c(1757)](s?s[c(897)](i,u):u?r._subscribe(i):r[c(642)](i))}),i},n[e(1201)][e(642)]=function(t){const o=e;try{return this[o(2184)](t)}catch(x){t[o(551)](x)}},n.prototype[e(1369)]=function(t,o){var x=this;return o=mr(o),new o(function(r,i){var c=new Px({next:function(d){const s=_0x4806;try{t(d)}catch(u){i(u),c[s(1581)]()}},error:i,complete:r});x.subscribe(c)})},n[e(1201)][e(2184)]=function(t){const o=e;var x;return(x=this[o(964)])===null||x===void 0?void 0:x.subscribe(t)},n[e(1201)][Ax]=function(){return this},n[e(1201)][e(458)]=function(){const t=e;for(var o=[],x=0;x<arguments[t(2194)];x++)o[x]=arguments[x];return As(o)(this)},n[e(1201)][e(980)]=function(t){var o=this;return t=mr(t),new t(function(x,r){const i=_0x4806;var c;o[i(1722)](function(d){return c=d},function(d){return r(d)},function(){return x(c)})})},n.create=function(t){return new n(t)},n})();function mr(e){var n;return(n=e??Ns.Promise)!==null&&n!==void 0?n:Promise}function js(e){const n=a;return e&&Ue(e[n(1991)])&&Ue(e[n(551)])&&Ue(e[n(1554)])}function Es(e){return e&&e instanceof Ix||js(e)&&ur(e)}function Ys(e){return Ue(e?.lift)}function Wn(e){return function(n){const t=_0x4806;if(Ys(n))return n[t(470)](function(o){const x=t;try{return e(o,this)}catch(r){this[x(551)](r)}});throw new TypeError(t(1382))}}function Xn(e,n,t,o,x){return new Us(e,n,t,o,x)}var Us=(function(e){const n=a;An(t,e);function t(o,x,r,i,c,d){const s=_0x4806;var u=e[s(897)](this,o)||this;return u[s(1536)]=c,u[s(1636)]=d,u[s(936)]=x?function(f){const y=s;try{x(f)}catch(g){o[y(551)](g)}}:e.prototype[s(936)],u[s(705)]=i?function(f){const y=s;try{i(f)}catch(g){o[y(551)](g)}finally{this[y(1581)]()}}:e.prototype[s(705)],u[s(1683)]=r?function(){const f=s;try{r()}catch(y){o.error(y)}finally{this[f(1581)]()}}:e.prototype[s(1683)],u}return t[n(1201)].unsubscribe=function(){const o=n;var x;if(!this.shouldUnsubscribe||this[o(1636)]()){var r=this[o(847)];e[o(1201)].unsubscribe[o(897)](this),!r&&((x=this.onFinalize)===null||x===void 0||x[o(897)](this))}},t})(Ix),Gs=Sx(function(e){return function(){const t=_0x4806;e(this),this[t(659)]=t(2057),this.message=t(375)}}),wr=(function(e){const n=a;An(t,e);function t(){const o=_0x4806;var x=e[o(897)](this)||this;return x[o(847)]=!1,x[o(651)]=null,x[o(1066)]=[],x.isStopped=!1,x.hasError=!1,x[o(863)]=null,x}return t.prototype.lift=function(o){var x=new vr(this,this);return x.operator=o,x},t.prototype._throwIfClosed=function(){if(this[_0x4806(847)])throw new Gs},t[n(1201)].next=function(o){var x=this;y0(function(){const r=_0x4806;var i,c;if(x._throwIfClosed(),!x[r(1631)]){!x[r(651)]&&(x[r(651)]=Array[r(1139)](x.observers));try{for(var d=ct(x[r(651)]),s=d[r(1991)]();!s[r(416)];s=d[r(1991)]()){var u=s[r(1981)];u.next(o)}}catch(f){i={error:f}}finally{try{s&&!s[r(416)]&&(c=d.return)&&c.call(d)}finally{if(i)throw i.error}}}})},t.prototype[n(551)]=function(o){var x=this;y0(function(){const r=_0x4806;if(x._throwIfClosed(),!x[r(1631)]){x[r(996)]=x[r(1631)]=!0,x[r(863)]=o;for(var i=x[r(1066)];i[r(2194)];)i[r(708)]().error(o)}})},t.prototype.complete=function(){var o=this;y0(function(){const x=_0x4806;if(o._throwIfClosed(),!o[x(1631)]){o[x(1631)]=!0;for(var r=o[x(1066)];r[x(2194)];)r[x(708)]().complete()}})},t[n(1201)].unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t[n(1201)],n(2174),{get:function(){var o;return((o=this.observers)===null||o===void 0?void 0:o.length)>0},enumerable:!1,configurable:!0}),t[n(1201)][n(642)]=function(o){const x=n;return this[x(1682)](),e.prototype[x(642)][x(897)](this,o)},t[n(1201)][n(2184)]=function(o){const x=n;return this[x(1682)](),this[x(1700)](o),this[x(633)](o)},t.prototype[n(633)]=function(o){const x=n;var r=this,i=this,c=i[x(996)],d=i[x(1631)],s=i[x(1066)];return c||d?dr:(this[x(651)]=null,s[x(1465)](o),new Yt(function(){const u=x;r[u(651)]=null,g0(s,o)}))},t[n(1201)][n(1700)]=function(o){const x=n;var r=this,i=r.hasError,c=r.thrownError,d=r[x(1631)];i?o.error(c):d&&o[x(1554)]()},t[n(1201)][n(627)]=function(){const o=n;var x=new on;return x[o(964)]=this,x},t[n(1004)]=function(o,x){return new vr(o,x)},t})(on),vr=(function(e){const n=a;An(t,e);function t(o,x){const r=_0x4806;var i=e[r(897)](this)||this;return i[r(2072)]=o,i[r(964)]=x,i}return t[n(1201)][n(1991)]=function(o){const x=n;var r,i;(i=(r=this[x(2072)])===null||r===void 0?void 0:r[x(1991)])===null||i===void 0||i[x(897)](r,o)},t[n(1201)].error=function(o){const x=n;var r,i;(i=(r=this[x(2072)])===null||r===void 0?void 0:r.error)===null||i===void 0||i[x(897)](r,o)},t.prototype[n(1554)]=function(){const o=n;var x,r;(r=(x=this[o(2072)])===null||x===void 0?void 0:x[o(1554)])===null||r===void 0||r[o(897)](x)},t[n(1201)][n(2184)]=function(o){const x=n;var r,i;return(i=(r=this[x(964)])===null||r===void 0?void 0:r.subscribe(o))!==null&&i!==void 0?i:dr},t})(wr),Os={now:function(){return Date[a(1960)]()}},Hs=(function(e){const n=a;An(t,e);function t(o,x){return e.call(this)||this}return t.prototype[n(1209)]=function(o,x){return this},t})(Yt),pr={setInterval:function(e,n){const t=a;for(var o=[],x=2;x<arguments.length;x++)o[x-2]=arguments[x];return setInterval[t(1241)](void 0,h0([e,n],f0(o)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Ts=(function(e){const n=a;An(t,e);function t(o,x){const r=_0x4806;var i=e.call(this,o,x)||this;return i[r(920)]=o,i[r(2105)]=x,i[r(1904)]=!1,i}return t.prototype[n(1209)]=function(o,x){const r=n;var i;if(x===void 0&&(x=0),this[r(847)])return this;this.state=o;var c=this.id,d=this.scheduler;return c!=null&&(this.id=this[r(1252)](d,c,x)),this[r(1904)]=!0,this[r(1725)]=x,this.id=(i=this.id)!==null&&i!==void 0?i:this[r(1532)](d,this.id,x),this},t[n(1201)][n(1532)]=function(o,x,r){const i=n;return r===void 0&&(r=0),pr[i(702)](o.flush[i(999)](o,this),r)},t[n(1201)][n(1252)]=function(o,x,r){const i=n;return r===void 0&&(r=0),r!=null&&this[i(1725)]===r&&this[i(1904)]===!1?x:(x!=null&&pr.clearInterval(x),void 0)},t.prototype[n(1929)]=function(o,x){const r=n;if(this[r(847)])return new Error(r(1688));this[r(1904)]=!1;var i=this[r(1697)](o,x);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this[r(1252)](this[r(920)],this.id,null))},t[n(1201)]._execute=function(o,x){const r=n;var i=!1,c;try{this[r(2105)](o)}catch(d){i=!0,c=d||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),c},t[n(1201)][n(1581)]=function(){const o=n;if(!this.closed){var x=this,r=x.id,i=x.scheduler,c=i[o(947)];this[o(2105)]=this[o(672)]=this[o(920)]=null,this.pending=!1,g0(c,this),r!=null&&(this.id=this[o(1252)](i,r,null)),this.delay=null,e.prototype.unsubscribe[o(897)](this)}},t})(Hs),br=(function(){const e=a;function n(t,o){o===void 0&&(o=n[_0x4806(1960)]),this.schedulerActionCtor=t,this.now=o}return n[e(1201)].schedule=function(t,o,x){const r=e;return o===void 0&&(o=0),new this[r(1850)](this,t).schedule(x,o)},n[e(1960)]=Os[e(1960)],n})(),Vs=(function(e){const n=a;An(t,e);function t(o,x){const r=_0x4806;x===void 0&&(x=br[r(1960)]);var i=e.call(this,o,x)||this;return i[r(947)]=[],i[r(804)]=!1,i}return t.prototype[n(2041)]=function(o){const x=n;var r=this.actions;if(this._active){r.push(o);return}var i;this._active=!0;do if(i=o[x(1929)](o[x(672)],o[x(1725)]))break;while(o=r[x(708)]());if(this[x(804)]=!1,i){for(;o=r[x(708)]();)o[x(1581)]();throw i}},t})(br),qs=new Vs(Ts);function Ws(e){return e&&Ue(e[a(1209)])}function Xs(e){return e[e[a(2194)]-1]}function Ks(e){const n=a;return Ws(Xs(e))?e[n(1384)]():void 0}var zr=function(e){const n=a;return e&&typeof e[n(2194)]===n(411)&&typeof e!==n(1154)};function Cr(e){return Ue(e?.[a(1796)])}function Mr(e){return Ue(e[Ax])}function Br(e){return Symbol.asyncIterator&&Ue(e?.[Symbol.asyncIterator])}function Dr(e){const n=a;return new TypeError(n(400)+(e!==null&&typeof e===n(2171)?n(676):"'"+e+"'")+n(631))}function Zs(){const e=a;return typeof Symbol!==e(1154)||!Symbol[e(2104)]?e(2034):Symbol[e(2104)]}var Lr=Zs();function Nr(e){return Ue(e?.[Lr])}function Sr(e){return Ds(this,arguments,function(){var t,o,x,r;return lr(this,function(i){const c=_0x4806;switch(i.label){case 0:t=e[c(2011)](),i.label=1;case 1:i[c(2050)][c(1465)]([1,,9,10]),i.label=2;case 2:return[4,at(t.read())];case 3:return o=i.sent(),x=o[c(1981)],r=o[c(416)],r?[4,at(void 0)]:[3,5];case 4:return[2,i[c(1377)]()];case 5:return[4,at(x)];case 6:return[4,i[c(1377)]()];case 7:return i[c(1377)](),[3,2];case 8:return[3,10];case 9:return t[c(646)](),[7];case 10:return[2]}})})}function kr(e){return Ue(e?.[a(2011)])}function Kn(e){if(e instanceof on)return e;if(e!=null){if(Mr(e))return Rs(e);if(zr(e))return Js(e);if(Cr(e))return _s(e);if(Br(e))return Ir(e);if(Nr(e))return Fs(e);if(kr(e))return Qs(e)}throw Dr(e)}function Rs(e){return new on(function(n){const t=_0x4806;var o=e[Ax]();if(Ue(o[t(1722)]))return o[t(1722)](n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Js(e){return new on(function(n){const t=_0x4806;for(var o=0;o<e.length&&!n.closed;o++)n.next(e[o]);n[t(1554)]()})}function _s(e){return new on(function(n){const t=_0x4806;e[t(1796)](function(o){const x=t;!n[x(847)]&&(n.next(o),n[x(1554)]())},function(o){return n[t(551)](o)})[t(1796)](null,hr)})}function Fs(e){return new on(function(n){const t=_0x4806;var o,x;try{for(var r=ct(e),i=r[t(1991)]();!i[t(416)];i=r[t(1991)]()){var c=i[t(1981)];if(n.next(c),n[t(847)])return}}catch(d){o={error:d}}finally{try{i&&!i[t(416)]&&(x=r.return)&&x.call(r)}finally{if(o)throw o[t(551)]}}n[t(1554)]()})}function Ir(e){return new on(function(n){const t=_0x4806;$s(e,n)[t(709)](function(o){return n[t(551)](o)})})}function Qs(e){return Ir(Sr(e))}function $s(e,n){var t,o,x,r;return Bs(this,void 0,void 0,function(){var i,c;return lr(this,function(d){const s=_0x4806;switch(d[s(1834)]){case 0:d.trys.push([0,5,6,11]),t=Ls(e),d.label=1;case 1:return[4,t[s(1991)]()];case 2:if(o=d.sent(),!!o[s(416)])return[3,4];if(i=o[s(1981)],n[s(1991)](i),n[s(847)])return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=d[s(1377)](),x={error:c},[3,11];case 6:return d[s(2050)][s(1465)]([6,,9,10]),o&&!o[s(416)]&&(r=t[s(1645)])?[4,r.call(t)]:[3,8];case 7:d.sent(),d.label=8;case 8:return[3,10];case 9:if(x)throw x[s(551)];return[7];case 10:return[7];case 11:return n[s(1554)](),[2]}})})}function jn(e,n,t,o,x){const r=a;o===void 0&&(o=0),x===void 0&&(x=!1);var i=n[r(1209)](function(){const c=r;t(),x?e.add(this.schedule(null,o)):this[c(1581)]()},o);if(e[r(1757)](i),!x)return i}function Pr(e,n){return n===void 0&&(n=0),Wn(function(t,o){t.subscribe(Xn(o,function(x){return jn(o,e,function(){return o[_0x4806(1991)](x)},n)},function(){return jn(o,e,function(){return o[_0x4806(1554)]()},n)},function(x){return jn(o,e,function(){return o[_0x4806(551)](x)},n)}))})}function Ar(e,n){return n===void 0&&(n=0),Wn(function(t,o){const x=_0x4806;o[x(1757)](e[x(1209)](function(){return t[x(1722)](o)},n))})}function el(e,n){const t=a;return Kn(e)[t(458)](Ar(n),Pr(n))}function nl(e,n){return Kn(e).pipe(Ar(n),Pr(n))}function tl(e,n){return new on(function(t){const o=_0x4806;var x=0;return n[o(1209)](function(){const r=o;x===e[r(2194)]?t[r(1554)]():(t[r(1991)](e[x++]),!t[r(847)]&&this[r(1209)]())})})}function xl(e,n){return new on(function(t){var o;return jn(t,n,function(){o=e[Lr](),jn(t,n,function(){const x=_0x4806;var r,i,c;try{r=o[x(1991)](),i=r[x(1981)],c=r.done}catch(d){t[x(551)](d);return}c?t[x(1554)]():t[x(1991)](i)},0,!0)}),function(){const x=_0x4806;return Ue(o?.[x(1645)])&&o[x(1645)]()}})}function jr(e,n){if(!e)throw new Error("Iterable cannot be null");return new on(function(t){jn(t,n,function(){const o=_0x4806;var x=e[Symbol[o(1894)]]();jn(t,n,function(){const r=o;x[r(1991)]()[r(1796)](function(i){const c=r;i.done?t[c(1554)]():t[c(1991)](i[c(1981)])})},0,!0)})})}function ol(e,n){return jr(Sr(e),n)}function rl(e,n){if(e!=null){if(Mr(e))return el(e,n);if(zr(e))return tl(e,n);if(Cr(e))return nl(e,n);if(Br(e))return jr(e,n);if(Nr(e))return xl(e,n);if(kr(e))return ol(e,n)}throw Dr(e)}function w0(e,n){return n?rl(e,n):Kn(e)}function ln(){const e=a;for(var n=[],t=0;t<arguments[e(2194)];t++)n[t]=arguments[t];var o=Ks(n);return w0(n,o)}function Te(e,n){var t=Ue(e)?e:function(){return e},o=function(x){return x[_0x4806(551)](t())};return new on(o)}function il(e){return e instanceof Date&&!isNaN(e)}var cl=Sx(function(e){return function(t){const o=_0x4806;t===void 0&&(t=null),e(this),this[o(452)]=o(2071),this[o(659)]=o(1953),this[o(1193)]=t}});function al(e,n){const t=a;var o=il(e)?{first:e}:{each:e},x=o[t(1214)],r=o[t(1920)],i=o[t(1605)],c=i===void 0?sl:i,d=o.scheduler,s=d===void 0?qs:d,u=o[t(1429)],f=u===void 0?null:u;if(x==null&&r==null)throw new TypeError(t(1459));return Wn(function(y,g){const p=t;var h,b,M=null,v=0,m=function(w){b=jn(g,s,function(){const C=_0x4806;try{h.unsubscribe(),Kn(c({meta:f,lastValue:M,seen:v}))[C(1722)](g)}catch(k){g[C(551)](k)}},w)};h=y.subscribe(Xn(g,function(w){const C=_0x4806;b?.[C(1581)](),v++,g[C(1991)](M=w),r>0&&m(r)},void 0,void 0,function(){!b?.[_0x4806(847)]&&b?.unsubscribe(),M=null})),!v&&m(x!=null?typeof x===p(411)?x:+x-s.now():r)})}function sl(e){throw new cl(e)}function v0(e,n){return Wn(function(t,o){const x=_0x4806;var r=0;t[x(1722)](Xn(o,function(i){const c=x;o[c(1991)](e[c(897)](n,i,r++))}))})}function ll(e,n,t,o,x,r,i,c){const d=a;var s=[],u=0,f=0,y=!1,g=function(){const b=_0x4806;y&&!s.length&&!u&&n[b(1554)]()},p=function(b){return u<o?h(b):s.push(b)},h=function(b){const M=_0x4806;u++;var v=!1;Kn(t(b,f++))[M(1722)](Xn(n,function(m){n[M(1991)](m)},function(){v=!0},void 0,function(){if(v)try{u--;for(var m=function(){var C=s[_0x4806(708)]();i||h(C)};s.length&&u<o;)m();g()}catch(w){n.error(w)}}))};return e[d(1722)](Xn(n,p,function(){y=!0,g()})),function(){}}function jx(e,n,t){return t===void 0&&(t=1/0),Ue(n)?jx(function(o,x){return v0(function(r,i){return n(o,r,x,i)})(Kn(e(o,x)))},t):(typeof n=="number"&&(t=n),Wn(function(o,x){return ll(o,x,e,t)}))}function p0(e){return Wn(function(n,t){const o=_0x4806;var x=null,r=!1,i;x=n[o(1722)](Xn(t,void 0,void 0,function(c){const d=o;i=Kn(e(c,p0(e)(n))),x?(x[d(1581)](),x=null,i[d(1722)](t)):r=!0})),r&&(x[o(1581)](),x=null,i[o(1722)](t))})}function dl(e,n,t){var o=Ue(e)||n||t?{next:e,error:n,complete:t}:e;return o?Wn(function(x,r){const i=_0x4806;var c;(c=o.subscribe)===null||c===void 0||c[i(897)](o);var d=!0;x.subscribe(Xn(r,function(s){const u=i;var f;(f=o[u(1991)])===null||f===void 0||f[u(897)](o,s),r.next(s)},function(){const s=i;var u;d=!1,(u=o[s(1554)])===null||u===void 0||u.call(o),r.complete()},function(s){const u=i;var f;d=!1,(f=o[u(551)])===null||f===void 0||f.call(o,s),r[u(551)](s)},function(){const s=i;var u,f;d&&((u=o[s(1581)])===null||u===void 0||u.call(o)),(f=o[s(1816)])===null||f===void 0||f[s(897)](o)}))}):yr}function Ex(e){const n=a;return encodeURIComponent((e||"")[n(1258)]()||n(1553))}function ul(e){const n=a;return e.eventType===n(717)?e[n(1721)]+"::ext::"+Ex(e[n(1426)]??""):e[n(1721)]+"::"+e[n(1231)]}function Er(e,n){return e+":"+n}class st{static[a(1549)];eventSubjects=new Map;[a(437)]=new Map;[a(2188)]=new Map;[a(1353)]=new Map;defaultRuntimeHandlers;constructor(){}static[a(724)](){const n=a;return!st[n(1549)]&&(st[n(1549)]=new st),st[n(1549)]}registerEventBlock(n){this[a(2188)].set(n.id,n)}unregisterEventBlock(n){this[a(2188)].delete(n)}[a(1529)](n){const t=a;return this.eventBlocks[t(1157)](n)}setDefaultRuntimeHandlers(n){const t=a;this[t(757)]=n}[a(1444)](n){const t=a;if(!n)return;const o=this.defaultRuntimeHandlers;this[t(757)]={dataRequest:{...o?.[t(907)],...n[t(907)]},external:{...o?.[t(717)],...n[t(717)]}}}[a(373)](n){const t=a,o=this.defaultRuntimeHandlers;if(!(!o&&!n))return{dataRequest:{...o?.[t(907)],...n?.[t(907)]},external:{...o?.[t(717)],...n?.[t(717)]}}}[a(861)](n){const t=a,o=this[t(437)][t(1157)](n.id);o&&(o.unsubscribe(),this[t(437)][t(1147)](n.id)),this[t(2035)].delete(n.id)}[a(1409)](n){const t=a,o=ul(n),x=this[t(1353)][t(1157)](o);x&&x.id!==n.id&&this.disposeEventRootPipeline(x),this.nodeEventBindings[t(799)](o,n),!this[t(2035)][t(1826)](n.id)&&this[t(1567)](n)}unbindNodeEvent(n,t,o){const x=a;if(t===x(717)){const d=n+x(1896)+Ex(o??""),s=this[x(1353)][x(1157)](d);s&&(this.disposeEventRootPipeline(s),this[x(1353)][x(1147)](d));return}const r=n+"::"+t,i=Er(n,t),c=this.nodeEventBindings.get(r)??this.nodeEventBindings.get(i);c&&(this[x(861)](c),this[x(1353)][x(1147)](r),this[x(1353)].delete(i))}[a(1792)](n){const t=a,o=[];this[t(1353)].forEach((x,r)=>{x[t(1721)]===n&&o.push({key:r,root:x})}),o.forEach(({key:x,root:r})=>{const i=t;this[i(861)](r),this[i(1353)].delete(x)})}[a(1485)](n){const t=a,o=[];return this[t(1353)][t(1369)](x=>{const r=t;x[r(1721)]===n&&o[r(1465)](x)}),o}emit(n,t,o){const x=a,r=n+"::"+t,i=this[x(1353)][x(1157)](r)??this[x(1353)][x(1157)](Er(n,t));if(!i||!i[x(1450)])return ln({success:!0,result:null,path:[],duration:0});if(!this[x(2035)][x(1157)](i.id))return Te(()=>new Error(x(628)+r));const d=Date.now(),s={...o,executionPath:o[x(2179)]||[],runtimeHandlers:this[x(373)](o.runtimeHandlers)};return this[x(663)](i,s)[x(458)](v0(u=>({success:!0,result:u,path:s[x(2179)],duration:Date.now()-d})),p0(u=>ln({success:!1,error:u[x(452)]||x(2061),path:s[x(2179)],duration:Date[x(1960)]()-d})))}[a(471)](n,t,o){const x=a,r=n+x(1896)+Ex(t),i=this[x(1353)][x(1157)](r);if(!i||!i[x(1450)])return ln({success:!0,result:null,path:[],duration:0});if(!this[x(2035)][x(1157)](i.id))return Te(()=>new Error(x(628)+r));const d=Date[x(1960)](),s={...o,executionPath:o[x(2179)]||[],runtimeHandlers:this[x(373)](o[x(1827)])};return this[x(663)](i,s)[x(458)](v0(u=>({success:!0,result:u,path:s[x(2179)],duration:Date[x(1960)]()-d})),p0(u=>ln({success:!1,error:u[x(452)]||"Event flow execution failed",path:s[x(2179)],duration:Date[x(1960)]()-d})))}[a(1567)](n){const t=a,o=new wr;this[t(2035)][t(799)](n.id,o)}[a(663)](n,t){const o=a,{nodes:x,edges:r}=n[o(704)];if(x.length===0)return ln(null);const i=x[o(1641)](c=>c.inputs[o(2194)]===0);return i[o(2194)]===0?Te(()=>new Error(o(1454))):this[o(608)](i,x,r,t,{})}[a(608)](n,t,o,x,r){const i=a;if(n[i(2194)]===0)return ln(r);const c=n[i(542)](d=>this[i(758)](d,x,r).pipe(dl(s=>{const u=i;r[d.id]=s,x[u(2179)][u(1465)](d.id)})));return w0(c)[i(458)](jx(d=>d,1),v0(()=>{const d=i,s=new Set;return n[d(1369)](f=>{const y=d;f[y(2177)][y(1369)](g=>{const p=t.find(h=>h.id===g);p&&p.inputs.every(b=>r[b]!==void 0)&&s.add(g)})}),t[d(1641)](f=>s[d(1826)](f.id))}),jx(d=>d[i(2194)]>0?this.executeFlowNodes(d,t,o,x,r):ln(r)),al(3e4),p0(d=>{const s=i;return console[s(551)](s(667),d),Te(()=>d)}))}[a(601)](n){const t=a;return this[t(2188)][t(1157)](n[t(2084)])??n.data[t(1747)]}interpolateBuiltinString(n,t,o){const x=a;return n[x(598)](/\{\{\s*([^}]+?)\s*\}\}/g,(r,i)=>{const c=x,d=String(i)[c(1258)]();if(d[c(922)]("$")){const u=this[c(1307)](o,d.slice(1));return u==null?"":String(u)}const s=t[d];return s==null?"":String(s)})}executeBuiltin(n,t,o){const x=a,r=n.builtinId;if(!r)return Te(()=>new Error(x(1809)));if(r===x(1642)){const i=n[x(1854)]??{},c=String(i.content??""),d=i[x(2067)]??"info",s=i.duration,u=this[x(1251)](c,o,t);if(!u.trim())return Te(()=>new Error(x(899)));try{const f={type:d,content:u};if(s!=null&&s!==""){const y=Number(s);!Number[x(1727)](y)&&(f[x(2056)]=y)}return z[x(452)].open(f),ln({ok:!0,builtinId:r,content:u,level:d})}catch(f){return Te(()=>f)}}if(r==="switchCanvas"){const i=n.builtinConfig??{},c=String(i[x(1359)]??"").trim();if(!c)return Te(()=>new Error(x(2005)));if(!t[x(2066)])return Te(()=>new Error(x(2106)));try{return t[x(2066)](c),ln({ok:!0,builtinId:r,targetCanvasId:c})}catch(d){return Te(()=>d)}}return Te(()=>new Error(x(680)+String(r)))}[a(791)](n,t,o){try{const x=n(t,o);return x instanceof Promise?w0(x):ln(x)}catch(x){return Te(()=>x)}}executeSingleFlowNode(n,t,o){const x=a,r=this[x(601)](n);if(!r)return Te(()=>new Error(x(1724)+n[x(2084)]));const i=this.prepareEventArgs(n,t,o),c=r.executorType??"inlineScript";if(c===x(907)){const d=(r.dataRequestKey||"").trim();if(!d)return Te(()=>new Error(x(840)));const s=t[x(1827)]?.[x(907)]?.[d];return s?this[x(791)](s,t,i):Te(()=>new Error(x(593)+d))}if(c===x(717)){const d=(r[x(1673)]||"").trim();if(!d)return Te(()=>new Error(x(1933)));const s=t[x(1827)]?.[x(717)]?.[d];return s?this[x(791)](s,t,i):Te(()=>new Error(x(533)+d))}if(c===x(1657))return this[x(743)](r,t,i);try{const d=new Function(x(1997),x(1143),x(928),r[x(2029)]),s=d(t.triggerNode,t,i);return s instanceof Promise?w0(s):ln(s)}catch(d){return Te(()=>d)}}[a(1420)](n,t,o){const x=a,r={$event:t[x(1956)],$data:t.data,$node:t[x(1588)]},{inputMapping:i}=n[x(1468)];return i&&Object.entries(i)[x(1369)](([c,d])=>{const s=x;if(d[s(922)](s(1291))){const u=d[s(598)](s(1291),"");r[c]=o[u]}else if(d[s(922)]("$")){const u=d[s(1172)](1);r[c]=this[s(1307)](t,u)}else r[c]=d}),r}[a(1307)](n,t){return t.split(".").reduce((o,x)=>{if(o!==null&&typeof o===_0x4806(2171)&&x in o)return o[x]},n)}[a(1436)](){const n=a;this[n(437)][n(1369)](t=>t[n(1581)]()),this[n(437)][n(2016)](),this[n(2035)][n(2016)](),this[n(1353)].clear()}}const lt=st[a(724)](),Yr=({node:e,children:n,runtimeHandlers:t,flowContextData:o})=>{const x=a,{eventFlow:r,switchCanvas:i}=He(),c=B[x(575)](null),d=B.useCallback(()=>{const u=x;return r.eventRoots[u(1641)](f=>f.bindNodeId===e.id&&f[u(1450)])},[r.eventRoots,e.id]),s=B[x(1591)](u=>f=>{const y=_0x4806,g=d()[y(1641)](h=>h[y(1231)]===u);if(g.length===0)return;u!==y(1746)&&u!==y(1772)&&f[y(1923)](),f[y(1064)]();const p=o&&typeof o=="object"?{...o}:{};g[y(1369)](h=>{const b=y;lt[b(1685)](e.id,u,{triggerNode:e,originalEvent:f,data:p,runtimeHandlers:t,switchCanvas:i})[b(1722)]({next:M=>{const v=b;!M[v(2093)]&&console[v(551)]("Event flow execution failed:",M[v(551)])},error:M=>{console[b(551)]("Event flow error:",M)}})})},[d,e,t,o]);return B.useEffect(()=>(d().forEach(f=>{lt[_0x4806(1409)](f)}),()=>{lt[_0x4806(1792)](e.id)}),[d,e.id]),B[x(363)](()=>{const u=x,f=c[u(1560)];if(!f)return;const y={click:s(u(1280)),mousedown:s("mouseDown"),mouseup:s(u(2077)),dblclick:s(u(1319)),mouseover:s("mouseOver"),mouseleave:s(u(1772)),mouseenter:s(u(432)),contextmenu:s("contextMenu")};return Object.entries(y)[u(1369)](([g,p])=>{f[u(1966)](g,p,!0)}),()=>{const g=u;Object[g(1942)](y).forEach(([p,h])=>{f[g(1339)](p,h,!0)})}},[s]),B[x(2026)](n,{ref:u=>{const f=x;c[f(1560)]=u;const y=n.ref;typeof y===f(1154)?y(u):y&&f(1560)in y&&(y.current=u)}})},{Text:Ur}=z[a(1052)],Gr=(e,n)=>{const t=a;if(!n||!e)return{value:void 0};if(Array.isArray(e)){const o=e.find(x=>x[t(2115)]===n);if(o)return{value:o[t(1981)],unit:o[t(793)]}}else if(typeof e===t(2171)){const o=n[t(1615)](".");let x=e;for(const r of o){if(x===null||typeof x!==t(2171))return{value:void 0};x=x[r]}if(x!==void 0)return{value:x,unit:e.unit}}return{value:void 0}};function fl(e){return Array.isArray(e)}const hl=(e,n,t)=>{const o=a,x=e[o(962)]||{},{valueSourceCode:r,boundDatasetId:i,boundDatasetBindCode:c,boundDatasetBindValue:d}=x;if(!r)return{value:void 0};if(i){const s=n[o(1876)](u=>u.id===i);if(s){let u;fl(s[o(1167)])?c!=null&&d!=null?u=s.sample[o(1876)](y=>y[c]===d)||{}:u={}:u=s[o(1167)];const f=t&&typeof t===o(2171)?{...u,...t}:u;return Gr(f,r)}}return Gr(t,r)},gl=(e,n)=>{const t=a;if(e==null||e==="")return"";if(n===-1)return String(e);const o=Number(e);return isNaN(o)?String(e):o[t(1704)](n??2)},yl=(e,n,t,o,x)=>{const r=a;switch(e[r(1424)]){case"IMAGE":const i=e,c=i.backgroundColor,d=i[r(1403)];let s=i.src;return d&&s&&s[r(911)](r(615))&&(e[r(659)]==="矩形"?s="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"><rect width="100" height="60" fill="'+d+r(1146)):e[r(659)]==="圆形"?s=r(1215)+encodeURIComponent(r(1822)+d+r(2126)):e[r(659)]===r(1272)&&(s="data:image/svg+xml,"+encodeURIComponent(r(2116)+d+'" rx="20"/></svg>'))),l[r(1993)](r(539),{className:r(820),style:{backgroundColor:c},children:s?l[r(1993)](r(916),{src:s,alt:e[r(659)],style:{width:r(1805),height:r(1805),objectFit:"contain"}}):l[r(1993)](r(539),{className:r(1778),children:l.jsx(r(1102),{className:r(929),children:r(1828)})})});case r(1505):const u=e,{label:f,value:y,valueSourceCode:g,unit:p,decimals:h,labelStyle:b,valueStyle:M,customStyle:v}=u[r(962)]||{},{value:m,unit:w}=g?hl(u,x||[],n):{value:void 0,unit:void 0},C=m!==void 0?m:y,k=gl(C,h),O=p||w||"";return l.jsxs(r(539),{className:r(1213),style:{...v},children:[f&&l[r(1993)](Ur,{style:{fontSize:14,fontWeight:r(1713),color:r(443),textAlign:r(1557),...b},children:f}),k&&l[r(1239)](Ur,{style:{fontSize:14,color:r(1690),textAlign:"left",...M},children:[k,O?" "+O:""]})]});case"LINE":const G=e,{thickness:j=2,color:A=r(1903),dashed:Z=!1,lineType:W=Z?"dashed":r(2176),lineWeight:q=j,startX:T=0,startY:N=0,endX:D=100,endY:L=0}=G[r(713)]||{},U=Q=>{const R=r,$=Math.max(q,1);switch(Q){case R(2176):return"";case R(2022):return $*8+","+$*4;case R(543):return $*12+","+$*3+","+$*2+","+$*3;case R(662):return $*12+","+$*3+","+$*2+","+$*3+","+$*2+","+$*3;case R(1175):return $+","+$*3;case"dash-dot":return $*8+","+$*3+","+$+","+$*3;default:return""}},P=U(W),S=t?"#1890ff":A;return l[r(1993)](r(539),{className:r(1504),style:{overflow:r(1136)},children:l[r(1239)](r(719),{className:r(1595),width:r(1805),height:r(1805),style:{overflow:r(1136),pointerEvents:r(1712)},children:[l[r(1993)]("line",{x1:T,y1:N,x2:D,y2:L,stroke:r(583),strokeWidth:Math[r(1439)](q,10),strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"stroke",cursor:r(727)}}),l[r(1993)](r(2070),{x1:T,y1:N,x2:D,y2:L,stroke:S,strokeWidth:q,strokeDasharray:P,strokeLinecap:r(723),strokeLinejoin:r(723),style:{pointerEvents:r(1712)}})]})});case r(755):const K=e;return K[r(489)]?K[r(489)]({}):l[r(1993)](r(539),{className:r(1710),children:l[r(1993)](r(1102),{className:r(929),children:"自定义组件"})});default:return l.jsx(r(539),{className:"w-full h-full flex items-center justify-center bg-gray-100",children:l[r(1993)](r(1102),{className:r(929),children:r(1061)})})}},ml=({node:e,isSelected:n=!1,onClick:t,onMouseDown:o,data:x,onUpdateNode:r,scale:i=1,enableEventFlow:c=!1,eventFlowData:d})=>{const s=a,{normalStyle:u,controlInfo:f}=e,{isClickable:y,isDraggable:g,isResizable:p}=f,h=e.contentInfo,b=He(_=>_[s(695)]),M=He(_=>_[s(1324)]),v=B[s(575)](t);B[s(363)](()=>{v.current=t},[t]);const[m,w]=B[s(655)](null),C=B[s(575)](null),k=B.useRef(null),O=B[s(575)](null),G=B.useRef(null),j=B[s(575)](null),[A,Z]=B[s(655)](null),[W,q]=B[s(655)](null),T=B.useRef(null),N=B[s(528)](()=>{const _=s,I=e.contentInfo[_(1247)];if(I[_(2194)]===0)return;const Y=or(I,x,b);return Y||I[0]},[e.contentInfo.statusList,x,b]),D=B.useRef(e.contentInfo.currentStatusId);B[s(363)](()=>{const _=s;D.current=e.contentInfo[_(1416)]},[e.id]),B.useEffect(()=>{const _=s,I=N?.id;I!==void 0&&D[_(1560)]!==I&&(D.current=I,M(e.id,{contentInfo:{...e[_(1537)],currentStatusId:I}}))},[N?.id,e.id,M]);const L=N?.[s(600)],U=L?.[s(1424)]===s(1881),P=U?L[s(713)]:null,S=u[s(476)]??1,K=(u.width||100)*S,Q=(u[s(1265)]||100)*S,R=B[s(1591)](()=>{const _=s,I=j[_(1560)]?.[_(686)](_(2087));if(!I)return i;const Y=I[_(1761)](),X=parseFloat(I[_(1346)].width);return X?Y[_(1238)]/X:i},[i]),$=B[s(1591)]((_,I)=>{const Y=s;_[Y(1064)](),_[Y(1923)]();const X=P?.[Y(1555)]||0,H=P?.startY||0,oe=P?.[Y(505)]||0,le=P?.[Y(1488)]||0,se=u.x||0,ge=u.y||0,ve=Math[Y(1439)]((P?.[Y(2123)]||P?.[Y(1832)]||2)*2,4),Ne=Math.min(X,oe),ze=Math[Y(831)](H,le),ke=Math[Y(1439)](X,oe),Ye=Math.max(H,le),Ie=Math[Y(1439)](ke-Ne,ve),Pe=Math[Y(1439)](Ye-ze,ve);C.current={mouseX:_[Y(1569)],mouseY:_[Y(1947)],startX:X,startY:H,endX:oe,endY:le,nodeX:se,nodeY:ge};const Ae=Math.min(X,oe),Ve=Math[Y(831)](H,le);O[Y(1560)]={nodeX:se+Ae,nodeY:ge+Ve,width:Ie,height:Pe,startX:X-Ae,startY:H-Ve,endX:oe-Ae,endY:le-Ve},k[Y(1560)]=N||null,w(I)},[P,u.x,u.y,N]);B[s(363)](()=>{const _=s;if(!m||!U||!P||!r)return;const I=X=>{const H=_0x4806,oe=C[H(1560)];if(!oe||!j.current)return;const le=R(),se=(X[H(1569)]-oe[H(1423)])/le,ge=(X[H(1947)]-oe[H(513)])/le;let ve=oe[H(1555)],Ne=oe[H(384)],ze=oe[H(505)],ke=oe[H(1488)],Ye=oe.nodeX,Ie=oe[H(860)];m===H(1989)?(ve=oe[H(1555)]+se,Ne=oe.startY+ge,ve<0&&(Ye=oe.nodeX+ve,ze=oe[H(505)]-ve,ve=0),Ne<0&&(Ie=oe[H(860)]+Ne,ke=oe[H(1488)]-Ne,Ne=0)):(ze=oe[H(505)]+se,ke=oe[H(1488)]+ge,ze<0&&(Ye=oe[H(1059)]+ze,ve=oe.startX-ze,ze=0),ke<0&&(Ie=oe[H(860)]+ke,Ne=oe[H(384)]-ke,ke=0));const Pe=Math[H(1439)]((P[H(2123)]||2)*2,4),Ae=Math[H(831)](ve,ze),Ve=Math.min(Ne,ke),tn=Math.max(ve,ze),yn=Math[H(1439)](Ne,ke),Je=Ye+Ae,rn=Ie+Ve,Xe=ve-Ae,cn=Ne-Ve,an=ze-Ae,xn=ke-Ve,mn=Math[H(1439)](tn-Ae,Pe),In=Math.max(yn-Ve,Pe);O[H(1560)]={nodeX:Je,nodeY:rn,width:mn,height:In,startX:Xe,startY:cn,endX:an,endY:xn};const _e=j.current;_e.style[H(1557)]=Je+"px",_e[H(1346)][H(1413)]=rn+"px",_e[H(1346)][H(1238)]=mn+"px",_e[H(1346)].height=In+"px",_e[H(409)](H(926))[H(1369)](We=>{const Pn=H;We.setAttribute("x1",String(Xe)),We.setAttribute("y1",String(cn)),We[Pn(1110)]("x2",String(an)),We[Pn(1110)]("y2",String(xn))});const Ke=_e[H(1542)]('[data-handle="start"]'),Hn=_e[H(1542)]('[data-handle="end"]');Ke&&(Ke[H(1346)][H(1557)]=Xe-6+"px",Ke.style[H(1413)]=cn-6+"px"),Hn&&(Hn[H(1346)].left=an-6+"px",Hn.style[H(1413)]=xn-6+"px")},Y=()=>{const X=_0x4806,H=O[X(1560)];if(!H||!r){w(null),C[X(1560)]=null,O[X(1560)]=null,k[X(1560)]=null;return}const oe=He.getState().nodes[X(1876)](ze=>ze.id===e.id),le=oe?.[X(1537)][X(1247)]??e.contentInfo[X(1247)],se=k.current,ge=se?.id??le[X(1876)](ze=>ze[X(600)][X(1424)]==="LINE")?.id,ve=le[X(542)](ze=>{const ke=X;if(ze[ke(600)][ke(1424)]!==ke(1881)||ze.id!==ge)return ze;const Ye=ze[ke(600)];return{...ze,material:{...Ye,config:{...Ye[ke(713)],startX:H[ke(1555)],startY:H[ke(384)],endX:H[ke(505)],endY:H[ke(1488)]}}}}),Ne=oe?.contentInfo??h;r(e.id,{normalStyle:{x:H[X(1059)],y:H[X(860)],width:H[X(1238)],height:H.height},contentInfo:{...Ne,statusList:ve}}),w(null),C.current=null,O[X(1560)]=null,k[X(1560)]=null};return window.addEventListener(_(530),I),window.addEventListener(_(1762),Y),()=>{const X=_;window[X(1339)](X(530),I),window[X(1339)](X(1762),Y)}},[m,U,P,e.id,u,h,e[s(1537)][s(1247)],r,R]),B[s(363)](()=>{const _=s;if(!A||!r)return;const I=X=>{const H=_0x4806;if(!j.current)return;const oe=R(),le=(X[H(1569)]-A[H(1555)])/oe,se=(X[H(1947)]-A[H(384)])/oe,ge=A[H(2153)],ve=ge*Math.PI/180,Ne=Math[H(1028)](ve),ze=Math[H(748)](ve),ke=le*Ne+se*ze,Ye=-le*ze+se*Ne;let Ie=A[H(733)],Pe=A[H(2165)],Ae=A.startNodeX,Ve=A[H(1789)];switch(A[H(1847)]){case"se":Ie=Math[H(1439)](20,A.startWidth+ke),Pe=Math[H(1439)](20,A.startHeight+Ye);break;case"sw":Ie=Math.max(20,A.startWidth-ke),Pe=Math[H(1439)](20,A[H(2165)]+Ye),Ae=A[H(1924)]+(A[H(733)]-Ie);break;case"ne":Ie=Math.max(20,A.startWidth+ke),Pe=Math[H(1439)](20,A.startHeight-Ye),Ve=A.startNodeY+(A[H(2165)]-Pe);break;case"nw":Ie=Math[H(1439)](20,A[H(733)]-ke),Pe=Math[H(1439)](20,A[H(2165)]-Ye),Ae=A[H(1924)]+(A[H(733)]-Ie),Ve=A[H(1789)]+(A[H(2165)]-Pe);break}if(ge!==0){let yn=0,Je=0,rn=0,Xe=0;switch(A[H(1847)]){case"se":yn=0,Je=0,rn=0,Xe=0;break;case"sw":yn=A[H(733)],Je=0,rn=Ie,Xe=0;break;case"ne":yn=0,Je=A[H(2165)],rn=0,Xe=Pe;break;case"nw":yn=A[H(733)],Je=A[H(2165)],rn=Ie,Xe=Pe;break}const cn=yn-A[H(733)]/2,an=Je-A[H(2165)]/2,xn=cn*Ne-an*ze,mn=cn*ze+an*Ne,In=rn-Ie/2,_e=Xe-Pe/2,Bt=In*Ne-_e*ze,Ke=In*ze+_e*Ne;Ae=A[H(1924)]+A.startWidth/2-Ie/2+xn-Bt,Ve=A[H(1789)]+A[H(2165)]/2-Pe/2+mn-Ke}G[H(1560)]={x:Ae,y:Ve,width:Ie,height:Pe};const tn=j[H(1560)];tn[H(1346)][H(1557)]=Ae+"px",tn.style.top=Ve+"px",tn[H(1346)][H(1238)]=Ie+"px",tn[H(1346)][H(1265)]=Pe+"px"},Y=()=>{const X=_0x4806,H=G[X(1560)];H&&r(e.id,{normalStyle:{...u,x:H.x,y:H.y,width:H[X(1238)],height:H[X(1265)]}}),Z(null),G[X(1560)]=null};return window[_(1966)]("mousemove",I),window[_(1966)](_(1762),Y),()=>{const X=_;window[X(1339)](X(530),I),window[X(1339)](X(1762),Y)}},[A,r,e.id,u,R]);const xe=B[s(1591)]((_,I)=>{const Y=s;_[Y(1064)](),_[Y(1923)](),Z({corner:I,startX:_[Y(1569)],startY:_[Y(1947)],startWidth:u[Y(1238)]||100,startHeight:u.height||100,startNodeX:u.x||0,startNodeY:u.y||0,startRotate:u[Y(836)]||0})},[u[s(1238)],u[s(1265)],u.x,u.y,u[s(836)]]),ce=B.useCallback(_=>{const I=s;_.stopPropagation(),_.preventDefault();const Y=j[I(1560)]?.getBoundingClientRect();Y&&q({startX:_[I(1569)],startY:_[I(1947)],startAngle:u[I(836)]||0,centerX:Y[I(1557)]+Y[I(1238)]/2,centerY:Y[I(1413)]+Y[I(1265)]/2})},[u[s(836)]]);B[s(363)](()=>{const _=s;if(!W)return;const I=X=>{const H=_0x4806,oe=X[H(1569)]-W.centerX,le=X[H(1947)]-W.centerY;let ge=(Math[H(1689)](le,oe)*(180/Math.PI)+90)%360;if(ge<0&&(ge+=360),T[H(1560)]=ge,j[H(1560)]){const ve=u[H(1130)]||"";j.current.style[H(1130)]=(H(970)+ge+H(1221)+ve)[H(1258)]()}},Y=()=>{const X=_0x4806,H=T[X(1560)]??W[X(833)];T[X(1560)]=null,r&&r(e.id,{normalStyle:{...u,rotate:Math[X(723)](H)}}),q(null)};return window[_(1966)](_(530),I),window[_(1966)](_(1762),Y),()=>{const X=_;window[X(1339)](X(530),I),window[X(1339)](X(1762),Y)}},[W,r,e.id,u]);const de=e.type===s(1728),fe={position:"absolute",left:u.x||0,top:u.y||0,width:K,height:Q,background:de?s(583):u[s(451)]||s(583),backgroundImage:de?void 0:u.backgroundImage?s(850)+u.backgroundImage+")":void 0,backgroundSize:s(1912),backgroundPosition:s(543),padding:Array[s(927)](u[s(524)])?u[s(524)][s(886)]("px ")+"px":u.padding,margin:Array.isArray(u[s(1936)])?u[s(1936)][s(886)](s(1919))+"px":u[s(1936)],borderRadius:de?void 0:u[s(1637)],border:n&&!U?s(439):U?s(1712):de?"none":u[s(397)]||s(1493),pointerEvents:s(1314),opacity:u.opacity??1,transform:U?u[s(1130)]||void 0:(s(970)+(T[s(1560)]??(u.rotate||0))+"deg) "+(u.transform||""))[s(1258)](),transformOrigin:s(880),zIndex:n?1e3:u[s(540)]??1,cursor:g&&!m?"move":y?s(727):"default",boxSizing:"border-box",overflow:s(n||U||de?1136:1821)},ie=P?{x:P.startX||0,y:P[s(384)]||0}:{x:0,y:0},J=P?{x:P[s(505)]||0,y:P[s(1488)]||0}:{x:0,y:0},re=l[s(1239)](s(539),{ref:j,"data-node-id":e.id,style:fe,onClick:_=>{const I=s;console[I(365)]("NodeRenderer onClick",e.id,I(2100),y);const Y=v[I(1560)];y&&Y&&!m&&!A&&!W&&(_[I(1064)](),Y(_))},onMouseDown:_=>{g&&o&&!m&&o(_)},children:[n&&!U&&l.jsxs(l.Fragment,{children:[!de&&l[s(1239)](l.Fragment,{children:[l[s(1993)](s(539),{className:s(1192),style:{zIndex:9999,pointerEvents:s(1314),cursor:s(1913),marginTop:"-6px",marginLeft:"-6px"},onMouseDown:_=>xe(_,"nw"),title:"拖拽调整大小"}),l[s(1993)]("div",{className:s(1119),style:{zIndex:9999,pointerEvents:s(1314),cursor:s(2117),marginTop:"-6px",marginRight:s(1977)},onMouseDown:_=>xe(_,"ne"),title:"拖拽调整大小"}),l[s(1993)](s(539),{className:"absolute bottom-0 left-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:"auto",cursor:"sw-resize",marginBottom:s(1977),marginLeft:s(1977)},onMouseDown:_=>xe(_,"sw"),title:s(932)}),l.jsx(s(539),{className:s(1939),style:{zIndex:9999,pointerEvents:"auto",cursor:s(938),marginBottom:"-6px",marginRight:s(1977)},onMouseDown:_=>xe(_,"se"),title:s(932)})]}),l[s(1993)]("div",{className:s(666),style:{zIndex:9999,pointerEvents:s(1314),cursor:s(1189),marginTop:"-20px",transform:s(361),boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:_=>ce(_),title:s(789)}),l[s(1993)]("div",{className:s(1866),style:{zIndex:9998,pointerEvents:s(1712),marginTop:"-14px",transform:"translateX(-50%)"}}),l.jsxs(s(539),{className:s(725),children:[e[s(659)]," ",N?"("+N[s(659)]+")":""]})]}),n&&U&&P&&r&&l[s(1239)](l[s(915)],{children:[l.jsx(s(539),{"data-handle":s(1989),className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:ie.x-6,top:ie.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:_=>$(_,s(1989)),title:"拖拽调整起点"}),l[s(1993)]("div",{"data-handle":s(412),className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:J.x-6,top:J.y-6,boxShadow:s(1934)},onMouseDown:_=>$(_,s(412)),title:s(1084)}),l[s(1993)](s(539),{className:s(725),children:e[s(659)]})]}),l[s(1993)]("div",{className:s(1504),children:L?l.jsx("div",{className:s(841),children:yl(L,x,n,e,b)}):de?null:l[s(1993)](s(539),{className:s(2189),children:s(2013)})}),e[s(1424)]===s(1728)&&e[s(514)]&&l[s(1993)](s(539),{className:s(1194),children:e[s(514)].map(_=>l[s(1993)](s(539),{className:s(2129),children:l.jsx(Yx,{node:_,isSelected:!1,data:x,onUpdateNode:r,scale:i,enableEventFlow:c,eventFlowData:d})},_.id))})]});return c?l[s(1993)](Yr,{node:e,flowContextData:d,children:re}):re},Yx=B[a(1312)](ml,(e,n)=>{const t=a,o=e[t(1997)],x=n[t(1997)],r=o.id===x.id&&o[t(721)].x===x[t(721)].x&&o[t(721)].y===x.normalStyle.y&&o[t(721)][t(1238)]===x[t(721)][t(1238)]&&o.normalStyle.height===x[t(721)].height&&o[t(721)][t(836)]===x.normalStyle.rotate,i=o[t(1537)]===x[t(1537)],c=JSON[t(1571)](e[t(1819)]??null)===JSON[t(1571)](n[t(1819)]??null),d=e[t(1070)]===n[t(1070)]&&e[t(476)]===n.scale&&e[t(764)]===n.enableEventFlow&&c,s=g=>{const p=t,h=[];return g.contentInfo?.[p(1247)]?.[p(1369)](b=>{const M=p;if(b[M(600)]?.type===M(1881)){const v=b.material[M(713)];h[M(1465)]({statusId:b.id,startX:v?.[M(1555)]??0,startY:v?.[M(384)]??0,endX:v?.[M(505)]??100,endY:v?.endY??0})}}),h},u=s(o),f=s(x);let y=!0;if(u[t(2194)]!==f[t(2194)])y=!1;else for(let g=0;g<u[t(2194)];g++){const p=u[g],h=f[t(1876)](b=>b[t(1608)]===p.statusId);if(!h||p[t(1555)]!==h.startX||p[t(384)]!==h.startY||p.endX!==h[t(505)]||p.endY!==h[t(1488)]){y=!1;break}}return r&&i&&d&&y}),wl=()=>{const e=a,{root:n,addSiblingGroup:t,removeSiblingGroup:o,updateSiblingGroup:x,addCanvasToSiblingGroup:r,removeCanvasFromSiblingGroup:i,moveCanvasInSiblingGroup:c,nextSiblingCanvas:d,prevSiblingCanvas:s}=He(),u=n[e(369)]||[],[f,y]=B[e(655)](u[0]?.id??null),g=B[e(528)](()=>u.find(G=>G.id===f)||null,[u,f]),[p,h]=B[e(655)](null),[b,M]=B[e(655)](""),[v,m]=B[e(655)](void 0),w=B.useMemo(()=>{const G=e;return g?n[G(1889)].filter(j=>!g[G(1768)][G(911)](j.id)):n.canvases},[n[e(1889)],g]),C=B[e(1591)](()=>{const G=t();y(G)},[t]),k=B[e(1591)](G=>{const j=e,A=b[j(1258)]();if(!A){z.message[j(1419)](j(1124));return}x(G,{name:A}),h(null),M("")},[b,x]),O=B[e(1591)](()=>{!g||!v||(r(g.id,v),m(void 0))},[g,v,r]);return l.jsxs("div",{className:e(1219),style:{minHeight:360},children:[l[e(1239)](e(539),{className:"flex-1 border border-gray-200 rounded p-2",style:{minWidth:220},children:[l[e(1239)](e(539),{className:e(1845),children:[l[e(1993)](e(1102),{className:e(1759),children:e(1867)}),l[e(1993)](z[e(1804)],{type:e(1236),size:e(398),icon:l[e(1993)](ae[e(1442)],{}),onClick:C,children:"新建"})]}),u[e(2194)]===0?l[e(1993)](z[e(900)],{description:"暂无同级关系,点击「新建」开始",image:z[e(900)][e(592)],style:{marginTop:40}}):l[e(1993)](z.List,{size:e(398),dataSource:u,renderItem:G=>{const j=e,A=G.id===f,Z=p===G.id;return l[j(1993)](z.List.Item,{onClick:()=>{Z||y(G.id)},style:{cursor:j(727),background:A?j(866):void 0,padding:"6px 8px"},actions:[Z?l[j(1993)](z.Button,{type:"link",size:j(398),onClick:W=>{W[j(1064)](),k(G.id)},children:"保存"}):l[j(1993)](z[j(1654)],{title:j(407),children:l[j(1993)](z[j(1804)],{type:"text",size:"small",icon:l.jsx(ae[j(1081)],{}),onClick:W=>{const q=j;W[q(1064)](),h(G.id),M(G[q(659)])}})},j(446)),l[j(1993)](z[j(813)],{title:j(1371),okText:"删除",cancelText:"取消",okButtonProps:{danger:!0},onConfirm:W=>{const q=j;if(W?.[q(1064)](),o(G.id),f===G.id){const T=u[q(1641)](N=>N.id!==G.id);y(T[0]?.id??null)}},onCancel:W=>W?.[j(1064)](),children:l[j(1993)](z.Button,{type:"text",size:j(398),danger:!0,icon:l[j(1993)](ae[j(1096)],{}),onClick:W=>W[j(1064)]()})},j(1147))],children:Z?l[j(1993)](z[j(370)],{autoFocus:!0,size:j(398),value:b,onChange:W=>M(W[j(603)][j(1981)]),onPressEnter:()=>k(G.id),onClick:W=>W[j(1064)](),style:{width:140}}):l[j(1239)](j(1102),{className:j(1266),children:[l[j(1993)](j(1102),{style:{fontWeight:A?600:400},children:G.name}),l[j(1993)](z[j(2037)],{color:j(1306),children:G[j(1768)][j(2194)]})]})})}})]}),l[e(1993)](e(539),{className:e(746),style:{minWidth:280},children:g?l[e(1239)](l[e(915)],{children:[l[e(1239)](e(539),{className:e(1845),children:[l[e(1993)](e(1102),{className:e(1759),children:e(1116)}),l.jsxs(z[e(2132)],{size:e(398),children:[l.jsx(z.Tooltip,{title:e(1875),children:l[e(1993)](z[e(1804)],{size:e(398),icon:l[e(1993)](ae[e(862)],{}),disabled:g[e(1768)][e(2194)]<2,onClick:()=>s(g.id)})}),l.jsx(z[e(1654)],{title:e(1590),children:l[e(1993)](z[e(1804)],{size:e(398),icon:l[e(1993)](ae[e(882)],{}),disabled:g[e(1768)][e(2194)]<2,onClick:()=>d(g.id)})})]})]}),l.jsxs(e(539),{className:"flex items-center gap-2 mb-3",children:[l[e(1993)](z[e(462)],{placeholder:e(797),value:v,onChange:m,style:{flex:1},size:e(398),disabled:w[e(2194)]===0,options:w[e(542)](G=>({label:G[e(659)],value:G.id}))}),l[e(1993)](z[e(1804)],{size:e(398),type:e(1236),icon:l[e(1993)](ae[e(1442)],{}),disabled:!v,onClick:O,children:"加入"})]}),g.canvasIds[e(2194)]===0?l[e(1993)](z.Empty,{description:e(1128),image:z[e(900)][e(592)],style:{marginTop:40}}):l.jsx(z.List,{size:e(398),dataSource:g[e(1768)],renderItem:(G,j)=>{const A=e,Z=n.canvases[A(1876)](T=>T.id===G),W=n[A(1945)]===G,q=g.canvasIds[A(2194)];return l.jsx(z.List.Item,{style:{padding:A(1908)},actions:[l[A(1993)](z[A(1654)],{title:"上移",children:l[A(1993)](z.Button,{type:A(1755),size:A(398),icon:l.jsx(ae[A(1592)],{}),disabled:j===0,onClick:()=>c(g.id,G,"up")})},"up"),l.jsx(z[A(1654)],{title:"下移",children:l[A(1993)](z[A(1804)],{type:A(1755),size:A(398),icon:l[A(1993)](ae[A(1882)],{}),disabled:j===q-1,onClick:()=>c(g.id,G,A(1387))})},A(1387)),l.jsx(z[A(1654)],{title:A(477),children:l.jsx(z[A(1804)],{type:A(1755),size:A(398),danger:!0,icon:l[A(1993)](ae.DeleteOutlined,{}),onClick:()=>i(g.id,G)})},A(921))],children:l[A(1239)](A(1102),{className:A(1266),children:[l[A(1993)](z[A(2037)],{children:j+1}),l[A(1993)](A(1102),{style:{fontWeight:W?600:400},children:Z?.name??A(424)+G[A(1172)](0,6)+")"}),W&&l[A(1993)](z.Tag,{color:"green",children:"当前"})]})})}})]}):l[e(1993)](z.Empty,{description:e(1976),image:z.Empty.PRESENTED_IMAGE_SIMPLE,style:{marginTop:60}})})]})},vl=[a(1690),a(2010),a(753),a(745),a(1396),"#eb2f96",a(1995),a(1734),a(507),a(443),a(2060),a(1903),"#ffffff",a(910),a(1760),a(1879)],dt=({value:e=a(1690),onChange:n,onChangeComplete:t})=>{const o=a,[x,r]=B.useState(!1),[i,c]=B.useState(e),d=B.useRef(null);B[o(363)](()=>{c(e)},[e]),B[o(363)](()=>{const u=o,f=y=>{const g=_0x4806;d[g(1560)]&&!d.current.contains(y[g(603)])&&(r(!1),t?.({toHexString:()=>i}))};return x&&document[u(1966)](u(874),f),()=>document[u(1339)](u(874),f)},[x,t,i]);const s=u=>{c(u),n?.({toHexString:()=>u})};return l.jsxs(o(539),{ref:d,style:{position:o(1837),display:o(1056)},children:[l[o(1993)](o(539),{onClick:()=>r(!x),style:{width:28,height:28,backgroundColor:i,border:o(812),borderRadius:4,cursor:"pointer"}}),x&&l[o(1239)](o(539),{style:{position:o(2080),top:32,left:0,zIndex:1e3,background:o(1107),padding:8,borderRadius:4,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",border:o(1593)},children:[l[o(1993)](o(539),{style:{display:o(914),gridTemplateColumns:o(784),gap:4},children:vl[o(542)](u=>l.jsx("div",{onClick:()=>{s(u),r(!1),t?.({toHexString:()=>u})},style:{width:20,height:20,backgroundColor:u,border:o(i===u?439:812),borderRadius:2,cursor:o(727)}},u))}),l[o(1993)]("input",{type:"color",value:i,onChange:u=>s(u.target[o(1981)]),onBlur:()=>t?.({toHexString:()=>i}),style:{width:"100%",marginTop:8,height:28,border:o(812),borderRadius:4}})]})]})},{TextArea:pl}=z.Input;function bl(e){const n=a;if(!e||!(e instanceof HTMLElement))return!1;const t=e.tagName;return!!(t===n(739)||t===n(982)||t===n(1729)||t===n(1282)||e[n(801)]||e[n(686)](n(1598))||e.closest(n(1013))||e[n(686)](n(2083)))}const Or=({defaultTestData:e,readonly:n=!1,backgroundImageUrl:t,initialViewportWidth:o,initialViewportHeight:x})=>{const r=a,i=B.useRef(null),c=B.useRef(null),d=B[r(575)](null),{nodes:s,selectedNodeId:u,selectedNodeIds:f,mode:y,lineDrawing:g,viewport:p,canvas:h,root:b,setViewport:M,setCanvasConfig:v,addNode:m,selectNode:w,updateNode:C,removeNode:k,bringToFront:O,sendToBack:G,undo:j,redo:A,setMode:Z,startLineDrawing:W,endLineDrawing:q,cancelLineDrawing:T,addCanvas:N,removeCanvas:D,switchCanvas:L,updateCanvasName:U,exportCanvas:P,importCanvas:S,setSelectedNodeIds:K}=He(),[Q,R]=B[r(655)](!1),[,$]=B[r(655)]({}),xe=B[r(575)](y);B.useEffect(()=>{const E=r;xe[E(1560)]=y},[y]),B.useEffect(()=>{const E=r;Z(E(n?664:1877))},[n,Z]);const ce=n&&o&&h[r(1238)]>0?Math[r(831)](o/h[r(1238)],1):.5,de=n&&o?1:5,fe=n&&o&&h[r(1238)]>0?ce:1,ie=n&&o?r(1216)+o+"-"+(x||r(1314))+r(607)+h[r(1238)]+"-"+h.height:r(1582),J=B[r(575)](fe),re=B[r(575)](!1),_=B[r(575)]({x:0,y:0}),I=B.useRef({x:0,y:0,newX:0,newY:0}),Y=B.useRef(null),[X,H]=B[r(655)]({start:null,end:null,isDrawing:!1}),[oe,le]=B[r(655)]({start:null,end:null}),se=f,ge=K;B[r(575)](!1);const[ve,Ne]=B[r(655)](!1),[ze,ke]=B[r(655)](!1),[Ye,Ie]=B[r(655)](()=>JSON[r(1571)](e??null,null,2)),Pe=B[r(528)](()=>{const E=r;if(!ze)return e;try{return JSON[E(871)](Ye)}catch{return e}},[Ye,e,ze]),Ae=B[r(528)](()=>{const E=r,V=Pe;if(V!==null&&typeof V===E(2171))return V;if(V!==void 0)return{_payload:V}},[Pe]),Ve=B[r(528)](()=>{const E=Pe;return E!==null&&typeof E=="object"&&!Array.isArray(E)?E:Array.isArray(E)?{_telemetryRows:E}:E==null?{}:{_payload:E}},[Pe]),tn=B.useCallback(()=>{const E=r;let V=e;if(ze)try{V=JSON[E(871)](Ye)}catch{V=e}Ie(JSON[E(1571)](V??null,null,2)),Ne(!0)},[Ye,e,ze]),[yn,Je]=B[r(655)](!1),[rn,Xe]=B[r(655)](!1),[cn,an]=B[r(655)](""),[xn,mn]=B[r(655)](!1),In=B.useCallback(()=>{const E=r;try{const V=P(),ne=JSON[E(1571)](V,null,2),te=E(869)+encodeURIComponent(ne),ue="canvas_"+V.canvas.name+"_"+Date[E(1960)]()+E(1323),F=document[E(1990)]("a");F[E(1110)](E(1412),te),F[E(1110)](E(766),ue),F[E(1280)](),z.message[E(2093)](E(473))}catch{z[E(452)].error(E(2074))}},[P]),_e=B[r(1591)](()=>{const E=r;try{const V=JSON[E(871)](cn);xn?S(V):S(V,b.currentCanvasId||void 0),Xe(!1),an(""),mn(!1),z[E(452)].success(E(1441))}catch{z.message[E(551)](E(2151))}},[cn,xn,S,b[r(1945)]]),Bt=B[r(1591)](E=>{const V=r,ne=new FileReader;return ne[V(1841)]=te=>{const ue=V;try{const F=te.target?.[ue(532)],ee=JSON[ue(871)](F);xn?S(ee):S(ee,b.currentCanvasId||void 0),z[ue(452)][ue(2093)](ue(1441)),Xe(!1),mn(!1)}catch{z[ue(452)][ue(551)]("文件格式错误")}},ne[V(2053)](E),!1},[xn,S,b.currentCanvasId]),[Ke,Hn]=B.useState(!1),We=B[r(1591)]((E,V)=>{const ne=r;if(!c[ne(1560)])return{x:0,y:0};const te=c[ne(1560)][ne(1761)](),ue=E-te[ne(1557)],F=V-te[ne(1413)],ee=te[ne(1238)]/h[ne(1238)],ye=te[ne(1265)]/h[ne(1265)],we=ue/ee,me=F/ye;return{x:Math.round(we),y:Math[ne(723)](me)}},[h[r(1238)],h[r(1265)]]),Pn=B[r(1591)]((E,V)=>We(E,V),[We]),Dt=B[r(1591)]((E,V,ne=!0)=>{const te=r;if(!g[te(600)])return;const ue=g[te(600)],F=ue[te(713)]||{},ee=F[te(2123)]||F[te(1832)]||2,ye=Math.min(E.x,V.x),we=Math.min(E.y,V.y),me=Math[te(723)](E.x-ye),Ce=Math[te(723)](E.y-we),pe=Math[te(723)](V.x-ye),Se=Math[te(723)](V.y-we),Oe=Math.max(ee*2,4),Fe=Math[te(1439)](Math[te(1018)](E.x-V.x),Oe),wn=Math.max(Math[te(1018)](E.y-V.y),Oe),Ze={...ue,id:be[te(1161)](),config:{color:F.color,lineWeight:ee,thickness:ee,lineType:F[te(1586)],startX:me,startY:Ce,endX:pe,endY:Se}},Le={id:be[te(1161)](),name:ue.name+"_"+Date.now(),type:"normal",normalStyle:{width:Fe,height:wn,x:ye,y:we,background:te(583)},contentInfo:{statusList:[Lx(Ze)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(m(Le,!1),ne){const De={x:V.x,y:V.y};H({start:De,end:{...De},isDrawing:!0})}else H({start:null,end:null,isDrawing:!1}),q()},[g[r(600)],m,q]),ko=B[r(1591)](()=>{const E=r,V=i[E(1560)]?.[E(1549)];if(!V)return;const ne=V[E(571)];J.current=ne.scale,M({scale:ne.scale,positionX:0,positionY:0})},[M]),Io=B[r(1591)](E=>{const V=r;re[V(1560)]||y!==V(809)&&(E[V(603)]===c.current||E[V(603)][V(588)]?.canvas===V(1501))&&(w(null),ge([]))},[w,y]),Po=B[r(1591)](E=>{const V=r;if(E[V(772)]===0){if(y==="line-draw"&&g[V(600)]){E.stopPropagation();const ne=We(E[V(1569)],E.clientY);X[V(943)]?X[V(1989)]&&Dt(X.start,ne,!0):H({start:ne,end:ne,isDrawing:!0});return}if(y===V(809)&&!Ke){const ne=Pn(E[V(1569)],E[V(1947)]);le({start:ne,end:ne}),ge([]),w(null),E[V(1923)](),E[V(1064)]()}}},[y,g[r(600)],X[r(943)],X[r(1989)],Ke,Dt,We,Pn]),Ao=B[r(1591)](E=>{const V=r;if(!(y!==V(1785)||!g[V(600)])&&X[V(943)]&&X.start){const ne=We(E[V(1569)],E[V(1947)]);Dt(X[V(1989)],ne,!1)}},[y,g[r(600)],X.isDrawing,X.start,Dt,We]),jo=B[r(1591)](E=>{const V=r;E[V(1923)](),E[V(508)][V(1101)]="copy",R(!0)},[]),Eo=B[r(1591)](E=>{E[r(1923)](),R(!1)},[]),Yo=B.useCallback(E=>{const V=r;if(E[V(1923)](),R(!1),!(!c[V(1560)]||y!==V(1877)))try{const ne=E.dataTransfer.getData(V(1885));if(!ne)return;const te=JSON[V(871)](ne),ue=We(E[V(1569)],E.clientY),F=ue.x-50,ee=ue.y-50,ye=ar(F,ee,te);m(ye),ge([ye.id])}catch(ne){console[V(551)](V(864),ne)}},[y,m,We]),Uo=B.useCallback((E,V)=>{const ne=r;y!==ne(1877)&&y!==ne(809)||!V[ne(814)][ne(1638)]||(E[ne(1064)](),w(V.id),re.current=!0,_[ne(1560)]={x:E[ne(1569)],y:E[ne(1947)]},I[ne(1560)]={x:V[ne(721)].x||0,y:V[ne(721)].y||0,newX:V.normalStyle.x||0,newY:V[ne(721)].y||0},Y[ne(1560)]=V,E[ne(1923)]())},[y,w]);B[r(363)](()=>{const E=r,V=F=>{const ee=_0x4806;if(re[ee(1560)]&&u&&Y.current){if(!c[ee(1560)])return;const ye=c[ee(1560)][ee(1761)](),we=ye.width/h[ee(1238)],me=ye[ee(1265)]/h.height,Ce=F[ee(1569)]-_.current.x,pe=F[ee(1947)]-_[ee(1560)].y,Se=Ce/we,Oe=pe/me,Fe=I[ee(1560)].x+Se,wn=I[ee(1560)].y+Oe,Ze=document[ee(1542)](ee(2156)+u+'"]');Ze&&(Ze.style[ee(1557)]=Fe+"px",Ze[ee(1346)][ee(1413)]=wn+"px"),I.current[ee(1170)]=Fe,I[ee(1560)][ee(1449)]=wn}if(y===ee(809)&&oe[ee(1989)]){const ye=Pn(F[ee(1569)],F.clientY);le(we=>({...we,end:ye}))}if(y===ee(1785)&&X[ee(943)]){const ye=We(F[ee(1569)],F[ee(1947)]);H(we=>({...we,end:ye}))}},ne=()=>{const F=_0x4806;if(re.current&&u&&Y.current){const ee=He.getState(),ye=I[F(1560)][F(1170)]??I[F(1560)].x,we=I[F(1560)][F(1449)]??I.current.y;ee[F(1324)](u,{normalStyle:{...Y.current[F(721)],x:ye,y:we}})}if(re[F(1560)]=!1,Y[F(1560)]=null,$({}),y===F(809)&&oe[F(1989)]&&oe[F(412)]){const ee=Math[F(831)](oe[F(1989)].x,oe[F(412)].x),ye=Math.max(oe[F(1989)].x,oe[F(412)].x),we=Math.min(oe.start.y,oe[F(412)].y),me=Math[F(1439)](oe[F(1989)].y,oe.end.y),Ce=s[F(1641)](pe=>{const Se=F,Oe=pe[Se(721)].x||0,Fe=pe[Se(721)].y||0,wn=pe[Se(721)].width||0,Ze=pe[Se(721)][Se(1265)]||0,Le=Oe+wn/2,De=Fe+Ze/2;return Le>=ee&&Le<=ye&&De>=we&&De<=me}).map(pe=>pe.id);ge(Ce),le({start:null,end:null})}},te=F=>{const ee=_0x4806;if(!bl(F[ee(603)])){if(F[ee(1460)]===ee(483)&&y==="line-draw"&&(H({start:null,end:null,isDrawing:!1}),T()),F[ee(1460)]===ee(1484)&&(u?k(u):se.length>0&&(se.forEach(ye=>k(ye)),ge([]))),F.ctrlKey&&F[ee(1460)]==="z"&&(F.preventDefault(),j()),F[ee(569)]&&F[ee(1460)]==="y"&&(F.preventDefault(),A()),(y===ee(1877)||y===ee(809))&&(F.key===ee(1174)||F.key===ee(1333)||F[ee(1460)]===ee(1949)||F[ee(1460)]==="ArrowDown")){const ye=se[ee(2194)]>0?se:u?[u]:[];if(ye.length>0){F.preventDefault();const we=F[ee(1460)]===ee(1174)?-2:F[ee(1460)]===ee(1333)?2:0,me=F[ee(1460)]===ee(1949)?-2:F[ee(1460)]===ee(1737)?2:0;ye[ee(1369)](Ce=>{const pe=ee,Se=s[pe(1876)](Oe=>Oe.id===Ce);Se&&C(Ce,{normalStyle:{...Se[pe(721)],x:(Se[pe(721)].x||0)+we,y:(Se[pe(721)].y||0)+me}})})}}F.key===" "&&!Ke&&(F[ee(1923)](),Hn(!0))}},ue=F=>{F.key===" "&&Ke&&Hn(!1)};return window.addEventListener(E(530),V),window.addEventListener(E(1762),ne),window.addEventListener(E(1354),te),window[E(1966)](E(1320),ue),()=>{const F=E;window[F(1339)]("mousemove",V),window[F(1339)]("mouseup",ne),window[F(1339)](F(1354),te),window.removeEventListener("keyup",ue)}},[u,oe,y,X[r(943)],se,s,h[r(1238)],h.height,k,j,Ke,A,T,We,Pn,ge,C]);const sx=(E,V=!0)=>{const ne=r,te={...E,id:be.nanoid(),name:E[ne(659)]+"_副本",normalStyle:{...E[ne(721)],x:(E.normalStyle.x||0)+(V?20:0),y:(E[ne(721)].y||0)+(V?20:0)}};return E[ne(1424)]==="group"&&E[ne(514)]&&(te[ne(514)]=E[ne(514)].map(ue=>sx(ue,!1))),te},lx=B[r(1591)](()=>{const E=r,V=se[E(2194)]>0?se[E(542)](te=>s[E(1876)](ue=>ue.id===te))[E(1641)](Boolean):u?[s.find(te=>te.id===u)].filter(Boolean):[];if(V[E(2194)]===0)return;const ne=[];V.forEach(te=>{const ue=E,F=sx(te);m(F),ne[ue(1465)](F.id)}),ne.length===1?w(ne[0]):ge(ne)},[u,se,s,m,w,ge]),dx=B[r(1591)](()=>{const E=r;if(se[E(2194)]<2)return;const V=[];for(let we=0;we<se[E(2194)];we++){const me=se[we],Ce=s.find(pe=>pe.id===me);if(Ce){if(Ce?.[E(1424)]===E(1728)){Ce[E(514)][E(1369)](Se=>V[E(1465)]({...Se,normalStyle:{...Se.normalStyle,x:(Ce[E(721)].x||0)+(Se[E(721)].x||0),y:(Ce[E(721)].y||0)+(Se[E(721)].y||0)}})),k(me);continue}V.push(Ce)}}if(V[E(2194)]<2)return;let ne=1/0,te=1/0,ue=-1/0,F=-1/0;V[E(1369)](we=>{const me=E,Ce=we[me(721)].x||0,pe=we[me(721)].y||0,Se=we[me(721)][me(1238)]||0,Oe=we[me(721)][me(1265)]||0;ne=Math[me(831)](ne,Ce),te=Math.min(te,pe),ue=Math[me(1439)](ue,Ce+Se),F=Math[me(1439)](F,pe+Oe)});const ee=V[E(542)](we=>({...we,normalStyle:{...we[E(721)],x:(we.normalStyle.x||0)-ne,y:(we[E(721)].y||0)-te}})),ye={id:be.nanoid(),name:"群组_"+Date.now(),type:E(1728),normalStyle:{x:ne,y:te,width:ue-ne,height:F-te,background:E(583)},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:ee};se[E(1369)](we=>k(we)),m(ye),ge([]),w(ye.id)},[se,s,k,m,w]),ux=E=>{const V=r,ne={...E,id:be[V(1161)]()};return E.type===V(1728)&&E[V(514)]&&(ne[V(514)]=E.children[V(542)](te=>ux(te))),ne},fx=B[r(1591)](()=>{const E=r,V=se.length>0?se.map(ne=>s[E(1876)](te=>te.id===ne))[E(1641)](ne=>!!ne&&ne[E(1424)]===E(1728)):u?[s[E(1876)](ne=>ne.id===u)][E(1641)](ne=>!!ne&&ne[E(1424)]===E(1728)):[];V[E(2194)]!==0&&(V[E(1369)](ne=>{const te=E;if(!ne[te(514)]||ne[te(514)][te(2194)]===0)return;const ue=ne[te(721)].x||0,F=ne[te(721)].y||0,ee=ne[te(721)][te(1238)]||0,ye=ne.normalStyle[te(1265)]||0,we=ne[te(721)][te(836)]||0,me=we*Math.PI/180,Ce=Math[te(1028)](me),pe=Math[te(748)](me),Se=ue+ee/2,Oe=F+ye/2,Fe=(Ze,Le)=>{const De=Ze-ee/2,nt=Le-ye/2;return{x:Se+De*Ce-nt*pe,y:Oe+De*pe+nt*Ce}},wn=ne[te(514)][te(542)](Ze=>{const Le=te,De=ux(Ze);if(De.contentInfo[Le(1247)].some(Ho=>Ho[Le(600)].type===Le(1881))){const Ho=De[Le(721)].x||0,d5=De[Le(721)].y||0,xs=De.normalStyle[Le(1238)]||0,os=De[Le(721)].height||0,u5=De.normalStyle.rotate||0,rs=u5*Math.PI/180,is=Math[Le(1028)](rs),cs=Math[Le(748)](rs),as=(ot,qe)=>{const vn=ot-xs/2,Mn=qe-os/2,sn=vn*is-Mn*cs+xs/2,Wo=vn*cs+Mn*is+os/2;return Fe(Ho+sn,d5+Wo)};let tt=1/0,xt=1/0,To=-1/0,Vo=-1/0,qo=2;const f5=De.contentInfo.statusList[Le(542)](ot=>{const qe=Le;if(ot.material[qe(1424)]!==qe(1881))return null;const vn=ot[qe(600)][qe(713)]||{},Mn=as(vn[qe(1555)]||0,vn[qe(384)]||0),sn=as(vn[qe(505)]||0,vn[qe(1488)]||0);return tt=Math.min(tt,Mn.x,sn.x),xt=Math[qe(831)](xt,Mn.y,sn.y),To=Math[qe(1439)](To,Mn.x,sn.x),Vo=Math[qe(1439)](Vo,Mn.y,sn.y),qo=Math[qe(1439)](qo,vn[qe(2123)]||vn[qe(1832)]||2),{s:Mn,e:sn}});if(Number.isFinite(tt)&&Number[Le(1647)](xt)){const ot=Math[Le(1439)](qo*2,4),qe=Math[Le(1439)](To-tt,ot),vn=Math.max(Vo-xt,ot),Mn=De[Le(1537)].statusList[Le(542)]((sn,Wo)=>{const Xo=Le,s0=f5[Wo];if(!s0||sn[Xo(600)][Xo(1424)]!=="LINE")return sn;const ss=sn.material;return{...sn,material:{...ss,config:{...ss[Xo(713)]||{},startX:s0.s.x-tt,startY:s0.s.y-xt,endX:s0.e.x-tt,endY:s0.e.y-xt}}}});return{...De,normalStyle:{...De[Le(721)],x:tt,y:xt,width:qe,height:vn,rotate:0},contentInfo:{...De[Le(1537)],statusList:Mn}}}}const vx=De.normalStyle[Le(1238)]||0,px=De[Le(721)].height||0,bx=De.normalStyle.x||0,a0=De[Le(721)].y||0,ns=bx+vx/2-ee/2,ts=a0+px/2-ye/2,c5=Se+ns*Ce-ts*pe,a5=Oe+ns*pe+ts*Ce,s5=De[Le(721)][Le(836)]||0,l5=((s5+we)%360+360)%360;return{...De,normalStyle:{...De[Le(721)],x:c5-vx/2,y:a5-px/2,rotate:l5}}});k(ne.id),wn[te(1369)](Ze=>m(Ze))}),ge([]),w(null))},[u,se,s,k,m,w,ge]),o0=B[r(1591)](E=>{const V=r;if(se.length<2)return;const ne=se.map(me=>s[V(1876)](Ce=>Ce.id===me))[V(1641)](me=>!!me&&me[V(1424)]!=="group");if(ne[V(2194)]<2)return;let te=1/0,ue=-1/0,F=1/0,ee=-1/0;ne[V(1369)](me=>{const Ce=V,pe=me[Ce(721)].x||0,Se=me[Ce(721)].y||0;te=Math.min(te,pe),ue=Math[Ce(1439)](ue,pe),F=Math[Ce(831)](F,Se),ee=Math[Ce(1439)](ee,Se)});const ye=[...ne][V(1576)]((me,Ce)=>{const pe=V;return E===pe(417)?(me.normalStyle.x||0)-(Ce[pe(721)].x||0):(me[pe(721)].y||0)-(Ce[pe(721)].y||0)}),we=ye[V(2194)];if(E===V(417)){const me=ue-te,Ce=me/(we-1);ye[V(1369)]((pe,Se)=>{const Oe=V,Fe=te+Ce*Se;C(pe.id,{normalStyle:{...pe[Oe(721)],x:Fe}})})}else{const me=ee-F,Ce=me/(we-1);ye[V(1369)]((pe,Se)=>{const Oe=V,Fe=F+Ce*Se;C(pe.id,{normalStyle:{...pe[Oe(721)],y:Fe}})})}},[se,s,C]),Tn=E=>{const V=r,ne=E[V(1537)].statusList[V(1876)](te=>te.material.type===V(1881));return ne?ne.material[V(713)]:null},Vn=B[r(1591)](E=>{const V=r;if(se[V(2194)]<2)return;const ne=He[V(1740)](),te=se[V(542)](F=>s[V(1876)](ee=>ee.id===F))[V(1641)](F=>!!F);if(te[V(2194)]<2)return;let ue=0;switch(E){case V(1557):ue=Math[V(831)](...te[V(542)](F=>{const ee=V,ye=Tn(F);return ye?(F.normalStyle.x||0)+(ye[ee(1555)]||0):F[ee(721)].x||0}));break;case"right":ue=Math[V(1439)](...te[V(542)](F=>{const ee=V,ye=Tn(F);return ye?(F[ee(721)].x||0)+(ye[ee(505)]||0):(F.normalStyle.x||0)+(F[ee(721)][ee(1238)]||0)}));break;case V(1413):ue=Math.min(...te.map(F=>{const ee=V,ye=Tn(F);return ye?(F[ee(721)].y||0)+(ye[ee(384)]||0):F.normalStyle.y||0}));break;case V(808):ue=Math[V(1439)](...te[V(542)](F=>{const ee=V,ye=Tn(F);return ye?(F[ee(721)].y||0)+(ye[ee(1488)]||0):(F[ee(721)].y||0)+(F[ee(721)][ee(1265)]||0)}));break}te[V(1369)](F=>{const ee=V;let ye=F[ee(721)].x||0,we=F[ee(721)].y||0;const me=Tn(F);switch(E){case ee(1557):me?ye=ue-(me.startX||0):ye=ue;break;case ee(1476):me?ye=ue-(me[ee(505)]||0):ye=ue-(F[ee(721)].width||0);break;case ee(1413):me?we=ue-(me[ee(384)]||0):we=ue;break;case ee(808):me?we=ue-(me[ee(1488)]||0):we=ue-(F.normalStyle.height||0);break}ne.updateNode(F.id,{normalStyle:{...F[ee(721)],x:ye,y:we}})})},[se,s]),hx=[{icon:l[r(1993)](ae[r(2120)],{}),title:r(1799),active:y===r(1877),onClick:()=>{Z(r(1877))}},{icon:l[r(1993)](ae[r(1840)],{}),title:r(1190),active:y==="box-select",onClick:()=>{Z("box-select"),ge([])}},{icon:l.jsx(ae[r(632)],{}),title:r(805),active:y===r(553),onClick:()=>{Z("drag")}},{icon:l[r(1993)](ae[r(1081)],{}),title:"线条绘制",active:y===r(1785),onClick:()=>{Z(r(1785))}},{icon:l[r(1993)](ae[r(699)],{}),title:r(2140),active:y===r(664),onClick:()=>{Z(r(664))}}],Lt=B[r(1591)](()=>se[r(2194)]>0?se:u?[u]:[],[se,u]),gx=B[r(1591)](()=>{const E=r,V=Lt();if(V[E(2194)]===0)return;s[E(1641)](te=>V[E(911)](te.id)).map(te=>te.id)[E(1369)](te=>O(te))},[Lt,s,O]),yx=B[r(1591)](()=>{const E=r,V=Lt();if(V[E(2194)]===0)return;[...s[E(1641)](te=>V[E(911)](te.id))[E(542)](te=>te.id)][E(523)]().forEach(te=>G(te))},[Lt,s,G]),Go=B[r(528)](()=>[{icon:l[r(1993)](ae[r(1500)],{}),title:r(1853),onClick:j},{icon:l[r(1993)](ae[r(604)],{}),title:r(1972),onClick:A},{icon:l[r(1993)](ae[r(868)],{}),title:r(1137),disabled:!u&&se[r(2194)]===0,onClick:gx},{icon:l[r(1993)](ae.DownSquareOutlined,{}),title:"置于底层",disabled:!u&&se[r(2194)]===0,onClick:yx},{icon:l[r(1993)](ae[r(1707)],{}),title:r(402),disabled:!u&&se.length===0,onClick:lx},{icon:l.jsx(ae.GroupOutlined,{}),title:r(1730),disabled:se[r(2194)]<2,onClick:dx},{icon:l[r(1993)](ae[r(445)],{}),title:r(1255),disabled:!u&&se[r(2194)]===0,onClick:fx},{icon:l[r(1993)](ae[r(2114)],{}),title:r(1348),disabled:se[r(2194)]<2,onClick:()=>Vn("left")},{icon:l.jsx(ae[r(1250)],{}),title:r(2006),disabled:se[r(2194)]<2,onClick:()=>Vn(r(1476))},{icon:l[r(1993)](ae[r(1952)],{}),title:r(1782),disabled:se.length<2,onClick:()=>Vn(r(1413))},{icon:l[r(1993)](ae[r(872)],{}),title:"下对齐",disabled:se[r(2194)]<2,onClick:()=>Vn(r(808))},{icon:l[r(1993)](ae[r(1207)],{}),title:r(636),disabled:se[r(2194)]<2,onClick:()=>o0("horizontal")},{icon:l.jsx(ae[r(1104)],{}),title:r(767),disabled:se[r(2194)]<2,onClick:()=>o0(r(609))},{icon:l[r(1993)](ae[r(634)],{}),title:"画布配置",onClick:()=>Je(!0)},{icon:l[r(1993)](ae[r(1935)],{}),title:r(1787),type:r(1236),onClick:tn},{icon:l[r(1993)](ae[r(1096)],{}),title:r(1378),disabled:!u&&se[r(2194)]===0,onClick:()=>{u?k(u):se[r(2194)]>0&&(se.forEach(V=>k(V)),ge([]))}}],[j,A,y,Z,ge,se,dx,fx,lx,Vn,o0,gx,yx,Je,Ne,tn,u,k,b.currentCanvasId]),[Oo,mx]=B[r(655)](!1),[r0,i0]=B[r(655)](""),[wx,c0]=B[r(655)](null);return l.jsxs(r(539),{className:r(1625)+(n?"":r(1948)),children:[!n&&l[r(1239)](r(539),{className:r(1508),children:[l[r(1239)](z[r(2132)],{children:[hx[r(542)](E=>l[r(1993)](z[r(1654)],{title:E.title,children:l[r(1993)](z[r(1804)],{type:E[r(683)]?r(1236):"default",icon:E[r(1545)],onClick:E[r(1380)]})},E[r(1692)])),l[r(1993)](r(539),{className:r(956)}),l.jsx(z.Select,{value:b.currentCanvasId,onChange:L,style:{width:140},dropdownRender:E=>l.jsxs(l[r(915)],{children:[E,l[r(1993)](r(539),{className:"border-t border-gray-200 mt-1 pt-1",children:l[r(1993)](z[r(1804)],{type:r(537),size:r(398),block:!0,onClick:()=>mx(!0),children:r(1315)})})]}),children:b[r(1889)][r(542)](E=>l.jsx(z[r(462)][r(777)],{value:E.id,children:E[r(659)]},E.id))}),l[r(1993)](z[r(1804)],{icon:l.jsx(ae.PlusOutlined,{}),size:r(398),onClick:()=>N(),title:r(1970)}),l[r(1993)](z[r(1654)],{title:r(2196),children:l[r(1993)](z[r(1804)],{icon:l[r(1993)](ae[r(1390)],{}),size:"small",onClick:In})}),l[r(1993)](z[r(1654)],{title:"导入画布",children:l.jsx(z[r(1804)],{icon:l.jsx(ae[r(2058)],{}),size:r(398),onClick:()=>Xe(!0)})})]}),l.jsx(z[r(2132)],{children:Go.map(E=>l.jsx(z[r(1654)],{title:E[r(1692)],children:l[r(1993)](z[r(1804)],{type:E[r(683)]?"primary":E.type||r(1582),icon:E[r(1545)],onClick:E.onClick,disabled:E.disabled})},E[r(1692)]))})]}),l[r(1993)](r(539),{ref:d,className:r(1471)+(n?"":"flex-1"),style:n&&o?{display:r(1616),justifyContent:r(1596),alignItems:r(1596)}:void 0,onWheel:n&&o?E=>{const V=r;E[V(1923)](),E[V(1064)]();const ne=i.current;if(!ne)return;const te=J[V(1560)],ue=.1,F=E[V(381)]>0?Math.max(te-ue,ce):Math[V(831)](te+ue,de);ne[V(1731)](0,0,F,0)}:void 0,children:l[r(1993)](d0.TransformWrapper,{ref:i,initialScale:fe,initialPositionX:0,initialPositionY:0,minScale:ce,maxScale:de,onTransformed:ko,limitToBounds:n&&!!o,centerZoomedOut:n&&!!o,panning:{disabled:!Ke&&y!=="drag",velocityDisabled:!0},wheel:{disabled:n&&!!o,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:E,zoomOut:V,resetTransform:ne})=>l.jsxs(l.Fragment,{children:[!n&&l[r(1993)]("div",{className:r(620),children:l[r(1239)](z[r(2132)],{direction:r(609),children:[l[r(1993)](z[r(1654)],{title:"放大",children:l.jsx(z.Button,{icon:l[r(1993)](ae[r(1325)],{}),onClick:()=>E()})}),l[r(1993)](z[r(1654)],{title:"缩小",children:l[r(1993)](z[r(1804)],{icon:l[r(1993)](ae[r(1014)],{}),onClick:()=>V()})}),l[r(1993)](z.Tooltip,{title:r(1943),children:l.jsx(z.Button,{onClick:()=>ne(),children:r(1805)})}),l[r(1239)](r(539),{className:r(1538),children:[Math[r(723)](p[r(476)]*100),"%"]})]})}),l[r(1993)](d0.TransformComponent,{wrapperStyle:n&&o?{width:o,height:x||h[r(1265)]*(J[r(1560)]||1)+"px",position:r(1837),overflow:r(1821)}:{width:r(1805),height:n?h[r(1265)]*(J[r(1560)]||1)+"px":r(1805),position:r(1837),overflow:r(n?1136:1821)},contentStyle:{width:n?h[r(1238)]+"px":r(1805),height:n?h[r(1265)]+"px":"100%",display:"flex",alignItems:r(n?1596:543),justifyContent:n?"flex-start":"center"},children:l[r(1239)]("div",{ref:c,"data-canvas":r(1501),className:r(1471)+(Q?r(891):"")+" "+(y==="line-draw"?"cursor-crosshair":"")+" "+(Ke?r(776):""),style:{width:h[r(1238)],height:h.height,flexShrink:0,backgroundColor:h[r(451)],backgroundImage:h[r(878)]?"url("+h.backgroundImage+")":void 0,backgroundSize:"cover",backgroundPosition:r(543)},onClick:Io,onMouseDown:Po,onDoubleClick:Ao,onDragOver:jo,onDragLeave:Eo,onDrop:Yo,children:[t&&!n&&l[r(1239)](r(539),{className:r(1463),style:{width:h[r(1238)],height:h[r(1265)]},children:[l.jsx(r(916),{src:t,alt:"",className:r(675),draggable:!1}),l[r(1993)](r(719),{className:r(959),width:1920,height:1080,children:l[r(1993)]("rect",{x:"0",y:"0",width:"1920",height:r(856),fill:r(1712),stroke:r(2042),strokeWidth:"2"})})]}),h[r(1296)]!==!1&&l[r(1239)]("svg",{className:r(959),width:h.width,height:h[r(1265)],children:[l[r(1993)]("defs",{children:l[r(1993)]("pattern",{id:r(914),width:"20",height:"20",patternUnits:r(2145),children:l[r(1993)]("path",{d:"M 20 0 L 0 0 0 20",fill:r(1712),stroke:r(2051),opacity:r(1395),strokeWidth:"1"})})}),l[r(1993)](r(885),{width:r(1805),height:r(1805),fill:r(1902)})]}),s[r(542)](te=>l[r(1993)](Yx,{node:te,isSelected:y===r(664)?!1:u===te.id||se[r(911)](te.id),data:Ae,onClick:y===r(664)?void 0:ue=>{const F=r;console[F(365)](F(716),te.id,F(1229),xe.current),xe[F(1560)]!=="line-draw"&&(ue.shiftKey?(w(te.id),ge([...se,te.id])):(w(te.id),ge([te.id])))},onMouseDown:y===r(664)?void 0:ue=>Uo(ue,te),onUpdateNode:y===r(664)?void 0:(ue,F)=>C(ue,F),scale:p.scale,enableEventFlow:y===r(664),eventFlowData:Ve},""+te.id)),y===r(1785)&&X[r(943)]&&X[r(1989)]&&X[r(412)]&&l.jsx("svg",{className:r(959),width:h[r(1238)],height:h.height,children:l[r(1993)](r(2070),{x1:X[r(1989)].x,y1:X[r(1989)].y,x2:X[r(412)].x,y2:X.end.y,stroke:r(1690),strokeWidth:"2",strokeDasharray:"5,5",strokeLinecap:r(723),strokeLinejoin:"round"})}),y===r(809)&&oe[r(1989)]&&oe[r(412)]&&l[r(1993)](r(539),{className:r(2125),style:{left:Math[r(831)](oe[r(1989)].x,oe.end.x),top:Math.min(oe.start.y,oe[r(412)].y),width:Math[r(1018)](oe[r(412)].x-oe[r(1989)].x),height:Math[r(1018)](oe[r(412)].y-oe[r(1989)].y),zIndex:9999}})]})})]})},ie)}),l[r(1993)](z[r(1489)],{title:r(1787),open:ve,onCancel:()=>Ne(!1),footer:null,children:l[r(1993)](z.Form,{layout:r(609),children:l[r(1993)](z[r(457)].Item,{label:r(873),children:l.jsx(pl,{value:Ye,onChange:E=>{const V=r;ke(!0),Ie(E[V(603)][V(1981)])},rows:10,placeholder:r(1165)})})})}),l[r(1993)](z.Modal,{title:"画布配置",open:yn,onCancel:()=>Je(!1),footer:null,children:l[r(1239)](z[r(457)],{layout:r(609),children:[l[r(1993)](z[r(457)][r(1047)],{label:"宽度",children:l.jsx(z[r(1783)],{value:h[r(1238)],onChange:E=>v({width:E||1920}),min:100,max:5e3,style:{width:r(1805)}})}),l[r(1993)](z.Form[r(1047)],{label:"高度",children:l[r(1993)](z[r(1783)],{value:h[r(1265)],onChange:E=>v({height:E||1080}),min:100,max:5e3,style:{width:r(1805)}})}),l[r(1993)](z[r(457)][r(1047)],{label:r(706),children:l[r(1993)](z[r(1870)],{checked:h.showGrid!==!1,onChange:E=>v({showGrid:E})})}),l.jsx(z.Form[r(1047)],{label:r(985),children:l[r(1239)](r(539),{className:r(1266),children:[l.jsx(dt,{value:h[r(451)]||r(422),onChange:E=>v({background:E[r(1160)]()})}),l[r(1993)](z[r(370)],{value:h[r(451)],onChange:E=>v({background:E.target[r(1981)]}),placeholder:r(1373)})]})}),l[r(1239)](z[r(457)][r(1047)],{label:r(1109),children:[l[r(1239)](r(539),{className:"flex items-center gap-2",children:[l[r(1993)](z[r(637)],{accept:r(1188),showUploadList:!1,beforeUpload:E=>{const V=r;if(!E[V(1424)][V(922)]("image/"))return z[V(452)][V(551)](V(1649)),!1;const te=new FileReader;return te[V(1841)]=ue=>{const F=V,ee=ue[F(603)]?.[F(532)];v({backgroundImage:ee}),z[F(452)][F(2093)]("背景图片上传成功")},te[V(1045)](E),!1},children:l[r(1993)](z[r(1804)],{icon:l[r(1993)](ae[r(2058)],{}),children:"上传图片"})}),l[r(1993)](z[r(370)],{value:h[r(878)],onChange:E=>v({backgroundImage:E[r(603)][r(1981)]}),placeholder:r(498),style:{flex:1}}),h[r(878)]&&l[r(1993)](z[r(1804)],{icon:l[r(1993)](ae[r(1427)],{}),onClick:()=>v({backgroundImage:void 0}),danger:!0,size:r(398)})]}),h[r(878)]&&l[r(1993)](r(539),{className:r(1472),style:{maxWidth:r(1805)},children:l.jsx(r(916),{src:h[r(878)],alt:"背景预览",style:{maxWidth:r(1805),maxHeight:120,objectFit:r(821)}})})]})]})}),l[r(1993)](z.Modal,{title:r(1063),open:Oo,onCancel:()=>{mx(!1),c0(null),i0("")},footer:null,width:760,children:l[r(1993)](z[r(635)],{items:[{key:r(1889),label:r(1814),children:l.jsxs(l.Fragment,{children:[l.jsx(z[r(1521)],{dataSource:b[r(1889)],renderItem:E=>l[r(1993)](z[r(1521)].Item,{actions:[wx===E.id?l.jsx(z[r(1804)],{type:r(1236),size:"small",onClick:()=>{U(E.id,r0),c0(null)},children:"保存"}):l[r(1993)](z.Button,{type:r(1755),icon:l[r(1993)](ae[r(1081)],{}),size:"small",onClick:()=>{const V=r;c0(E.id),i0(E[V(659)])}}),b.canvases[r(2194)]>1&&l.jsx(z[r(1804)],{type:r(1755),danger:!0,icon:l[r(1993)](ae[r(1096)],{}),size:r(398),onClick:()=>D(E.id)})][r(1641)](Boolean),children:wx===E.id?l.jsx(z[r(370)],{value:r0,onChange:V=>i0(V[r(603)][r(1981)]),size:r(398),style:{width:200}}):l[r(1239)](r(1102),{style:{fontWeight:b[r(1945)]===E.id?r(1713):r(898)},children:[E[r(659)]," ",b[r(1945)]===E.id&&r(1681)]})})}),l[r(1993)](r(539),{className:r(1563),children:l[r(1993)](z[r(1804)],{type:"primary",icon:l[r(1993)](ae[r(1442)],{}),onClick:()=>N(),children:r(1970)})})]})},{key:r(1706),label:r(1965),children:l.jsx(wl,{})}]})}),l[r(1993)](z[r(1489)],{title:r(1086),open:rn,onOk:_e,onCancel:()=>{Xe(!1),an(""),mn(!1)},width:600,children:l.jsxs(r(539),{className:r(1921),children:[l[r(1239)]("div",{children:[l.jsx("p",{className:r(590),children:r(2202)}),l[r(1993)](r(1418),{type:r(2147),accept:r(1323),onChange:E=>{const V=E.target.files?.[0];V&&Bt(V)},className:r(1633)})]}),l[r(1993)]("div",{className:r(1005),children:"或"}),l[r(1239)](r(539),{children:[l[r(1993)]("p",{className:r(590),children:r(1775)}),l[r(1993)](r(1572),{value:cn,onChange:E=>an(E[r(603)][r(1981)]),placeholder:"粘贴画布 JSON 内容...",className:r(1407)})]}),l.jsxs(r(539),{className:"flex items-center gap-2",children:[l[r(1993)](r(1418),{type:r(1121),id:"importAsNewCanvas",checked:xn,onChange:E=>mn(E[r(603)][r(973)]),className:r(1477)}),l[r(1993)](r(1834),{htmlFor:"importAsNewCanvas",className:r(1769),children:r(1277)})]})]})})]})},{Option:b0}=z[a(462)];function Hr(e){return Array[a(927)](e)}function zl(e){const n=a,t=new Set;return e.forEach(o=>Object[n(1651)](o).forEach(x=>t.add(x))),Array[n(1139)](t)}function Cl(e,n){const t=a;return e[t(542)]((o,x)=>{const r=t,i=o[n],c=o.name;return{label:String(c??"项 "+(x+1)),value:typeof i===r(774)||typeof i===r(411)?i:String(i)}})}function Tr(e,n=""){const t=a,o=[];for(const[x,r]of Object[t(1942)](e)){const i=n?n+"."+x:x;r!==null&&typeof r===t(2171)&&!Array[t(927)](r)?o[t(1465)](...Tr(r,i)):o.push({paramsCode:i,paramsName:i,value:r})}return o}function Ml(e,n,t){const o=a;if(Hr(e)){if(n!=null&&t!=null){const x=e[o(1876)](r=>r[n]===t);if(x)return x}return{}}return e}const Bl=({material:e,onSave:n})=>{const t=a,o=e,x=o[t(962)]||{},r=He(m=>m[t(695)]),[i,c]=B.useState({label:x.label||"",value:x.value||"",valueSourceCode:x.valueSourceCode||"",unit:x[t(793)]||"",decimals:x[t(529)]??2,labelFontSize:x.labelStyle?.fontSize||14,labelFontWeight:x[t(2103)]?.[t(803)]||"bold",labelColor:x[t(2103)]?.[t(504)]||t(443),valueFontSize:x[t(534)]?.fontSize||14,valueFontWeight:x[t(534)]?.[t(803)]||t(898),valueColor:x[t(534)]?.[t(504)]||"#1890ff",boundDatasetId:x[t(1669)]||"",boundDatasetBindCode:x[t(1108)]||"",boundDatasetBindValue:x[t(1183)]??null}),d=B.useMemo(()=>{const m=t;return r.find(w=>w.id===i[m(1669)])},[r,i[t(1669)]]),s=d?Hr(d[t(1167)]):!1,u=B[t(528)](()=>{const m=t;if(!d)return[];const w=Ml(d[m(1167)],i[m(1108)],i[m(1183)]);return Tr(w)},[d,i.boundDatasetBindCode,i[t(1183)]]);B[t(363)](()=>{const m=t;c({label:x[m(1834)]||"",value:x[m(1981)]||"",valueSourceCode:x.valueSourceCode||"",unit:x[m(793)]||"",decimals:x[m(529)]??2,labelFontSize:x[m(2103)]?.[m(1776)]||14,labelFontWeight:x[m(2103)]?.[m(803)]||m(1713),labelColor:x[m(2103)]?.color||m(443),valueFontSize:x[m(534)]?.[m(1776)]||14,valueFontWeight:x[m(534)]?.[m(803)]||m(898),valueColor:x.valueStyle?.color||m(1690),boundDatasetId:x[m(1669)]||"",boundDatasetBindCode:x[m(1108)]||"",boundDatasetBindValue:x[m(1183)]??null})},[e.id]);const f=(m,w)=>{c(C=>({...C,[m]:w}))},y=m=>{c(w=>({...w,boundDatasetId:m,boundDatasetBindCode:"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetId:m||void 0,boundDatasetBindCode:void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},g=m=>{c(w=>({...w,boundDatasetBindCode:m||"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindCode:m||void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},p=m=>{c(w=>({...w,boundDatasetBindValue:m??null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindValue:m??void 0,valueSourceCode:void 0}})},0)},h=m=>{const w=t,C=u[w(1876)](O=>O[w(2115)]===m),k=C?.[w(793)]||"";c(O=>({...O,valueSourceCode:m,unit:k,value:String(C?.[w(1981)]||"")})),setTimeout(()=>{n({content:{...x,valueSourceCode:m,value:String(C?.[w(1981)]||""),unit:k}})},0)},b=()=>{const m=t;n({content:{...x,label:i.label,value:i[m(1981)],valueSourceCode:i[m(876)],unit:i.unit,decimals:i.decimals,boundDatasetId:i[m(1669)]||void 0,boundDatasetBindCode:i[m(1108)]||void 0,boundDatasetBindValue:i[m(1183)]??void 0,labelStyle:{fontSize:i[m(448)],fontWeight:i.labelFontWeight,color:i[m(738)]},valueStyle:{fontSize:i[m(1739)],fontWeight:i[m(2009)],color:i[m(2111)]}}})},M=d&&s?zl(d[t(1167)]):[],v=d&&s&&i[t(1108)]?Cl(d[t(1167)],i[t(1108)]):[];return l[t(1239)](t(539),{className:"space-y-4",children:[l.jsx(z[t(2047)],{style:{marginTop:0},children:"文本内容"}),l[t(1239)](z[t(457)],{layout:t(609),children:[l[t(1993)](z[t(457)].Item,{label:t(565),children:l[t(1993)](z[t(370)],{value:i[t(1834)],onChange:m=>f(t(1834),m[t(603)][t(1981)]),onBlur:b,placeholder:t(1629)})}),l[t(1993)](z[t(457)].Item,{label:t(846),help:t(940),children:l[t(1993)](z[t(462)],{allowClear:!0,placeholder:r[t(2194)]===0?"暂无数据集":t(502),value:i[t(1669)]||void 0,onChange:y,style:{width:"100%"},options:r[t(542)](m=>({label:m[t(659)],value:m.id}))})}),d&&s&&l.jsxs(l.Fragment,{children:[l[t(1993)](z.Form[t(1047)],{label:t(687),help:"该数据集的 sample 为数组,请选择用于匹配数据项的字段",children:l[t(1993)](z[t(462)],{allowClear:!0,placeholder:t(413),value:i[t(1108)]||void 0,onChange:g,style:{width:t(1805)},options:M[t(542)](m=>({label:m,value:m}))})}),i[t(1108)]&&l[t(1993)](z.Form.Item,{label:"绑定值",help:t(1075),children:l[t(1993)](z[t(462)],{allowClear:!0,placeholder:t(410),value:i[t(1183)]??void 0,onChange:p,style:{width:"100%"},options:v})})]}),l[t(1993)](z[t(457)][t(1047)],{label:t(500),help:d?"从绑定的数据中选择字段":t(939),children:l[t(1993)](z.Select,{value:i[t(876)]||void 0,onChange:h,placeholder:d?t(694):"请先绑定数据集",allowClear:!0,disabled:!d,style:{width:t(1805)},options:u[t(542)](m=>({value:m[t(2115)],label:m[t(1205)]}))})}),l.jsx(z[t(457)].Item,{label:i[t(876)]?t(1946):t(566),help:i[t(876)]?t(1461):t(968),children:l[t(1993)](z[t(370)],{value:i[t(1981)],onChange:m=>f("value",m[t(603)][t(1981)]),onBlur:b,placeholder:i.valueSourceCode?"数据字段无值时显示此备用值":t(800),disabled:!!i[t(876)],variant:i.valueSourceCode?"filled":void 0})}),l[t(1993)](z[t(457)][t(1047)],{label:"单位",help:"优先从绑定数据自动获取,也可手动输入",children:l.jsx(z[t(370)],{value:i[t(793)],onChange:m=>f("unit",m[t(603)][t(1981)]),onBlur:b,placeholder:t(2119),suffix:i[t(876)]&&u.length>0?l[t(1993)](z[t(2037)],{color:t(1306),style:{marginRight:-8},children:"自动"}):null})}),l[t(1993)](z[t(457)][t(1047)],{label:t(1356),help:"数值格式化时保留的小数位数,-1表示不格式化",children:l[t(1993)](z[t(1783)],{value:i[t(529)],onChange:m=>f(t(529),m??2),onBlur:b,min:-1,max:10,style:{width:"100%"}})})]}),l[t(1993)](z[t(2047)],{children:t(1240)}),l[t(1239)](z[t(457)],{layout:t(609),children:[l[t(1239)](z[t(2132)],{children:[l[t(1993)](z[t(457)][t(1047)],{label:"字体大小",children:l[t(1993)](z.InputNumber,{value:i[t(448)],onChange:m=>f("labelFontSize",m||14),onBlur:b,min:8,max:72})}),l.jsx(z[t(457)].Item,{label:t(638),children:l.jsxs(z[t(462)],{value:i[t(1856)],onChange:m=>{f("labelFontWeight",m),setTimeout(b,0)},style:{width:100},children:[l[t(1993)](b0,{value:t(898),children:"正常"}),l[t(1993)](b0,{value:t(1713),children:"粗体"})]})})]}),l[t(1993)](z[t(457)].Item,{label:t(1040),children:l[t(1239)]("div",{className:t(1266),children:[l[t(1993)](dt,{value:i[t(738)]||t(443),onChange:m=>{const w=t;f(w(738),m[w(1160)]())},onChangeComplete:m=>{const w=t;n({content:{...x,label:i[w(1834)],value:i[w(1981)],valueSourceCode:i[w(876)],unit:i[w(793)],decimals:i[w(529)],boundDatasetId:i.boundDatasetId||void 0,boundDatasetBindCode:i[w(1108)]||void 0,boundDatasetBindValue:i[w(1183)]??void 0,labelStyle:{fontSize:i[w(448)],fontWeight:i.labelFontWeight,color:m[w(1160)]()},valueStyle:{fontSize:i[w(1739)],fontWeight:i[w(2009)],color:i[w(2111)]}}})}}),l.jsx(z[t(370)],{value:i[t(738)],onChange:m=>f(t(738),m[t(603)][t(1981)]),onBlur:b,placeholder:t(443),style:{width:100}})]})})]}),l.jsx(z.Divider,{children:t(912)}),l[t(1239)](z[t(457)],{layout:"vertical",children:[l[t(1239)](z[t(2132)],{children:[l[t(1993)](z[t(457)][t(1047)],{label:t(408),children:l[t(1993)](z[t(1783)],{value:i.valueFontSize,onChange:m=>f("valueFontSize",m||14),onBlur:b,min:8,max:72})}),l.jsx(z.Form[t(1047)],{label:"字体粗细",children:l[t(1239)](z[t(462)],{value:i[t(2009)],onChange:m=>{f(t(2009),m),setTimeout(b,0)},style:{width:100},children:[l[t(1993)](b0,{value:t(898),children:"正常"}),l[t(1993)](b0,{value:"bold",children:"粗体"})]})})]}),l[t(1993)](z[t(457)].Item,{label:t(1040),children:l[t(1239)](t(539),{className:t(1266),children:[l.jsx(dt,{value:i[t(2111)]||t(1690),onChange:m=>{const w=t;f(w(2111),m[w(1160)]())},onChangeComplete:m=>{const w=t;n({content:{...x,label:i[w(1834)],value:i[w(1981)],valueSourceCode:i.valueSourceCode,unit:i[w(793)],decimals:i.decimals,boundDatasetId:i[w(1669)]||void 0,boundDatasetBindCode:i[w(1108)]||void 0,boundDatasetBindValue:i.boundDatasetBindValue??void 0,labelStyle:{fontSize:i[w(448)],fontWeight:i[w(1856)],color:i[w(738)]},valueStyle:{fontSize:i[w(1739)],fontWeight:i[w(2009)],color:m[w(1160)]()}}})}}),l.jsx(z.Input,{value:i[t(2111)],onChange:m=>f("valueColor",m.target.value),onBlur:b,placeholder:"#1890ff",style:{width:100}})]})})]})]})},Dl=({material:e,onSave:n})=>{const t=a,o=e,[x,r]=B[t(655)]({name:e[t(659)],src:o[t(1909)]||"",backgroundColor:o[t(1473)]||"",fillColor:o[t(1403)]||""});B[t(363)](()=>{const d=t;r({name:e[d(659)],src:o.src||"",backgroundColor:o[d(1473)]||"",fillColor:o.fillColor||""})},[e.id]);const i=(d,s)=>{r(u=>({...u,[d]:s}))},c=()=>{const d=t;n({name:x.name,src:x[d(1909)],backgroundColor:x.backgroundColor})};return l.jsxs(t(539),{className:t(1921),children:[l[t(1993)](z[t(2047)],{style:{marginTop:0},children:"图片属性"}),l[t(1239)](z[t(457)],{layout:t(609),children:[l[t(1993)](z.Form.Item,{label:t(989),children:l.jsx(z[t(370)],{value:x.name,onChange:d=>i(t(659),d[t(603)].value),onBlur:c})}),l[t(1993)](z.Form.Item,{label:"图片地址 (src)",children:l[t(1993)](z[t(370)][t(1779)],{value:x.src,onChange:d=>i(t(1909),d[t(603)].value),onBlur:c,rows:4,placeholder:t(2175)})}),l[t(1993)](z[t(457)][t(1047)],{label:"填充颜色(基本形状)",children:l[t(1239)](t(539),{className:t(1266),children:[l[t(1993)](dt,{value:x[t(1403)]||"#1890ff",onChange:d=>{const s=t,u=d.toHexString();i(s(1403),u),n({name:x[s(659)],src:x[s(1909)],backgroundColor:x.backgroundColor,fillColor:u})}}),l[t(1993)](z[t(370)],{value:x[t(1403)],onChange:d=>i(t(1403),d[t(603)][t(1981)]),onBlur:c,placeholder:t(1690)})]})}),l[t(1993)](z[t(457)][t(1047)],{label:t(1858),children:l[t(1239)](t(539),{className:t(1266),children:[l.jsx(dt,{value:x[t(1473)]||"#1890ff",onChange:d=>{const s=t,u=d[s(1160)]();i(s(1473),u),n({name:x[s(659)],src:x.src,backgroundColor:u,fillColor:x[s(1403)]})}}),l[t(1993)](z[t(370)],{value:x[t(1473)],onChange:d=>i(t(1473),d[t(603)][t(1981)]),onBlur:c,placeholder:t(1690)})]})})]})]})},{Option:Ll}=z[a(462)],Nl=({material:e,onSave:n})=>{const t=a,o=e[t(713)]||{},[x,r]=B[t(655)]({lineWeight:o[t(2123)]||o[t(1832)]||2,color:o[t(504)]||"#262626",lineType:o.lineType||t(2176),startX:o[t(1555)]??0,startY:o[t(384)]??0,endX:o[t(505)]??100,endY:o[t(1488)]??0}),i=JSON[t(1571)]({sw:o[t(2123)]??o[t(1832)],c:o.color,t:o[t(1586)],sx:o[t(1555)],sy:o[t(384)],ex:o[t(505)],ey:o[t(1488)]});B[t(363)](()=>{const s=t;r({lineWeight:o.lineWeight||o[s(1832)]||2,color:o.color||s(443),lineType:o[s(1586)]||s(2176),startX:o.startX??0,startY:o[s(384)]??0,endX:o.endX??100,endY:o[s(1488)]??0})},[e.id,i]);const c=s=>{const u=t,f={...x,...s};r(f),n({config:{...o,thickness:f[u(2123)],lineWeight:f[u(2123)],color:f.color,lineType:f.lineType,startX:f[u(1555)],startY:f[u(384)],endX:f[u(505)],endY:f.endY}})},d=[{value:t(2176),label:"实线",desc:"连续实线"},{value:t(2022),label:"虚线",desc:t(2082)},{value:t(543),label:t(1294),desc:t(778)},{value:"phantom",label:"假想线",desc:t(404)},{value:t(1175),label:"点线",desc:t(434)},{value:t(587),label:t(376),desc:t(1469)}];return l.jsxs(t(539),{className:"space-y-4",children:[l[t(1993)](z.Divider,{style:{marginTop:0},children:"起止位置(相对节点)"}),l[t(1239)](z[t(457)],{layout:t(609),children:[l[t(1239)](t(539),{className:t(2183),children:[l[t(1993)](z[t(457)][t(1047)],{label:"起点 X",className:"mb-2",children:l[t(1993)](z.InputNumber,{value:x.startX,onChange:s=>c({startX:s??0}),style:{width:t(1805)}})}),l[t(1993)](z[t(457)][t(1047)],{label:t(1276),className:t(590),children:l[t(1993)](z[t(1783)],{value:x[t(384)],onChange:s=>c({startY:s??0}),style:{width:t(1805)}})}),l[t(1993)](z[t(457)][t(1047)],{label:t(949),className:t(590),children:l.jsx(z[t(1783)],{value:x[t(505)],onChange:s=>c({endX:s??100}),style:{width:t(1805)}})}),l.jsx(z[t(457)][t(1047)],{label:t(902),className:t(590),children:l.jsx(z.InputNumber,{value:x[t(1488)],onChange:s=>c({endY:s??0}),style:{width:t(1805)}})})]}),l[t(1993)](z[t(457)][t(1047)],{label:t(976),className:"mt-4",children:l[t(1239)](z[t(2132)],{children:[l[t(1993)](z[t(1804)],{size:t(398),onClick:()=>{const s=t,u=o[s(1555)]??x[s(1555)],f=o[s(384)]??x[s(384)],y=o.endX??x[s(505)],g=o.endY??x[s(1488)],p=y-u,h=g-f,b=Math[s(807)](p*p+h*h),M=p>=0?1:-1;c({endX:u+M*b,endY:f})},title:t(401),children:"水平"}),l[t(1993)](z[t(1804)],{size:t(398),onClick:()=>{const s=t,u=o[s(1555)]??x[s(1555)],f=o[s(384)]??x.startY,y=o[s(505)]??x[s(505)],g=o[s(1488)]??x[s(1488)],p=y-u,h=g-f,b=Math[s(807)](p*p+h*h),M=h>=0?1:-1;c({endX:u,endY:f+M*b})},title:"将线条变为垂直线,保持长度",children:"垂直"}),l[t(1993)](z.Button,{size:t(398),onClick:()=>{const s=t,u=o.startX??x[s(1555)],f=o[s(384)]??x[s(384)],y=o.endX??x[s(505)],g=o[s(1488)]??x[s(1488)];c({startX:y,startY:g,endX:u,endY:f})},title:t(2201),children:"反向"})]})})]}),l[t(1993)](z[t(2047)],{children:t(1113)}),l[t(1239)](z[t(457)],{layout:t(609),children:[l[t(1993)](z[t(457)][t(1047)],{label:"线型",help:"选择线条样式",children:l.jsx(z[t(462)],{value:x.lineType,onChange:s=>c({lineType:s}),children:d[t(542)](s=>l[t(1993)](Ll,{value:s[t(1981)],children:l[t(1239)](t(539),{className:t(1227),children:[l.jsx(t(1102),{children:s.label}),l[t(1993)](t(1102),{className:"text-xs text-gray-400",children:s[t(1961)]})]})},s.value))})}),l[t(1993)](z.Form[t(1047)],{label:"线宽(像素)",children:l[t(1993)](z.InputNumber,{value:x[t(2123)],onChange:s=>c({lineWeight:s||2}),min:1,max:20,style:{width:120}})}),l[t(1993)](z[t(457)][t(1047)],{label:"颜色",children:l[t(1239)]("div",{className:t(1266),children:[l.jsx(dt,{value:x[t(504)]||t(1903),onChange:s=>c({color:s[t(1160)]()})}),l[t(1993)](z[t(370)],{value:x[t(504)],onChange:s=>c({color:s[t(603)][t(1981)]}),placeholder:t(1903),style:{width:100}})]})})]})]})};function Vr(e){return Array.isArray(e)}function Sl(e){const n=a,t=new Set;return e[n(1369)](o=>Object[n(1651)](o)[n(1369)](x=>t[n(1757)](x))),Array[n(1139)](t)}function kl(e,n){const t=a;return e[t(542)]((o,x)=>{const r=t,i=o[n],c=o.name;return{label:String(c??"项 "+(x+1)),value:typeof i===r(774)||typeof i===r(411)?i:String(i)}})}function Il(e,n,t){const o=a;if(Vr(e)){if(n!=null&&t!=null){const x=e[o(1876)](r=>r[n]===t);if(x)return x}return{}}return e}const qr=({status:e,onUpdate:n,onAppendToExpression:t})=>{const o=a,x=He(h=>h.dataPool),r=x[o(1876)](h=>h.id===e[o(1669)]),i=r?Vr(r.sample):!1,c=r?Il(r[o(1167)],e[o(1108)],e.boundDatasetBindValue):{},d=tr(c),s=h=>{const b=o,M=b(2030)+h;t?t(M):n({expression:""+(e.expression||"")+M})},u=h=>{n({boundDatasetId:h??null,boundDatasetBindCode:null,boundDatasetBindValue:null})},f=h=>{n({boundDatasetBindCode:h??null,boundDatasetBindValue:null})},y=h=>{n({boundDatasetBindValue:h??null})},g=r&&i?Sl(r[o(1167)]):[],p=r&&i&&e[o(1108)]?kl(r[o(1167)],e[o(1108)]):[];return l[o(1239)](l[o(915)],{children:[l[o(1993)](z.Form[o(1047)],{label:"绑定数据集",extra:x[o(2194)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":o(1275),children:l[o(1993)](z[o(462)],{allowClear:!0,placeholder:x[o(2194)]===0?o(1519):o(1927),value:e.boundDatasetId??void 0,options:x[o(542)](h=>({label:h[o(659)],value:h.id})),onChange:u})}),r&&i&&l.jsxs(l.Fragment,{children:[l[o(1993)](z.Form[o(1047)],{label:o(687),extra:"该数据集的 sample 为数组,请选择用于匹配数据项的字段",children:l.jsx(z.Select,{allowClear:!0,placeholder:"选择绑定字段",value:e[o(1108)]??void 0,options:g.map(h=>({label:h,value:h})),onChange:f})}),e[o(1108)]&&l[o(1993)](z[o(457)][o(1047)],{label:"绑定值",extra:o(1075),children:l.jsx(z[o(462)],{allowClear:!0,placeholder:o(410),value:e[o(1183)]??void 0,options:p,onChange:y})})]}),d.length>0&&l[o(1993)](z.Form[o(1047)],{label:o(1279),children:l.jsx(z[o(2132)],{size:[4,4],wrap:!0,children:d[o(542)](h=>l[o(1993)](z[o(2037)],{className:o(1655),onClick:()=>s(h),children:"data."+h},h))})})]})},Wr=({material:e,onSave:n})=>{const t=a;switch(e[t(1424)]){case t(1505):return l[t(1993)](Bl,{material:e,onSave:n});case t(1072):return l[t(1993)](Dl,{material:e,onSave:n});case t(1881):return l[t(1993)](Nl,{material:e,onSave:n});default:return l[t(1993)]("div",{className:t(1937),children:"暂不支持编辑此类型的物料"})}},{Panel:Xr}=z[a(472)],{TextArea:Pl}=z[a(370)],Al=({node:e,updateNode:n,materials:t})=>{const o=a,x=t[o(1641)](f=>f[o(1424)]!==o(755)||!f[o(713)]?.[o(1361)]),r=(f,y)=>{const g=o,p=e[g(514)]?.[g(542)](h=>h.id===f?{...h,contentInfo:{...h.contentInfo,statusList:y}}:h);n(e.id,{children:p})},i=f=>{const y=o,g=e[y(514)]?.find(h=>h.id===f);if(!g)return;const p={id:be[y(1161)](),name:"状态"+(g.contentInfo[y(1247)].length+1),expression:g.contentInfo[y(1247)][y(2194)]===0?y(945):y(1185),material:{...x[0],id:be[y(1161)]()},boundDatasetId:null};r(f,[...g[y(1537)][y(1247)],p])},c=(f,y)=>{const g=o,p=e[g(514)]?.find(b=>b.id===f);if(!p)return;const h=p[g(1537)].statusList.filter(b=>b.id!==y);r(f,h)},d=(f,y,g)=>{const p=o,h=e[p(514)]?.[p(1876)](M=>M.id===f);if(!h)return;const b=h[p(1537)].statusList.map(M=>M.id===y?{...M,...g}:M);r(f,b)},s=(f,y,g)=>{const p=o,h=e.children?.[p(1876)](v=>v.id===f);if(!h)return;const b=h[p(1537)][p(1247)][p(626)](v=>v.id===y);if(b===-1)return;const M=[...h[p(1537)][p(1247)]];g==="up"&&b>0?[M[b],M[b-1]]=[M[b-1],M[b]]:g===p(1387)&&b<M[p(2194)]-1&&([M[b],M[b+1]]=[M[b+1],M[b]]),r(f,M)},u=(f,y,g)=>{const p=o,h=t[p(1876)](b=>b.id===g);h&&d(f,y,{material:{...h,id:be.nanoid()}})};return l.jsxs(o(539),{className:o(1921),children:[l[o(1993)](o(539),{className:o(802),children:l[o(1239)]("div",{className:o(2088),children:[l.jsx(o(1910),{children:o(1043)}),o(887)]})}),l[o(1993)](z[o(472)],{ghost:!0,children:e[o(514)]?.[o(542)]((f,y)=>l[o(1993)](Xr,{header:l[o(1239)]("div",{className:o(1430),children:[l[o(1239)](o(1102),{className:"font-medium text-sm",children:[o(1544),y+1]}),l[o(1239)](z[o(2037)],{color:o(1306),style:{fontSize:o(849),padding:"0 4px"},children:[f[o(1537)][o(1247)][o(2194)],o(1438)]})]}),children:l[o(1239)]("div",{className:o(1355),children:[l.jsxs(o(539),{className:o(1180),children:[l[o(1993)]("span",{className:o(1905),children:o(1145)}),l[o(1993)](z.Button,{type:o(1236),size:o(398),icon:l.jsx(ae.PlusOutlined,{}),onClick:()=>i(f.id),children:"添加状态"})]}),f[o(1537)].statusList[o(2194)]===0?l[o(1993)](o(539),{className:o(1848),children:o(1587)}):l[o(1993)](z[o(472)],{ghost:!0,children:f[o(1537)][o(1247)].map((g,p)=>l[o(1993)](Xr,{header:l[o(1239)](o(539),{className:o(1266),children:[l.jsx(o(1102),{className:o(718),children:p+1}),l[o(1993)](o(1102),{className:o(1900),children:g.name}),l[o(1993)](z[o(2037)],{color:o(1582),className:o(2062),children:g.material[o(1424)]})]}),extra:l[o(1239)](z[o(2132)],{size:"small",onClick:h=>h.stopPropagation(),children:[l[o(1993)](z[o(1804)],{type:"text",size:o(398),icon:l[o(1993)](ae[o(1592)],{}),disabled:p===0,onClick:h=>{h[o(1064)](),s(f.id,g.id,"up")}}),l[o(1993)](z.Button,{type:"text",size:o(398),icon:l[o(1993)](ae.ArrowDownOutlined,{}),disabled:p===f.contentInfo[o(1247)][o(2194)]-1,onClick:h=>{const b=o;h.stopPropagation(),s(f.id,g.id,b(1387))}}),l[o(1993)](z[o(1804)],{type:o(1755),size:"small",danger:!0,icon:l[o(1993)](ae.DeleteOutlined,{}),onClick:h=>{h.stopPropagation(),c(f.id,g.id)}})]}),children:l[o(1239)](z.Form,{layout:o(609),children:[l[o(1993)](z[o(457)][o(1047)],{label:o(516),children:l[o(1993)](z[o(370)],{value:g[o(659)],onChange:h=>d(f.id,g.id,{name:h[o(603)][o(1981)]}),placeholder:"输入状态名称"})}),l[o(1993)](qr,{status:g,onUpdate:h=>d(f.id,g.id,h)}),l[o(1993)](z[o(457)].Item,{label:"执行表达式",help:o(858),children:l[o(1993)](Pl,{value:g.expression,onChange:h=>d(f.id,g.id,{expression:h[o(603)][o(1981)]}),rows:3,placeholder:o(945)})}),l[o(1993)](z[o(457)][o(1047)],{label:o(749),children:l[o(1239)](o(539),{className:"flex items-center gap-2",children:[l[o(1993)](z[o(2037)],{color:o(1306),children:g[o(600)].name}),l[o(1993)](z[o(2037)],{color:o(1582),children:g[o(600)][o(1424)]}),l[o(1993)](z.Select,{placeholder:o(629),style:{width:150},value:void 0,onChange:h=>h&&u(f.id,g.id,h),options:x.map(h=>({value:h.id,label:h[o(659)]+" ("+h[o(1424)]+")"}))})]})}),l[o(1993)](z.Divider,{style:{margin:o(1860)}}),l[o(1239)]("div",{className:o(1915),children:[l.jsxs("div",{className:o(1845),children:[l[o(1993)](o(1102),{className:"text-sm font-medium",children:o(1893)}),l[o(1993)](z[o(2037)],{children:g[o(600)][o(659)]})]}),l[o(1993)](Wr,{material:g[o(600)],onSave:h=>{const b=o,M={...g[b(600)],...h};d(f.id,g.id,{material:M})}})]})]})},g.id))})]})},f.id))})]})};function Ge(e){const n=a;if(typeof e=="string"||typeof e===n(411))return""+e;let t="";if(Array.isArray(e))for(let o=0,x;o<e[n(2194)];o++)(x=Ge(e[o]))!==""&&(t+=(t&&" ")+x);else for(let o in e)e[o]&&(t+=(t&&" ")+o);return t}var jl={value:()=>{}};function z0(){const e=a;for(var n=0,t=arguments[e(2194)],o={},x;n<t;++n){if(!(x=arguments[n]+"")||x in o||/[\s.]/[e(1794)](x))throw new Error(e(1627)+x);o[x]=[]}return new C0(o)}function C0(e){this._=e}function El(e,n){const t=a;return e[t(1258)]()[t(1615)](/^|\s+/)[t(542)](function(o){const x=t;var r="",i=o[x(419)](".");if(i>=0&&(r=o[x(1172)](i+1),o=o[x(1172)](0,i)),o&&!n.hasOwnProperty(o))throw new Error(x(1574)+o);return{type:o,name:r}})}C0[a(1201)]=z0[a(1201)]={constructor:C0,on:function(e,n){const t=a;var o=this._,x=El(e+"",o),r,i=-1,c=x.length;if(arguments[t(2194)]<2){for(;++i<c;)if((r=(e=x[i])[t(1424)])&&(r=Yl(o[r],e[t(659)])))return r;return}if(n!=null&&typeof n!==t(1154))throw new Error(t(992)+n);for(;++i<c;)if(r=(e=x[i])[t(1424)])o[r]=Kr(o[r],e[t(659)],n);else if(n==null)for(r in o)o[r]=Kr(o[r],e[t(659)],null);return this},copy:function(){const e=a;var n={},t=this._;for(var o in t)n[o]=t[o][e(1172)]();return new C0(n)},call:function(e,n){const t=a;if((r=arguments[t(2194)]-2)>0)for(var o=new Array(r),x=0,r,i;x<r;++x)o[x]=arguments[x+2];if(!this._[t(436)](e))throw new Error(t(1574)+e);for(i=this._[e],x=0,r=i[t(2194)];x<r;++x)i[x][t(1981)].apply(n,o)},apply:function(e,n,t){const o=a;if(!this._[o(436)](e))throw new Error(o(1574)+e);for(var x=this._[e],r=0,i=x[o(2194)];r<i;++r)x[r].value[o(1241)](n,t)}};function Yl(e,n){const t=a;for(var o=0,x=e.length,r;o<x;++o)if((r=e[o])[t(659)]===n)return r[t(1981)]}function Kr(e,n,t){const o=a;for(var x=0,r=e[o(2194)];x<r;++x)if(e[x][o(659)]===n){e[x]=jl,e=e.slice(0,x).concat(e[o(1172)](x+1));break}return t!=null&&e[o(1465)]({name:n,value:t}),e}var Ux=a(1509);const Zr={svg:"http://www.w3.org/2000/svg",xhtml:Ux,xlink:a(547),xml:"http://www.w3.org/XML/1998/namespace",xmlns:a(1233)};function M0(e){const n=a;var t=e+="",o=t[n(419)](":");return o>=0&&(t=e.slice(0,o))!==n(1784)&&(e=e[n(1172)](o+1)),Zr[n(436)](t)?{space:Zr[t],local:e}:e}function Ul(e){return function(){const n=_0x4806;var t=this[n(1658)],o=this[n(383)];return o===Ux&&t.documentElement[n(383)]===Ux?t[n(1990)](e):t[n(1408)](o,e)}}function Gl(e){return function(){const n=_0x4806;return this[n(1658)].createElementNS(e[n(931)],e.local)}}function Rr(e){const n=a;var t=M0(e);return(t[n(1891)]?Gl:Ul)(t)}function Ol(){}function Gx(e){return e==null?Ol:function(){return this[_0x4806(1542)](e)}}function Hl(e){const n=a;typeof e!==n(1154)&&(e=Gx(e));for(var t=this[n(2068)],o=t[n(2194)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i.length,d=x[r]=new Array(c),s,u,f=0;f<c;++f)(s=i[f])&&(u=e[n(897)](s,s[n(1843)],f,i))&&("__data__"in s&&(u[n(1843)]=s.__data__),d[f]=u);return new $e(x,this[n(1916)])}function Tl(e){const n=a;return e==null?[]:Array[n(927)](e)?e:Array.from(e)}function Vl(){return[]}function Jr(e){return e==null?Vl:function(){return this[_0x4806(409)](e)}}function ql(e){return function(){return Tl(e[_0x4806(1241)](this,arguments))}}function Wl(e){const n=a;typeof e===n(1154)?e=ql(e):e=Jr(e);for(var t=this._groups,o=t[n(2194)],x=[],r=[],i=0;i<o;++i)for(var c=t[i],d=c[n(2194)],s,u=0;u<d;++u)(s=c[u])&&(x[n(1465)](e[n(897)](s,s.__data__,u,c)),r[n(1465)](s));return new $e(x,r)}function _r(e){return function(){return this[_0x4806(1719)](e)}}function Fr(e){return function(n){return n[_0x4806(1719)](e)}}var Xl=Array[a(1201)][a(1876)];function Kl(e){return function(){return Xl[_0x4806(897)](this.children,e)}}function Zl(){return this[a(972)]}function Rl(e){return this[a(1877)](e==null?Zl:Kl(typeof e=="function"?e:Fr(e)))}var Jl=Array[a(1201)][a(1641)];function _l(){const e=a;return Array[e(1139)](this[e(514)])}function Fl(e){return function(){const n=_0x4806;return Jl[n(897)](this[n(514)],e)}}function Ql(e){return this.selectAll(e==null?_l:Fl(typeof e=="function"?e:Fr(e)))}function $l(e){const n=a;typeof e!="function"&&(e=_r(e));for(var t=this[n(2068)],o=t.length,x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i[n(2194)],d=x[r]=[],s,u=0;u<c;++u)(s=i[u])&&e[n(897)](s,s[n(1843)],u,i)&&d[n(1465)](s);return new $e(x,this[n(1916)])}function Qr(e){const n=a;return new Array(e[n(2194)])}function ed(){const e=a;return new $e(this._enter||this._groups[e(542)](Qr),this[e(1916)])}function B0(e,n){const t=a;this.ownerDocument=e[t(1658)],this[t(383)]=e[t(383)],this[t(936)]=null,this[t(1313)]=e,this[t(1843)]=n}B0.prototype={constructor:B0,appendChild:function(e){const n=a;return this[n(1313)][n(1249)](e,this._next)},insertBefore:function(e,n){const t=a;return this[t(1313)][t(1249)](e,n)},querySelector:function(e){const n=a;return this[n(1313)][n(1542)](e)},querySelectorAll:function(e){return this[a(1313)].querySelectorAll(e)}};function nd(e){return function(){return e}}function td(e,n,t,o,x,r){const i=a;for(var c=0,d,s=n[i(2194)],u=r[i(2194)];c<u;++c)(d=n[c])?(d.__data__=r[c],o[c]=d):t[c]=new B0(e,r[c]);for(;c<s;++c)(d=n[c])&&(x[c]=d)}function xd(e,n,t,o,x,r,i){const c=a;var d,s,u=new Map,f=n[c(2194)],y=r[c(2194)],g=new Array(f),p;for(d=0;d<f;++d)(s=n[d])&&(g[d]=p=i[c(897)](s,s[c(1843)],d,n)+"",u.has(p)?x[d]=s:u[c(799)](p,s));for(d=0;d<y;++d)p=i[c(897)](e,r[d],d,r)+"",(s=u.get(p))?(o[d]=s,s[c(1843)]=r[d],u[c(1147)](p)):t[d]=new B0(e,r[d]);for(d=0;d<f;++d)(s=n[d])&&u[c(1157)](g[d])===s&&(x[d]=s)}function od(e){return e[a(1843)]}function rd(e,n){const t=a;if(!arguments[t(2194)])return Array[t(1139)](this,od);var o=n?xd:td,x=this[t(1916)],r=this[t(2068)];typeof e!==t(1154)&&(e=nd(e));for(var i=r[t(2194)],c=new Array(i),d=new Array(i),s=new Array(i),u=0;u<i;++u){var f=x[u],y=r[u],g=y[t(2194)],p=id(e[t(897)](f,f&&f[t(1843)],u,x)),h=p.length,b=d[u]=new Array(h),M=c[u]=new Array(h),v=s[u]=new Array(g);o(f,y,b,M,v,p,n);for(var m=0,w=0,C,k;m<h;++m)if(C=b[m]){for(m>=w&&(w=m+1);!(k=M[w])&&++w<h;);C[t(936)]=k||null}}return c=new $e(c,x),c[t(1652)]=d,c[t(1985)]=s,c}function id(e){const n=a;return typeof e===n(2171)&&"length"in e?e:Array[n(1139)](e)}function cd(){const e=a;return new $e(this._exit||this[e(2068)][e(542)](Qr),this[e(1916)])}function ad(e,n,t){const o=a;var x=this.enter(),r=this,i=this[o(2141)]();return typeof e===o(1154)?(x=e(x),x&&(x=x[o(1032)]())):x=x[o(1037)](e+""),n!=null&&(r=n(r),r&&(r=r[o(1032)]())),t==null?i[o(921)]():t(i),x&&r?x.merge(r)[o(1206)]():r}function sd(e){const n=a;for(var t=e[n(1032)]?e[n(1032)]():e,o=this[n(2068)],x=t[n(2068)],r=o[n(2194)],i=x.length,c=Math[n(831)](r,i),d=new Array(r),s=0;s<c;++s)for(var u=o[s],f=x[s],y=u[n(2194)],g=d[s]=new Array(y),p,h=0;h<y;++h)(p=u[h]||f[h])&&(g[h]=p);for(;s<r;++s)d[s]=o[s];return new $e(d,this[n(1916)])}function ld(){const e=a;for(var n=this._groups,t=-1,o=n[e(2194)];++t<o;)for(var x=n[t],r=x.length-1,i=x[r],c;--r>=0;)(c=x[r])&&(i&&c[e(734)](i)^4&&i[e(430)][e(1249)](c,i),i=c);return this}function dd(e){const n=a;e||(e=ud);function t(y,g){const p=_0x4806;return y&&g?e(y[p(1843)],g[p(1843)]):!y-!g}for(var o=this[n(2068)],x=o.length,r=new Array(x),i=0;i<x;++i){for(var c=o[i],d=c[n(2194)],s=r[i]=new Array(d),u,f=0;f<d;++f)(u=c[f])&&(s[f]=u);s[n(1576)](t)}return new $e(r,this._parents)[n(1206)]()}function ud(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function fd(){const e=a;var n=arguments[0];return arguments[0]=this,n[e(1241)](null,arguments),this}function hd(){return Array[a(1139)](this)}function gd(){const e=a;for(var n=this._groups,t=0,o=n[e(2194)];t<o;++t)for(var x=n[t],r=0,i=x.length;r<i;++r){var c=x[r];if(c)return c}return null}function yd(){let e=0;for(const n of this)++e;return e}function md(){return!this[a(1997)]()}function wd(e){const n=a;for(var t=this[n(2068)],o=0,x=t[n(2194)];o<x;++o)for(var r=t[o],i=0,c=r[n(2194)],d;i<c;++i)(d=r[i])&&e[n(897)](d,d[n(1843)],i,r);return this}function vd(e){return function(){this[_0x4806(1245)](e)}}function pd(e){return function(){const n=_0x4806;this[n(957)](e.space,e[n(1891)])}}function bd(e,n){return function(){this[_0x4806(1110)](e,n)}}function zd(e,n){return function(){const t=_0x4806;this[t(509)](e.space,e[t(1891)],n)}}function Cd(e,n){return function(){const t=_0x4806;var o=n[t(1241)](this,arguments);o==null?this[t(1245)](e):this[t(1110)](e,o)}}function Md(e,n){return function(){const t=_0x4806;var o=n.apply(this,arguments);o==null?this[t(957)](e[t(931)],e.local):this.setAttributeNS(e.space,e[t(1891)],o)}}function Bd(e,n){const t=a;var o=M0(e);if(arguments.length<2){var x=this[t(1997)]();return o[t(1891)]?x[t(1367)](o.space,o[t(1891)]):x[t(527)](o)}return this.each((n==null?o[t(1891)]?pd:vd:typeof n===t(1154)?o[t(1891)]?Md:Cd:o.local?zd:bd)(o,n))}function $r(e){const n=a;return e[n(1658)]&&e.ownerDocument[n(1662)]||e[n(1644)]&&e||e[n(1662)]}function Dd(e){return function(){this[_0x4806(1346)].removeProperty(e)}}function Ld(e,n,t){return function(){this[_0x4806(1346)].setProperty(e,n,t)}}function Nd(e,n,t){return function(){const o=_0x4806;var x=n.apply(this,arguments);x==null?this.style[o(1058)](e):this.style.setProperty(e,x,t)}}function Sd(e,n,t){const o=a;return arguments.length>1?this.each((n==null?Dd:typeof n=="function"?Nd:Ld)(e,n,t??"")):ut(this[o(1997)](),e)}function ut(e,n){const t=a;return e[t(1346)][t(442)](n)||$r(e)[t(574)](e,null)[t(442)](n)}function kd(e){return function(){delete this[e]}}function Id(e,n){return function(){this[e]=n}}function Pd(e,n){return function(){var o=n[_0x4806(1241)](this,arguments);o==null?delete this[e]:this[e]=o}}function Ad(e,n){const t=a;return arguments.length>1?this[t(1920)]((n==null?kd:typeof n===t(1154)?Pd:Id)(e,n)):this[t(1997)]()[e]}function ei(e){const n=a;return e[n(1258)]()[n(1615)](/^|\s+/)}function Ox(e){return e[a(1931)]||new ni(e)}function ni(e){const n=a;this._node=e,this[n(1112)]=ei(e[n(527)](n(1585))||"")}ni[a(1201)]={add:function(e){const n=a;var t=this[n(1112)].indexOf(e);t<0&&(this[n(1112)][n(1465)](e),this._node.setAttribute(n(1585),this._names[n(886)](" ")))},remove:function(e){const n=a;var t=this[n(1112)][n(419)](e);t>=0&&(this[n(1112)][n(1808)](t,1),this[n(1878)][n(1110)](n(1585),this[n(1112)][n(886)](" ")))},contains:function(e){return this[a(1112)].indexOf(e)>=0}};function ti(e,n){const t=a;for(var o=Ox(e),x=-1,r=n[t(2194)];++x<r;)o[t(1757)](n[x])}function xi(e,n){const t=a;for(var o=Ox(e),x=-1,r=n[t(2194)];++x<r;)o[t(921)](n[x])}function jd(e){return function(){ti(this,e)}}function Ed(e){return function(){xi(this,e)}}function Yd(e,n){return function(){(n[_0x4806(1241)](this,arguments)?ti:xi)(this,e)}}function Ud(e,n){const t=a;var o=ei(e+"");if(arguments.length<2){for(var x=Ox(this[t(1997)]()),r=-1,i=o[t(2194)];++r<i;)if(!x[t(2099)](o[r]))return!1;return!0}return this[t(1920)]((typeof n=="function"?Yd:n?jd:Ed)(o,n))}function Gd(){this.textContent=""}function Od(e){return function(){const n=_0x4806;this[n(1800)]=e}}function Hd(e){return function(){const n=_0x4806;var t=e[n(1241)](this,arguments);this[n(1800)]=t??""}}function Td(e){const n=a;return arguments[n(2194)]?this.each(e==null?Gd:(typeof e=="function"?Hd:Od)(e)):this[n(1997)]()[n(1800)]}function Vd(){const e=a;this[e(1226)]=""}function qd(e){return function(){const n=_0x4806;this[n(1226)]=e}}function Wd(e){return function(){const n=_0x4806;var t=e[n(1241)](this,arguments);this[n(1226)]=t??""}}function Xd(e){const n=a;return arguments.length?this[n(1920)](e==null?Vd:(typeof e===n(1154)?Wd:qd)(e)):this[n(1997)]()[n(1226)]}function Kd(){const e=a;this[e(1671)]&&this.parentNode[e(1365)](this)}function Zd(){return this[a(1920)](Kd)}function Rd(){const e=a;this.previousSibling&&this[e(430)].insertBefore(this,this[e(430)][e(481)])}function Jd(){return this[a(1920)](Rd)}function _d(e){const n=a;var t=typeof e===n(1154)?e:Rr(e);return this.select(function(){const o=n;return this[o(1365)](t[o(1241)](this,arguments))})}function Fd(){return null}function Qd(e,n){const t=a;var o=typeof e===t(1154)?e:Rr(e),x=n==null?Fd:typeof n===t(1154)?n:Gx(n);return this[t(1877)](function(){const r=t;return this[r(1249)](o[r(1241)](this,arguments),x[r(1241)](this,arguments)||null)})}function $d(){const e=a;var n=this.parentNode;n&&n[e(1331)](this)}function eu(){return this[a(1920)]($d)}function nu(){const e=a;var n=this[e(909)](!1),t=this[e(430)];return t?t[e(1249)](n,this[e(1671)]):n}function tu(){const e=a;var n=this[e(909)](!0),t=this[e(430)];return t?t[e(1249)](n,this.nextSibling):n}function xu(e){return this[a(1877)](e?tu:nu)}function ou(e){const n=a;return arguments[n(2194)]?this[n(1665)](n(1843),e):this[n(1997)]()[n(1843)]}function ru(e){return function(n){const t=_0x4806;e.call(this,n,this[t(1843)])}}function iu(e){const n=a;return e.trim()[n(1615)](/^|\s+/)[n(542)](function(t){const o=n;var x="",r=t[o(419)](".");return r>=0&&(x=t[o(1172)](r+1),t=t[o(1172)](0,r)),{type:t,name:x}})}function cu(e){return function(){const n=_0x4806;var t=this[n(611)];if(t){for(var o=0,x=-1,r=t[n(2194)],i;o<r;++o)i=t[o],(!e[n(1424)]||i[n(1424)]===e.type)&&i[n(659)]===e[n(659)]?this[n(1339)](i[n(1424)],i.listener,i.options):t[++x]=i;++x?t[n(2194)]=x:delete this[n(611)]}}}function au(e,n,t){return function(){const o=_0x4806;var x=this[o(611)],r,i=ru(n);if(x){for(var c=0,d=x[o(2194)];c<d;++c)if((r=x[c])[o(1424)]===e.type&&r[o(659)]===e.name){this.removeEventListener(r[o(1424)],r[o(1122)],r.options),this.addEventListener(r[o(1424)],r[o(1122)]=i,r[o(1335)]=t),r[o(1981)]=n;return}}this[o(1966)](e[o(1424)],i,t),r={type:e.type,name:e[o(659)],value:n,listener:i,options:t},x?x[o(1465)](r):this[o(611)]=[r]}}function su(e,n,t){const o=a;var x=iu(e+""),r,i=x.length,c;if(arguments.length<2){var d=this[o(1997)]().__on;if(d){for(var s=0,u=d[o(2194)],f;s<u;++s)for(r=0,f=d[s];r<i;++r)if((c=x[r])[o(1424)]===f[o(1424)]&&c[o(659)]===f.name)return f[o(1981)]}return}for(d=n?au:cu,r=0;r<i;++r)this[o(1920)](d(x[r],n,t));return this}function oi(e,n,t){const o=a;var x=$r(e),r=x[o(1502)];typeof r=="function"?r=new r(n,t):(r=x[o(1644)][o(1422)](o(1811)),t?(r[o(567)](n,t[o(756)],t.cancelable),r[o(589)]=t[o(589)]):r[o(567)](n,!1,!1)),e[o(792)](r)}function lu(e,n){return function(){return oi(this,e,n)}}function du(e,n){return function(){return oi(this,e,n[_0x4806(1241)](this,arguments))}}function uu(e,n){return this[a(1920)]((typeof n=="function"?du:lu)(e,n))}function*fu(){const e=a;for(var n=this[e(2068)],t=0,o=n[e(2194)];t<o;++t)for(var x=n[t],r=0,i=x[e(2194)],c;r<i;++r)(c=x[r])&&(yield c)}var ri=[null];function $e(e,n){const t=a;this[t(2068)]=e,this[t(1916)]=n}function Ut(){const e=a;return new $e([[document[e(2079)]]],ri)}function hu(){return this}$e[a(1201)]=Ut[a(1201)]={constructor:$e,select:Hl,selectAll:Wl,selectChild:Rl,selectChildren:Ql,filter:$l,data:rd,enter:ed,exit:cd,join:ad,merge:sd,selection:hu,order:ld,sort:dd,call:fd,nodes:hd,node:gd,size:yd,empty:md,each:wd,attr:Bd,style:Sd,property:Ad,classed:Ud,text:Td,html:Xd,raise:Zd,lower:Jd,append:_d,insert:Qd,remove:eu,clone:xu,datum:ou,on:su,dispatch:uu,[Symbol[a(2104)]]:fu};function en(e){const n=a;return typeof e=="string"?new $e([[document.querySelector(e)]],[document[n(2079)]]):new $e([[e]],ri)}function gu(e){const n=a;let t;for(;t=e[n(652)];)e=t;return e}function dn(e,n){const t=a;if(e=gu(e),n===void 0&&(n=e.currentTarget),n){var o=n[t(1566)]||n;if(o[t(581)]){var x=o[t(581)]();return x.x=e[t(1569)],x.y=e.clientY,x=x[t(519)](n[t(1922)]()[t(468)]()),[x.x,x.y]}if(n[t(1761)]){var r=n[t(1761)]();return[e[t(1569)]-r[t(1557)]-n[t(1308)],e[t(1947)]-r[t(1413)]-n[t(918)]]}}return[e[t(1009)],e.pageY]}const yu={passive:!1},Gt={capture:!0,passive:!1};function Hx(e){e.stopImmediatePropagation()}function ft(e){const n=a;e[n(1923)](),e[n(1006)]()}function ii(e){const n=a;var t=e[n(1644)][n(2079)],o=en(e).on(n(1415),ft,Gt);n(1156)in t?o.on(n(1451),ft,Gt):(t[n(558)]=t[n(1346)].MozUserSelect,t[n(1346)][n(387)]=n(1712))}function ci(e,n){const t=a;var o=e[t(1644)].documentElement,x=en(e).on(t(1415),null);n&&(x.on("click.drag",ft,Gt),setTimeout(function(){x.on("click.drag",null)},0)),t(1156)in o?x.on("selectstart.drag",null):(o[t(1346)].MozUserSelect=o[t(558)],delete o[t(558)])}const D0=e=>()=>e;function Tx(e,{sourceEvent:n,subject:t,target:o,identifier:x,active:r,x:i,y:c,dx:d,dy:s,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:x,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:u}})}Tx[a(1201)].on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function mu(e){const n=a;return!e[n(569)]&&!e[n(772)]}function wu(){return this[a(430)]}function vu(e,n){return n??{x:e.x,y:e.y}}function pu(){const e=a;return navigator[e(563)]||e(2157)in this}function ai(){const e=a;var n=mu,t=wu,o=vu,x=pu,r={},i=z0(e(1989),e(553),e(412)),c=0,d,s,u,f,y=0;function g(C){const k=e;C.on(k(1812),p)[k(1641)](x).on(k(742),M).on(k(819),v,yu).on(k(1290),m).style(k(1865),k(1712))[k(1346)](k(815),k(1166))}function p(C,k){const O=e;if(!(f||!n[O(897)](this,C,k))){var G=w(this,t[O(897)](this,C,k),C,k,O(1085));G&&(en(C[O(892)]).on(O(591),h,Gt).on(O(701),b,Gt),ii(C.view),Hx(C),u=!1,d=C[O(1569)],s=C[O(1947)],G(O(1989),C))}}function h(C){const k=e;if(ft(C),!u){var O=C[k(1569)]-d,G=C.clientY-s;u=O*O+G*G>y}r[k(1085)](k(553),C)}function b(C){const k=e;en(C.view).on(k(1270),null),ci(C[k(892)],u),ft(C),r[k(1085)](k(412),C)}function M(C,k){const O=e;if(n[O(897)](this,C,k)){var G=C[O(1065)],j=t[O(897)](this,C,k),A=G[O(2194)],Z,W;for(Z=0;Z<A;++Z)(W=w(this,j,C,k,G[Z][O(1223)],G[Z]))&&(Hx(C),W(O(1989),C,G[Z]))}}function v(C){const k=e;var O=C[k(1065)],G=O[k(2194)],j,A;for(j=0;j<G;++j)(A=r[O[j][k(1223)]])&&(ft(C),A(k(553),C,O[j]))}function m(C){const k=e;var O=C[k(1065)],G=O[k(2194)],j,A;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),j=0;j<G;++j)(A=r[O[j][k(1223)]])&&(Hx(C),A(k(412),C,O[j]))}function w(C,k,O,G,j,A){const Z=e;var W=i.copy(),q=dn(A||O,k),T,N,D;if((D=o.call(C,new Tx(Z(1198),{sourceEvent:O,target:g,identifier:j,active:c,x:q[0],y:q[1],dx:0,dy:0,dispatch:W}),G))!=null)return T=D.x-q[0]||0,N=D.y-q[1]||0,function L(U,P,S){const K=Z;var Q=q,R;switch(U){case K(1989):r[j]=L,R=c++;break;case K(412):delete r[j],--c;case K(553):q=dn(S||P,k),R=c;break}W[K(897)](U,C,new Tx(U,{sourceEvent:P,subject:D,target:g,identifier:j,active:R,x:q[0]+T,y:q[1]+N,dx:q[0]-Q[0],dy:q[1]-Q[1],dispatch:W}),G)}}return g.filter=function(C){return arguments[e(2194)]?(n=typeof C=="function"?C:D0(!!C),g):n},g[e(1171)]=function(C){const k=e;return arguments[k(2194)]?(t=typeof C===k(1154)?C:D0(C),g):t},g[e(449)]=function(C){const k=e;return arguments[k(2194)]?(o=typeof C===k(1154)?C:D0(C),g):o},g.touchable=function(C){const k=e;return arguments[k(2194)]?(x=typeof C===k(1154)?C:D0(!!C),g):x},g.on=function(){const C=e;var k=i.on[C(1241)](i,arguments);return k===i?g:k},g.clickDistance=function(C){const k=e;return arguments.length?(y=(C=+C)*C,g):Math[k(807)](y)},g}function Vx(e,n,t){const o=a;e.prototype=n[o(1201)]=t,t[o(1975)]=e}function si(e,n){var o=Object.create(e[a(1201)]);for(var x in n)o[x]=n[x];return o}function Ot(){}var Ht=.7,L0=1/Ht,ht=a(1565),Tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn=a(1510),bu=/^#([0-9a-f]{3,8})$/,zu=new RegExp("^rgb\\("+ht+","+ht+","+ht+a(1573)),Cu=new RegExp("^rgb\\("+bn+","+bn+","+bn+a(1573)),Mu=new RegExp(a(455)+ht+","+ht+","+ht+","+Tt+"\\)$"),Bu=new RegExp(a(455)+bn+","+bn+","+bn+","+Tt+a(1573)),Du=new RegExp(a(827)+Tt+","+bn+","+bn+a(1573)),Lu=new RegExp("^hsla\\("+Tt+","+bn+","+bn+","+Tt+a(1573)),li={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Vx(Ot,Zn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){const e=a;return this.rgb()[e(1445)]()},hex:di,formatHex:di,formatHex8:Nu,formatHsl:Su,formatRgb:ui,toString:ui});function di(){return this[a(2024)]().formatHex()}function Nu(){const e=a;return this[e(2024)]()[e(1765)]()}function Su(){const e=a;return mi(this)[e(1295)]()}function ui(){const e=a;return this.rgb()[e(697)]()}function Zn(e){const n=a;var t,o;return e=(e+"")[n(1258)]().toLowerCase(),(t=bu[n(616)](e))?(o=t[1][n(2194)],t=parseInt(t[1],16),o===6?fi(t):o===3?new Re(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):o===8?N0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):o===4?N0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=zu[n(616)](e))?new Re(t[1],t[2],t[3],1):(t=Cu[n(616)](e))?new Re(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mu[n(616)](e))?N0(t[1],t[2],t[3],t[4]):(t=Bu.exec(e))?N0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Du[n(616)](e))?yi(t[1],t[2]/100,t[3]/100,1):(t=Lu[n(616)](e))?yi(t[1],t[2]/100,t[3]/100,t[4]):li[n(436)](e)?fi(li[e]):e===n(583)?new Re(NaN,NaN,NaN,0):null}function fi(e){return new Re(e>>16&255,e>>8&255,e&255,1)}function N0(e,n,t,o){return o<=0&&(e=n=t=NaN),new Re(e,n,t,o)}function ku(e){const n=a;return e instanceof Ot||(e=Zn(e)),e?(e=e[n(2024)](),new Re(e.r,e.g,e.b,e[n(981)])):new Re}function qx(e,n,t,o){return arguments[a(2194)]===1?ku(e):new Re(e,n,t,o??1)}function Re(e,n,t,o){const x=a;this.r=+e,this.g=+n,this.b=+t,this[x(981)]=+o}Vx(Re,qx,si(Ot,{brighter(e){const n=a;return e=e==null?L0:Math[n(1433)](L0,e),new Re(this.r*e,this.g*e,this.b*e,this[n(981)])},darker(e){const n=a;return e=e==null?Ht:Math.pow(Ht,e),new Re(this.r*e,this.g*e,this.b*e,this[n(981)])},rgb(){return this},clamp(){const e=a;return new Re(Rn(this.r),Rn(this.g),Rn(this.b),S0(this[e(981)]))},displayable(){const e=a;return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this[e(981)]&&this[e(981)]<=1},hex:hi,formatHex:hi,formatHex8:Iu,formatRgb:gi,toString:gi}));function hi(){return"#"+Jn(this.r)+Jn(this.g)+Jn(this.b)}function Iu(){const e=a;return"#"+Jn(this.r)+Jn(this.g)+Jn(this.b)+Jn((isNaN(this[e(981)])?1:this[e(981)])*255)}function gi(){const e=a,n=S0(this.opacity);return""+e(n===1?1795:1506)+Rn(this.r)+", "+Rn(this.g)+", "+Rn(this.b)+(n===1?")":", "+n+")")}function S0(e){const n=a;return isNaN(e)?1:Math[n(1439)](0,Math[n(831)](1,e))}function Rn(e){const n=a;return Math[n(1439)](0,Math[n(831)](255,Math[n(723)](e)||0))}function Jn(e){return e=Rn(e),(e<16?"0":"")+e.toString(16)}function yi(e,n,t,o){return o<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new un(e,n,t,o)}function mi(e){const n=a;if(e instanceof un)return new un(e.h,e.s,e.l,e[n(981)]);if(e instanceof Ot||(e=Zn(e)),!e)return new un;if(e instanceof un)return e;e=e[n(2024)]();var t=e.r/255,o=e.g/255,x=e.b/255,r=Math[n(831)](t,o,x),i=Math[n(1439)](t,o,x),c=NaN,d=i-r,s=(i+r)/2;return d?(t===i?c=(o-x)/d+(o<x)*6:o===i?c=(x-t)/d+2:c=(t-o)/d+4,d/=s<.5?i+r:2-i-r,c*=60):d=s>0&&s<1?0:c,new un(c,d,s,e[n(981)])}function Pu(e,n,t,o){return arguments[a(2194)]===1?mi(e):new un(e,n,t,o??1)}function un(e,n,t,o){const x=a;this.h=+e,this.s=+n,this.l=+t,this[x(981)]=+o}Vx(un,Pu,si(Ot,{brighter(e){const n=a;return e=e==null?L0:Math[n(1433)](L0,e),new un(this.h,this.s,this.l*e,this[n(981)])},darker(e){const n=a;return e=e==null?Ht:Math[n(1433)](Ht,e),new un(this.h,this.s,this.l*e,this.opacity)},rgb(){const e=a;var n=this.h%360+(this.h<0)*360,t=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,x=o+(o<.5?o:1-o)*t,r=2*o-x;return new Re(Wx(n>=240?n-240:n+120,r,x),Wx(n,r,x),Wx(n<120?n+240:n-120,r,x),this[e(981)])},clamp(){const e=a;return new un(wi(this.h),k0(this.s),k0(this.l),S0(this[e(981)]))},displayable(){const e=a;return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this[e(981)]&&this[e(981)]<=1},formatHsl(){const e=a,n=S0(this[e(981)]);return""+e(n===1?625:2043)+wi(this.h)+", "+k0(this.s)*100+e(1925)+k0(this.l)*100+"%"+(n===1?")":", "+n+")")}}));function wi(e){return e=(e||0)%360,e<0?e+360:e}function k0(e){return Math.max(0,Math.min(1,e||0))}function Wx(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const Xx=e=>()=>e;function Au(e,n){return function(t){return e+t*n}}function ju(e,n,t){const o=a;return e=Math.pow(e,t),n=Math[o(1433)](n,t)-e,t=1/t,function(x){return Math[o(1433)](e+x*n,t)}}function Eu(e){return(e=+e)==1?vi:function(n,t){return t-n?ju(n,t,e):Xx(isNaN(n)?t:n)}}function vi(e,n){var t=n-e;return t?Au(e,t):Xx(isNaN(e)?n:e)}const I0=(function e(n){const t=a;var o=Eu(n);function x(r,i){const c=_0x4806;var d=o((r=qx(r)).r,(i=qx(i)).r),s=o(r.g,i.g),u=o(r.b,i.b),f=vi(r[c(981)],i.opacity);return function(y){return r.r=d(y),r.g=s(y),r.b=u(y),r.opacity=f(y),r+""}}return x[t(1635)]=e,x})(1);function Yu(e,n){const t=a;n||(n=[]);var o=e?Math[t(831)](n[t(2194)],e[t(2194)]):0,x=n[t(1172)](),r;return function(i){for(r=0;r<o;++r)x[r]=e[r]*(1-i)+n[r]*i;return x}}function Uu(e){return ArrayBuffer[a(1455)](e)&&!(e instanceof DataView)}function Gu(e,n){const t=a;var o=n?n.length:0,x=e?Math.min(o,e[t(2194)]):0,r=new Array(x),i=new Array(o),c;for(c=0;c<x;++c)r[c]=Vt(e[c],n[c]);for(;c<o;++c)i[c]=n[c];return function(d){for(c=0;c<x;++c)i[c]=r[c](d);return i}}function Ou(e,n){var t=new Date;return e=+e,n=+n,function(o){return t[_0x4806(1414)](e*(1-o)+n*o),t}}function zn(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function Hu(e,n){const t=a;var o={},x={},r;(e===null||typeof e!==t(2171))&&(e={}),(n===null||typeof n!==t(2171))&&(n={});for(r in n)r in e?o[r]=Vt(e[r],n[r]):x[r]=n[r];return function(i){for(r in o)x[r]=o[r](i);return x}}var Kx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zx=new RegExp(Kx[a(964)],"g");function Tu(e){return function(){return e}}function Vu(e){return function(n){return e(n)+""}}function pi(e,n){const t=a;var o=Kx[t(1540)]=Zx[t(1540)]=0,x,r,i,c=-1,d=[],s=[];for(e=e+"",n=n+"";(x=Kx[t(616)](e))&&(r=Zx.exec(n));)(i=r[t(2045)])>o&&(i=n[t(1172)](o,i),d[c]?d[c]+=i:d[++c]=i),(x=x[0])===(r=r[0])?d[c]?d[c]+=r:d[++c]=r:(d[++c]=null,s[t(1465)]({i:c,x:zn(x,r)})),o=Zx[t(1540)];return o<n[t(2194)]&&(i=n.slice(o),d[c]?d[c]+=i:d[++c]=i),d[t(2194)]<2?s[0]?Vu(s[0].x):Tu(n):(n=s[t(2194)],function(u){const f=t;for(var y=0,g;y<n;++y)d[(g=s[y]).i]=g.x(u);return d[f(886)]("")})}function Vt(e,n){const t=a;var o=typeof n,x;return n==null||o===t(1274)?Xx(n):(o===t(411)?zn:o===t(774)?(x=Zn(n))?(n=x,I0):pi:n instanceof Zn?I0:n instanceof Date?Ou:Uu(n)?Yu:Array[t(927)](n)?Gu:typeof n[t(487)]!==t(1154)&&typeof n[t(1053)]!==t(1154)||isNaN(n)?Hu:zn)(e,n)}var bi=180/Math.PI,Rx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zi(e,n,t,o,x,r){const i=a;var c,d,s;return(c=Math.sqrt(e*e+n*n))&&(e/=c,n/=c),(s=e*t+n*o)&&(t-=e*s,o-=n*s),(d=Math.sqrt(t*t+o*o))&&(t/=d,o/=d,s/=d),e*o<n*t&&(e=-e,n=-n,s=-s,c=-c),{translateX:x,translateY:r,rotate:Math[i(1689)](n,e)*bi,skewX:Math[i(1577)](s)*bi,scaleX:c,scaleY:d}}var P0;function qu(e){const n=a,t=new(typeof DOMMatrix===n(1154)?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Rx:zi(t.a,t.b,t.c,t.d,t.e,t.f)}function Wu(e){const n=a;return e==null||(P0||(P0=document.createElementNS("http://www.w3.org/2000/svg","g")),P0.setAttribute(n(1130),e),!(e=P0[n(1130)][n(1462)][n(1568)]()))?Rx:(e=e[n(979)],zi(e.a,e.b,e.c,e.d,e.e,e.f))}function Ci(e,n,t,o){function x(s){const u=_0x4806;return s[u(2194)]?s[u(1384)]()+" ":""}function r(s,u,f,y,g,p){const h=_0x4806;if(s!==f||u!==y){var b=g[h(1465)]("translate(",null,n,null,t);p[h(1465)]({i:b-4,x:zn(s,f)},{i:b-2,x:zn(u,y)})}else(f||y)&&g[h(1465)](h(389)+f+n+y+t)}function i(s,u,f,y){const g=_0x4806;s!==u?(s-u>180?u+=360:u-s>180&&(s+=360),y[g(1465)]({i:f[g(1465)](x(f)+g(970),null,o)-2,x:zn(s,u)})):u&&f.push(x(f)+"rotate("+u+o)}function c(s,u,f,y){const g=_0x4806;s!==u?y[g(1465)]({i:f[g(1465)](x(f)+g(1228),null,o)-2,x:zn(s,u)}):u&&f[g(1465)](x(f)+g(1228)+u+o)}function d(s,u,f,y,g,p){const h=_0x4806;if(s!==f||u!==y){var b=g[h(1465)](x(g)+h(1959),null,",",null,")");p[h(1465)]({i:b-4,x:zn(s,f)},{i:b-2,x:zn(u,y)})}else(f!==1||y!==1)&&g[h(1465)](x(g)+h(1959)+f+","+y+")")}return function(s,u){const f=_0x4806;var y=[],g=[];return s=e(s),u=e(u),r(s[f(1763)],s.translateY,u.translateX,u[f(830)],y,g),i(s.rotate,u.rotate,y,g),c(s.skewX,u[f(780)],y,g),d(s[f(698)],s[f(1217)],u.scaleX,u[f(1217)],y,g),s=u=null,function(p){const h=f;for(var b=-1,M=g[h(2194)],v;++b<M;)y[(v=g[b]).i]=v.x(p);return y[h(886)]("")}}}var Xu=Ci(qu,a(1375),"px)",a(1405)),Ku=Ci(Wu,", ",")",")"),Zu=1e-12;function Mi(e){return((e=Math.exp(e))+1/e)/2}function Ru(e){return((e=Math[a(1327)](e))-1/e)/2}function Ju(e){return((e=Math[a(1327)](2*e))-1)/(e+1)}const A0=(function e(n,t,o){const x=a;function r(i,c){const d=_0x4806;var s=i[0],u=i[1],f=i[2],y=c[0],g=c[1],p=c[2],h=y-s,b=g-u,M=h*h+b*b,v,m;if(M<Zu)m=Math[d(365)](p/f)/n,v=function(j){const A=d;return[s+j*h,u+j*b,f*Math[A(1327)](n*j*m)]};else{var w=Math[d(807)](M),C=(p*p-f*f+o*M)/(2*f*t*w),k=(p*p-f*f-o*M)/(2*p*t*w),O=Math.log(Math[d(807)](C*C+1)-C),G=Math[d(365)](Math[d(807)](k*k+1)-k);m=(G-O)/n,v=function(j){var A=j*m,Z=Mi(O),W=f/(t*w)*(Z*Ju(n*A+O)-Ru(O));return[s+W*h,u+W*b,f*Z/Mi(n*A+O)]}}return v[d(2056)]=m*1e3*n/Math.SQRT2,v}return r[x(1523)]=function(i){var d=Math[x(1439)](.001,+i),s=d*d,u=s*s;return e(d,s,u)},r})(Math[a(1078)],2,4);var gt=0,qt=0,Wt=0,Bi=1e3,j0,Xt,E0=0,_n=0,Y0=0,Kt=typeof performance===a(2171)&&performance.now?performance:Date,Di=typeof window=="object"&&window[a(1135)]?window[a(1135)][a(999)](window):function(e){setTimeout(e,17)};function Jx(){const e=a;return _n||(Di(_u),_n=Kt[e(1960)]()+Y0)}function _u(){_n=0}function U0(){this._call=this._time=this._next=null}U0[a(1201)]=Li[a(1201)]={constructor:U0,restart:function(e,n,t){const o=a;if(typeof e!==o(1154))throw new TypeError("callback is not a function");t=(t==null?Jx():+t)+(n==null?0:+n),!this[o(936)]&&Xt!==this&&(Xt?Xt[o(936)]=this:j0=this,Xt=this),this._call=e,this._time=t,_x()},stop:function(){const e=a;this[e(1911)]&&(this[e(1911)]=null,this[e(2049)]=1/0,_x())}};function Li(e,n,t){var o=new U0;return o.restart(e,n,t),o}function Fu(){const e=a;Jx(),++gt;for(var n=j0,t;n;)(t=_n-n[e(2049)])>=0&&n[e(1911)][e(897)](void 0,t),n=n[e(936)];--gt}function Ni(){_n=(E0=Kt[a(1960)]())+Y0,gt=qt=0;try{Fu()}finally{gt=0,$u(),_n=0}}function Qu(){var n=Kt[a(1960)](),t=n-E0;t>Bi&&(Y0-=t,E0=n)}function $u(){const e=a;for(var n,t=j0,o,x=1/0;t;)t._call?(x>t[e(2049)]&&(x=t._time),n=t,t=t[e(936)]):(o=t._next,t[e(936)]=null,t=n?n[e(936)]=o:j0=o);Xt=n,_x(x)}function _x(e){const n=a;if(!gt){qt&&(qt=clearTimeout(qt));var t=e-_n;t>24?(e<1/0&&(qt=setTimeout(Ni,e-Kt[n(1960)]()-Y0)),Wt&&(Wt=clearInterval(Wt))):(Wt||(E0=Kt[n(1960)](),Wt=setInterval(Qu,Bi)),gt=1,Di(Ni))}}function Si(e,n,t){const o=a;var x=new U0;return n=n==null?0:+n,x[o(1515)](r=>{x.stop(),e(r+n)},n,t),x}var ef=z0(a(1989),"end",a(737),a(1999)),nf=[],ki=0,Ii=1,Fx=2,G0=3,Pi=4,Qx=5,O0=6;function H0(e,n,t,o,x,r){const i=a;var c=e[i(1457)];if(!c)e[i(1457)]={};else if(t in c)return;tf(e,t,{name:n,index:o,group:x,on:ef,tween:nf,time:r[i(1303)],delay:r[i(1725)],duration:r[i(2056)],ease:r[i(2044)],timer:null,state:ki})}function $x(e,n){const t=a;var o=fn(e,n);if(o[t(672)]>ki)throw new Error("too late; already scheduled");return o}function Cn(e,n){const t=a;var o=fn(e,n);if(o[t(672)]>G0)throw new Error("too late; already running");return o}function fn(e,n){const t=a;var o=e[t(1457)];if(!o||!(o=o[n]))throw new Error(t(1709));return o}function tf(e,n,t){const o=a;var x=e[o(1457)],r;x[n]=t,t.timer=Li(i,0,t.time);function i(u){const f=o;t[f(672)]=Ii,t[f(1744)][f(1515)](c,t[f(1725)],t[f(1303)]),t[f(1725)]<=u&&c(u-t.delay)}function c(u){const f=o;var y,g,p,h;if(t[f(672)]!==Ii)return s();for(y in x)if(h=x[y],h[f(659)]===t[f(659)]){if(h[f(672)]===G0)return Si(c);h[f(672)]===Pi?(h[f(672)]=O0,h[f(1744)][f(1516)](),h.on.call(f(1999),e,e[f(1843)],h[f(2045)],h[f(1728)]),delete x[y]):+y<n&&(h[f(672)]=O0,h[f(1744)][f(1516)](),h.on[f(897)](f(737),e,e.__data__,h.index,h[f(1728)]),delete x[y])}if(Si(function(){const b=f;t.state===G0&&(t.state=Pi,t[b(1744)][b(1515)](d,t[b(1725)],t[b(1303)]),d(u))}),t[f(672)]=Fx,t.on[f(897)](f(1989),e,e.__data__,t[f(2045)],t[f(1728)]),t[f(672)]===Fx){for(t[f(672)]=G0,r=new Array(p=t.tween.length),y=0,g=-1;y<p;++y)(h=t[f(2076)][y][f(1981)][f(897)](e,e[f(1843)],t[f(2045)],t[f(1728)]))&&(r[++g]=h);r[f(2194)]=g+1}}function d(u){const f=o;for(var y=u<t[f(2056)]?t.ease[f(897)](null,u/t[f(2056)]):(t.timer[f(1515)](s),t[f(672)]=Qx,1),g=-1,p=r.length;++g<p;)r[g][f(897)](e,y);t[f(672)]===Qx&&(t.on[f(897)](f(412),e,e[f(1843)],t[f(2045)],t[f(1728)]),s())}function s(){const u=o;t[u(672)]=O0,t[u(1744)][u(1516)](),delete x[n];for(var f in x)return;delete e[u(1457)]}}function T0(e,n){const t=a;var o=e[t(1457)],x,r,i=!0,c;if(o){n=n==null?null:n+"";for(c in o){if((x=o[c])[t(659)]!==n){i=!1;continue}r=x[t(672)]>Fx&&x.state<Qx,x[t(672)]=O0,x[t(1744)].stop(),x.on[t(897)](r?t(1999):"cancel",e,e[t(1843)],x[t(2045)],x[t(1728)]),delete o[c]}i&&delete e[t(1457)]}}function xf(e){return this[a(1920)](function(){T0(this,e)})}function of(e,n){var t,o;return function(){const x=_0x4806;var r=Cn(this,e),i=r[x(2076)];if(i!==t){o=t=i;for(var c=0,d=o[x(2194)];c<d;++c)if(o[c].name===n){o=o[x(1172)](),o.splice(c,1);break}}r[x(2076)]=o}}function rf(e,n,t){const o=a;var x,r;if(typeof t!==o(1154))throw new Error;return function(){const i=o;var c=Cn(this,e),d=c[i(2076)];if(d!==x){r=(x=d)[i(1172)]();for(var s={name:n,value:t},u=0,f=r.length;u<f;++u)if(r[u][i(659)]===n){r[u]=s;break}u===f&&r[i(1465)](s)}c.tween=r}}function cf(e,n){const t=a;var o=this[t(394)];if(e+="",arguments[t(2194)]<2){for(var x=fn(this[t(1997)](),o).tween,r=0,i=x[t(2194)],c;r<i;++r)if((c=x[r])[t(659)]===e)return c[t(1981)];return null}return this[t(1920)]((n==null?of:rf)(o,e,n))}function eo(e,n,t){const o=a;var x=e[o(394)];return e[o(1920)](function(){const r=o;var i=Cn(this,x);(i[r(1981)]||(i[r(1981)]={}))[n]=t.apply(this,arguments)}),function(r){const i=o;return fn(r,x)[i(1981)][n]}}function Ai(e,n){const t=a;var o;return(typeof n===t(411)?zn:n instanceof Zn?I0:(o=Zn(n))?(n=o,I0):pi)(e,n)}function af(e){return function(){this[_0x4806(1245)](e)}}function sf(e){return function(){const n=_0x4806;this.removeAttributeNS(e.space,e[n(1891)])}}function lf(e,n,t){var o,x=t+"",r;return function(){var i=this.getAttribute(e);return i===x?null:i===o?r:r=n(o=i,t)}}function df(e,n,t){var o,x=t+"",r;return function(){const i=_0x4806;var c=this[i(1367)](e[i(931)],e.local);return c===x?null:c===o?r:r=n(o=c,t)}}function uf(e,n,t){var o,x,r;return function(){const i=_0x4806;var c,d=t(this),s;return d==null?void this[i(1245)](e):(c=this[i(527)](e),s=d+"",c===s?null:c===o&&s===x?r:(x=s,r=n(o=c,d)))}}function ff(e,n,t){var o,x,r;return function(){const i=_0x4806;var c,d=t(this),s;return d==null?void this[i(957)](e[i(931)],e[i(1891)]):(c=this[i(1367)](e[i(931)],e[i(1891)]),s=d+"",c===s?null:c===o&&s===x?r:(x=s,r=n(o=c,d)))}}function hf(e,n){const t=a;var o=M0(e),x=o===t(1130)?Ku:Ai;return this[t(1362)](e,typeof n===t(1154)?(o.local?ff:uf)(o,x,eo(this,"attr."+e,n)):n==null?(o[t(1891)]?sf:af)(o):(o[t(1891)]?df:lf)(o,x,n))}function gf(e,n){return function(t){const o=_0x4806;this[o(1110)](e,n[o(897)](this,t))}}function yf(e,n){return function(t){const o=_0x4806;this[o(509)](e.space,e[o(1891)],n.call(this,t))}}function mf(e,n){const t=a;var o,x;function r(){var c=n[_0x4806(1241)](this,arguments);return c!==x&&(o=(x=c)&&yf(e,c)),o}return r[t(1479)]=n,r}function wf(e,n){const t=a;var o,x;function r(){var c=n[_0x4806(1241)](this,arguments);return c!==x&&(o=(x=c)&&gf(e,c)),o}return r[t(1479)]=n,r}function vf(e,n){const t=a;var o=t(576)+e;if(arguments[t(2194)]<2)return(o=this.tween(o))&&o._value;if(n==null)return this[t(2076)](o,null);if(typeof n!==t(1154))throw new Error;var x=M0(e);return this[t(2076)](o,(x[t(1891)]?mf:wf)(x,n))}function pf(e,n){return function(){const t=_0x4806;$x(this,e)[t(1725)]=+n[t(1241)](this,arguments)}}function bf(e,n){return n=+n,function(){const t=_0x4806;$x(this,e)[t(1725)]=n}}function zf(e){const n=a;var t=this[n(394)];return arguments[n(2194)]?this[n(1920)]((typeof e===n(1154)?pf:bf)(t,e)):fn(this[n(1997)](),t)[n(1725)]}function Cf(e,n){return function(){const t=_0x4806;Cn(this,e)[t(2056)]=+n[t(1241)](this,arguments)}}function Mf(e,n){return n=+n,function(){const t=_0x4806;Cn(this,e)[t(2056)]=n}}function Bf(e){const n=a;var t=this[n(394)];return arguments[n(2194)]?this[n(1920)]((typeof e===n(1154)?Cf:Mf)(t,e)):fn(this[n(1997)](),t)[n(2056)]}function Df(e,n){const t=a;if(typeof n!==t(1154))throw new Error;return function(){const o=t;Cn(this,e)[o(2044)]=n}}function Lf(e){const n=a;var t=this[n(394)];return arguments[n(2194)]?this[n(1920)](Df(t,e)):fn(this[n(1997)](),t)[n(2044)]}function Nf(e,n){return function(){const t=_0x4806;var o=n[t(1241)](this,arguments);if(typeof o!==t(1154))throw new Error;Cn(this,e)[t(2044)]=o}}function Sf(e){if(typeof e!==a(1154))throw new Error;return this.each(Nf(this._id,e))}function kf(e){const n=a;typeof e!="function"&&(e=_r(e));for(var t=this[n(2068)],o=t[n(2194)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i[n(2194)],d=x[r]=[],s,u=0;u<c;++u)(s=i[u])&&e[n(897)](s,s.__data__,u,i)&&d[n(1465)](s);return new Ln(x,this[n(1916)],this[n(2012)],this._id)}function If(e){const n=a;if(e[n(394)]!==this[n(394)])throw new Error;for(var t=this[n(2068)],o=e._groups,x=t[n(2194)],r=o[n(2194)],i=Math.min(x,r),c=new Array(x),d=0;d<i;++d)for(var s=t[d],u=o[d],f=s[n(2194)],y=c[d]=new Array(f),g,p=0;p<f;++p)(g=s[p]||u[p])&&(y[p]=g);for(;d<x;++d)c[d]=t[d];return new Ln(c,this[n(1916)],this._name,this[n(394)])}function Pf(e){const n=a;return(e+"").trim()[n(1615)](/^|\s+/).every(function(t){const o=n;var x=t[o(419)](".");return x>=0&&(t=t[o(1172)](0,x)),!t||t===o(1989)})}function Af(e,n,t){var o,x,r=Pf(n)?$x:Cn;return function(){const i=_0x4806;var c=r(this,e),d=c.on;d!==o&&(x=(o=d)[i(1955)]()).on(n,t),c.on=x}}function jf(e,n){const t=a;var o=this[t(394)];return arguments[t(2194)]<2?fn(this.node(),o).on.on(e):this[t(1920)](Af(o,e,n))}function Ef(e){return function(){const n=_0x4806;var t=this[n(430)];for(var o in this[n(1457)])if(+o!==e)return;t&&t[n(1331)](this)}}function Yf(){const e=a;return this.on(e(1421),Ef(this[e(394)]))}function Uf(e){const n=a;var t=this[n(2012)],o=this._id;typeof e!==n(1154)&&(e=Gx(e));for(var x=this._groups,r=x[n(2194)],i=new Array(r),c=0;c<r;++c)for(var d=x[c],s=d[n(2194)],u=i[c]=new Array(s),f,y,g=0;g<s;++g)(f=d[g])&&(y=e[n(897)](f,f[n(1843)],g,d))&&("__data__"in f&&(y[n(1843)]=f.__data__),u[g]=y,H0(u[g],t,o,g,u,fn(f,o)));return new Ln(i,this[n(1916)],t,o)}function Gf(e){const n=a;var t=this._name,o=this[n(394)];typeof e!="function"&&(e=Jr(e));for(var x=this[n(2068)],r=x[n(2194)],i=[],c=[],d=0;d<r;++d)for(var s=x[d],u=s[n(2194)],f,y=0;y<u;++y)if(f=s[y]){for(var g=e[n(897)](f,f.__data__,y,s),p,h=fn(f,o),b=0,M=g[n(2194)];b<M;++b)(p=g[b])&&H0(p,t,o,b,g,h);i[n(1465)](g),c[n(1465)](f)}return new Ln(i,c,t,o)}var Of=Ut[a(1201)][a(1975)];function Hf(){const e=a;return new Of(this[e(2068)],this[e(1916)])}function Tf(e,n){var t,o,x;return function(){const r=_0x4806;var i=ut(this,e),c=(this[r(1346)][r(1058)](e),ut(this,e));return i===c?null:i===t&&c===o?x:x=n(t=i,o=c)}}function ji(e){return function(){const n=_0x4806;this[n(1346)][n(1058)](e)}}function Vf(e,n,t){var o,x=t+"",r;return function(){var i=ut(this,e);return i===x?null:i===o?r:r=n(o=i,t)}}function qf(e,n,t){var o,x,r;return function(){const i=_0x4806;var c=ut(this,e),d=t(this),s=d+"";return d==null&&(s=d=(this.style[i(1058)](e),ut(this,e))),c===s?null:c===o&&s===x?r:(x=s,r=n(o=c,d))}}function Wf(e,n){const t=a;var o,x,r,i=t(1720)+n,c=t(1533)+i,d;return function(){const s=t;var u=Cn(this,e),f=u.on,y=u.value[i]==null?d||(d=ji(n)):void 0;(f!==o||r!==y)&&(x=(o=f)[s(1955)]()).on(c,r=y),u.on=x}}function Xf(e,n,t){const o=a;var x=(e+="")=="transform"?Xu:Ai;return n==null?this[o(684)](e,Tf(e,x)).on(o(1643)+e,ji(e)):typeof n===o(1154)?this[o(684)](e,qf(e,x,eo(this,o(1720)+e,n)))[o(1920)](Wf(this[o(394)],e)):this[o(684)](e,Vf(e,x,n),t).on(o(1643)+e,null)}function Kf(e,n,t){return function(o){const x=_0x4806;this[x(1346)][x(834)](e,n[x(897)](this,o),t)}}function Zf(e,n,t){const o=a;var x,r;function i(){var d=n[_0x4806(1241)](this,arguments);return d!==r&&(x=(r=d)&&Kf(e,d,t)),x}return i[o(1479)]=n,i}function Rf(e,n,t){const o=a;var x=o(1720)+(e+="");if(arguments.length<2)return(x=this.tween(x))&&x[o(1479)];if(n==null)return this[o(2076)](x,null);if(typeof n!==o(1154))throw new Error;return this.tween(x,Zf(e,n,t??""))}function Jf(e){return function(){const n=_0x4806;this[n(1800)]=e}}function _f(e){return function(){const n=_0x4806;var t=e(this);this[n(1800)]=t??""}}function Ff(e){const n=a;return this[n(2076)](n(1755),typeof e=="function"?_f(eo(this,"text",e)):Jf(e==null?"":e+""))}function Qf(e){return function(n){const t=_0x4806;this[t(1800)]=e.call(this,n)}}function $f(e){const n=a;var t,o;function x(){var i=e[_0x4806(1241)](this,arguments);return i!==o&&(t=(o=i)&&Qf(i)),t}return x[n(1479)]=e,x}function e2(e){const n=a;var t=n(1755);if(arguments[n(2194)]<1)return(t=this.tween(t))&&t[n(1479)];if(e==null)return this[n(2076)](t,null);if(typeof e!="function")throw new Error;return this[n(2076)](t,$f(e))}function n2(){const e=a;for(var n=this[e(2012)],t=this[e(394)],o=Ei(),x=this[e(2068)],r=x[e(2194)],i=0;i<r;++i)for(var c=x[i],d=c[e(2194)],s,u=0;u<d;++u)if(s=c[u]){var f=fn(s,t);H0(s,n,o,u,c,{time:f.time+f[e(1725)]+f[e(2056)],delay:0,duration:f[e(2056)],ease:f[e(2044)]})}return new Ln(x,this[e(1916)],n,o)}function t2(){const e=a;var n,t,o=this,x=o[e(394)],r=o[e(1705)]();return new Promise(function(i,c){const d=e;var s={value:c},u={value:function(){--r===0&&i()}};o[d(1920)](function(){const f=d;var y=Cn(this,x),g=y.on;g!==n&&(t=(n=g).copy(),t._.cancel.push(s),t._.interrupt[f(1465)](s),t._.end[f(1465)](u)),y.on=t}),r===0&&i()})}var x2=0;function Ln(e,n,t,o){const x=a;this[x(2068)]=e,this[x(1916)]=n,this[x(2012)]=t,this[x(394)]=o}function Ei(){return++x2}var Nn=Ut[a(1201)];Ln[a(1201)]={constructor:Ln,select:Uf,selectAll:Gf,selectChild:Nn[a(1285)],selectChildren:Nn[a(459)],filter:kf,merge:If,selection:Hf,transition:n2,call:Nn[a(897)],nodes:Nn[a(1361)],node:Nn[a(1997)],size:Nn[a(1705)],empty:Nn[a(1944)],each:Nn[a(1920)],on:jf,attr:hf,attrTween:vf,style:Xf,styleTween:Rf,text:Ff,textTween:e2,remove:Yf,tween:cf,delay:zf,duration:Bf,ease:Lf,easeVarying:Sf,end:t2,[Symbol[a(2104)]]:Nn[Symbol[a(2104)]]};function o2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var r2={time:null,delay:0,duration:250,ease:o2};function i2(e,n){const t=a;for(var o;!(o=e.__transition)||!(o=o[n]);)if(!(e=e.parentNode))throw new Error("transition "+n+t(1490));return o}function c2(e){const n=a;var t,o;e instanceof Ln?(t=e[n(394)],e=e[n(2012)]):(t=Ei(),(o=r2)[n(1303)]=Jx(),e=e==null?null:e+"");for(var x=this[n(2068)],r=x[n(2194)],i=0;i<r;++i)for(var c=x[i],d=c[n(2194)],s,u=0;u<d;++u)(s=c[u])&&H0(s,e,t,u,c,o||i2(s,t));return new Ln(x,this[n(1916)],e,t)}Ut[a(1201)].interrupt=xf,Ut[a(1201)][a(1244)]=c2;const V0=e=>()=>e;function a2(e,{sourceEvent:n,target:t,transform:o,dispatch:x}){Object[a(703)](this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:x}})}function Sn(e,n,t){this.k=e,this.x=n,this.y=t}Sn[a(1201)]={constructor:Sn,scale:function(e){return e===1?this:new Sn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Sn(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){const n=a;return e[n(1955)]()[n(1614)](e.range()[n(542)](this[n(2064)],this)[n(542)](e[n(679)],e))},rescaleY:function(e){const n=a;return e[n(1955)]()[n(1614)](e[n(597)]()[n(542)](this[n(1163)],this)[n(542)](e.invert,e))},toString:function(){const e=a;return e(389)+this.x+","+this.y+e(1133)+this.k+")"}};var q0=new Sn(1,0,0);Yi[a(1201)]=Sn[a(1201)];function Yi(e){const n=a;for(;!e[n(1478)];)if(!(e=e.parentNode))return q0;return e[n(1478)]}function no(e){e.stopImmediatePropagation()}function Zt(e){const n=a;e[n(1923)](),e[n(1006)]()}function s2(e){const n=a;return(!e.ctrlKey||e[n(1424)]==="wheel")&&!e[n(772)]}function l2(){const e=a;var n=this;return n instanceof SVGElement?(n=n[e(1566)]||n,n[e(1068)](e(2102))?(n=n[e(2102)][e(1462)],[[n.x,n.y],[n.x+n[e(1238)],n.y+n[e(1265)]]]):[[0,0],[n[e(1238)][e(1462)][e(1981)],n[e(1265)][e(1462)][e(1981)]]]):[[0,0],[n.clientWidth,n[e(1855)]]]}function Ui(){return this[a(1478)]||q0}function d2(e){const n=a;return-e.deltaY*(e[n(2019)]===1?.05:e.deltaMode?1:.002)*(e[n(569)]?10:1)}function u2(){const e=a;return navigator[e(563)]||e(2157)in this}function f2(e,n,t){const o=a;var x=e[o(2064)](n[0][0])-t[0][0],r=e[o(2064)](n[1][0])-t[1][0],i=e[o(1163)](n[0][1])-t[0][1],c=e[o(1163)](n[1][1])-t[1][1];return e[o(1273)](r>x?(x+r)/2:Math[o(831)](0,x)||Math[o(1439)](0,r),c>i?(i+c)/2:Math.min(0,i)||Math[o(1439)](0,c))}function Gi(){const e=a;var n=s2,t=l2,o=f2,x=d2,r=u2,i=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,s=A0,u=z0(e(1989),e(1386),e(412)),f,y,g,p=500,h=150,b=0,M=10;function v(N){const D=e;N[D(1665)](D(1478),Ui).on("wheel.zoom",j,{passive:!1}).on(D(1404),A).on(D(977),Z).filter(r).on(D(1930),W).on(D(1677),q).on(D(1817),T)[D(1346)]("-webkit-tap-highlight-color",D(1166))}v[e(1130)]=function(N,D,L,U){const P=e;var S=N[P(1032)]?N[P(1032)]():N;S.property(P(1478),Ui),N!==S?k(N,D,L,U):S[P(1999)]()[P(1920)](function(){const K=P;O(this,arguments)[K(1248)](U).start()[K(1386)](null,typeof D===K(1154)?D.apply(this,arguments):D)[K(412)]()})},v.scaleBy=function(N,D,L,U){const P=e;v[P(494)](N,function(){const S=P;var K=this[S(1478)].k,Q=typeof D===S(1154)?D[S(1241)](this,arguments):D;return K*Q},L,U)},v[e(494)]=function(N,D,L,U){v.transform(N,function(){const P=_0x4806;var S=t.apply(this,arguments),K=this[P(1478)],Q=L==null?C(S):typeof L===P(1154)?L.apply(this,arguments):L,R=K[P(679)](Q),$=typeof D===P(1154)?D[P(1241)](this,arguments):D;return o(w(m(K,$),Q,R),S,c)},L,U)},v[e(817)]=function(N,D,L,U){const P=e;v[P(1130)](N,function(){const S=P;return o(this.__zoom.translate(typeof D===S(1154)?D[S(1241)](this,arguments):D,typeof L===S(1154)?L[S(1241)](this,arguments):L),t.apply(this,arguments),c)},null,U)},v[e(1374)]=function(N,D,L,U,P){const S=e;v[S(1130)](N,function(){const K=S;var Q=t[K(1241)](this,arguments),R=this.__zoom,$=U==null?C(Q):typeof U=="function"?U[K(1241)](this,arguments):U;return o(q0[K(1273)]($[0],$[1])[K(476)](R.k).translate(typeof D=="function"?-D[K(1241)](this,arguments):-D,typeof L===K(1154)?-L[K(1241)](this,arguments):-L),Q,c)},U,P)};function m(N,D){const L=e;return D=Math[L(1439)](i[0],Math[L(831)](i[1],D)),D===N.k?N:new Sn(D,N.x,N.y)}function w(N,D,L){var U=D[0]-L[0]*N.k,P=D[1]-L[1]*N.k;return U===N.x&&P===N.y?N:new Sn(N.k,U,P)}function C(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function k(N,D,L,U){const P=e;N.on("start.zoom",function(){const S=_0x4806;O(this,arguments)[S(1248)](U)[S(1989)]()}).on(P(1813),function(){const S=P;O(this,arguments)[S(1248)](U)[S(412)]()}).tween(P(1386),function(){const S=P;var K=this,Q=arguments,R=O(K,Q)[S(1248)](U),$=t[S(1241)](K,Q),xe=L==null?C($):typeof L=="function"?L.apply(K,Q):L,ce=Math[S(1439)]($[1][0]-$[0][0],$[1][1]-$[0][1]),de=K[S(1478)],fe=typeof D===S(1154)?D[S(1241)](K,Q):D,ie=s(de[S(679)](xe)[S(905)](ce/de.k),fe[S(679)](xe)[S(905)](ce/fe.k));return function(J){const re=S;if(J===1)J=fe;else{var _=ie(J),I=ce/_[2];J=new Sn(I,xe[0]-_[0]*I,xe[1]-_[1]*I)}R[re(1386)](null,J)}})}function O(N,D,L){return!L&&N.__zooming||new G(N,D)}function G(N,D){const L=e;this[L(1958)]=N,this.args=D,this[L(683)]=0,this[L(652)]=null,this[L(1743)]=t.apply(N,D),this.taps=0}G.prototype={event:function(N){const D=e;return N&&(this[D(652)]=N),this},start:function(){const N=e;return++this[N(683)]===1&&(this.that[N(967)]=this,this[N(1685)](N(1989))),this},zoom:function(N,D){const L=e;return this[L(1085)]&&N!=="mouse"&&(this[L(1085)][1]=D.invert(this[L(1085)][0])),this[L(685)]&&N!==L(1888)&&(this[L(685)][1]=D.invert(this[L(685)][0])),this.touch1&&N!=="touch"&&(this[L(1619)][1]=D[L(679)](this.touch1[0])),this[L(1958)].__zoom=D,this.emit(L(1386)),this},end:function(){const N=e;return--this.active===0&&(delete this[N(1958)][N(967)],this[N(1685)](N(412))),this},emit:function(N){const D=e;var L=en(this[D(1958)])[D(1987)]();u[D(897)](N,this[D(1958)],new a2(N,{sourceEvent:this[D(652)],target:v,transform:this[D(1958)][D(1478)],dispatch:u}),L)}};function j(N,...D){const L=e;if(!n.apply(this,arguments))return;var U=O(this,D)[L(1248)](N),P=this.__zoom,S=Math[L(1439)](i[0],Math.min(i[1],P.k*Math.pow(2,x[L(1241)](this,arguments)))),K=dn(N);if(U.wheel)(U[L(1085)][0][0]!==K[0]||U[L(1085)][0][1]!==K[1])&&(U[L(1085)][1]=P[L(679)](U[L(1085)][0]=K)),clearTimeout(U[L(554)]);else{if(P.k===S)return;U[L(1085)]=[K,P[L(679)](K)],T0(this),U[L(1989)]()}Zt(N),U[L(554)]=setTimeout(Q,h),U[L(1386)]("mouse",o(w(m(P,S),U.mouse[0],U[L(1085)][1]),U.extent,c));function Q(){const R=L;U[R(554)]=null,U[R(412)]()}}function A(N,...D){const L=e;if(g||!n.apply(this,arguments))return;var U=N[L(1153)],P=O(this,D,!0)[L(1248)](N),S=en(N.view).on(L(1443),$,!0).on(L(1042),xe,!0),K=dn(N,U),Q=N[L(1569)],R=N.clientY;ii(N[L(892)]),no(N),P.mouse=[K,this.__zoom.invert(K)],T0(this),P[L(1989)]();function $(ce){const de=L;if(Zt(ce),!P[de(1281)]){var fe=ce[de(1569)]-Q,ie=ce.clientY-R;P[de(1281)]=fe*fe+ie*ie>b}P[de(1248)](ce).zoom(de(1085),o(w(P.that.__zoom,P[de(1085)][0]=dn(ce,U),P[de(1085)][1]),P.extent,c))}function xe(ce){const de=L;S.on("mousemove.zoom mouseup.zoom",null),ci(ce[de(892)],P[de(1281)]),Zt(ce),P[de(1248)](ce)[de(412)]()}}function Z(N,...D){const L=e;if(n.apply(this,arguments)){var U=this.__zoom,P=dn(N.changedTouches?N[L(1065)][0]:N,this),S=U[L(679)](P),K=U.k*(N.shiftKey?.5:2),Q=o(w(m(U,K),P,S),t[L(1241)](this,D),c);Zt(N),d>0?en(this)[L(1244)]().duration(d)[L(897)](k,Q,P,N):en(this)[L(897)](v[L(1130)],Q,P,N)}}function W(N,...D){const L=e;if(n[L(1241)](this,arguments)){var U=N[L(374)],P=U[L(2194)],S=O(this,D,N[L(1065)].length===P)[L(1248)](N),K,Q,R,$;for(no(N),Q=0;Q<P;++Q)R=U[Q],$=dn(R,this),$=[$,this.__zoom.invert($),R[L(1223)]],S[L(685)]?!S[L(1619)]&&S[L(685)][2]!==$[2]&&(S[L(1619)]=$,S.taps=0):(S[L(685)]=$,K=!0,S[L(618)]=1+!!f);f&&(f=clearTimeout(f)),K&&(S.taps<2&&(y=$[0],f=setTimeout(function(){f=null},p)),T0(this),S[L(1989)]())}}function q(N,...D){const L=e;if(this[L(967)]){var U=O(this,D)[L(1248)](N),P=N[L(1065)],S=P.length,K,Q,R,$;for(Zt(N),K=0;K<S;++K)Q=P[K],R=dn(Q,this),U[L(685)]&&U.touch0[2]===Q[L(1223)]?U[L(685)][0]=R:U.touch1&&U[L(1619)][2]===Q[L(1223)]&&(U[L(1619)][0]=R);if(Q=U[L(1958)][L(1478)],U[L(1619)]){var xe=U.touch0[0],ce=U[L(685)][1],de=U[L(1619)][0],fe=U[L(1619)][1],ie=(ie=de[0]-xe[0])*ie+(ie=de[1]-xe[1])*ie,J=(J=fe[0]-ce[0])*J+(J=fe[1]-ce[1])*J;Q=m(Q,Math[L(807)](ie/J)),R=[(xe[0]+de[0])/2,(xe[1]+de[1])/2],$=[(ce[0]+fe[0])/2,(ce[1]+fe[1])/2]}else if(U[L(685)])R=U[L(685)][0],$=U[L(685)][1];else return;U.zoom(L(1888),o(w(Q,R,$),U[L(1743)],c))}}function T(N,...D){const L=e;if(this[L(967)]){var U=O(this,D)[L(1248)](N),P=N.changedTouches,S=P[L(2194)],K,Q;for(no(N),g&&clearTimeout(g),g=setTimeout(function(){g=null},p),K=0;K<S;++K)Q=P[K],U[L(685)]&&U[L(685)][2]===Q[L(1223)]?delete U[L(685)]:U[L(1619)]&&U[L(1619)][2]===Q.identifier&&delete U.touch1;if(U[L(1619)]&&!U[L(685)]&&(U[L(685)]=U.touch1,delete U[L(1619)]),U[L(685)])U.touch0[1]=this[L(1478)][L(679)](U.touch0[0]);else if(U[L(412)](),U[L(618)]===2&&(Q=dn(Q,this),Math[L(2059)](y[0]-Q[0],y[1]-Q[1])<M)){var R=en(this).on(L(977));R&&R.apply(this,arguments)}}}return v[e(1660)]=function(N){const D=e;return arguments.length?(x=typeof N===D(1154)?N:V0(+N),v):x},v.filter=function(N){const D=e;return arguments[D(2194)]?(n=typeof N===D(1154)?N:V0(!!N),v):n},v[e(1874)]=function(N){const D=e;return arguments[D(2194)]?(r=typeof N===D(1154)?N:V0(!!N),v):r},v[e(1743)]=function(N){return arguments[e(2194)]?(t=typeof N=="function"?N:V0([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),v):t},v[e(1383)]=function(N){return arguments[e(2194)]?(i[0]=+N[0],i[1]=+N[1],v):[i[0],i[1]]},v[e(1038)]=function(N){return arguments[e(2194)]?(c[0][0]=+N[0][0],c[1][0]=+N[1][0],c[0][1]=+N[0][1],c[1][1]=+N[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v[e(1612)]=function(N){return arguments.length?(o=N,v):o},v.duration=function(N){return arguments[e(2194)]?(d=+N,v):d},v[e(2172)]=function(N){return arguments[e(2194)]?(s=N,v):s},v.on=function(){const N=e;var D=u.on[N(1241)](u,arguments);return D===u?v:D},v.clickDistance=function(N){return arguments.length?(b=(N=+N)*N,v):Math.sqrt(b)},v[e(1617)]=function(N){return arguments.length?(M=+N,v):M},v}const nn={error001:()=>a(2136),error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>a(463)+e+a(1973),error004:()=>a(1434),error005:()=>a(1177),error006:()=>a(1345),error007:e=>a(966)+e+a(1603),error009:e=>a(728)+e+`" doesn't exist.`,error008:(e,{id:n,sourceHandle:t,targetHandle:o})=>a(474)+e+a(823)+(e===a(964)?t:o)+a(1693)+n+".",error010:()=>a(1480),error011:e=>'Edge type "'+e+a(1973),error012:e=>'Node with id "'+e+a(1388),error013:(e="react")=>a(1150)+e+a(1486),error014:()=>a(747),error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Rt=[[Number[a(670)],Number[a(670)]],[Number[a(2146)],Number[a(2146)]]],Oi=[a(495)," ","Escape"],Hi={"node.a11yDescription.default":a(1791),"node.a11yDescription.keyboardDisabled":a(2128),"node.a11yDescription.ariaLiveMessage":({direction:e,x:n,y:t})=>a(1399)+e+a(1954)+n+", y: "+t,"edge.a11yDescription.default":a(1456),"controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":a(1184),"controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":a(1326),"controls.interactive.ariaLabel":a(1786),"minimap.ariaLabel":"Mini Map","handle.ariaLabel":a(1222)};var yt;(function(e){const n=a;e[n(786)]="strict",e[n(958)]=n(2142)})(yt||(yt={}));var Fn;(function(e){const n=a;e[n(1100)]=n(740),e[n(997)]=n(609),e[n(895)]=n(417)})(Fn||(Fn={}));var Jt;(function(e){const n=a;e[n(1352)]=n(2148),e[n(485)]="full"})(Jt||(Jt={}));const Ti={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var En;(function(e){const n=a;e.Bezier=n(1582),e.Straight="straight",e[n(1914)]=n(2124),e[n(1852)]=n(1864),e[n(1392)]=n(2004)})(En||(En={}));var W0;(function(e){const n=a;e[n(1095)]="arrow",e[n(1e3)]=n(2094)})(W0||(W0={}));var he;(function(e){const n=a;e[n(1010)]=n(1557),e[n(1481)]="top",e[n(1158)]=n(1476),e[n(693)]="bottom"})(he||(he={}));const Vi={[he[a(1010)]]:he.Right,[he.Right]:he.Left,[he[a(1481)]]:he[a(693)],[he[a(693)]]:he[a(1481)]};function qi(e){return e===null?null:e?"valid":a(1191)}const Wi=e=>"id"in e&&"source"in e&&"target"in e,h2=e=>"id"in e&&a(1543)in e&&!("source"in e)&&!(a(603)in e),to=e=>"id"in e&&"internals"in e&&!(a(964)in e)&&!(a(603)in e),_t=(e,n=[0,0])=>{const t=a,{width:o,height:x}=kn(e),r=e[t(870)]??n,i=o*r[0],c=x*r[1];return{x:e.position.x-i,y:e[t(1543)].y-c}},g2=(e,n={nodeOrigin:[0,0]})=>{const t=a;if(process.env.NODE_ENV==="development"&&!n[t(750)]&&console[t(656)](t(2018)),e[t(2194)]===0)return{x:0,y:0,width:0,height:0};const o=e.reduce((x,r)=>{const i=t,c=typeof r===i(774);let d=!n[i(750)]&&!c?r:void 0;n[i(750)]&&(d=c?n[i(750)][i(1157)](r):to(r)?r:n.nodeLookup[i(1157)](r.id));const s=d?Z0(d,n.nodeOrigin):{x:0,y:0,x2:0,y2:0};return X0(x,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return K0(o)},Ft=(e,n={})=>{const t=a;let o={x:1/0,y:1/0,x2:-1/0,y2:-1/0},x=!1;return e[t(1369)](r=>{(n[t(1641)]===void 0||n.filter(r))&&(o=X0(o,Z0(r)),x=!0)}),x?K0(o):{x:0,y:0,width:0,height:0}},xo=(e,n,[t,o,x]=[0,0,1],r=!1,i=!1)=>{const c=a,d={...e0(n,[t,o,x]),width:n[c(1238)]/x,height:n[c(1265)]/x},s=[];for(const u of e[c(1534)]()){const{measured:f,selectable:y=!0,hidden:g=!1}=u;if(i&&!y||g)continue;const p=f[c(1238)]??u.width??u[c(1350)]??null,h=f[c(1265)]??u[c(1265)]??u.initialHeight??null,b=Qt(d,wt(u)),M=(p??0)*(h??0),v=r&&b>0;(!u[c(380)][c(2091)]||v||b>=M||u[c(562)])&&s[c(1465)](u)}return s},y2=(e,n)=>{const t=a,o=new Set;return e[t(1369)](x=>{o[t(1757)](x.id)}),n[t(1641)](x=>o[t(1826)](x.source)||o[t(1826)](x[t(603)]))};function m2(e,n){const t=a,o=new Map,x=n?.[t(1361)]?new Set(n[t(1361)].map(r=>r.id)):null;return e[t(1369)](r=>{const i=t;r.measured.width&&r[i(1583)][i(1265)]&&(n?.[i(1140)]||!r[i(1821)])&&(!x||x.has(r.id))&&o.set(r.id,r)}),o}async function w2({nodes:e,width:n,height:t,panZoom:o,minZoom:x,maxZoom:r},i){const c=a;if(e[c(1705)]===0)return Promise[c(2192)](!0);const d=m2(e,i),s=Ft(d),u=ro(s,n,t,i?.[c(781)]??x,i?.[c(640)]??r,i?.[c(524)]??.1);return await o[c(1659)](u,{duration:i?.[c(2056)],ease:i?.[c(2044)],interpolate:i?.[c(2172)]}),Promise[c(2192)](!0)}function Xi({nodeId:e,nextPosition:n,nodeLookup:t,nodeOrigin:o=[0,0],nodeExtent:x,onError:r}){const i=a,c=t[i(1157)](e),d=c[i(890)]?t[i(1157)](c.parentId):void 0,{x:s,y:u}=d?d[i(380)][i(2107)]:{x:0,y:0},f=c[i(870)]??o;let y=c[i(1743)]||x;if(c[i(1743)]===i(1824)&&!c[i(1714)])if(!d)r?.(i(1525),nn.error005());else{const p=d[i(1583)][i(1238)],h=d.measured.height;p&&h&&(y=[[s,u],[s+p,u+h]])}else d&&pt(c[i(1743)])&&(y=[[c[i(1743)][0][0]+s,c[i(1743)][0][1]+u],[c.extent[1][0]+s,c[i(1743)][1][1]+u]]);const g=pt(y)?Qn(n,y,c[i(1583)]):n;return(c[i(1583)].width===void 0||c[i(1583)][i(1265)]===void 0)&&r?.("015",nn[i(1718)]()),{position:{x:g.x-s+(c[i(1583)][i(1238)]??0)*f[0],y:g.y-u+(c[i(1583)][i(1265)]??0)*f[1]},positionAbsolute:g}}async function v2({nodesToRemove:e=[],edgesToRemove:n=[],nodes:t,edges:o,onBeforeDelete:x}){const r=a,i=new Set(e[r(542)](g=>g.id)),c=[];for(const g of t){if(g.deletable===!1)continue;const p=i[r(1826)](g.id),h=!p&&g.parentId&&c.find(b=>b.id===g[r(890)]);(p||h)&&c.push(g)}const d=new Set(n[r(542)](g=>g.id)),s=o[r(1641)](g=>g[r(2002)]!==!1),u=y2(c,s),f=u;for(const g of s)d.has(g.id)&&!f[r(1876)](h=>h.id===g.id)&&f.push(g);if(!x)return{edges:f,nodes:c};const y=await x({nodes:c,edges:f});return typeof y===r(1274)?y?{edges:f,nodes:c}:{edges:[],nodes:[]}:y}const mt=(e,n=0,t=1)=>Math[a(831)](Math[a(1439)](e,n),t),Qn=(e={x:0,y:0},n,t)=>({x:mt(e.x,n[0][0],n[1][0]-(t?.[a(1238)]??0)),y:mt(e.y,n[0][1],n[1][1]-(t?.[a(1265)]??0))});function Ki(e,n,t){const o=a,{width:x,height:r}=kn(t),{x:i,y:c}=t[o(380)][o(2107)];return Qn(e,[[i,c],[i+x,c+r]],n)}const Zi=(e,n,t)=>{const o=a;return e<n?mt(Math[o(1018)](e-n),1,n)/n:e>t?-mt(Math.abs(e-t),1,n)/n:0},Ri=(e,n,t=15,o=40)=>{const x=a,r=Zi(e.x,o,n[x(1238)]-o)*t,i=Zi(e.y,o,n.height-o)*t;return[r,i]},X0=(e,n)=>({x:Math[a(831)](e.x,n.x),y:Math.min(e.y,n.y),x2:Math[a(1439)](e.x2,n.x2),y2:Math[a(1439)](e.y2,n.y2)}),oo=({x:e,y:n,width:t,height:o})=>({x:e,y:n,x2:e+t,y2:n+o}),K0=({x:e,y:n,x2:t,y2:o})=>({x:e,y:n,width:t-e,height:o-n}),wt=(e,n=[0,0])=>{const t=a,{x:o,y:x}=to(e)?e[t(380)][t(2107)]:_t(e,n);return{x:o,y:x,width:e[t(1583)]?.[t(1238)]??e[t(1238)]??e.initialWidth??0,height:e[t(1583)]?.[t(1265)]??e[t(1265)]??e.initialHeight??0}},Z0=(e,n=[0,0])=>{const t=a,{x:o,y:x}=to(e)?e[t(380)][t(2107)]:_t(e,n);return{x:o,y:x,x2:o+(e.measured?.width??e[t(1238)]??e.initialWidth??0),y2:x+(e[t(1583)]?.[t(1265)]??e[t(1265)]??e.initialHeight??0)}},Ji=(e,n)=>K0(X0(oo(e),oo(n))),Qt=(e,n)=>{const t=a,o=Math[t(1439)](0,Math.min(e.x+e[t(1238)],n.x+n[t(1238)])-Math[t(1439)](e.x,n.x)),x=Math[t(1439)](0,Math.min(e.y+e[t(1265)],n.y+n[t(1265)])-Math.max(e.y,n.y));return Math[t(930)](o*x)},_i=e=>hn(e[a(1238)])&&hn(e[a(1265)])&&hn(e.x)&&hn(e.y),hn=e=>!isNaN(e)&&isFinite(e),Fi=(e,n)=>{const t=a;process.env.NODE_ENV==="development"&&console[t(656)](t(761)+n+t(1428)+e)},$t=(e,n=[1,1])=>{const t=a;return{x:n[0]*Math[t(723)](e.x/n[0]),y:n[1]*Math[t(723)](e.y/n[1])}},e0=({x:e,y:n},[t,o,x],r=!1,i=[1,1])=>{const c={x:(e-t)/x,y:(n-o)/x};return r?$t(c,i):c},R0=({x:e,y:n},[t,o,x])=>({x:e*x+t,y:n*x+o});function vt(e,n){const t=a;if(typeof e===t(411))return Math[t(621)]((n-n/(1+e))*.5);if(typeof e===t(774)&&e.endsWith("px")){const o=parseFloat(e);if(!Number[t(1727)](o))return Math[t(621)](o)}if(typeof e=="string"&&e[t(1716)]("%")){const o=parseFloat(e);if(!Number.isNaN(o))return Math[t(621)](n*o*.01)}return console[t(551)](t(796)+e+'" is invalid. Please provide a number or a string with a valid unit (px or %).'),0}function p2(e,n,t){const o=a;if(typeof e===o(774)||typeof e===o(411)){const x=vt(e,t),r=vt(e,n);return{top:x,right:r,bottom:x,left:r,x:r*2,y:x*2}}if(typeof e===o(2171)){const x=vt(e[o(1413)]??e.y??0,t),r=vt(e[o(808)]??e.y??0,t),i=vt(e.left??e.x??0,n),c=vt(e[o(1476)]??e.x??0,n);return{top:x,right:c,bottom:r,left:i,x:i+c,y:x+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function b2(e,n,t,o,x,r){const i=a,{x:c,y:d}=R0(e,[n,t,o]),{x:s,y:u}=R0({x:e.x+e.width,y:e.y+e[i(1265)]},[n,t,o]),f=x-s,y=r-u;return{left:Math.floor(c),top:Math[i(621)](d),right:Math.floor(f),bottom:Math[i(621)](y)}}const ro=(e,n,t,o,x,r)=>{const i=a,c=p2(r,n,t),d=(n-c.x)/e.width,s=(t-c.y)/e[i(1265)],u=Math[i(831)](d,s),f=mt(u,o,x),y=e.x+e[i(1238)]/2,g=e.y+e[i(1265)]/2,p=n/2-y*f,h=t/2-g*f,b=b2(e,p,h,f,n,t),M={left:Math[i(831)](b[i(1557)]-c.left,0),top:Math[i(831)](b[i(1413)]-c.top,0),right:Math[i(831)](b.right-c[i(1476)],0),bottom:Math[i(831)](b.bottom-c[i(808)],0)};return{x:p-M[i(1557)]+M[i(1476)],y:h-M.top+M[i(808)],zoom:f}},n0=()=>typeof navigator!==a(1202)&&navigator?.[a(894)]?.[a(419)]("Mac")>=0;function pt(e){const n=a;return e!=null&&e!==n(1824)}function kn(e){const n=a;return{width:e.measured?.[n(1238)]??e.width??e[n(1350)]??0,height:e[n(1583)]?.height??e[n(1265)]??e[n(883)]??0}}function Qi(e){const n=a;return(e[n(1583)]?.width??e[n(1238)]??e[n(1350)])!==void 0&&(e[n(1583)]?.[n(1265)]??e.height??e[n(883)])!==void 0}function $i(e,n={width:0,height:0},t,o,x){const r=a,i={...e},c=o.get(t);if(c){const d=c[r(870)]||x;i.x+=c[r(380)][r(2107)].x-(n[r(1238)]??0)*d[0],i.y+=c[r(380)][r(2107)].y-(n[r(1265)]??0)*d[1]}return i}function ec(e,n){const t=a;if(e[t(1705)]!==n[t(1705)])return!1;for(const o of e)if(!n[t(1826)](o))return!1;return!0}function z2(){let e,n;return{promise:new Promise((o,x)=>{e=o,n=x}),resolve:e,reject:n}}function C2(e){return{...Hi,...e||{}}}function t0(e,{snapGrid:n=[0,0],snapToGrid:t=!1,transform:o,containerBounds:x}){const r=a,{x:i,y:c}=gn(e),d=e0({x:i-(x?.[r(1557)]??0),y:c-(x?.[r(1413)]??0)},o),{x:s,y:u}=t?$t(d,n):d;return{xSnapped:s,ySnapped:u,...d}}const io=e=>({width:e[a(2200)],height:e[a(2020)]}),nc=e=>e?.getRootNode?.()||window?.[a(1644)],M2=["INPUT",a(1729),a(982)];function tc(e){const n=a,t=e[n(726)]?.()?.[0]||e[n(603)];return t?.nodeType!==1?!1:M2[n(911)](t[n(1527)])||t[n(1068)](n(1298))||!!t.closest(".nokey")}const xc=e=>a(1569)in e,gn=(e,n)=>{const t=a,o=xc(e),x=o?e[t(1569)]:e[t(374)]?.[0].clientX,r=o?e[t(1947)]:e[t(374)]?.[0][t(1947)];return{x:x-(n?.[t(1557)]??0),y:r-(n?.top??0)}},oc=(e,n,t,o,x)=>{const r=a,i=n[r(409)]("."+e);return!i||!i[r(2194)]?null:Array[r(1139)](i).map(c=>{const d=r,s=c[d(1761)]();return{id:c[d(527)](d(1411)),type:e,nodeId:x,position:c[d(527)](d(1726)),x:(s.left-t[d(1557)])/o,y:(s.top-t.top)/o,...io(c)}})};function rc({sourceX:e,sourceY:n,targetX:t,targetY:o,sourceControlX:x,sourceControlY:r,targetControlX:i,targetControlY:c}){const d=a,s=e*.125+x*.375+i*.375+t*.125,u=n*.125+r*.375+c*.375+o*.125,f=Math.abs(s-e),y=Math[d(1018)](u-n);return[s,u,f,y]}function J0(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function ic({pos:e,x1:n,y1:t,x2:o,y2:x,c:r}){const i=a;switch(e){case he.Left:return[n-J0(n-o,r),t];case he[i(1158)]:return[n+J0(o-n,r),t];case he[i(1481)]:return[n,t-J0(t-x,r)];case he[i(693)]:return[n,t+J0(x-t,r)]}}function cc({sourceX:e,sourceY:n,sourcePosition:t=he[a(693)],targetX:o,targetY:x,targetPosition:r=he[a(1481)],curvature:i=.25}){const[c,d]=ic({pos:t,x1:e,y1:n,x2:o,y2:x,c:i}),[s,u]=ic({pos:r,x1:o,y1:x,x2:e,y2:n,c:i}),[f,y,g,p]=rc({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:c,sourceControlY:d,targetControlX:s,targetControlY:u});return["M"+e+","+n+" C"+c+","+d+" "+s+","+u+" "+o+","+x,f,y,g,p]}function ac({sourceX:e,sourceY:n,targetX:t,targetY:o}){const x=a,r=Math.abs(t-e)/2,i=t<e?t+r:t-r,c=Math[x(1018)](o-n)/2,d=o<n?o+c:o-c;return[i,d,r,c]}function B2({sourceNode:e,targetNode:n,selected:t=!1,zIndex:o=0,elevateOnSelect:x=!1,zIndexMode:r="basic"}){const i=a;if(r===i(1011))return o;const c=x&&t?o+1e3:o,d=Math[i(1439)](e[i(890)]||x&&e[i(2178)]?e.internals.z:0,n[i(890)]||x&&n.selected?n.internals.z:0);return c+d}function D2({sourceNode:e,targetNode:n,width:t,height:o,transform:x}){const r=X0(Z0(e),Z0(n));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);const i={x:-x[0]/x[2],y:-x[1]/x[2],width:t/x[2],height:o/x[2]};return Qt(i,K0(r))>0}const L2=({source:e,sourceHandle:n,target:t,targetHandle:o})=>"xy-edge__"+e+(n||"")+"-"+t+(o||""),N2=(e,n)=>{const t=a;return n.some(o=>o[t(964)]===e.source&&o[t(603)]===e[t(603)]&&(o[t(2008)]===e[t(2008)]||!o[t(2008)]&&!e[t(2008)])&&(o[t(2069)]===e[t(2069)]||!o[t(2069)]&&!e[t(2069)]))},sc=(e,n,t={})=>{const o=a;if(!e[o(964)]||!e[o(603)])return Fi("006",nn.error006()),n;const x=t[o(953)]||L2;let r;return Wi(e)?r={...e}:r={...e,id:x(e)},N2(r,n)?n:(r[o(2008)]===null&&delete r[o(2008)],r[o(2069)]===null&&delete r[o(2069)],n[o(905)](r))};function lc({sourceX:e,sourceY:n,targetX:t,targetY:o}){const[x,r,i,c]=ac({sourceX:e,sourceY:n,targetX:t,targetY:o});return["M "+e+","+n+"L "+t+","+o,x,r,i,c]}const dc={[he[a(1010)]]:{x:-1,y:0},[he[a(1158)]]:{x:1,y:0},[he[a(1481)]]:{x:0,y:-1},[he.Bottom]:{x:0,y:1}},S2=({source:e,sourcePosition:n=he.Bottom,target:t})=>n===he.Left||n===he.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1},uc=(e,n)=>Math[a(807)](Math[a(1433)](n.x-e.x,2)+Math[a(1433)](n.y-e.y,2));function k2({source:e,sourcePosition:n=he.Bottom,target:t,targetPosition:o=he.Top,center:x,offset:r,stepPosition:i}){const c=a,d=dc[n],s=dc[o],u={x:e.x+d.x*r,y:e.y+d.y*r},f={x:t.x+s.x*r,y:t.y+s.y*r},y=S2({source:u,sourcePosition:n,target:f}),g=y.x!==0?"x":"y",p=y[g];let h=[],b,M;const v={x:0,y:0},m={x:0,y:0},[,,w,C]=ac({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(d[g]*s[g]===-1){g==="x"?(b=x.x??u.x+(f.x-u.x)*i,M=x.y??(u.y+f.y)/2):(b=x.x??(u.x+f.x)/2,M=x.y??u.y+(f.y-u.y)*i);const j=[{x:b,y:u.y},{x:b,y:f.y}],A=[{x:u.x,y:M},{x:f.x,y:M}];d[g]===p?h=g==="x"?j:A:h=g==="x"?A:j}else{const j=[{x:u.x,y:f.y}],A=[{x:f.x,y:u.y}];if(g==="x"?h=d.x===p?A:j:h=d.y===p?j:A,n===o){const N=Math[c(1018)](e[g]-t[g]);if(N<=r){const D=Math[c(831)](r-1,r-N);d[g]===p?v[g]=(u[g]>e[g]?-1:1)*D:m[g]=(f[g]>t[g]?-1:1)*D}}if(n!==o){const N=g==="x"?"y":"x",D=d[g]===s[N],L=u[N]>f[N],U=u[N]<f[N];(d[g]===1&&(!D&&L||D&&U)||d[g]!==1&&(!D&&U||D&&L))&&(h=g==="x"?j:A)}const Z={x:u.x+v.x,y:u.y+v.y},W={x:f.x+m.x,y:f.y+m.y},q=Math[c(1439)](Math[c(1018)](Z.x-h[0].x),Math.abs(W.x-h[0].x)),T=Math[c(1439)](Math[c(1018)](Z.y-h[0].y),Math[c(1018)](W.y-h[0].y));q>=T?(b=(Z.x+W.x)/2,M=h[0].y):(b=h[0].x,M=(Z.y+W.y)/2)}const k={x:u.x+v.x,y:u.y+v.y},O={x:f.x+m.x,y:f.y+m.y};return[[e,...k.x!==h[0].x||k.y!==h[0].y?[k]:[],...h,...O.x!==h[h[c(2194)]-1].x||O.y!==h[h.length-1].y?[O]:[],t],b,M,w,C]}function I2(e,n,t,o){const x=a,r=Math[x(831)](uc(e,n)/2,uc(n,t)/2,o),{x:i,y:c}=n;if(e.x===i&&i===t.x||e.y===c&&c===t.y)return"L"+i+" "+c;if(e.y===c){const u=e.x<t.x?-1:1,f=e.y<t.y?1:-1;return"L "+(i+r*u)+","+c+"Q "+i+","+c+" "+i+","+(c+r*f)}const d=e.x<t.x?1:-1,s=e.y<t.y?-1:1;return"L "+i+","+(c+r*s)+"Q "+i+","+c+" "+(i+r*d)+","+c}function co({sourceX:e,sourceY:n,sourcePosition:t=he.Bottom,targetX:o,targetY:x,targetPosition:r=he[a(1481)],borderRadius:i=5,centerX:c,centerY:d,offset:s=20,stepPosition:u=.5}){const f=a,[y,g,p,h,b]=k2({source:{x:e,y:n},sourcePosition:t,target:{x:o,y:x},targetPosition:r,center:{x:c,y:d},offset:s,stepPosition:u});let M="M"+y[0].x+" "+y[0].y;for(let v=1;v<y.length-1;v++)M+=I2(y[v-1],y[v],y[v+1],i);return M+="L"+y[y[f(2194)]-1].x+" "+y[y[f(2194)]-1].y,[M,g,p,h,b]}function fc(e){const n=a;return e&&!!(e[n(380)][n(2091)]||e.handles?.[n(2194)])&&!!(e[n(1583)].width||e.width||e.initialWidth)}function P2(e){const n=a,{sourceNode:t,targetNode:o}=e;if(!fc(t)||!fc(o))return null;const x=t[n(380)][n(2091)]||hc(t[n(852)]),r=o[n(380)].handleBounds||hc(o.handles),i=gc(x?.[n(964)]??[],e[n(2008)]),c=gc(e.connectionMode===yt.Strict?r?.[n(603)]??[]:(r?.target??[])[n(905)](r?.[n(964)]??[]),e.targetHandle);if(!i||!c)return e[n(2133)]?.(n(810),nn.error008(i?"target":n(964),{id:e.id,sourceHandle:e[n(2008)],targetHandle:e[n(2069)]})),null;const d=i?.[n(1543)]||he[n(693)],s=c?.[n(1543)]||he[n(1481)],u=$n(t,i,d),f=$n(o,c,s);return{sourceX:u.x,sourceY:u.y,targetX:f.x,targetY:f.y,sourcePosition:d,targetPosition:s}}function hc(e){const n=a;if(!e)return null;const t=[],o=[];for(const x of e)x[n(1238)]=x[n(1238)]??1,x[n(1265)]=x.height??1,x[n(1424)]===n(964)?t[n(1465)](x):x.type===n(603)&&o[n(1465)](x);return{source:t,target:o}}function $n(e,n,t=he[a(1010)],o=!1){const x=a,r=(n?.x??0)+e[x(380)][x(2107)].x,i=(n?.y??0)+e[x(380)][x(2107)].y,{width:c,height:d}=n??kn(e);if(o)return{x:r+c/2,y:i+d/2};switch(n?.[x(1543)]??t){case he[x(1481)]:return{x:r+c/2,y:i};case he[x(1158)]:return{x:r+c,y:i+d/2};case he[x(693)]:return{x:r+c/2,y:i+d};case he[x(1010)]:return{x:r,y:i+d/2}}}function gc(e,n){const t=a;return e&&(n?e[t(1876)](o=>o.id===n):e[0])||null}function ao(e,n){const t=a;return e?typeof e===t(774)?e:""+(n?n+"__":"")+Object.keys(e)[t(1576)]().map(x=>x+"="+e[x]).join("&"):""}function A2(e,{id:n,defaultColor:t,defaultMarkerStart:o,defaultMarkerEnd:x}){const r=a,i=new Set;return e[r(1606)]((c,d)=>{const s=r;return[d[s(1440)]||o,d[s(573)]||x][s(1369)](u=>{const f=s;if(u&&typeof u===f(2171)){const y=ao(u,n);!i[f(1826)](y)&&(c[f(1465)]({id:y,color:u.color||t,...u}),i[f(1757)](y))}}),c},[])[r(1576)]((c,d)=>c.id[r(1883)](d.id))}const yc=1e3,j2=10,so={nodeOrigin:[0,0],nodeExtent:Rt,elevateNodesOnSelect:!0,zIndexMode:a(1750),defaults:{}},E2={...so,checkEquality:!0};function lo(e,n){const t={...e};for(const o in n)n[o]!==void 0&&(t[o]=n[o]);return t}function Y2(e,n,t){const o=a,x=lo(so,t);for(const r of e[o(1534)]())if(r[o(890)])ho(r,e,n,x);else{const i=_t(r,x[o(1283)]),c=pt(r.extent)?r.extent:x[o(762)],d=Qn(i,c,kn(r));r[o(380)].positionAbsolute=d}}function U2(e,n){const t=a;if(!e.handles)return e.measured?n?.[t(380)][t(2091)]:void 0;const o=[],x=[];for(const r of e[t(852)]){const i={id:r.id,width:r.width??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r[t(1424)]};r[t(1424)]===t(964)?o.push(i):r.type===t(603)&&x.push(i)}return{source:o,target:x}}function uo(e){return e===a(1011)}function fo(e,n,t,o={}){const x=a,r=lo(E2,o),i={i:0},c=new Map(n),d=r?.[x(1051)]&&!uo(r.zIndexMode)?yc:0;let s=e[x(2194)]>0,u=!1;n[x(2016)](),t[x(2016)]();for(const f of e){let y=c[x(1157)](f.id);if(r.checkEquality&&f===y?.[x(380)].userNode)n.set(f.id,y);else{const g=_t(f,r[x(1283)]),p=pt(f.extent)?f[x(1743)]:r[x(762)],h=Qn(g,p,kn(f));y={...r[x(585)],...f,measured:{width:f[x(1583)]?.[x(1238)],height:f[x(1583)]?.[x(1265)]},internals:{positionAbsolute:h,handleBounds:U2(f,y),z:mc(f,d,r[x(2098)]),userNode:f}},n[x(799)](f.id,y)}(y[x(1583)]===void 0||y.measured[x(1238)]===void 0||y[x(1583)][x(1265)]===void 0)&&!y[x(1821)]&&(s=!1),f.parentId&&ho(y,n,t,o,i),u||=f[x(2178)]??!1}return{nodesInitialized:s,hasSelectedNodes:u}}function G2(e,n){const t=a;if(!e[t(890)])return;const o=n[t(1157)](e[t(890)]);o?o[t(799)](e.id,e):n[t(799)](e[t(890)],new Map([[e.id,e]]))}function ho(e,n,t,o,x){const r=a,{elevateNodesOnSelect:i,nodeOrigin:c,nodeExtent:d,zIndexMode:s}=lo(so,o),u=e.parentId,f=n[r(1157)](u);if(!f){console.warn(r(1351)+u+r(1835));return}G2(e,t),x&&!f[r(890)]&&f.internals[r(1751)]===void 0&&s==="auto"&&(f[r(380)][r(1751)]=++x.i,f.internals.z=f[r(380)].z+x.i*j2),x&&f.internals[r(1751)]!==void 0&&(x.i=f[r(380)].rootParentIndex);const y=i&&!uo(s)?yc:0,{x:g,y:p,z:h}=O2(e,f,c,d,y,s),{positionAbsolute:b}=e[r(380)],M=g!==b.x||p!==b.y;(M||h!==e.internals.z)&&n[r(799)](e.id,{...e,internals:{...e[r(380)],positionAbsolute:M?{x:g,y:p}:b,z:h}})}function mc(e,n,t){const o=a,x=hn(e[o(540)])?e[o(540)]:0;return uo(t)?x:x+(e[o(2178)]?n:0)}function O2(e,n,t,o,x,r){const i=a,{x:c,y:d}=n[i(380)][i(2107)],s=kn(e),u=_t(e,t),f=pt(e.extent)?Qn(u,e[i(1743)],s):u;let y=Qn({x:c+f.x,y:d+f.y},o,s);e[i(1743)]===i(1824)&&(y=Ki(y,s,n));const g=mc(e,x,r),p=n[i(380)].z??0;return{x:y.x,y:y.y,z:p>=g?p+1:g}}function go(e,n,t,o=[0,0]){const x=a,r=[],i=new Map;for(const c of e){const d=n.get(c.parentId);if(!d)continue;const s=i[x(1157)](c.parentId)?.[x(729)]??wt(d),u=Ji(s,c[x(885)]);i[x(799)](c[x(890)],{expandedRect:u,parent:d})}return i.size>0&&i[x(1369)](({expandedRect:c,parent:d},s)=>{const u=x,f=d[u(380)][u(2107)],y=kn(d),g=d[u(870)]??o,p=c.x<f.x?Math.round(Math[u(1018)](f.x-c.x)):0,h=c.y<f.y?Math[u(723)](Math.abs(f.y-c.y)):0,b=Math[u(1439)](y[u(1238)],Math.round(c[u(1238)])),M=Math[u(1439)](y[u(1265)],Math.round(c[u(1265)])),v=(b-y[u(1238)])*g[0],m=(M-y[u(1265)])*g[1];(p>0||h>0||v||m)&&(r[u(1465)]({id:s,type:u(1543),position:{x:d.position.x-p+v,y:d[u(1543)].y-h+m}}),t[u(1157)](s)?.forEach(w=>{const C=u;!e[C(1748)](k=>k.id===w.id)&&r[C(1465)]({id:w.id,type:"position",position:{x:w[C(1543)].x+p,y:w[C(1543)].y+h}})})),(y.width<c[u(1238)]||y[u(1265)]<c.height||p||h)&&r.push({id:s,type:u(630),setAttributes:!0,dimensions:{width:b+(p?g[0]*p-v:0),height:M+(h?g[1]*h-m:0)}})}),r}function H2(e,n,t,o,x,r,i){const c=a,d=o?.[c(1542)](c(1030));let s=!1;if(!d)return{changes:[],updatedInternals:s};const u=[],f=window[c(574)](d),{m22:y}=new window[c(1151)](f[c(1130)]),g=[];for(const p of e[c(1534)]()){const h=n[c(1157)](p.id);if(!h)continue;if(h[c(1821)]){n[c(799)](h.id,{...h,internals:{...h[c(380)],handleBounds:void 0}}),s=!0;continue}const b=io(p.nodeElement),M=h.measured.width!==b[c(1238)]||h[c(1583)][c(1265)]!==b[c(1265)];if(!!(b[c(1238)]&&b.height&&(M||!h[c(380)][c(2091)]||p[c(960)]))){const m=p.nodeElement[c(1761)](),w=pt(h[c(1743)])?h[c(1743)]:r;let{positionAbsolute:C}=h.internals;h.parentId&&h[c(1743)]===c(1824)?C=Ki(C,b,n[c(1157)](h[c(890)])):w&&(C=Qn(C,w,b));const k={...h,measured:b,internals:{...h.internals,positionAbsolute:C,handleBounds:{source:oc(c(964),p[c(395)],m,y,h.id),target:oc("target",p[c(395)],m,y,h.id)}}};n.set(h.id,k),h.parentId&&ho(k,n,t,{nodeOrigin:x,zIndexMode:i}),s=!0,M&&(u[c(1465)]({id:h.id,type:"dimensions",dimensions:b}),h.expandParent&&h[c(890)]&&g[c(1465)]({id:h.id,parentId:h.parentId,rect:wt(k,x)}))}}if(g[c(2194)]>0){const p=go(g,n,t,x);u[c(1465)](...p)}return{changes:u,updatedInternals:s}}async function T2({delta:e,panZoom:n,transform:t,translateExtent:o,width:x,height:r}){const i=a;if(!n||!e.x&&!e.y)return Promise.resolve(!1);const c=await n[i(1117)]({x:t[0]+e.x,y:t[1]+e.y,zoom:t[2]},[[0,0],[x,r]],o),d=!!c&&(c.x!==t[0]||c.y!==t[1]||c.k!==t[2]);return Promise[i(2192)](d)}function wc(e,n,t,o,x,r){const i=a;let c=x;const d=o[i(1157)](c)||new Map;o.set(c,d.set(t,n)),c=x+"-"+e;const s=o[i(1157)](c)||new Map;if(o[i(799)](c,s[i(799)](t,n)),r){c=x+"-"+e+"-"+r;const u=o[i(1157)](c)||new Map;o.set(c,u[i(799)](t,n))}}function vc(e,n,t){const o=a;e.clear(),n[o(2016)]();for(const x of t){const{source:r,target:i,sourceHandle:c=null,targetHandle:d=null}=x,s={edgeId:x.id,source:r,target:i,sourceHandle:c,targetHandle:d},u=r+"-"+c+"--"+i+"-"+d,f=i+"-"+d+"--"+r+"-"+c;wc(o(964),s,f,e,r,c),wc("target",s,u,e,i,d),n[o(799)](x.id,x)}}function pc(e,n){const t=a;if(!e[t(890)])return!1;const o=n[t(1157)](e[t(890)]);return o?o.selected?!0:pc(o,n):!1}function bc(e,n,t){const o=a;let x=e;do{if(x?.[o(1719)]?.(n))return!0;if(x===t)return!1;x=x?.[o(983)]}while(x);return!1}function V2(e,n,t,o){const x=a,r=new Map;for(const[i,c]of e)if((c.selected||c.id===o)&&(!c[x(890)]||!pc(c,e))&&(c[x(2131)]||n&&typeof c[x(2131)]===x(1202))){const d=e[x(1157)](i);d&&r[x(799)](i,{id:i,position:d.position||{x:0,y:0},distance:{x:t.x-d.internals[x(2107)].x,y:t.y-d[x(380)][x(2107)].y},extent:d[x(1743)],parentId:d[x(890)],origin:d[x(870)],expandParent:d[x(1714)],internals:{positionAbsolute:d.internals[x(2107)]||{x:0,y:0}},measured:{width:d[x(1583)].width??0,height:d[x(1583)][x(1265)]??0}})}return r}function yo({nodeId:e,dragItems:n,nodeLookup:t,dragging:o=!0}){const x=a,r=[];for(const[c,d]of n){const s=t.get(c)?.[x(380)].userNode;s&&r[x(1465)]({...s,position:d.position,dragging:o})}if(!e)return[r[0],r];const i=t[x(1157)](e)?.[x(380)][x(1220)];return[i?{...i,position:n[x(1157)](e)?.[x(1543)]||i.position,dragging:o}:r[0],r]}function q2({dragItems:e,snapGrid:n,x:t,y:o}){const x=a,r=e[x(1534)]().next().value;if(!r)return null;const i={x:t-r[x(1204)].x,y:o-r.distance.y},c=$t(i,n);return{x:c.x-i.x,y:c.y-i.y}}function W2({onNodeMouseDown:e,getStoreItems:n,onDragStart:t,onDrag:o,onDragStop:x}){let r={x:null,y:null},i=0,c=new Map,d=!1,s={x:0,y:0},u=null,f=!1,y=null,g=!1,p=!1,h=null;function b({noDragClassName:v,handleSelector:m,domNode:w,isSelectable:C,nodeId:k,nodeClickDistance:O=0}){const G=_0x4806;y=en(w);function j({x:q,y:T}){const N=_0x4806,{nodeLookup:D,nodeExtent:L,snapGrid:U,snapToGrid:P,nodeOrigin:S,onNodeDrag:K,onSelectionDrag:Q,onError:R,updateNodePositions:$}=n();r={x:q,y:T};let xe=!1;const ce=c[N(1705)]>1,de=ce&&L?oo(Ft(c)):null,fe=ce&&P?q2({dragItems:c,snapGrid:U,x:q,y:T}):null;for(const[ie,J]of c){if(!D[N(1826)](ie))continue;let re={x:q-J[N(1204)].x,y:T-J[N(1204)].y};P&&(re=fe?{x:Math.round(re.x+fe.x),y:Math[N(723)](re.y+fe.y)}:$t(re,U));let _=null;if(ce&&L&&!J[N(1743)]&&de){const{positionAbsolute:X}=J.internals,H=X.x-de.x+L[0][0],oe=X.x+J[N(1583)][N(1238)]-de.x2+L[1][0],le=X.y-de.y+L[0][1],se=X.y+J[N(1583)][N(1265)]-de.y2+L[1][1];_=[[H,le],[oe,se]]}const{position:I,positionAbsolute:Y}=Xi({nodeId:ie,nextPosition:re,nodeLookup:D,nodeExtent:_||L,nodeOrigin:S,onError:R});xe=xe||J[N(1543)].x!==I.x||J[N(1543)].y!==I.y,J[N(1543)]=I,J[N(380)][N(2107)]=Y}if(p=p||xe,!!xe&&($(c,!0),h&&(o||K||!k&&Q))){const[ie,J]=yo({nodeId:k,dragItems:c,nodeLookup:D});o?.(h,c,ie,J),K?.(h,ie,J),!k&&Q?.(h,J)}}async function A(){if(!u)return;const{transform:q,panBy:T,autoPanSpeed:N,autoPanOnNodeDrag:D}=n();if(!D){d=!1,cancelAnimationFrame(i);return}const[L,U]=Ri(s,u,N);(L!==0||U!==0)&&(r.x=(r.x??0)-L/q[2],r.y=(r.y??0)-U/q[2],await T({x:L,y:U})&&j(r)),i=requestAnimationFrame(A)}function Z(q){const T=_0x4806,{nodeLookup:N,multiSelectionActive:D,nodesDraggable:L,transform:U,snapGrid:P,snapToGrid:S,selectNodesOnDrag:K,onNodeDragStart:Q,onSelectionDragStart:R,unselectNodesAndEdges:$}=n();f=!0,(!K||!C)&&!D&&k&&!N[T(1157)](k)?.[T(2178)]&&$(),C&&K&&k&&e?.(k);const xe=t0(q.sourceEvent,{transform:U,snapGrid:P,snapToGrid:S,containerBounds:u});if(r=xe,c=V2(N,L,xe,k),c.size>0&&(t||Q||!k&&R)){const[ce,de]=yo({nodeId:k,dragItems:c,nodeLookup:N});t?.(q.sourceEvent,c,ce,de),Q?.(q[T(652)],ce,de),!k&&R?.(q[T(652)],de)}}const W=ai().clickDistance(O).on(G(1989),q=>{const T=G,{domNode:N,nodeDragThreshold:D,transform:L,snapGrid:U,snapToGrid:P}=n();u=N?.[T(1761)]()||null,g=!1,p=!1,h=q[T(652)],D===0&&Z(q),r=t0(q[T(652)],{transform:L,snapGrid:U,snapToGrid:P,containerBounds:u}),s=gn(q.sourceEvent,u)}).on(G(553),q=>{const T=G,{autoPanOnNodeDrag:N,transform:D,snapGrid:L,snapToGrid:U,nodeDragThreshold:P,nodeLookup:S}=n(),K=t0(q[T(652)],{transform:D,snapGrid:L,snapToGrid:U,containerBounds:u});if(h=q[T(652)],(q[T(652)].type==="touchmove"&&q[T(652)].touches[T(2194)]>1||k&&!S[T(1826)](k))&&(g=!0),!g){if(!d&&N&&f&&(d=!0,A()),!f){const Q=gn(q[T(652)],u),R=Q.x-s.x,$=Q.y-s.y;Math[T(807)](R*R+$*$)>P&&Z(q)}(r.x!==K[T(1022)]||r.y!==K[T(681)])&&c&&f&&(s=gn(q[T(652)],u),j(K))}}).on(G(412),q=>{const T=G;if(!(!f||g)&&(d=!1,f=!1,cancelAnimationFrame(i),c.size>0)){const{nodeLookup:N,updateNodePositions:D,onNodeDragStop:L,onSelectionDragStop:U}=n();if(p&&(D(c,!1),p=!1),x||L||!k&&U){const[P,S]=yo({nodeId:k,dragItems:c,nodeLookup:N,dragging:!1});x?.(q[T(652)],c,P,S),L?.(q.sourceEvent,P,S),!k&&U?.(q[T(652)],S)}}})[G(1641)](q=>{const T=G,N=q[T(603)];return!q.button&&(!v||!bc(N,"."+v,w))&&(!m||bc(N,m,w))});y[G(897)](W)}function M(){const v=_0x4806;y?.on(v(1895),null)}return{update:b,destroy:M}}function X2(e,n,t){const o=a,x=[],r={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const i of n.values())Qt(r,wt(i))>0&&x[o(1465)](i);return x}const K2=250;function Z2(e,n,t,o){const x=a;let r=[],i=1/0;const c=X2(e,t,n+K2);for(const d of c){const s=[...d[x(380)][x(2091)]?.[x(964)]??[],...d[x(380)][x(2091)]?.[x(603)]??[]];for(const u of s){if(o[x(1626)]===u[x(1626)]&&o[x(1424)]===u[x(1424)]&&o.id===u.id)continue;const{x:f,y}=$n(d,u,u[x(1543)],!0),g=Math[x(807)](Math[x(1433)](f-e.x,2)+Math[x(1433)](y-e.y,2));g>n||(g<i?(r=[{...u,x:f,y}],i=g):g===i&&r[x(1465)]({...u,x:f,y}))}}if(!r[x(2194)])return null;if(r[x(2194)]>1){const d=o[x(1424)]===x(964)?x(603):x(964);return r[x(1876)](s=>s[x(1424)]===d)??r[0]}return r[0]}function zc(e,n,t,o,x,r=!1){const i=a,c=o[i(1157)](e);if(!c)return null;const d=x===i(1752)?c[i(380)][i(2091)]?.[n]:[...c[i(380)][i(2091)]?.[i(964)]??[],...c[i(380)].handleBounds?.[i(603)]??[]],s=(t?d?.[i(1876)](u=>u.id===t):d?.[0])??null;return s&&r?{...s,...$n(c,s,s.position,!0)}:s}function Cc(e,n){const t=a;return e||(n?.classList.contains("target")?"target":n?.[t(1931)].contains(t(964))?"source":null)}function R2(e,n){let t=null;return n?t=!0:e&&!n&&(t=!1),t}const Mc=()=>!0;function J2(e,{connectionMode:n,connectionRadius:t,handleId:o,nodeId:x,edgeUpdaterType:r,isTarget:i,domNode:c,nodeLookup:d,lib:s,autoPanOnConnect:u,flowId:f,panBy:y,cancelConnection:g,onConnectStart:p,onConnect:h,onConnectEnd:b,isValidConnection:M=Mc,onReconnectEnd:v,updateConnection:m,getTransform:w,getFromHandle:C,autoPanSpeed:k,dragThreshold:O=1,handleDomNode:G}){const j=a,A=nc(e.target);let Z=0,W;const{x:q,y:T}=gn(e),N=Cc(r,G),D=c?.[j(1761)]();let L=!1;if(!D||!N)return;const U=zc(x,N,o,d,n);if(!U)return;let P=gn(e,D),S=!1,K=null,Q=!1,R=null;function $(){if(!u||!D)return;const[_,I]=Ri(P,D,k);y({x:_,y:I}),Z=requestAnimationFrame($)}const xe={...U,nodeId:x,type:N,position:U[j(1543)]},ce=d[j(1157)](x);let fe={inProgress:!0,isValid:null,from:$n(ce,xe,he[j(1010)],!0),fromHandle:xe,fromPosition:xe[j(1543)],fromNode:ce,to:P,toHandle:null,toPosition:Vi[xe.position],toNode:null,pointer:P};function ie(){L=!0,m(fe),p?.(e,{nodeId:x,handleId:o,handleType:N})}O===0&&ie();function J(_){const I=j;if(!L){const{x:se,y:ge}=gn(_),ve=se-q,Ne=ge-T;if(!(ve*ve+Ne*Ne>O*O))return;ie()}if(!C()||!xe){re(_);return}const Y=w();P=gn(_,D),W=Z2(e0(P,Y,!1,[1,1]),t,d,xe),!S&&($(),S=!0);const X=Bc(_,{handle:W,connectionMode:n,fromNodeId:x,fromHandleId:o,fromType:I(i?603:964),isValidConnection:M,doc:A,lib:s,flowId:f,nodeLookup:d});R=X[I(1803)],K=X[I(1329)],Q=R2(!!W,X[I(486)]);const H=d[I(1157)](x),oe=H?$n(H,xe,he[I(1010)],!0):fe[I(1139)],le={...fe,from:oe,isValid:Q,to:X.toHandle&&Q?R0({x:X[I(2150)].x,y:X[I(2150)].y},Y):P,toHandle:X[I(2150)],toPosition:Q&&X.toHandle?X[I(2150)][I(1543)]:Vi[xe[I(1543)]],toNode:X[I(2150)]?d.get(X[I(2150)][I(1626)]):null,pointer:P};m(le),fe=le}function re(_){const I=j;if(!(I(374)in _&&_[I(374)][I(2194)]>0)){if(L){(W||R)&&K&&Q&&h?.(K);const{inProgress:Y,...X}=fe,H={...X,toPosition:fe[I(2150)]?fe[I(1773)]:null};b?.(_,H),r&&v?.(_,H)}g(),cancelAnimationFrame(Z),S=!1,Q=!1,K=null,R=null,A.removeEventListener(I(530),J),A.removeEventListener("mouseup",re),A[I(1339)](I(1092),J),A[I(1339)](I(1672),re)}}A[j(1966)](j(530),J),A[j(1966)](j(1762),re),A[j(1966)]("touchmove",J),A.addEventListener(j(1672),re)}function Bc(e,{handle:n,connectionMode:t,fromNodeId:o,fromHandleId:x,fromType:r,doc:i,lib:c,flowId:d,isValidConnection:s=Mc,nodeLookup:u}){const f=a,y=r==="target",g=n?i[f(1542)]("."+c+'-flow__handle[data-id="'+d+"-"+n?.nodeId+"-"+n?.id+"-"+n?.[f(1424)]+'"]'):null,{x:p,y:h}=gn(e),b=i.elementFromPoint(p,h),M=b?.[f(1931)][f(2099)](c+f(538))?b:g,v={handleDomNode:M,isValid:!1,connection:null,toHandle:null};if(M){const m=Cc(void 0,M),w=M[f(527)]("data-nodeid"),C=M[f(527)](f(1411)),k=M[f(1931)][f(2099)]("connectable"),O=M[f(1931)].contains(f(690));if(!w||!m)return v;const G={source:y?w:o,sourceHandle:y?C:x,target:y?o:w,targetHandle:y?x:C};v[f(1329)]=G;const j=k&&O,A=j&&(t===yt[f(786)]?y&&m==="source"||!y&&m===f(603):w!==o||C!==x);v[f(486)]=A&&s(G),v[f(2150)]=zc(w,m,C,u,t,!0)}return v}const mo={onPointerDown:J2,isValid:Bc};function _2({domNode:e,panZoom:n,getTransform:t,getViewScale:o}){const x=en(e);function r({translateExtent:c,width:d,height:s,zoomStep:u=1,pannable:f=!0,zoomable:y=!0,inversePan:g=!1}){const p=_0x4806,h=w=>{const C=_0x4806;if(w[C(652)].type!==C(554)||!n)return;const k=t(),O=w[C(652)].ctrlKey&&n0()?10:1,G=-w[C(652)][C(381)]*(w[C(652)].deltaMode===1?.05:w[C(652)][C(2019)]?1:.002)*u,j=k[2]*Math[C(1433)](2,G*O);n.scaleTo(j)};let b=[0,0];const M=w=>{const C=_0x4806;(w[C(652)][C(1424)]===C(874)||w[C(652)][C(1424)]===C(1080))&&(b=[w[C(652)][C(1569)]??w[C(652)].touches[0][C(1569)],w.sourceEvent.clientY??w[C(652)][C(374)][0][C(1947)]])},v=w=>{const C=_0x4806,k=t();if(w[C(652)][C(1424)]!==C(530)&&w[C(652)][C(1424)]!==C(1092)||!n)return;const O=[w[C(652)][C(1569)]??w.sourceEvent[C(374)][0][C(1569)],w[C(652)][C(1947)]??w[C(652)][C(374)][0][C(1947)]],G=[O[0]-b[0],O[1]-b[1]];b=O;const j=o()*Math[C(1439)](k[2],Math[C(365)](k[2]))*(g?-1:1),A={x:k[0]-G[0]*j,y:k[1]-G[1]*j},Z=[[0,0],[d,s]];n.setViewportConstrained({x:A.x,y:A.y,zoom:k[2]},Z,c)},m=Gi().on(p(1989),M).on(p(1386),f?v:null).on(p(1496),y?h:null);x[p(897)](m,{})}function i(){const c=_0x4806;x.on(c(1386),null)}return{update:r,destroy:i,pointer:dn}}const _0=e=>({x:e.x,y:e.y,zoom:e.k}),wo=({x:e,y:n,zoom:t})=>q0[a(1273)](e,n)[a(476)](t),bt=(e,n)=>e.target[a(686)]("."+n),Dc=(e,n)=>n===2&&Array.isArray(e)&&e[a(911)](2),F2=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,vo=(e,n=0,t=F2,o=()=>{})=>{const x=a,r=typeof n===x(411)&&n>0;return!r&&o(),r?e[x(1244)]()[x(2056)](n)[x(2044)](t).on(x(412),o):e},Lc=e=>{const n=a,t=e[n(569)]&&n0()?10:1;return-e.deltaY*(e[n(2019)]===1?.05:e[n(2019)]?1:.002)*t};function Q2({zoomPanValues:e,noWheelClassName:n,d3Selection:t,d3Zoom:o,panOnScrollMode:x,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:c,onPanZoom:d,onPanZoomEnd:s}){return u=>{const f=_0x4806;if(bt(u,n))return u.ctrlKey&&u[f(1923)](),!1;u[f(1923)](),u.stopImmediatePropagation();const y=t[f(1665)]("__zoom").k||1;if(u[f(569)]&&i){const M=dn(u),v=Lc(u),m=y*Math[f(1433)](2,v);o[f(494)](t,m,M,u);return}const g=u[f(2019)]===1?20:1;let p=x===Fn.Vertical?0:u[f(691)]*g,h=x===Fn.Horizontal?0:u[f(381)]*g;!n0()&&u[f(1518)]&&x!==Fn[f(997)]&&(p=u[f(381)]*g,h=0),o[f(817)](t,-(p/y)*r,-(h/y)*r,{internal:!0});const b=_0(t[f(1665)](f(1478)));clearTimeout(e[f(1055)]),e[f(560)]?(d?.(u,b),e.panScrollTimeout=setTimeout(()=>{const M=f;s?.(u,b),e[M(560)]=!1},150)):(e[f(560)]=!0,c?.(u,b))}}function $2({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:t}){return function(o,x){const r=_0x4806,i=o.type===r(554),c=!n&&i&&!o.ctrlKey,d=bt(o,e);if(o.ctrlKey&&i&&d&&o[r(1923)](),c||d)return null;o.preventDefault(),t.call(this,o,x)}}function e1({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:t}){return o=>{const x=_0x4806;if(o[x(652)]?.[x(1548)])return;const r=_0(o[x(1130)]);e.mouseButton=o[x(652)]?.[x(772)]||0,e[x(798)]=!0,e[x(578)]=r,o[x(652)]?.[x(1424)]===x(874)&&n(!0),t&&t?.(o.sourceEvent,r)}}function n1({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:t,onTransformChange:o,onPanZoom:x}){return r=>{const i=_0x4806;e[i(1676)]=!!(t&&Dc(n,e.mouseButton??0)),!r[i(652)]?.sync&&o([r[i(1130)].x,r[i(1130)].y,r[i(1130)].k]),x&&!r[i(652)]?.[i(1548)]&&x?.(r[i(652)],_0(r.transform))}}function t1({zoomPanValues:e,panOnDrag:n,panOnScroll:t,onDraggingChange:o,onPanZoomEnd:x,onPaneContextMenu:r}){return i=>{const c=_0x4806;if(!i[c(652)]?.[c(1548)]&&(e[c(798)]=!1,r&&Dc(n,e[c(2198)]??0)&&!e[c(1676)]&&i[c(652)]&&r(i[c(652)]),e[c(1676)]=!1,o(!1),x)){const d=_0(i[c(1130)]);e[c(578)]=d,clearTimeout(e[c(1054)]),e[c(1054)]=setTimeout(()=>{x?.(i.sourceEvent,d)},t?150:0)}}}function x1({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:t,panOnDrag:o,panOnScroll:x,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:c,noPanClassName:d,lib:s,connectionInProgress:u}){return f=>{const y=_0x4806,g=e||n,p=t&&f[y(569)],h=f[y(1424)]===y(554);if(f.button===1&&f[y(1424)]===y(874)&&(bt(f,s+"-flow__node")||bt(f,s+y(2173))))return!0;if(!o&&!g&&!x&&!r&&!t||i||u&&!h||bt(f,c)&&h||bt(f,d)&&(!h||x&&h&&!e)||!t&&f[y(569)]&&h)return!1;if(!t&&f[y(1424)]==="touchstart"&&f[y(374)]?.[y(2194)]>1)return f[y(1923)](),!1;if(!g&&!x&&!p&&h||!o&&(f[y(1424)]===y(874)||f[y(1424)]==="touchstart")||Array[y(927)](o)&&!o.includes(f.button)&&f[y(1424)]==="mousedown")return!1;const b=Array.isArray(o)&&o[y(911)](f[y(772)])||!f[y(772)]||f[y(772)]<=1;return(!f[y(569)]||h)&&b}}function o1({domNode:e,minZoom:n,maxZoom:t,translateExtent:o,viewport:x,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:c,onDraggingChange:d}){const s=a,u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e[s(1761)](),y=Gi()[s(1383)]([n,t])[s(1038)](o),g=en(e).call(y);m({x:x.x,y:x.y,zoom:mt(x[s(1386)],n,t)},[[0,0],[f.width,f.height]],o);const p=g.on(s(1129)),h=g.on(s(977));y[s(1660)](Lc);function b(W,q){return g?new Promise(T=>{const N=_0x4806;y?.[N(2172)](q?.interpolate===N(1656)?Vt:A0)[N(1130)](vo(g,q?.[N(2056)],q?.[N(2044)],()=>T(!0)),W)}):Promise.resolve(!1)}function M({noWheelClassName:W,noPanClassName:q,onPaneContextMenu:T,userSelectionActive:N,panOnScroll:D,panOnDrag:L,panOnScrollMode:U,panOnScrollSpeed:P,preventScrolling:S,zoomOnPinch:K,zoomOnScroll:Q,zoomOnDoubleClick:R,zoomActivationKeyPressed:$,lib:xe,onTransformChange:ce,connectionInProgress:de,paneClickDistance:fe,selectionOnDrag:ie}){const J=s;N&&!u[J(798)]&&v();const re=D&&!$&&!N;y[J(1002)](ie?1/0:!hn(fe)||fe<0?0:fe);const _=re?Q2({zoomPanValues:u,noWheelClassName:W,d3Selection:g,d3Zoom:y,panOnScrollMode:U,panOnScrollSpeed:P,zoomOnPinch:K,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:c}):$2({noWheelClassName:W,preventScrolling:S,d3ZoomHandler:p});if(g.on(J(1129),_,{passive:!1}),!N){const Y=e1({zoomPanValues:u,onDraggingChange:d,onPanZoomStart:i});y.on("start",Y);const X=n1({zoomPanValues:u,panOnDrag:L,onPaneContextMenu:!!T,onPanZoom:r,onTransformChange:ce});y.on(J(1386),X);const H=t1({zoomPanValues:u,panOnDrag:L,panOnScroll:D,onPaneContextMenu:T,onPanZoomEnd:c,onDraggingChange:d});y.on("end",H)}const I=x1({zoomActivationKeyPressed:$,panOnDrag:L,zoomOnScroll:Q,panOnScroll:D,zoomOnDoubleClick:R,zoomOnPinch:K,userSelectionActive:N,noPanClassName:q,noWheelClassName:W,lib:xe,connectionInProgress:de});y[J(1641)](I),R?g.on(J(977),h):g.on(J(977),null)}function v(){y.on("zoom",null)}async function m(W,q,T){const N=s,D=wo(W),L=y?.[N(1612)]()(D,q,T);return L&&await b(L),new Promise(U=>U(L))}async function w(W,q){const T=wo(W);return await b(T,q),new Promise(N=>N(T))}function C(W){const q=s;if(g){const T=wo(W),N=g[q(1665)](q(1478));(N.k!==W[q(1386)]||N.x!==W.x||N.y!==W.y)&&y?.[q(1130)](g,T,null,{sync:!0})}}function k(){const W=s,q=g?Yi(g[W(1997)]()):{x:0,y:0,k:1};return{x:q.x,y:q.y,zoom:q.k}}function O(W,q){const T=s;return g?new Promise(N=>{const D=_0x4806;y?.interpolate(q?.[D(2172)]===D(1656)?Vt:A0)[D(494)](vo(g,q?.[D(2056)],q?.[D(2044)],()=>N(!0)),W)}):Promise[T(2192)](!1)}function G(W,q){const T=s;return g?new Promise(N=>{const D=_0x4806;y?.[D(2172)](q?.[D(2172)]===D(1656)?Vt:A0)[D(368)](vo(g,q?.duration,q?.[D(2044)],()=>N(!0)),W)}):Promise[T(2192)](!1)}function j(W){y?.[s(1383)](W)}function A(W){y?.translateExtent(W)}function Z(W){const q=s,T=!hn(W)||W<0?0:W;y?.[q(1002)](T)}return{update:M,destroy:v,setViewport:w,setViewportConstrained:m,getViewport:k,scaleTo:O,scaleBy:G,setScaleExtent:j,setTranslateExtent:A,syncViewport:C,setClickDistance:Z}}var zt;(function(e){const n=a;e[n(857)]=n(2070),e[n(1222)]="handle"})(zt||(zt={}));function r1({width:e,prevWidth:n,height:t,prevHeight:o,affectsX:x,affectsY:r}){const i=e-n,c=t-o,d=[i>0?1:i<0?-1:0,c>0?1:c<0?-1:0];return i&&x&&(d[0]=d[0]*-1),c&&r&&(d[1]=d[1]*-1),d}function Nc(e){const n=a,t=e[n(911)](n(1476))||e[n(911)](n(1557)),o=e[n(911)](n(808))||e[n(911)](n(1413)),x=e[n(911)](n(1557)),r=e[n(911)](n(1413));return{isHorizontal:t,isVertical:o,affectsX:x,affectsY:r}}function Yn(e,n){return Math.max(0,n-e)}function Un(e,n){return Math[a(1439)](0,e-n)}function F0(e,n,t){return Math[a(1439)](0,n-e,e-t)}function Sc(e,n){return e?!n:n}function i1(e,n,t,o,x,r,i,c){const d=a;let{affectsX:s,affectsY:u}=n;const{isHorizontal:f,isVertical:y}=n,g=f&&y,{xSnapped:p,ySnapped:h}=t,{minWidth:b,maxWidth:M,minHeight:v,maxHeight:m}=o,{x:w,y:C,width:k,height:O,aspectRatio:G}=e;let j=Math[d(621)](f?p-e[d(1168)]:0),A=Math[d(621)](y?h-e.pointerY:0);const Z=k+(s?-j:j),W=O+(u?-A:A),q=-r[0]*k,T=-r[1]*O;let N=F0(Z,b,M),D=F0(W,v,m);if(i){let P=0,S=0;s&&j<0?P=Yn(w+j+q,i[0][0]):!s&&j>0&&(P=Un(w+Z+q,i[1][0])),u&&A<0?S=Yn(C+A+T,i[0][1]):!u&&A>0&&(S=Un(C+W+T,i[1][1])),N=Math[d(1439)](N,P),D=Math[d(1439)](D,S)}if(c){let P=0,S=0;s&&j>0?P=Un(w+j,c[0][0]):!s&&j<0&&(P=Yn(w+Z,c[1][0])),u&&A>0?S=Un(C+A,c[0][1]):!u&&A<0&&(S=Yn(C+W,c[1][1])),N=Math[d(1439)](N,P),D=Math[d(1439)](D,S)}if(x){if(f){const P=F0(Z/G,v,m)*G;if(N=Math.max(N,P),i){let S=0;!s&&!u||s&&!u&&g?S=Un(C+T+Z/G,i[1][1])*G:S=Yn(C+T+(s?j:-j)/G,i[0][1])*G,N=Math[d(1439)](N,S)}if(c){let S=0;!s&&!u||s&&!u&&g?S=Yn(C+Z/G,c[1][1])*G:S=Un(C+(s?j:-j)/G,c[0][1])*G,N=Math[d(1439)](N,S)}}if(y){const P=F0(W*G,b,M)/G;if(D=Math[d(1439)](D,P),i){let S=0;!s&&!u||u&&!s&&g?S=Un(w+W*G+q,i[1][0])/G:S=Yn(w+(u?A:-A)*G+q,i[0][0])/G,D=Math[d(1439)](D,S)}if(c){let S=0;!s&&!u||u&&!s&&g?S=Yn(w+W*G,c[1][0])/G:S=Un(w+(u?A:-A)*G,c[0][0])/G,D=Math[d(1439)](D,S)}}}A=A+(A<0?D:-D),j=j+(j<0?N:-N),x&&(g?Z>W*G?A=(Sc(s,u)?-j:j)/G:j=(Sc(s,u)?-A:A)*G:f?(A=j/G,u=s):(j=A*G,s=u));const L=s?w+j:w,U=u?C+A:C;return{width:k+(s?-j:j),height:O+(u?-A:A),x:r[0]*j*(s?-1:1)+L,y:r[1]*A*(u?-1:1)+U}}const kc={width:0,height:0,x:0,y:0},c1={...kc,pointerX:0,pointerY:0,aspectRatio:1};function a1(e){const n=a;return[[0,0],[e[n(1583)][n(1238)],e[n(1583)][n(1265)]]]}function s1(e,n,t){const o=a,x=n[o(1543)].x+e[o(1543)].x,r=n[o(1543)].y+e[o(1543)].y,i=e[o(1583)][o(1238)]??0,c=e.measured[o(1265)]??0,d=t[0]*i,s=t[1]*c;return[[x-d,r-s],[x+i-d,r+c-s]]}function l1({domNode:e,nodeId:n,getStoreItems:t,onChange:o,onEnd:x}){const r=a,i=en(e);let c={controlDirection:Nc(r(720)),boundaries:{minWidth:0,minHeight:0,maxWidth:Number[r(1370)],maxHeight:Number[r(1370)]},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:u,boundaries:f,keepAspectRatio:y,resizeDirection:g,onResizeStart:p,onResize:h,onResizeEnd:b,shouldResize:M}){const v=r;let m={...kc},w={...c1};c={boundaries:f,resizeDirection:g,keepAspectRatio:y,controlDirection:Nc(u)};let C,k=null,O=[],G,j,A,Z=!1;const W=ai().on(v(1989),q=>{const T=v,{nodeLookup:N,transform:D,snapGrid:L,snapToGrid:U,nodeOrigin:P,paneDomNode:S}=t();if(C=N[T(1157)](n),!C)return;k=S?.getBoundingClientRect()??null;const{xSnapped:K,ySnapped:Q}=t0(q.sourceEvent,{transform:D,snapGrid:L,snapToGrid:U,containerBounds:k});m={width:C[T(1583)].width??0,height:C.measured[T(1265)]??0,x:C[T(1543)].x??0,y:C[T(1543)].y??0},w={...m,pointerX:K,pointerY:Q,aspectRatio:m[T(1238)]/m[T(1265)]},G=void 0,C[T(890)]&&(C[T(1743)]===T(1824)||C[T(1714)])&&(G=N[T(1157)](C[T(890)]),j=G&&C.extent===T(1824)?a1(G):void 0),O=[],A=void 0;for(const[R,$]of N)if($[T(890)]===n&&(O[T(1465)]({id:R,position:{...$[T(1543)]},extent:$[T(1743)]}),$[T(1743)]==="parent"||$[T(1714)])){const xe=s1($,C,$.origin??P);A?A=[[Math.min(xe[0][0],A[0][0]),Math[T(831)](xe[0][1],A[0][1])],[Math[T(1439)](xe[1][0],A[1][0]),Math[T(1439)](xe[1][1],A[1][1])]]:A=xe}p?.(q,{...m})}).on("drag",q=>{const T=v,{transform:N,snapGrid:D,snapToGrid:L,nodeOrigin:U}=t(),P=t0(q[T(652)],{transform:N,snapGrid:D,snapToGrid:L,containerBounds:k}),S=[];if(!C)return;const{x:K,y:Q,width:R,height:$}=m,xe={},ce=C[T(870)]??U,{width:de,height:fe,x:ie,y:J}=i1(w,c[T(622)],P,c[T(1499)],c[T(501)],ce,j,A),re=de!==R,_=fe!==$,I=ie!==K&&re,Y=J!==Q&&_;if(!I&&!Y&&!re&&!_)return;if((I||Y||ce[0]===1||ce[1]===1)&&(xe.x=I?ie:m.x,xe.y=Y?J:m.y,m.x=xe.x,m.y=xe.y,O[T(2194)]>0)){const le=ie-K,se=J-Q;for(const ge of O)ge[T(1543)]={x:ge[T(1543)].x-le+ce[0]*(de-R),y:ge[T(1543)].y-se+ce[1]*(fe-$)},S.push(ge)}if((re||_)&&(xe[T(1238)]=re&&(!c[T(1253)]||c[T(1253)]==="horizontal")?de:m[T(1238)],xe[T(1265)]=_&&(!c.resizeDirection||c.resizeDirection===T(609))?fe:m[T(1265)],m[T(1238)]=xe[T(1238)],m[T(1265)]=xe[T(1265)]),G&&C[T(1714)]){const le=ce[0]*(xe[T(1238)]??0);xe.x&&xe.x<le&&(m.x=le,w.x=w.x-(xe.x-le));const se=ce[1]*(xe[T(1265)]??0);xe.y&&xe.y<se&&(m.y=se,w.y=w.y-(xe.y-se))}const X=r1({width:m[T(1238)],prevWidth:R,height:m[T(1265)],prevHeight:$,affectsX:c[T(622)][T(771)],affectsY:c[T(622)][T(647)]}),H={...m,direction:X};M?.(q,H)!==!1&&(Z=!0,h?.(q,H),o(xe,S))}).on(v(412),q=>{Z&&(b?.(q,{...m}),x?.({...m}),Z=!1)});i[v(897)](W)}function s(){const u=r;i.on(u(1895),null)}return{update:d,destroy:s}}var Q0={exports:{}},po={},$0={exports:{}},bo={},Ic;function d1(){const e=a;if(Ic)return bo;Ic=1;var n=B;function t(y,g){return y===g&&(y!==0||1/y===1/g)||y!==y&&g!==g}var o=e(1154)===typeof Object.is?Object.is:t,x=n.useState,r=n[e(363)],i=n.useLayoutEffect,c=n.useDebugValue;function d(y,g){const p=e;var h=g(),b=x({inst:{value:h,getSnapshot:g}}),M=b[0][p(420)],v=b[1];return i(function(){const m=p;M[m(1981)]=h,M[m(978)]=g,s(M)&&v({inst:M})},[y,h,g]),r(function(){return s(M)&&v({inst:M}),y(function(){s(M)&&v({inst:M})})},[y]),c(h),h}function s(y){const g=e;var p=y[g(978)];y=y[g(1981)];try{var h=p();return!o(y,h)}catch{return!0}}function u(y,g){return g()}var f=typeof window>"u"||e(1202)===typeof window.document||e(1202)===typeof window[e(1644)][e(1990)]?u:d;return bo.useSyncExternalStore=n[e(2007)]!==void 0?n.useSyncExternalStore:f,bo}var zo={},Pc;function u1(){return Pc||(Pc=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x4806;function n(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function t(p,h){const b=_0x4806;f||r.startTransition===void 0||(f=!0,console[b(551)](b(1417)));var M=h();if(!y){var v=h();i(M,v)||(console[b(551)](b(1736)),y=!0)}v=c({inst:{value:M,getSnapshot:h}});var m=v[0].inst,w=v[1];return s(function(){const C=b;m[C(1981)]=M,m[C(978)]=h,o(m)&&w({inst:m})},[p,M,h]),d(function(){return o(m)&&w({inst:m}),p(function(){o(m)&&w({inst:m})})},[p]),u(M),M}function o(p){const h=_0x4806;var b=p.getSnapshot;p=p[h(1981)];try{var M=b();return!i(p,M)}catch{return!0}}function x(p,h){return h()}e(1202)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1154)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(2168)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(2168)](Error());var r=B,i=e(1154)===typeof Object.is?Object.is:n,c=r[e(655)],d=r[e(363)],s=r[e(624)],u=r[e(1447)],f=!1,y=!1,g=typeof window>"u"||typeof window.document>"u"||e(1202)===typeof window[e(1644)][e(1990)]?x:t;zo.useSyncExternalStore=r[e(2007)]!==void 0?r[e(2007)]:g,e(1202)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(1980)]=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zo}var Ac;function jc(){const e=a;return Ac||(Ac=1,process.env.NODE_ENV===e(782)?$0[e(1749)]=d1():$0.exports=u1()),$0[e(1749)]}var Ec;function f1(){const e=a;if(Ec)return po;Ec=1;var n=B,t=jc();function o(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var x=typeof Object.is=="function"?Object.is:o,r=t[e(2007)],i=n[e(575)],c=n.useEffect,d=n.useMemo,s=n[e(1447)];return po.useSyncExternalStoreWithSelector=function(u,f,y,g,p){const h=e;var b=i(null);if(b[h(1560)]===null){var M={hasValue:!1,value:null};b[h(1560)]=M}else M=b[h(1560)];b=d(function(){function m(G){const j=_0x4806;if(!w){if(w=!0,C=G,G=g(G),p!==void 0&&M.hasValue){var A=M[j(1981)];if(p(A,G))return k=A}return k=G}if(A=k,x(C,G))return A;var Z=g(G);return p!==void 0&&p(A,Z)?(C=G,A):(C=G,k=Z)}var w=!1,C,k,O=y===void 0?null:y;return[function(){return m(f())},O===null?void 0:function(){return m(O())}]},[f,y,g,p]);var v=r(u,b[0],b[1]);return c(function(){const m=h;M[m(1358)]=!0,M.value=v},[v]),s(v),v},po}var Co={},Yc;function h1(){const e=a;return Yc||(Yc=1,e(782)!==process.env.NODE_ENV&&(function(){const n=e;function t(f,y){return f===y&&(f!==0||1/f===1/y)||f!==f&&y!==y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(2168)]=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(2168)](Error());var o=B,x=jc(),r=n(1154)===typeof Object.is?Object.is:t,i=x.useSyncExternalStore,c=o[n(575)],d=o[n(363)],s=o[n(528)],u=o.useDebugValue;Co.useSyncExternalStoreWithSelector=function(f,y,g,p,h){const b=n;var M=c(null);if(M[b(1560)]===null){var v={hasValue:!1,value:null};M[b(1560)]=v}else v=M[b(1560)];M=s(function(){function w(j){const A=_0x4806;if(!C){if(C=!0,k=j,j=p(j),h!==void 0&&v[A(1358)]){var Z=v[A(1981)];if(h(Z,j))return O=Z}return O=j}if(Z=O,r(k,j))return Z;var W=p(j);return h!==void 0&&h(Z,W)?(k=j,Z):(k=j,O=W)}var C=!1,k,O,G=g===void 0?null:g;return[function(){return w(y())},G===null?void 0:function(){return w(G())}]},[y,g,p,h]);var m=i(f,M[0],M[1]);return d(function(){const w=b;v[w(1358)]=!0,v[w(1981)]=m},[m]),u(m),m},n(1202)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(1980)]=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(1980)](Error())})()),Co}var Uc;function g1(){const e=a;return Uc?Q0.exports:(Uc=1,process.env.NODE_ENV===e(782)?Q0[e(1749)]=f1():Q0[e(1749)]=h1(),Q0[e(1749)])}var y1=g1();const m1=Nt(y1),w1={},Gc=e=>{let n;const t=new Set,o=(u,f)=>{const y=_0x4806,g=typeof u===y(1154)?u(n):u;if(!Object.is(g,n)){const p=n;n=f??(typeof g!==y(2171)||g===null)?g:Object[y(510)]({},n,g),t.forEach(h=>h(n,p))}},x=()=>n,r=()=>s,i=u=>{const f=_0x4806;return t[f(1757)](u),()=>t[f(1147)](u)},c=()=>{const u=_0x4806;(w1?u(782):void 0)!==u(782)&&console[u(656)](u(851)),t[u(2016)]()},d={setState:o,getState:x,getInitialState:r,subscribe:i,destroy:c},s=n=e(o,x,d);return d},v1=e=>e?Gc(e):Gc,{useDebugValue:p1}=B,{useSyncExternalStoreWithSelector:b1}=m1,z1=e=>e;function Oc(e,n=z1,t){const o=a,x=b1(e[o(1722)],e[o(1740)],e[o(1343)]||e[o(760)],n,t);return p1(x),x}const Hc=(e,n)=>{const t=a,o=v1(e),x=(r,i=n)=>Oc(o,r,i);return Object[t(510)](x,o),x},C1=(e,n)=>e?Hc(e,n):Hc;function je(e,n){const t=a;if(Object.is(e,n))return!0;if(typeof e!==t(2171)||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e[t(1705)]!==n[t(1705)])return!1;for(const[x,r]of e)if(!Object.is(r,n[t(1157)](x)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n[t(1705)])return!1;for(const x of e)if(!n.has(x))return!1;return!0}const o=Object[t(1651)](e);if(o[t(2194)]!==Object[t(1651)](n)[t(2194)])return!1;for(const x of o)if(!Object[t(1201)][t(436)][t(897)](n,x)||!Object.is(e[x],n[x]))return!1;return!0}const ex=B[a(952)](null),M1=ex[a(423)],Tc=nn[a(893)]();function Be(e,n){const t=a,o=B[t(689)](ex);if(o===null)throw new Error(Tc);return Oc(o,e,n)}function Ee(){const e=a,n=B.useContext(ex);if(n===null)throw new Error(Tc);return B[e(528)](()=>({getState:n[e(1740)],setState:n.setState,subscribe:n[e(1722)]}),[n])}const Vc={display:a(1712)},B1={position:a(2080),width:1,height:1,margin:-1,border:0,padding:0,overflow:a(1821),clip:a(2040),clipPath:"inset(100%)"},qc=a(503),Wc=a(1628),D1="react-flow__aria-live",L1=e=>e[a(648)],N1=e=>e[a(1159)];function S1({rfId:e}){const n=a,t=Be(L1);return l[n(1993)]("div",{id:D1+"-"+e,"aria-live":n(447),"aria-atomic":n(1501),style:B1,children:t})}function k1({rfId:e,disableKeyboardA11y:n}){const t=a,o=Be(N1);return l.jsxs(l[t(915)],{children:[l[t(1993)]("div",{id:qc+"-"+e,style:Vc,children:n?o[t(2089)]:o[t(2092)]}),l.jsx("div",{id:Wc+"-"+e,style:Vc,children:o[t(427)]}),!n&&l.jsx(S1,{rfId:e})]})}const nx=B[a(2191)](({position:e="top-left",children:n,className:t,style:o,...x},r)=>{const i=a,c=(""+e)[i(1615)]("-");return l[i(1993)](i(539),{className:Ge([i(1497),t,...c]),style:o,ref:r,...x,children:n})});nx.displayName=a(1823);function I1({proOptions:e,position:n=a(720)}){const t=a;return e?.hideAttribution?null:l[t(1993)](nx,{position:n,className:"react-flow__attribution","data-message":t(673),children:l[t(1993)]("a",{href:"https://reactflow.dev",target:t(1347),rel:t(480),"aria-label":t(1033),children:t(1715)})})}const P1=e=>{const n=a,t=[],o=[];for(const[,x]of e[n(750)])x[n(2178)]&&t[n(1465)](x[n(380)][n(1220)]);for(const[,x]of e[n(986)])x[n(2178)]&&o[n(1465)](x);return{selectedNodes:t,selectedEdges:o}},tx=e=>e.id;function A1(e,n){const t=a;return je(e[t(1862)][t(542)](tx),n[t(1862)][t(542)](tx))&&je(e[t(1016)][t(542)](tx),n[t(1016)].map(tx))}function j1({onSelectionChange:e}){const n=a,t=Ee(),{selectedNodes:o,selectedEdges:x}=Be(P1,A1);return B[n(363)](()=>{const r=n,i={nodes:o,edges:x};e?.(i),t[r(1740)]()[r(1964)][r(1369)](c=>c(i))},[o,x,e]),null}const E1=e=>!!e[a(1964)];function Y1({onSelectionChange:e}){const n=a,t=Be(E1);return e||t?l[n(1993)](j1,{onSelectionChange:e}):null}const Mo=typeof window!==a(1202)?B[a(624)]:B[a(363)],Xc=[0,0],U1={x:0,y:0,zoom:1},G1=[a(1361),a(1337),"defaultNodes",a(475),"onConnect",a(1539),a(788),"onClickConnectStart",a(1003),a(2169),"autoPanOnNodeFocus","nodesConnectable",a(1237),"edgesFocusable","edgesReconnectable",a(1051),a(787),a(781),"maxZoom",a(762),a(2023),a(1562),"elementsSelectable",a(2138),a(1623),"snapToGrid",a(1038),"connectOnClick","defaultEdgeOptions",a(714),a(1097),a(2032),a(1284),a(602),a(650),a(438),"onNodeDragStop",a(1012),a(595),a(1487),a(1391),a(1435),"onMoveEnd",a(1732),"nodeOrigin","autoPanOnConnect",a(1410),"onError","connectionRadius",a(1088),a(2186),a(950),a(2154),a(917),"debug",a(1670),a(1159),"zIndexMode"],Kc=[...G1,"rfId"],O1=e=>({setNodes:e[a(1029)],setEdges:e[a(1514)],setMinZoom:e[a(541)],setMaxZoom:e[a(1044)],setTranslateExtent:e[a(1839)],setNodeExtent:e[a(2021)],reset:e[a(1039)],setDefaultNodesAndEdges:e[a(2063)]}),Zc={translateExtent:Rt,nodeOrigin:Xc,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:a(933),rfId:"1"};function H1(e){const n=a,{setNodes:t,setEdges:o,setMinZoom:x,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:s}=Be(O1,je),u=Ee();Mo(()=>{const y=_0x4806;return s(e[y(644)],e[y(475)]),()=>{f.current=Zc,d()}},[]);const f=B.useRef(Zc);return Mo(()=>{const y=_0x4806;for(const g of Kc){const p=e[g],h=f[y(1560)][g];p!==h&&typeof e[g]!==y(1202)&&(g===y(1361)?t(p):g===y(1337)?o(p):g===y(781)?x(p):g===y(640)?r(p):g==="translateExtent"?i(p):g===y(762)?c(p):g===y(1159)?u[y(1766)]({ariaLabelConfig:C2(p)}):g===y(714)?u[y(1766)]({fitViewQueued:p}):g===y(1097)?u[y(1766)]({fitViewOptions:p}):u.setState({[g]:p}))}f[y(1560)]=e},Kc[n(542)](y=>e[y])),null}function Rc(){return typeof window===a(1202)||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function T1(e){const n=a,[t,o]=B[n(655)](e===n(1831)?null:e);return B[n(363)](()=>{const x=n;if(e!==x(1831)){o(e);return}const r=Rc(),i=()=>o(r?.[x(1719)]?x(837):x(1859));return i(),r?.[x(1966)](x(649),i),()=>{r?.[x(1339)]("change",i)}},[e]),t!==null?t:Rc()?.[n(1719)]?n(837):n(1859)}const Jc=typeof document!==a(1202)?document:null;function x0(e=null,n={target:Jc,actInsideInputWithModifier:!0}){const t=a,[o,x]=B[t(655)](!1),r=B[t(575)](!1),i=B[t(575)](new Set([])),[c,d]=B[t(528)](()=>{const s=t;if(e!==null){const u=Array[s(927)](e)?e:[e],f=u[s(1641)](g=>typeof g===s(774))[s(542)](g=>g[s(598)]("+",`
|
|
3
5
|
`).replace(`
|
|
4
6
|
|
|
5
7
|
`,`
|
|
6
|
-
+`)[s(
|
|
7
|
-
`)),b=f[s(1833)]((g,m)=>g[s(1291)](...m),[]);return[f,b]}return[[],[]]},[e]);return L[t(856)](()=>{const s=t,d=n?.[s(345)]??_a,f=n?.[s(508)]??!0;if(e!==null){const b=h=>{const p=s;if(r.current=h[p(398)]||h[p(762)]||h.shiftKey||h[p(549)],(!r[p(1123)]||r[p(1123)]&&!f)&&ta(h))return!1;const y=Fa(h[p(1661)],u);if(i[p(1123)][p(1531)](h[y]),Ja(a,i[p(1123)],!1)){const v=h[p(1961)]?.()?.[0]||h.target,w=v?.[p(526)]==="BUTTON"||v?.nodeName==="A";n.preventDefault!==!1&&(r[p(1123)]||!w)&&h[p(1224)](),x(!0)}},g=h=>{const p=s,M=Fa(h[p(1661)],u);Ja(a,i[p(1123)],!0)?(x(!1),i.current[p(1275)]()):i[p(1123)][p(1953)](h[M]),h[p(1789)]===p(869)&&i[p(1123)][p(1275)](),r[p(1123)]=!1},m=()=>{i[s(1123)].clear(),x(!1)};return d?.[s(1918)](s(1786),b),d?.[s(1918)](s(1874),g),window.addEventListener(s(839),m),window[s(1918)](s(505),m),()=>{const h=s;d?.[h(1561)]("keydown",b),d?.[h(1561)](h(1874),g),window[h(1561)](h(839),m),window.removeEventListener(h(505),m)}}},[e,x]),o}function Ja(e,n,t){const o=c;return e[o(1211)](x=>t||x[o(402)]===n.size)[o(1548)](x=>x.every(r=>n[o(888)](r)))}function Fa(e,n){const t=c;return n[t(633)](e)?t(1661):t(1789)}const V5=()=>{const e=Ye();return L.useMemo(()=>({zoomIn:n=>{const t=_0x2299,{panZoom:o}=e[t(1838)]();return o?o.scaleBy(1.2,n):Promise[t(1762)](!1)},zoomOut:n=>{const t=_0x2299,{panZoom:o}=e[t(1838)]();return o?o.scaleBy(1/1.2,n):Promise[t(1762)](!1)},zoomTo:(n,t)=>{const o=_0x2299,{panZoom:x}=e[o(1838)]();return x?x[o(1404)](n,t):Promise[o(1762)](!1)},getZoom:()=>e.getState().transform[2],setViewport:async(n,t)=>{const o=_0x2299,{transform:[x,r,i],panZoom:a}=e[o(1838)]();return a?(await a[o(911)]({x:n.x??x,y:n.y??r,zoom:n.zoom??i},t),Promise.resolve(!0)):Promise[o(1762)](!1)},getViewport:()=>{const n=_0x2299,[t,o,x]=e[n(1838)]()[n(1137)];return{x:t,y:o,zoom:x}},setCenter:async(n,t,o)=>{const x=_0x2299;return e[x(1838)]()[x(1317)](n,t,o)},fitBounds:async(n,t)=>{const o=_0x2299,{width:x,height:r,minZoom:i,maxZoom:a,panZoom:u}=e[o(1838)](),s=io(n,x,r,i,a,t?.[o(467)]??.1);return u?(await u.setViewport(s,{duration:t?.[o(833)],ease:t?.[o(949)],interpolate:t?.interpolate}),Promise[o(1762)](!0)):Promise.resolve(!1)},screenToFlowPosition:(n,t={})=>{const o=_0x2299,{transform:x,snapGrid:r,snapToGrid:i,domNode:a}=e[o(1838)]();if(!a)return n;const{x:u,y:s}=a[o(1749)](),d={x:n.x-u,y:n.y-s},f=t[o(1640)]??r,b=t[o(1679)]??i;return ex(d,x,b,f)},flowToScreenPosition:n=>{const t=_0x2299,{transform:o,domNode:x}=e.getState();if(!x)return n;const{x:r,y:i}=x[t(1749)](),a=Rx(n,o);return{x:a.x+r,y:a.y+i}}}),[])};function Qa(e,n){const t=c,o=[],x=new Map,r=[];for(const i of e)if(i[t(1246)]===t(1531)){r[t(557)](i);continue}else if(i[t(1246)]===t(837)||i[t(1246)]===t(490))x[t(1618)](i.id,[i]);else{const a=x[t(953)](i.id);a?a[t(557)](i):x[t(1618)](i.id,[i])}for(const i of n){const a=x[t(953)](i.id);if(!a){o[t(557)](i);continue}if(a[0][t(1246)]===t(837))continue;if(a[0][t(1246)]===t(490)){o[t(557)]({...a[0][t(582)]});continue}const u={...i};for(const s of a)T5(s,u);o[t(557)](u)}return r[t(402)]&&r[t(644)](i=>{const a=t;i.index!==void 0?o[a(1226)](i[a(1066)],0,{...i.item}):o.push({...i.item})}),o}function T5(e,n){const t=c;switch(e.type){case"select":{n.selected=e[t(1660)];break}case t(1388):{typeof e[t(1388)]!==t(1906)&&(n.position=e[t(1388)]),typeof e[t(1033)]!==t(1906)&&(n[t(1033)]=e[t(1033)]);break}case t(591):{typeof e[t(591)]!==t(1906)&&(n.measured={...e[t(591)]},e[t(524)]&&((e[t(524)]===!0||e[t(524)]==="width")&&(n.width=e[t(591)].width),(e[t(524)]===!0||e[t(524)]===t(2035))&&(n[t(2035)]=e[t(591)][t(2035)]))),typeof e[t(2073)]===t(1533)&&(n[t(2073)]=e.resizing);break}}}function $a(e,n){return Qa(e,n)}function ec(e,n){return Qa(e,n)}function et(e,n){return{id:e,type:c(1087),selected:n}}function Ct(e,n=new Set,t=!1){const o=c,x=[];for(const[r,i]of e){const a=n[o(888)](r);!(i[o(1660)]===void 0&&!a)&&i[o(1660)]!==a&&(t&&(i[o(1660)]=a),x[o(557)](et(i.id,a)))}return x}function nc({items:e=[],lookup:n}){const t=c,o=[],x=new Map(e[t(1849)](r=>[r.id,r]));for(const[r,i]of e.entries()){const a=n[t(953)](i.id),u=a?.[t(1570)]?.[t(602)]??a;u!==void 0&&u!==i&&o.push({id:i.id,item:i,type:t(490)}),u===void 0&&o[t(557)]({item:i,type:t(1531),index:r})}for(const[r]of n)x.get(r)===void 0&&o[t(557)]({id:r,type:t(837)});return o}function tc(e){const n=c;return{id:e.id,type:n(837)}}const xc=e=>f2(e),q5=e=>Wi(e);function oc(e){return L.forwardRef(e)}function rc(e){const n=c,[t,o]=L[n(1039)](BigInt(0)),[x]=L.useState(()=>W5(()=>o(r=>r+BigInt(1))));return Bo(()=>{const r=n,i=x[r(953)]();i[r(402)]&&(e(i),x.reset())},[t]),x}function W5(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:t=>{n[_0x2299(557)](t),e()}}}const ic=L[c(636)](null);function X5({children:e}){const n=c,t=Ye(),o=L[n(1974)](u=>{const s=n,{nodes:d=[],setNodes:f,hasDefaultNodes:b,onNodesChange:g,nodeLookup:m,fitViewQueued:h,onNodesChangeMiddlewareMap:p}=t[s(1838)]();let M=d;for(const v of u)M=typeof v===s(404)?v(M):v;let y=nc({items:M,lookup:m});for(const v of p.values())y=v(y);b&&f(M),y[s(402)]>0?g?.(y):h&&window[s(1775)](()=>{const v=s,{fitViewQueued:w,nodes:C,setNodes:S}=t[v(1838)]();w&&S(C)})},[]),x=rc(o),r=L[n(1974)](u=>{const s=n,{edges:d=[],setEdges:f,hasDefaultEdges:b,onEdgesChange:g,edgeLookup:m}=t.getState();let h=d;for(const p of u)h=typeof p===s(404)?p(h):p;b?f(h):g&&g(nc({items:h,lookup:m}))},[]),i=rc(r),a=L[n(1345)](()=>({nodeQueue:x,edgeQueue:i}),[]);return l[n(454)](ic.Provider,{value:a,children:e})}function Z5(){const e=c,n=L[e(2135)](ic);if(!n)throw new Error(e(473));return n}const K5=e=>!!e[c(994)];function Do(){const e=c,n=V5(),t=Ye(),o=Z5(),x=Le(K5),r=L.useMemo(()=>{const i=_0x2299,a=g=>t[i(1838)]()[i(649)][i(953)](g),u=g=>{const m=i;o[m(463)][m(557)](g)},s=g=>{const m=i;o.edgeQueue[m(557)](g)},d=g=>{const m=i,{nodeLookup:h,nodeOrigin:p}=t[m(1838)](),M=xc(g)?g:h[m(953)](g.id),y=M.parentId?$i(M[m(1388)],M.measured,M.parentId,h,p):M[m(1388)],v={...M,position:y,width:M[m(1173)]?.[m(1915)]??M.width,height:M[m(1173)]?.[m(2035)]??M[m(2035)]};return mt(v)},f=(g,m,h={replace:!1})=>{const p=i;u(M=>M[p(1849)](y=>{const v=p;if(y.id===g){const w=typeof m=="function"?m(y):m;return h[v(490)]&&xc(w)?w:{...y,...w}}return y}))},b=(g,m,h={replace:!1})=>{s(p=>p.map(M=>{const y=_0x2299;if(M.id===g){const v=typeof m===y(404)?m(M):m;return h.replace&&q5(v)?v:{...M,...v}}return M}))};return{getNodes:()=>t[i(1838)]()[i(2110)][i(1849)](g=>({...g})),getNode:g=>a(g)?.[i(1570)][i(602)],getInternalNode:a,getEdges:()=>{const g=i,{edges:m=[]}=t[g(1838)]();return m[g(1849)](h=>({...h}))},getEdge:g=>t.getState()[i(455)][i(953)](g),setNodes:u,setEdges:s,addNodes:g=>{const m=i,h=Array[m(2018)](g)?g:[g];o[m(463)][m(557)](p=>[...p,...h])},addEdges:g=>{const m=i,h=Array.isArray(g)?g:[g];o[m(1659)][m(557)](p=>[...p,...h])},toObject:()=>{const g=i,{nodes:m=[],edges:h=[],transform:p}=t[g(1838)](),[M,y,v]=p;return{nodes:m[g(1849)](w=>({...w})),edges:h[g(1849)](w=>({...w})),viewport:{x:M,y,zoom:v}}},deleteElements:async({nodes:g=[],edges:m=[]})=>{const h=i,{nodes:p,edges:M,onNodesDelete:y,onEdgesDelete:v,triggerNodeChanges:w,triggerEdgeChanges:C,onDelete:S,onBeforeDelete:U}=t[h(1838)](),{nodes:G,edges:H}=await m2({nodesToRemove:g,edgesToRemove:m,nodes:p,edges:M,onBeforeDelete:U}),O=H[h(402)]>0,_=G.length>0;if(O){const X=H[h(1849)](tc);v?.(H),C(X)}if(_){const X=G[h(1849)](tc);y?.(G),w(X)}return(_||O)&&S?.({nodes:G,edges:H}),{deletedNodes:G,deletedEdges:H}},getIntersectingNodes:(g,m=!0,h)=>{const p=i,M=Ji(g),y=M?g:d(g),v=h!==void 0;return y?(h||t[p(1838)]().nodes)[p(1211)](w=>{const C=p,S=t.getState()[C(649)].get(w.id);if(S&&!M&&(w.id===g.id||!S[C(1570)].positionAbsolute))return!1;const U=mt(v?w:S),G=Qt(U,y);return m&&G>0||G>=U[C(1915)]*U.height||G>=y[C(1915)]*y[C(2035)]}):[]},isNodeIntersecting:(g,m,h=!0)=>{const p=i,M=Ji(g),y=M?g:d(g);if(!y)return!1;const v=Qt(y,m);return h&&v>0||v>=m[p(1915)]*m[p(2035)]||v>=y[p(1915)]*y[p(2035)]},updateNode:f,updateNodeData:(g,m,h={replace:!1})=>{f(g,p=>{const M=_0x2299,y=typeof m===M(404)?m(p):m;return h[M(490)]?{...p,data:y}:{...p,data:{...p[M(1405)],...y}}},h)},updateEdge:b,updateEdgeData:(g,m,h={replace:!1})=>{b(g,p=>{const M=_0x2299,y=typeof m=="function"?m(p):m;return h[M(490)]?{...p,data:y}:{...p,data:{...p[M(1405)],...y}}},h)},getNodesBounds:g=>{const m=i,{nodeLookup:h,nodeOrigin:p}=t[m(1838)]();return h2(g,{nodeLookup:h,nodeOrigin:p})},getHandleConnections:({type:g,id:m,nodeId:h})=>Array[i(851)](t.getState()[i(1991)][i(953)](h+"-"+g+(m?"-"+m:""))?.[i(1975)]()??[]),getNodeConnections:({type:g,handleId:m,nodeId:h})=>Array.from(t.getState()[i(1991)][i(953)](""+h+(g?m?"-"+g+"-"+m:"-"+g:""))?.[i(1975)]()??[]),fitView:async g=>{const m=i,h=t.getState()[m(662)]??p2();return t.setState({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:h}),o.nodeQueue[m(557)](p=>[...p]),h.promise}}},[]);return L[e(1345)](()=>({...r,...n,viewportInitialized:x}),[x])}const ac=e=>e[c(1660)],R5=typeof window!==c(1906)?window:void 0;function _5({deleteKeyCode:e,multiSelectionKeyCode:n}){const t=c,o=Ye(),{deleteElements:x}=Do(),r=xx(e,{actInsideInputWithModifier:!1}),i=xx(n,{target:R5});L.useEffect(()=>{const a=_0x2299;if(r){const{edges:u,nodes:s}=o.getState();x({nodes:s.filter(ac),edges:u[a(1211)](ac)}),o[a(1834)]({nodesSelectionActive:!1})}},[r]),L[t(856)](()=>{o[t(1834)]({multiSelectionActive:i})},[i])}function J5(e){const n=c,t=Ye();L[n(856)](()=>{const o=n,x=()=>{const r=_0x2299;if(!e[r(1123)]||!(e[r(1123)][r(1808)]?.()??!0))return!1;const i=ao(e[r(1123)]);(i[r(2035)]===0||i[r(1915)]===0)&&t[r(1838)]().onError?.(r(564),en.error004()),t[r(1834)]({width:i.width||500,height:i[r(2035)]||500})};if(e[o(1123)]){x(),window[o(1918)]("resize",x);const r=new ResizeObserver(()=>x());return r[o(682)](e.current),()=>{const i=o;window[i(1561)](i(364),x),r&&e.current&&r[i(1776)](e.current)}}},[])}const x0={position:"absolute",width:c(1826),height:c(1826),top:0,left:0},F5=e=>({userSelectionActive:e[c(1600)],lib:e[c(449)],connectionInProgress:e[c(938)][c(810)]});function Q5({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:t=!0,panOnScroll:o=!1,panOnScrollSpeed:x=.5,panOnScrollMode:r=Fn[c(1184)],zoomOnDoubleClick:i=!0,panOnDrag:a=!0,defaultViewport:u,translateExtent:s,minZoom:d,maxZoom:f,zoomActivationKeyCode:b,preventScrolling:g=!0,children:m,noWheelClassName:h,noPanClassName:p,onViewportChange:M,isControlledViewport:y,paneClickDistance:v,selectionOnDrag:w}){const C=c,S=Ye(),U=L.useRef(null),{userSelectionActive:G,lib:H,connectionInProgress:O}=Le(F5,je),_=xx(b),X=L[C(697)]();J5(U);const q=L.useCallback(T=>{const N=C;M?.({x:T[0],y:T[1],zoom:T[2]}),!y&&S[N(1834)]({transform:T})},[M,y]);return L[C(856)](()=>{const T=C;if(U.current){X[T(1123)]=x5({domNode:U[T(1123)],minZoom:d,maxZoom:f,translateExtent:s,viewport:u,onDraggingChange:A=>S[T(1834)](P=>P[T(912)]===A?P:{paneDragging:A}),onPanZoomStart:(A,P)=>{const I=T,{onViewportChangeStart:Z,onMoveStart:Q}=S[I(1838)]();Q?.(A,P),Z?.(P)},onPanZoom:(A,P)=>{const I=T,{onViewportChange:Z,onMove:Q}=S[I(1838)]();Q?.(A,P),Z?.(P)},onPanZoomEnd:(A,P)=>{const{onViewportChangeEnd:I,onMoveEnd:Z}=S.getState();Z?.(A,P),I?.(P)}});const{x:N,y:D,zoom:B}=X[T(1123)][T(2116)]();return S[T(1834)]({panZoom:X[T(1123)],transform:[N,D,B],domNode:U.current[T(2108)](T(1949))}),()=>{const A=T;X.current?.[A(854)]()}}},[]),L[C(856)](()=>{const T=C;X.current?.[T(1657)]({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:t,panOnScroll:o,panOnScrollSpeed:x,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:a,zoomActivationKeyPressed:_,preventScrolling:g,noPanClassName:p,userSelectionActive:G,noWheelClassName:h,lib:H,onTransformChange:q,connectionInProgress:O,selectionOnDrag:w,paneClickDistance:v})},[e,n,t,o,x,r,i,a,_,g,p,G,h,H,q,O,w,v]),l[C(454)](C(1415),{className:"react-flow__renderer",ref:U,style:x0,children:m})}const $5=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e[c(792)]});function eh(){const e=c,{userSelectionActive:n,userSelectionRect:t}=Le($5,je);return n&&t?l[e(454)](e(1415),{className:e(1308),style:{width:t.width,height:t.height,transform:e(1734)+t.x+e(1700)+t.y+e(462)}}):null}const Lo=(e,n)=>t=>{t[_0x2299(345)]===n.current&&e?.(t)},nh=e=>({userSelectionActive:e[c(1600)],elementsSelectable:e[c(572)],connectionInProgress:e[c(938)][c(810)],dragging:e.paneDragging});function th({isSelecting:e,selectionKeyPressed:n,selectionMode:t=_t.Full,panOnDrag:o,paneClickDistance:x,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:a,onPaneClick:u,onPaneContextMenu:s,onPaneScroll:d,onPaneMouseEnter:f,onPaneMouseMove:b,onPaneMouseLeave:g,children:m}){const h=c,p=Ye(),{userSelectionActive:M,elementsSelectable:y,dragging:v,connectionInProgress:w}=Le(nh,je),C=y&&(e||M),S=L[h(697)](null),U=L.useRef(),G=L.useRef(new Set),H=L[h(697)](new Set),O=L[h(697)](!1),_=P=>{const I=h;if(O[I(1123)]||w){O.current=!1;return}u?.(P),p[I(1838)]()[I(1190)](),p[I(1834)]({nodesSelectionActive:!1})},X=P=>{const I=h;if(Array[I(2018)](o)&&o?.[I(633)](2)){P.preventDefault();return}s?.(P)},q=d?P=>d(P):void 0,T=P=>{const I=h;O[I(1123)]&&(P[I(986)](),O[I(1123)]=!1)},N=P=>{const I=h,{domNode:Z}=p[I(1838)]();if(U[I(1123)]=Z?.[I(1749)](),!U[I(1123)])return;const Q=P[I(345)]===S[I(1123)];if(!Q&&!!P[I(345)].closest(I(538))||!e||!(r&&Q||n)||P[I(1372)]!==0||!P[I(823)])return;P[I(345)]?.[I(1566)]?.(P[I(531)]),O[I(1123)]=!1;const{x:xe,y:ae}=hn(P[I(1892)],U[I(1123)]);p.setState({userSelectionRect:{width:0,height:0,startX:xe,startY:ae,x:xe,y:ae}}),!Q&&(P.stopPropagation(),P[I(1224)]())},D=P=>{const I=h,{userSelectionRect:Z,transform:Q,nodeLookup:J,edgeLookup:$,connectionLookup:xe,triggerNodeChanges:ae,triggerEdgeChanges:le,defaultEdgeOptions:fe,resetSelectedElements:re}=p[I(1838)]();if(!U.current||!Z)return;const{x:K,y:ie}=hn(P[I(1892)],U[I(1123)]),{startX:R,startY:k}=Z;if(!O[I(1123)]){const se=n?0:x;if(Math[I(1472)](K-R,ie-k)<=se)return;re(),i?.(P)}O.current=!0;const j={startX:R,startY:k,x:K<R?K:R,y:ie<k?ie:k,width:Math[I(1494)](K-R),height:Math.abs(ie-k)},W=G[I(1123)],E=H[I(1123)];G.current=new Set(oo(J,j,Q,t===_t[I(1031)],!0)[I(1849)](se=>se.id)),H[I(1123)]=new Set;const oe=fe?.[I(1365)]??!0;for(const se of G[I(1123)]){const ce=xe[I(953)](se);if(ce)for(const{edgeId:be}of ce.values()){const we=$.get(be);we&&(we[I(1365)]??oe)&&H[I(1123)][I(1531)](be)}}if(!ea(W,G[I(1123)])){const se=Ct(J,G[I(1123)],!0);ae(se)}if(!ea(E,H[I(1123)])){const se=Ct($,H[I(1123)]);le(se)}p.setState({userSelectionRect:j,userSelectionActive:!0,nodesSelectionActive:!1})},B=P=>{const I=h;P[I(1372)]===0&&(P.target?.[I(791)]?.(P.pointerId),!M&&P[I(345)]===S.current&&p.getState()[I(792)]&&_?.(P),p.setState({userSelectionActive:!1,userSelectionRect:null}),O[I(1123)]&&(a?.(P),p[I(1834)]({nodesSelectionActive:G[I(1123)][I(413)]>0})))},A=o===!0||Array[h(2018)](o)&&o[h(633)](0);return l.jsxs("div",{className:Oe([h(1386),{draggable:A,dragging:v,selection:e}]),onClick:C?void 0:Lo(_,S),onContextMenu:Lo(X,S),onWheel:Lo(q,S),onPointerEnter:C?void 0:f,onPointerMove:C?D:b,onPointerUp:C?B:void 0,onPointerDownCapture:C?N:void 0,onClickCapture:C?T:void 0,onPointerLeave:g,ref:S,style:x0,children:[m,l[h(454)](eh,{})]})}function No({id:e,store:n,unselect:t=!1,nodeRef:o}){const x=c,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:u,onError:s}=n[x(1838)](),d=u[x(953)](e);if(!d){s?.(x(1948),en[x(1719)](e));return}n.setState({nodesSelectionActive:!1}),d.selected?(t||d.selected&&a)&&(i({nodes:[d],edges:[]}),requestAnimationFrame(()=>o?.[x(1123)]?.blur())):r([e])}function cc({nodeRef:e,disabled:n=!1,noDragClassName:t,handleSelector:o,nodeId:x,isSelectable:r,nodeClickDistance:i}){const a=c,u=Ye(),[s,d]=L[a(1039)](!1),f=L[a(697)]();return L[a(856)](()=>{const b=a;f[b(1123)]=q2({getStoreItems:()=>u.getState(),onNodeMouseDown:g=>{No({id:g,store:u,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),L[a(856)](()=>{const b=a;if(!(n||!e[b(1123)]||!f[b(1123)]))return f[b(1123)].update({noDragClassName:t,handleSelector:o,domNode:e[b(1123)],isSelectable:r,nodeId:x,nodeClickDistance:i}),()=>{f[b(1123)]?.destroy()}},[t,o,n,r,e,x,i]),s}const xh=e=>n=>n.selected&&(n.draggable||e&&typeof n[c(822)]===c(1906));function sc(){const e=c,n=Ye();return L[e(1974)](o=>{const x=e,{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:u,onError:s,updateNodePositions:d,nodeLookup:f,nodeOrigin:b}=n[x(1838)](),g=new Map,m=xh(u),h=i?a[0]:5,p=i?a[1]:5,M=o.direction.x*h*o.factor,y=o[x(1042)].y*p*o.factor;for(const[,v]of f){if(!m(v))continue;let w={x:v.internals[x(1841)].x+M,y:v[x(1570)][x(1841)].y+y};i&&(w=$t(w,a));const{position:C,positionAbsolute:S}=Xi({nodeId:v.id,nextPosition:w,nodeLookup:f,nodeExtent:r,nodeOrigin:b,onError:s});v[x(1388)]=C,v[x(1570)][x(1841)]=S,g[x(1618)](v.id,v)}d(g)},[])}const So=L.createContext(null),oh=So.Provider;So[c(1934)];const lc=()=>L[c(2135)](So),rh=e=>({connectOnClick:e[c(2025)],noPanClassName:e[c(1422)],rfId:e[c(1497)]}),ih=(e,n,t)=>o=>{const x=c,{connectionClickStartHandle:r,connectionMode:i,connection:a}=o,{fromHandle:u,toHandle:s,isValid:d}=a,f=s?.[x(685)]===e&&s?.id===n&&s?.type===t;return{connectingFrom:u?.[x(685)]===e&&u?.id===n&&u?.type===t,connectingTo:f,clickConnecting:r?.[x(685)]===e&&r?.id===n&&r?.[x(1246)]===t,isPossibleEndHandle:i===gt[x(1576)]?u?.[x(1246)]!==t:e!==u?.[x(685)]||n!==u?.id,connectionInProcess:!!u,clickConnectionInProcess:!!r,valid:f&&d}};function ah({type:e="source",position:n=he[c(1891)],isValidConnection:t,isConnectable:o=!0,isConnectableStart:x=!0,isConnectableEnd:r=!0,id:i,onConnect:a,children:u,className:s,onMouseDown:d,onTouchStart:f,...b},g){const m=c,h=i||null,p=e===m(345),M=Ye(),y=lc(),{connectOnClick:v,noPanClassName:w,rfId:C}=Le(rh,je),{connectingFrom:S,connectingTo:U,clickConnecting:G,isPossibleEndHandle:H,connectionInProcess:O,clickConnectionInProcess:_,valid:X}=Le(ih(y,h,e),je);!y&&M.getState().onError?.(m(1859),en.error010());const q=D=>{const B=m,{defaultEdgeOptions:A,onConnect:P,hasDefaultEdges:I}=M[B(1838)](),Z={...A,...D};if(I){const{edges:Q,setEdges:J}=M[B(1838)]();J(sa(Z,Q))}P?.(Z),a?.(Z)},T=D=>{const B=m;if(!y)return;const A=xa(D.nativeEvent);if(x&&(A&&D[B(1372)]===0||!A)){const P=M[B(1838)]();mo.onPointerDown(D[B(1892)],{handleDomNode:D[B(2124)],autoPanOnConnect:P[B(485)],connectionMode:P[B(1143)],connectionRadius:P[B(1971)],domNode:P[B(1963)],nodeLookup:P[B(649)],lib:P[B(449)],isTarget:p,handleId:h,nodeId:y,flowId:P[B(1497)],panBy:P[B(617)],cancelConnection:P[B(2079)],onConnectStart:P[B(1107)],onConnectEnd:(...I)=>M.getState()[B(1631)]?.(...I),updateConnection:P[B(935)],onConnect:q,isValidConnection:t||((...I)=>M[B(1838)]()[B(1156)]?.(...I)??!0),getTransform:()=>M[B(1838)]()[B(1137)],getFromHandle:()=>M[B(1838)]()[B(938)][B(1580)],autoPanSpeed:P[B(1353)],dragThreshold:P[B(348)]})}A?d?.(D):f?.(D)},N=D=>{const B=m,{onClickConnectStart:A,onClickConnectEnd:P,connectionClickStartHandle:I,connectionMode:Z,isValidConnection:Q,lib:J,rfId:$,nodeLookup:xe,connection:ae}=M.getState();if(!y||!I&&!x)return;if(!I){A?.(D[B(1892)],{nodeId:y,handleId:h,handleType:e}),M[B(1834)]({connectionClickStartHandle:{nodeId:y,type:e,id:h}});return}const le=na(D.target),fe=t||Q,{connection:re,isValid:K}=mo.isValid(D[B(1892)],{handle:{nodeId:y,id:h,type:e},connectionMode:Z,fromNodeId:I.nodeId,fromHandleId:I.id||null,fromType:I[B(1246)],isValidConnection:fe,flowId:$,doc:le,lib:J,nodeLookup:xe});K&&re&&q(re);const ie=structuredClone(ae);delete ie[B(810)],ie.toPosition=ie.toHandle?ie[B(1585)][B(1388)]:null,P?.(D,ie),M.setState({connectionClickStartHandle:null})};return l[m(454)](m(1415),{"data-handleid":h,"data-nodeid":y,"data-handlepos":n,"data-id":C+"-"+y+"-"+h+"-"+e,className:Oe([m(712),m(1522)+n,m(1055),w,s,{source:!p,target:p,connectable:o,connectablestart:x,connectableend:r,clickconnecting:G,connectingfrom:S,connectingto:U,valid:X,connectionindicator:o&&(!O||H)&&(O||_?r:x)}]),onMouseDown:T,onTouchStart:T,onClick:v?N:void 0,ref:g,...b,children:u})}const Mt=L[c(956)](oc(ah));function ch({data:e,isConnectable:n,sourcePosition:t=he[c(1311)]}){const o=c;return l[o(2088)](l[o(562)],{children:[e?.[o(700)],l[o(454)](Mt,{type:"source",position:t,isConnectable:n})]})}function sh({data:e,isConnectable:n,targetPosition:t=he[c(1891)],sourcePosition:o=he[c(1311)]}){const x=c;return l[x(2088)](l[x(562)],{children:[l.jsx(Mt,{type:x(345),position:t,isConnectable:n}),e?.[x(700)],l[x(454)](Mt,{type:"source",position:o,isConnectable:n})]})}function lh(){return null}function dh({data:e,isConnectable:n,targetPosition:t=he[c(1891)]}){const o=c;return l[o(2088)](l[o(562)],{children:[l[o(454)](Mt,{type:o(345),position:t,isConnectable:n}),e?.[o(700)]]})}const o0={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},dc={input:ch,default:sh,output:dh,group:lh};function uh(e){const n=c;return e[n(1570)][n(1888)]===void 0?{width:e[n(1915)]??e[n(2096)]??e[n(799)]?.[n(1915)],height:e[n(2035)]??e[n(773)]??e.style?.height}:{width:e[n(1915)]??e[n(799)]?.width,height:e[n(2035)]??e[n(799)]?.height}}const fh=e=>{const n=c,{width:t,height:o,x,y:r}=Ft(e[n(649)],{filter:i=>!!i[n(1660)]});return{width:fn(t)?t:null,height:fn(o)?o:null,userSelectionActive:e[n(1600)],transformString:n(1734)+e[n(1137)][0]+"px,"+e[n(1137)][1]+n(1287)+e[n(1137)][2]+n(884)+x+"px,"+r+"px)"}};function hh({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:t}){const o=c,x=Ye(),{width:r,height:i,transformString:a,userSelectionActive:u}=Le(fh,je),s=sc(),d=L[o(697)](null);L[o(856)](()=>{const m=o;!t&&d[m(1123)]?.[m(399)]({preventScroll:!0})},[t]);const f=!u&&r!==null&&i!==null;if(cc({nodeRef:d,disabled:!f}),!f)return null;const b=e?m=>{const h=o,p=x.getState()[h(2110)][h(1211)](M=>M[h(1660)]);e(m,p)}:void 0,g=m=>{const h=o;Object[h(1197)][h(1607)][h(667)](o0,m[h(1789)])&&(m[h(1224)](),s({direction:o0[m.key],factor:m[h(2152)]?4:1}))};return l[o(454)](o(1415),{className:Oe([o(1454),o(1109),n]),style:{transform:a},children:l.jsx(o(1415),{ref:d,className:o(1627),onContextMenu:b,tabIndex:t?void 0:-1,onKeyDown:t?void 0:g,style:{width:r,height:i}})})}const uc=typeof window!==c(1906)?window:void 0,bh=e=>({nodesSelectionActive:e[c(706)],userSelectionActive:e.userSelectionActive});function fc({children:e,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:a,deleteKeyCode:u,selectionKeyCode:s,selectionOnDrag:d,selectionMode:f,onSelectionStart:b,onSelectionEnd:g,multiSelectionKeyCode:m,panActivationKeyCode:h,zoomActivationKeyCode:p,elementsSelectable:M,zoomOnScroll:y,zoomOnPinch:v,panOnScroll:w,panOnScrollSpeed:C,panOnScrollMode:S,zoomOnDoubleClick:U,panOnDrag:G,defaultViewport:H,translateExtent:O,minZoom:_,maxZoom:X,preventScrolling:q,onSelectionContextMenu:T,noWheelClassName:N,noPanClassName:D,disableKeyboardA11y:B,onViewportChange:A,isControlledViewport:P}){const I=c,{nodesSelectionActive:Z,userSelectionActive:Q}=Le(bh,je),J=xx(s,{target:uc}),$=xx(h,{target:uc}),xe=$||G,ae=$||w,le=d&&xe!==!0,fe=J||Q||le;return _5({deleteKeyCode:u,multiSelectionKeyCode:m}),l[I(454)](Q5,{onPaneContextMenu:r,elementsSelectable:M,zoomOnScroll:y,zoomOnPinch:v,panOnScroll:ae,panOnScrollSpeed:C,panOnScrollMode:S,zoomOnDoubleClick:U,panOnDrag:!J&&xe,defaultViewport:H,translateExtent:O,minZoom:_,maxZoom:X,zoomActivationKeyCode:p,preventScrolling:q,noWheelClassName:N,noPanClassName:D,onViewportChange:A,isControlledViewport:P,paneClickDistance:a,selectionOnDrag:le,children:l[I(2088)](th,{onSelectionStart:b,onSelectionEnd:g,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:xe,isSelecting:!!fe,selectionMode:f,selectionKeyPressed:J,paneClickDistance:a,selectionOnDrag:le,children:[e,Z&&l[I(454)](hh,{onSelectionContextMenu:T,noPanClassName:D,disableKeyboardA11y:B})]})})}fc[c(952)]="FlowRenderer";const gh=L.memo(fc),yh=e=>n=>{const t=c;return e?oo(n[t(649)],{x:0,y:0,width:n[t(1915)],height:n[t(2035)]},n[t(1137)],!0)[t(1849)](o=>o.id):Array[t(851)](n[t(649)][t(771)]())};function mh(e){return Le(L[c(1974)](yh(e),[e]),je)}const wh=e=>e.updateNodeInternals;function vh(){const e=c,n=Le(wh),[t]=L[e(1039)](()=>{const o=e;return typeof ResizeObserver===o(1906)?null:new ResizeObserver(x=>{const r=o,i=new Map;x[r(644)](a=>{const u=r,s=a[u(345)][u(2149)](u(692));i.set(s,{id:s,nodeElement:a.target,force:!0})}),n(i)})});return L.useEffect(()=>()=>{t?.[_0x2299(993)]()},[t]),t}function ph({node:e,nodeType:n,hasDimensions:t,resizeObserver:o}){const x=c,r=Ye(),i=L[x(697)](null),a=L.useRef(null),u=L.useRef(e[x(777)]),s=L[x(697)](e[x(1068)]),d=L[x(697)](n),f=t&&!!e.internals[x(1888)];return L[x(856)](()=>{const b=x;i[b(1123)]&&!e[b(2094)]&&(!f||a[b(1123)]!==i[b(1123)])&&(a[b(1123)]&&o?.[b(1776)](a.current),o?.[b(682)](i[b(1123)]),a.current=i[b(1123)])},[f,e[x(2094)]]),L.useEffect(()=>()=>{const b=_0x2299;a[b(1123)]&&(o?.[b(1776)](a.current),a.current=null)},[]),L[x(856)](()=>{const b=x;if(i[b(1123)]){const g=d[b(1123)]!==n,m=u.current!==e[b(777)],h=s[b(1123)]!==e[b(1068)];(g||m||h)&&(d.current=n,u[b(1123)]=e.sourcePosition,s[b(1123)]=e[b(1068)],r[b(1838)]().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i[b(1123)],force:!0}]])))}},[e.id,n,e.sourcePosition,e[x(1068)]]),i}function zh({id:e,onClick:n,onMouseEnter:t,onMouseMove:o,onMouseLeave:x,onContextMenu:r,onDoubleClick:i,nodesDraggable:a,elementsSelectable:u,nodesConnectable:s,nodesFocusable:d,resizeObserver:f,noDragClassName:b,noPanClassName:g,disableKeyboardA11y:m,rfId:h,nodeTypes:p,nodeClickDistance:M,onError:y}){const v=c,{node:w,internals:C,isParent:S}=Le(re=>{const K=_0x2299,ie=re[K(649)].get(e),R=re.parentLookup.has(e);return{node:ie,internals:ie[K(1570)],isParent:R}},je);let U=w[v(1246)]||v(795),G=p?.[U]||dc[U];G===void 0&&(y?.(v(1936),en.error003(U)),U="default",G=p?.[v(795)]||dc[v(795)]);const H=!!(w[v(822)]||a&&typeof w[v(822)]>"u"),O=!!(w[v(1365)]||u&&typeof w.selectable===v(1906)),_=!!(w[v(2046)]||s&&typeof w[v(2046)]>"u"),X=!!(w.focusable||d&&typeof w[v(749)]===v(1906)),q=Ye(),T=Qi(w),N=ph({node:w,nodeType:U,hasDimensions:T,resizeObserver:f}),D=cc({nodeRef:N,disabled:w.hidden||!H,noDragClassName:b,handleSelector:w[v(410)],nodeId:e,isSelectable:O,nodeClickDistance:M}),B=sc();if(w.hidden)return null;const A=Pn(w),P=uh(w),I=O||H||n||t||o||x,Z=t?re=>t(re,{...C.userNode}):void 0,Q=o?re=>o(re,{...C.userNode}):void 0,J=x?re=>x(re,{...C[v(602)]}):void 0,$=r?re=>r(re,{...C.userNode}):void 0,xe=i?re=>i(re,{...C[v(602)]}):void 0,ae=re=>{const K=v,{selectNodesOnDrag:ie,nodeDragThreshold:R}=q.getState();O&&(!ie||!H||R>0)&&No({id:e,store:q,nodeRef:N}),n&&n(re,{...C[K(602)]})},le=re=>{const K=v;if(!(ta(re[K(1892)])||m)){if(Gi[K(633)](re[K(1789)])&&O){const ie=re[K(1789)]===K(757);No({id:e,store:q,unselect:ie,nodeRef:N})}else if(H&&w.selected&&Object[K(1197)].hasOwnProperty[K(667)](o0,re.key)){re[K(1224)]();const{ariaLabelConfig:ie}=q[K(1838)]();q[K(1834)]({ariaLiveMessage:ie[K(474)]({direction:re[K(1789)][K(490)]("Arrow","")[K(579)](),x:~~C[K(1841)].x,y:~~C[K(1841)].y})}),B({direction:o0[re[K(1789)]],factor:re[K(2152)]?4:1})}}},fe=()=>{const re=v;if(m||!N[re(1123)]?.[re(2141)](":focus-visible"))return;const{transform:K,width:ie,height:R,autoPanOnNodeFocus:k,setCenter:j}=q[re(1838)]();if(!k)return;!(oo(new Map([[e,w]]),{x:0,y:0,width:ie,height:R},K,!0)[re(402)]>0)&&j(w.position.x+A[re(1915)]/2,w[re(1388)].y+A[re(2035)]/2,{zoom:K[2]})};return l.jsx("div",{className:Oe([v(2012),v(1875)+U,{[g]:H},w.className,{selected:w[v(1660)],selectable:O,parent:S,draggable:H,dragging:D}]),ref:N,style:{zIndex:C.z,transform:"translate("+C[v(1841)].x+v(1469)+C.positionAbsolute.y+"px)",pointerEvents:v(I?1530:1795),visibility:T?"visible":"hidden",...w.style,...P},"data-id":e,"data-testid":v(1037)+e,onMouseEnter:Z,onMouseMove:Q,onMouseLeave:J,onContextMenu:$,onClick:ae,onDoubleClick:xe,onKeyDown:X?le:void 0,tabIndex:X?0:void 0,onFocus:X?fe:void 0,role:w[v(1946)]??(X?"group":void 0),"aria-roledescription":v(1855),"aria-describedby":m?void 0:qa+"-"+h,"aria-label":w.ariaLabel,...w[v(2093)],children:l[v(454)](oh,{value:e,children:l[v(454)](G,{id:e,data:w[v(1405)],type:U,positionAbsoluteX:C[v(1841)].x,positionAbsoluteY:C[v(1841)].y,selected:w[v(1660)]??!1,selectable:O,draggable:H,deletable:w[v(1539)]??!0,isConnectable:_,sourcePosition:w.sourcePosition,targetPosition:w[v(1068)],dragging:D,dragHandle:w[v(410)],zIndex:C.z,parentId:w[v(1326)],...A})})})}var Ch=L[c(956)](zh);const Mh=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e[c(809)],nodesFocusable:e[c(913)],elementsSelectable:e[c(572)],onError:e[c(720)]});function hc(e){const n=c,{nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,onError:i}=Le(Mh,je),a=mh(e[n(895)]),u=vh();return l[n(454)](n(1415),{className:n(921),style:x0,children:a.map(s=>{const d=n;return l[d(454)](Ch,{id:s,nodeTypes:e[d(1900)],nodeExtent:e[d(2121)],onClick:e[d(1319)],onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e[d(2045)],onDoubleClick:e[d(1721)],noDragClassName:e[d(853)],noPanClassName:e[d(1422)],rfId:e[d(1497)],disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:u,nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,nodeClickDistance:e[d(497)],onError:i},s)})})}hc[c(952)]="NodeRenderer";const Bh=L[c(956)](hc);function Dh(e){const n=c;return Le(L[n(1974)](o=>{const x=n;if(!e)return o[x(943)].map(i=>i.id);const r=[];if(o[x(1915)]&&o.height)for(const i of o[x(943)]){const a=o.nodeLookup[x(953)](i[x(1717)]),u=o.nodeLookup[x(953)](i[x(345)]);a&&u&&B2({sourceNode:a,targetNode:u,width:o.width,height:o[x(2035)],transform:o[x(1137)]})&&r[x(557)](i.id)}return r},[e]),je)}const Lh=({color:e=c(1795),strokeWidth:n=1})=>{const t=c,o={strokeWidth:n,...e&&{stroke:e}};return l[t(454)]("polyline",{className:t(742),style:o,strokeLinecap:t(392),fill:t(1795),strokeLinejoin:"round",points:t(1804)})},Nh=({color:e=c(1795),strokeWidth:n=1})=>{const t=c,o={strokeWidth:n,...e&&{stroke:e,fill:e}};return l.jsx(t(1852),{className:t(1316),style:o,strokeLinecap:"round",strokeLinejoin:"round",points:t(1106)})},bc={[Wx.Arrow]:Lh,[Wx[c(872)]]:Nh};function Sh(e){const n=Ye();return L.useMemo(()=>{const o=_0x2299;return Object[o(1197)][o(1607)][o(667)](bc,e)?bc[e]:(n[o(1838)]()[o(720)]?.(o(2101),en[o(1907)](e)),null)},[e])}const kh=({id:e,type:n,color:t,width:o=12.5,height:x=12.5,markerUnits:r="strokeWidth",strokeWidth:i,orient:a="auto-start-reverse"})=>{const u=c,s=Sh(n);return s?l[u(454)](u(736),{className:"react-flow__arrowhead",id:e,markerWidth:""+o,markerHeight:""+x,viewBox:"-10 -10 20 20",markerUnits:r,orient:a,refX:"0",refY:"0",children:l[u(454)](s,{color:t,strokeWidth:i})}):null},gc=({defaultColor:e,rfId:n})=>{const t=c,o=Le(i=>i[t(943)]),x=Le(i=>i.defaultEdgeOptions),r=L.useMemo(()=>I2(o,{id:n,defaultColor:e,defaultMarkerStart:x?.[t(1887)],defaultMarkerEnd:x?.markerEnd}),[o,x,n,e]);return r.length?l[t(454)]("svg",{className:t(580),"aria-hidden":t(1403),children:l[t(454)](t(2038),{children:r[t(1849)](i=>l[t(454)](kh,{id:i.id,type:i[t(1246)],color:i[t(608)],width:i[t(1915)],height:i[t(2035)],markerUnits:i[t(1869)],strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};gc.displayName=c(1150);var Ph=L[c(956)](gc);function yc({x:e,y:n,label:t,labelStyle:o,labelShowBg:x=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:a=2,children:u,className:s,...d}){const f=c,[b,g]=L[f(1039)]({x:1,y:0,width:0,height:0}),m=Oe(["react-flow__edge-textwrapper",s]),h=L[f(697)](null);return L[f(856)](()=>{const p=f;if(h[p(1123)]){const M=h[p(1123)][p(574)]();g({x:M.x,y:M.y,width:M.width,height:M[p(2035)]})}},[t]),t?l[f(2088)]("g",{transform:f(1734)+(e-b[f(1915)]/2)+" "+(n-b[f(2035)]/2)+")",className:m,visibility:b[f(1915)]?"visible":f(2094),...d,children:[x&&l[f(454)](f(1254),{width:b[f(1915)]+2*i[0],x:-i[0],y:-i[1],height:b[f(2035)]+2*i[1],className:"react-flow__edge-textbg",style:r,rx:a,ry:a}),l.jsx(f(1083),{className:"react-flow__edge-text",y:b[f(2035)]/2,dy:f(585),ref:h,style:o,children:t}),u]}):null}yc[c(952)]=c(1400);const Ih=L[c(956)](yc);function r0({path:e,labelX:n,labelY:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:u,interactionWidth:s=20,...d}){const f=c;return l.jsxs(l[f(562)],{children:[l[f(454)](f(1773),{...d,d:e,fill:"none",className:Oe(["react-flow__edge-path",d[f(587)]])}),s?l[f(454)](f(1773),{d:e,fill:f(1795),strokeOpacity:0,strokeWidth:s,className:"react-flow__edge-interaction"}):null,o&&fn(n)&&fn(t)?l[f(454)](Ih,{x:n,y:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:u}):null]})}function mc({pos:e,x1:n,y1:t,x2:o,y2:x}){const r=c;return e===he[r(1437)]||e===he[r(1691)]?[.5*(n+o),t]:[n,.5*(t+x)]}function wc({sourceX:e,sourceY:n,sourcePosition:t=he[c(1311)],targetX:o,targetY:x,targetPosition:r=he[c(1891)]}){const[i,a]=mc({pos:t,x1:e,y1:n,x2:o,y2:x}),[u,s]=mc({pos:r,x1:o,y1:x,x2:e,y2:n}),[d,f,b,g]=ra({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:i,sourceControlY:a,targetControlX:u,targetControlY:s});return["M"+e+","+n+" C"+i+","+a+" "+u+","+s+" "+o+","+x,d,f,b,g]}function vc(e){return L.memo(({id:n,sourceX:t,sourceY:o,targetX:x,targetY:r,sourcePosition:i,targetPosition:a,label:u,labelStyle:s,labelShowBg:d,labelBgStyle:f,labelBgPadding:b,labelBgBorderRadius:g,style:m,markerEnd:h,markerStart:p,interactionWidth:M})=>{const y=_0x2299,[v,w,C]=wc({sourceX:t,sourceY:o,sourcePosition:i,targetX:x,targetY:r,targetPosition:a}),S=e[y(991)]?void 0:n;return l[y(454)](r0,{id:S,path:v,labelX:w,labelY:C,label:u,labelStyle:s,labelShowBg:d,labelBgStyle:f,labelBgPadding:b,labelBgBorderRadius:g,style:m,markerEnd:h,markerStart:p,interactionWidth:M})})}const Ah=vc({isInternal:!1}),pc=vc({isInternal:!0});Ah[c(952)]=c(403),pc[c(952)]=c(2126);function zc(e){const n=c;return L[n(956)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:a,labelStyle:u,labelShowBg:s,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:b,style:g,sourcePosition:m=he[n(1311)],targetPosition:h=he.Top,markerEnd:p,markerStart:M,pathOptions:y,interactionWidth:v})=>{const w=n,[C,S,U]=co({sourceX:o,sourceY:x,sourcePosition:m,targetX:r,targetY:i,targetPosition:h,borderRadius:y?.[w(1899)],offset:y?.[w(1446)],stepPosition:y?.[w(751)]}),G=e.isInternal?void 0:t;return l.jsx(r0,{id:G,path:C,labelX:S,labelY:U,label:a,labelStyle:u,labelShowBg:s,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:b,style:g,markerEnd:p,markerStart:M,interactionWidth:v})})}const Cc=zc({isInternal:!1}),Mc=zc({isInternal:!0});Cc[c(952)]=c(1296),Mc[c(952)]=c(408);function Bc(e){const n=c;return L[n(956)](({id:t,...o})=>{const x=n,r=e[x(991)]?void 0:t;return l.jsx(Cc,{...o,id:r,pathOptions:L[x(1345)](()=>({borderRadius:0,offset:o[x(536)]?.[x(1446)]}),[o[x(536)]?.offset])})})}const jh=Bc({isInternal:!1}),Dc=Bc({isInternal:!0});jh[c(952)]="StepEdge",Dc[c(952)]=c(1217);function Lc(e){return L.memo(({id:n,sourceX:t,sourceY:o,targetX:x,targetY:r,label:i,labelStyle:a,labelShowBg:u,labelBgStyle:s,labelBgPadding:d,labelBgBorderRadius:f,style:b,markerEnd:g,markerStart:m,interactionWidth:h})=>{const p=_0x2299,[M,y,v]=la({sourceX:t,sourceY:o,targetX:x,targetY:r}),w=e[p(991)]?void 0:n;return l[p(454)](r0,{id:w,path:M,labelX:y,labelY:v,label:i,labelStyle:a,labelShowBg:u,labelBgStyle:s,labelBgPadding:d,labelBgBorderRadius:f,style:b,markerEnd:g,markerStart:m,interactionWidth:h})})}const Yh=Lc({isInternal:!1}),Nc=Lc({isInternal:!0});Yh[c(952)]=c(1793),Nc.displayName=c(665);function Sc(e){const n=c;return L[n(956)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a=he[n(1311)],targetPosition:u=he[n(1891)],label:s,labelStyle:d,labelShowBg:f,labelBgStyle:b,labelBgPadding:g,labelBgBorderRadius:m,style:h,markerEnd:p,markerStart:M,pathOptions:y,interactionWidth:v})=>{const w=n,[C,S,U]=aa({sourceX:o,sourceY:x,sourcePosition:a,targetX:r,targetY:i,targetPosition:u,curvature:y?.curvature}),G=e[w(991)]?void 0:t;return l.jsx(r0,{id:G,path:C,labelX:S,labelY:U,label:s,labelStyle:d,labelShowBg:f,labelBgStyle:b,labelBgPadding:g,labelBgBorderRadius:m,style:h,markerEnd:p,markerStart:M,interactionWidth:v})})}const Eh=Sc({isInternal:!1}),kc=Sc({isInternal:!0});Eh[c(952)]=c(748),kc[c(952)]=c(818);const Pc={default:kc,straight:Nc,step:Dc,smoothstep:Mc,simplebezier:pc},Ic={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Uh=(e,n,t)=>{const o=c;return t===he.Left?e-n:t===he[o(1691)]?e+n:e},Oh=(e,n,t)=>{const o=c;return t===he[o(1891)]?e-n:t===he[o(1311)]?e+n:e},Ac=c(1924);function jc({position:e,centerX:n,centerY:t,radius:o=10,onMouseDown:x,onMouseEnter:r,onMouseOut:i,type:a}){const u=c;return l[u(454)](u(907),{onMouseDown:x,onMouseEnter:r,onMouseOut:i,className:Oe([Ac,Ac+"-"+a]),cx:Uh(n,o,e),cy:Oh(t,o,e),r:o,stroke:"transparent",fill:u(1436)})}function Gh({isReconnectable:e,reconnectRadius:n,edge:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a,targetPosition:u,onReconnect:s,onReconnectStart:d,onReconnectEnd:f,setReconnecting:b,setUpdateHover:g}){const m=c,h=Ye(),p=(C,S)=>{const U=_0x2299;if(C[U(1372)]!==0)return;const{autoPanOnConnect:G,domNode:H,connectionMode:O,connectionRadius:_,lib:X,onConnectStart:q,cancelConnection:T,nodeLookup:N,rfId:D,panBy:B,updateConnection:A}=h[U(1838)](),P=S[U(1246)]===U(345),I=(J,$)=>{const xe=U;b(!1),f?.(J,t,S[xe(1246)],$)},Z=J=>s?.(t,J),Q=(J,$)=>{b(!0),d?.(C,t,S.type),q?.(J,$)};mo[U(891)](C[U(1892)],{autoPanOnConnect:G,connectionMode:O,connectionRadius:_,domNode:H,handleId:S.id,nodeId:S.nodeId,nodeLookup:N,isTarget:P,edgeUpdaterType:S[U(1246)],lib:X,flowId:D,cancelConnection:T,panBy:B,isValidConnection:(...J)=>h[U(1838)]()[U(1156)]?.(...J)??!0,onConnect:Z,onConnectStart:Q,onConnectEnd:(...J)=>h.getState()[U(1631)]?.(...J),onReconnectEnd:I,updateConnection:A,getTransform:()=>h[U(1838)]()[U(1137)],getFromHandle:()=>h.getState()[U(938)][U(1580)],dragThreshold:h.getState().connectionDragThreshold,handleDomNode:C.currentTarget})},M=C=>p(C,{nodeId:t[m(345)],id:t.targetHandle??null,type:m(345)}),y=C=>p(C,{nodeId:t[m(1717)],id:t.sourceHandle??null,type:m(1717)}),v=()=>g(!0),w=()=>g(!1);return l[m(2088)](l[m(562)],{children:[(e===!0||e==="source")&&l[m(454)](jc,{position:a,centerX:o,centerY:x,radius:n,onMouseDown:M,onMouseEnter:v,onMouseOut:w,type:"source"}),(e===!0||e===m(345))&&l[m(454)](jc,{position:u,centerX:r,centerY:i,radius:n,onMouseDown:y,onMouseEnter:v,onMouseOut:w,type:"target"})]})}function Hh({id:e,edgesFocusable:n,edgesReconnectable:t,elementsSelectable:o,onClick:x,onDoubleClick:r,onContextMenu:i,onMouseEnter:a,onMouseMove:u,onMouseLeave:s,reconnectRadius:d,onReconnect:f,onReconnectStart:b,onReconnectEnd:g,rfId:m,edgeTypes:h,noPanClassName:p,onError:M,disableKeyboardA11y:y}){const v=c;let w=Le(k=>k[v(455)][v(953)](e));const C=Le(k=>k.defaultEdgeOptions);w=C?{...C,...w}:w;let S=w.type||v(795),U=h?.[S]||Pc[S];U===void 0&&(M?.(v(1674),en.error011(S)),S="default",U=h?.[v(795)]||Pc[v(795)]);const G=!!(w[v(749)]||n&&typeof w.focusable>"u"),H=typeof f!==v(1906)&&(w.reconnectable||t&&typeof w[v(501)]===v(1906)),O=!!(w[v(1365)]||o&&typeof w[v(1365)]===v(1906)),_=L[v(697)](null),[X,q]=L[v(1039)](!1),[T,N]=L[v(1039)](!1),D=Ye(),{zIndex:B,sourceX:A,sourceY:P,targetX:I,targetY:Z,sourcePosition:Q,targetPosition:J}=Le(L[v(1974)](k=>{const j=v,W=k[j(649)].get(w[j(1717)]),E=k[j(649)][j(953)](w[j(345)]);if(!W||!E)return{zIndex:w[j(1445)],...Ic};const oe=P2({id:e,sourceNode:W,targetNode:E,sourceHandle:w[j(378)]||null,targetHandle:w.targetHandle||null,connectionMode:k[j(1143)],onError:M});return{zIndex:M2({selected:w[j(1660)],zIndex:w[j(1445)],sourceNode:W,targetNode:E,elevateOnSelect:k.elevateEdgesOnSelect,zIndexMode:k[j(1310)]}),...oe||Ic}},[w.source,w[v(345)],w[v(378)],w[v(1115)],w[v(1660)],w[v(1445)]]),je),$=L.useMemo(()=>w[v(1887)]?v(337)+so(w[v(1887)],m)+"')":void 0,[w.markerStart,m]),xe=L[v(1345)](()=>w[v(1750)]?v(337)+so(w[v(1750)],m)+"')":void 0,[w[v(1750)],m]);if(w[v(2094)]||A===null||P===null||I===null||Z===null)return null;const ae=k=>{const j=v,{addSelectedEdges:W,unselectNodesAndEdges:E,multiSelectionActive:oe}=D[j(1838)]();O&&(D[j(1834)]({nodesSelectionActive:!1}),w.selected&&oe?(E({nodes:[],edges:[w]}),_[j(1123)]?.[j(839)]()):W([e])),x&&x(k,w)},le=r?k=>{r(k,{...w})}:void 0,fe=i?k=>{i(k,{...w})}:void 0,re=a?k=>{a(k,{...w})}:void 0,K=u?k=>{u(k,{...w})}:void 0,ie=s?k=>{s(k,{...w})}:void 0,R=k=>{const j=v;if(!y&&Gi[j(633)](k[j(1789)])&&O){const{unselectNodesAndEdges:W,addSelectedEdges:E}=D[j(1838)]();k[j(1789)]===j(757)?(_.current?.[j(839)](),W({edges:[w]})):E([e])}};return l.jsx(v(1171),{style:{zIndex:B},children:l[v(2088)]("g",{className:Oe([v(670),v(1488)+S,w.className,p,{selected:w[v(1660)],animated:w.animated,inactive:!O&&!x,updating:X,selectable:O}]),onClick:ae,onDoubleClick:le,onContextMenu:fe,onMouseEnter:re,onMouseMove:K,onMouseLeave:ie,onKeyDown:G?R:void 0,tabIndex:G?0:void 0,role:w[v(1946)]??(G?"group":"img"),"aria-roledescription":v(1366),"data-id":e,"data-testid":v(534)+e,"aria-label":w[v(1188)]===null?void 0:w[v(1188)]||v(1059)+w.source+v(1553)+w[v(345)],"aria-describedby":G?Wa+"-"+m:void 0,ref:_,...w[v(2093)],children:[!T&&l.jsx(U,{id:e,source:w[v(1717)],target:w.target,type:w[v(1246)],selected:w[v(1660)],animated:w[v(1088)],selectable:O,deletable:w[v(1539)]??!0,label:w[v(700)],labelStyle:w.labelStyle,labelShowBg:w[v(1911)],labelBgStyle:w[v(451)],labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w[v(1097)],sourceX:A,sourceY:P,targetX:I,targetY:Z,sourcePosition:Q,targetPosition:J,data:w[v(1405)],style:w[v(799)],sourceHandleId:w.sourceHandle,targetHandleId:w[v(1115)],markerStart:$,markerEnd:xe,pathOptions:v(536)in w?w[v(536)]:void 0,interactionWidth:w[v(346)]}),H&&l[v(454)](Gh,{edge:w,isReconnectable:H,reconnectRadius:d,onReconnect:f,onReconnectStart:b,onReconnectEnd:g,sourceX:A,sourceY:P,targetX:I,targetY:Z,sourcePosition:Q,targetPosition:J,setUpdateHover:q,setReconnecting:N})]})})}var Vh=L.memo(Hh);const Th=e=>({edgesFocusable:e[c(1408)],edgesReconnectable:e[c(1284)],elementsSelectable:e[c(572)],connectionMode:e[c(1143)],onError:e[c(720)]});function Yc({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:t,edgeTypes:o,noPanClassName:x,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:a,onEdgeMouseMove:u,onEdgeMouseLeave:s,onEdgeClick:d,reconnectRadius:f,onEdgeDoubleClick:b,onReconnectStart:g,onReconnectEnd:m,disableKeyboardA11y:h}){const p=c,{edgesFocusable:M,edgesReconnectable:y,elementsSelectable:v,onError:w}=Le(Th,je),C=Dh(n);return l.jsxs("div",{className:p(361),children:[l[p(454)](Ph,{defaultColor:e,rfId:t}),C[p(1849)](S=>l[p(454)](Vh,{id:S,edgesFocusable:M,edgesReconnectable:y,elementsSelectable:v,noPanClassName:x,onReconnect:r,onContextMenu:i,onMouseEnter:a,onMouseMove:u,onMouseLeave:s,onClick:d,reconnectRadius:f,onDoubleClick:b,onReconnectStart:g,onReconnectEnd:m,rfId:t,onError:w,edgeTypes:o,disableKeyboardA11y:h},S))]})}Yc.displayName="EdgeRenderer";const qh=L[c(956)](Yc),Wh=e=>c(1734)+e[c(1137)][0]+c(1469)+e[c(1137)][1]+"px) scale("+e[c(1137)][2]+")";function Xh({children:e}){const n=c,t=Le(Wh);return l.jsx(n(1415),{className:n(498),style:{transform:t},children:e})}function Zh(e){const n=c,t=Do(),o=L[n(697)](!1);L[n(856)](()=>{const x=n;!o[x(1123)]&&t[x(1884)]&&e&&(setTimeout(()=>e(t),1),o[x(1123)]=!0)},[e,t.viewportInitialized])}const Kh=e=>e.panZoom?.syncViewport;function Rh(e){const n=c,t=Le(Kh),o=Ye();return L[n(856)](()=>{const x=n;e&&(t?.(e),o[x(1834)]({transform:[e.x,e.y,e[x(368)]]}))},[e,t]),null}function _h(e){const n=c;return e[n(938)][n(810)]?{...e[n(938)],to:ex(e[n(938)].to,e[n(1137)])}:{...e[n(938)]}}function Jh(e){return _h}function Fh(e){const n=Jh();return Le(n,je)}const Qh=e=>({nodesConnectable:e[c(809)],isValid:e[c(938)][c(356)],inProgress:e[c(938)][c(810)],width:e[c(1915)],height:e.height});function $h({containerStyle:e,style:n,type:t,component:o}){const x=c,{nodesConnectable:r,width:i,height:a,isValid:u,inProgress:s}=Le(Qh,je);return!(i&&r&&s)?null:l.jsx(x(1171),{style:e,width:i,height:a,className:x(968),children:l[x(454)]("g",{className:Oe([x(1532),qi(u)]),children:l[x(454)](Ec,{style:n,type:t,CustomComponent:o,isValid:u})})})}const Ec=({style:e,type:n=Yn.Bezier,CustomComponent:t,isValid:o})=>{const x=c,{inProgress:r,from:i,fromNode:a,fromHandle:u,fromPosition:s,to:d,toNode:f,toHandle:b,toPosition:g,pointer:m}=Fh();if(!r)return;if(t)return l.jsx(t,{connectionLineType:n,connectionLineStyle:e,fromNode:a,fromHandle:u,fromX:i.x,fromY:i.y,toX:d.x,toY:d.y,fromPosition:s,toPosition:g,connectionStatus:qi(o),toNode:f,toHandle:b,pointer:m});let h="";const p={sourceX:i.x,sourceY:i.y,sourcePosition:s,targetX:d.x,targetY:d.y,targetPosition:g};switch(n){case Yn[x(1204)]:[h]=aa(p);break;case Yn[x(1832)]:[h]=wc(p);break;case Yn[x(1401)]:[h]=co({...p,borderRadius:0});break;case Yn[x(1207)]:[h]=co(p);break;default:[h]=la(p)}return l[x(454)](x(1773),{d:h,fill:x(1795),className:x(511),style:e})};Ec[c(952)]=c(1675);const e3={};function Uc(e=e3){const n=c,t=L[n(697)](e),o=Ye();L[n(856)](()=>{const x=n;if(process.env.NODE_ENV===x(1620)){const r=new Set([...Object[x(771)](t.current),...Object[x(771)](e)]);for(const i of r)if(t.current[i]!==e[i]){o.getState()[x(720)]?.(x(1452),en[x(405)]());break}t[x(1123)]=e}},[e])}function n3(){const e=c,n=Ye(),t=L[e(697)](!1);L[e(856)](()=>{const o=e;if(process.env.NODE_ENV===o(1620)&&!t[o(1123)]){const x=document[o(1086)](o(1923));x&&window.getComputedStyle(x)[o(1445)]!=="1"&&n.getState()[o(720)]?.(o(2029),en[o(1314)]("react")),t[o(1123)]=!0}},[])}function Oc({nodeTypes:e,edgeTypes:n,onInit:t,onNodeClick:o,onEdgeClick:x,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:u,onNodeMouseLeave:s,onNodeContextMenu:d,onSelectionContextMenu:f,onSelectionStart:b,onSelectionEnd:g,connectionLineType:m,connectionLineStyle:h,connectionLineComponent:p,connectionLineContainerStyle:M,selectionKeyCode:y,selectionOnDrag:v,selectionMode:w,multiSelectionKeyCode:C,panActivationKeyCode:S,zoomActivationKeyCode:U,deleteKeyCode:G,onlyRenderVisibleElements:H,elementsSelectable:O,defaultViewport:_,translateExtent:X,minZoom:q,maxZoom:T,preventScrolling:N,defaultMarkerColor:D,zoomOnScroll:B,zoomOnPinch:A,panOnScroll:P,panOnScrollSpeed:I,panOnScrollMode:Z,zoomOnDoubleClick:Q,panOnDrag:J,onPaneClick:$,onPaneMouseEnter:xe,onPaneMouseMove:ae,onPaneMouseLeave:le,onPaneScroll:fe,onPaneContextMenu:re,paneClickDistance:K,nodeClickDistance:ie,onEdgeContextMenu:R,onEdgeMouseEnter:k,onEdgeMouseMove:j,onEdgeMouseLeave:W,reconnectRadius:E,onReconnect:oe,onReconnectStart:se,onReconnectEnd:ce,noDragClassName:be,noWheelClassName:we,noPanClassName:Ne,disableKeyboardA11y:Ce,nodeExtent:ke,rfId:Ee,viewport:Pe,onViewportChange:Ie}){const Ae=c;return Uc(e),Uc(n),n3(),Zh(t),Rh(Pe),l[Ae(454)](gh,{onPaneClick:$,onPaneMouseEnter:xe,onPaneMouseMove:ae,onPaneMouseLeave:le,onPaneContextMenu:re,onPaneScroll:fe,paneClickDistance:K,deleteKeyCode:G,selectionKeyCode:y,selectionOnDrag:v,selectionMode:w,onSelectionStart:b,onSelectionEnd:g,multiSelectionKeyCode:C,panActivationKeyCode:S,zoomActivationKeyCode:U,elementsSelectable:O,zoomOnScroll:B,zoomOnPinch:A,zoomOnDoubleClick:Q,panOnScroll:P,panOnScrollSpeed:I,panOnScrollMode:Z,panOnDrag:J,defaultViewport:_,translateExtent:X,minZoom:q,maxZoom:T,onSelectionContextMenu:f,preventScrolling:N,noDragClassName:be,noWheelClassName:we,noPanClassName:Ne,disableKeyboardA11y:Ce,onViewportChange:Ie,isControlledViewport:!!Pe,children:l[Ae(2088)](Xh,{children:[l.jsx(qh,{edgeTypes:n,onEdgeClick:x,onEdgeDoubleClick:i,onReconnect:oe,onReconnectStart:se,onReconnectEnd:ce,onlyRenderVisibleElements:H,onEdgeContextMenu:R,onEdgeMouseEnter:k,onEdgeMouseMove:j,onEdgeMouseLeave:W,reconnectRadius:E,defaultMarkerColor:D,noPanClassName:Ne,disableKeyboardA11y:Ce,rfId:Ee}),l[Ae(454)]($h,{style:h,type:m,component:p,containerStyle:M}),l.jsx(Ae(1415),{className:"react-flow__edgelabel-renderer"}),l[Ae(454)](Bh,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:r,onNodeMouseEnter:a,onNodeMouseMove:u,onNodeMouseLeave:s,onNodeContextMenu:d,nodeClickDistance:ie,onlyRenderVisibleElements:H,noPanClassName:Ne,noDragClassName:be,disableKeyboardA11y:Ce,nodeExtent:ke,rfId:Ee}),l.jsx(Ae(1415),{className:Ae(695)})]})})}Oc[c(952)]=c(1424);const t3=L[c(956)](Oc),Gc=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:u=.5,maxZoom:s=2,nodeOrigin:d,nodeExtent:f,zIndexMode:b=c(1926)}={})=>{const g=c,m=new Map,h=new Map,p=new Map,M=new Map,y=o??n??[],v=t??e??[],w=d??[0,0],C=f??Rt;wa(p,M,y);const{nodesInitialized:S}=ho(v,m,h,{nodeOrigin:w,nodeExtent:C,zIndexMode:b});let U=[0,0,1];if(i&&x&&r){const G=Ft(m,{filter:X=>!!((X[g(1915)]||X[g(2096)])&&(X.height||X[g(773)]))}),{x:H,y:O,zoom:_}=io(G,x,r,u,s,a?.[g(467)]??.1);U=[H,O,_]}return{rfId:"1",width:x??0,height:r??0,transform:U,nodes:v,nodesInitialized:S,nodeLookup:m,parentLookup:h,edges:y,edgeLookup:M,connectionLookup:p,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:t!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:u,maxZoom:s,translateExtent:Rt,nodeExtent:C,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:gt[g(1576)],domNode:null,paneDragging:!1,noPanClassName:g(506),nodeOrigin:w,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:a,fitViewResolver:null,connection:{...Vi},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Fi,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:g(761),debug:!1,ariaLabelConfig:Hi,zIndexMode:b,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},x3=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:u,maxZoom:s,nodeOrigin:d,nodeExtent:f,zIndexMode:b})=>z5((g,m)=>{async function h(){const p=_0x2299,{nodeLookup:M,panZoom:y,fitViewOptions:v,fitViewResolver:w,width:C,height:S,minZoom:U,maxZoom:G}=m();y&&(await y2({nodes:M,width:C,height:S,panZoom:y,minZoom:U,maxZoom:G},v),w?.[p(1762)](!0),g({fitViewResolver:null}))}return{...Gc({nodes:e,edges:n,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:u,maxZoom:s,nodeOrigin:d,nodeExtent:f,defaultNodes:t,defaultEdges:o,zIndexMode:b}),setNodes:p=>{const{nodeLookup:M,parentLookup:y,nodeOrigin:v,elevateNodesOnSelect:w,fitViewQueued:C,zIndexMode:S,nodesSelectionActive:U}=m(),{nodesInitialized:G,hasSelectedNodes:H}=ho(p,M,y,{nodeOrigin:v,nodeExtent:f,elevateNodesOnSelect:w,checkEquality:!0,zIndexMode:S}),O=U&&H;C&&G?(h(),g({nodes:p,nodesInitialized:G,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:O})):g({nodes:p,nodesInitialized:G,nodesSelectionActive:O})},setEdges:p=>{const{connectionLookup:M,edgeLookup:y}=m();wa(M,y,p),g({edges:p})},setDefaultNodesAndEdges:(p,M)=>{if(p){const{setNodes:y}=m();y(p),g({hasDefaultNodes:!0})}if(M){const{setEdges:y}=m();y(M),g({hasDefaultEdges:!0})}},updateNodeInternals:p=>{const M=_0x2299,{triggerNodeChanges:y,nodeLookup:v,parentLookup:w,domNode:C,nodeOrigin:S,nodeExtent:U,debug:G,fitViewQueued:H,zIndexMode:O}=m(),{changes:_,updatedInternals:X}=G2(p,v,w,C,S,U,O);X&&(Y2(v,w,{nodeOrigin:S,nodeExtent:U,zIndexMode:O}),H?(h(),g({fitViewQueued:!1,fitViewOptions:void 0})):g({}),_?.length>0&&(G&&console[M(1893)](M(2144),_),y?.(_)))},updateNodePositions:(p,M=!1)=>{const y=_0x2299,v=[];let w=[];const{nodeLookup:C,triggerNodeChanges:S,connection:U,updateConnection:G,onNodesChangeMiddlewareMap:H}=m();for(const[O,_]of p){const X=C.get(O),q=!!(X?.expandParent&&X?.[y(1326)]&&_?.[y(1388)]),T={id:O,type:y(1388),position:q?{x:Math[y(1108)](0,_[y(1388)].x),y:Math[y(1108)](0,_.position.y)}:_[y(1388)],dragging:M};if(X&&U[y(810)]&&U[y(394)].id===X.id){const N=$n(X,U[y(1580)],he[y(1437)],!0);G({...U,from:N})}q&&X[y(1326)]&&v[y(557)]({id:O,parentId:X[y(1326)],rect:{..._.internals.positionAbsolute,width:_.measured[y(1915)]??0,height:_[y(1173)].height??0}}),w[y(557)](T)}if(v[y(402)]>0){const{parentLookup:O,nodeOrigin:_}=m(),X=go(v,C,O,_);w.push(...X)}for(const O of H[y(1975)]())w=O(w);S(w)},triggerNodeChanges:p=>{const M=_0x2299,{onNodesChange:y,setNodes:v,nodes:w,hasDefaultNodes:C,debug:S}=m();if(p?.length){if(C){const U=$a(p,w);v(U)}S&&console[M(1893)]("React Flow: trigger node changes",p),y?.(p)}},triggerEdgeChanges:p=>{const M=_0x2299,{onEdgesChange:y,setEdges:v,edges:w,hasDefaultEdges:C,debug:S}=m();if(p?.length){if(C){const U=ec(p,w);v(U)}S&&console.log(M(1441),p),y?.(p)}},addSelectedNodes:p=>{const M=_0x2299,{multiSelectionActive:y,edgeLookup:v,nodeLookup:w,triggerNodeChanges:C,triggerEdgeChanges:S}=m();if(y){const U=p[M(1849)](G=>et(G,!0));C(U);return}C(Ct(w,new Set([...p]),!0)),S(Ct(v))},addSelectedEdges:p=>{const M=_0x2299,{multiSelectionActive:y,edgeLookup:v,nodeLookup:w,triggerNodeChanges:C,triggerEdgeChanges:S}=m();if(y){const U=p[M(1849)](G=>et(G,!0));S(U);return}S(Ct(v,new Set([...p]))),C(Ct(w,new Set,!0))},unselectNodesAndEdges:({nodes:p,edges:M}={})=>{const y=_0x2299,{edges:v,nodes:w,nodeLookup:C,triggerNodeChanges:S,triggerEdgeChanges:U}=m(),G=p||w,H=M||v,O=[];for(const X of G){if(!X[y(1660)])continue;const q=C[y(953)](X.id);q&&(q.selected=!1),O[y(557)](et(X.id,!1))}const _=[];for(const X of H)X[y(1660)]&&_.push(et(X.id,!1));S(O),U(_)},setMinZoom:p=>{const M=_0x2299,{panZoom:y,maxZoom:v}=m();y?.[M(613)]([p,v]),g({minZoom:p})},setMaxZoom:p=>{const M=_0x2299,{panZoom:y,minZoom:v}=m();y?.[M(613)]([v,p]),g({maxZoom:p})},setTranslateExtent:p=>{const M=_0x2299;m()[M(994)]?.[M(488)](p),g({translateExtent:p})},resetSelectedElements:()=>{const p=_0x2299,{edges:M,nodes:y,triggerNodeChanges:v,triggerEdgeChanges:w,elementsSelectable:C}=m();if(!C)return;const S=y.reduce((G,H)=>H[p(1660)]?[...G,et(H.id,!1)]:G,[]),U=M[p(1833)]((G,H)=>H[p(1660)]?[...G,et(H.id,!1)]:G,[]);v(S),w(U)},setNodeExtent:p=>{const{nodes:M,nodeLookup:y,parentLookup:v,nodeOrigin:w,elevateNodesOnSelect:C,nodeExtent:S,zIndexMode:U}=m();p[0][0]===S[0][0]&&p[0][1]===S[0][1]&&p[1][0]===S[1][0]&&p[1][1]===S[1][1]||(ho(M,y,v,{nodeOrigin:w,nodeExtent:p,elevateNodesOnSelect:C,checkEquality:!1,zIndexMode:U}),g({nodeExtent:p}))},panBy:p=>{const{transform:M,width:y,height:v,panZoom:w,translateExtent:C}=m();return H2({delta:p,panZoom:w,transform:M,translateExtent:C,width:y,height:v})},setCenter:async(p,M,y)=>{const v=_0x2299,{width:w,height:C,maxZoom:S,panZoom:U}=m();if(!U)return Promise[v(1762)](!1);const G=typeof y?.zoom<"u"?y.zoom:S;return await U[v(911)]({x:w/2-p*G,y:C/2-M*G,zoom:G},{duration:y?.[v(833)],ease:y?.ease,interpolate:y?.[v(543)]}),Promise[v(1762)](!0)},cancelConnection:()=>{g({connection:{...Vi}})},updateConnection:p=>{g({connection:p})},reset:()=>g({...Gc()})}},Object.is);function o3({initialNodes:e,initialEdges:n,defaultNodes:t,defaultEdges:o,initialWidth:x,initialHeight:r,initialMinZoom:i,initialMaxZoom:a,initialFitViewOptions:u,fitView:s,nodeOrigin:d,nodeExtent:f,zIndexMode:b,children:g}){const m=c,[h]=L[m(1039)](()=>x3({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:s,minZoom:i,maxZoom:a,fitViewOptions:u,nodeOrigin:d,nodeExtent:f,zIndexMode:b}));return l[m(454)](C5,{value:h,children:l[m(454)](X5,{children:g})})}function r3({children:e,nodes:n,edges:t,defaultNodes:o,defaultEdges:x,width:r,height:i,fitView:a,fitViewOptions:u,minZoom:s,maxZoom:d,nodeOrigin:f,nodeExtent:b,zIndexMode:g}){const m=c;return L[m(2135)](e0)?l[m(454)](l[m(562)],{children:e}):l.jsx(o3,{initialNodes:n,initialEdges:t,defaultNodes:o,defaultEdges:x,initialWidth:r,initialHeight:i,fitView:a,initialFitViewOptions:u,initialMinZoom:s,initialMaxZoom:d,nodeOrigin:f,nodeExtent:b,zIndexMode:g,children:e})}const i3={width:"100%",height:c(1826),overflow:c(2094),position:c(1167),zIndex:0};function a3({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,className:x,nodeTypes:r,edgeTypes:i,onNodeClick:a,onEdgeClick:u,onInit:s,onMove:d,onMoveStart:f,onMoveEnd:b,onConnect:g,onConnectStart:m,onConnectEnd:h,onClickConnectStart:p,onClickConnectEnd:M,onNodeMouseEnter:y,onNodeMouseMove:v,onNodeMouseLeave:w,onNodeContextMenu:C,onNodeDoubleClick:S,onNodeDragStart:U,onNodeDrag:G,onNodeDragStop:H,onNodesDelete:O,onEdgesDelete:_,onDelete:X,onSelectionChange:q,onSelectionDragStart:T,onSelectionDrag:N,onSelectionDragStop:D,onSelectionContextMenu:B,onSelectionStart:A,onSelectionEnd:P,onBeforeDelete:I,connectionMode:Z,connectionLineType:Q=Yn.Bezier,connectionLineStyle:J,connectionLineComponent:$,connectionLineContainerStyle:xe,deleteKeyCode:ae="Backspace",selectionKeyCode:le=c(1740),selectionOnDrag:fe=!1,selectionMode:re=_t[c(2054)],panActivationKeyCode:K=c(1170),multiSelectionKeyCode:ie=nx()?"Meta":c(827),zoomActivationKeyCode:R=nx()?c(869):c(827),snapToGrid:k,snapGrid:j,onlyRenderVisibleElements:W=!1,selectNodesOnDrag:E,nodesDraggable:oe,autoPanOnNodeFocus:se,nodesConnectable:ce,nodesFocusable:be,nodeOrigin:we=Xa,edgesFocusable:Ne,edgesReconnectable:Ce,elementsSelectable:ke=!0,defaultViewport:Ee=E5,minZoom:Pe=.5,maxZoom:Ie=2,translateExtent:Ae=Rt,preventScrolling:Ve=!0,nodeExtent:nn,defaultMarkerColor:bn=c(1499),zoomOnScroll:_e=!0,zoomOnPinch:on=!0,panOnScroll:Xe=!1,panOnScrollSpeed:rn=.5,panOnScrollMode:an=Fn[c(1184)],zoomOnDoubleClick:tn=!0,panOnDrag:gn=!0,onPaneClick:In,onPaneMouseEnter:Je,onPaneMouseMove:Bt,onPaneMouseLeave:Ze,onPaneScroll:Hn,onPaneContextMenu:We,paneClickDistance:yn=1,nodeClickDistance:Dt=0,children:Po,onReconnect:Io,onReconnectStart:Ao,onReconnectEnd:jo,onEdgeContextMenu:Yo,onEdgeDoubleClick:Eo,onEdgeMouseEnter:Uo,onEdgeMouseMove:Oo,onEdgeMouseLeave:s0,reconnectRadius:l0=10,onNodesChange:d0,onEdgesChange:u0,noDragClassName:f0=c(1055),noWheelClassName:ox=c(707),noPanClassName:Vn=c(506),fitView:Tn,fitViewOptions:h0,connectOnClick:Lt,attributionPosition:b0,proOptions:g0,defaultEdgeOptions:Go,elevateNodesOnSelect:Ho=!0,elevateEdgesOnSelect:y0=!1,disableKeyboardA11y:rx=!1,autoPanOnConnect:ix,autoPanOnNodeDrag:m0,autoPanSpeed:ax,connectionRadius:Y,isValidConnection:V,onError:te,style:ne,id:ue,nodeDragThreshold:F,connectionDragThreshold:ee,viewport:ge,onViewportChange:me,width:ye,height:Me,colorMode:pe=c(1973),debug:Se,onScroll:Ge,ariaLabelConfig:Mn,zIndexMode:mn=c(1926),...Ke},ve){const De=c,nt=ue||"1",w0=H5(pe),v0=L.useCallback(p0=>{const cx=_0x2299;p0[cx(2124)][cx(1267)]({top:0,left:0,behavior:cx(1500)}),Ge?.(p0)},[Ge]);return l.jsx(De(1415),{"data-testid":"rf__wrapper",...Ke,onScroll:v0,style:{...ne,...i3},ref:ve,className:Oe(["react-flow",x,w0]),id:ue,role:De(1581),children:l[De(2088)](r3,{nodes:e,edges:n,width:ye,height:Me,fitView:Tn,fitViewOptions:h0,minZoom:Pe,maxZoom:Ie,nodeOrigin:we,nodeExtent:nn,zIndexMode:mn,children:[l[De(454)](G5,{nodes:e,edges:n,defaultNodes:t,defaultEdges:o,onConnect:g,onConnectStart:m,onConnectEnd:h,onClickConnectStart:p,onClickConnectEnd:M,nodesDraggable:oe,autoPanOnNodeFocus:se,nodesConnectable:ce,nodesFocusable:be,edgesFocusable:Ne,edgesReconnectable:Ce,elementsSelectable:ke,elevateNodesOnSelect:Ho,elevateEdgesOnSelect:y0,minZoom:Pe,maxZoom:Ie,nodeExtent:nn,onNodesChange:d0,onEdgesChange:u0,snapToGrid:k,snapGrid:j,connectionMode:Z,translateExtent:Ae,connectOnClick:Lt,defaultEdgeOptions:Go,fitView:Tn,fitViewOptions:h0,onNodesDelete:O,onEdgesDelete:_,onDelete:X,onNodeDragStart:U,onNodeDrag:G,onNodeDragStop:H,onSelectionDrag:N,onSelectionDragStart:T,onSelectionDragStop:D,onMove:d,onMoveStart:f,onMoveEnd:b,noPanClassName:Vn,nodeOrigin:we,rfId:nt,autoPanOnConnect:ix,autoPanOnNodeDrag:m0,autoPanSpeed:ax,onError:te,connectionRadius:Y,isValidConnection:V,selectNodesOnDrag:E,nodeDragThreshold:F,connectionDragThreshold:ee,onBeforeDelete:I,debug:Se,ariaLabelConfig:Mn,zIndexMode:mn}),l[De(454)](t3,{onInit:s,onNodeClick:a,onEdgeClick:u,onNodeMouseEnter:y,onNodeMouseMove:v,onNodeMouseLeave:w,onNodeContextMenu:C,onNodeDoubleClick:S,nodeTypes:r,edgeTypes:i,connectionLineType:Q,connectionLineStyle:J,connectionLineComponent:$,connectionLineContainerStyle:xe,selectionKeyCode:le,selectionOnDrag:fe,selectionMode:re,deleteKeyCode:ae,multiSelectionKeyCode:ie,panActivationKeyCode:K,zoomActivationKeyCode:R,onlyRenderVisibleElements:W,defaultViewport:Ee,translateExtent:Ae,minZoom:Pe,maxZoom:Ie,preventScrolling:Ve,zoomOnScroll:_e,zoomOnPinch:on,zoomOnDoubleClick:tn,panOnScroll:Xe,panOnScrollSpeed:rn,panOnScrollMode:an,panOnDrag:gn,onPaneClick:In,onPaneMouseEnter:Je,onPaneMouseMove:Bt,onPaneMouseLeave:Ze,onPaneScroll:Hn,onPaneContextMenu:We,paneClickDistance:yn,nodeClickDistance:Dt,onSelectionContextMenu:B,onSelectionStart:A,onSelectionEnd:P,onReconnect:Io,onReconnectStart:Ao,onReconnectEnd:jo,onEdgeContextMenu:Yo,onEdgeDoubleClick:Eo,onEdgeMouseEnter:Uo,onEdgeMouseMove:Oo,onEdgeMouseLeave:s0,reconnectRadius:l0,defaultMarkerColor:bn,noDragClassName:f0,noWheelClassName:ox,noPanClassName:Vn,rfId:nt,disableKeyboardA11y:rx,nodeExtent:nn,viewport:ge,onViewportChange:me}),l[De(454)](Y5,{onSelectionChange:q}),Po,l[De(454)](k5,{proOptions:g0,position:b0}),l[De(454)](S5,{rfId:nt,disableKeyboardA11y:rx})]})})}var c3=oc(a3);function s3(e){const n=c,[t,o]=L[n(1039)](e),x=L[n(1974)](r=>o(i=>$a(r,i)),[]);return[t,o,x]}function l3(e){const n=c,[t,o]=L[n(1039)](e),x=L.useCallback(r=>o(i=>ec(r,i)),[]);return[t,o,x]}function d3({dimensions:e,lineWidth:n,variant:t,className:o}){const x=c;return l[x(454)](x(1773),{strokeWidth:n,d:"M"+e[0]/2+x(1297)+e[1]+x(1967)+e[1]/2+" H"+e[0],className:Oe([x(357),t,o])})}function u3({radius:e,className:n}){const t=c;return l[t(454)]("circle",{cx:e,cy:e,r:e,className:Oe(["react-flow__background-pattern",t(1688),n])})}var On;(function(e){const n=c;e[n(680)]=n(1177),e[n(2145)]=n(1688),e[n(1062)]=n(621)})(On||(On={}));const f3={[On.Dots]:1,[On[c(680)]]:1,[On[c(1062)]]:6},h3=e=>({transform:e[c(1137)],patternId:c(390)+e[c(1497)]});function Hc({id:e,variant:n=On[c(2145)],gap:t=20,size:o,lineWidth:x=1,offset:r=0,color:i,bgColor:a,style:u,className:s,patternClassName:d}){const f=c,b=L[f(697)](null),{transform:g,patternId:m}=Le(h3,je),h=o||f3[n],p=n===On[f(2145)],M=n===On[f(1062)],y=Array.isArray(t)?t:[t,t],v=[y[0]*g[2]||1,y[1]*g[2]||1],w=h*g[2],C=Array[f(2018)](r)?r:[r,r],S=M?[w,w]:v,U=[C[0]*g[2]||1+S[0]/2,C[1]*g[2]||1+S[1]/2],G=""+m+(e||"");return l[f(2088)](f(1171),{className:Oe([f(1999),s]),style:{...u,...x0,"--xy-background-color-props":a,"--xy-background-pattern-color-props":i},ref:b,"data-testid":f(1282),children:[l[f(454)](f(1572),{id:G,x:g[0]%v[0],y:g[1]%v[1],width:v[0],height:v[1],patternUnits:f(1998),patternTransform:"translate(-"+U[0]+",-"+U[1]+")",children:p?l[f(454)](u3,{radius:w/2,className:d}):l[f(454)](d3,{dimensions:S,lineWidth:x,variant:n,className:d})}),l[f(454)]("rect",{x:"0",y:"0",width:f(1826),height:f(1826),fill:f(871)+G+")"})]})}Hc.displayName=c(1005);const b3=L.memo(Hc);function g3(){const e=c;return l[e(454)](e(1171),{xmlns:e(1321),viewBox:e(1648),children:l[e(454)](e(1773),{d:e(1344)})})}function y3(){const e=c;return l.jsx(e(1171),{xmlns:e(1321),viewBox:"0 0 32 5",children:l[e(454)]("path",{d:"M0 0h32v4.2H0z"})})}function m3(){const e=c;return l.jsx(e(1171),{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:l[e(454)]("path",{d:e(2091)})})}function w3(){const e=c;return l[e(454)](e(1171),{xmlns:"http://www.w3.org/2000/svg",viewBox:e(882),children:l.jsx(e(1773),{d:e(444)})})}function v3(){const e=c;return l[e(454)](e(1171),{xmlns:e(1321),viewBox:"0 0 25 32",children:l.jsx("path",{d:e(1262)})})}function i0({children:e,className:n,...t}){const o=c;return l.jsx("button",{type:o(1372),className:Oe([o(1861),n]),...t,children:e})}const p3=e=>({isInteractive:e[c(1780)]||e[c(809)]||e[c(572)],minZoomReached:e[c(1137)][2]<=e.minZoom,maxZoomReached:e[c(1137)][2]>=e[c(1479)],ariaLabelConfig:e[c(470)]});function Vc({style:e,showZoom:n=!0,showFitView:t=!0,showInteractive:o=!0,fitViewOptions:x,onZoomIn:r,onZoomOut:i,onFitView:a,onInteractiveChange:u,className:s,children:d,position:f=c(1375),orientation:b="vertical","aria-label":g}){const m=c,h=Ye(),{isInteractive:p,minZoomReached:M,maxZoomReached:y,ariaLabelConfig:v}=Le(p3,je),{zoomIn:w,zoomOut:C,fitView:S}=Do(),U=()=>{w(),r?.()},G=()=>{C(),i?.()},H=()=>{S(x),a?.()},O=()=>{h[_0x2299(1834)]({nodesDraggable:!p,nodesConnectable:!p,elementsSelectable:!p}),u?.(!p)},_=b===m(964)?"horizontal":m(1932);return l[m(2088)](n0,{className:Oe([m(2033),_,s]),position:f,style:e,"data-testid":m(726),"aria-label":g??v[m(947)],children:[n&&l[m(2088)](l[m(562)],{children:[l[m(454)](i0,{onClick:U,className:m(1839),title:v["controls.zoomIn.ariaLabel"],"aria-label":v[m(1409)],disabled:y,children:l[m(454)](g3,{})}),l[m(454)](i0,{onClick:G,className:m(772),title:v[m(2097)],"aria-label":v[m(2097)],disabled:M,children:l[m(454)](y3,{})})]}),t&&l[m(454)](i0,{className:m(859),onClick:H,title:v[m(927)],"aria-label":v[m(927)],children:l[m(454)](m3,{})}),o&&l.jsx(i0,{className:m(461),onClick:O,title:v[m(1026)],"aria-label":v["controls.interactive.ariaLabel"],children:p?l.jsx(v3,{}):l[m(454)](w3,{})}),d]})}Vc.displayName=c(2115);const z3=L[c(956)](Vc);function C3({id:e,x:n,y:t,width:o,height:x,style:r,color:i,strokeColor:a,strokeWidth:u,className:s,borderRadius:d,shapeRendering:f,selected:b,onClick:g}){const m=c,{background:h,backgroundColor:p}=r||{},M=i||h||p;return l.jsx("rect",{className:Oe([m(1591),{selected:b},s]),x:n,y:t,rx:d,ry:d,width:o,height:x,style:{fill:M,stroke:a,strokeWidth:u},shapeRendering:f,onClick:g?y=>g(y,e):void 0})}const M3=L.memo(C3),B3=e=>e[c(2110)][c(1849)](n=>n.id),ko=e=>e instanceof Function?e:()=>e;function D3({nodeStrokeColor:e,nodeColor:n,nodeClassName:t="",nodeBorderRadius:o=5,nodeStrokeWidth:x,nodeComponent:r=M3,onClick:i}){const a=c,u=Le(B3,je),s=ko(n),d=ko(e),f=ko(t),b=typeof window===a(1906)||window[a(878)]?"crispEdges":a(2089);return l[a(454)](l.Fragment,{children:u[a(1849)](g=>l.jsx(N3,{id:g,nodeColorFunc:s,nodeStrokeColorFunc:d,nodeClassNameFunc:f,nodeBorderRadius:o,nodeStrokeWidth:x,NodeComponent:r,onClick:i,shapeRendering:b},g))})}function L3({id:e,nodeColorFunc:n,nodeStrokeColorFunc:t,nodeClassNameFunc:o,nodeBorderRadius:x,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:a,onClick:u}){const s=c,{node:d,x:f,y:b,width:g,height:m}=Le(h=>{const p=_0x2299,M=h.nodeLookup[p(953)](e);if(!M)return{node:void 0,x:0,y:0,width:0,height:0};const y=M[p(1570)][p(602)],{x:v,y:w}=M[p(1570)][p(1841)],{width:C,height:S}=Pn(y);return{node:y,x:v,y:w,width:C,height:S}},je);return!d||d.hidden||!Qi(d)?null:l[s(454)](a,{x:f,y:b,width:g,height:m,style:d[s(799)],selected:!!d[s(1660)],className:o(d),color:n(d),borderRadius:x,strokeColor:t(d),strokeWidth:r,shapeRendering:i,onClick:u,id:d.id})}const N3=L[c(956)](L3);var S3=L[c(956)](D3);const k3=200,P3=150,I3=e=>!e[c(2094)],A3=e=>{const n=c,t={x:-e.transform[0]/e.transform[2],y:-e[n(1137)][1]/e[n(1137)][2],width:e[n(1915)]/e[n(1137)][2],height:e.height/e[n(1137)][2]};return{viewBB:t,boundingRect:e[n(649)][n(413)]>0?_i(Ft(e[n(649)],{filter:I3}),t):t,rfId:e[n(1497)],panZoom:e[n(994)],translateExtent:e.translateExtent,flowWidth:e[n(1915)],flowHeight:e[n(2035)],ariaLabelConfig:e[n(470)]}},j3=c(429);function Tc({style:e,className:n,nodeStrokeColor:t,nodeColor:o,nodeClassName:x="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a,bgColor:u,maskColor:s,maskStrokeColor:d,maskStrokeWidth:f,position:b="bottom-right",onClick:g,onNodeClick:m,pannable:h=!1,zoomable:p=!1,ariaLabel:M,inversePan:y,zoomStep:v=1,offsetScale:w=5}){const C=c,S=Ye(),U=L[C(697)](null),{boundingRect:G,viewBB:H,rfId:O,panZoom:_,translateExtent:X,flowWidth:q,flowHeight:T,ariaLabelConfig:N}=Le(A3,je),D=e?.width??k3,B=e?.[C(2035)]??P3,A=G[C(1915)]/D,P=G[C(2035)]/B,I=Math[C(1108)](A,P),Z=I*D,Q=I*B,J=w*I,$=G.x-(Z-G[C(1915)])/2-J,xe=G.y-(Q-G[C(2035)])/2-J,ae=Z+J*2,le=Q+J*2,fe=j3+"-"+O,re=L[C(697)](0),K=L[C(697)]();re[C(1123)]=I,L[C(856)](()=>{const j=C;if(U[j(1123)]&&_)return K[j(1123)]=_2({domNode:U[j(1123)],panZoom:_,getTransform:()=>S[j(1838)]()[j(1137)],getViewScale:()=>re[j(1123)]}),()=>{K.current?.destroy()}},[_]),L[C(856)](()=>{const j=C;K.current?.[j(1657)]({translateExtent:X,width:q,height:T,inversePan:y,pannable:h,zoomStep:v,zoomable:p})},[h,p,y,v,X,q,T]);const ie=g?j=>{const W=C,[E,oe]=K[W(1123)]?.pointer(j)||[0,0];g(j,{x:E,y:oe})}:void 0,R=m?L[C(1974)]((j,W)=>{const E=C,oe=S.getState().nodeLookup[E(953)](W)[E(1570)][E(602)];m(j,oe)},[]):void 0,k=M??N[C(481)];return l.jsx(n0,{position:b,style:{...e,"--xy-minimap-background-color-props":typeof u===C(1863)?u:void 0,"--xy-minimap-mask-background-color-props":typeof s===C(1863)?s:void 0,"--xy-minimap-mask-stroke-color-props":typeof d===C(1863)?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof f===C(1288)?f*I:void 0,"--xy-minimap-node-background-color-props":typeof o===C(1863)?o:void 0,"--xy-minimap-node-stroke-color-props":typeof t===C(1863)?t:void 0,"--xy-minimap-node-stroke-width-props":typeof i===C(1288)?i:void 0},className:Oe([C(1594),n]),"data-testid":"rf__minimap",children:l[C(2088)](C(1171),{width:D,height:B,viewBox:$+" "+xe+" "+ae+" "+le,className:"react-flow__minimap-svg",role:C(705),"aria-labelledby":fe,ref:U,onClick:ie,children:[k&&l[C(454)](C(1837),{id:fe,children:k}),l[C(454)](S3,{onClick:R,nodeColor:o,nodeStrokeColor:t,nodeBorderRadius:r,nodeClassName:x,nodeStrokeWidth:i,nodeComponent:a}),l.jsx(C(1773),{className:C(532),d:"M"+($-J)+","+(xe-J)+"h"+(ae+J*2)+"v"+(le+J*2)+"h"+(-ae-J*2)+C(897)+H.x+","+H.y+"h"+H[C(1915)]+"v"+H.height+"h"+-H[C(1915)]+"z",fillRule:C(419),pointerEvents:C(1795)})]})})}Tc[c(952)]=c(2122);const Y3=L[c(956)](Tc),E3=e=>n=>e?""+Math[c(1108)](1/n[c(1137)][2],1):void 0,U3={[zt[c(1885)]]:"right",[zt[c(1266)]]:c(1251)};function O3({nodeId:e,position:n,variant:t=zt[c(1266)],className:o,style:x=void 0,children:r,color:i,minWidth:a=10,minHeight:u=10,maxWidth:s=Number[c(1663)],maxHeight:d=Number.MAX_VALUE,keepAspectRatio:f=!1,resizeDirection:b,autoScale:g=!0,shouldResize:m,onResizeStart:h,onResize:p,onResizeEnd:M}){const y=c,v=lc(),w=typeof e===y(1863)?e:v,C=Ye(),S=L.useRef(null),U=t===zt.Handle,G=Le(L.useCallback(E3(U&&g),[U,g]),je),H=L.useRef(null),O=n??U3[t];L.useEffect(()=>{const X=y;if(!(!S[X(1123)]||!w))return!H[X(1123)]&&(H.current=s5({domNode:S[X(1123)],nodeId:w,getStoreItems:()=>{const q=X,{nodeLookup:T,transform:N,snapGrid:D,snapToGrid:B,nodeOrigin:A,domNode:P}=C[q(1838)]();return{nodeLookup:T,transform:N,snapGrid:D,snapToGrid:B,nodeOrigin:A,paneDomNode:P}},onChange:(q,T)=>{const N=X,{triggerNodeChanges:D,nodeLookup:B,parentLookup:A,nodeOrigin:P}=C[N(1838)](),I=[],Z={x:q.x,y:q.y},Q=B[N(953)](w);if(Q&&Q.expandParent&&Q[N(1326)]){const J=Q[N(1411)]??P,$=q[N(1915)]??Q.measured[N(1915)]??0,xe=q[N(2035)]??Q[N(1173)][N(2035)]??0,ae={id:Q.id,parentId:Q[N(1326)],rect:{width:$,height:xe,...$i({x:q.x??Q[N(1388)].x,y:q.y??Q.position.y},{width:$,height:xe},Q[N(1326)],B,J)}},le=go([ae],B,A,P);I[N(557)](...le),Z.x=q.x?Math[N(1108)](J[0]*$,q.x):void 0,Z.y=q.y?Math[N(1108)](J[1]*xe,q.y):void 0}if(Z.x!==void 0&&Z.y!==void 0){const J={id:w,type:N(1388),position:{...Z}};I.push(J)}if(q[N(1915)]!==void 0&&q.height!==void 0){const J=b?N(b==="horizontal"?1915:2035):!0,$={id:w,type:N(591),resizing:!0,setAttributes:J,dimensions:{width:q[N(1915)],height:q[N(2035)]}};I[N(557)]($)}for(const J of T){const $={...J,type:N(1388)};I[N(557)]($)}D(I)},onEnd:({width:q,height:T})=>{const N=X,D={id:w,type:N(591),resizing:!1,dimensions:{width:q,height:T}};C[N(1838)]()[N(1606)]([D])}})),H[X(1123)].update({controlPosition:O,boundaries:{minWidth:a,minHeight:u,maxWidth:s,maxHeight:d},keepAspectRatio:f,resizeDirection:b,onResizeStart:h,onResize:p,onResizeEnd:M,shouldResize:m}),()=>{const q=X;H.current?.[q(854)]()}},[O,a,u,s,d,f,h,p,M,m]);const _=O[y(1939)]("-");return l[y(454)](y(1415),{className:Oe([y(338),"nodrag",..._,t,o]),ref:S,style:{...x,scale:G,...i&&{[U?y(972):"borderColor"]:i}},children:r})}L[c(956)](O3);const qc=e=>Symbol[c(2153)]in e,Wc=e=>c(2087)in e,Xc=(e,n)=>{const t=c,o=e instanceof Map?e:new Map(e[t(2087)]()),x=n instanceof Map?n:new Map(n.entries());if(o[t(413)]!==x.size)return!1;for(const[r,i]of o)if(!x[t(888)](r)||!Object.is(i,x.get(r)))return!1;return!0},G3=(e,n)=>{const t=c,o=e[Symbol[t(2153)]](),x=n[Symbol[t(2153)]]();let r=o.next(),i=x[t(813)]();for(;!r[t(1428)]&&!i[t(1428)];){if(!Object.is(r[t(1462)],i[t(1462)]))return!1;r=o[t(813)](),i=x[t(813)]()}return!!r[t(1428)]&&!!i[t(1428)]};function H3(e,n){const t=c;return Object.is(e,n)?!0:typeof e!==t(2151)||e===null||typeof n!==t(2151)||n===null||Object.getPrototypeOf(e)!==Object[t(1094)](n)?!1:qc(e)&&qc(n)?Wc(e)&&Wc(n)?Xc(e,n):G3(e,n):Xc({entries:()=>Object[t(2087)](e)},{entries:()=>Object[t(2087)](n)})}const Zc={inlineScript:c(728),dataRequest:"请求数据",external:c(1466),builtin:c(1545)},V3=[{label:c(635),value:c(1191)},{label:c(776),value:"switchCanvas"}],T3=[{label:c(1004),value:c(1004)},{label:c(966),value:c(966)},{label:"warning",value:c(1960)},{label:c(598),value:c(598)},{label:c(752),value:c(752)}];function Kc(e,n,t){const o=c,x=t[o(1211)](i=>i[o(345)]===e),r=x[o(402)];return x[o(1849)]((i,a)=>{const u=o,s=n[u(438)](f=>f.id===i[u(1717)]),d=s?.[u(1405)];return{sourceId:i[u(1717)],sourceLabel:d?.label??i.source,edgeIndex:a,totalIncoming:r}})}const q3=({data:e,id:n})=>{const t=c,{root:o}=qe(),x=Le(L.useCallback(a=>Kc(n,a[t(2110)],a[t(943)])[t(1849)](({sourceId:u,sourceLabel:s})=>({sourceId:u,label:s})),[n]),H3),r=e[t(1972)][t(409)]??t(1890),i=r===t(1061)?e[t(1972)].dataRequestKey:r==="external"?e.eventBlock[t(1090)]:r===t(1339)?e[t(1972)][t(554)]===t(1191)?e[t(1972)][t(554)]+": "+String(e[t(1972)].builtinConfig?.[t(1768)]??"")[t(1912)](0,24):e.eventBlock[t(554)]==="switchCanvas"?"跳转: "+(o[t(519)][t(438)](a=>a.id===e[t(1972)][t(626)]?.[t(1159)])?.[t(1872)]??t(2075)):e[t(1972)][t(554)]:null;return l[t(2088)](t(1415),{className:t(2117),children:[l[t(454)](Mt,{type:t(345),position:he[t(1891)],className:t(593)}),l[t(2088)](t(1415),{className:"flex items-center justify-between mb-2",children:[l.jsx(t(594),{className:t(558),children:e[t(700)]}),l[t(2088)](z[t(1170)],{size:"small",children:[l[t(454)](z[t(577)],{type:t(1083),size:t(1261),icon:l[t(454)](de[t(1706)],{}),onClick:()=>e.onEdit(n)}),l[t(454)](z[t(577)],{type:t(1083),size:t(1261),danger:!0,icon:l[t(454)](de[t(1482)],{}),onClick:()=>e.onDelete(n)})]})]}),l[t(454)](t(1415),{className:t(1331),children:l[t(2088)](z[t(1362)],{color:r===t(1890)?"default":r===t(1339)?"cyan":t(386),className:t(1119),children:[Zc[r],i?t(1812)+i:""]})}),l[t(2088)]("div",{className:"text-xs text-gray-500",children:[e[t(1972)][t(1498)]?.[t(402)]>0&&l[t(2088)](t(1415),{children:["入参名(按连线顺序): ",e[t(1972)][t(1498)][t(1849)](a=>a[t(1872)])[t(1507)](", ")]}),x[t(402)]>0&&l[t(2088)](t(1415),{className:t(1011),children:["上游连线:",x[t(1849)](a=>l.jsxs(t(1415),{className:"pl-1 border-l-2 border-amber-200",children:["←「",a.label,t(915)]},a.sourceId))]})]}),l[t(454)](Mt,{type:t(1717),position:he.Bottom,className:t(593)})]})},W3={eventBlock:q3},X3=Object[c(2087)](Zc)[c(1849)](([e,n])=>({label:n,value:e})),Rc=[{label:"点击",value:c(1091)},{label:c(1878),value:c(737)},{label:c(563),value:"mouseUp"},{label:"双击",value:"doubleClick"},{label:c(1330),value:"mouseOver"},{label:"鼠标移出",value:"mouseLeave"},{label:"鼠标进入",value:"mouseEnter"},{label:c(1528),value:c(698)},{label:"数据请求",value:"dataRequest"},{label:c(1681),value:c(484)}];function Z3(e,n){const t={},o=[...e];return o.forEach((x,r)=>{const i=_0x2299,a=n[i(1498)][r]?.[i(1872)]??(o.length===1?i(1369):"prev"+r);t[a]="$prev."+x[i(1717)]}),t}function K3(e,n,t){const o=c;return t[e]?.[o(1872)]??(n===1?o(1369):o(1369)+e)}const R3=[{label:c(1863),value:c(1863)},{label:c(1288),value:c(1288)},{label:c(1533),value:c(1533)},{label:"object",value:c(2151)},{label:c(479),value:c(479)}];function _c(e){const n=c,t=Rc[n(438)](x=>x[n(1462)]===e[n(1739)]),o=t?.[n(700)]??e[n(1739)];if(e.eventType===n(484)){const x=(e[n(1248)]||"")[n(2053)]();return x?o+" · "+x:o}return o}const _3=({open:e,onClose:n,bindNodeId:t,editingRoot:o})=>{const x=c,{nodes:r,eventFlow:i,externalHandlerCatalog:a,addEventBlock:u,upsertEventBlock:s,removeEventBlock:d,addEventRoot:f,updateEventRoot:b,root:g}=qe(),[m,h,p]=s3([]),[M,y,v]=l3([]),w=L[x(697)](m);w.current=m;const[C,S]=L[x(1039)](()=>o??null),[U,G]=L[x(1039)](!1),[H]=z[x(432)][x(1889)](),O=z.Form[x(426)](x(1739),H),[_,X]=L[x(1039)](null),[q,T]=L[x(1039)](!1),[N]=z[x(432)][x(1889)](),D=z.Form.useWatch(x(409),N),B=z[x(432)].useWatch(x(554),N),A=z[x(432)].useWatch(x(1498),N),P=L[x(1345)](()=>!q||!_?[]:Kc(_.id,m,M),[q,_,m,M]),I=L[x(697)](()=>{}),Z=L[x(697)](()=>{});L[x(856)](()=>{const k=x;if(q&&_){const j=_.builtinConfig??{},{outputs:W,...E}=_;N[k(349)]({...E,executorType:_[k(409)]??k(1890),builtinId:_[k(554)],inputs:_[k(1498)]??[],builtinConfig:{content:String(j.content??""),level:String(j[k(1592)]??k(1004)),duration:j[k(833)]===void 0||j[k(833)]===null?void 0:Number(j[k(833)])}})}},[q,_,N]);const Q=L[x(1974)](k=>{y(j=>sa(k,j))},[y]),J=k=>{const j=x,W={bindNodeId:k.bindNodeId,eventType:k[j(1739)],externalEventKey:k[j(1739)]==="external"?(k.externalEventKey||"")[j(2053)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0},E=f(W);S({...W,id:E}),H.resetFields(),G(!1),z.message.success(j(1304))},$=L[x(1974)](k=>{const j=x;d(k),h(W=>W.filter(E=>E.id!==k)),y(W=>W.filter(E=>E[j(1717)]!==k&&E[j(345)]!==k))},[d,h,y]),xe=L.useCallback(k=>{const j=x,W=w[j(1123)][j(438)](se=>se.id===k)?.data?.[j(1972)],E=i.eventBlocks.find(se=>se.id===k),oe=W??E;oe?(X({...oe,id:k}),T(!0)):z[j(1200)][j(1960)](j(421))},[i[x(2080)]]);I[x(1123)]=xe,Z.current=$,L[x(856)](()=>{const k=x;if(e&&C){const j=C.flowData[k(2110)].map(E=>({id:E.id,type:"eventBlock",position:E[k(1388)],data:{label:E.data[k(700)],eventBlock:E.data.eventBlock,onEdit:oe=>I[k(1123)](oe),onDelete:oe=>Z[k(1123)](oe)}})),W=C[k(1546)][k(943)][k(1849)](E=>({id:E.id,source:E[k(1717)],target:E[k(345)]}));h(j),y(W)}},[e,C,h,y]);const ae=()=>{const k=x,j={name:k(614),executorType:k(1890),callback:"return args;",inputs:[],outputs:[]},W=u(j),E={...j,id:W},oe={id:W,type:"eventBlock",position:{x:100+m[k(402)]*50,y:100+m[k(402)]*30},data:{label:E[k(1872)],eventBlock:E,onEdit:se=>I[k(1123)](se),onDelete:se=>Z[k(1123)](se)}};h(se=>[...se,oe])},le=()=>{const k=x,j={name:"Message 提示",executorType:k(1339),builtinId:k(1191),builtinConfig:{content:"操作成功",level:k(1004)},callback:k(1058),inputs:[],outputs:[]},W=u(j),E={...j,id:W},oe={id:W,type:k(1972),position:{x:120+m.length*50,y:140+m[k(402)]*30},data:{label:E[k(1872)],eventBlock:E,onEdit:se=>I[k(1123)](se),onDelete:se=>Z.current(se)}};h(se=>[...se,oe])},fe=()=>{const k=x,j={name:k(776),executorType:"builtin",builtinId:"switchCanvas",builtinConfig:{targetCanvasId:g.canvases[0]?.id||""},callback:k(1058),inputs:[],outputs:[]},W=u(j),E={...j,id:W},oe={id:W,type:k(1972),position:{x:120+m.length*50,y:140+m.length*30},data:{label:E[k(1872)],eventBlock:E,onEdit:se=>I.current(se),onDelete:se=>Z.current(se)}};h(se=>[...se,oe])},re=k=>{const j=x;if(!_)return;const W=k[j(409)]??_.executorType??"inlineScript",E={name:k[j(1872)],callback:k[j(2056)]??_[j(2056)],executorType:W,dataRequestKey:W===j(1061)?(k[j(1836)]||"")[j(2053)]():void 0,externalHandlerKey:W==="external"?(k[j(1090)]||"").trim():void 0,builtinId:W===j(1339)?k[j(554)]:void 0,builtinConfig:W===j(1339)&&k[j(554)]===j(1191)?{content:String(k.builtinConfig?.[j(1768)]??"")[j(2053)](),level:k[j(626)]?.[j(1592)]||j(1004),duration:k[j(626)]?.[j(833)]===null||k[j(626)]?.[j(833)]===void 0?void 0:Number(k.builtinConfig[j(833)])}:W===j(1339)&&k[j(554)]==="switchCanvas"?{targetCanvasId:String(k.builtinConfig?.[j(1159)]??"")[j(2053)]()}:void 0},oe=k[j(1498)]??[],se=oe[j(1211)](be=>be?.name&&String(be.name)[j(2053)]()),ce={..._,...E,inputs:se,outputs:[]};s(ce),h(be=>be[j(1849)](we=>we.id===_.id?{...we,data:{...we[j(1405)],label:ce[j(1872)]||we[j(1405)][j(700)],eventBlock:ce}}:we)),T(!1),X(null),z[j(1200)][j(966)]("事件块已更新")},K=()=>{const k=x;if(!C)return;const j=m[k(1849)](E=>{const oe=k,se=M[oe(1211)](we=>we[oe(345)]===E.id),ce=E[oe(1405)][oe(1972)],be={...ce,outputs:[]};return{id:E.id,eventBlockId:E.id,position:E.position,inputs:se.map(we=>we[oe(1717)]),outputs:M[oe(1211)](we=>we[oe(1717)]===E.id)[oe(1849)](we=>we[oe(345)]),data:{label:E[oe(1405)][oe(700)],eventBlock:be,inputMapping:Z3(se,be)}}}),W=M[k(1849)](E=>({id:E.id,source:E[k(1717)],target:E[k(345)]}));b(C.id,{flowData:{nodes:j,edges:W}}),lt[k(919)]({...C,flowData:{nodes:j,edges:W}}),z.message[k(966)]("事件流保存成功"),n()},ie=L.useMemo(()=>r[x(1849)](k=>({label:k[x(1872)],value:k.id})),[r]),R=L[x(1345)](()=>t?i.eventRoots[x(1211)](k=>k[x(482)]===t):i.eventRoots,[i[x(1761)],t]);return e?l[x(2088)](z.Modal,{title:x(1074),open:e,onCancel:n,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[C?l[x(2088)]("div",{className:x(689),style:{height:700},children:[l[x(2088)](x(1415),{className:x(1099),children:[l[x(454)](z[x(1170)],{children:l[x(2088)](x(594),{className:x(1571),children:[x(1950),_c(C)," →"," ",r[x(438)](k=>k.id===C.bindNodeId)?.name]})}),l[x(2088)](z[x(1170)],{children:[l[x(454)](z[x(577)],{icon:l[x(454)](de[x(1179)],{}),onClick:ae,children:"添加事件块"}),l.jsx(z.Button,{icon:l[x(454)](de[x(1179)],{}),onClick:le,children:x(1840)}),l.jsx(z[x(577)],{icon:l[x(454)](de[x(1179)],{}),onClick:fe,children:x(776)}),l[x(454)](z[x(577)],{type:x(2051),icon:l[x(454)](de[x(1273)],{}),onClick:K,children:"保存"}),l[x(454)](z[x(577)],{icon:l.jsx(de[x(1374)],{}),onClick:()=>S(null),children:x(516)})]})]}),l[x(454)](x(1415),{className:"flex-1",children:l[x(2088)](c3,{nodes:m,edges:M,onNodesChange:p,onEdgesChange:v,onConnect:Q,nodeTypes:W3,fitView:!0,children:[l.jsx(b3,{}),l[x(454)](z3,{}),l.jsx(Y3,{})]})})]}):l[x(2088)](x(1415),{className:x(1933),children:[l[x(2088)](x(1415),{className:x(1505),children:[l[x(454)]("h3",{className:x(433),children:x(1938)}),l.jsx(z[x(577)],{type:x(2051),icon:l[x(454)](de[x(1179)],{}),onClick:()=>G(!0),children:x(1992)})]}),l.jsx(z.List,{dataSource:R,renderItem:k=>l[x(454)](z.List[x(798)],{actions:[l.jsx(z[x(577)],{type:"primary",icon:l[x(454)](de[x(1706)],{}),onClick:()=>S(k),children:"编辑"},x(2134))],children:l[x(454)](z[x(1542)][x(798)].Meta,{title:l[x(2088)](z[x(1170)],{children:[l[x(2088)](x(594),{children:["触发: ",_c(k)]}),l[x(454)](z.Tag,{color:x(864),children:r[x(438)](j=>j.id===k[x(482)])?.[x(1872)]||k[x(482)]})]}),description:x(896)+k.flowData[x(2110)][x(402)]+", 连接数: "+k[x(1546)][x(943)][x(402)]})}),locale:{emptyText:l.jsx(z[x(1763)],{description:x(1474)})}}),l[x(454)](z.Modal,{title:x(1992),open:U,onCancel:()=>{H[x(1491)](),G(!1)},footer:null,afterOpenChange:k=>{const j=x;k&&(H.resetFields(),t&&H[j(349)]({bindNodeId:t}))},children:l.jsxs(z.Form,{form:H,onFinish:J,layout:"vertical",children:[l.jsx(z.Form[x(798)],{name:x(482),label:"绑定节点",rules:[{required:!0,message:"请选择节点"}],initialValue:t,children:l[x(454)](z[x(385)],{options:ie,placeholder:x(1622),disabled:!!t})}),l[x(454)](z[x(432)][x(798)],{name:x(1739),label:"触发方式",rules:[{required:!0,message:x(985)}],children:l.jsx(z[x(385)],{options:Rc,placeholder:x(407)})}),O===x(484)&&l[x(454)](z[x(432)][x(798)],{name:x(1248),label:"外部事件标识",rules:[{required:!0,message:x(1182)},{validator:(k,j)=>(j||"")[x(2053)]()?Promise[x(1762)]():Promise[x(561)](new Error(x(780)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:l[x(454)](z[x(950)],{placeholder:x(535)})}),l[x(454)](z[x(432)][x(798)],{className:"mb-0",children:l[x(2088)](z[x(1170)],{className:x(978),children:[l[x(454)](z[x(577)],{onClick:()=>{H[x(1491)](),G(!1)},children:"取消"}),l.jsx(z.Button,{type:x(2051),htmlType:x(1647),children:"创建"})]})})]})})]}),l[x(454)](z.Modal,{title:x(339),open:q,onCancel:()=>{T(!1),X(null)},footer:null,destroyOnClose:!0,children:l.jsxs(z[x(432)],{form:N,onFinish:re,layout:x(1932),children:[l[x(454)](z[x(432)][x(798)],{name:x(1872),label:"名称",rules:[{required:!0,message:x(876)}],children:l[x(454)](z[x(950)],{})}),l[x(454)](z[x(432)][x(798)],{name:"executorType",label:"执行方式",rules:[{required:!0,message:x(1144)}],children:l[x(454)](z[x(385)],{options:X3,placeholder:x(2006)})}),D===x(1339)&&l[x(454)](z[x(432)][x(798)],{name:x(554),label:x(1545),rules:[{required:!0,message:x(1357)}],children:l[x(454)](z.Select,{options:V3,placeholder:x(1440)})}),D==="builtin"&&B===x(1191)&&l[x(2088)](l.Fragment,{children:[l[x(454)](z[x(432)][x(798)],{name:["builtinConfig",x(1768)],label:x(930),rules:[{required:!0,message:x(819)}],extra:x(1382),children:l[x(454)](z[x(950)][x(866)],{rows:3,placeholder:x(1727)})}),l[x(454)](z.Form[x(798)],{name:[x(626),x(1592)],label:x(1361),children:l[x(454)](z[x(385)],{options:T3})}),l[x(454)](z[x(432)][x(798)],{name:["builtinConfig",x(833)],label:x(1599),extra:"留空使用 antd 默认;填 0 表示不自动关闭",children:l[x(454)](z.InputNumber,{min:0,step:.5,style:{width:"100%"},placeholder:"默认"})})]}),D===x(1339)&&B==="switchCanvas"&&l[x(454)](z[x(432)][x(798)],{name:["builtinConfig","targetCanvasId"],label:"目标画布",rules:[{required:!0,message:"请选择目标画布"}],children:l[x(454)](z[x(385)],{placeholder:"选择要跳转的画布",options:g[x(519)][x(1849)](k=>({value:k.id,label:k[x(1872)]}))})}),D===x(1061)&&l.jsx(z[x(432)].Item,{name:x(1836),label:"请求标识",rules:[{required:!0,message:x(965)},{validator:(k,j)=>(j||"").trim()?Promise[x(1762)]():Promise[x(561)](new Error(x(780)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:l[x(454)](z[x(950)],{placeholder:x(546)})}),D===x(484)&&l[x(454)](z.Form[x(798)],{name:x(1090),label:x(1682),rules:[{required:!0,message:"请填写外部方法标识"},{validator:(k,j)=>(j||"").trim()?Promise[x(1762)]():Promise[x(561)](new Error(x(780)))}],extra:a[x(402)]>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:a[x(402)]>0?l[x(454)](z[x(385)],{showSearch:!0,optionFilterProp:x(700),allowClear:!0,placeholder:x(763),options:a[x(1849)](k=>({value:k.key,label:k[x(700)],title:k.description?k[x(700)]+x(1347)+k[x(886)]:k[x(700)]+" ("+k[x(1789)]+")"}))}):l[x(454)](z.Input,{placeholder:"例如:navigateTo、openDialog"})}),D===x(1890)&&l[x(454)](z[x(432)][x(798)],{name:"callback",label:x(1280),rules:[{validator:(k,j)=>{const W=x;return typeof j===W(1863)&&j[W(2053)]()?Promise[W(1762)]():Promise[W(561)](new Error(W(1866)))}}],children:l[x(454)](z[x(950)][x(866)],{rows:6,placeholder:x(452)})}),P[x(402)]>0&&l[x(2088)]("div",{className:x(1092),children:[l[x(454)](x(1415),{className:x(434),children:"上游连线 → 本块 args 键名"}),l[x(454)]("ul",{className:x(2066),children:P[x(1849)](k=>{const j=x,W=A??_?.[j(1498)]??[],E=K3(k[j(2119)],k[j(1206)],W);return l[j(2088)]("li",{className:j(955),children:[l[j(2088)](j(1415),{className:j(1788),children:["第 ",k[j(2119)]+1,j(1583),k[j(592)],"」:上游",l[j(454)](j(2104),{children:j(1827)})," →"," ",l[j(2088)](j(1661),{className:j(1356),children:[j(889),E]})]}),l.jsxs(j(1415),{className:j(343),children:[j(1444),k.edgeIndex+1,j(353)]})]},k.sourceId)})})]}),l[x(454)](x(1415),{className:x(1828),children:x(2005)}),l[x(2088)](x(1415),{className:x(824),children:["第 1 行对应第 1 条指向本块的连线,第 2 行对应第 2 条……(顺序与画布连线添加顺序一致,先连在前)。不添加行时:单入边用"," ",l[x(454)](x(1661),{children:x(1237)}),x(1486),l[x(454)](x(1661),{children:x(1008)}),"、",l.jsx(x(1661),{children:x(1392)}),"…"]}),l[x(454)](z[x(432)][x(1542)],{name:x(1498),children:(k,{add:j,remove:W})=>l[x(2088)](l[x(562)],{children:[k[x(1849)](({key:E,name:oe,...se})=>l.jsxs(z.Space,{align:x(2061),wrap:!0,className:x(1704),children:[l[x(454)](z[x(432)][x(798)],{...se,name:[oe,"name"],rules:[{required:!0,message:"名称"}],children:l[x(454)](z[x(950)],{placeholder:x(2138),style:{width:140}})}),l[x(454)](z.Form[x(798)],{...se,name:[oe,x(1246)],initialValue:x(479),children:l[x(454)](z[x(385)],{options:R3,style:{width:100}})}),l.jsx(de[x(1765)],{className:x(962),onClick:()=>W(oe)})]},E)),l.jsx(z[x(577)],{type:x(1632),onClick:()=>j({type:x(479)}),block:!0,icon:l[x(454)](de[x(1179)],{}),children:x(995)})]})}),l[x(454)](z[x(432)][x(798)],{className:x(1364),children:l[x(2088)](z[x(1170)],{className:x(978),children:[l[x(454)](z[x(577)],{onClick:()=>{T(!1),X(null)},children:"取消"}),l[x(454)](z.Button,{type:"primary",htmlType:"submit",children:"保存"})]})})]})})]}):null},a0={click:"点击",mouseDown:c(1878),mouseUp:c(563),doubleClick:"双击",mouseOver:"鼠标移入",mouseLeave:"鼠标移出",mouseEnter:c(1629),contextMenu:c(1528),dataRequest:c(355),external:c(1681)};function J3(e){const n=c;if(e[n(1739)]===n(484)){const t=(e.externalEventKey||"")[n(2053)]();return t?a0[n(484)]+" · "+t:a0[n(484)]}return a0[e[n(1739)]]}const F3=Object[c(2087)](a0).map(([e,n])=>({label:n,value:e})),Q3=({nodeId:e})=>{const n=c,{eventFlow:t,addEventRoot:o,updateEventRoot:x,removeEventRoot:r}=qe(),[i,a]=L.useState(!1),[u,s]=L[n(1039)](null),[d,f]=L.useState(!1),[b]=z[n(432)].useForm(),g=z.Form[n(426)]("eventType",b),m=L[n(1345)](()=>{const v=n;return t[v(1761)][v(1211)](w=>w[v(482)]===e)},[t.eventRoots,e]),h=v=>{const w=n,C={bindNodeId:e,eventType:v[w(1739)],externalEventKey:v[w(1739)]===w(484)?(v.externalEventKey||"")[w(2053)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0};o(C),b[w(1491)](),f(!1)},p=v=>{s(v),a(!0)},M=(v,w)=>{x(v.id,{enabled:w})},y=v=>{r(v)};return l[n(2088)](n(1415),{children:[l.jsxs(n(1415),{className:n(1505),children:[l[n(454)]("h4",{className:"text-sm font-medium",children:n(1407)}),l.jsx(z[n(577)],{type:n(2051),size:n(1261),icon:l[n(454)](de[n(1179)],{}),onClick:()=>f(!0),children:n(517)})]}),l[n(454)](z.List,{dataSource:m,renderItem:v=>l[n(454)](z[n(1542)][n(798)],{actions:[l[n(454)](z[n(1368)],{checked:v.enabled,size:n(1261),onChange:w=>M(v,w)},n(1335)),l[n(454)](z[n(577)],{type:n(1083),size:"small",icon:l.jsx(de.EditOutlined,{}),onClick:()=>p(v)},n(2134)),l[n(454)](z.Popconfirm,{title:n(1726),description:n(2127),onConfirm:()=>y(v.id),children:l[n(454)](z[n(577)],{type:n(1083),danger:!0,size:n(1261),icon:l[n(454)](de.DeleteOutlined,{})})},n(1953))],children:l[n(454)](z.List.Item[n(869)],{title:l[n(2088)](z[n(1170)],{children:[l[n(454)](z[n(1362)],{color:v[n(893)]?n(864):n(795),children:J3(v)}),l[n(2088)](n(594),{className:n(1574),children:[v[n(1546)][n(2110)][n(402)],n(710)]})]}),description:v[n(893)]?l.jsx(n(594),{className:n(1781),children:"已启用"}):l[n(454)](n(594),{className:"text-xs text-gray-400",children:n(2043)})})}),locale:{emptyText:l[n(454)](z[n(1763)],{image:z.Empty[n(514)],description:"暂无事件流绑定"})}}),l[n(454)](z[n(609)],{title:"添加事件流",open:d,onCancel:()=>{b[n(1491)](),f(!1)},footer:null,afterOpenChange:v=>{v&&b.resetFields()},children:l[n(2088)](z[n(432)],{form:b,onFinish:h,layout:n(1932),children:[l[n(454)](z[n(432)][n(798)],{name:"eventType",label:n(1148),rules:[{required:!0,message:"请选择触发方式"}],children:l.jsx(z[n(385)],{options:F3,placeholder:n(1412)})}),g===n(484)&&l.jsx(z.Form[n(798)],{name:n(1248),label:n(1501),rules:[{required:!0,message:n(1182)},{validator:(v,w)=>(w||"")[n(2053)]()?Promise[n(1762)]():Promise[n(561)](new Error("标识不能为空"))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:l[n(454)](z[n(950)],{placeholder:n(722)})}),l.jsx(z[n(432)][n(798)],{className:"mb-0",children:l[n(2088)](z[n(1170)],{className:"w-full justify-end",children:[l[n(454)](z[n(577)],{onClick:()=>f(!1),children:"取消"}),l[n(454)](z[n(577)],{type:n(2051),htmlType:n(1647),children:"创建"})]})})]})}),l[n(454)](_3,{open:i,onClose:()=>{a(!1),s(null)},bindNodeId:e,editingRoot:u},u?.id??n(1724)+e)]})},{Panel:Gn}=z[c(1969)],{TabPane:c0}=z[c(1652)],{TextArea:$3}=z[c(950)],Jc=({defaultTestData:e})=>{const n=c,{nodes:t,selectedNodeId:o,updateNode:x,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:a,materials:u,selectedStatusId:s,selectStatus:d}=qe(),[f]=z[n(432)][n(1889)](),[b,g]=L[n(1039)](n(1926)),[m,h]=L[n(1039)](!1),[p,M]=L[n(1039)](null),[y,v]=L[n(1039)]({}),w=L.useMemo(()=>t[n(438)](B=>B.id===o),[t,o]),C=w?.contentInfo[n(673)]||[],S=D=>{const B=n;o&&(D[B(500)]&&r(o,D[B(500)]),D[B(1872)]!==void 0&&x(o,{name:D.name}),D[B(1292)]&&i(o,D[B(1292)]))};console.log(o,"selectedNodeId",w),L[n(856)](()=>{const D=n;w&&w&&(f.setFieldsValue({name:w[D(1872)],normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:"transparent",borderRadius:0,opacity:1,...w[D(500)]},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...w[D(1292)]}}),d(null))},[w,d,f]);const U=()=>{const D=n;!o||!w||(M(D(2150)),h(!0))},G=D=>{const B=n;if(!o||!w)return;const A={id:ze[B(2016)](),name:D[B(1872)]+B(1778)+(C[B(402)]+1),expression:C[B(402)]===0?"return true;":B(1457),material:{...D,id:ze[B(2016)]()},boundDatasetId:null};if(p==="new"){const P=[...C,A];a(o,{statusList:P})}else if(p){const P=C.map(I=>{const Z=B;return I.id===p?{...I,material:{...D,id:ze[Z(2016)]()}}:I});a(o,{statusList:P})}h(!1),M(null)},H=D=>{const B=n;if(!o||!w)return;const A=w.contentInfo.statusList?.[B(1211)](P=>P.id!==D)||[];a(o,{statusList:A}),s===D&&d(null)},O=(D,B)=>{const A=n;if(!o||!w)return;const P=w.contentInfo[A(673)]?.[A(1849)](I=>I.id===D?{...I,...B}:I)||[];a(o,{statusList:P})},_=D=>{const B=n;if(!o||!w)return;const A={...D,id:ze[B(2016)](),name:D.name+B(1285),expression:B(1457)},P=[...C,A];a(o,{statusList:P})},X=(D,B)=>{if(!o||!w)return;const A=C.findIndex(I=>I.id===D);if(A===-1)return;const P=[...C];B==="up"&&A>0?[P[A],P[A-1]]=[P[A-1],P[A]]:B==="down"&&A<P.length-1&&([P[A],P[A+1]]=[P[A+1],P[A]]),a(o,{statusList:P})},q=D=>{M(D),h(!0)},T=(D,B)=>{const A=n,P=B[A(2011)]||{},I=P.startX??0,Z=P.startY??0,Q=P[A(973)]??100,J=P[A(1085)]??0,$=Math[A(1108)]((P[A(1779)]||P.thickness||2)*2,4),xe=Math[A(782)](I,Q),ae=Math[A(782)](Z,J),le=Math[A(1108)](I,Q),fe=Math.max(Z,J),re=Math[A(1108)](le-xe,$),K=Math[A(1108)](fe-ae,$),ie=D[A(500)].x||0,R=D[A(500)].y||0;return{material:{...B,config:{...P,startX:I-xe,startY:Z-ae,endX:Q-xe,endY:J-ae}},box:{x:ie+xe,y:R+ae,width:re,height:K}}},N=(D,B)=>{const A=n;if(!o||!w)return;const{list:P,lineBox:I}=C[A(1833)]((Z,Q)=>{const J=A;if(Q.id!==D)return Z.list.push(Q),Z;let $;if(Q[J(1080)][J(1246)]===J(1772)&&J(2011)in B&&B.config!==void 0){const xe=Q[J(1080)],ae=B[J(2011)];$={...xe,...B,config:{...xe[J(2011)]||{},...ae}}}else $={...Q.material,...B};if($[J(1246)]===J(1772)){const{material:xe,box:ae}=T(w,$);return Z[J(1519)].push({...Q,material:xe}),Z.lineBox=ae,Z}return Z[J(1519)][J(557)]({...Q,material:$}),Z},{list:[],lineBox:null});I!==null?x(o,{normalStyle:{...w[A(500)],x:I.x,y:I.y,width:I[A(1915)],height:I.height},contentInfo:{...w.contentInfo,statusList:P}}):a(o,{statusList:P})};return w?l[n(2088)](n(1415),{className:n(723),children:[l[n(2088)](n(1415),{className:"p-4 border-b border-gray-200",children:[l[n(454)]("h3",{className:n(1595),children:n(1791)}),l.jsx("p",{className:n(716),children:"编辑选中节点的属性"})]}),l[n(454)](n(1415),{className:n(1496),children:l[n(2088)](z[n(1652)],{activeKey:b,onChange:g,children:[l.jsx(c0,{tab:"基础",children:l.jsxs(z.Form,{form:f,layout:n(1932),onValuesChange:S,initialValues:{name:w[n(1872)]},children:[l[n(454)](z[n(432)][n(798)],{label:n(414),name:n(1872),children:l.jsx(z[n(950)],{placeholder:n(502)})}),l[n(2088)](z[n(1969)],{ghost:!0,defaultActiveKey:["position",n(413),n(799)],children:[l[n(454)](Gn,{header:"位置",children:l[n(2088)](z[n(1170)],{children:[l[n(454)](z.Form[n(798)],{label:"X",name:[n(500),"x"],children:l[n(454)](z[n(1221)],{})}),l[n(454)](z[n(432)].Item,{label:"Y",name:[n(500),"y"],children:l.jsx(z.InputNumber,{})})]})},n(1388)),l[n(454)](Gn,{header:"尺寸",children:l[n(2088)](z[n(1170)],{children:[l.jsx(z[n(432)].Item,{label:"宽度",name:["normalStyle",n(1915)],children:l.jsx(z[n(1221)],{min:10})}),l[n(454)](z[n(432)][n(798)],{label:"高度",name:["normalStyle",n(2035)],children:l[n(454)](z[n(1221)],{min:10})})]})},n(413)),l[n(2088)](Gn,{header:"样式",children:[l[n(454)](z.Form.Item,{label:n(926),name:[n(500),n(523)],children:l.jsx(z.Input,{placeholder:"transparent, #fff, url(...)"})}),l[n(454)](z[n(432)][n(798)],{label:n(494),name:["normalStyle",n(467)],children:l[n(454)](z[n(1221)],{min:0})}),l.jsx(z[n(432)][n(798)],{label:"圆角",name:[n(500),n(1899)],children:l[n(454)](z.InputNumber,{min:0})}),l.jsx(z.Form[n(798)],{label:n(448),name:[n(500),n(1126)],help:n(1442),children:l.jsx(z[n(1221)],{min:.1,max:5,step:.1})}),!w.contentInfo[n(673)][n(1548)](D=>D[n(1080)][n(1246)]==="LINE")&&l[n(454)](z[n(432)][n(798)],{label:n(2112),name:[n(500),n(660)],help:n(596),children:l.jsx(z.InputNumber,{min:0,max:360,step:1})}),l[n(454)](z[n(432)][n(798)],{label:n(1196),name:[n(500),n(496)],children:l.jsx(z[n(1221)],{min:0,max:1,step:.1})}),l[n(454)](z[n(432)][n(798)],{label:"层级",name:[n(500),n(1445)],children:l.jsx(z[n(1221)],{})})]},n(799))]})]})},n(1926)),l.jsx(c0,{tab:"状态",children:w[n(1246)]===n(1747)&&w[n(2099)]?l[n(454)](Il,{node:w,updateNode:x,materials:u}):l[n(2088)](n(1415),{className:n(1354),children:[l[n(2088)](n(1415),{className:n(989),children:[l[n(2088)](n(594),{className:"font-medium",children:[n(1718),l[n(454)](z[n(1362)],{color:n(864),className:"ml-2",children:C.length})]}),l[n(454)](z[n(577)],{type:n(2051),size:n(1261),icon:l[n(454)](de.PlusOutlined,{}),onClick:U,children:n(1730)})]}),l[n(454)]("p",{className:"text-xs text-gray-500 mb-3",children:"节点根据状态表达式计算结果显示对应物料,第一个返回 true 的状态为当前状态"}),C.length>0&&l[n(454)](n(1415),{className:n(1222),children:l[n(454)](n(1415),{className:n(1228),children:l[n(2088)]("div",{children:[l[n(454)](n(594),{className:n(643),children:n(879)}),l[n(454)](n(594),{className:n(984),children:"由表达式自动计算"})]})})}),C[n(402)]===0?l.jsx(n(1415),{className:"text-center text-gray-400 py-4 bg-gray-50 rounded-lg",children:"暂无状态,点击上方按钮添加"}):l[n(454)](z[n(1969)],{ghost:!0,defaultActiveKey:C[0]?.id+o,children:C[n(1849)]((D,B)=>l[n(454)](Gn,{header:l[n(2088)](n(1415),{className:n(796),children:[l[n(454)]("span",{className:n(1536),children:B+1}),l[n(454)](n(594),{className:n(1571),children:D.name}),l[n(454)](z[n(1362)],{color:n(795),className:n(1274),children:D[n(1080)].type})]}),extra:l[n(2088)](z[n(1170)],{size:n(1261),onClick:A=>A[n(986)](),children:[l[n(454)](z.Button,{type:"text",size:n(1261),icon:l.jsx(de[n(745)],{}),disabled:B===0,onClick:A=>{A[n(986)](),X(D.id,"up")}}),l[n(454)](z[n(577)],{type:n(1083),size:n(1261),icon:l[n(454)](de[n(2002)],{}),disabled:B===C.length-1,onClick:A=>{const P=n;A[P(986)](),X(D.id,P(1671))}}),l[n(454)](z[n(577)],{type:"text",size:n(1261),icon:l.jsx(de[n(753)],{}),onClick:A=>{A[n(986)](),_(D)}}),l[n(454)](z.Button,{type:"text",size:"small",danger:!0,icon:l[n(454)](de.DeleteOutlined,{}),onClick:A=>{A[n(986)](),H(D.id)}})]}),children:l.jsxs(z[n(432)],{layout:n(1932),children:[l[n(454)](z[n(432)][n(798)],{label:n(1596),children:l[n(454)](z[n(950)],{value:D[n(1872)],onChange:A=>O(D.id,{name:A[n(345)][n(1462)]}),placeholder:n(2055)})}),l[n(454)](qr,{status:D,onUpdate:A=>O(D.id,A),onAppendToExpression:A=>{v(P=>({...P,[D.id]:(P[D.id]??D.expression)+A}))}}),l[n(454)](z[n(432)][n(798)],{label:n(352),help:n(1367),children:l[n(454)]($3,{value:y[D.id]??D[n(1397)],onChange:A=>v(P=>({...P,[D.id]:A[n(345)][n(1462)]})),onBlur:A=>{const P=n;O(D.id,{expression:A[P(345)][P(1462)]}),v(I=>{const Z={...I};return delete Z[D.id],Z})},rows:3,placeholder:n(2060)})}),l[n(454)](z[n(432)].Item,{label:n(601),children:l[n(2088)](n(1415),{className:"flex items-center gap-2",children:[l[n(454)](z[n(1362)],{color:"blue",children:D[n(1080)][n(1872)]}),l[n(454)](z.Tag,{color:n(795),children:D[n(1080)][n(1246)]}),l[n(454)](z[n(577)],{type:"link",size:"small",icon:l[n(454)](de.EditOutlined,{}),onClick:()=>q(D.id),children:"更换物料"})]})}),l[n(454)](z.Divider,{style:{margin:n(951)}}),l[n(2088)]("div",{className:n(1821),children:[l[n(2088)](n(1415),{className:n(989),children:[l.jsx("span",{className:"text-sm font-medium",children:n(1702)}),l[n(454)](z[n(1362)],{children:D[n(1080)][n(1872)]})]}),l[n(454)](Wr,{material:D.material,onSave:A=>N(D.id,A)})]})]})},D.id+o))})]})},"status"),l.jsx(c0,{tab:"控制",children:l[n(2088)](z[n(432)],{form:f,layout:"vertical",onValuesChange:S,children:[l.jsx(z.Form[n(798)],{label:n(1554),name:["controlInfo",n(835)],valuePropName:n(1135),children:l[n(454)](z.Switch,{})}),l[n(454)](z.Form[n(798)],{label:n(1489),name:[n(1292),"isClickable"],valuePropName:n(1135),children:l.jsx(z[n(1368)],{})}),l.jsx(z.Form[n(798)],{label:n(330),name:["controlInfo","isResizable"],valuePropName:n(1135),children:l.jsx(z[n(1368)],{})}),l[n(454)](z.Form[n(798)],{label:"可选中",name:[n(1292),n(521)],valuePropName:n(1135),children:l[n(454)](z[n(1368)],{})})]})},"control"),l[n(454)](c0,{tab:n(887),children:l[n(454)](Q3,{nodeId:w.id})},n(1481))]})}),l[n(454)](n(1415),{className:n(1071),children:l[n(2088)]("div",{className:"text-xs text-gray-500",children:[l[n(2088)](n(1415),{children:[n(1958),w.id[n(1912)](0,8),n(1057)]}),l[n(2088)](n(1415),{children:[n(640),C.length]})]})}),l[n(454)](z.Modal,{title:n(1692),open:m,onCancel:()=>{h(!1),M(null)},footer:null,width:600,children:l[n(454)](n(1415),{className:n(1856),children:l[n(2088)](z[n(1969)],{ghost:!0,defaultActiveKey:[n(1926),n(1625),n(1083),n(1774)],children:[l[n(454)](Gn,{header:n(1867),children:l[n(454)](n(1415),{className:n(1955),children:u.filter(D=>["矩形","圆形",n(1917)][n(633)](D[n(1872)]))[n(1849)](D=>l[n(454)](Fc,{material:D,onClick:()=>G(D)},D.id))})},"basic"),l[n(454)](Gn,{header:n(1908),children:l[n(454)](n(1415),{className:"grid grid-cols-4 gap-2",children:u[n(1211)](D=>["阀门","泵","罐体"][n(633)](D.name)||D[n(1246)]===n(1976)&&!["矩形","圆形",n(1917)][n(633)](D[n(1872)])).map(D=>l[n(454)](Fc,{material:D,onClick:()=>G(D)},D.id))})},n(1625)),l.jsx(Gn,{header:"文本",children:l[n(454)](n(1415),{className:n(1955),children:u[n(1211)](D=>D[n(1246)]==="TEXT").map(D=>l[n(2088)]("div",{className:"border rounded-lg p-2 cursor-pointer hover:border-blue-500 hover:bg-blue-50 transition-all text-center",onClick:()=>G(D),children:[l.jsx(n(1415),{className:n(2082),children:l[n(454)](n(594),{className:"text-lg font-bold text-gray-500",children:"T"})}),l[n(454)]("span",{className:n(1274),children:D[n(1872)]})]},D.id))})},n(1083)),l[n(454)](Gn,{header:"线条",children:l[n(454)]("div",{className:n(1955),children:u[n(1211)](D=>D[n(1246)]===n(1772))[n(1849)](D=>l[n(2088)](n(1415),{className:"border rounded-lg p-2 cursor-pointer hover:border-blue-500 hover:bg-blue-50 transition-all text-center",onClick:()=>G(D),children:[l[n(454)](n(1415),{className:n(2082),children:l[n(454)](n(1415),{className:n(2137)})}),l[n(454)]("span",{className:"text-xs",children:D[n(1872)]})]},D.id))})},n(1774))]})})})]}):l[n(454)](n(1415),{className:"h-full flex items-center justify-center bg-white border-l border-gray-200",children:l[n(454)](z[n(1763)],{description:n(1370)})})},Fc=({material:e,onClick:n})=>{const t=c,o=e[t(1246)]===t(1976)?e[t(1935)]:void 0;return l[t(2088)](t(1415),{className:t(1817),onClick:n,children:[l.jsx("div",{className:t(1871),children:o?l[t(454)](t(705),{src:o,alt:e[t(1872)],className:t(1822)}):l.jsx(t(594),{className:t(1274),children:e[t(1872)][0]})}),l[t(454)]("span",{className:t(1274),children:e[t(1872)]})]})},eb="ConfigEditor-module__configEditor__dinNG",nb={configEditor:eb},tb=c(1964);function Qc(e){return Array[c(2018)](e)}const $c=({open:e,onClose:n})=>{const t=c,{dataPool:o,addDataPoolItem:x,updateDataPoolItem:r,removeDataPoolItem:i}=qe(),[a]=z[t(432)][t(1889)](),[u,s]=L[t(1039)](null);L[t(856)](()=>{!e&&(s(null),a.resetFields())},[e,a]);const d=()=>{const h=t;s("__new__"),a.setFieldsValue({name:h(960)+(o.length+1),sampleJson:""})},f=h=>{const p=t;s(h.id),a.setFieldsValue({name:h[p(1872)],sampleJson:JSON.stringify(h[p(2022)]??{},null,2)})},b=h=>{const p=t,M=h[p(2053)]();if(!M)return{};const y=JSON.parse(M);if(y===null||typeof y!==p(2151))throw new Error("sample 必须是 JSON 对象或数组");if(Array[p(2018)](y)){for(let v=0;v<y[p(402)];v++)if(typeof y[v]!==p(2151)||y[v]===null)throw new Error(p(982)+(v+1)+" 项必须是对象");return y}return y},g=()=>{const h=t;a.validateFields()[h(1229)](p=>{const M=h;let y;try{y=b(p.sampleJson)}catch(w){z.message[M(598)](w instanceof Error?w[M(1200)]:M(618));return}const v=p[M(1872)][M(2053)]();if(!v){z[M(1200)][M(598)]("请填写名称");return}u==="__new__"?(x({name:v,sample:y}),z[M(1200)][M(966)](M(924))):u&&(r(u,{name:v,sample:y}),z[M(1200)][M(966)]("已保存")),s(null),a.resetFields()}).catch(()=>{})},m=[{title:"名称",dataIndex:t(1872),key:t(1872)},{title:"类型",key:t(1246),width:100,render:(h,p)=>Qc(p[t(2022)])?l[t(2088)](z[t(1362)],{color:t(864),children:[t(2015),p[t(2022)].length,t(1093)]}):l[t(454)](z[t(1362)],{children:"对象"})},{title:"字段数",key:"keys",width:90,render:(h,p)=>{const M=t;if(Qc(p.sample)){const y=p[M(2022)][0];return y?Object[M(771)](y)[M(402)]:0}return Object[M(771)](p.sample||{})[M(402)]}},{title:"操作",key:"actions",width:160,render:(h,p)=>l.jsxs(z[t(1170)],{children:[l[t(454)](z[t(577)],{type:t(1447),size:t(1261),icon:l.jsx(de[t(1706)],{}),onClick:()=>f(p),children:"编辑"}),l[t(454)](z[t(800)],{title:t(575),description:"所有绑定此数据集的状态将自动解除绑定。",onConfirm:()=>{const M=t;i(p.id),z[M(1200)][M(966)](M(1870))},children:l[t(454)](z.Button,{type:t(1447),size:t(1261),danger:!0,icon:l.jsx(de[t(1482)],{}),children:"删除"})})]})}];return l[t(2088)](z[t(609)],{title:t(1843),open:e,onCancel:n,width:760,footer:null,destroyOnClose:!0,children:[l.jsxs("p",{className:"text-sm text-gray-500 mb-3",children:[t(1198)," ",l[t(454)]("code",{className:t(1666),children:t(1263)}),t(883)]}),l[t(454)](t(1415),{className:t(2143),children:l[t(454)](z.Button,{type:t(2051),icon:l[t(454)](de[t(1179)],{}),onClick:d,children:t(1549)})}),u&&l[t(2088)](t(1415),{className:t(603),children:[l[t(2088)](t(1415),{className:"font-medium mb-2",children:[u===t(1736)?"新建":"编辑",t(2059)]}),l[t(2088)](z[t(432)],{form:a,layout:t(1932),children:[l.jsx(z.Form[t(798)],{name:t(1872),label:"名称",rules:[{required:!0,message:"必填"}],children:l.jsx(z[t(950)],{placeholder:t(756)})}),l[t(454)](z[t(432)][t(798)],{name:t(1921),label:t(1551),rules:[{required:!0,message:"必填"}],children:l.jsx(z.Input[t(866)],{rows:12,className:t(476),placeholder:tb})}),l[t(2088)](z[t(1170)],{children:[l[t(454)](z[t(577)],{type:t(2051),onClick:g,children:"保存"}),l[t(454)](z[t(577)],{onClick:()=>{s(null),a.resetFields()},children:"取消"})]})]})]}),l.jsx(z[t(1516)],{size:"small",rowKey:"id",dataSource:o,columns:m,pagination:!1,locale:{emptyText:t(1687)}})]})},{Header:xb,Sider:es,Content:ob}=z[c(1455)],rb=({initialScheme:e,onChange:n,readonly:t=!1,headerExtra:o,className:x="",style:r,showHeader:i=!0,showMaterialPanel:a=!0,showPropertyPanel:u=!0,customMaterials:s,initialDataPool:d,initialEventFlow:f,externalEventActions:b,onUploadSvg:g,defaultTestData:m,backgroundImageUrl:h,initialViewportWidth:p,initialViewportHeight:M})=>{const y=c,[v,w]=L.useState(!1),[C,S]=L[y(1039)](!1),[U,G]=L[y(1039)](""),[H]=L.useState(()=>[{paramsCode:y(1358),paramsName:y(539),value:25,paramsUnit:"mm/s"},{paramsCode:y(1452),paramsName:y(586),value:1.5,paramsUnit:y(1611)}]),O=m!==void 0?m:H,_=i&&!t,{exportScheme:X,importScheme:q,nodes:T,materials:N,dataPool:D,eventFlow:B,root:A,canvas:P,viewport:I,addMaterial:Z,setDataPool:Q,setEventFlow:J,setExternalHandlerCatalog:$}=qe();L.useRef(null);const xe=L[y(697)](!1);L[y(856)](()=>{const K=y;if(!xe[K(1123)]&&(xe[K(1123)]=!0,ar[K(644)](ie=>Z(ie)),e&&q(e),f!==void 0&&J(f),b&&b.length>0)){$(b);const ie={};for(const R of b){const k=String(R[K(1789)]??"")[K(2053)]();k&&R[K(1493)]&&(ie[k]=R[K(1493)])}Object[K(771)](ie).length>0&<.mergeDefaultRuntimeHandlers({external:ie})}},[]),L[y(856)](()=>{const K=y;s&&s[K(402)]>0&&s[K(644)](ie=>Z(ie))},[]),L[y(856)](()=>{d!==void 0&&Q(d)},[d,Q]),L.useEffect(()=>{if(n){const K=X();n(K)}},[T,N,D,B,A,n,X]);const ae=L[y(1974)](()=>{const K=y,ie=X(),R=JSON.stringify(ie,null,2),k=K(683)+encodeURIComponent(R),j=K(821)+Date[K(1723)]()+K(1540),W=document[K(1473)]("a");W.setAttribute(K(2009),k),W[K(804)](K(996),j),W[K(1091)](),z[K(1200)][K(966)](K(657))},[X]),le=L[y(1974)](()=>{const K=y;try{const ie=JSON[K(1802)](U);q(ie),w(!1),G(""),z[K(1200)][K(966)](K(1439))}catch{z[K(1200)][K(598)]("JSON 格式错误,请检查输入")}},[U,q]),fe=L[y(1974)](K=>{const ie=y,R=new FileReader;return R.onload=k=>{const j=_0x2299;try{const W=k[j(345)]?.[j(520)],E=JSON[j(1802)](W);q(E),z[j(1200)][j(966)](j(1439)),w(!1)}catch{z.message[j(598)](j(347))}},R[ie(628)](K),!1},[q]),re=L[y(1974)](()=>X(),[X]);return L[y(1557)](L[y(697)]?.(),()=>({getScheme:re,exportScheme:X,importScheme:q}),[re,X,q]),l[y(454)](z[y(1383)],{locale:ys,children:l[y(454)](y(1415),{className:nb[y(430)],style:{height:t?"auto":y(1826),...r},children:l[y(2088)](z[y(1455)],{className:y(1181)+(t?"":"h-full")+" "+(t?"":y(487))+" "+x,children:[_&&l[y(2088)](xb,{className:y(1398),children:[l.jsxs(y(1415),{className:y(1027),children:[l[y(454)]("div",{className:y(840),children:"组态编辑器"}),l[y(2088)]("div",{className:"text-sm text-gray-500",children:[T.length,y(710)]})]}),l[y(2088)](z.Space,{children:[o,!t&&l[y(2088)](l[y(562)],{children:[l[y(454)](z[y(464)],{title:y(729),children:l.jsx(z[y(577)],{icon:l[y(454)](de[y(2049)],{}),onClick:ae,children:"导出"})}),l[y(454)](z.Tooltip,{title:"导入 JSON",children:l.jsx(z.Button,{icon:l[y(454)](de[y(845)],{}),onClick:()=>w(!0),children:"导入"})}),l[y(454)](z[y(464)],{title:y(1847),children:l.jsx(z[y(577)],{icon:l[y(454)](de.DatabaseOutlined,{}),onClick:()=>S(!0),children:y(746)})})]})]})]}),l[y(2088)](z[y(1455)],{children:[a&&!t&&l[y(454)](es,{width:280,className:"bg-white",theme:y(1973),children:l[y(454)](sr,{onUploadSvg:g})}),l.jsx(ob,{className:y(1699)+(t?"":y(1244)),style:t?{backgroundColor:P?.[y(523)],backgroundImage:P?.[y(584)]!==!1?y(569):void 0,backgroundSize:20*(I?.[y(1126)]||1)+y(545)+20*(I?.[y(1126)]||1)+"px"}:void 0,children:l[y(454)](Gr,{defaultTestData:O,readonly:t,backgroundImageUrl:h,initialViewportWidth:p,initialViewportHeight:M})}),u&&!t&&l[y(454)](es,{width:360,className:"bg-white",theme:y(1973),children:l[y(454)](Jc,{defaultTestData:Array[y(2018)](O)?O:void 0})})]}),l[y(454)]($c,{open:C,onClose:()=>S(!1)}),l.jsx(z[y(609)],{title:y(944),open:v,onOk:le,onCancel:()=>{w(!1),G("")},width:600,children:l[y(2088)](y(1415),{className:"space-y-4",children:[l.jsxs(y(1415),{children:[l[y(454)]("p",{className:"mb-2",children:y(928)}),l[y(454)](y(1185),{type:"file",accept:y(1540),onChange:K=>{const ie=y,R=K[ie(345)][ie(679)]?.[0];R&&fe(R)},className:`block w-full text-sm text-gray-500
|
|
8
|
+
+`)[s(1615)](`
|
|
9
|
+
`)),y=f[s(1606)]((g,p)=>g.concat(...p),[]);return[f,y]}return[[],[]]},[e]);return B[t(363)](()=>{const s=t,u=n?.[s(603)]??Jc,f=n?.[s(854)]??!0;if(e!==null){const y=h=>{const b=s;if(r[b(1560)]=h[b(569)]||h[b(769)]||h.shiftKey||h[b(1967)],(!r.current||r.current&&!f)&&tc(h))return!1;const v=Fc(h[b(1556)],d);if(i[b(1560)].add(h[v]),_c(c,i[b(1560)],!1)){const m=h[b(726)]?.()?.[0]||h.target,w=m?.[b(1527)]===b(1512)||m?.[b(1527)]==="A";n[b(1923)]!==!1&&(r[b(1560)]||!w)&&h[b(1923)](),x(!0)}},g=h=>{const b=s,M=Fc(h[b(1556)],d);_c(c,i[b(1560)],!0)?(x(!1),i.current[b(2016)]()):i[b(1560)][b(1147)](h[M]),h[b(1460)]==="Meta"&&i[b(1560)][b(2016)](),r[b(1560)]=!1},p=()=>{i[s(1560)].clear(),x(!1)};return u?.addEventListener(s(1354),y),u?.[s(1966)](s(1320),g),window[s(1966)](s(1648),p),window[s(1966)](s(696),p),()=>{const h=s;u?.[h(1339)]("keydown",y),u?.[h(1339)](h(1320),g),window[h(1339)](h(1648),p),window[h(1339)](h(696),p)}}},[e,x]),o}function _c(e,n,t){const o=a;return e.filter(x=>t||x.length===n[o(1705)])[o(1748)](x=>x[o(1452)](r=>n.has(r)))}function Fc(e,n){const t=a;return n.includes(e)?t(1556):"key"}const V1=()=>{const e=Ee();return B.useMemo(()=>{const n=_0x4806;return{zoomIn:t=>{const o=_0x4806,{panZoom:x}=e.getState();return x?x.scaleBy(1.2,t):Promise[o(2192)](!1)},zoomOut:t=>{const o=_0x4806,{panZoom:x}=e[o(1740)]();return x?x[o(368)](1/1.2,t):Promise[o(2192)](!1)},zoomTo:(t,o)=>{const x=_0x4806,{panZoom:r}=e[x(1740)]();return r?r[x(494)](t,o):Promise[x(2192)](!1)},getZoom:()=>e.getState()[n(1130)][2],setViewport:async(t,o)=>{const x=n,{transform:[r,i,c],panZoom:d}=e[x(1740)]();return d?(await d[x(1659)]({x:t.x??r,y:t.y??i,zoom:t.zoom??c},o),Promise[x(2192)](!0)):Promise.resolve(!1)},getViewport:()=>{const t=n,[o,x,r]=e[t(1740)]()[t(1130)];return{x:o,y:x,zoom:r}},setCenter:async(t,o,x)=>{const r=n;return e[r(1740)]()[r(555)](t,o,x)},fitBounds:async(t,o)=>{const x=n,{width:r,height:i,minZoom:c,maxZoom:d,panZoom:s}=e[x(1740)](),u=ro(t,r,i,c,d,o?.[x(524)]??.1);return s?(await s[x(1659)](u,{duration:o?.[x(2056)],ease:o?.[x(2044)],interpolate:o?.[x(2172)]}),Promise.resolve(!0)):Promise[x(2192)](!1)},screenToFlowPosition:(t,o={})=>{const x=n,{transform:r,snapGrid:i,snapToGrid:c,domNode:d}=e[x(1740)]();if(!d)return t;const{x:s,y:u}=d[x(1761)](),f={x:t.x-s,y:t.y-u},y=o.snapGrid??i,g=o[x(2025)]??c;return e0(f,r,g,y)},flowToScreenPosition:t=>{const o=n,{transform:x,domNode:r}=e[o(1740)]();if(!r)return t;const{x:i,y:c}=r[o(1761)](),d=R0(t,x);return{x:d.x+i,y:d.y+c}}}},[])};function Qc(e,n){const t=a,o=[],x=new Map,r=[];for(const i of e)if(i[t(1424)]==="add"){r[t(1465)](i);continue}else if(i[t(1424)]==="remove"||i[t(1424)]===t(598))x[t(799)](i.id,[i]);else{const c=x[t(1157)](i.id);c?c[t(1465)](i):x[t(799)](i.id,[i])}for(const i of n){const c=x.get(i.id);if(!c){o[t(1465)](i);continue}if(c[0].type===t(921))continue;if(c[0].type===t(598)){o[t(1465)]({...c[0][t(577)]});continue}const d={...i};for(const s of c)q1(s,d);o[t(1465)](d)}return r[t(2194)]&&r[t(1369)](i=>{const c=t;i[c(2045)]!==void 0?o.splice(i[c(2045)],0,{...i[c(577)]}):o[c(1465)]({...i[c(577)]})}),o}function q1(e,n){const t=a;switch(e[t(1424)]){case t(1877):{n[t(2178)]=e.selected;break}case t(1543):{typeof e[t(1543)]<"u"&&(n.position=e[t(1543)]),typeof e[t(562)]!==t(1202)&&(n[t(562)]=e[t(562)]);break}case t(630):{typeof e.dimensions<"u"&&(n.measured={...e[t(630)]},e[t(1873)]&&((e[t(1873)]===!0||e[t(1873)]===t(1238))&&(n[t(1238)]=e[t(630)][t(1238)]),(e[t(1873)]===!0||e[t(1873)]===t(1265))&&(n[t(1265)]=e[t(630)][t(1265)]))),typeof e[t(908)]=="boolean"&&(n[t(908)]=e[t(908)]);break}}}function $c(e,n){return Qc(e,n)}function ea(e,n){return Qc(e,n)}function et(e,n){return{id:e,type:"select",selected:n}}function Ct(e,n=new Set,t=!1){const o=a,x=[];for(const[r,i]of e){const c=n.has(r);!(i[o(2178)]===void 0&&!c)&&i[o(2178)]!==c&&(t&&(i[o(2178)]=c),x.push(et(i.id,c)))}return x}function na({items:e=[],lookup:n}){const t=a,o=[],x=new Map(e[t(542)](r=>[r.id,r]));for(const[r,i]of e[t(1942)]()){const c=n[t(1157)](i.id),d=c?.internals?.[t(1220)]??c;d!==void 0&&d!==i&&o[t(1465)]({id:i.id,item:i,type:t(598)}),d===void 0&&o[t(1465)]({item:i,type:t(1757),index:r})}for(const[r]of n)x[t(1157)](r)===void 0&&o[t(1465)]({id:r,type:t(921)});return o}function ta(e){const n=a;return{id:e.id,type:n(921)}}const xa=e=>h2(e),W1=e=>Wi(e);function oa(e){return B[a(2191)](e)}function ra(e){const n=a,[t,o]=B[n(655)](BigInt(0)),[x]=B[n(655)](()=>X1(()=>o(r=>r+BigInt(1))));return Mo(()=>{const r=n,i=x[r(1157)]();i[r(2194)]&&(e(i),x.reset())},[t]),x}function X1(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:t=>{n[_0x4806(1465)](t),e()}}}const ia=B[a(952)](null);function K1({children:e}){const n=a,t=Ee(),o=B[n(1591)](d=>{const s=n,{nodes:u=[],setNodes:f,hasDefaultNodes:y,onNodesChange:g,nodeLookup:p,fitViewQueued:h,onNodesChangeMiddlewareMap:b}=t.getState();let M=u;for(const m of d)M=typeof m===s(1154)?m(M):m;let v=na({items:M,lookup:p});for(const m of b.values())v=m(v);y&&f(M),v[s(2194)]>0?g?.(v):h&&window[s(1135)](()=>{const m=s,{fitViewQueued:w,nodes:C,setNodes:k}=t[m(1740)]();w&&k(C)})},[]),x=ra(o),r=B.useCallback(d=>{const s=n,{edges:u=[],setEdges:f,hasDefaultEdges:y,onEdgesChange:g,edgeLookup:p}=t[s(1740)]();let h=u;for(const b of d)h=typeof b===s(1154)?b(h):b;y?f(h):g&&g(na({items:h,lookup:p}))},[]),i=ra(r),c=B[n(528)](()=>({nodeQueue:x,edgeQueue:i}),[]);return l[n(1993)](ia[n(423)],{value:c,children:e})}function Z1(){const e=B.useContext(ia);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const R1=e=>!!e[a(1788)];function Bo(){const e=a,n=V1(),t=Ee(),o=Z1(),x=Be(R1),r=B[e(528)](()=>{const i=e,c=g=>t.getState().nodeLookup[i(1157)](g),d=g=>{o[i(1256)].push(g)},s=g=>{const p=i;o[p(1389)][p(1465)](g)},u=g=>{const p=i,{nodeLookup:h,nodeOrigin:b}=t[p(1740)](),M=xa(g)?g:h[p(1157)](g.id),v=M[p(890)]?$i(M.position,M[p(1583)],M[p(890)],h,b):M[p(1543)],m={...M,position:v,width:M.measured?.[p(1238)]??M[p(1238)],height:M.measured?.[p(1265)]??M[p(1265)]};return wt(m)},f=(g,p,h={replace:!1})=>{d(b=>b.map(M=>{const v=_0x4806;if(M.id===g){const m=typeof p===v(1154)?p(M):p;return h[v(598)]&&xa(m)?m:{...M,...m}}return M}))},y=(g,p,h={replace:!1})=>{const b=i;s(M=>M[b(542)](v=>{const m=b;if(v.id===g){const w=typeof p===m(1154)?p(v):p;return h[m(598)]&&W1(w)?w:{...v,...w}}return v}))};return{getNodes:()=>t.getState()[i(1361)].map(g=>({...g})),getNode:g=>c(g)?.[i(380)][i(1220)],getInternalNode:c,getEdges:()=>{const g=i,{edges:p=[]}=t[g(1740)]();return p[g(542)](h=>({...h}))},getEdge:g=>t[i(1740)]()[i(986)].get(g),setNodes:d,setEdges:s,addNodes:g=>{const p=i,h=Array[p(927)](g)?g:[g];o[p(1256)].push(b=>[...b,...h])},addEdges:g=>{const p=i,h=Array[p(927)](g)?g:[g];o[p(1389)][p(1465)](b=>[...b,...h])},toObject:()=>{const g=i,{nodes:p=[],edges:h=[],transform:b}=t[g(1740)](),[M,v,m]=b;return{nodes:p.map(w=>({...w})),edges:h[g(542)](w=>({...w})),viewport:{x:M,y:v,zoom:m}}},deleteElements:async({nodes:g=[],edges:p=[]})=>{const h=i,{nodes:b,edges:M,onNodesDelete:v,onEdgesDelete:m,triggerNodeChanges:w,triggerEdgeChanges:C,onDelete:k,onBeforeDelete:O}=t[h(1740)](),{nodes:G,edges:j}=await v2({nodesToRemove:g,edgesToRemove:p,nodes:b,edges:M,onBeforeDelete:O}),A=j[h(2194)]>0,Z=G.length>0;if(A){const W=j.map(ta);m?.(j),C(W)}if(Z){const W=G[h(542)](ta);v?.(G),w(W)}return(Z||A)&&k?.({nodes:G,edges:j}),{deletedNodes:G,deletedEdges:j}},getIntersectingNodes:(g,p=!0,h)=>{const b=i,M=_i(g),v=M?g:u(g),m=h!==void 0;return v?(h||t[b(1740)]()[b(1361)])[b(1641)](w=>{const C=b,k=t[C(1740)]().nodeLookup[C(1157)](w.id);if(k&&!M&&(w.id===g.id||!k[C(380)][C(2107)]))return!1;const O=wt(m?w:k),G=Qt(O,v);return p&&G>0||G>=O[C(1238)]*O[C(1265)]||G>=v[C(1238)]*v[C(1265)]}):[]},isNodeIntersecting:(g,p,h=!0)=>{const b=i,M=_i(g),v=M?g:u(g);if(!v)return!1;const m=Qt(v,p);return h&&m>0||m>=p[b(1238)]*p[b(1265)]||m>=v[b(1238)]*v[b(1265)]},updateNode:f,updateNodeData:(g,p,h={replace:!1})=>{f(g,b=>{const M=_0x4806,v=typeof p===M(1154)?p(b):p;return h[M(598)]?{...b,data:v}:{...b,data:{...b[M(1468)],...v}}},h)},updateEdge:y,updateEdgeData:(g,p,h={replace:!1})=>{y(g,b=>{const M=_0x4806,v=typeof p===M(1154)?p(b):p;return h[M(598)]?{...b,data:v}:{...b,data:{...b[M(1468)],...v}}},h)},getNodesBounds:g=>{const p=i,{nodeLookup:h,nodeOrigin:b}=t[p(1740)]();return g2(g,{nodeLookup:h,nodeOrigin:b})},getHandleConnections:({type:g,id:p,nodeId:h})=>Array[i(1139)](t.getState()[i(623)][i(1157)](h+"-"+g+(p?"-"+p:""))?.[i(1534)]()??[]),getNodeConnections:({type:g,handleId:p,nodeId:h})=>Array[i(1139)](t[i(1740)]()[i(623)][i(1157)](""+h+(g?p?"-"+g+"-"+p:"-"+g:""))?.[i(1534)]()??[]),fitView:async g=>{const p=i,h=t[p(1740)]()[p(1394)]??z2();return t[p(1766)]({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:h}),o.nodeQueue[p(1465)](b=>[...b]),h[p(1069)]}}},[]);return B[e(528)](()=>({...r,...n,viewportInitialized:x}),[x])}const ca=e=>e[a(2178)],J1=typeof window<"u"?window:void 0;function _1({deleteKeyCode:e,multiSelectionKeyCode:n}){const t=a,o=Ee(),{deleteElements:x}=Bo(),r=x0(e,{actInsideInputWithModifier:!1}),i=x0(n,{target:J1});B.useEffect(()=>{const c=_0x4806;if(r){const{edges:d,nodes:s}=o[c(1740)]();x({nodes:s[c(1641)](ca),edges:d[c(1641)](ca)}),o.setState({nodesSelectionActive:!1})}},[r]),B[t(363)](()=>{o[t(1766)]({multiSelectionActive:i})},[i])}function F1(e){const n=a,t=Ee();B[n(363)](()=>{const o=n,x=()=>{const r=_0x4806;if(!e[r(1560)]||!(e[r(1560)][r(674)]?.()??!0))return!1;const i=io(e[r(1560)]);(i.height===0||i[r(1238)]===0)&&t[r(1740)]()[r(2133)]?.(r(1031),nn[r(1144)]()),t[r(1766)]({width:i[r(1238)]||500,height:i[r(1265)]||500})};if(e.current){x(),window.addEventListener(o(362),x);const r=new ResizeObserver(()=>x());return r[o(1432)](e[o(1560)]),()=>{const i=o;window[i(1339)](i(362),x),r&&e[i(1560)]&&r.unobserve(e[i(1560)])}}},[])}const xx={position:a(2080),width:a(1805),height:a(1805),top:0,left:0},Q1=e=>({userSelectionActive:e[a(925)],lib:e[a(1402)],connectionInProgress:e[a(1329)][a(1311)]});function $1({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:t=!0,panOnScroll:o=!1,panOnScrollSpeed:x=.5,panOnScrollMode:r=Fn.Free,zoomOnDoubleClick:i=!0,panOnDrag:c=!0,defaultViewport:d,translateExtent:s,minZoom:u,maxZoom:f,zoomActivationKeyCode:y,preventScrolling:g=!0,children:p,noWheelClassName:h,noPanClassName:b,onViewportChange:M,isControlledViewport:v,paneClickDistance:m,selectionOnDrag:w}){const C=a,k=Ee(),O=B[C(575)](null),{userSelectionActive:G,lib:j,connectionInProgress:A}=Be(Q1,je),Z=x0(y),W=B.useRef();F1(O);const q=B[C(1591)](T=>{const N=C;M?.({x:T[0],y:T[1],zoom:T[2]}),!v&&k[N(1766)]({transform:T})},[M,v]);return B.useEffect(()=>{const T=C;if(O[T(1560)]){W.current=o1({domNode:O[T(1560)],minZoom:u,maxZoom:f,translateExtent:s,viewport:d,onDraggingChange:U=>k[T(1766)](P=>P[T(1321)]===U?P:{paneDragging:U}),onPanZoomStart:(U,P)=>{const{onViewportChangeStart:S,onMoveStart:K}=k.getState();K?.(U,P),S?.(P)},onPanZoom:(U,P)=>{const S=T,{onViewportChange:K,onMove:Q}=k[S(1740)]();Q?.(U,P),K?.(P)},onPanZoomEnd:(U,P)=>{const S=T,{onViewportChangeEnd:K,onMoveEnd:Q}=k[S(1740)]();Q?.(U,P),K?.(P)}});const{x:N,y:D,zoom:L}=W[T(1560)][T(1034)]();return k[T(1766)]({panZoom:W[T(1560)],transform:[N,D,L],domNode:O.current[T(686)](T(2078))}),()=>{W[T(1560)]?.destroy()}}},[]),B.useEffect(()=>{const T=C;W[T(1560)]?.[T(658)]({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:t,panOnScroll:o,panOnScrollSpeed:x,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:c,zoomActivationKeyPressed:Z,preventScrolling:g,noPanClassName:b,userSelectionActive:G,noWheelClassName:h,lib:j,onTransformChange:q,connectionInProgress:A,selectionOnDrag:w,paneClickDistance:m})},[e,n,t,o,x,r,i,c,Z,g,b,G,h,j,q,A,w,m]),l[C(1993)](C(539),{className:C(2055),ref:O,style:xx,children:p})}const eh=e=>({userSelectionActive:e[a(925)],userSelectionRect:e[a(1511)]});function nh(){const e=a,{userSelectionActive:n,userSelectionRect:t}=Be(eh,je);return n&&t?l[e(1993)](e(539),{className:e(1983),style:{width:t.width,height:t[e(1265)],transform:e(389)+t.x+e(1375)+t.y+e(2197)}}):null}const Do=(e,n)=>t=>{const o=_0x4806;t[o(603)]===n[o(1560)]&&e?.(t)},th=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e[a(1503)],connectionInProgress:e.connection.inProgress,dragging:e[a(1321)]});function xh({isSelecting:e,selectionKeyPressed:n,selectionMode:t=Jt[a(485)],panOnDrag:o,paneClickDistance:x,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:c,onPaneClick:d,onPaneContextMenu:s,onPaneScroll:u,onPaneMouseEnter:f,onPaneMouseMove:y,onPaneMouseLeave:g,children:p}){const h=a,b=Ee(),{userSelectionActive:M,elementsSelectable:v,dragging:m,connectionInProgress:w}=Be(th,je),C=v&&(e||M),k=B.useRef(null),O=B[h(575)](),G=B[h(575)](new Set),j=B[h(575)](new Set),A=B.useRef(!1),Z=P=>{const S=h;if(A[S(1560)]||w){A[S(1560)]=!1;return}d?.(P),b[S(1740)]()[S(1666)](),b[S(1766)]({nodesSelectionActive:!1})},W=P=>{const S=h;if(Array[S(927)](o)&&o?.[S(911)](2)){P[S(1923)]();return}s?.(P)},q=u?P=>u(P):void 0,T=P=>{const S=h;A[S(1560)]&&(P[S(1064)](),A[S(1560)]=!1)},N=P=>{const S=h,{domNode:K}=b[S(1740)]();if(O.current=K?.[S(1761)](),!O[S(1560)])return;const Q=P[S(603)]===k[S(1560)];if(!Q&&!!P.target.closest(S(1024))||!e||!(r&&Q||n)||P.button!==0||!P[S(678)])return;P[S(603)]?.[S(855)]?.(P[S(521)]),A.current=!1;const{x:xe,y:ce}=gn(P.nativeEvent,O[S(1560)]);b[S(1766)]({userSelectionRect:{width:0,height:0,startX:xe,startY:ce,x:xe,y:ce}}),!Q&&(P[S(1064)](),P[S(1923)]())},D=P=>{const S=h,{userSelectionRect:K,transform:Q,nodeLookup:R,edgeLookup:$,connectionLookup:xe,triggerNodeChanges:ce,triggerEdgeChanges:de,defaultEdgeOptions:fe,resetSelectedElements:ie}=b[S(1740)]();if(!O.current||!K)return;const{x:J,y:re}=gn(P[S(1530)],O[S(1560)]),{startX:_,startY:I}=K;if(!A[S(1560)]){const le=n?0:x;if(Math[S(2059)](J-_,re-I)<=le)return;ie(),i?.(P)}A[S(1560)]=!0;const Y={startX:_,startY:I,x:J<_?J:_,y:re<I?re:I,width:Math[S(1018)](J-_),height:Math[S(1018)](re-I)},X=G[S(1560)],H=j[S(1560)];G[S(1560)]=new Set(xo(R,Y,Q,t===Jt[S(1352)],!0)[S(542)](le=>le.id)),j.current=new Set;const oe=fe?.[S(942)]??!0;for(const le of G.current){const se=xe[S(1157)](le);if(se)for(const{edgeId:ge}of se[S(1534)]()){const ve=$[S(1157)](ge);ve&&(ve[S(942)]??oe)&&j[S(1560)].add(ge)}}if(!ec(X,G[S(1560)])){const le=Ct(R,G[S(1560)],!0);ce(le)}if(!ec(H,j[S(1560)])){const le=Ct($,j[S(1560)]);de(le)}b.setState({userSelectionRect:Y,userSelectionActive:!0,nodesSelectionActive:!1})},L=P=>{const S=h;P[S(772)]===0&&(P[S(603)]?.releasePointerCapture?.(P[S(521)]),!M&&P[S(603)]===k[S(1560)]&&b[S(1740)]()[S(1511)]&&Z?.(P),b[S(1766)]({userSelectionActive:!1,userSelectionRect:null}),A[S(1560)]&&(c?.(P),b[S(1766)]({nodesSelectionActive:G[S(1560)][S(1705)]>0})))},U=o===!0||Array[h(927)](o)&&o.includes(0);return l[h(1239)](h(539),{className:Ge(["react-flow__pane",{draggable:U,dragging:m,selection:e}]),onClick:C?void 0:Do(Z,k),onContextMenu:Do(W,k),onWheel:Do(q,k),onPointerEnter:C?void 0:f,onPointerMove:C?D:y,onPointerUp:C?L:void 0,onPointerDownCapture:C?N:void 0,onClickCapture:C?T:void 0,onPointerLeave:g,ref:k,style:xx,children:[p,l[h(1993)](nh,{})]})}function Lo({id:e,store:n,unselect:t=!1,nodeRef:o}){const x=a,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:c,nodeLookup:d,onError:s}=n[x(1740)](),u=d[x(1157)](e);if(!u){s?.(x(1071),nn[x(1123)](e));return}n[x(1766)]({nodesSelectionActive:!1}),u.selected?(t||u.selected&&c)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.[x(1560)]?.blur())):r([e])}function aa({nodeRef:e,disabled:n=!1,noDragClassName:t,handleSelector:o,nodeId:x,isSelectable:r,nodeClickDistance:i}){const c=a,d=Ee(),[s,u]=B[c(655)](!1),f=B.useRef();return B[c(363)](()=>{const y=c;f[y(1560)]=W2({getStoreItems:()=>d[y(1740)](),onNodeMouseDown:g=>{Lo({id:g,store:d,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),B[c(363)](()=>{const y=c;if(!(n||!e[y(1560)]||!f[y(1560)]))return f[y(1560)][y(658)]({noDragClassName:t,handleSelector:o,domNode:e.current,isSelectable:r,nodeId:x,nodeClickDistance:i}),()=>{const g=y;f[g(1560)]?.[g(1624)]()}},[t,o,n,r,e,x,i]),s}const oh=e=>n=>n.selected&&(n[a(2131)]||e&&typeof n[a(2131)]===a(1202));function sa(){const e=a,n=Ee();return B[e(1591)](o=>{const x=e,{nodeExtent:r,snapToGrid:i,snapGrid:c,nodesDraggable:d,onError:s,updateNodePositions:u,nodeLookup:f,nodeOrigin:y}=n[x(1740)](),g=new Map,p=oh(d),h=i?c[0]:5,b=i?c[1]:5,M=o[x(2161)].x*h*o.factor,v=o[x(2161)].y*b*o[x(497)];for(const[,m]of f){if(!p(m))continue;let w={x:m[x(380)][x(2107)].x+M,y:m[x(380)].positionAbsolute.y+v};i&&(w=$t(w,c));const{position:C,positionAbsolute:k}=Xi({nodeId:m.id,nextPosition:w,nodeLookup:f,nodeExtent:r,nodeOrigin:y,onError:s});m[x(1543)]=C,m[x(380)][x(2107)]=k,g[x(799)](m.id,m)}u(g)},[])}const No=B[a(952)](null),rh=No[a(423)];No[a(859)];const la=()=>B[a(689)](No),ih=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e[a(1996)]}),ch=(e,n,t)=>o=>{const x=a,{connectionClickStartHandle:r,connectionMode:i,connection:c}=o,{fromHandle:d,toHandle:s,isValid:u}=c,f=s?.[x(1626)]===e&&s?.id===n&&s?.[x(1424)]===t;return{connectingFrom:d?.[x(1626)]===e&&d?.id===n&&d?.type===t,connectingTo:f,clickConnecting:r?.[x(1626)]===e&&r?.id===n&&r?.[x(1424)]===t,isPossibleEndHandle:i===yt[x(786)]?d?.[x(1424)]!==t:e!==d?.[x(1626)]||n!==d?.id,connectionInProcess:!!d,clickConnectionInProcess:!!r,valid:f&&u}};function ah({type:e=a(964),position:n=he[a(1481)],isValidConnection:t,isConnectable:o=!0,isConnectableStart:x=!0,isConnectableEnd:r=!0,id:i,onConnect:c,children:d,className:s,onMouseDown:u,onTouchStart:f,...y},g){const p=a,h=i||null,b=e===p(603),M=Ee(),v=la(),{connectOnClick:m,noPanClassName:w,rfId:C}=Be(ih,je),{connectingFrom:k,connectingTo:O,clickConnecting:G,isPossibleEndHandle:j,connectionInProcess:A,clickConnectionInProcess:Z,valid:W}=Be(ch(v,h,e),je);!v&&M[p(1740)]()[p(2133)]?.(p(700),nn[p(954)]());const q=D=>{const L=p,{defaultEdgeOptions:U,onConnect:P,hasDefaultEdges:S}=M[L(1740)](),K={...U,...D};if(S){const{edges:Q,setEdges:R}=M[L(1740)]();R(sc(K,Q))}P?.(K),c?.(K)},T=D=>{const L=p;if(!v)return;const U=xc(D[L(1530)]);if(x&&(U&&D[L(772)]===0||!U)){const P=M[L(1740)]();mo[L(948)](D[L(1530)],{handleDomNode:D[L(1153)],autoPanOnConnect:P[L(1114)],connectionMode:P[L(2138)],connectionRadius:P[L(2113)],domNode:P[L(617)],nodeLookup:P.nodeLookup,lib:P[L(1402)],isTarget:b,handleId:h,nodeId:v,flowId:P[L(1996)],panBy:P.panBy,cancelConnection:P.cancelConnection,onConnectStart:P.onConnectStart,onConnectEnd:(...S)=>M.getState()[L(788)]?.(...S),updateConnection:P[L(1406)],onConnect:q,isValidConnection:t||((...S)=>M[L(1740)]()[L(1088)]?.(...S)??!0),getTransform:()=>M[L(1740)]()[L(1130)],getFromHandle:()=>M[L(1740)]()[L(1329)].fromHandle,autoPanSpeed:P[L(1670)],dragThreshold:P[L(2154)]})}U?u?.(D):f?.(D)},N=D=>{const L=p,{onClickConnectStart:U,onClickConnectEnd:P,connectionClickStartHandle:S,connectionMode:K,isValidConnection:Q,lib:R,rfId:$,nodeLookup:xe,connection:ce}=M[L(1740)]();if(!v||!S&&!x)return;if(!S){U?.(D[L(1530)],{nodeId:v,handleId:h,handleType:e}),M[L(1766)]({connectionClickStartHandle:{nodeId:v,type:e,id:h}});return}const de=nc(D.target),fe=t||Q,{connection:ie,isValid:J}=mo[L(486)](D[L(1530)],{handle:{nodeId:v,id:h,type:e},connectionMode:K,fromNodeId:S[L(1626)],fromHandleId:S.id||null,fromType:S.type,isValidConnection:fe,flowId:$,doc:de,lib:R,nodeLookup:xe});J&&ie&&q(ie);const re=structuredClone(ce);delete re.inProgress,re[L(1773)]=re[L(2150)]?re[L(2150)][L(1543)]:null,P?.(D,re),M[L(1766)]({connectionClickStartHandle:null})};return l.jsx(p(539),{"data-handleid":h,"data-nodeid":v,"data-handlepos":n,"data-id":C+"-"+v+"-"+h+"-"+e,className:Ge([p(1083),p(1309)+n,"nodrag",w,s,{source:!b,target:b,connectable:o,connectablestart:x,connectableend:r,clickconnecting:G,connectingfrom:k,connectingto:O,valid:W,connectionindicator:o&&(!A||j)&&(A||Z?r:x)}]),onMouseDown:T,onTouchStart:T,onClick:m?N:void 0,ref:g,...y,children:d})}const Mt=B[a(1312)](oa(ah));function sh({data:e,isConnectable:n,sourcePosition:t=he[a(693)]}){const o=a;return l[o(1239)](l[o(915)],{children:[e?.[o(1834)],l.jsx(Mt,{type:o(964),position:t,isConnectable:n})]})}function lh({data:e,isConnectable:n,targetPosition:t=he[a(1481)],sourcePosition:o=he.Bottom}){const x=a;return l[x(1239)](l.Fragment,{children:[l[x(1993)](Mt,{type:x(603),position:t,isConnectable:n}),e?.[x(1834)],l.jsx(Mt,{type:x(964),position:o,isConnectable:n})]})}function dh(){return null}function uh({data:e,isConnectable:n,targetPosition:t=he.Top}){const o=a;return l[o(1239)](l[o(915)],{children:[l[o(1993)](Mt,{type:"target",position:t,isConnectable:n}),e?.label]})}const ox={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},da={input:sh,default:lh,output:uh,group:dh};function fh(e){const n=a;return e[n(380)][n(2091)]===void 0?{width:e.width??e[n(1350)]??e[n(1346)]?.[n(1238)],height:e[n(1265)]??e[n(883)]??e[n(1346)]?.[n(1265)]}:{width:e[n(1238)]??e[n(1346)]?.[n(1238)],height:e[n(1265)]??e[n(1346)]?.[n(1265)]}}const hh=e=>{const n=a,{width:t,height:o,x,y:r}=Ft(e[n(750)],{filter:i=>!!i.selected});return{width:hn(t)?t:null,height:hn(o)?o:null,userSelectionActive:e[n(925)],transformString:"translate("+e.transform[0]+n(405)+e[n(1130)][1]+n(1575)+e.transform[2]+n(2158)+x+n(405)+r+n(2197)}};function gh({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:t}){const o=a,x=Ee(),{width:r,height:i,transformString:c,userSelectionActive:d}=Be(hh,je),s=sa(),u=B.useRef(null);B[o(363)](()=>{const p=o;!t&&u[p(1560)]?.[p(844)]({preventScroll:!0})},[t]);const f=!d&&r!==null&&i!==null;if(aa({nodeRef:u,disabled:!f}),!f)return null;const y=e?p=>{const h=o,b=x[h(1740)]().nodes[h(1641)](M=>M[h(2178)]);e(p,b)}:void 0,g=p=>{const h=o;Object[h(1201)][h(436)][h(897)](ox,p.key)&&(p[h(1923)](),s({direction:ox[p[h(1460)]],factor:p[h(1518)]?4:1}))};return l.jsx(o(539),{className:Ge([o(1984),o(1079),n]),style:{transform:c},children:l[o(1993)](o(539),{ref:u,className:o(454),onContextMenu:y,tabIndex:t?void 0:-1,onKeyDown:t?void 0:g,style:{width:r,height:i}})})}const ua=typeof window!==a(1202)?window:void 0,yh=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function fa({children:e,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:c,deleteKeyCode:d,selectionKeyCode:s,selectionOnDrag:u,selectionMode:f,onSelectionStart:y,onSelectionEnd:g,multiSelectionKeyCode:p,panActivationKeyCode:h,zoomActivationKeyCode:b,elementsSelectable:M,zoomOnScroll:v,zoomOnPinch:m,panOnScroll:w,panOnScrollSpeed:C,panOnScrollMode:k,zoomOnDoubleClick:O,panOnDrag:G,defaultViewport:j,translateExtent:A,minZoom:Z,maxZoom:W,preventScrolling:q,onSelectionContextMenu:T,noWheelClassName:N,noPanClassName:D,disableKeyboardA11y:L,onViewportChange:U,isControlledViewport:P}){const S=a,{nodesSelectionActive:K,userSelectionActive:Q}=Be(yh,je),R=x0(s,{target:ua}),$=x0(h,{target:ua}),xe=$||G,ce=$||w,de=u&&xe!==!0,fe=R||Q||de;return _1({deleteKeyCode:d,multiSelectionKeyCode:p}),l[S(1993)]($1,{onPaneContextMenu:r,elementsSelectable:M,zoomOnScroll:v,zoomOnPinch:m,panOnScroll:ce,panOnScrollSpeed:C,panOnScrollMode:k,zoomOnDoubleClick:O,panOnDrag:!R&&xe,defaultViewport:j,translateExtent:A,minZoom:Z,maxZoom:W,zoomActivationKeyCode:b,preventScrolling:q,noWheelClassName:N,noPanClassName:D,onViewportChange:U,isControlledViewport:P,paneClickDistance:c,selectionOnDrag:de,children:l[S(1239)](xh,{onSelectionStart:y,onSelectionEnd:g,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:xe,isSelecting:!!fe,selectionMode:f,selectionKeyPressed:R,paneClickDistance:c,selectionOnDrag:de,children:[e,K&&l[S(1993)](gh,{onSelectionContextMenu:T,noPanClassName:D,disableKeyboardA11y:L})]})})}fa[a(1495)]="FlowRenderer";const mh=B[a(1312)](fa),wh=e=>n=>{const t=a;return e?xo(n[t(750)],{x:0,y:0,width:n[t(1238)],height:n.height},n.transform,!0)[t(542)](o=>o.id):Array.from(n[t(750)][t(1651)]())};function vh(e){return Be(B.useCallback(wh(e),[e]),je)}const ph=e=>e[a(1208)];function bh(){const e=a,n=Be(ph),[t]=B[e(655)](()=>{const o=e;return typeof ResizeObserver===o(1202)?null:new ResizeObserver(x=>{const r=o,i=new Map;x[r(1369)](c=>{const d=r,s=c[d(603)][d(527)](d(888));i[d(799)](s,{id:s,nodeElement:c.target,force:!0})}),n(i)})});return B[e(363)](()=>()=>{t?.[_0x4806(988)]()},[t]),t}function zh({node:e,nodeType:n,hasDimensions:t,resizeObserver:o}){const x=a,r=Ee(),i=B[x(575)](null),c=B.useRef(null),d=B[x(575)](e.sourcePosition),s=B[x(575)](e[x(1618)]),u=B[x(575)](n),f=t&&!!e.internals[x(2091)];return B[x(363)](()=>{const y=x;i.current&&!e[y(1821)]&&(!f||c[y(1560)]!==i[y(1560)])&&(c.current&&o?.unobserve(c.current),o?.observe(i[y(1560)]),c[y(1560)]=i[y(1560)])},[f,e[x(1821)]]),B[x(363)](()=>()=>{const y=_0x4806;c.current&&(o?.[y(1684)](c.current),c[y(1560)]=null)},[]),B[x(363)](()=>{const y=x;if(i[y(1560)]){const g=u[y(1560)]!==n,p=d[y(1560)]!==e[y(1425)],h=s.current!==e.targetPosition;(g||p||h)&&(u[y(1560)]=n,d[y(1560)]=e[y(1425)],s.current=e[y(1618)],r[y(1740)]()[y(1208)](new Map([[e.id,{id:e.id,nodeElement:i[y(1560)],force:!0}]])))}},[e.id,n,e[x(1425)],e.targetPosition]),i}function Ch({id:e,onClick:n,onMouseEnter:t,onMouseMove:o,onMouseLeave:x,onContextMenu:r,onDoubleClick:i,nodesDraggable:c,elementsSelectable:d,nodesConnectable:s,nodesFocusable:u,resizeObserver:f,noDragClassName:y,noPanClassName:g,disableKeyboardA11y:p,rfId:h,nodeTypes:b,nodeClickDistance:M,onError:v}){const m=a,{node:w,internals:C,isParent:k}=Be(ie=>{const J=_0x4806,re=ie.nodeLookup[J(1157)](e),_=ie[J(877)].has(e);return{node:re,internals:re.internals,isParent:_}},je);let O=w[m(1424)]||m(1582),G=b?.[O]||da[O];G===void 0&&(v?.(m(1535),nn[m(550)](O)),O=m(1582),G=b?.[m(1582)]||da[m(1582)]);const j=!!(w.draggable||c&&typeof w.draggable===m(1202)),A=!!(w[m(942)]||d&&typeof w[m(942)]===m(1202)),Z=!!(w[m(1225)]||s&&typeof w[m(1225)]===m(1202)),W=!!(w[m(1663)]||u&&typeof w[m(1663)]===m(1202)),q=Ee(),T=Qi(w),N=zh({node:w,nodeType:O,hasDimensions:T,resizeObserver:f}),D=aa({nodeRef:N,disabled:w[m(1821)]||!j,noDragClassName:y,handleSelector:w[m(390)],nodeId:e,isSelectable:A,nodeClickDistance:M}),L=sa();if(w[m(1821)])return null;const U=kn(w),P=fh(w),S=A||j||n||t||o||x,K=t?ie=>t(ie,{...C[m(1220)]}):void 0,Q=o?ie=>o(ie,{...C[m(1220)]}):void 0,R=x?ie=>x(ie,{...C[m(1220)]}):void 0,$=r?ie=>r(ie,{...C.userNode}):void 0,xe=i?ie=>i(ie,{...C.userNode}):void 0,ce=ie=>{const J=m,{selectNodesOnDrag:re,nodeDragThreshold:_}=q[J(1740)]();A&&(!re||!j||_>0)&&Lo({id:e,store:q,nodeRef:N}),n&&n(ie,{...C.userNode})},de=ie=>{const J=m;if(!(tc(ie.nativeEvent)||p)){if(Oi.includes(ie[J(1460)])&&A){const re=ie[J(1460)]===J(483);Lo({id:e,store:q,unselect:re,nodeRef:N})}else if(j&&w[J(2178)]&&Object[J(1201)][J(436)][J(897)](ox,ie[J(1460)])){ie[J(1923)]();const{ariaLabelConfig:re}=q[J(1740)]();q[J(1766)]({ariaLiveMessage:re[J(1758)]({direction:ie.key[J(598)](J(1095),"")[J(1093)](),x:~~C[J(2107)].x,y:~~C[J(2107)].y})}),L({direction:ox[ie[J(1460)]],factor:ie.shiftKey?4:1})}}},fe=()=>{const ie=m;if(p||!N[ie(1560)]?.[ie(1719)](ie(735)))return;const{transform:J,width:re,height:_,autoPanOnNodeFocus:I,setCenter:Y}=q[ie(1740)]();if(!I)return;!(xo(new Map([[e,w]]),{x:0,y:0,width:re,height:_},J,!0).length>0)&&Y(w[ie(1543)].x+U.width/2,w.position.y+U[ie(1265)]/2,{zoom:J[2]})};return l.jsx(m(539),{className:Ge([m(1994),m(1872)+O,{[g]:j},w.className,{selected:w[m(2178)],selectable:A,parent:k,draggable:j,dragging:D}]),ref:N,style:{zIndex:C.z,transform:m(389)+C.positionAbsolute.x+"px,"+C.positionAbsolute.y+m(2197),pointerEvents:m(S?951:1712),visibility:m(T?1136:1821),...w[m(1346)],...P},"data-id":e,"data-testid":"rf__node-"+e,onMouseEnter:K,onMouseMove:Q,onMouseLeave:R,onContextMenu:$,onClick:ce,onDoubleClick:xe,onKeyDown:W?de:void 0,tabIndex:W?0:void 0,onFocus:W?fe:void 0,role:w[m(1807)]??(W?m(1728):void 0),"aria-roledescription":"node","aria-describedby":p?void 0:qc+"-"+h,"aria-label":w[m(783)],...w[m(1675)],children:l.jsx(rh,{value:e,children:l[m(1993)](G,{id:e,data:w[m(1468)],type:O,positionAbsoluteX:C[m(2107)].x,positionAbsoluteY:C[m(2107)].y,selected:w[m(2178)]??!1,selectable:A,draggable:j,deletable:w.deletable??!0,isConnectable:Z,sourcePosition:w[m(1425)],targetPosition:w[m(1618)],dragging:D,dragHandle:w[m(390)],zIndex:C.z,parentId:w[m(890)],...U})})})}var Mh=B[a(1312)](Ch);const Bh=e=>({nodesDraggable:e[a(2169)],nodesConnectable:e[a(1986)],nodesFocusable:e[a(1237)],elementsSelectable:e[a(1503)],onError:e.onError});function ha(e){const n=a,{nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,onError:i}=Be(Bh,je),c=vh(e[n(421)]),d=bh();return l[n(1993)]("div",{className:n(839),style:xx,children:c[n(542)](s=>{const u=n;return l[u(1993)](Mh,{id:s,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e[u(544)],onMouseEnter:e.onNodeMouseEnter,onMouseMove:e[u(2180)],onMouseLeave:e[u(2027)],onContextMenu:e[u(1742)],onDoubleClick:e[u(594)],noDragClassName:e[u(1094)],noPanClassName:e[u(1732)],rfId:e[u(1996)],disableKeyboardA11y:e[u(579)],resizeObserver:d,nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,nodeClickDistance:e[u(711)],onError:i},s)})})}ha[a(1495)]="NodeRenderer";const Dh=B[a(1312)](ha);function Lh(e){return Be(B.useCallback(t=>{const o=_0x4806;if(!e)return t.edges[o(542)](r=>r.id);const x=[];if(t[o(1238)]&&t.height)for(const r of t[o(1337)]){const i=t[o(750)].get(r.source),c=t[o(750)][o(1157)](r[o(603)]);i&&c&&D2({sourceNode:i,targetNode:c,width:t.width,height:t[o(1265)],transform:t[o(1130)]})&&x[o(1465)](r.id)}return x},[e]),je)}const Nh=({color:e=a(1712),strokeWidth:n=1})=>{const t=a,o={strokeWidth:n,...e&&{stroke:e}};return l.jsx(t(2190),{className:"arrow",style:o,strokeLinecap:t(723),fill:t(1712),strokeLinejoin:t(723),points:t(1210)})},Sh=({color:e=a(1712),strokeWidth:n=1})=>{const t=a,o={strokeWidth:n,...e&&{stroke:e,fill:e}};return l.jsx(t(2190),{className:"arrowclosed",style:o,strokeLinecap:"round",strokeLinejoin:t(723),points:"-5,-4 0,0 -5,4 -5,-4"})},ga={[W0[a(1095)]]:Nh,[W0[a(1e3)]]:Sh};function kh(e){const n=Ee();return B.useMemo(()=>{const o=_0x4806;return Object[o(1201)][o(436)][o(897)](ga,e)?ga[e]:(n[o(1740)]().onError?.(o(934),nn[o(1998)](e)),null)},[e])}const Ih=({id:e,type:n,color:t,width:o=12.5,height:x=12.5,markerUnits:r=a(1564),strokeWidth:i,orient:c=a(1363)})=>{const d=a,s=kh(n);return s?l[d(1993)](d(994),{className:d(1049),id:e,markerWidth:""+o,markerHeight:""+x,viewBox:d(1330),markerUnits:r,orient:c,refX:"0",refY:"0",children:l[d(1993)](s,{color:t,strokeWidth:i})}):null},ya=({defaultColor:e,rfId:n})=>{const t=a,o=Be(i=>i[t(1337)]),x=Be(i=>i[t(1650)]),r=B[t(528)](()=>A2(o,{id:n,defaultColor:e,defaultMarkerStart:x?.[t(1440)],defaultMarkerEnd:x?.markerEnd}),[o,x,n,e]);return r.length?l[t(1993)](t(719),{className:t(1988),"aria-hidden":t(1501),children:l.jsx("defs",{children:r[t(542)](i=>l[t(1993)](Ih,{id:i.id,type:i.type,color:i.color,width:i[t(1238)],height:i[t(1265)],markerUnits:i[t(1686)],strokeWidth:i[t(1564)],orient:i[t(2195)]},i.id))})}):null};ya[a(1495)]=a(460);var Ph=B[a(1312)](ya);function ma({x:e,y:n,label:t,labelStyle:o,labelShowBg:x=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:c=2,children:d,className:s,...u}){const f=a,[y,g]=B[f(655)]({x:1,y:0,width:0,height:0}),p=Ge([f(415),s]),h=B[f(575)](null);return B.useEffect(()=>{const b=f;if(h[b(1560)]){const M=h[b(1560)][b(1844)]();g({x:M.x,y:M.y,width:M[b(1238)],height:M[b(1265)]})}},[t]),t?l[f(1239)]("g",{transform:"translate("+(e-y[f(1238)]/2)+" "+(n-y[f(1265)]/2)+")",className:p,visibility:y[f(1238)]?f(1136):f(1821),...u,children:[x&&l[f(1993)](f(885),{width:y[f(1238)]+2*i[0],x:-i[0],y:-i[1],height:y.height+2*i[1],className:f(1046),style:r,rx:c,ry:c}),l[f(1993)]("text",{className:f(2163),y:y.height/2,dy:f(488),ref:h,style:o,children:t}),d]}):null}ma[a(1495)]="EdgeText";const Ah=B[a(1312)](ma);function rx({path:e,labelX:n,labelY:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:c,labelBgBorderRadius:d,interactionWidth:s=20,...u}){const f=a;return l[f(1239)](l[f(915)],{children:[l[f(1993)]("path",{...u,d:e,fill:f(1712),className:Ge(["react-flow__edge-path",u[f(710)]])}),s?l[f(1993)](f(1199),{d:e,fill:"none",strokeOpacity:0,strokeWidth:s,className:f(1138)}):null,o&&hn(n)&&hn(t)?l[f(1993)](Ah,{x:n,y:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:c,labelBgBorderRadius:d}):null]})}function wa({pos:e,x1:n,y1:t,x2:o,y2:x}){const r=a;return e===he[r(1010)]||e===he[r(1158)]?[.5*(n+o),t]:[n,.5*(t+x)]}function va({sourceX:e,sourceY:n,sourcePosition:t=he[a(693)],targetX:o,targetY:x,targetPosition:r=he[a(1481)]}){const[i,c]=wa({pos:t,x1:e,y1:n,x2:o,y2:x}),[d,s]=wa({pos:r,x1:o,y1:x,x2:e,y2:n}),[u,f,y,g]=rc({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:i,sourceControlY:c,targetControlX:d,targetControlY:s});return["M"+e+","+n+" C"+i+","+c+" "+d+","+s+" "+o+","+x,u,f,y,g]}function pa(e){const n=a;return B[n(1312)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c,targetPosition:d,label:s,labelStyle:u,labelShowBg:f,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:h,markerEnd:b,markerStart:M,interactionWidth:v})=>{const m=n,[w,C,k]=va({sourceX:o,sourceY:x,sourcePosition:c,targetX:r,targetY:i,targetPosition:d}),O=e[m(1197)]?void 0:t;return l[m(1993)](rx,{id:O,path:w,labelX:C,labelY:k,label:s,labelStyle:u,labelShowBg:f,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:h,markerEnd:b,markerStart:M,interactionWidth:v})})}const jh=pa({isInternal:!1}),ba=pa({isInternal:!0});jh[a(1495)]=a(465),ba[a(1495)]=a(1262);function za(e){const n=a;return B[n(1312)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:c,labelStyle:d,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:y,style:g,sourcePosition:p=he[n(693)],targetPosition:h=he.Top,markerEnd:b,markerStart:M,pathOptions:v,interactionWidth:m})=>{const w=n,[C,k,O]=co({sourceX:o,sourceY:x,sourcePosition:p,targetX:r,targetY:i,targetPosition:h,borderRadius:v?.[w(1637)],offset:v?.[w(1120)],stepPosition:v?.stepPosition}),G=e[w(1197)]?void 0:t;return l[w(1993)](rx,{id:G,path:C,labelX:k,labelY:O,label:c,labelStyle:d,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:y,style:g,markerEnd:b,markerStart:M,interactionWidth:m})})}const Ca=za({isInternal:!1}),Ma=za({isInternal:!0});Ca[a(1495)]=a(765),Ma[a(1495)]=a(1027);function Ba(e){return B.memo(({id:n,...t})=>{const o=_0x4806,x=e[o(1197)]?void 0:n;return l[o(1993)](Ca,{...t,id:x,pathOptions:B.useMemo(()=>({borderRadius:0,offset:t[o(1849)]?.[o(1120)]}),[t[o(1849)]?.offset])})})}const Eh=Ba({isInternal:!1}),Da=Ba({isInternal:!0});Eh[a(1495)]=a(1632),Da.displayName=a(875);function La(e){const n=a;return B[n(1312)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:c,labelStyle:d,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:y,style:g,markerEnd:p,markerStart:h,interactionWidth:b})=>{const M=n,[v,m,w]=lc({sourceX:o,sourceY:x,targetX:r,targetY:i}),C=e[M(1197)]?void 0:t;return l[M(1993)](rx,{id:C,path:v,labelX:m,labelY:w,label:c,labelStyle:d,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:y,style:g,markerEnd:p,markerStart:h,interactionWidth:b})})}const Yh=La({isInternal:!1}),Na=La({isInternal:!0});Yh[a(1495)]=a(1679),Na[a(1495)]="StraightEdgeInternal";function Sa(e){const n=a;return B[n(1312)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c=he[n(693)],targetPosition:d=he[n(1481)],label:s,labelStyle:u,labelShowBg:f,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:h,markerEnd:b,markerStart:M,pathOptions:v,interactionWidth:m})=>{const w=n,[C,k,O]=cc({sourceX:o,sourceY:x,sourcePosition:c,targetX:r,targetY:i,targetPosition:d,curvature:v?.curvature}),G=e[w(1197)]?void 0:t;return l[w(1993)](rx,{id:G,path:C,labelX:k,labelY:O,label:s,labelStyle:u,labelShowBg:f,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:h,markerEnd:b,markerStart:M,interactionWidth:m})})}const Uh=Sa({isInternal:!1}),ka=Sa({isInternal:!0});Uh[a(1495)]=a(1494),ka.displayName=a(619);const Ia={default:ka,straight:Na,step:Da,smoothstep:Ma,simplebezier:ba},Pa={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Gh=(e,n,t)=>{const o=a;return t===he[o(1010)]?e-n:t===he[o(1158)]?e+n:e},Oh=(e,n,t)=>t===he[a(1481)]?e-n:t===he.Bottom?e+n:e,Aa=a(1547);function ja({position:e,centerX:n,centerY:t,radius:o=10,onMouseDown:x,onMouseEnter:r,onMouseOut:i,type:c}){const d=a;return l[d(1993)]("circle",{onMouseDown:x,onMouseEnter:r,onMouseOut:i,className:Ge([Aa,Aa+"-"+c]),cx:Gh(n,o,e),cy:Oh(t,o,e),r:o,stroke:d(583),fill:d(583)})}function Hh({isReconnectable:e,reconnectRadius:n,edge:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c,targetPosition:d,onReconnect:s,onReconnectStart:u,onReconnectEnd:f,setReconnecting:y,setUpdateHover:g}){const p=a,h=Ee(),b=(C,k)=>{const O=_0x4806;if(C[O(772)]!==0)return;const{autoPanOnConnect:G,domNode:j,connectionMode:A,connectionRadius:Z,lib:W,onConnectStart:q,cancelConnection:T,nodeLookup:N,rfId:D,panBy:L,updateConnection:U}=h[O(1740)](),P=k[O(1424)]===O(603),S=(R,$)=>{const xe=O;y(!1),f?.(R,t,k[xe(1424)],$)},K=R=>s?.(t,R),Q=(R,$)=>{const xe=O;y(!0),u?.(C,t,k[xe(1424)]),q?.(R,$)};mo[O(948)](C.nativeEvent,{autoPanOnConnect:G,connectionMode:A,connectionRadius:Z,domNode:j,handleId:k.id,nodeId:k[O(1626)],nodeLookup:N,isTarget:P,edgeUpdaterType:k.type,lib:W,flowId:D,cancelConnection:T,panBy:L,isValidConnection:(...R)=>h[O(1740)]()[O(1088)]?.(...R)??!0,onConnect:K,onConnectStart:Q,onConnectEnd:(...R)=>h[O(1740)]().onConnectEnd?.(...R),onReconnectEnd:S,updateConnection:U,getTransform:()=>h[O(1740)]()[O(1130)],getFromHandle:()=>h[O(1740)]()[O(1329)][O(456)],dragThreshold:h[O(1740)]().connectionDragThreshold,handleDomNode:C.currentTarget})},M=C=>b(C,{nodeId:t[p(603)],id:t[p(2069)]??null,type:p(603)}),v=C=>b(C,{nodeId:t[p(964)],id:t[p(2008)]??null,type:p(964)}),m=()=>g(!0),w=()=>g(!1);return l[p(1239)](l[p(915)],{children:[(e===!0||e===p(964))&&l[p(1993)](ja,{position:c,centerX:o,centerY:x,radius:n,onMouseDown:M,onMouseEnter:m,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&l[p(1993)](ja,{position:d,centerX:r,centerY:i,radius:n,onMouseDown:v,onMouseEnter:m,onMouseOut:w,type:p(603)})]})}function Th({id:e,edgesFocusable:n,edgesReconnectable:t,elementsSelectable:o,onClick:x,onDoubleClick:r,onContextMenu:i,onMouseEnter:c,onMouseMove:d,onMouseLeave:s,reconnectRadius:u,onReconnect:f,onReconnectStart:y,onReconnectEnd:g,rfId:p,edgeTypes:h,noPanClassName:b,onError:M,disableKeyboardA11y:v}){const m=a;let w=Be(I=>I[m(986)].get(e));const C=Be(I=>I[m(1650)]);w=C?{...C,...w}:w;let k=w[m(1424)]||m(1582),O=h?.[k]||Ia[k];O===void 0&&(M?.(m(2e3),nn[m(1815)](k)),k=m(1582),O=h?.default||Ia[m(1582)]);const G=!!(w[m(1663)]||n&&typeof w[m(1663)]>"u"),j=typeof f!==m(1202)&&(w[m(399)]||t&&typeof w[m(399)]>"u"),A=!!(w[m(942)]||o&&typeof w[m(942)]===m(1202)),Z=B.useRef(null),[W,q]=B[m(655)](!1),[T,N]=B[m(655)](!1),D=Ee(),{zIndex:L,sourceX:U,sourceY:P,targetX:S,targetY:K,sourcePosition:Q,targetPosition:R}=Be(B.useCallback(I=>{const Y=m,X=I[Y(750)].get(w[Y(964)]),H=I[Y(750)][Y(1157)](w.target);if(!X||!H)return{zIndex:w.zIndex,...Pa};const oe=P2({id:e,sourceNode:X,targetNode:H,sourceHandle:w[Y(2008)]||null,targetHandle:w.targetHandle||null,connectionMode:I[Y(2138)],onError:M});return{zIndex:B2({selected:w.selected,zIndex:w[Y(540)],sourceNode:X,targetNode:H,elevateOnSelect:I.elevateEdgesOnSelect,zIndexMode:I[Y(2098)]}),...oe||Pa}},[w[m(964)],w.target,w[m(2008)],w[m(2069)],w[m(2178)],w[m(540)]]),je),$=B[m(528)](()=>w[m(1440)]?m(923)+ao(w.markerStart,p)+"')":void 0,[w.markerStart,p]),xe=B.useMemo(()=>w[m(573)]?m(923)+ao(w[m(573)],p)+"')":void 0,[w.markerEnd,p]);if(w[m(1821)]||U===null||P===null||S===null||K===null)return null;const ce=I=>{const Y=m,{addSelectedEdges:X,unselectNodesAndEdges:H,multiSelectionActive:oe}=D[Y(1740)]();A&&(D[Y(1766)]({nodesSelectionActive:!1}),w[Y(2178)]&&oe?(H({nodes:[],edges:[w]}),Z[Y(1560)]?.blur()):X([e])),x&&x(I,w)},de=r?I=>{r(I,{...w})}:void 0,fe=i?I=>{i(I,{...w})}:void 0,ie=c?I=>{c(I,{...w})}:void 0,J=d?I=>{d(I,{...w})}:void 0,re=s?I=>{s(I,{...w})}:void 0,_=I=>{const Y=m;if(!v&&Oi[Y(911)](I[Y(1460)])&&A){const{unselectNodesAndEdges:X,addSelectedEdges:H}=D[Y(1740)]();I[Y(1460)]===Y(483)?(Z[Y(1560)]?.blur(),X({edges:[w]})):H([e])}};return l[m(1993)]("svg",{style:{zIndex:L},children:l.jsxs("g",{className:Ge([m(1594),m(692)+k,w[m(710)],b,{selected:w[m(2178)],animated:w[m(1020)],inactive:!A&&!x,updating:W,selectable:A}]),onClick:ce,onDoubleClick:de,onContextMenu:fe,onMouseEnter:ie,onMouseMove:J,onMouseLeave:re,onKeyDown:G?_:void 0,tabIndex:G?0:void 0,role:w[m(1807)]??m(G?1728:916),"aria-roledescription":m(1551),"data-id":e,"data-testid":m(1448)+e,"aria-label":w[m(783)]===null?void 0:w.ariaLabel||m(2143)+w[m(964)]+" to "+w[m(603)],"aria-describedby":G?Wc+"-"+p:void 0,ref:Z,...w[m(1675)],children:[!T&&l[m(1993)](O,{id:e,source:w[m(964)],target:w[m(603)],type:w.type,selected:w[m(2178)],animated:w[m(1020)],selectable:A,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w[m(2101)],labelBgStyle:w.labelBgStyle,labelBgPadding:w[m(1579)],labelBgBorderRadius:w[m(568)],sourceX:U,sourceY:P,targetX:S,targetY:K,sourcePosition:Q,targetPosition:R,data:w[m(1468)],style:w[m(1346)],sourceHandleId:w[m(2008)],targetHandleId:w[m(2069)],markerStart:$,markerEnd:xe,pathOptions:m(1849)in w?w[m(1849)]:void 0,interactionWidth:w[m(790)]}),j&&l.jsx(Hh,{edge:w,isReconnectable:j,reconnectRadius:u,onReconnect:f,onReconnectStart:y,onReconnectEnd:g,sourceX:U,sourceY:P,targetX:S,targetY:K,sourcePosition:Q,targetPosition:R,setUpdateHover:q,setReconnecting:N})]})})}var Vh=B[a(1312)](Th);const qh=e=>({edgesFocusable:e[a(2086)],edgesReconnectable:e[a(961)],elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e[a(2133)]});function Ea({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:t,edgeTypes:o,noPanClassName:x,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:c,onEdgeMouseMove:d,onEdgeMouseLeave:s,onEdgeClick:u,reconnectRadius:f,onEdgeDoubleClick:y,onReconnectStart:g,onReconnectEnd:p,disableKeyboardA11y:h}){const b=a,{edgesFocusable:M,edgesReconnectable:v,elementsSelectable:m,onError:w}=Be(qh,je),C=Lh(n);return l[b(1239)](b(539),{className:b(763),children:[l.jsx(Ph,{defaultColor:e,rfId:t}),C[b(542)](k=>l[b(1993)](Vh,{id:k,edgesFocusable:M,edgesReconnectable:v,elementsSelectable:m,noPanClassName:x,onReconnect:r,onContextMenu:i,onMouseEnter:c,onMouseMove:d,onMouseLeave:s,onClick:u,reconnectRadius:f,onDoubleClick:y,onReconnectStart:g,onReconnectEnd:p,rfId:t,onError:w,edgeTypes:o,disableKeyboardA11y:h},k))]})}Ea[a(1495)]="EdgeRenderer";const Wh=B[a(1312)](Ea),Xh=e=>a(389)+e[a(1130)][0]+"px,"+e[a(1130)][1]+a(1575)+e[a(1130)][2]+")";function Kh({children:e}){const n=a,t=Be(Xh);return l[n(1993)](n(539),{className:n(1962),style:{transform:t},children:e})}function Zh(e){const n=a,t=Bo(),o=B[n(575)](!1);B[n(363)](()=>{const x=n;!o[x(1560)]&&t[x(1103)]&&e&&(setTimeout(()=>e(t),1),o[x(1560)]=!0)},[e,t[n(1103)]])}const Rh=e=>e[a(1788)]?.[a(388)];function Jh(e){const n=a,t=Be(Rh),o=Ee();return B[n(363)](()=>{const x=n;e&&(t?.(e),o.setState({transform:[e.x,e.y,e[x(1386)]]}))},[e,t]),null}function _h(e){const n=a;return e.connection.inProgress?{...e[n(1329)],to:e0(e[n(1329)].to,e[n(1130)])}:{...e[n(1329)]}}function Fh(e){return _h}function Qh(e){const n=Fh();return Be(n,je)}const $h=e=>({nodesConnectable:e.nodesConnectable,isValid:e[a(1329)][a(486)],inProgress:e[a(1329)][a(1311)],width:e[a(1238)],height:e[a(1265)]});function eg({containerStyle:e,style:n,type:t,component:o}){const x=a,{nodesConnectable:r,width:i,height:c,isValid:d,inProgress:s}=Be($h,je);return!(i&&r&&s)?null:l[x(1993)](x(719),{style:e,width:i,height:c,className:x(1007),children:l[x(1993)]("g",{className:Ge(["react-flow__connection",qi(d)]),children:l[x(1993)](Ya,{style:n,type:t,CustomComponent:o,isValid:d})})})}const Ya=({style:e,type:n=En[a(1181)],CustomComponent:t,isValid:o})=>{const x=a,{inProgress:r,from:i,fromNode:c,fromHandle:d,fromPosition:s,to:u,toNode:f,toHandle:y,toPosition:g,pointer:p}=Qh();if(!r)return;if(t)return l[x(1993)](t,{connectionLineType:n,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:s,toPosition:g,connectionStatus:qi(o),toNode:f,toHandle:y,pointer:p});let h="";const b={sourceX:i.x,sourceY:i.y,sourcePosition:s,targetX:u.x,targetY:u.y,targetPosition:g};switch(n){case En.Bezier:[h]=cc(b);break;case En[x(1392)]:[h]=va(b);break;case En[x(1914)]:[h]=co({...b,borderRadius:0});break;case En[x(1852)]:[h]=co(b);break;default:[h]=lc(b)}return l.jsx(x(1199),{d:h,fill:x(1712),className:x(2152),style:e})};Ya.displayName=a(1802);const ng={};function Ua(e=ng){const n=a,t=B[n(575)](e),o=Ee();B.useEffect(()=>{const x=n;if(process.env.NODE_ENV===x(515)){const r=new Set([...Object[x(1651)](t[x(1560)]),...Object[x(1651)](e)]);for(const i of r)if(t[x(1560)][i]!==e[i]){o[x(1740)]()[x(2133)]?.(x(1099),nn[x(1264)]());break}t[x(1560)]=e}},[e])}function tg(){const e=a,n=Ee(),t=B[e(575)](!1);B[e(363)](()=>{const o=e;if(process.env.NODE_ENV===o(515)&&!t.current){const x=document[o(1542)](o(580));x&&window[o(574)](x).zIndex!=="1"&&n.getState().onError?.(o(1077),nn[o(1118)](o(1978))),t[o(1560)]=!0}},[])}function Ga({nodeTypes:e,edgeTypes:n,onInit:t,onNodeClick:o,onEdgeClick:x,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:c,onNodeMouseMove:d,onNodeMouseLeave:s,onNodeContextMenu:u,onSelectionContextMenu:f,onSelectionStart:y,onSelectionEnd:g,connectionLineType:p,connectionLineStyle:h,connectionLineComponent:b,connectionLineContainerStyle:M,selectionKeyCode:v,selectionOnDrag:m,selectionMode:w,multiSelectionKeyCode:C,panActivationKeyCode:k,zoomActivationKeyCode:O,deleteKeyCode:G,onlyRenderVisibleElements:j,elementsSelectable:A,defaultViewport:Z,translateExtent:W,minZoom:q,maxZoom:T,preventScrolling:N,defaultMarkerColor:D,zoomOnScroll:L,zoomOnPinch:U,panOnScroll:P,panOnScrollSpeed:S,panOnScrollMode:K,zoomOnDoubleClick:Q,panOnDrag:R,onPaneClick:$,onPaneMouseEnter:xe,onPaneMouseMove:ce,onPaneMouseLeave:de,onPaneScroll:fe,onPaneContextMenu:ie,paneClickDistance:J,nodeClickDistance:re,onEdgeContextMenu:_,onEdgeMouseEnter:I,onEdgeMouseMove:Y,onEdgeMouseLeave:X,reconnectRadius:H,onReconnect:oe,onReconnectStart:le,onReconnectEnd:se,noDragClassName:ge,noWheelClassName:ve,noPanClassName:Ne,disableKeyboardA11y:ze,nodeExtent:ke,rfId:Ye,viewport:Ie,onViewportChange:Pe}){const Ae=a;return Ua(e),Ua(n),tg(),Zh(t),Jh(Ie),l[Ae(1993)](mh,{onPaneClick:$,onPaneMouseEnter:xe,onPaneMouseMove:ce,onPaneMouseLeave:de,onPaneContextMenu:ie,onPaneScroll:fe,paneClickDistance:J,deleteKeyCode:G,selectionKeyCode:v,selectionOnDrag:m,selectionMode:w,onSelectionStart:y,onSelectionEnd:g,multiSelectionKeyCode:C,panActivationKeyCode:k,zoomActivationKeyCode:O,elementsSelectable:A,zoomOnScroll:L,zoomOnPinch:U,zoomOnDoubleClick:Q,panOnScroll:P,panOnScrollSpeed:S,panOnScrollMode:K,panOnDrag:R,defaultViewport:Z,translateExtent:W,minZoom:q,maxZoom:T,onSelectionContextMenu:f,preventScrolling:N,noDragClassName:ge,noWheelClassName:ve,noPanClassName:Ne,disableKeyboardA11y:ze,onViewportChange:Pe,isControlledViewport:!!Ie,children:l.jsxs(Kh,{children:[l[Ae(1993)](Wh,{edgeTypes:n,onEdgeClick:x,onEdgeDoubleClick:i,onReconnect:oe,onReconnectStart:le,onReconnectEnd:se,onlyRenderVisibleElements:j,onEdgeContextMenu:_,onEdgeMouseEnter:I,onEdgeMouseMove:Y,onEdgeMouseLeave:X,reconnectRadius:H,defaultMarkerColor:D,noPanClassName:Ne,disableKeyboardA11y:ze,rfId:Ye}),l.jsx(eg,{style:h,type:p,component:b,containerStyle:M}),l.jsx(Ae(539),{className:Ae(1610)}),l[Ae(1993)](Dh,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:r,onNodeMouseEnter:c,onNodeMouseMove:d,onNodeMouseLeave:s,onNodeContextMenu:u,nodeClickDistance:re,onlyRenderVisibleElements:j,noPanClassName:Ne,noDragClassName:ge,disableKeyboardA11y:ze,nodeExtent:ke,rfId:Ye}),l[Ae(1993)](Ae(539),{className:Ae(612)})]})})}Ga[a(1495)]=a(653);const xg=B[a(1312)](Ga),Oa=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:d=.5,maxZoom:s=2,nodeOrigin:u,nodeExtent:f,zIndexMode:y=a(1750)}={})=>{const g=a,p=new Map,h=new Map,b=new Map,M=new Map,v=o??n??[],m=t??e??[],w=u??[0,0],C=f??Rt;vc(b,M,v);const{nodesInitialized:k}=fo(m,p,h,{nodeOrigin:w,nodeExtent:C,zIndexMode:y});let O=[0,0,1];if(i&&x&&r){const G=Ft(p,{filter:W=>!!((W.width||W.initialWidth)&&(W[g(1265)]||W[g(883)]))}),{x:j,y:A,zoom:Z}=ro(G,x,r,d,s,c?.padding??.1);O=[j,A,Z]}return{rfId:"1",width:x??0,height:r??0,transform:O,nodes:m,nodesInitialized:k,nodeLookup:p,parentLookup:h,edges:v,edgeLookup:M,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:t!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:d,maxZoom:s,translateExtent:Rt,nodeExtent:C,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:yt.Strict,domNode:null,paneDragging:!1,noPanClassName:g(933),nodeOrigin:w,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:c,fitViewResolver:null,connection:{...Ti},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Fi,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:Hi,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},og=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:d,maxZoom:s,nodeOrigin:u,nodeExtent:f,zIndexMode:y})=>C1((g,p)=>{async function h(){const b=_0x4806,{nodeLookup:M,panZoom:v,fitViewOptions:m,fitViewResolver:w,width:C,height:k,minZoom:O,maxZoom:G}=p();v&&(await w2({nodes:M,width:C,height:k,panZoom:v,minZoom:O,maxZoom:G},m),w?.[b(2192)](!0),g({fitViewResolver:null}))}return{...Oa({nodes:e,edges:n,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:d,maxZoom:s,nodeOrigin:u,nodeExtent:f,defaultNodes:t,defaultEdges:o,zIndexMode:y}),setNodes:b=>{const{nodeLookup:M,parentLookup:v,nodeOrigin:m,elevateNodesOnSelect:w,fitViewQueued:C,zIndexMode:k,nodesSelectionActive:O}=p(),{nodesInitialized:G,hasSelectedNodes:j}=fo(b,M,v,{nodeOrigin:m,nodeExtent:f,elevateNodesOnSelect:w,checkEquality:!0,zIndexMode:k}),A=O&&j;C&&G?(h(),g({nodes:b,nodesInitialized:G,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:A})):g({nodes:b,nodesInitialized:G,nodesSelectionActive:A})},setEdges:b=>{const{connectionLookup:M,edgeLookup:v}=p();vc(M,v,b),g({edges:b})},setDefaultNodesAndEdges:(b,M)=>{if(b){const{setNodes:v}=p();v(b),g({hasDefaultNodes:!0})}if(M){const{setEdges:v}=p();v(M),g({hasDefaultEdges:!0})}},updateNodeInternals:b=>{const M=_0x4806,{triggerNodeChanges:v,nodeLookup:m,parentLookup:w,domNode:C,nodeOrigin:k,nodeExtent:O,debug:G,fitViewQueued:j,zIndexMode:A}=p(),{changes:Z,updatedInternals:W}=H2(b,m,w,C,k,O,A);W&&(Y2(m,w,{nodeOrigin:k,nodeExtent:O,zIndexMode:A}),j?(h(),g({fitViewQueued:!1,fitViewOptions:void 0})):g({}),Z?.length>0&&(G&&console[M(365)]("React Flow: trigger node changes",Z),v?.(Z)))},updateNodePositions:(b,M=!1)=>{const v=_0x4806,m=[];let w=[];const{nodeLookup:C,triggerNodeChanges:k,connection:O,updateConnection:G,onNodesChangeMiddlewareMap:j}=p();for(const[A,Z]of b){const W=C[v(1157)](A),q=!!(W?.expandParent&&W?.[v(890)]&&Z?.position),T={id:A,type:v(1543),position:q?{x:Math.max(0,Z[v(1543)].x),y:Math[v(1439)](0,Z[v(1543)].y)}:Z[v(1543)],dragging:M};if(W&&O[v(1311)]&&O.fromNode.id===W.id){const N=$n(W,O[v(456)],he.Left,!0);G({...O,from:N})}q&&W[v(890)]&&m.push({id:A,parentId:W[v(890)],rect:{...Z[v(380)].positionAbsolute,width:Z.measured[v(1238)]??0,height:Z[v(1583)][v(1265)]??0}}),w[v(1465)](T)}if(m[v(2194)]>0){const{parentLookup:A,nodeOrigin:Z}=p(),W=go(m,C,A,Z);w[v(1465)](...W)}for(const A of j.values())w=A(w);k(w)},triggerNodeChanges:b=>{const M=_0x4806,{onNodesChange:v,setNodes:m,nodes:w,hasDefaultNodes:C,debug:k}=p();if(b?.[M(2194)]){if(C){const O=$c(b,w);m(O)}k&&console[M(365)](M(1928),b),v?.(b)}},triggerEdgeChanges:b=>{const M=_0x4806,{onEdgesChange:v,setEdges:m,edges:w,hasDefaultEdges:C,debug:k}=p();if(b?.[M(2194)]){if(C){const O=ea(b,w);m(O)}k&&console[M(365)](M(1898),b),v?.(b)}},addSelectedNodes:b=>{const M=_0x4806,{multiSelectionActive:v,edgeLookup:m,nodeLookup:w,triggerNodeChanges:C,triggerEdgeChanges:k}=p();if(v){const O=b[M(542)](G=>et(G,!0));C(O);return}C(Ct(w,new Set([...b]),!0)),k(Ct(m))},addSelectedEdges:b=>{const{multiSelectionActive:M,edgeLookup:v,nodeLookup:m,triggerNodeChanges:w,triggerEdgeChanges:C}=p();if(M){const k=b.map(O=>et(O,!0));C(k);return}C(Ct(v,new Set([...b]))),w(Ct(m,new Set,!0))},unselectNodesAndEdges:({nodes:b,edges:M}={})=>{const v=_0x4806,{edges:m,nodes:w,nodeLookup:C,triggerNodeChanges:k,triggerEdgeChanges:O}=p(),G=b||w,j=M||m,A=[];for(const W of G){if(!W[v(2178)])continue;const q=C[v(1157)](W.id);q&&(q[v(2178)]=!1),A[v(1465)](et(W.id,!1))}const Z=[];for(const W of j)W[v(2178)]&&Z[v(1465)](et(W.id,!1));k(A),O(Z)},setMinZoom:b=>{const M=_0x4806,{panZoom:v,maxZoom:m}=p();v?.[M(559)]([b,m]),g({minZoom:b})},setMaxZoom:b=>{const{panZoom:M,minZoom:v}=p();M?.setScaleExtent([v,b]),g({maxZoom:b})},setTranslateExtent:b=>{const M=_0x4806;p()[M(1788)]?.setTranslateExtent(b),g({translateExtent:b})},resetSelectedElements:()=>{const b=_0x4806,{edges:M,nodes:v,triggerNodeChanges:m,triggerEdgeChanges:w,elementsSelectable:C}=p();if(!C)return;const k=v[b(1606)]((G,j)=>j[b(2178)]?[...G,et(j.id,!1)]:G,[]),O=M[b(1606)]((G,j)=>j.selected?[...G,et(j.id,!1)]:G,[]);m(k),w(O)},setNodeExtent:b=>{const{nodes:M,nodeLookup:v,parentLookup:m,nodeOrigin:w,elevateNodesOnSelect:C,nodeExtent:k,zIndexMode:O}=p();b[0][0]===k[0][0]&&b[0][1]===k[0][1]&&b[1][0]===k[1][0]&&b[1][1]===k[1][1]||(fo(M,v,m,{nodeOrigin:w,nodeExtent:b,elevateNodesOnSelect:C,checkEquality:!1,zIndexMode:O}),g({nodeExtent:b}))},panBy:b=>{const{transform:M,width:v,height:m,panZoom:w,translateExtent:C}=p();return T2({delta:b,panZoom:w,transform:M,translateExtent:C,width:v,height:m})},setCenter:async(b,M,v)=>{const m=_0x4806,{width:w,height:C,maxZoom:k,panZoom:O}=p();if(!O)return Promise[m(2192)](!1);const G=typeof v?.[m(1386)]!==m(1202)?v[m(1386)]:k;return await O[m(1659)]({x:w/2-b*G,y:C/2-M*G,zoom:G},{duration:v?.[m(2056)],ease:v?.[m(2044)],interpolate:v?.[m(2172)]}),Promise.resolve(!0)},cancelConnection:()=>{g({connection:{...Ti}})},updateConnection:b=>{g({connection:b})},reset:()=>g({...Oa()})}},Object.is);function rg({initialNodes:e,initialEdges:n,defaultNodes:t,defaultEdges:o,initialWidth:x,initialHeight:r,initialMinZoom:i,initialMaxZoom:c,initialFitViewOptions:d,fitView:s,nodeOrigin:u,nodeExtent:f,zIndexMode:y,children:g}){const p=a,[h]=B[p(655)](()=>og({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:s,minZoom:i,maxZoom:c,fitViewOptions:d,nodeOrigin:u,nodeExtent:f,zIndexMode:y}));return l[p(1993)](M1,{value:h,children:l.jsx(K1,{children:g})})}function ig({children:e,nodes:n,edges:t,defaultNodes:o,defaultEdges:x,width:r,height:i,fitView:c,fitViewOptions:d,minZoom:s,maxZoom:u,nodeOrigin:f,nodeExtent:y,zIndexMode:g}){const p=a;return B[p(689)](ex)?l[p(1993)](l.Fragment,{children:e}):l.jsx(rg,{initialNodes:n,initialEdges:t,defaultNodes:o,defaultEdges:x,initialWidth:r,initialHeight:i,fitView:c,initialFitViewOptions:d,initialMinZoom:s,initialMaxZoom:u,nodeOrigin:f,nodeExtent:y,zIndexMode:g,children:e})}const cg={width:a(1805),height:a(1805),overflow:a(1821),position:"relative",zIndex:0};function ag({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,className:x,nodeTypes:r,edgeTypes:i,onNodeClick:c,onEdgeClick:d,onInit:s,onMove:u,onMoveStart:f,onMoveEnd:y,onConnect:g,onConnectStart:p,onConnectEnd:h,onClickConnectStart:b,onClickConnectEnd:M,onNodeMouseEnter:v,onNodeMouseMove:m,onNodeMouseLeave:w,onNodeContextMenu:C,onNodeDoubleClick:k,onNodeDragStart:O,onNodeDrag:G,onNodeDragStop:j,onNodesDelete:A,onEdgesDelete:Z,onDelete:W,onSelectionChange:q,onSelectionDragStart:T,onSelectionDrag:N,onSelectionDragStop:D,onSelectionContextMenu:L,onSelectionStart:U,onSelectionEnd:P,onBeforeDelete:S,connectionMode:K,connectionLineType:Q=En[a(1181)],connectionLineStyle:R,connectionLineComponent:$,connectionLineContainerStyle:xe,deleteKeyCode:ce=a(1246),selectionKeyCode:de=a(2109),selectionOnDrag:fe=!1,selectionMode:ie=Jt[a(485)],panActivationKeyCode:J=a(2132),multiSelectionKeyCode:re=n0()?a(1305):a(1062),zoomActivationKeyCode:_=n0()?a(1305):a(1062),snapToGrid:I,snapGrid:Y,onlyRenderVisibleElements:X=!1,selectNodesOnDrag:H,nodesDraggable:oe,autoPanOnNodeFocus:le,nodesConnectable:se,nodesFocusable:ge,nodeOrigin:ve=Xc,edgesFocusable:Ne,edgesReconnectable:ze,elementsSelectable:ke=!0,defaultViewport:Ye=U1,minZoom:Ie=.5,maxZoom:Pe=2,translateExtent:Ae=Rt,preventScrolling:Ve=!0,nodeExtent:tn,defaultMarkerColor:yn=a(564),zoomOnScroll:Je=!0,zoomOnPinch:rn=!0,panOnScroll:Xe=!1,panOnScrollSpeed:cn=.5,panOnScrollMode:an=Fn.Free,zoomOnDoubleClick:xn=!0,panOnDrag:mn=!0,onPaneClick:In,onPaneMouseEnter:_e,onPaneMouseMove:Bt,onPaneMouseLeave:Ke,onPaneScroll:Hn,onPaneContextMenu:We,paneClickDistance:Pn=1,nodeClickDistance:Dt=0,children:ko,onReconnect:Io,onReconnectStart:Po,onReconnectEnd:Ao,onEdgeContextMenu:jo,onEdgeDoubleClick:Eo,onEdgeMouseEnter:Yo,onEdgeMouseMove:Uo,onEdgeMouseLeave:sx,reconnectRadius:lx=10,onNodesChange:dx,onEdgesChange:ux,noDragClassName:fx=a(845),noWheelClassName:o0=a(1474),noPanClassName:Tn=a(933),fitView:Vn,fitViewOptions:hx,connectOnClick:Lt,attributionPosition:gx,proOptions:yx,defaultEdgeOptions:Go,elevateNodesOnSelect:Oo=!0,elevateEdgesOnSelect:mx=!1,disableKeyboardA11y:r0=!1,autoPanOnConnect:i0,autoPanOnNodeDrag:wx,autoPanSpeed:c0,connectionRadius:E,isValidConnection:V,onError:ne,style:te,id:ue,nodeDragThreshold:F,connectionDragThreshold:ee,viewport:ye,onViewportChange:we,width:me,height:Ce,colorMode:pe="light",debug:Se,onScroll:Oe,ariaLabelConfig:Fe,zIndexMode:wn=a(1750),...Ze},Le){const De=a,nt=ue||"1",vx=T1(pe),px=B.useCallback(bx=>{const a0=_0x4806;bx[a0(1153)][a0(741)]({top:0,left:0,behavior:a0(824)}),Oe?.(bx)},[Oe]);return l[De(1993)](De(539),{"data-testid":"rf__wrapper",...Ze,onScroll:px,style:{...te,...cg},ref:Le,className:Ge(["react-flow",x,vx]),id:ue,role:De(1871),children:l[De(1239)](ig,{nodes:e,edges:n,width:me,height:Ce,fitView:Vn,fitViewOptions:hx,minZoom:Ie,maxZoom:Pe,nodeOrigin:ve,nodeExtent:tn,zIndexMode:wn,children:[l.jsx(H1,{nodes:e,edges:n,defaultNodes:t,defaultEdges:o,onConnect:g,onConnectStart:p,onConnectEnd:h,onClickConnectStart:b,onClickConnectEnd:M,nodesDraggable:oe,autoPanOnNodeFocus:le,nodesConnectable:se,nodesFocusable:ge,edgesFocusable:Ne,edgesReconnectable:ze,elementsSelectable:ke,elevateNodesOnSelect:Oo,elevateEdgesOnSelect:mx,minZoom:Ie,maxZoom:Pe,nodeExtent:tn,onNodesChange:dx,onEdgesChange:ux,snapToGrid:I,snapGrid:Y,connectionMode:K,translateExtent:Ae,connectOnClick:Lt,defaultEdgeOptions:Go,fitView:Vn,fitViewOptions:hx,onNodesDelete:A,onEdgesDelete:Z,onDelete:W,onNodeDragStart:O,onNodeDrag:G,onNodeDragStop:j,onSelectionDrag:N,onSelectionDragStart:T,onSelectionDragStop:D,onMove:u,onMoveStart:f,onMoveEnd:y,noPanClassName:Tn,nodeOrigin:ve,rfId:nt,autoPanOnConnect:i0,autoPanOnNodeDrag:wx,autoPanSpeed:c0,onError:ne,connectionRadius:E,isValidConnection:V,selectNodesOnDrag:H,nodeDragThreshold:F,connectionDragThreshold:ee,onBeforeDelete:S,debug:Se,ariaLabelConfig:Fe,zIndexMode:wn}),l[De(1993)](xg,{onInit:s,onNodeClick:c,onEdgeClick:d,onNodeMouseEnter:v,onNodeMouseMove:m,onNodeMouseLeave:w,onNodeContextMenu:C,onNodeDoubleClick:k,nodeTypes:r,edgeTypes:i,connectionLineType:Q,connectionLineStyle:R,connectionLineComponent:$,connectionLineContainerStyle:xe,selectionKeyCode:de,selectionOnDrag:fe,selectionMode:ie,deleteKeyCode:ce,multiSelectionKeyCode:re,panActivationKeyCode:J,zoomActivationKeyCode:_,onlyRenderVisibleElements:X,defaultViewport:Ye,translateExtent:Ae,minZoom:Ie,maxZoom:Pe,preventScrolling:Ve,zoomOnScroll:Je,zoomOnPinch:rn,zoomOnDoubleClick:xn,panOnScroll:Xe,panOnScrollSpeed:cn,panOnScrollMode:an,panOnDrag:mn,onPaneClick:In,onPaneMouseEnter:_e,onPaneMouseMove:Bt,onPaneMouseLeave:Ke,onPaneScroll:Hn,onPaneContextMenu:We,paneClickDistance:Pn,nodeClickDistance:Dt,onSelectionContextMenu:L,onSelectionStart:U,onSelectionEnd:P,onReconnect:Io,onReconnectStart:Po,onReconnectEnd:Ao,onEdgeContextMenu:jo,onEdgeDoubleClick:Eo,onEdgeMouseEnter:Yo,onEdgeMouseMove:Uo,onEdgeMouseLeave:sx,reconnectRadius:lx,defaultMarkerColor:yn,noDragClassName:fx,noWheelClassName:o0,noPanClassName:Tn,rfId:nt,disableKeyboardA11y:r0,nodeExtent:tn,viewport:ye,onViewportChange:we}),l[De(1993)](Y1,{onSelectionChange:q}),ko,l[De(1993)](I1,{proOptions:yx,position:gx}),l.jsx(k1,{rfId:nt,disableKeyboardA11y:r0})]})})}var sg=oa(ag);function lg(e){const n=a,[t,o]=B[n(655)](e),x=B.useCallback(r=>o(i=>$c(r,i)),[]);return[t,o,x]}function dg(e){const n=a,[t,o]=B[n(655)](e),x=B.useCallback(r=>o(i=>ea(r,i)),[]);return[t,o,x]}function ug({dimensions:e,lineWidth:n,variant:t,className:o}){const x=a;return l[x(1993)](x(1199),{strokeWidth:n,d:"M"+e[0]/2+x(1173)+e[1]+x(867)+e[1]/2+" H"+e[0],className:Ge([x(582),t,o])})}function fg({radius:e,className:n}){const t=a;return l.jsx(t(1609),{cx:e,cy:e,r:e,className:Ge([t(582),t(1026),n])})}var Gn;(function(e){const n=a;e[n(1176)]="lines",e[n(879)]="dots",e[n(450)]=n(1263)})(Gn||(Gn={}));const hg={[Gn[a(879)]]:1,[Gn[a(1176)]]:1,[Gn[a(450)]]:6},gg=e=>({transform:e.transform,patternId:"pattern-"+e[a(1996)]});function Ha({id:e,variant:n=Gn.Dots,gap:t=20,size:o,lineWidth:x=1,offset:r=0,color:i,bgColor:c,style:d,className:s,patternClassName:u}){const f=a,y=B.useRef(null),{transform:g,patternId:p}=Be(gg,je),h=o||hg[n],b=n===Gn[f(879)],M=n===Gn[f(450)],v=Array[f(927)](t)?t:[t,t],m=[v[0]*g[2]||1,v[1]*g[2]||1],w=h*g[2],C=Array[f(927)](r)?r:[r,r],k=M?[w,w]:m,O=[C[0]*g[2]||1+k[0]/2,C[1]*g[2]||1+k[1]/2],G=""+p+(e||"");return l[f(1239)](f(719),{className:Ge([f(1164),s]),style:{...d,...xx,"--xy-background-color-props":c,"--xy-background-pattern-color-props":i},ref:y,"data-testid":f(2187),children:[l.jsx(f(1833),{id:G,x:g[0]%m[0],y:g[1]%m[1],width:m[0],height:m[1],patternUnits:f(2145),patternTransform:f(984)+O[0]+",-"+O[1]+")",children:b?l[f(1993)](fg,{radius:w/2,className:u}):l[f(1993)](ug,{dimensions:k,lineWidth:x,variant:n,className:u})}),l[f(1993)](f(885),{x:"0",y:"0",width:f(1805),height:f(1805),fill:f(896)+G+")"})]})}Ha[a(1495)]=a(1017);const yg=B[a(1312)](Ha);function mg(){const e=a;return l[e(1993)](e(719),{xmlns:e(1968),viewBox:e(518),children:l[e(1993)](e(1199),{d:e(1125)})})}function wg(){const e=a;return l[e(1993)](e(719),{xmlns:e(1968),viewBox:e(779),children:l[e(1993)](e(1199),{d:e(1793)})})}function vg(){const e=a;return l[e(1993)](e(719),{xmlns:e(1968),viewBox:"0 0 32 30",children:l.jsx(e(1199),{d:e(1060)})})}function pg(){const e=a;return l.jsx(e(719),{xmlns:e(1968),viewBox:e(379),children:l.jsx(e(1199),{d:e(1126)})})}function bg(){const e=a;return l[e(1993)]("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:e(379),children:l[e(1993)](e(1199),{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function ix({children:e,className:n,...t}){const o=a;return l.jsx(o(772),{type:o(772),className:Ge([o(1600),n]),...t,children:e})}const zg=e=>({isInteractive:e.nodesDraggable||e[a(1986)]||e[a(1503)],minZoomReached:e[a(1130)][2]<=e.minZoom,maxZoomReached:e[a(1130)][2]>=e.maxZoom,ariaLabelConfig:e[a(1159)]});function Ta({style:e,showZoom:n=!0,showFitView:t=!0,showInteractive:o=!0,fitViewOptions:x,onZoomIn:r,onZoomOut:i,onFitView:c,onInteractiveChange:d,className:s,children:u,position:f="bottom-left",orientation:y=a(609),"aria-label":g}){const p=a,h=Ee(),{isInteractive:b,minZoomReached:M,maxZoomReached:v,ariaLabelConfig:m}=Be(zg,je),{zoomIn:w,zoomOut:C,fitView:k}=Bo(),O=()=>{w(),r?.()},G=()=>{C(),i?.()},j=()=>{k(x),c?.()},A=()=>{h[_0x4806(1766)]({nodesDraggable:!b,nodesConnectable:!b,elementsSelectable:!b}),d?.(!b)},Z=y===p(417)?p(417):p(609);return l.jsxs(nx,{className:Ge(["react-flow__controls",Z,s]),position:f,style:e,"data-testid":p(496),"aria-label":g??m[p(1531)],children:[n&&l[p(1239)](l[p(915)],{children:[l.jsx(ix,{onClick:O,className:p(1483),title:m["controls.zoomIn.ariaLabel"],"aria-label":m[p(511)],disabled:v,children:l.jsx(mg,{})}),l[p(1993)](ix,{onClick:G,className:p(682),title:m[p(1621)],"aria-label":m["controls.zoomOut.ariaLabel"],disabled:M,children:l[p(1993)](wg,{})})]}),t&&l.jsx(ix,{className:p(1687),onClick:j,title:m[p(1132)],"aria-label":m[p(1132)],children:l.jsx(vg,{})}),o&&l.jsx(ix,{className:p(937),onClick:A,title:m[p(1300)],"aria-label":m[p(1300)],children:b?l.jsx(bg,{}):l.jsx(pg,{})}),u]})}Ta.displayName=a(1738);const Cg=B[a(1312)](Ta);function Mg({id:e,x:n,y:t,width:o,height:x,style:r,color:i,strokeColor:c,strokeWidth:d,className:s,borderRadius:u,shapeRendering:f,selected:y,onClick:g}){const p=a,{background:h,backgroundColor:b}=r||{},M=i||h||b;return l[p(1993)](p(885),{className:Ge([p(522),{selected:y},s]),x:n,y:t,rx:u,ry:u,width:o,height:x,style:{fill:M,stroke:c,strokeWidth:d},shapeRendering:f,onClick:g?v=>g(v,e):void 0})}const Bg=B.memo(Mg),Dg=e=>e[a(1361)][a(542)](n=>n.id),So=e=>e instanceof Function?e:()=>e;function Lg({nodeStrokeColor:e,nodeColor:n,nodeClassName:t="",nodeBorderRadius:o=5,nodeStrokeWidth:x,nodeComponent:r=Bg,onClick:i}){const c=a,d=Be(Dg,je),s=So(n),u=So(e),f=So(t),y=typeof window>"u"||window[c(1089)]?c(1342):"geometricPrecision";return l[c(1993)](l[c(915)],{children:d[c(542)](g=>l[c(1993)](Sg,{id:g,nodeColorFunc:s,nodeStrokeColorFunc:u,nodeClassNameFunc:f,nodeBorderRadius:o,nodeStrokeWidth:x,NodeComponent:r,onClick:i,shapeRendering:y},g))})}function Ng({id:e,nodeColorFunc:n,nodeStrokeColorFunc:t,nodeClassNameFunc:o,nodeBorderRadius:x,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:c,onClick:d}){const s=a,{node:u,x:f,y,width:g,height:p}=Be(h=>{const b=_0x4806,M=h[b(750)].get(e);if(!M)return{node:void 0,x:0,y:0,width:0,height:0};const v=M[b(380)].userNode,{x:m,y:w}=M[b(380)].positionAbsolute,{width:C,height:k}=kn(v);return{node:v,x:m,y:w,width:C,height:k}},je);return!u||u[s(1821)]||!Qi(u)?null:l[s(1993)](c,{x:f,y,width:g,height:p,style:u[s(1346)],selected:!!u[s(2178)],className:o(u),color:n(u),borderRadius:x,strokeColor:t(u),strokeWidth:r,shapeRendering:i,onClick:d,id:u.id})}const Sg=B[a(1312)](Ng);var kg=B.memo(Lg);const Ig=200,Pg=150,Ag=e=>!e.hidden,jg=e=>{const n=a,t={x:-e.transform[0]/e[n(1130)][2],y:-e[n(1130)][1]/e[n(1130)][2],width:e[n(1238)]/e.transform[2],height:e[n(1265)]/e[n(1130)][2]};return{viewBB:t,boundingRect:e.nodeLookup[n(1705)]>0?Ji(Ft(e[n(750)],{filter:Ag}),t):t,rfId:e[n(1996)],panZoom:e[n(1788)],translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e[n(1265)],ariaLabelConfig:e[n(1159)]}},Eg="react-flow__minimap-desc";function Va({style:e,className:n,nodeStrokeColor:t,nodeColor:o,nodeClassName:x="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:c,bgColor:d,maskColor:s,maskStrokeColor:u,maskStrokeWidth:f,position:y=a(720),onClick:g,onNodeClick:p,pannable:h=!1,zoomable:b=!1,ariaLabel:M,inversePan:v,zoomStep:m=1,offsetScale:w=5}){const C=a,k=Ee(),O=B[C(575)](null),{boundingRect:G,viewBB:j,rfId:A,panZoom:Z,translateExtent:W,flowWidth:q,flowHeight:T,ariaLabelConfig:N}=Be(jg,je),D=e?.[C(1238)]??Ig,L=e?.[C(1265)]??Pg,U=G[C(1238)]/D,P=G[C(1265)]/L,S=Math[C(1439)](U,P),K=S*D,Q=S*L,R=w*S,$=G.x-(K-G[C(1238)])/2-R,xe=G.y-(Q-G[C(1265)])/2-R,ce=K+R*2,de=Q+R*2,fe=Eg+"-"+A,ie=B[C(575)](0),J=B[C(575)]();ie[C(1560)]=S,B[C(363)](()=>{const Y=C;if(O.current&&Z)return J.current=_2({domNode:O.current,panZoom:Z,getTransform:()=>k.getState()[Y(1130)],getViewScale:()=>ie[Y(1560)]}),()=>{const X=Y;J[X(1560)]?.[X(1624)]()}},[Z]),B[C(363)](()=>{const Y=C;J[Y(1560)]?.[Y(658)]({translateExtent:W,width:q,height:T,inversePan:v,pannable:h,zoomStep:m,zoomable:b})},[h,b,v,m,W,q,T]);const re=g?Y=>{const X=C,[H,oe]=J[X(1560)]?.[X(727)](Y)||[0,0];g(Y,{x:H,y:oe})}:void 0,_=p?B.useCallback((Y,X)=>{const H=C,oe=k[H(1740)]().nodeLookup[H(1157)](X)[H(380)][H(1220)];p(Y,oe)},[]):void 0,I=M??N[C(1379)];return l.jsx(nx,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof d===C(774)?d:void 0,"--xy-minimap-mask-background-color-props":typeof s===C(774)?s:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof f===C(411)?f*S:void 0,"--xy-minimap-node-background-color-props":typeof o===C(774)?o:void 0,"--xy-minimap-node-stroke-color-props":typeof t===C(774)?t:void 0,"--xy-minimap-node-stroke-width-props":typeof i===C(411)?i:void 0},className:Ge([C(1781),n]),"data-testid":C(1932),children:l.jsxs(C(719),{width:D,height:L,viewBox:$+" "+xe+" "+ce+" "+de,className:C(2085),role:C(916),"aria-labelledby":fe,ref:O,onClick:re,children:[I&&l[C(1993)](C(1692),{id:fe,children:I}),l[C(1993)](kg,{onClick:_,nodeColor:o,nodeStrokeColor:t,nodeBorderRadius:r,nodeClassName:x,nodeStrokeWidth:i,nodeComponent:c}),l[C(1993)](C(1199),{className:C(1897),d:"M"+($-R)+","+(xe-R)+"h"+(ce+R*2)+"v"+(de+R*2)+"h"+(-ce-R*2)+C(1836)+j.x+","+j.y+"h"+j[C(1238)]+"v"+j[C(1265)]+"h"+-j[C(1238)]+"z",fillRule:C(1906),pointerEvents:C(1712)})]})})}Va[a(1495)]=a(1025);const Yg=B[a(1312)](Va),Ug=e=>n=>e?""+Math[a(1439)](1/n[a(1130)][2],1):void 0,Gg={[zt.Line]:a(1476),[zt[a(1222)]]:a(720)};function Og({nodeId:e,position:n,variant:t=zt[a(1222)],className:o,style:x=void 0,children:r,color:i,minWidth:c=10,minHeight:d=10,maxWidth:s=Number[a(1370)],maxHeight:u=Number[a(1370)],keepAspectRatio:f=!1,resizeDirection:y,autoScale:g=!0,shouldResize:p,onResizeStart:h,onResize:b,onResizeEnd:M}){const v=a,m=la(),w=typeof e===v(774)?e:m,C=Ee(),k=B[v(575)](null),O=t===zt.Handle,G=Be(B[v(1591)](Ug(O&&g),[O,g]),je),j=B[v(575)](null),A=n??Gg[t];B.useEffect(()=>{const W=v;if(!(!k.current||!w))return!j[W(1560)]&&(j[W(1560)]=l1({domNode:k[W(1560)],nodeId:w,getStoreItems:()=>{const q=W,{nodeLookup:T,transform:N,snapGrid:D,snapToGrid:L,nodeOrigin:U,domNode:P}=C[q(1740)]();return{nodeLookup:T,transform:N,snapGrid:D,snapToGrid:L,nodeOrigin:U,paneDomNode:P}},onChange:(q,T)=>{const N=W,{triggerNodeChanges:D,nodeLookup:L,parentLookup:U,nodeOrigin:P}=C.getState(),S=[],K={x:q.x,y:q.y},Q=L[N(1157)](w);if(Q&&Q[N(1714)]&&Q.parentId){const R=Q.origin??P,$=q[N(1238)]??Q[N(1583)].width??0,xe=q[N(1265)]??Q[N(1583)].height??0,ce={id:Q.id,parentId:Q[N(890)],rect:{width:$,height:xe,...$i({x:q.x??Q[N(1543)].x,y:q.y??Q.position.y},{width:$,height:xe},Q.parentId,L,R)}},de=go([ce],L,U,P);S[N(1465)](...de),K.x=q.x?Math.max(R[0]*$,q.x):void 0,K.y=q.y?Math[N(1439)](R[1]*xe,q.y):void 0}if(K.x!==void 0&&K.y!==void 0){const R={id:w,type:N(1543),position:{...K}};S[N(1465)](R)}if(q.width!==void 0&&q[N(1265)]!==void 0){const R=y?y===N(417)?"width":N(1265):!0,$={id:w,type:"dimensions",resizing:!0,setAttributes:R,dimensions:{width:q[N(1238)],height:q[N(1265)]}};S.push($)}for(const R of T){const $={...R,type:N(1543)};S.push($)}D(S)},onEnd:({width:q,height:T})=>{const N=W,D={id:w,type:"dimensions",resizing:!1,dimensions:{width:q,height:T}};C[N(1740)]()[N(1825)]([D])}})),j[W(1560)].update({controlPosition:A,boundaries:{minWidth:c,minHeight:d,maxWidth:s,maxHeight:u},keepAspectRatio:f,resizeDirection:y,onResizeStart:h,onResize:b,onResizeEnd:M,shouldResize:p}),()=>{const q=W;j[q(1560)]?.[q(1624)]()}},[A,c,d,s,u,f,h,b,M,p]);const Z=A.split("-");return l.jsx(v(539),{className:Ge([v(1115),v(845),...Z,t,o]),ref:k,style:{...x,scale:G,...i&&{[v(O?1473:1453)]:i}},children:r})}B[a(1312)](Og);const qa=e=>Symbol[a(2104)]in e,Wa=e=>"entries"in e,Xa=(e,n)=>{const t=a,o=e instanceof Map?e:new Map(e.entries()),x=n instanceof Map?n:new Map(n[t(1942)]());if(o[t(1705)]!==x[t(1705)])return!1;for(const[r,i]of o)if(!x[t(1826)](r)||!Object.is(i,x[t(1157)](r)))return!1;return!0},Hg=(e,n)=>{const t=a,o=e[Symbol[t(2104)]](),x=n[Symbol[t(2104)]]();let r=o[t(1991)](),i=x.next();for(;!r[t(416)]&&!i[t(416)];){if(!Object.is(r[t(1981)],i[t(1981)]))return!1;r=o[t(1991)](),i=x[t(1991)]()}return!!r[t(416)]&&!!i[t(416)]};function Tg(e,n){const t=a;return Object.is(e,n)?!0:typeof e!="object"||e===null||typeof n!==t(2171)||n===null||Object[t(759)](e)!==Object[t(759)](n)?!1:qa(e)&&qa(n)?Wa(e)&&Wa(n)?Xa(e,n):Hg(e,n):Xa({entries:()=>Object.entries(e)},{entries:()=>Object[t(1942)](n)})}const Ka={inlineScript:"内联脚本",dataRequest:a(1224),external:a(835),builtin:"内置动作"},Vg=[{label:a(1830),value:a(1642)},{label:a(1067),value:"switchCanvas"}],qg=[{label:a(1193),value:"info"},{label:a(2093),value:a(2093)},{label:a(1419),value:a(1419)},{label:"error",value:a(551)},{label:a(391),value:a(391)}];function Za(e,n,t){const o=a,x=t.filter(i=>i[o(603)]===e),r=x[o(2194)];return x.map((i,c)=>{const d=o,s=n[d(1876)](f=>f.id===i[d(964)]),u=s?.[d(1468)];return{sourceId:i[d(964)],sourceLabel:u?.[d(1834)]??i.source,edgeIndex:c,totalIncoming:r}})}const Wg=({data:e,id:n})=>{const t=a,{root:o}=He(),x=Be(B.useCallback(c=>Za(n,c[t(1361)],c[t(1337)]).map(({sourceId:d,sourceLabel:s})=>({sourceId:d,label:s})),[n]),Tg),r=e[t(1747)].executorType??"inlineScript",i=r===t(907)?e[t(1747)].dataRequestKey:r===t(717)?e.eventBlock[t(1673)]:r===t(1657)?e[t(1747)][t(770)]===t(1642)?e[t(1747)][t(770)]+": "+String(e[t(1747)][t(1854)]?.[t(962)]??"").slice(0,24):e[t(1747)][t(770)]==="switchCanvas"?"跳转: "+(o[t(1889)][t(1876)](c=>c.id===e.eventBlock[t(1854)]?.[t(1359)])?.[t(659)]??t(1694)):e[t(1747)][t(770)]:null;return l[t(1239)](t(539),{className:t(1674),children:[l[t(1993)](Mt,{type:t(603),position:he[t(1481)],className:t(2046)}),l[t(1239)](t(539),{className:t(1845),children:[l[t(1993)](t(1102),{className:t(584),children:e[t(1834)]}),l[t(1239)](z[t(2132)],{size:"small",children:[l[t(1993)](z[t(1804)],{type:t(1755),size:"small",icon:l[t(1993)](ae[t(1081)],{}),onClick:()=>e.onEdit(n)}),l[t(1993)](z[t(1804)],{type:"text",size:"small",danger:!0,icon:l[t(1993)](ae.DeleteOutlined,{}),onClick:()=>e[t(602)](n)})]})]}),l[t(1993)](t(539),{className:"text-xs mb-1",children:l.jsxs(z[t(2037)],{color:r===t(1196)?"default":r==="builtin"?t(1570):"purple",className:t(1992),children:[Ka[r],i?" · "+i:""]})}),l[t(1239)](t(539),{className:t(1259),children:[e[t(1747)][t(1008)]?.[t(2194)]>0&&l.jsxs("div",{children:[t(829),e[t(1747)][t(1008)][t(542)](c=>c[t(659)])[t(886)](", ")]}),x[t(2194)]>0&&l[t(1239)](t(539),{className:t(661),children:[t(1552),x[t(542)](c=>l[t(1239)](t(539),{className:"pl-1 border-l-2 border-amber-200",children:["←「",c[t(1834)],t(736)]},c.sourceId))]})]}),l[t(1993)](Mt,{type:"source",position:he.Bottom,className:"!bg-blue-500"})]})},Xg={eventBlock:Wg},Kg=Object[a(1942)](Ka)[a(542)](([e,n])=>({label:n,value:e})),Ra=[{label:"点击",value:a(1280)},{label:"鼠标按下",value:"mouseDown"},{label:a(1254),value:a(2077)},{label:"双击",value:a(1319)},{label:"鼠标移入",value:a(1746)},{label:"鼠标移出",value:"mouseLeave"},{label:a(1332),value:a(432)},{label:a(1708),value:a(1622)},{label:a(1301),value:"dataRequest"},{label:a(478),value:a(717)}];function Zg(e,n){const t=a,o={},x=[...e];return x[t(1369)]((r,i)=>{const c=t,d=n[c(1008)][i]?.[c(659)]??(x.length===1?c(853):c(853)+i);o[d]=c(1291)+r.source}),o}function Rg(e,n,t){const o=a;return t[e]?.[o(659)]??(n===1?o(853):o(853)+e)}const Jg=[{label:a(774),value:a(774)},{label:"number",value:a(411)},{label:a(1274),value:a(1274)},{label:"object",value:a(2171)},{label:a(1328),value:a(1328)}];function Ja(e){const n=a,t=Ra[n(1876)](x=>x[n(1981)]===e[n(1231)]),o=t?.[n(1834)]??e[n(1231)];if(e[n(1231)]===n(717)){const x=(e[n(1426)]||"").trim();return x?o+n(1289)+x:o}return o}const _g=({open:e,onClose:n,bindNodeId:t,editingRoot:o})=>{const x=a,{nodes:r,eventFlow:i,externalHandlerCatalog:c,addEventBlock:d,upsertEventBlock:s,removeEventBlock:u,addEventRoot:f,updateEventRoot:y,root:g}=He(),[p,h,b]=lg([]),[M,v,m]=dg([]),w=B[x(575)](p);w[x(1560)]=p;const[C,k]=B[x(655)](()=>o??null),[O,G]=B[x(655)](!1),[j]=z[x(457)][x(904)](),A=z[x(457)][x(1372)](x(1231),j),[Z,W]=B[x(655)](null),[q,T]=B[x(655)](!1),[N]=z[x(457)][x(904)](),D=z[x(457)][x(1372)]("executorType",N),L=z[x(457)][x(1372)](x(770),N),U=z[x(457)][x(1372)](x(1008),N),P=B[x(528)](()=>!q||!Z?[]:Za(Z.id,p,M),[q,Z,p,M]),S=B.useRef(()=>{}),K=B.useRef(()=>{});B[x(363)](()=>{const I=x;if(q&&Z){const Y=Z.builtinConfig??{},{outputs:X,...H}=Z;N[I(467)]({...H,executorType:Z[I(1771)]??"inlineScript",builtinId:Z[I(770)],inputs:Z.inputs??[],builtinConfig:{content:String(Y[I(962)]??""),level:String(Y[I(2067)]??I(1193)),duration:Y[I(2056)]===void 0||Y[I(2056)]===null?void 0:Number(Y[I(2056)])}})}},[q,Z,N]);const Q=B.useCallback(I=>{v(Y=>sc(I,Y))},[v]),R=I=>{const Y=x,X={bindNodeId:I[Y(1721)],eventType:I[Y(1231)],externalEventKey:I[Y(1231)]==="external"?(I[Y(1426)]||"").trim():void 0,flowData:{nodes:[],edges:[]},enabled:!0},H=f(X);k({...X,id:H}),j[Y(1801)](),G(!1),z.message[Y(2093)](Y(1234))},$=B[x(1591)](I=>{const Y=x;u(I),h(X=>X.filter(H=>H.id!==I)),v(X=>X[Y(1641)](H=>H[Y(964)]!==I&&H[Y(603)]!==I))},[u,h,v]),xe=B.useCallback(I=>{const Y=x,X=w[Y(1560)][Y(1876)](le=>le.id===I)?.data?.[Y(1747)],H=i.eventBlocks[Y(1876)](le=>le.id===I),oe=X??H;oe?(W({...oe,id:I}),T(!0)):z.message[Y(1419)]("找不到事件块")},[i[x(2188)]]);S[x(1560)]=xe,K[x(1560)]=$,B[x(363)](()=>{const I=x;if(e&&C){const Y=C[I(704)][I(1361)][I(542)](H=>({id:H.id,type:"eventBlock",position:H[I(1543)],data:{label:H.data[I(1834)],eventBlock:H[I(1468)].eventBlock,onEdit:oe=>S[I(1560)](oe),onDelete:oe=>K.current(oe)}})),X=C.flowData[I(1337)].map(H=>({id:H.id,source:H[I(964)],target:H[I(603)]}));h(Y),v(X)}},[e,C,h,v]);const ce=()=>{const I=x,Y={name:I(406),executorType:I(1196),callback:I(1218),inputs:[],outputs:[]},X=d(Y),H={...Y,id:X},oe={id:X,type:"eventBlock",position:{x:100+p[I(2194)]*50,y:100+p[I(2194)]*30},data:{label:H[I(659)],eventBlock:H,onEdit:le=>S[I(1560)](le),onDelete:le=>K[I(1560)](le)}};h(le=>[...le,oe])},de=()=>{const I=x,Y={name:"Message 提示",executorType:I(1657),builtinId:"antdMessage",builtinConfig:{content:I(1393),level:I(1193)},callback:I(752),inputs:[],outputs:[]},X=d(Y),H={...Y,id:X},oe={id:X,type:I(1747),position:{x:120+p[I(2194)]*50,y:140+p[I(2194)]*30},data:{label:H[I(659)],eventBlock:H,onEdit:le=>S[I(1560)](le),onDelete:le=>K.current(le)}};h(le=>[...le,oe])},fe=()=>{const I=x,Y={name:"跳转画布",executorType:"builtin",builtinId:"switchCanvas",builtinConfig:{targetCanvasId:g[I(1889)][0]?.id||""},callback:I(752),inputs:[],outputs:[]},X=d(Y),H={...Y,id:X},oe={id:X,type:I(1747),position:{x:120+p.length*50,y:140+p.length*30},data:{label:H.name,eventBlock:H,onEdit:le=>S[I(1560)](le),onDelete:le=>K.current(le)}};h(le=>[...le,oe])},ie=I=>{const Y=x;if(!Z)return;const X=I[Y(1771)]??Z[Y(1771)]??Y(1196),H={name:I[Y(659)],callback:I.callback??Z[Y(2029)],executorType:X,dataRequestKey:X===Y(907)?(I[Y(506)]||"")[Y(1258)]():void 0,externalHandlerKey:X===Y(717)?(I[Y(1673)]||"")[Y(1258)]():void 0,builtinId:X===Y(1657)?I[Y(770)]:void 0,builtinConfig:X==="builtin"&&I[Y(770)]===Y(1642)?{content:String(I[Y(1854)]?.[Y(962)]??"")[Y(1258)](),level:I[Y(1854)]?.[Y(2067)]||Y(1193),duration:I[Y(1854)]?.[Y(2056)]===null||I[Y(1854)]?.[Y(2056)]===void 0?void 0:Number(I[Y(1854)][Y(2056)])}:X===Y(1657)&&I.builtinId==="switchCanvas"?{targetCanvasId:String(I[Y(1854)]?.[Y(1359)]??"")[Y(1258)]()}:void 0},oe=I[Y(1008)]??[],le=oe[Y(1641)](ge=>ge?.[Y(659)]&&String(ge[Y(659)])[Y(1258)]()),se={...Z,...H,inputs:le,outputs:[]};s(se),h(ge=>ge.map(ve=>ve.id===Z.id?{...ve,data:{...ve[Y(1468)],label:se[Y(659)]||ve[Y(1468)][Y(1834)],eventBlock:se}}:ve)),T(!1),W(null),z.message[Y(2093)](Y(2208))},J=()=>{const I=x;if(!C)return;const Y=p[I(542)](H=>{const oe=I,le=M.filter(ve=>ve[oe(603)]===H.id),se=H.data[oe(1747)],ge={...se,outputs:[]};return{id:H.id,eventBlockId:H.id,position:H[oe(1543)],inputs:le[oe(542)](ve=>ve[oe(964)]),outputs:M[oe(1641)](ve=>ve[oe(964)]===H.id).map(ve=>ve[oe(603)]),data:{label:H[oe(1468)][oe(1834)],eventBlock:ge,inputMapping:Zg(le,ge)}}}),X=M[I(542)](H=>({id:H.id,source:H.source,target:H.target}));y(C.id,{flowData:{nodes:Y,edges:X}}),lt[I(1409)]({...C,flowData:{nodes:Y,edges:X}}),z[I(452)][I(2093)](I(768)),n()},re=B[x(528)](()=>r.map(I=>({label:I[x(659)],value:I.id})),[r]),_=B.useMemo(()=>t?i[x(1528)].filter(I=>I.bindNodeId===t):i.eventRoots,[i.eventRoots,t]);return e?l[x(1239)](z[x(1489)],{title:"事件流编辑器",open:e,onCancel:n,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[C?l[x(1239)](x(539),{className:x(525),style:{height:700},children:[l.jsxs("div",{className:x(1278),children:[l[x(1993)](z.Space,{children:l[x(1239)](x(1102),{className:x(1900),children:[x(1753),Ja(C)," →"," ",r.find(I=>I.id===C[x(1721)])?.[x(659)]]})}),l[x(1239)](z.Space,{children:[l[x(1993)](z.Button,{icon:l[x(1993)](ae[x(1442)],{}),onClick:ce,children:x(1963)}),l[x(1993)](z[x(1804)],{icon:l.jsx(ae[x(1442)],{}),onClick:de,children:x(512)}),l[x(1993)](z[x(1804)],{icon:l[x(1993)](ae[x(1442)],{}),onClick:fe,children:x(1067)}),l[x(1993)](z[x(1804)],{type:x(1236),icon:l[x(1993)](ae[x(1790)],{}),onClick:J,children:"保存"}),l[x(1993)](z[x(1804)],{icon:l[x(1993)](ae[x(1427)],{}),onClick:()=>k(null),children:x(396)})]})]}),l.jsx(x(539),{className:x(431),children:l[x(1239)](sg,{nodes:p,edges:M,onNodesChange:b,onEdgesChange:m,onConnect:Q,nodeTypes:Xg,fitView:!0,children:[l.jsx(yg,{}),l[x(1993)](Cg,{}),l[x(1993)](Yg,{})]})})]}):l.jsxs(x(539),{className:"p-6",children:[l[x(1239)](x(539),{className:x(1381),children:[l.jsx("h3",{className:x(913),children:x(552)}),l[x(1993)](z.Button,{type:x(1236),icon:l[x(1993)](ae[x(1442)],{}),onClick:()=>G(!0),children:x(993)})]}),l[x(1993)](z[x(1521)],{dataSource:_,renderItem:I=>l[x(1993)](z[x(1521)][x(1047)],{actions:[l.jsx(z[x(1804)],{type:x(1236),icon:l[x(1993)](ae[x(1081)],{}),onClick:()=>k(I),children:"编辑"},x(906))],children:l[x(1993)](z[x(1521)].Item[x(1305)],{title:l.jsxs(z[x(2132)],{children:[l.jsxs("span",{children:[x(2167),Ja(I)]}),l[x(1993)](z[x(2037)],{color:x(1306),children:r[x(1876)](Y=>Y.id===I.bindNodeId)?.[x(659)]||I.bindNodeId})]}),description:x(654)+I[x(704)][x(1361)].length+x(403)+I[x(704)][x(1337)][x(2194)]})}),locale:{emptyText:l.jsx(z[x(900)],{description:"暂无事件流"})}}),l.jsx(z[x(1489)],{title:x(993),open:O,onCancel:()=>{j[x(1801)](),G(!1)},footer:null,afterOpenChange:I=>{const Y=x;I&&(j.resetFields(),t&&j[Y(467)]({bindNodeId:t}))},children:l[x(1239)](z.Form,{form:j,onFinish:R,layout:x(609),children:[l[x(1993)](z[x(457)].Item,{name:"bindNodeId",label:"绑定节点",rules:[{required:!0,message:x(425)}],initialValue:t,children:l[x(1993)](z[x(462)],{options:re,placeholder:x(1602),disabled:!!t})}),l[x(1993)](z[x(457)][x(1047)],{name:x(1231),label:"触发方式",rules:[{required:!0,message:x(818)}],children:l[x(1993)](z[x(462)],{options:Ra,placeholder:x(1446)})}),A==="external"&&l[x(1993)](z.Form[x(1047)],{name:"externalEventKey",label:"外部事件标识",rules:[{required:!0,message:x(610)},{validator:(I,Y)=>(Y||"")[x(1258)]()?Promise[x(2192)]():Promise[x(1178)](new Error(x(1756)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:l[x(1993)](z.Input,{placeholder:"例如:refresh"})}),l[x(1993)](z[x(457)].Item,{className:x(919),children:l.jsxs(z[x(2132)],{className:x(493),children:[l[x(1993)](z[x(1804)],{onClick:()=>{j[x(1801)](),G(!1)},children:"取消"}),l[x(1993)](z[x(1804)],{type:x(1236),htmlType:x(1851),children:"创建"})]})})]})})]}),l[x(1993)](z.Modal,{title:x(946),open:q,onCancel:()=>{T(!1),W(null)},footer:null,destroyOnClose:!0,children:l[x(1239)](z[x(457)],{form:N,onFinish:ie,layout:x(609),children:[l[x(1993)](z[x(457)][x(1047)],{name:x(659),label:"名称",rules:[{required:!0,message:x(1892)}],children:l[x(1993)](z[x(370)],{})}),l[x(1993)](z[x(457)].Item,{name:x(1771),label:x(1926),rules:[{required:!0,message:"请选择执行方式"}],children:l[x(1993)](z[x(462)],{options:Kg,placeholder:x(1048)})}),D==="builtin"&&l[x(1993)](z[x(457)][x(1047)],{name:x(770),label:x(428),rules:[{required:!0,message:x(557)}],children:l[x(1993)](z[x(462)],{options:Vg,placeholder:"选择具体内置能力"})}),D===x(1657)&&L===x(1642)&&l[x(1239)](l.Fragment,{children:[l[x(1993)](z[x(457)][x(1047)],{name:[x(1854),"content"],label:"提示内容",rules:[{required:!0,message:x(469)}],extra:x(2028),children:l[x(1993)](z.Input.TextArea,{rows:3,placeholder:"例如:保存成功 或 结果:{{prev}}"})}),l[x(1993)](z[x(457)].Item,{name:[x(1854),"level"],label:x(392),children:l[x(1993)](z[x(462)],{options:qg})}),l[x(1993)](z.Form[x(1047)],{name:[x(1854),"duration"],label:x(440),extra:x(1777),children:l[x(1993)](z[x(1783)],{min:0,step:.5,style:{width:x(1805)},placeholder:"默认"})})]}),D===x(1657)&&L==="switchCanvas"&&l[x(1993)](z.Form[x(1047)],{name:[x(1854),"targetCanvasId"],label:x(366),rules:[{required:!0,message:x(1203)}],children:l.jsx(z[x(462)],{placeholder:x(2118),options:g.canvases.map(I=>({value:I.id,label:I[x(659)]}))})}),D==="dataRequest"&&l[x(1993)](z[x(457)][x(1047)],{name:x(506),label:"请求标识",rules:[{required:!0,message:x(561)},{validator:(I,Y)=>(Y||"")[x(1258)]()?Promise[x(2192)]():Promise.reject(new Error(x(1756)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:l.jsx(z[x(370)],{placeholder:x(775)})}),D===x(717)&&l[x(1993)](z.Form[x(1047)],{name:x(1673),label:x(1169),rules:[{required:!0,message:x(1541)},{validator:(I,Y)=>(Y||"")[x(1258)]()?Promise[x(2192)]():Promise[x(1178)](new Error(x(1756)))}],extra:c[x(2194)]>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:c[x(2194)]>0?l[x(1993)](z[x(462)],{showSearch:!0,optionFilterProp:"label",allowClear:!0,placeholder:x(1584),options:c[x(542)](I=>({value:I.key,label:I[x(1834)],title:I[x(2149)]?I[x(1834)]+x(677)+I.description:I.label+" ("+I[x(1460)]+")"}))}):l.jsx(z[x(370)],{placeholder:x(671)})}),D==="inlineScript"&&l[x(1993)](z.Form[x(1047)],{name:"callback",label:x(2127),rules:[{validator:(I,Y)=>{const X=x;return typeof Y=="string"&&Y[X(1258)]()?Promise[X(2192)]():Promise.reject(new Error(X(1634)))}}],children:l[x(1993)](z[x(370)].TextArea,{rows:6,placeholder:x(2052)})}),P.length>0&&l.jsxs(x(539),{className:x(889),children:[l.jsx("div",{className:x(1397),children:x(944)}),l[x(1993)]("ul",{className:"list-none space-y-2 m-0 p-0",children:P[x(542)](I=>{const Y=x,X=U??Z?.[Y(1008)]??[],H=Rg(I[Y(441)],I[Y(1522)],X);return l[Y(1239)]("li",{className:"pl-2 border-l-2 border-amber-300",children:[l[Y(1239)](Y(539),{className:"text-gray-800",children:["第 ",I[Y(441)]+1," 条入边 ←「",I[Y(806)],"」:上游",l[Y(1993)](Y(1910),{children:Y(969)})," →"," ",l[Y(1239)]("code",{className:Y(751),children:[Y(832),H]})]}),l[Y(1239)](Y(539),{className:"text-gray-600 mt-0.5",children:["在下方第 ",I[Y(441)]+1,Y(536)]})]},I[Y(1774)])})})]}),l[x(1993)](x(539),{className:"font-medium text-gray-800 mb-2",children:x(1464)}),l.jsxs(x(539),{className:x(1717),children:[x(641)," ",l[x(1993)](x(1556),{children:x(1235)}),",多入边用 ",l[x(1993)](x(1556),{children:x(2203)}),"、",l[x(1993)](x(1556),{children:x(1979)}),"…"]}),l[x(1993)](z.Form[x(1521)],{name:x(1008),children:(I,{add:Y,remove:X})=>l[x(1239)](l[x(915)],{children:[I[x(542)](({key:H,name:oe,...le})=>l[x(1239)](z[x(2132)],{align:x(1041),wrap:!0,className:x(590),children:[l.jsx(z[x(457)][x(1047)],{...le,name:[oe,x(659)],rules:[{required:!0,message:"名称"}],children:l[x(1993)](z[x(370)],{placeholder:"参数名,如 A",style:{width:140}})}),l[x(1993)](z[x(457)][x(1047)],{...le,name:[oe,"type"],initialValue:"any",children:l.jsx(z[x(462)],{options:Jg,style:{width:100}})}),l[x(1993)](ae.MinusCircleOutlined,{className:"text-gray-400 hover:text-red-500 cursor-pointer",onClick:()=>X(oe)})]},H)),l.jsx(z[x(1804)],{type:"dashed",onClick:()=>Y({type:x(1328)}),block:!0,icon:l.jsx(ae[x(1442)],{}),children:x(1646)})]})}),l.jsx(z[x(457)].Item,{className:"mb-0 mt-4",children:l[x(1239)](z[x(2132)],{className:x(493),children:[l.jsx(z.Button,{onClick:()=>{T(!1),W(null)},children:"取消"}),l[x(1993)](z[x(1804)],{type:"primary",htmlType:x(1851),children:"保存"})]})})]})})]}):null},cx={click:"点击",mouseDown:a(1340),mouseUp:"鼠标释放",doubleClick:"双击",mouseOver:"鼠标移入",mouseLeave:a(1890),mouseEnter:"鼠标进入",contextMenu:a(1708),dataRequest:a(1301),external:a(478)};function Fg(e){const n=a;if(e[n(1231)]===n(717)){const t=(e.externalEventKey||"")[n(1258)]();return t?cx[n(717)]+" · "+t:cx.external}return cx[e[n(1231)]]}const Qg=Object[a(1942)](cx)[a(542)](([e,n])=>({label:n,value:e})),$g=({nodeId:e})=>{const n=a,{eventFlow:t,addEventRoot:o,updateEventRoot:x,removeEventRoot:r}=He(),[i,c]=B[n(655)](!1),[d,s]=B[n(655)](null),[u,f]=B[n(655)](!1),[y]=z.Form.useForm(),g=z.Form.useWatch("eventType",y),p=B[n(528)](()=>{const m=n;return t[m(1528)][m(1641)](w=>w.bindNodeId===e)},[t[n(1528)],e]),h=m=>{const w=n,C={bindNodeId:e,eventType:m[w(1231)],externalEventKey:m[w(1231)]===w(717)?(m[w(1426)]||"")[w(1258)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0};o(C),y[w(1801)](),f(!1)},b=m=>{s(m),c(!0)},M=(m,w)=>{x(m.id,{enabled:w})},v=m=>{r(m)};return l.jsxs(n(539),{children:[l[n(1239)]("div",{className:n(1381),children:[l.jsx("h4",{className:"text-sm font-medium",children:"事件流绑定"}),l[n(1993)](z[n(1804)],{type:n(1236),size:n(398),icon:l.jsx(ae[n(1442)],{}),onClick:()=>f(!0),children:n(1021)})]}),l[n(1993)](z.List,{dataSource:p,renderItem:m=>l[n(1993)](z[n(1521)][n(1047)],{actions:[l.jsx(z.Switch,{checked:m.enabled,size:"small",onChange:w=>M(m,w)},n(811)),l.jsx(z[n(1804)],{type:n(1755),size:n(398),icon:l[n(1993)](ae[n(1081)],{}),onClick:()=>b(m)},n(906)),l[n(1993)](z[n(813)],{title:n(1357),description:n(825),onConfirm:()=>v(m.id),children:l.jsx(z[n(1804)],{type:n(1755),danger:!0,size:n(398),icon:l[n(1993)](ae[n(1096)],{})})},n(1147))],children:l[n(1993)](z[n(1521)][n(1047)][n(1305)],{title:l[n(1239)](z[n(2132)],{children:[l[n(1993)](z[n(2037)],{color:m.enabled?n(1306):"default",children:Fg(m)}),l[n(1239)](n(1102),{className:n(1179),children:[m[n(704)][n(1361)].length," 个节点"]})]}),description:m.enabled?l[n(1993)]("span",{className:n(1886),children:n(2134)}):l[n(1993)](n(1102),{className:n(1179),children:n(1597)})})}),locale:{emptyText:l[n(1993)](z.Empty,{image:z[n(900)][n(592)],description:n(2031)})}}),l[n(1993)](z[n(1489)],{title:"添加事件流",open:u,onCancel:()=>{y[n(1801)](),f(!1)},footer:null,afterOpenChange:m=>{m&&y.resetFields()},children:l.jsxs(z[n(457)],{form:y,onFinish:h,layout:"vertical",children:[l[n(1993)](z.Form[n(1047)],{name:n(1231),label:"触发方式",rules:[{required:!0,message:n(818)}],children:l[n(1993)](z.Select,{options:Qg,placeholder:n(1050)})}),g==="external"&&l.jsx(z[n(457)][n(1047)],{name:n(1426),label:n(1723),rules:[{required:!0,message:n(610)},{validator:(m,w)=>(w||"")[n(1258)]()?Promise[n(2192)]():Promise[n(1178)](new Error("标识不能为空"))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:l[n(1993)](z[n(370)],{placeholder:n(1288)})}),l.jsx(z[n(457)][n(1047)],{className:n(919),children:l[n(1239)](z.Space,{className:n(493),children:[l.jsx(z.Button,{onClick:()=>f(!1),children:"取消"}),l[n(1993)](z[n(1804)],{type:"primary",htmlType:n(1851),children:"创建"})]})})]})}),l.jsx(_g,{open:i,onClose:()=>{c(!1),s(null)},bindNodeId:e,editingRoot:d},d?.id??n(372)+e)]})},{Panel:On}=z[a(472)],{TabPane:ax}=z[a(635)],{TextArea:e5}=z[a(370)],_a=({defaultTestData:e})=>{const n=a,{nodes:t,selectedNodeId:o,updateNode:x,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:c,materials:d,selectedStatusId:s,selectStatus:u}=He(),[f]=z[n(457)][n(904)](),[y,g]=B[n(655)](n(1750)),[p,h]=B[n(655)](!1),[b,M]=B[n(655)](null),[v,m]=B[n(655)]({}),w=B[n(528)](()=>t[n(1876)](L=>L.id===o),[t,o]),C=w?.contentInfo[n(1247)]||[],k=D=>{const L=n;o&&(D[L(721)]&&r(o,D[L(721)]),D.name!==void 0&&x(o,{name:D.name}),D[L(814)]&&i(o,D[L(814)]))};console[n(365)](o,"selectedNodeId",w),B[n(363)](()=>{const D=n;w&&w&&(f[D(467)]({name:w.name,normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:"transparent",borderRadius:0,opacity:1,...w.normalStyle},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...w.controlInfo}}),u(null))},[w,u,f]);const O=()=>{!o||!w||(M("new"),h(!0))},G=D=>{const L=n;if(!o||!w)return;const U={id:be.nanoid(),name:D[L(659)]+"_状态"+(C[L(2194)]+1),expression:C.length===0?L(945):"return false;",material:{...D,id:be[L(1161)]()},boundDatasetId:null};if(b===L(2204)){const P=[...C,U];c(o,{statusList:P})}else if(b){const P=C[L(542)](S=>{const K=L;return S.id===b?{...S,material:{...D,id:be[K(1161)]()}}:S});c(o,{statusList:P})}h(!1),M(null)},j=D=>{const L=n;if(!o||!w)return;const U=w[L(1537)][L(1247)]?.filter(P=>P.id!==D)||[];c(o,{statusList:U}),s===D&&u(null)},A=(D,L)=>{const U=n;if(!o||!w)return;const P=w.contentInfo[U(1247)]?.[U(542)](S=>S.id===D?{...S,...L}:S)||[];c(o,{statusList:P})},Z=D=>{const L=n;if(!o||!w)return;const U={...D,id:be[L(1161)](),name:D[L(659)]+L(715),expression:L(1185)},P=[...C,U];c(o,{statusList:P})},W=(D,L)=>{const U=n;if(!o||!w)return;const P=C[U(626)](K=>K.id===D);if(P===-1)return;const S=[...C];L==="up"&&P>0?[S[P],S[P-1]]=[S[P-1],S[P]]:L===U(1387)&&P<S[U(2194)]-1&&([S[P],S[P+1]]=[S[P+1],S[P]]),c(o,{statusList:S})},q=D=>{M(D),h(!0)},T=(D,L)=>{const U=n,P=L[U(713)]||{},S=P[U(1555)]??0,K=P.startY??0,Q=P.endX??100,R=P[U(1488)]??0,$=Math[U(1439)]((P[U(2123)]||P[U(1832)]||2)*2,4),xe=Math.min(S,Q),ce=Math.min(K,R),de=Math[U(1439)](S,Q),fe=Math[U(1439)](K,R),ie=Math[U(1439)](de-xe,$),J=Math[U(1439)](fe-ce,$),re=D[U(721)].x||0,_=D[U(721)].y||0;return{material:{...L,config:{...P,startX:S-xe,startY:K-ce,endX:Q-xe,endY:R-ce}},box:{x:re+xe,y:_+ce,width:ie,height:J}}},N=(D,L)=>{const U=n;if(!o||!w)return;const{list:P,lineBox:S}=C[U(1606)]((K,Q)=>{const R=U;if(Q.id!==D)return K[R(1073)][R(1465)](Q),K;let $;if(Q[R(600)][R(1424)]==="LINE"&&"config"in L&&L[R(713)]!==void 0){const xe=Q[R(600)],ce=L[R(713)];$={...xe,...L,config:{...xe[R(713)]||{},...ce}}}else $={...Q[R(600)],...L};if($[R(1424)]===R(1881)){const{material:xe,box:ce}=T(w,$);return K[R(1073)][R(1465)]({...Q,material:xe}),K[R(2108)]=ce,K}return K.list[R(1465)]({...Q,material:$}),K},{list:[],lineBox:null});S!==null?x(o,{normalStyle:{...w[U(721)],x:S.x,y:S.y,width:S[U(1238)],height:S.height},contentInfo:{...w[U(1537)],statusList:P}}):c(o,{statusList:P})};return w?l[n(1239)]("div",{className:n(1798),children:[l[n(1239)](n(539),{className:n(1401),children:[l.jsx("h3",{className:n(1036),children:n(435)}),l.jsx("p",{className:n(2073),children:n(2121)})]}),l[n(1993)](n(539),{className:n(1678),children:l[n(1239)](z[n(635)],{activeKey:y,onChange:g,children:[l[n(1993)](ax,{tab:"基础",children:l[n(1239)](z.Form,{form:f,layout:n(609),onValuesChange:k,initialValues:{name:w[n(659)]},children:[l[n(1993)](z.Form[n(1047)],{label:n(1148),name:"name",children:l.jsx(z[n(370)],{placeholder:"输入节点名称"})}),l[n(1239)](z[n(472)],{ghost:!0,defaultActiveKey:["position","size",n(1346)],children:[l[n(1993)](On,{header:"位置",children:l[n(1239)](z[n(2132)],{children:[l[n(1993)](z[n(457)][n(1047)],{label:"X",name:["normalStyle","x"],children:l[n(1993)](z[n(1783)],{})}),l[n(1993)](z.Form[n(1047)],{label:"Y",name:[n(721),"y"],children:l.jsx(z.InputNumber,{})})]})},n(1543)),l.jsx(On,{header:"尺寸",children:l[n(1239)](z[n(2132)],{children:[l.jsx(z[n(457)][n(1047)],{label:"宽度",name:["normalStyle",n(1238)],children:l.jsx(z[n(1783)],{min:10})}),l.jsx(z.Form[n(1047)],{label:"高度",name:[n(721),"height"],children:l[n(1993)](z.InputNumber,{min:10})})]})},n(1705)),l[n(1239)](On,{header:"样式",children:[l[n(1993)](z[n(457)].Item,{label:"背景色",name:[n(721),n(451)],children:l[n(1993)](z[n(370)],{placeholder:n(2139)})}),l.jsx(z.Form[n(1047)],{label:n(1550),name:[n(721),"padding"],children:l.jsx(z[n(1783)],{min:0})}),l.jsx(z[n(457)].Item,{label:"圆角",name:["normalStyle",n(1637)],children:l[n(1993)](z[n(1783)],{min:0})}),l[n(1993)](z[n(457)][n(1047)],{label:n(665),name:[n(721),"scale"],help:n(1940),children:l[n(1993)](z[n(1783)],{min:.1,max:5,step:.1})}),!w[n(1537)].statusList.some(D=>D.material[n(1424)]===n(1881))&&l[n(1993)](z.Form[n(1047)],{label:"旋转角度",name:[n(721),"rotate"],help:n(1149),children:l[n(1993)](z[n(1783)],{min:0,max:360,step:1})}),l.jsx(z.Form[n(1047)],{label:n(1868),name:["normalStyle",n(981)],children:l[n(1993)](z[n(1783)],{min:0,max:1,step:.1})}),l[n(1993)](z.Form[n(1047)],{label:"层级",name:[n(721),n(540)],children:l.jsx(z[n(1783)],{})})]},n(1346))]})]})},n(1750)),l[n(1993)](ax,{tab:"状态",children:w[n(1424)]===n(1728)&&w[n(514)]?l.jsx(Al,{node:w,updateNode:x,materials:d}):l[n(1239)](n(539),{className:"mb-4",children:[l[n(1239)](n(539),{className:n(1845),children:[l[n(1239)]("span",{className:n(1900),children:[n(1145),l[n(1993)](z[n(2037)],{color:"blue",className:n(1035),children:C[n(2194)]})]}),l[n(1993)](z[n(1804)],{type:"primary",size:"small",icon:l[n(1993)](ae[n(1442)],{}),onClick:O,children:"添加状态"})]}),l.jsx("p",{className:"text-xs text-gray-500 mb-3",children:n(826)}),C[n(2194)]>0&&l[n(1993)](n(539),{className:"mb-4 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:l[n(1993)](n(539),{className:n(556),children:l[n(1239)](n(539),{children:[l.jsx(n(1102),{className:"text-sm text-gray-600",children:n(1131)}),l[n(1993)](n(1102),{className:n(433),children:n(2110)})]})})}),C[n(2194)]===0?l.jsx("div",{className:n(1848),children:"暂无状态,点击上方按钮添加"}):l[n(1993)](z.Collapse,{ghost:!0,defaultActiveKey:C[0]?.id+o,children:C[n(542)]((D,L)=>l[n(1993)](On,{header:l[n(1239)]("div",{className:n(1266),children:[l.jsx(n(1102),{className:n(718),children:L+1}),l[n(1993)](n(1102),{className:n(1900),children:D[n(659)]}),l[n(1993)](z[n(2037)],{color:n(1582),className:"text-xs",children:D[n(600)][n(1424)]})]}),extra:l[n(1239)](z.Space,{size:n(398),onClick:U=>U[n(1064)](),children:[l.jsx(z.Button,{type:n(1755),size:n(398),icon:l[n(1993)](ae[n(1592)],{}),disabled:L===0,onClick:U=>{U.stopPropagation(),W(D.id,"up")}}),l[n(1993)](z[n(1804)],{type:"text",size:n(398),icon:l.jsx(ae[n(1882)],{}),disabled:L===C[n(2194)]-1,onClick:U=>{const P=n;U[P(1064)](),W(D.id,P(1387))}}),l[n(1993)](z[n(1804)],{type:"text",size:"small",icon:l[n(1993)](ae.CopyOutlined,{}),onClick:U=>{U[n(1064)](),Z(D)}}),l[n(1993)](z[n(1804)],{type:n(1755),size:"small",danger:!0,icon:l[n(1993)](ae.DeleteOutlined,{}),onClick:U=>{U[n(1064)](),j(D.id)}})]}),children:l.jsxs(z[n(457)],{layout:n(609),children:[l[n(1993)](z[n(457)][n(1047)],{label:"状态名称",children:l[n(1993)](z[n(370)],{value:D[n(659)],onChange:U=>A(D.id,{name:U.target[n(1981)]}),placeholder:n(2001)})}),l.jsx(qr,{status:D,onUpdate:U=>A(D.id,U),onAppendToExpression:U=>{const P=n;m(S=>({...S,[D.id]:(S[D.id]??D[P(816)])+U}))}}),l[n(1993)](z[n(457)][n(1047)],{label:n(995),help:"单参数 data(对象):由数据池 sample(若已绑定)与画布运行时数据合并;测点数组会按 paramsCode 写入 data。须 return true/false。",children:l[n(1993)](e5,{value:v[D.id]??D[n(816)],onChange:U=>m(P=>({...P,[D.id]:U[n(603)].value})),onBlur:U=>{const P=n;A(D.id,{expression:U[P(603)][P(1981)]}),m(S=>{const K={...S};return delete K[D.id],K})},rows:3,placeholder:"return true;"})}),l[n(1993)](z[n(457)].Item,{label:n(1491),children:l[n(1239)](n(539),{className:"flex items-center gap-2",children:[l.jsx(z[n(2037)],{color:n(1306),children:D[n(600)][n(659)]}),l.jsx(z[n(2037)],{color:n(1582),children:D[n(600)][n(1424)]}),l.jsx(z[n(1804)],{type:n(537),size:n(398),icon:l[n(1993)](ae[n(1081)],{}),onClick:()=>q(D.id),children:n(749)})]})}),l.jsx(z.Divider,{style:{margin:n(1860)}}),l[n(1239)]("div",{className:"bg-gray-50 rounded-lg p-3 border border-gray-200",children:[l[n(1239)](n(539),{className:n(1845),children:[l.jsx(n(1102),{className:n(596),children:n(1893)}),l[n(1993)](z[n(2037)],{children:D.material[n(659)]})]}),l[n(1993)](Wr,{material:D.material,onSave:U=>N(D.id,U)})]})]})},D.id+o))})]})},n(1982)),l[n(1993)](ax,{tab:"控制",children:l.jsxs(z.Form,{form:f,layout:n(609),onValuesChange:k,children:[l.jsx(z[n(457)][n(1047)],{label:n(1318),name:[n(814),n(1638)],valuePropName:"checked",children:l[n(1993)](z[n(1870)],{})}),l.jsx(z[n(457)].Item,{label:n(1431),name:[n(814),n(572)],valuePropName:n(973),children:l[n(1993)](z.Switch,{})}),l.jsx(z[n(457)].Item,{label:n(645),name:[n(814),"isResizable"],valuePropName:"checked",children:l.jsx(z.Switch,{})}),l.jsx(z[n(457)][n(1047)],{label:"可选中",name:[n(814),n(1869)],valuePropName:n(973),children:l.jsx(z[n(1870)],{})})]})},n(1938)),l[n(1993)](ax,{tab:n(2095),children:l[n(1993)]($g,{nodeId:w.id})},n(1336))]})}),l.jsx(n(539),{className:n(1317),children:l[n(1239)](n(539),{className:n(1259),children:[l[n(1239)](n(539),{children:["节点 ID: ",w.id[n(1172)](0,8),n(378)]}),l[n(1239)](n(539),{children:[n(2112),C[n(2194)]]})]})}),l.jsx(z[n(1489)],{title:n(548),open:p,onCancel:()=>{h(!1),M(null)},footer:null,width:600,children:l[n(1993)](n(539),{className:"max-h-[400px] overflow-y-auto",children:l[n(1239)](z[n(472)],{ghost:!0,defaultActiveKey:[n(1750),n(987),n(1755),n(2070)],children:[l.jsx(On,{header:n(1082),children:l.jsx(n(539),{className:n(1098),children:d[n(1641)](D=>["矩形","圆形",n(1272)][n(911)](D[n(659)]))[n(542)](D=>l[n(1993)](Fa,{material:D,onClick:()=>G(D)},D.id))})},n(1750)),l.jsx(On,{header:n(1162),children:l[n(1993)]("div",{className:n(1098),children:d[n(1641)](D=>["阀门","泵","罐体"][n(911)](D[n(659)])||D.type===n(1072)&&!["矩形","圆形",n(1272)][n(911)](D[n(659)]))[n(542)](D=>l[n(1993)](Fa,{material:D,onClick:()=>G(D)},D.id))})},n(987)),l[n(1993)](On,{header:"文本",children:l.jsx(n(539),{className:"grid grid-cols-4 gap-2",children:d.filter(D=>D[n(1424)]==="TEXT")[n(542)](D=>l.jsxs("div",{className:n(1842),onClick:()=>G(D),children:[l[n(1993)](n(539),{className:n(2039),children:l[n(1993)](n(1102),{className:"text-lg font-bold text-gray-500",children:"T"})}),l[n(1993)](n(1102),{className:n(2062),children:D[n(659)]})]},D.id))})},"text"),l[n(1993)](On,{header:"线条",children:l.jsx(n(539),{className:n(1098),children:d[n(1641)](D=>D.type==="LINE")[n(542)](D=>l[n(1239)](n(539),{className:n(1842),onClick:()=>G(D),children:[l[n(1993)]("div",{className:n(2039),children:l[n(1993)](n(539),{className:n(1368)})}),l.jsx(n(1102),{className:n(2062),children:D.name})]},D.id))})},n(2070))]})})})]}):l[n(1993)](n(539),{className:n(1023),children:l.jsx(z[n(900)],{description:n(1001)})})},Fa=({material:e,onClick:n})=>{const t=a,o=e[t(1424)]===t(1072)?e[t(1909)]:void 0;return l[t(1239)](t(539),{className:t(1842),onClick:n,children:[l[t(1993)](t(539),{className:t(657),children:o?l[t(1993)]("img",{src:o,alt:e[t(659)],className:t(991)}):l[t(1993)](t(1102),{className:t(2062),children:e.name[0]})}),l[t(1993)](t(1102),{className:t(2062),children:e.name})]})},n5="ConfigEditor-module__configEditor__dinNG",t5={configEditor:n5},x5=a(643);function Qa(e){return Array[a(927)](e)}const $a=({open:e,onClose:n})=>{const t=a,{dataPool:o,addDataPoolItem:x,updateDataPoolItem:r,removeDataPoolItem:i}=He(),[c]=z[t(457)][t(904)](),[d,s]=B[t(655)](null);B.useEffect(()=>{const h=t;!e&&(s(null),c[h(1801)]())},[e,c]);const u=()=>{const h=t;s(h(1680)),c[h(467)]({name:h(731)+(o[h(2194)]+1),sampleJson:""})},f=h=>{const b=t;s(h.id),c.setFieldsValue({name:h[b(659)],sampleJson:JSON[b(1571)](h[b(1167)]??{},null,2)})},y=h=>{const b=t,M=h.trim();if(!M)return{};const v=JSON.parse(M);if(v===null||typeof v!==b(2171))throw new Error(b(1310));if(Array.isArray(v)){for(let m=0;m<v[b(2194)];m++)if(typeof v[m]!==b(2171)||v[m]===null)throw new Error(b(2137)+(m+1)+" 项必须是对象");return v}return v},g=()=>{const h=t;c[h(732)]()[h(1796)](b=>{const M=h;let v;try{v=y(b[M(1838)])}catch(w){z[M(452)][M(551)](w instanceof Error?w.message:M(730));return}const m=b[M(659)].trim();if(!m){z.message[M(551)](M(1892));return}d===M(1680)?(x({name:m,sample:v}),z.message[M(2093)](M(1520))):d&&(r(d,{name:m,sample:v}),z[M(452)][M(2093)](M(2081))),s(null),c[M(1801)]()})[h(709)](()=>{})},p=[{title:"名称",dataIndex:t(659),key:t(659)},{title:"类型",key:t(1424),width:100,render:(h,b)=>Qa(b.sample)?l[t(1239)](z.Tag,{color:t(1306),children:[t(461),b[t(1167)][t(2194)],t(526)]}):l[t(1993)](z[t(2037)],{children:"对象"})},{title:"字段数",key:t(1651),width:90,render:(h,b)=>{const M=t;if(Qa(b.sample)){const v=b.sample[0];return v?Object[M(1651)](v)[M(2194)]:0}return Object[M(1651)](b.sample||{})[M(2194)]}},{title:"操作",key:t(947),width:160,render:(h,b)=>l[t(1239)](z[t(2132)],{children:[l[t(1993)](z[t(1804)],{type:t(537),size:t(398),icon:l.jsx(ae[t(1081)],{}),onClick:()=>f(b),children:"编辑"}),l[t(1993)](z.Popconfirm,{title:t(382),description:t(1019),onConfirm:()=>{const M=t;i(b.id),z[M(452)].success("已删除,相关状态已解除数据集绑定")},children:l[t(1993)](z[t(1804)],{type:t(537),size:t(398),danger:!0,icon:l[t(1993)](ae.DeleteOutlined,{}),children:"删除"})})]})}];return l[t(1239)](z[t(1489)],{title:"数据池(节点状态用)",open:e,onCancel:n,width:760,footer:null,destroyOnClose:!0,children:[l.jsxs("p",{className:t(2014),children:[t(1142)," ",l[t(1993)](t(1556),{className:t(1526),children:t(1701)}),t(1696)]}),l[t(1993)]("div",{className:"mb-3",children:l[t(1993)](z[t(1804)],{type:t(1236),icon:l[t(1993)](ae[t(1442)],{}),onClick:u,children:t(520)})}),d&&l.jsxs(t(539),{className:t(499),children:[l[t(1239)]("div",{className:"font-medium mb-2",children:[d===t(1680)?"新建":"编辑",t(2090)]}),l.jsxs(z[t(457)],{form:c,layout:t(609),children:[l[t(1993)](z[t(457)][t(1047)],{name:t(659),label:"名称",rules:[{required:!0,message:"必填"}],children:l[t(1993)](z.Input,{placeholder:t(2181)})}),l[t(1993)](z.Form.Item,{name:t(1838),label:t(606),rules:[{required:!0,message:"必填"}],children:l[t(1993)](z[t(370)][t(1779)],{rows:12,className:t(2193),placeholder:x5})}),l[t(1239)](z.Space,{children:[l[t(1993)](z[t(1804)],{type:"primary",onClick:g,children:"保存"}),l[t(1993)](z[t(1804)],{onClick:()=>{const h=t;s(null),c[h(1801)]()},children:"取消"})]})]})]}),l[t(1993)](z[t(1091)],{size:"small",rowKey:"id",dataSource:o,columns:p,pagination:!1,locale:{emptyText:"暂无数据集,请点击「新建」"}})]})},{Header:o5,Sider:es,Content:r5}=z.Layout,i5=({initialScheme:e,onChange:n,readonly:t=!1,headerExtra:o,className:x="",style:r,showHeader:i=!0,showMaterialPanel:c=!0,showPropertyPanel:d=!0,customMaterials:s,initialDataPool:u,initialEventFlow:f,externalEventActions:y,onUploadSvg:g,defaultTestData:p,backgroundImageUrl:h,initialViewportWidth:b,initialViewportHeight:M})=>{const v=a,[m,w]=B[v(655)](!1),[C,k]=B[v(655)](!1),[O,G]=B.useState(""),[j]=B[v(655)](()=>[{paramsCode:v(1620),paramsName:"通频速度有效值",value:25,paramsUnit:v(535)},{paramsCode:v(1099),paramsName:"通频加速度有效值",value:1.5,paramsUnit:v(484)}]),A=p!==void 0?p:j,Z=i&&!t,{exportScheme:W,importScheme:q,nodes:T,materials:N,dataPool:D,eventFlow:L,root:U,canvas:P,viewport:S,addMaterial:K,setDataPool:Q,setEventFlow:R,setExternalHandlerCatalog:$}=He();B.useRef(null);const xe=B[v(575)](!1);B[v(363)](()=>{const J=v;if(!xe[J(1560)]&&(xe[J(1560)]=!0,cr.forEach(re=>K(re)),e&&q(e),f!==void 0&&R(f),y&&y[J(2194)]>0)){$(y);const re={};for(const _ of y){const I=String(_[J(1460)]??"").trim();I&&_[J(1733)]&&(re[I]=_[J(1733)])}Object.keys(re)[J(2194)]>0&<[J(1444)]({external:re})}},[]),B[v(363)](()=>{const J=v;s&&s[J(2194)]>0&&s[J(1369)](re=>K(re))},[]),B[v(363)](()=>{u!==void 0&&Q(u)},[u,Q]),B.useEffect(()=>{if(n){const J=W();n(J)}},[T,N,D,L,U,n,W]);const ce=B.useCallback(()=>{const J=v,re=W(),_=JSON[J(1571)](re,null,2),I="data:application/json;charset=utf-8,"+encodeURIComponent(_),Y=J(1901)+Date[J(1960)]()+J(1323),X=document[J(1990)]("a");X.setAttribute(J(1412),I),X[J(1110)](J(766),Y),X.click(),z[J(452)][J(2093)](J(1127))},[W]),de=B[v(1591)](()=>{const J=v;try{const re=JSON[J(871)](O);q(re),w(!1),G(""),z.message[J(2093)](J(828))}catch{z[J(452)][J(551)](J(2151))}},[O,q]),fe=B[v(1591)](J=>{const re=v,_=new FileReader;return _[re(1841)]=I=>{const Y=re;try{const X=I[Y(603)]?.result,H=JSON.parse(X);q(H),z[Y(452)].success(Y(828)),w(!1)}catch{z[Y(452)][Y(551)](Y(1376))}},_[re(2053)](J),!1},[q]),ie=B[v(1591)](()=>W(),[W]);return B.useImperativeHandle(B.useRef?.(),()=>({getScheme:ie,exportScheme:W,importScheme:q}),[ie,W,q]),l.jsx(z[v(1917)],{locale:ms,children:l[v(1993)]("div",{className:t5[v(975)],style:{height:t?"auto":"100%",...r},children:l[v(1239)](z[v(1971)],{className:v(1950)+(t?"":v(965))+" "+(t?"":v(1015))+" "+x,children:[Z&&l[v(1239)](o5,{className:v(2162),children:[l[v(1239)](v(539),{className:v(903),children:[l[v(1993)]("div",{className:"text-xl font-bold text-blue-600",children:"组态编辑器"}),l[v(1239)](v(539),{className:v(2073),children:[T[v(2194)]," 个节点"]})]}),l[v(1239)](z.Space,{children:[o,!t&&l.jsxs(l[v(915)],{children:[l[v(1993)](z.Tooltip,{title:v(1475),children:l.jsx(z[v(1804)],{icon:l[v(1993)](ae[v(1390)],{}),onClick:ce,children:"导出"})}),l[v(1993)](z[v(1654)],{title:v(1344),children:l[v(1993)](z[v(1804)],{icon:l[v(1993)](ae[v(2058)],{}),onClick:()=>w(!0),children:"导入"})}),l.jsx(z[v(1654)],{title:"节点状态用的数据集(与事件流无关)",children:l.jsx(z.Button,{icon:l.jsx(ae.DatabaseOutlined,{}),onClick:()=>k(!0),children:v(1517)})})]})]})]}),l[v(1239)](z[v(1971)],{children:[c&&!t&&l[v(1993)](es,{width:280,className:v(842),theme:v(1859),children:l[v(1993)](sr,{onUploadSvg:g})}),l[v(1993)](r5,{className:"relative "+(t?"":"bg-gray-100"),style:t?{backgroundColor:P?.[v(451)],backgroundImage:P?.[v(1296)]!==!1?v(549):void 0,backgroundSize:20*(S?.scale||1)+v(1919)+20*(S?.[v(476)]||1)+"px"}:void 0,children:l[v(1993)](Or,{defaultTestData:A,readonly:t,backgroundImageUrl:h,initialViewportWidth:b,initialViewportHeight:M})}),d&&!t&&l[v(1993)](es,{width:360,className:v(842),theme:v(1859),children:l[v(1993)](_a,{defaultTestData:Array[v(927)](A)?A:void 0})})]}),l[v(1993)]($a,{open:C,onClose:()=>k(!1)}),l[v(1993)](z.Modal,{title:"导入组态方案",open:m,onOk:de,onCancel:()=>{w(!1),G("")},width:600,children:l.jsxs("div",{className:"space-y-4",children:[l[v(1239)](v(539),{children:[l[v(1993)]("p",{className:v(590),children:v(2202)}),l[v(1993)](v(1418),{type:v(2147),accept:v(1323),onChange:J=>{const re=v,_=J[re(603)][re(1741)]?.[0];_&&fe(_)},className:`block w-full text-sm text-gray-500
|
|
8
10
|
file:mr-4 file:py-2 file:px-4
|
|
9
11
|
file:rounded-full file:border-0
|
|
10
12
|
file:text-sm file:font-semibold
|
|
11
13
|
file:bg-blue-50 file:text-blue-700
|
|
12
|
-
hover:file:bg-blue-100`})]}),l[
|
|
14
|
+
hover:file:bg-blue-100`})]}),l[v(1993)]("div",{className:"text-center text-gray-400",children:"或"}),l[v(1239)](v(539),{children:[l[v(1993)]("p",{className:v(590),children:v(1775)}),l[v(1993)](v(1572),{value:O,onChange:J=>G(J[v(603)][v(1981)]),placeholder:v(1482),className:"w-full h-48 p-3 border border-gray-300 rounded-lg font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]})})]})})})};Me[a(1820)]=Or,Me[a(1829)]=i5,Me[a(1341)]=$a,Me[a(1558)]=Yr,Me[a(785)]=sr,Me[a(1630)]=Yx,Me.PropertyPanel=_a,Me[a(971)]=xr,Me[a(1957)]=tr,Me.createDefaultNode=ar,Me[a(1269)]=Lx,Me[a(1257)]=Mx,Me.eventBus=lt,Me[a(2135)]=or,Me.initMaterials=cr,Me.useEditorStore=He,Object[a(570)](Me,Symbol[a(2206)],{value:a(1182)})});
|