jch-config-editor 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,9 @@
1
- (function(Ne,l){const L=_0x1d61,C=Ne();for(;;)try{if(-parseInt(L(1197))/1*(parseInt(L(356))/2)+parseInt(L(1424))/3*(parseInt(L(304))/4)+parseInt(L(1940))/5+parseInt(L(1442))/6+parseInt(L(1239))/7+parseInt(L(151))/8+-parseInt(L(1916))/9===l)break;C.push(C.shift())}catch{C.push(C.shift())}})(_0x559e,444893),(function(Ne,l){const L=_0x1d61;typeof exports===L(448)&&typeof module!==L(1482)?l(exports,require(L(143)),require(L(1843)),require(L(1621)),require("@ant-design/icons"),require(L(1545)),require("immer"),require(L(467)),require(L(495)),require("react-dom")):typeof define===L(1719)&&define[L(1037)]?define([L(942),L(143),L(1843),L(1621),L(609),L(1545),L(1433),"nanoid","react-zoom-pan-pinch",L(376)],l):(Ne=typeof globalThis!==L(1482)?globalThis:Ne||self,l(Ne.ConfigEditor={},Ne[L(1818)],Ne[L(1079)],Ne[L(1621)],Ne.icons,Ne[L(1545)],Ne[L(1433)],Ne[L(467)],Ne[L(805)]))})(this,function(Ne,l,L,C,fe,Bx,ht,Me,gt){"use strict";function _0x559e(){const Ne=["BMf2AwDHDgLVBLn0ywnR","Dw5YzwDPC3rLCKv2zw50qMXVy2S","ANn4uNvUDgLTzq","iZi2mJyYnG","C3rHCNroB2rLwq","rw1WDhK","y29SB3i","y29Uy2f0","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","5Q+p5lIQ5PwW5O2U6zUg5y+V5lUL5PIViePtt04G5A+56lgH5QIH5P2/77YiuMvJB3jK77Yj5OIw5PwW57Ue44cc54Q25Ocb57Ur5A6A5zco77Ym6kgO6l6+5BYp562+5zcn5lI6","ChjLDLzPzxDWB3j0","y29UBMvJDgfIBgu","i2zHogmXnG","yxbWBhK","y3jLyxrLrwXLBwvUDa","zgf0Dw0","zwfZzq","zxzHBhvHDgvtDgf0DxnfEhbYzxnZAw9U","5lQl5lU25Rwb5l+D5A2y5OIq5yQF","qxjYB3DvCe91DgXPBMvK","57Ur5A6A54MP5PAz","zw1PDev4DgvYBMfS","5PU05O2I54MP5PAz","Dgv4Dc14BcbMB250lwjVBgqGDgv4Dc1IBhvLltyWma","C3rHCNqUEM9VBq","yxnZAwDU","zxjYB3i","CMvHy3q","zxH0zxjUywXfDMvUDeTLEq","C3bHy2u","mdaY","ChGPihnJywXLka","vw5NCM91Ce91DgXPBMvK","55s75BId566H55cg","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","5PwW5O2U5RgG","DMfSDwvZ","6BYG5Qch56E75ywL","cIaGicaGicaGicbYB3vUzgvKlwXNihrYyw5ZAxrPB24TywXSigr1CMf0Aw9UltiWmcbZzwXLy3qTBM9UzqOGicaGicaGicaG","khbYzwzLCNmTy29SB3iTC2nOzw1LoIbKyxjRkq","q29UzMLNuhjVDMLKzxi","rxHWzxjPBwvUDe91DgXPBMvK","Dg91y2GX","Aw5ZDgfUy2u","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWltq","rwrNzvjLBMrLCMvY","zxHLy3v0B3juExbL","y3jLyxrLrxzLBNq","CMvZzxrtzwXLy3rLzevSzw1LBNrZ","5lQm57U056cb6l+h5PYF","rxzLBNqGzMXVDYbLCNjVCJO","BwfYz2LU","zg9TywLU","C2HVDwXKvw5ZDwjZy3jPyMu","vgv4DefYzwe","oJPLEhq6oG","iIbPCYbPBNzHBgLKlIbqBgvHC2uGChjVDMLKzsbHig51BwjLCIbVCIbHihn0CMLUzYb3AxrOigeGDMfSAwqGDw5PDcaOChGGB3iGjsKU","Bw91C2vvCa","q2XHC3mGzxH0zw5KCYb2ywX1zsa","zMXLEc0XigGTzNvSBcbIzY1NCMf5lteWma","C2vSzwn0q2HPBgrYzw4","B25dBgLJAW","CMvHy3qTzMXVD19Fy29UBMvJDgLVBI1WyxrO","Dgv4Dc14CYb0zxH0lwDYyxKTndaWihCTnq","vg9W","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","twvZC2fNzsdLHAJLSydMJ5dNPlOGkgfUDgqP","zgvMAw5LuhjVCgvYDgLLCW","5A+85yE6iePtt04","Bw91C2u","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBwLU","yw5PBwf0zwq","mtaWjq","zxHWyw5KugfYzw50","y3vYCMvUDa","Bgv2zwW","tgLUzxm","DxnLrM9YBq","igHHBMrSzsbPzdOGiG","ugfUzwW","zMLUzefJDgL2zvn0yxr1CW","Dg9izxHtDhjPBMC","oMzVy3vZlxzPC2LIBgu","x2HHC1bHCMvUDa","5PAh5PYS5yAf5A65","C3CTCMvZAxPL","B3jPz2LUywXfDMvUDa","6lEZ6l2S55s75BId","zM9YBwf0uMDI","C21VB3rOC3rLCa","CMvKDwnL","tK9erv9eruXfveu","yMCTz3jHEs0Xmda","566H55cg55s75BIdlI4U","sg9YAxPVBNrHBa","u2LTCgXLqMv6AwvYrwrNzq","Bw91C2vmzwf2zq","5y+V6lcd5Pw05AsN5Bcp","6k+36l6t5ywLjhTSywjLBh0","BgLUzwfY","mtiWnJi3odfAu0z0wgO","Aw1N","zMLYC3rfBgvTzw50q2HPBgq","uMLNAhrpDxrSAw5Lza","vMvYDgLJywXbBgLNBLrVCe91DgXPBMvK","yM9YzgvY","BxqTncbMBgv4igP1C3rPzNKTzw5K","sw1Hz2u","6BYG5Qch5OYj5lIl","vgLTzw91DcbOyxmGB2nJDxjYzwq","Dw5ZDwjZy3jPyMu","ywn0AxzLu2LIBgLUz0DYB3vWswq","57Ut5P2F5PYi5lU9","6k+35AgR5yAz5zcn56EW","zw5HyMXLrxzLBNrgBg93","B3jPzw50","BgLI","i2iXyJfInW","5BYa5AEl5PE26zE0","C3rHDhvZ","x2fJDgL2zq","yxv0BW","vgHLihjLC3vSDcbVzIbNzxrtBMfWC2HVDcbZAg91BgqGyMuGy2fJAgvKihrVigf2B2LKigfUigLUzMLUAxrLigXVB3a","C2vSzwn0Aw9U","mJiZmdqXmeTVrKXRrG","562j5Q+u57YP5Ps+6iQc54k555Qe5A696AUy","zxHW","rg90CW","BgLUzurYyxDPBMC","qwXPz25mzwz0t3v0BgLUzwq","CMvTB3zL","zxzLCNK","BwiTmG","Aw5ZzxqOmtaWjsK","zgf0yvjLCxvLC3q","u3rYAwn0","Cg93","B3bLCMf0B3i","5lIk5RI46l+E57Q/iokgKIdMNkZLNzCGyxjNCYdPLk7LKi0","ChvZAa","zM9YrwfJAa","C2LIBgLUz0DYB3vWCW","y29Kzq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iG","yM91BMreyxrHC2v0qMLUzfzHBhvL","6iom5PMV6iMY","zML0vMLLD09WDgLVBNm","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","C2v0twLUwM9VBq","yMLUzenVzgvZ","zxHLy3v0zuv2zw50rMXVDW","zxHPDa","DxnLq2fSBgjHy2S","BM9YBwfS","zxjYB3iWmdK","y29UDhjVBerPCMvJDgLVBG","57Ur5A6A5PwW5O2U6zUg","5lQl5lU25Rwb","BgLZDgvUzxi","ltuSltqGmcWWic01ldq","zgf0ys1Oyw5KBgvPza","5BEY5OMR5O+p","5zU+54Mh5zcn56EW","y29UzMLN","yNvPBhrPBG","CMvHy3qVANn4lxj1BNrPBwu","x3rOCM93swzdBg9Zzwq","Cg9PBNrLCI1LDMvUDhmTyxv0BW","5PAW6iQc54k5","Cgf0DgvYBI0","C2fTCgXLiow/HEMHU+AyRYbku09oiowVUEIXOEAiLUAvSoE7Ha","6l+E57UT5A6E57Q/","C2v0twf4wM9VBq","mty4nteWngfTywfoEa","57Ue5yAf6l+y5RkH5PYj55s75BId77Ym5lUo5lIk5PA56ycj5OUP5yQG5ywL","5Rc05BMZ5yIg5BId","B25nB3zLu3rHCNq","y2HYB21L","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlwWGyM9YzgvYlwDYyxKTmJaW","y29UBMvJDe9Uq2XPy2S","C3bHBG","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlte","mxb4ihnVBgLKicnKowq5zdK","qxjYB3DeB3DUt3v0BgLUzwq","mtjWEcaW","mdaX","CMvZzxq","Dg91y2HTB3zL","77Yi5y+V6ycj77Yj","x19LC01VzhvSzq","y2XLyxjbBgW","6BUy6k6K54Q25Ocb","6iQc54k554Q25Ocb55sO55Qe5PwW5O2U6zUg77Yi5lIo5lQl5lU25Rwb5PEG5ywZ77Yj","zgvSzxrHyMXL","w2rHDgeTAgfUzgXLpsjZDgfYDcjD","5lIk5lYG6zsz6k+V","y2XVC2vKlq","Dg91y2HLCW","ue9tsvrjvKvFsu5gsu5jvfK","zM9UDc1TzwrPDw0GDgv4Dc1ZBq","cIaG","sgfUzgXLoIboBYbUB2rLigLKigzVDw5KlIbnywTLihn1CMuGDg8GB25SEsb1C2uGysbiyw5KBguGAw5ZAwrLigeGy3vZDg9Tie5VzguU","Aw50zxjYDxb0","CMvM","BwiTmW","54k55yE75yI35PAW","C2nHBguO","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","y3vYCMvUDenHBNzHC0LK","Aw52B2TLuNvUDgLTzuHHBMrSzxi","yxjYB3C","zwrNzq","yxjPyuXPDMvnzxnZywDL","6k+36ycj5OUP5A2J5BQM","DhjPz2DLCK5Vzgu","ig5VDcbMB3vUzc4GugXLyxnLig1HA2uGC3vYzsb0Agf0ihbHCMvUDcbUB2rLCYbHCMuGAw4GzNjVBNqGB2yGDgHLAxiGy2HPBgqGBM9KzxmGAw4GDgHLig5VzgvZigfYCMf5lG","yw4GAw52ywXPzcbVyMPLy3q","B25oB2rLq2XPy2S","C3bHy2uTEs00","C3rYB2TLv2LKDgG","EKLUzgv4tw9Kzq","6ycj5OUP6k+L5A2x5Q615A+55BQu55Qe5yw35l2t5yc85lUL5A6A5l2n5PwW5O2U6Ag5","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","y29WEq","y2fUDMfZ","57ky6ls055s75BIdiePtt04G5yAf5A65lI4U","zwzMzwn0qwXSB3DLza","zMXLEc1ZDgfYDa","qxjYB3DvCa","z2vVBwv0CMLJuhjLy2LZAw9U","BwvZC2fNzq","5B2t5yMn546V5Akd5lIn5PsV5OYb55s75BId5yIh5O2I","C2v0uhjVDg90ExbLt2y","6kEM5y+r5PA55BYp","DgL0Bgu","B3DUzxjeB2n1BwvUDa","DxnLtgf5B3v0rwzMzwn0","DhjHBNnSyxrLwcGTntaLkq","5zcm57QN5ywZ57o7","AxrLCMf0B3i","DMfSDwvpzG","u2LTCgXLqMv6AwvY","C3r5BgvuD2vLBG","DgHYB3C","x+wjR+ACRa","C2vSzwn0ywjSzq","C3LZDgvT","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","DMfSAwq","i2vImMy5nG","CgfYzw50tg9VA3vW","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","5A+g6zUg54k554Q2","5A2x5Q615PwW","C3vIBwL0","B250B3vJAhn0yxj0","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","DxnLCLnLBgvJDgLVBKfJDgL2zq","y2fUy2vS","iZaWmdaWma","zhvYyxrPB24","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","CgWTmsbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Ymda","x2LK","ChjLDG","mcaWidmYidu","Dg9mB3DLCKnHC2u","BM9Uzq","twLUAu1HCa","5lIk5lIQ5PYiicJNV7VPOBxKUiRPLk4P","DMfSDwvgB250u2L6zq","C2nHBgvfEhrLBNq","C2vSzwn0zwroB2rLswrZ","DMfSDwvgB250v2vPz2H0","5AgR5ywf6AkC6iMY77Yi5z+65PYS5B2I54Q277Yj","C29YDa","z2v0uhjVCgvYDhLwywX1zq","DMfSDwvtB3vYy2vdB2rL","B3b0Aw9UCW","C2v0tM9Kzuv4DgvUDa","yMfJA2DYB3vUzeLTywDL","CM9VDa","rg93BMXVywrpDxrSAw5Lza","imk3ia","6ycj5OUP5PYi5lU9","5yIG6zMK6ycj5lITicHezwXLDguP","jhTSywjLBh3MNidLPjOKE21HEh3KUkRLRzFNRky","y2XHC3noyw1L","DgfNtMfTzq","yM9YzgvYq29SB3i","y29UDgvUDgvKAxrHyMXL","x2zPBMfSAxPLCNm","Dgv4Dc1ZBsbMB250lw1LzgL1Bq","jhTSywjLBh3LV4xPOBVNRyNKUO4KE2XLBN0","y29UDgv4De1LBNu","C3rHDhvZtgLZDa","57Ut5P2F5BM05lU9","zgLTzw5ZAw9UCW","zxjYB3iWmdu","Bwf0zxjPywW","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","uhjVDMLKzwqGB2jQzwn0igrVzxmGBM90ignVCNjLy3rSEsbPBxbSzw1LBNqGu3LTyM9SlM9IC2vYDMfIBgu","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","5lIl5lIa5BM0icHdB250CM9S6zsU5yQG5y+Z5PA55zcr6zsUkq","CMvHy3qTzMXVD19FBwLUAw1HCc1ZDMC","5OUw5OU96lcd5Pw06lw354k5","y2XPy2TeAxn0yw5Jzq","mdaZ","44cn77YA5lIk5RI4","55s75BId5A+85ywL5OIq5yQF77Yb","BM9KzvG","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","y3jLyxrLrxzLBNrgBg93ugLWzwXPBMu","A2v5Dxa","54Q25Ocb5zcn56EW","qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4","5Asw6yoO5lQl5lU25Qch6k+g","B25nB3zL","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","yMX1zq","Bw91C2veB3DU","zxH0zxjUywXiyw5KBgvYs2v5","6k+35AgR5yAz5OMN6kgm5lUJ56cb","BM9KzxndB25Uzwn0ywjSzq","zxHLy3v0zuzSB3DoB2rLCW","u2f2zu91DgXPBMvK","nhrOELHWuW","i2q5zdLKoq","zw5K","BM9YBwfSu3r5Bgu","6Ag65PE26zki5PEl6l2S6kEs5BQM77Yi5BQM77Yj","tsaYmcaWieWGmcaWidaGmJa","BMv3wa","5PEG54Q25Ocb","zMXVB3i","y2fSBgjHy2SGAxmGBM90igeGzNvUy3rPB24","vxbSB2fKignHBMnLBgXLzcbVCIbMywLSzwq6","Bwf0CML4","6Ake6kEi5QIH5BYp","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","AxnfzgL0Aw5NrxzLBNrgBg93","qebVyNnLCNzHyMXL","y2XPzw50sgvPz2H0","Aw52ywXPzcbJywXSyMfJAZOG","y2vUDgvYwa","zg9TtM9Kzq","tw9KywW","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbVDMvYzMXVDY1OAwrKzw4","jhTSywjLBh3POBVKUlOKE2XLBN3KUkRLRzFNRky","Dg9W","5Asw6yoO5PA55Rov5Qch6k+g","6Ag75lI6jhTSzw595lIQjhTSywjLBh0","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/kvXZkG","Aw5WDxrZ","x2vUDgvY","y2HLy2TLza","8j+sOsdMJ5dNPlRVVjRMI5BMI73NIANMLPNLIldNLlVLUipLIjVLU7ROIOlNGRNVViZNGRNLH7VNUR/MNAhNIANMLPNOV5VLHAxNU5JLIlBMQkhLVi8","B25SEvjLBMrLCLzPC2LIBgvfBgvTzw50CW","C25HCfrVr3jPza","C3vWChjLC3nLza","yNvPBgrnzxjNzwreyxrHuMvJB3jK","BMv3wq","57Ut5P2F5PE26zE0","Dgv4Dc14CW","ywjZB2X1DguGyM90Dg9TltqGCMLNAhqTncb6lteWigjNlxDOAxrLihjVDw5KzwqTBgCGC2HHzg93lwXNihaTmG","jhbYzxyU","zw1PDa","5yc85Qc35BYp","z3jLzw4","54k55yE76zMn5BQp","CMvSyxrPDMu","zgvZyW","zxjYB3iWmtu","yM9YzgvYlxqGyM9YzgvYlwDYyxKTmJaWig10lteGChqTmq","57Ui54k5ifK","ksbZy2fSzvKO","x+EkTUAaGq","CMvZAxPL","mtu1mZHcELbYAee","57Q/5P2H5BgE5OcN","6k+36ycj5OUP55UU5Qch55s75BId","zgjSy2XPy2SUEM9VBq","DY1MDwXSigGTzNvSBcbMBgv4igzSzxGTy29SigP1C3rPzNKTy2vUDgvYigDHCc0X","Bw92zwq","C2v0q2vUDgvY","zMX1C2G","z2v0rgf0yq","zwrNzxm","Aw5PDe1HDgvYAwfSCW","57Q/5P2H57Uy5yI2","5BYa5AEl5PEL5PYF","CMvHy3qTzMXVD19FzwrNzxvWzgf0zxi","mdeW","rgvSzxrLt3v0BgLUzwq","5z+656ga5B2I54Q2","5PQc5PEG5PwW5O2U","5OMN6kgm5PA55BYp","Bwf0zxjPywWTChjLDMLLDYb3lteYigGTmtiGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Jzw50zxiGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwDYyxKTmJaWia","CMvHy3qTzg9T","5RE75yQG5lQl5lU25Rwb","576K57UexW","zNjVBuHHBMrSzq","ru1qvfK","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","y29UDgv4Dg1LBNu","BMv4DfnPyMXPBMC","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","CMvHy3qTzMXVD19FzwrNzs10zxH0D3jHChbLCG","yMfJA2DYB3vUza","A2v5","Cg9SEwXPBMu","vgfN","6ycj5OUP6kEM5y+r5PA55BYp77Yire9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO77Yj","B2zMC2v0","zg90CW","zw5KlNn0EwXLlG","DxnLzfjPz2H0tw91C2vcDxr0B24","twfJ","twLUAsbnyxa","q29UC3vTzxi","q29WEu91DgXPBMvK","sxqGC2vLBxmGDgHHDcb5B3uGAgf2zw4NDcbSB2fKzwqGDgHLihn0EwXLCY4GugXLyxnLigLTCg9YDcaNqhH5zMXVDY8","Bwf0y2HLCW","ywjZB2X1DguGyM90Dg9TltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","lwzSB3DFx25Vzgu","zxH0zw50","Cg9W","y29UzMLNrwrPDg9Y","CMvHy3qTzMXVD19Fy29UBMvJDgLVBG","BwLU","zML0vMLLDW","zxjYB3iWmte","zhjHDW","BM9Kzq","x19KzwzHDwX0x18","DY1MDwXSia","5lYy5ywi5lUo57Ur5A6A5PwW5O2U6iEQ5yQO6i635y+w77Ym5lMF5y+V5OMl5yQO6l6t5ywL","y2fSBgjHy2S","CMvHy3qTzMXVD19FzwrNzxm","BMfTzxnWywnLvvjj","5yAf572U5yQO5l2C","ChjLCgfYzuv2zw50qxjNCW","CgfUwM9VBq","vgfIBgu","DxnLCKfNzw50","ig5VDcbMB3vUza","tM9KzvjLBMrLCMvY","BM9Kzxm","C2nHBgvyka","6iom5PMV6AkC6iMY","zgv2AwnL","CgHHBNrVBq","ioADOEwfPEI+UsdIHPdJGiW","yxnpyNnLCNzHyMXL","CM90yxrLka","AxnszxnPEMfIBgu","zgvMyxvSDhm","zM9UDc1Zzw1PyM9Szcb0zxH0lwDYyxKTnZaW","BwfUDwfS","lNjLywn0lwzSB3C","5Asw6yoO5PA55Rov","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","C3bSAxq","EM9VBq","C2nHBgu","zwrNzuXVB2T1Ca","B25gAw5HBgL6zq","zg9JDw1LBNq","lMfUDc1ZzwXLy3qTzhjVCgrVD24","DMLLD3bVCNq","B2jQzwn0","DhjHBNnSyxrLwa","BMuTCMvZAxPL","z3jPzcbNCMLKlwnVBhmTmIbNyxaTmG","Dg91y2HLBMq","B25oB2rLtw91C2vfBNrLCG","C3vJy2vZCW","5y+V5O6s5BQp","EvnUyxbWzwq","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","B25nB3zLrw5K","D2HLzwXezwX0yq","sgfUzgXL","BgvUz3rO","BM9KzurYywDuAhjLC2HVBgq","qMv6AwvY","yM90Dg9T","x2jSyw5R","yM91BMreyxrHC2v0swq","BMfUB2LK","zw5HyMXL","D2HLzwW","C3rHCNry","57Yw6l6roIa","57Ue5Ocb57Yw6l6r5zMO","rxnJyxbL","yxjNCY5WCMv2ma","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","DY1MDwXSigGTndGGCc0ZigjVCMrLCIbIB3jKzxiTz3jHEs0ZmdaGCM91BMrLzc1SzYbMB250lw1VBM8GDgv4Dc1ZBsbYzxnPEMuTBM9UzsbMB2n1CZPVDxrSAw5Llw5VBMuGzM9JDxm6CMLUzY0YigzVy3vZoNjPBMCTyMX1zs01mda","57Q/5A6977Yi5yop57sG77Yj","5A+85ywL5OIq5yQF77Yb","AxnwywXPzenVBM5Ly3rPB24","yM9YzgvYlwjVEa","C3rHCNrz","iw1Ylta","Bw9Kzq","Ahr0Chm6lY9YzwfJDgzSB3CUzgv2","DxnLCLnWywnLt25vC2u","DMvYDgLJywW","BM93AgvLBa","5PYQ6ywn572U55UU5Qch55s75BIdieLe","yMCTD2HPDguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWihjVDw5KzwqTBgCGCc0Zig1PBI13lvSXodbWEf0GC2HHzg93lw1K","55s75BIdide","yxv0B1bHBK9UtM9KzuzVy3vZ","y3vYCMvUDe9IC2vYDMvYCW","z3jHyG","6ycj5OUP5BM05lU9","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","zM9YD2fYzfjLzG","zMXLEcbNyxaTna","CgfNzvK","AxntzwXLy3rHyMXL","5yIG6zMK5PAh5lU2","xcKK","x19UzxDFxW","y29UDgfPBNm","5PAW5BU65PwW5O2U6zUg","DgHYB3DUrxjYB3i","5PI+56s6572r5Qc8","DxjSka","Aw5Uzxjive1m","Aw5PDgLHBeHLAwDODa","yxjPyuXHyMvSq29UzMLN","6k+36ycj5OUP6iQc54k5","DMLLD3bVCNrjBML0AwfSAxPLza","Dgv4Da","Bw0VCW","BgfIzwXcz1bHzgrPBMC","y3jPC3bfzgDLCW","5Rwl6k+v5PwW5O2UicHku09okq","xNjNyLWO","BM9VCgvUzxiGBM9YzwzLCNjLCG","BgfZDeLUzgv4","q29UDhjVBcbqyw5LBa","AgvPz2H0","5RE75yQG54Q25Ocb","mda5","x2DYB3vWCW","C2v0qxr0CMLIDxrL","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVVjRNLlhMLBdMJA7MSAaGC2fTCgXL77Yi6iUL5BEY57Ur5A6A77Yj5lIo55s75BId6l+q6kgm5PE25PwW5O2U5zci5BM277YB5Rwl54k55PwW57Ue5lYA5OYjihbHCMfTC0nVzguG5yAz5ywLigrHDghJGilPOBSGCMv0DxjUihrYDwuVzMfSC2xJGii","CMv0DxjUihrYDwu7","ywXS","zxHLy3v0zvnPBMDSzuzSB3DoB2rL","rgf0ywjHC2vpDxrSAw5Lza","DgfWCW","C3rHCNrZv2L0Aa","AgfZqxr0CMLIDxrL","yMCTyMX1zs01mcbYAw5NltiGCMLUzY1IBhvLltqWma","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvK","EKLUzgv4","5PQc5PEG5zcm57QN5ywZ57o777Ym54k55yE744cm5PAW5BU644cn5BYa5AEl","u3rYywLNAhrfzgDLsw50zxjUywW","C29Tzq","5lIl5lIQ5PYiicJNV7VPOBxKUiVPLk4P","tKvhqvrjvKvFsu5gsu5jvfK","zxzLBNrcDxm","B25dB25Uzwn0","yxjNCW","B25oB2rLrhjHzW","5lIl5lIa5Q2L","BgvMDa","zMXLEc0Xig1PBI13lta","yMLUze5VzgvfDMvUDa","BgLUzvDLAwDODa","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","DxnLrwzMzwn0","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","CM9VDfbHCMvUDeLUzgv4","AgLKzgvU","zg93BG","DgvZDa","vgfICW","BM9KzxngB2n1C2fIBgu","5AAc77YA55s15PY65Rwl54k56zUg","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Ilti","6k+35Rgc5Qch6k+g","Aw5SAw5LlwzSzxG","yMCTz3jHEs0XmdaGChGTmsbYB3vUzgvK","zgf0ys1Oyw5KBgvWB3m","zxzLBNrgBg93","AxneCMf3Aw5N","AgfUzgXLqM91BMrZ","mca0ChG","572U5lQo6Ag25Bgc","zgvSyxK","y2fSBa","ufjpuevsvfLFq0HbtKDf","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlxiGyM9YzgvYlwDYyxKTmJaW","x190CMfUC2L0Aw9U","yM91BMrHCMLLCW","Dw5VyNnLCNzL","zgvSzxrL","5OMa5PYj57Ur5A6A5Q2K5PwW5O2U6zUg55Qe54Q25Ocb5Bcg6iEQ5yQO6kEJ6zMK57Ur5A6A44cc","y2XVC2vK","zgfYAW","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","ANn4CW","5y+V6ycj77YA57Ur5A6A5zco6kgO6l6+5BYp5lIT55QeigrHDgeG5lYA5ywi5zci5BM26k+L5PwW5O2U6zUg55QeihnHBxbSzE+8JowgJEwqIow5TUEuU+w4G+s8OowfPEEAHoI/KoIHJoAxTUAvSoAnRUoaGUs4JEE7KEwUMUAxTIbKyxrHios7HEADPEIhQUI/KoIHJoAxTUoaGG","C3rHCNrbBMDSzq","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","54MP5PAz5BgE5OcN","zw5Kug9PBNq","BM93","rgL2AwrLCG","rNvSBa","5zcr5yMniduG6Ag1","DhjHBNnSyxrLka","C3rYAw5NAwz5","CMvHy3qTzMXVD19FBwLUAw1HCc1UB2rL","BMv4Da","zNjVBq","CMvZB2X2zuzSB3DfDMvUDejSB2nR","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWma","zxjYB3iWmdG","y29UC3rYDwn0B3i","ywjZB2X1DguGyM90Dg9TltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","y2vUDgvYwq","DhjHBNnPDgLVBIbUB3qGzM91BMq","mdeX","yMLUza","B3bZ","qgfUDc1KzxnPz24VAwnVBNm","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","rNjHz21LBNq","y2XVBMvfBgvTzw50","C2L6zq","zNjLzq","cIaGicaGicaGica","xMHZBfWO","y2XLyxjjBNrLCNzHBa","54Q25OcbicH0ExbLkq","DxnLuMvM","Aw50zxjUywXZ","y2vPBa","u0vmrunu","5PAh5lU25Qc85BYp6zsz6k+V","CgfYyw1Zq29Kzq","lM5VA2v5","C2nHBgvy","iIbKB2vZig5VDcbLEgLZDcWGAxqGBwf5igHHDMuGyMvLBIbYzw1VDMvKlIbuAgLZignHBIbOyxbWzw4GD2HLBIbHig5VzguGAxmGzgvSzxrLzcbIzwzVCMuGDgHLicjVBK5VzgvdBgLJAYiGAgfUzgXLCIbPCYbJywXSzwqU","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","zM9UDc1TzwrPDw0GDgv4Dc1HBwjLCI05ntaGBwiTmG","Bwf4","zMXLEc0XigjVCMrLCIbIB3jKzxiTz3jHEs0YmdaGCM91BMrLzcbWlti","Ac1MDwXSigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTy2vUDgvYigjNlxDOAxrLigjVCMrLCI1SigjVCMrLCI1NCMf5ltiWma","5PAh5lU25lIk5lYG5lIT","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","zw51BwvYywjSzq","C2v0rMLLBgrZvMfSDwu","yMfZzvzHBa","AgfZrxjYB3i","zgLZCgf0y2HfDMvUDa","y2fUy2vSywjSzq","q29SDw1UsgvPz2H0t3v0BgLUzwq","u3bHy2u","BwvYz2vsDw50Aw1LsgfUzgXLCNm","CMvHy3qTzMXVD19Fyxr0CMLIDxrPB24","x196B29TAw5N","CMvHy3qTzMXVD19FBM9Kzs0","AxntzwXLy3rLza","CMvZDgfYDa","CMvHy3qTzMXVD19FC2vSzwn0Aw9UihjLywn0lwzSB3DFx2nVBNrHAw5LCG","x2v4zwn1Dgu","tw96vxnLCLnLBgvJDa","y2XPy2S","Bwf4wM9VBq","Dg9qCMLTAxrPDMu","yxr0CLr3zwvU","EGOGicaGicaGie0","tw9KDwXL","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","5y+n6ycj5B2t6Ag1","6k+36ycj5OUP5PEL5PYF","zgf0yvrYyw5ZzMvY","D2HLzwWUEM9VBq","BNvTyMvY","5BEY56Ab55sO","yMCTz3jHEs0Ymda","Cc02","rg93BLnXDwfYzu91DgXPBMvK","vevyva","t3b0Aw9U","Bg9VC2u","x2vYCM9Y","u1fsvdi","Dgv4Dc1NCMf5ltqWmcbOB3zLCJP0zxH0lxjLzc01mdaGy3vYC29YlxbVAw50zxi","CgfUzurYywDNAw5N","C2vSzwn0zwrfzgDLCW","zxzLBNrcBg9JA3m","6ycj5OUP5PE26zE0","x19VBG","Cc0ZigjNlwjSDwuTntaGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKlwXNig1Iltq","5lUo57Ue5lIT56E76zMK","tM9KzsbVBKnSAwnRoG","6k+35ywi57Ur5A6A5PwW5O2U6zUg","ywjZB2X1DguGAw5ZzxqTmcbWB2LUDgvYlwv2zw50CY1UB25L","Aw5ZDgfUDa","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","CMvHy3qTzMXVD19FzwrNzs10zxH0","mda0","zg9Uzq","y3vYC29YlxbVAw50zxi","Dg9WlwXLzNq","zwrNzvf1zxvL","5yAf6igu6isA5PYS","C2v0sw50zxj2ywW","77YA5lI65Q+p5lIQ5A2q6iQc54k56ywn572U5AsA5lIQ54Q25Ocb5zkm57Ur5A6A","C3rHy2S","yxjNCY5WCMv2","5lIn5zcm5PA55BYp5A+55BQu5lIl5PA55lIn5zcm6ywn572U6Ag5","zxHLy3v0Aw9Uugf0Aa","DMfSDwu","rMXVD1jLBMrLCMvY","BwvHC3vYzwq","BMf0AxzLrxzLBNq","sw5WDxq","6ycj5OUP57Ur5A6A5yc8","zhjHz3n0yxj0lMrYywC","q29SBgfWC2u","xhmQkfSRlv0/xgqRkvXZkG","5l6l5AAc77YA5l+D5A2y5OIq5yQFioAiLIdNU5pMNPZVVjP7E3bYzxz9Fq","CMvHy3qTzMXVDW","Dg9tDhjPBMDuywC","CMvSzwfZzuXVy2S","zwrNzxngB2n1C2fIBgu","iIbYEd0ImJaIlZ48l3n2zZ4","yNvPBhrPBKnVBMzPzW","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihCTzNvSBcbWCI00","Bg9JywXLq29TCgfYzq","5PEG562B6ycj6Ag5","C2vSzwn0","Dg9qB3nPDgLVBG","wM9VBsbpDxq","jhTSywjLBh3KUi3OG73OVAZMJAlKUlRML6xMNj8","zM9YBwf0shnS","yxn5BMnjDgvYyxrVCG","sxqGC2vLBxmGDgHHDcb5B3uGyxjLihrYEwLUzYb0BYbKCMfNigeGBM9Kzsb0Agf0igLZig5VDcbPBML0AwfSAxPLzc4GugXLyxnLihvZzsbVBK5VzgvZq2HHBMDLigfZigv4CgXHAw5LzcbPBIb0AguGzg9JCY4","x2nHBgW","DgLTzq","CMvHy3qTzMXVD19FzwrNzq","twfYA2vYrgvMAw5PDgLVBNm","DY1MDwXSigGTzNvSBa","yw55","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","z2v0vMLLD3bVCNq","6ycj5OUP5PAW54MP5PAz","lNn2zW","6yca5yE65Rwp6kEi","ChjVzhvJzq","D2LKDgG","wM9VBuLUt3v0BgLUzwq","tgvMDe91DgXPBMvK","5yIG6zMK5zco5PEG5Rov5OgI5Asn77Ym5PIV5zcM57UN57UT77YF","C2fTCgXL","zxjYB3jZ","5PQc5PEG5PwW5O2U6zUg","lwnHBNzHCY0","Cg9ZAxrPB25byNnVBhv0zq","zwXLDMf0zuvKz2vZt25tzwXLy3q","CNvUDgLTzuHHBMrSzxjZ","zgf0ytPPBwfNzs9ZDMCREg1S","vhLWB2DYyxbOEq","ChGS","57Ur5A6A6iQc54k5","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","EfnUyxbWzwq","CMvHy3qTzMXVD19FBM9Kzq","Cgf0Aa","yxbWBgLJyxrPB24","zgf0ys4","C2v0vMLLD3bVCNq","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","6k+35Rgc5PwW5O2U","C2nOzwr1Bgu","zgf0yq","zhjHz0HHBMrSzq","B25oB2rLtw91C2vnB3zL","Dgv4Dc14CYbTyI0X","57Ut5P2F5zgO","y2XLyxi","5lQl5lU25Rwb5yIB5BU65OIq5yQF","Bw91C2v1Cc5KCMfN","Dgv4Dc1ZBsb0zxH0lwDYyxKTnZaW","tgvMDa","BgfIzwW","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","zgvMyxvSDfzPzxC","B25oB2rLrhjHz1n0B3a","Bw91C2vKB3DU","5lIl5lIa5lIw57QQ","CMDIysGYncWXndqSmJu1ldaUmdGP","Bw92zq","DMfSDwvdB2XVCG","C3zNigXPBMu","Aw1Hz2uVkG","igrVzxmGBM90igv4Axn0lG","Aw52zxj0","AxnwywXPza","u3rLCa","vgHLig9SzcbLzgDLihDPDgGGAwq9","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","lteWic0XmcaYmcaYma","BM9KzxntzwXLy3rPB25by3rPDMu","CMvZzxrgAwvSzhm","5zcm57QN5ywZ57o7ia","y29UDgfPBG","CM90yxrL","BwiTna","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","5zYO5lIl5PA556YSia","rwrNzvrLEhq","C3bHy2uTEs0Z","5lIk5lYG5zU+54Mh","C3bSAwnL","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","Cg9PBNrLCI1LDMvUDhmTBM9Uzq","uMvHy3rAB29TugfUugLUy2G","AgfZ","5PwW5O2U6k+35Rgc","C3vIC2nYAxb0Aw9UCW","y2XVC2vZDa","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","C3vIC2nYAwjL","6l6t5ywL5Qch562+5PAh5PYS","5y2v5l2n77Yi5AAcWRbd44cbjEoaGu1qyEETIE+8Iq","6ycp5PIo5BQM","yMvMB3jLC3rHCNq","C2v0vhjHBNnSyxrLrxH0zw50","ltiWChG","zxzLBNrMBg93","rNjLzq","y29UBMvJDgLVBKXVB2T1Ca","uMvHy3qGrMXVDW","z2v0tM9Kzuv2zw50qMLUzgLUz3m","Bwv0yq","6iEQ5A6A5lMj","BgfIzwXtDhLSzq","6k+L5PwW5O2U6zUg55QeihnHBxbSzsdKUlRMLBdNU4tVViZOR7FPGiNMI6NNLkJKUO7LJlNPHy3MLBdMJA7POBNNMOtLRzFMRRu","y29UC29SAwrHDgu","Aw5PDgLHBfrLyxjKB3DU","B25oB2rLrg91yMXLq2XPy2S","B2jQzwn0ihvUC3vIC2nYAwjLza","z2v0q29TChv0zwrtDhLSzq","mcaWidmYidmW","vxbSB2fK","zgvSDgfy","AgfZt3DUuhjVCgvYDhK","zMXLEa","AhnSka","C3vIAMvJDa","B25SB2fK","BM9KzunSAwnRrgLZDgfUy2u","x2fKzfbHCMvUDa","y29UBMvJDgLVBG","yxjNCY5WCMv2mq","5PYQ55+L57g75z6l","5PYQ5RoO5yAmigrHDgfszxf1zxn0iowKHoEqHUwzQdOG","BM9Kzvr5Cgu","54k555s757Q/77Yi5lIT5B+d57Q/77Yj","vMvYDgLJywW","q2XVC2vpDxrSAw5Lza","C3LUy1zPzxDWB3j0","Bw91C2vTB3zLlNPVB20","5lIl5lIa5BM05lUJ","yxv0B1bHBLnWzwvK","56YSideG6kgm5A+55BQu56YSideG5P2H5OYh5zcr5PYS5z2x55Qe6l+E57Q/77Ym56YSidiG6kgm5A+55BQu56YSidiG5P2H4OcM4OcM77Yi6Ag65BQp5lIo55s75BId6l+E57Q/5RE75yQG6Ag65BQp5lIa6iE077Ym5ywi6l+E5zYO5yMn77Yj44cc5lIn5RE75yQG6kgm5PE277YA5y2v5ywL6l6555sO","q3jVC3m","5PAh5PYS5Qch562+","CMvSyxrPDMuG","zM9UDc1TzwrPDw0","A2v5CW","q291BgrUj3qGy3jLyxrLigvKz2uGzM9Yia","AhLWB3q","Dg91y2HTB3zLlNPVB20","5ywO6ycj5B2t6Ag1","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi4mci+pgvSBgLWC2uGy3G9iJmWiIbJEt0ImtaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJXYzwn0ihG9iJuIihK9iJeWiIb3Awr0Ad0IntaIigHLAwDODd0InJaIigzPBgW9iInMmgyWzJaIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+pgvSBgLWC2uGy3G9iJmWiIbJEt0InZaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJWVC3zNpG","CgfUu2nYB2XSvgLTzw91Da","C3jJ","DxnLrgvIDwDwywX1zq","w1jLywn0iezSB3DDoIa","zxzLBNrsB290CW","rxzLBNqGzMXVDYbLEgvJDxrPB24GzxjYB3i6","C2v0u2nHBgvfEhrLBNq","Dg91y2HTB3zLlMrYywC","su1br0u","CgvUzgLUzW","BM9KzuLK","5PQc5PEG5PwW5O2U6zUg77Ym6k+354k55yE744cm5PAW5BU644cn","55s75BId6ywn572U","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","6yEn5zg95zcn","BM9qyw5dBgfZC05HBwu","CxvLCNLtzwXLy3rVCG","5BYa5AEl5A2J5BQM","5y+c5PwW5zcn77Ym5AAciee","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWlti","q29UBMvJDgLVBKXPBMu","y2f0y2G","jhTSywjLBh3MNidLSi/LGlZKUlOKE21PBN0","uMLNAhq","z3jVDxa","C2nHBgvz","5yIG6zMK6k+L5PwW5O2U6zUg77YF","zgvZDhjVEq","DhLWzq","zw5KC1DPDgG","x3bHCMvUDhm","tufurvjjquXFu1rbvfvtx0niqu5hrq","6ycj5OUP57Ur5A6A5A2x5Q61","C2nHBgvcEq","ksbZy2fSzsG","B2zMC2v0v2LKDgG","Aw5SAw5LlwjSB2nR","CMvZAxPLrgLYzwn0Aw9U","yMfJAW","tgLUzq","qM90Dg9T","BgfIzwXdB2XVCG","Aw52zxj0wq","6iQc54k55zcn56EW","C3rHCNrsB3rHDgu","yMfJA2DYB3vUzenVBg9Y","55s75BId5A+85yE65OIq5yQF77Yb","y29UDgvUDa","y2XPzw50vg9W","Cg9PBNrLCG","C2LU","C3rHCNq","y2HLy2TfCxvHBgL0Eq","C3rYB2TL","5A+85ywL55s75BId","qLvuve9o","y3vYC29YlwDYywi","Bg9N","DgHHDa","DhjHBNnWyxjLBNqSicnMzMySihvYBcGUlI4P","CMfUz2u","y29UDhjVBhmUyxjPyuXHyMvS","C2vUDa","zhjHzW","CMvXDwvZDefUAw1HDgLVBKzYyw1L","CMvHy3qTzMXVD19Fy29UBMvJDgLVBMXPBMuGCMvHy3qTzMXVD19Fy29UDgfPBMvY","5lIl6l295PAh5lU2","5zcr5yMnidmG6Ag1","rwrNzsbMCM9Tia","zgf0yvbVB2W","DxnLu3LUy0v4DgvYBMfSu3rVCMvxAxrOu2vSzwn0B3i","5B2t5yMn54Q25OcboG","CMvTB3zLqxr0CMLIDxrL","q29UDhjVBa","y2fUDMfZswrZ","55wz56M65l2/55sOigfUDgqG6BUy6k6K77YB5AgRidaG6kgO56s65lIn6iEQ5yQO5ywZ6zET","qxjYB3Dmzwz0","zxHWB3j0CW","CMvZB2X2zq","kgrHDgePid0+igjVB2XLyw4","y3jLyxrL","CMvHy3qTzMXVD19FzwrNzs1PBNrLCMfJDgLVBG","y2LYy2XL","5PYa5AsAjhTTyxH95lIQjhTSywjLBh0","CM90yxrLkdKWzgvNkq","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","sLnptIdMOlZLVi/PLjNOR6/VViZOR7FMO4dMN6xOVPpLHAu","AwnVBG","tK9erv9truXfq1q","CMvHzefZvgv4Da","5lIk5A+56B2q","zw5HyMXLza","C25HCeDYAwq","y2HLy2TIB3G","CMvWBgfJzq","6BUy6k6K5yc877Yi5Ash55sO77Yj","z2v0rxzLBNrcBg9JAW","zgf0yvjLCxvLC3rlzxK","54k55yE75y2h5BQp","BM9Wyw4","BwiTncbWltmGyMCTyMX1zs01mcbIB3jKzxiGyM9YzgvYlwjSDwuTmJaWihjVDw5KzwqTBgC","vevyvefsrue","BgfIzwXgB250v2vPz2H0","lNjLywn0lwzSB3DFx3bHBMu","EMHFq04","AxngAw5PDgu","Aw5SAw5Lu2nYAxb0","yM90Dg9TlxjPz2H0","ChjPBwfYEq","AgfUzgXL","5PwW5O2U6zUg","Bwv0yuTLEq","tM8GC3rHCNqGBM9KzsbMB3vUzcbPBIbLDMvUDcbMBg93","lI4U","AgLZDg9YEq","Bw91C2vTB3zLlMrYywC","t1busu9o","Aw5PDgLHBfDPzhrO","5lIk5lIa5lIw57QQ","sw5WDxroDw1Izxi","zgf0ys1UB2rLAwq","C2vSzwn0zwroB2rLCW","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","x+wKJEwiTG","CMvZAxPPBMC","uMvHy3qGrMXVDYbHDhrYAwj1DgLVBG","y3vZDg9T","ltuSltqGmcWWic01ldqGltuSltq","5PEG5zU+54Mh","wM9VBu91De91DgXPBMvK","lwzSB3DFx2HHBMrSzq","y3vYC29YlwnYB3nZAgfPCG","Aw1Hz2uV","ChjVBwLZzq","y2HLy2TwAxnPyMLSAxr5","B25oB2rLq29UDgv4De1LBNu","56gU6k6K5yIG6zMK6k+L5zcm57QN5ywZ57o757Ue77YF","mde1","qxjYB3C","6BYG5Qch56E75yE6","y2HHBMDL","ttaGmgGZmNy0lJjimhO","5PwW57UeicG","rwrPDe91DgXPBMvK","yMfZAwm","zgfZAc1KB3q","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltq","mcaWidi1idmY","zgLZCgXHEu5HBwu","B2jZzxj2zxjZ","ywjZ","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","ywrKrxzLBNrmAxn0zw5LCG","u3DPDgnO","y3vYCMvUDfn0yxr1C0LK","AxnbCNjHEq","C3r5Bgu","u2v0DgLUz091DgXPBMvK","AxndB250zw50rwrPDgfIBgu","x196B29T","yM91BMreyxrHC2v0qMLUzenVzgu","zMLSDgvY","CgfYC2u","B25fCNjVCG","5BEY5zcV55sO","ww91ihbYB3zPzgvKia","vxbSB2fKt3v0BgLUzwq","zxzLBM9Kza","q29UzMLNrwrPDg9Y","xMHZBgfCka","BgLUzq","yw1K","C2nHBgvuBW","BgLUzvr5Cgu","Cgf0Ae9WDgLVBNm","zM9JDxnHyMXL","w3jVBgu9iMnVBwjVyM94iL0","C2LIBgLUz3m","6ycA6Akr5yQG6ycF5BQM5PYj5Pwi5yc8","55s754k557Q/","5zU+54Mh5BgE5OcN","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWyY00lJeXncaXlJGYoc0XlJm3idiUmtmZlJmWnsaYlJqZocaXlJy3nI4ZmduGnc40mIaYlJu5idqUndiGns4Xodf2mY4WndHimY4WndDbmY4WntyGmY4WntyGmcaWmdaGmtmUnZe0DJe1lJiZoeeZlJa1nIaZlJa1nIaWidaWmY4WndGGmZjOmtGUmJG1ytmUmdu2idmUmdu2idaGmdaZlJa0oc0ZlJa0ofyXmY43mtrHmY4WntyGmY4WntyGmcaWmc0ZlJa0oc0ZlJa0n3PnmtiUmtKGmJqUntmZytmUmdu2idmUmdu2idaGmdeTmY4WndCTmY4WndCGmY4WntyGmY4WntyGmcaWmtmUmdq3ltmUmdq4idmUmdu2idmUmdu2idaGmdeZlJa0ocaZlJa0ocaZlJa1nIaZlJa1nIaWidaXltmUmdq4idmUmdq3EG","5A2x5l2t5AsN5Bcp","DMfSAwrHDgvgAwvSzhm","BwvTBW","x19UB3nLBgvJDa","y29YBMvY","CgLWzq","ChjVzhvJDgLVBG","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltq","y2XHC3nmAxn0","5A+85ywLiePtt04","zMXPCfG","BwWTmG","vw5ZDwjZy3jPChrPB25fCNjVCG","ChjLDMvUDerLzMf1Bhq","zxzLBNrgBg93rgf0yq","6k+36ycj5OUP6kEM5y+r5PA55BYp","77Ym5AsA5ywL6l6555sOia","5y+w5RAi5ywO6ycj","6k+35AgR5yAz6k+35Rgc5Qch6k+g","BM9KzuXVB2T1Ca","CMvJEwnSzufZEw5Jswq","zwXLBwvUDhntzwXLy3rHyMXL","u3DHCe91DgXPBMvK","zwXLBwvUDezYB21qB2LUDa","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","x25LEhq","Aw5Zzxj0qMvMB3jL","5PAW5BU655s75BId","5yc85P2L5RQq","CgfKzgLUzW","DY0XmcbOlteWig9IAMvJDc1JB250ywLU","uMvHy3q","ChGSia","z2v0uhjVDg90ExbLt2y","5Bcg57Q/5P2H5y+y5lI65z6c55U057Q/77Ym5l+D5OYb6zw/5BQM","5Qch6k+g5lIn6io95lI656M6","B25dB25Uzwn0rw5K","CgfYzw50swq","r3jHCgHwAwv3","rMfPBgvKihrVihbHCNnLigrYB3bWzwqGBwf0zxjPywW6","x25Vzgu","y2XPzw50wa","BgLUzxm","y29SBgvJDerHDgfZzxrgAwvSzfbHDgHZ","5lIk5lIa6Ag1","zwrNzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","BM9Kzu5HBwu","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","zMLSBgvK","6k+36ycj5OUP5zgO","zg9JDw1LBNrfBgvTzw50","wvLzwEw5Ta","77Ym6Ake6kEi5PE25lUL5QIH5P2/5lI65BQv5zci5BM255s75BId44cm5QIH5OUF5PwW5O2U44cn44cc5PwW57Ue5Qc85BYp6zYa5yYf5zcRig5HBwuG5A2x5Q6155sO5lQo6ycj5OUP44cc","Aw5qCM9NCMvZCW","DMfSDwvtDhLSzq","CMvHy3qTzMXVD19FyxjYB3DOzwfK","AgfUzgXLCW","C2v0vgLTzw91Da","yM9VBgvHBG","CMv0DxjUigzHBhnLoW","zgf0ys1Pza","Cgf0DgvYBG","Dw5IAw5KqwXSrM9YtM9Kzq","C3rHDgu","5PYa5BcrjhTTAw595lIQjhTSywjLBh0","6BYG5Qch6l+B5ywL","zgLYzwn0Aw9U","CgfYzw50","CMvHy3qTzMXVD19FzwrNzwXHyMvSlxjLBMrLCMvY","C2HPzNrlzxK","5BEM5A+56B2q","DxnLv2f0y2G","Bw91C2vKB3DUlMrYywC","rgvSzxrL","5PwW5O2U5RgG77Yi6iQc54k554Q25Ocb55sO77Yj","BMfTzq","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","C2v0vhjHBNnMB3jT","yM94lxnLBgvJDa","C3fYDa","DgHPy2TUzxnZ","5BYa5AEl5zgO","Ag9YAxPVBNrHBa","qxjYB3DsAwDODa","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltm","zgvNksa","mNb4ihnVBgLKicmXodKWzMy","Bw91C2vpDMvY","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","Cg9ZAxrPB24","zNjVBu5Vzgu","zgvSDgfz","x25HBwvZ","CMvHzefZrgf0yvvsta","zxjYB3iWmdy","lMrYywC","uMvHy3qGrMXVDZOGDhjPz2DLCIbLzgDLignOyw5Nzxm","DMLZAwjSzq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iIm1mMm0mweIlZ48l3n2zZ4","mda1","r2vUzxjHDg9YigLZigfSCMvHzhKGzxHLy3v0Aw5NlG","D29YAW","5y2G5l2n56YM77YAE3TWCMv2Fx3JGif7E+wfPEwpGUwqJx19iow8LEEuQos4IUA4UoI/NUE6V+wfPEwpGU+8M3T7jgrHDgeUEhH4Fx0G5y+w5lQl5lU25lIk5lIl5PAhigrHDge","C29SAwq","57Yw6l6r5lQl5lU25z2x","x25HBwu","twvZC2fNzsdMJ5dNPlO","lwzSB3DFx2vKz2u","CMv0DxjUig51BgW7","DhDLzw4","B3jKzxi","y3jLyxrLrgvMyxvSDfn0yxr1CW","BwLUwM9VBq","6Ake6kEi5PAh5lU2","yNvPBhrPBKLK","5BYa5AEl5PYi5lU9","CMzFx2vKz2uT","CMvQzwn0","Dw5PDa","ywn0AxzL","iIWGzwrNzsbPzdOG","BNCTCMvZAxPL","AgLKzuf0DhjPyNv0Aw9U","C21HBgW","BgLZDc1UB25LihnWywnLlxKTmIbTltaGCc0W","igLZig5VDcbHignVBNn0CNvJDg9Yig9Yig51BgW","BM9KzuvSzw1LBNq","yw50ze1LC3nHz2u","CMvHy3qTzMXVD19FAgfUzgXL","C2HVD0DYAwq","B25tzwXLy3rPB25eCMfNu3rVCa","55s75BIdia","jsWG","yM9YzgvYuMfKAxvZ","Dg9tDhjPBMC","Aw5JBhvKzuHPzgrLBK5VzgvZ","mtjWEa","CgfYDgLHBa","BwfW","zgvSDgfnB2rL","vg9Nz2XLieLUDgvYywn0AxzPDhK","Aw5KzxHpzG","DxjSkcm","CMvHy3qTzMXVD19FCMvUzgvYzxi","y2HHBMDLzfrVDwnOzxm","BM9Kzu9YAwDPBG","DxjSkcCJ","5l6l5AAc77YABMf2AwDHDgvuB+oaGw9Wzw5eAwfSB2C","CMvTB3zLrxzLBNrmAxn0zw5LCG","mtDxCxvJwg0","5PAh5A2x6AkC6iMY","C2fTCgXLsNnVBG","C2vSzwn0zwrtDgf0Dxnjza","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+phbHDgGGzd0ItteWidiWieWZmcaXmcbmntaGmJaGtduWidqWieWZmca1mcbmmtaGndaGwIiGzMLSBd0Ii2jMyMzIzIiGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIlZ48y2LYy2XLign4psiZmciGy3K9iJmWiIbYpsi4iIbMAwXSpsiJmtG5mgzMiI8+pc9ZDMC+","5OUw5OU96lcd5Pw05AsN5Bcp","u2HPzNq","y3jLyxrLrwXLBwvUDe5t","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","q1vtve9n","BwfYA2vYvw5PDhm","CMvHy3qTzMXVD19FAgfUzgXLlq","xNjNyMfCka","C2v0rhjHz0LTywDL","jhTSywjLBh3MMk/KUidKUkRML6dMLyJML6xMNj8","BgfIzwXcz0jVCMrLCLjHzgL1CW","ChGP","zMfJDg9Y","D2fYBMLUzW","55+L6ygt5lQg","u2nOzwr1BgvKigfJDgLVBIb0AhjLDYbMywXZEsbLCNjVCG","Aw5KzxG","i2zMzG","Aw50zxjHy3rPB25xAwr0Aa","54Q25Ocb5yIx6kgO","Dgv4DgfYzwe","C3rVCfbYB3bHz2f0Aw9U","C2v0qxr0CMLIDxrLtLm","DhjHBNnMB3jT","BgLUzwfYlwDYywrPzw50khrVihjPz2H0lcbYz2jHkdi0mcWYndaSmJqWldaUmdmPidfWEcWGDhjHBNnWyxjLBNqGmxb4ksWGBgLUzwfYlwDYywrPzw50khrVigjVDhrVBsWGCMDIysGYndaSmJqWldi0mcWWlJaZksaXChGSihrYyw5ZCgfYzw50idfWEcK","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","qwXPz25sAwDODe91DgXPBMvK","DgfYz2v0ug9ZAxrPB24","sxqGBg9VA3mGBgLRzsb5B3uNDMuGy3jLyxrLzcbHig5LDYbUB2rLvhLWzxmGB3iGzwrNzvr5CgvZig9IAMvJDc4GswyGDgHPCYb3yxnUj3qGB24GChvYCg9ZzsbWBgvHC2uGzgvMAw5LihrOzsbUB2rLvhLWzxmVzwrNzvr5CgvZig91DhnPzguGB2yGDgHLignVBxbVBMvUDcbVCIbTzw1VAxPLihrOzw0U","CMzFx25VzguT","57ky6ls0iePtt04G5yAf5A6577YA","B3jPz2LU","DgfYz2v0q2fUDMfZswq","AgvHza","qMfJA2DYB3vUza","C3LTyM9S","zxHWCMvZC2LVBG","mZi2nZa1ngLNvxPYCG","DhjHBNnSyxrLvg8","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","6k+36ycj5OUP5BM05lU9","zgv2zwXVCg1LBNq","z2v0qKjVEa","ChjVCgvYDhK","rML0ifzPzxC","C2v0uhjVCgvYDhK","CgfZDa","DxbKyxrL","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","y29TBw9Utg9JywXL","ywzMzwn0C1G","CMvTB3zLq2HPBgq","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","C3rYAwn0","Dgv4Dc1NCMf5ltyWmcbTDc0WlJu","5Asn5yI26iQc54k5","5OM+5lIn5yIW5lQl5lU25z2x","w1jLywn0iezSB3DDifrOzsbWywrKAw5NihzHBhvLici","Aw5ZDa","BM9Kzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","iZCYmMvKmq","CM91BMq","tM8GDgLTzw91DcbWCM92AwrLzc4","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","yxjPyuXHyMvS","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iInMywfKmtqIihj4psiYmciVpJWVC3zNpG","zxHWyw5Kzwrszwn0","zxzLBNruExbL","6kEJ6zMK57Ue5zci","DhjHBNnSyxrLrxH0zw50","zgLZy29UBMvJDa","C3rYywLNAhq","Dgv4Dc1ZBq","6ycj5OUP5zgO","DgfYz2v0sgfUzgXL","y2fUDMfZzxm","z2v0","C291CMnLug9ZAxrPB24","zxjYB3iWmdm","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","Aw50zxjWB2XHDgu","y2XPy2SUzhjHzW","x3bHCMvUDgfNzq","BxqTmsb0zxH0lwfTyMvYltGWma","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","6ycj5OUP5PEL5PYF","DhjHBNnSyxrL","77Yi5BEY5yIG6zMK77YA","zxjYB3iWmdi","Dhj1zq","C2TLD1GO","CMzFx2nVBNrYB2XZ","lIbozxCGCg9ZAxrPB24SihG6ia","5zYg6kEs55+P5B2I","5lIk5RI46l+E57Q/oG","C2v0u3rHDgu","x3rPBwu","5OYb57UT5PE26zE077Yi56Es77Yj","5lUo57Ur5A6A55Qe5PwW5O2U5lIT6ycj5OUP5A2x5Q61","B25fzgL0","yMCTD2HPDgu","zM9YBwf0sgv4","zM9UDc1TzwrPDw0GDgv4Dc1ZBsb0CNvUy2f0zq","5zcr5zcoiduG6Ag1","5y+V54k55yE7","zhjHz2DPBMC","zxzLBNq","ywjZB2X1DguGDg9WltaGBgvMDc0WihnLBgvJDc1UB25L","iZu5ntK1oq","DgfWrgLZDgfUy2u","Bw91C2vfBNrLCG","i2zMzMzMzG","iZuYyZqXyq","zgvJAw1HBhm","6zw/5yIslEEcUEs6PoABVW","ChjVDg90ExbL","Dg91y2HZDgfYDc5KCMfN","B25czwzVCMvezwXLDgu","6lw354k5ifK","yxr0CI4","y2fUy2vSq29UBMvJDgLVBG","6k+35AgR5yAz5O+q56s65yAf5A65","DxnLu3rHDgu","DxjSkcnNCMLKkq","Dgv4Dc1SzYbMB250lwjVBgqGDgv4Dc1NCMf5ltuWma","zg91yMXLq2XPy2S","A2v5zg93BG","CMvHy3qTzMXVD19Fy29UDgfPBMvY","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","Bw91C2vTB3zLlNPVB20GBw91C2v1Cc56B29T","C291CMnLswq","BgfIzwXcz1n0EwXL","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWihb4ltqGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUigzSzxGTC2HYAw5Rlta","C2XPy2u","Aw5WDxq","AM9PBG","AgfUzgXLCG","CMvHy3qTzMXVD19FCgfUzwW","57Ui54k5ifG","B3DUzxjtvKDfBgvTzw50","zgvZy3jPChrPB24","y29UDgvUDeLUzM8","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","A2vLCefZCgvJDfjHDgLV","C3LUyW","y3vYC29Ylw1VDMu","BM9Kzuv4DgvUDa","yxjYB3DJBg9Zzwq","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","z2v0u25HChnOB3q","z2fTBwe","jhTSywjLBh3KUi3OG73KUlRNQBRLRzFNRky","DxnLtwvTBW","y29Z","Dg91y2HHyMXL","w2rHDgeTAgfUzgXLpsjLBMqIxq","AxnwAwv3","5lQK5O2I6lw354k55zkm57Ui54k5","yxnZzxj0AxzL","6k+36ycj5OUP5yAf572U5yQO5l2C","w3jVBgu9iMXPC3rIB3GIxq","ywjZB2X1Dgu","ksb0CMfUC2XHDguO","5PYQ55+L55s75BId","C2nOzwr1BgvY","CMDI","zgvMCW","Dg9iyw5KBgu","DxnLq29UDgv4Da","su5qvvq","y3rYBeTLEq","6k+36ycj5OUP5PYi5lU9","ugfYDgLHBa","y2HPBgrYzw4","5ywO6ycj5OMa5PYj","5P2Hl+MHTq","BM9KCMfN","5ywL5y+c5zcn77Yi5OYj6l+E57Q/6Ag65BQp77YjoIa","BgLMDa","5RIq5y+y6iMY","C3rYB25N","DgfYz2v0","y2fUDMfZq29UzMLN","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","C3rVCa","CMvTB3zLuhjVCgvYDhK","57Yw6l6r6ycj5lIT6iQc54k555Qe5BgE5OcN","zw5Kwa","Bw91C2v1Ca","6k6+5lI65Rs76lEd57Ue","BgLZDa","B25dB25Uzwn0u3rHCNq","y29UDhjVBeLUzM8","C2TLD1G","Axnoyu4","zw50CMLLCW","EMGTy24","ltzWEa","Dg91y2HZDgfYDa","sxrLBq","zg93BMXVywq","C291CMnLrxzLBNq","lM1HDgvYAwfSlxbYzxzPzxC","5y+Q6io95lIk5lYG5zU+54Mh5PAh5lU2iq","C3rHDhvZswq","zgvMyxvSDa","6iom5PMV6Ake6kEi","ChGG","zgLZywjSzwq","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBw91Da","ios4QUIkGUEcUq","u3rLCevKz2vjBNrLCM5HBa","CMvHy3qTzMXVD19FCgfUzq","5PQc5PEG54MP5PAz","5PYQ55+L5yAf572U5yQO5l2CoIa","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","rwrNzsb0ExbLici","57Ur5A6A5A2x5Q61","ywzMzwn0C1K","5Qgg6ycj5QIH5BYp","mJi5oty4nKvKsvLcCW","Dgv4Dc1NCMf5ltGWma","BM9KzvK","zwfJAa","CMvJB25Uzwn0ywjSzq","Dg90ywXjBMnVBwLUzW","DMLLD3bVCNqT","DhjPBq","z2v0qxr0CMLIDxrL","Aw1Tzxi","zM9UDfDLAwDODa","Axnqyw5ty3jVBgXPBMC","u2vSzwn0","DhjHBNnWyxjLBNq","jhTSywjLBh3MNidLSjeKE21PBN3KUkRLRzFNRky","CgfYDgLHBe9IC2vYDMvY","zMLYC3rdAgLSza","y3vYCMvUDfrHCMDLDa","mtyZnJi2rfDSu3Dz","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","Bwf4lwGTwZqWmhb4xsbVDMvYzMXVDY15lwf1Dg8","zM9UDfnPEMu","6k+36ycj5OUP5lIa5lIQ6iQc54k5","x3rYEvn1yNnJCMLIzq","z2v0vMfSDwvgCM9Tugf0Aa","Cg9PBNrLCLG","y2XPzw50wq","ufjfu0vovevex0LnquDfx1njtvbmrq","zxjYB3iWmde","6iQc54k55PwWoIa","6zw/54k5lEEFREEcUEs6PoABVW","z2v0sw5PDgLHBfn0yxrL","C2vJB25Kyxj5","C2fTCgXLiePtt04G5PEG5Pwi","Bw91C2vz","iIbKB2vZBID0igv4Axn0lG","B25oB2rLrhjHz1n0yxj0","C2HPzNq","yxbWBgLJyxrPB24VANnVBG","CMzFx3DYyxbWzxi","Bw91C2vTB3zL","mNb4igrHC2HLzcb0CMfUC3bHCMvUDa","mI4WlJa","zMXPCfK","5zU+54Mh5zYW5z2aicHZCMmP","vMvYDgLJywXbBgLNBKjVDhrVBu91DgXPBMvK","CMLNAhq","zwrNzuLUzgv4","zMLSzq","5RIf56M65OMa5PYj","DxnLCLnLBgvJDgLVBLjLy3q","57Ur5A6A5yc8","Bwf0CML4vhjHBNnMB3jT","C2vSzwn0zwq","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWidGGmca0lJu3msaZlJqYosa0lJu3msa3lJyXoxyZlJa0oeGZlJa0oeeZlJa1nIaZlJa1nIaWidaWmcaXmY43mtr2mtuUmJm4qtmUmdu2idmUmdu2idaGmdaZlJa0ocaZmMGXoc4YodvHmY4WntyGmY4WntyGmcaWmdmUmdq4ltmUmdq4vJeZlJCXngeZlJa1nIaZlJa1nIaWidaWltmUmdq4ltmUmdq3EK0XmI4XosaYnc41mZnHmY4WntyGmY4WntyGmcaWms0ZlJa0nY0ZlJa0nYaZlJa1nIaZlJa1nIaWidaXmY4WndCTmY4WndGGmY4WntyGmY4WntyGmcaWmtmUmdq4idmUmdq4idmUmdu2idmUmdu2idaGmdeTmY4WndGGmY4WndD6BtqUnZi0lteZlJG2nKG3lJq2n1y3lJyXowmWltiUntKGmI4XmZmTnc43mJqGnc43mJmTnc43mJqGmI41oteGmca0lJCYncaYlJeZmYa0lJCYnca0lJCYnhyZlJa0ohO","DY1MDwXSigP1C3rPzNKTzw5K","6ycj5OUP5yw35l2t5yAf572U6io95yQB","yMX1CG","Dw5KzwzPBMvK","lcb5oIa","EM9VBs53AgvLBa","z2v0t3DUuhjVCgvYDhLtEw1IB2XZ","Aw5JBhvKzxm","Dg9ju09tDhjPBMC","5A2x5l2t57kx57Ug","CMvHy3qTzMXVD19FyxjPys1SAxzL","Bwf0y2HnzwrPyq","CMvTB3zLqxr0CMLIDxrLtLm","tgLZDa","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","tufyx1zbtfvf","B25ezwXLDgu","C3rHCNroB2rLwa","zM9Yy2u","vg9VBhrPCa","CgfYzw50tM9Kzq","x3bHCMvUDa","AgfZvMfSDwu","CgfYyw1ZtMfTzq","C2LTCgXLyMv6AwvY","57ky6ls0iePtt04G5yAf5A65lI4U","DxbKyxrLtM9Kzq","mtKYma","yNvIyMXLCW","w2nVBNrLBNrLzgL0ywjSzt0IDhj1zsjD","rM9YBq","Dhj5CW","8j+sOsdMJ5dNPlRVVjRNGRNLH7VNU5JLIlBNUR/MRRxVViZLJ6/OV57NU63NU5JLIlBLPjRMRRxNUR/VViZLJ4ZLH7VNU5pMNz/NU5JLIlBVViXfu0mG5y+w5RAi","CxvLCNLtzwXLy3rVCKfSBa","5z6c55U057+76l2S","BgfUzW","C3rYAw5N","zgL2","5y+V5OUw5OU9","rw50zxi","Aw50zxjUywW","CMv0DxjU","6ycj5OUP57Q/5P2H5Qc35BYp","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/77Ym5l+D5OYb6zw/5BQM","zMLUywXPEMu","B3bHy2L0Eq","zgvMyxvSDevKz2vpChrPB25Z","AwrLBNrPzMLLCG","Bw91C2vcDxr0B24","DxbKyxrLq29UBMvJDgLVBG","y29UC3rYywLU","AxneCMfNz2fIBgu","ywn0sw5ZAwrLsw5WDxrxAxrOtw9KAwzPzxi","6BUy6k6K6Ag555UU","twv0yq","BwfYA2vYrw5K","qMfJA3nWywnL","zxzLBNrcBg9JAW","CMzFx21PBMLTyxa","5PwW5O2U5QIH5OUF","zgv0ywLS","B25tzwXLy3rPB25eCMfN","x3n1yNnJCMLIzq","Ahr0CdOVl3D3DY53mY5VCMCVwe1mlZe5otGVBMfTzxnWywnL","q2fUDMfZ","ENvZDgfUza","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","yxv0B1bHBK9UtM9KzurYywC","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","AxnAB29TAw5Nt3jqyw5UAw5N","r3jVDxbpDxrSAw5Lza","AxrLBq","Dg91y2G","z3jPza","i2y1mJiYza","tg9VC2u","CMvJDcGWChGSidbWEcWGmhb4lcaWChGP","qxjYB3DdBg9Zzwq","mda4","CMvZDwX0","iokaLca","y2XHC3m","zgLZDgfUy2u","C3zN","DMLLDW","BgLUAW","ug9Wy29UzMLYBq","zM9JDxm","y2vUDgvYignLBNrLCG","ugX1C091DgXPBMvK","D2fYBG","y29TCgfYzurVy3vTzw50ug9ZAxrPB24","zxzLBNrcBg9JA0LK","zhjHz2DHyMXL","zgvNkq","yMLUze5Vzgvjza","u3vWChjLC3nLzevYCM9Y","5PQc5lIn5PsV5OYb57Yw6l6r5Q2K57g75z6l55Qe54MP5PAz","z2v0sw5ZDgfUy2u","Aw5MBW","DxnLCK5Vzgu","Bg9HzgLUzW","5Pon5l2C5OIq5yQF","B25ZzwXLy3rZDgfYDa","y29TCg9ZzwrqyxrO","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","zxHLy3v0Aw5NigeGy2fUy2vSBgvKigfJDgLVBG","Ag92zxi6yMCTz3jHEs0Xmda","lNH5zMXVD19FDMLLD3bVCNq","CMvHy3qTzMXVD19FDMLLD3bVCNqGEhLMBg93x192Awv3Cg9YDcbYzwfJDc1MBg93x19JB250ywLUzxi","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","6BYG5Qch6yEk5Ps+","C2vSzwn0C3rHCNqUzhjHzW","z2v0qM91BMrPBMDdBgLLBNrszwn0","cIaGicaGicaG","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvKoG","jhTSywjLBh3ML6xMNj/MOlZLVi/ML6dMLyG","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","y3jLyxrLu1zhug9PBNq","zNv0DxjL","5ywZ6zET6kgm","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","44cn77Yi5Pw05z2x6l+u5zUE5yc877Yj","yxjPyvjVBgu","C3r5BguU","ChjLDMLLDW","57Uy5yI25lIT","x3zHBhvL","57Ut5P2F5A+86kEi","y2fUDMfZxW","5BEY5RE75yQG","ywjZB2X1DguGDY0ZigGTmYbIzY1IBhvLltuWmcbIB3jKzxiTmIbIB3jKzxiTD2HPDguGCM91BMrLzc1MDwXSign1CNnVCI1TB3zLihOTnta","nNb4idHWEa","Dgv4Dc14CYb0zxH0lwDYzwvUltyWma","iZe4otbMzG","Aw52zxj0wa","C3rLCfbVC2L0Aw9U","CMvHy3qTzMXVD19FBM9Kzxm","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y","zMXVD0rHDge","B2jZzxj2zq","yw50za","zxHLy3v0zuj1AwX0Aw4","y29UDgfPBMvY","uhjVDMLKzxi","y2vUDgvY","CMvHy3qTzMXVD19FzwrNzs10zxH0yMC","DgHLBG","57+75yIW5lIk5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","5BgE5OcN6z2I5P2/","C291CMnL","zMLSBenVBg9Y","zwXLDMf0zu5VzgvZt25tzwXLy3q","zxzLBNrtDwjQzwn0CW","6l6t5ywL54Q25Ocb5zcn56EW","AxntDg9WCgvK","5zcm57QN5ywZ57o757Ue","DhjHBNnSyxrLwq","ywn0Aw9UCW","6ycj5OUP5BM05lUJ","x2nVBxbSzxrL","5lQl5lU25z2x5PYQ6ywn572UigrHDgfszxf1zxn0s2v5","Bw9KztO","zxHLyW","u21VB3rOu3rLCa","x2LUBMvYu3vIC2nYAwjL","y3jLyxrLrgvMyxvSDe5Vzgu","zxH0zxjUywW","zxHLy3v0zq","ywX0s2v5","vxbtCxvHCMvpDxrSAw5Lza","CMDIka","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","6lw35Q2I5l2n572U77Yi55U45A+56iQc54k577Yj","5OUw5OU95QIH5BYp","5l6l5AAc77YACMvMCMvZAa","AxndBgLJA2fIBgu6","CMvHy3qTzMXVD19Fy29UDhjVBhm","Aw50zxjYDxb0lNPVB20Gzw5KlNPVB20","Dg91y2GTywn0Aw9U","y2XVBMvoB2rL","zwrPDgLUz0v2zw50uM9VDeLK","ywjZB2X1DguGDg9WltaGBgvMDc0W","AxnjBNrLCM5HBa","C291CMnLsgfUzgXL","BgLUzs1KCMf3","DY04igGTmc41igjNlwDYyxKTndaW","C3rHCNrizwLNAhq","z2v0qxr0CMLIDxrLtLm","C2vSzwn0zwroB2rLswq","DhjPz2DLCK5VzgvdAgfUz2vZ","6yEn572U6kEg5zU+","BM9Kzvf1zxvL","zgvMyxvSDfj1BNrPBwviyw5KBgvYCW","mdeY","5zcr5zcoidmG6Ag1","C2v0","zML0vMLLD1jLC29SDMvY","Dg91y2HZDgfYDc56B29T","Bwf0zxjPywXZ","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q61","BM9Kzuv2zw50qMLUzgLUz3m","zMLUza","DhjHBNnPDgLVBIa","x19KyxrHx18","CMzjza","6k6+5Ash5zU+5Qch","BwiTma","5l+D55wz5Bcp5PwW5l2n","zg90","B2jZzxj2ywjSzq","yxv0B1bHBK9Uq29UBMvJDa","iZaWmtKZqW","Eg1SBNm","CMvHy3qTzMXVD19FBwLUAw1HCa","6k+36ycj5OUP","zgvZDgLUyxrPB24","iwjNlwjSDwuTntaW","y29UBMvJDgLVBK1Vzgu","y292zxi","C3rHCNrxAwr0Aa","Dgv4DenVBNrLBNq","re9ntwf0CML4uMvHze9UBhK","CMHV","y29TCgXLDgu","DhjHBNnSyxrLqNK","576K57Ue6iQc54k5","C2v0rgf0yq","mcaWidmYidmY","zgvMAw5LuhjVCgvYDhK","C2vSzwn0qwXS","C2uTCMvZAxPL","ugXLyxnLihvZzsbGz2v0tM9KzxncB3vUzhnGigzYB20GyhvZzvjLywn0rMXVD2aVyhvZzvn2zwX0zuzSB3DGigHVB2SGDg8Gzw5ZDxjLignVCNjLy3qGDMfSDwvZigzVCIbZDwiGzMXVD3mUieLMig5VDcbWB3nZAwjSzsWGEw91igHHDMuGDg8GChjVDMLKzsbHig5VzgvmB29RDxaGDg8GC3vWCg9YDcbZDwiGzMXVD3mU","DhjHBNnPDgLVBG","CgWTmIbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Zmda","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","Dw5RBM93BIb0ExbLoIa","idaGvG","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","zNvUy3rPB24","DMLLD0jVEa","zgf0ytPPBwfNzs9ZDMCREg1Sla","DhjHBNnMB3jTu3rHDgu","zg9Tqxr0CMLIDxrLCW","C3DPDgnOq2fUDMfZ","zMLYC3q","BgLNAhq","5OUw5OU96lcd5Pw057Ui54k5","lMPZB24","yNv0Dg9U","6k+36ycj5OUP5OMN6kgm5PA55BYp","5PwW5yc85Qc85BYp5yYw5PE25l+D55wz55Qe5Bcp5PwW5l2n5PwW77YmlthOOAJNPlRKUi3MOlZLVi/LJjy","qebPDgvYyxrVCG","zgfZAgvK","t25SEsbJAgLSzcbUB2rLCYbJyw4GDxnLigeGCgfYzw50igv4DgvUDc4","DxnLu3LUy0v4DgvYBMfSu3rVCMu","B25oB2rLC0rLBgv0zq","twf0zxjPywXqyw5LBa","y3jLyxrLq29UDgv4Da","C2nOzw1LxW","CMvWzwf0kdGSidfMCIK","BwfYA2vYu3rHCNq","ywrK","teLorq","5yIG6zMK5ywO6yoO","5PAW5BU65lQl5lU25Rwb","AgfUzgXLrg9TtM9Kzq","jhTSywjLBh3KUi7MQkhLVi/KUi3LJlNPHy0KE3bHDhrLCM59","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc94BwXUCY8","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","5yAf6l656lED","5RE75yQG5lQl5lU25z2x","6iom5PMV5zU+54Mh","sxrLCMfIBguGy2fUBM90igjLig51BgW","5l6l5AAc77YABg9HzfrYzw5K44cbzMv0y2HezxzPy2vmAxn0","mda2","5y+Z5A+56B2q","B25fzgDLC0rLBgv0zq","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","CMvXDwvZDefZEw5Jswq","CMvJDa","Aw5PDev2zw50","6zw/5yIs6zE06zQu","CMvHy3qTzMXVD19FzwrNzs0","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","uhjVBwLZzq","55UU5Qch55s75BId","57YP5Ps+5Q+u5l6l","y3jVC3m","6ycA6Akr6ycF5BQM5PYj5Pwi5yc8","z2v0u3rHDgu","6iQc54k55Qc55O2U54Q25Ocb6kgO6l6+5BYp6k6H566x57Ut5P6C5PI+56s65A+55BQu54MP5PAz77Ym56YS5lIa5lIQ6l+u5zUEihrYDwuG55Qe54Q25Ocb5lI65B2t5yMn54Q25Ocb","z2v0u2nYzwvUq1rn","CMvHy3qTzMXVD19FBwLUAw1HCc1KzxnJ","lwzSB3DFx2HHBMrSzvTKyxrHlwLKpsi","zgvMyxvSDe5VzgvZ","DgLTzxjjza","CMvHy3qTzMXVD19FzwrNzs1KzxnJ","zMLUzeLUzgv4","C2v0qxr0CMLIDxrLCW","CMDIysG","zw5Kwq","55sX6kgO6l6+5BYp6iEQ5yQO6k6H566x","tgf5B3v0","iI8+pc9ZDMC+","zgvIDwC","5lIl5A+56B2q","yM9Sza","Dg91y2GW","ANn4","zM9UDc1TB25VihrLEhqTC20","y29UDgv4Da","5lQl5lU25Rwb57Yw6l6r5zMO","6zw/5yIslEwpJoEcUEs6PoABVW","tw92zwqGC2vSzwn0zwqGBM9Kzsa","x3jLBw92zvbHCMvUDa","DY00igGTncb0zxH0lwjSDwuTnJaWigjVCMrLCI1NCMf5ltmWmcbYB3vUzgvKigzVy3vZoNjPBMCTyMX1zs01mda","CMvHy3qTzMXVD19FBM9Kzs1KzxnJ","i2yWzJbMma","ugXLyxnLig9UBhKGAgLKzsb0AgLZigf0DhjPyNv0Aw9UihDOzw4GEw91igfYzsbZDwjZy3jPyMvKihrVifjLywn0iezSB3CGuhjVoIbODhrWCZOVl3bYBY5YzwfJDgzSB3CUzgv2","rxzLBNqGzMXVDYbUB3qGAw5PDgLHBgL6zwqGzM9Yia","CMvHy3qTzMXVD19Fy29UDhjVBhmTyNv0Dg9U","qNv0Dg9U","BgfIzwXgB250u2L6zq","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","Cg9PBNrLCKLK","yMfZzwXPBMu","DgLTzxi","BgfIzwXtAg93qMC","twvZC2fNzsdMJ5dNPlRLHOxLRRNKUlRNQBO","Bg9JywW","zgvMyxvSDevKz2vZ","C2v0rgvMyxvSDe5VzgvZqw5KrwrNzxm","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS"];return _0x559e=function(){return Ne},_0x559e()}function _0x1d61(Ne,l){Ne=Ne-129;const L=_0x559e();let C=L[Ne];if(_0x1d61.JOIyEU===void 0){var fe=function(gt){const c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let ln="",Pn="";for(let o0=0,L0,N0,In=0;N0=gt.charAt(In++);~N0&&(L0=o0%4?L0*64+N0:N0,o0++%4)?ln+=String.fromCharCode(255&L0>>(-2*o0&6)):0)N0=c.indexOf(N0);for(let o0=0,L0=ln.length;o0<L0;o0++)Pn+="%"+("00"+ln.charCodeAt(o0).toString(16)).slice(-2);return decodeURIComponent(Pn)};_0x1d61.ahvmkf=fe,_0x1d61.sIlgLZ={},_0x1d61.JOIyEU=!0}const Bx=L[0],ht=Ne+Bx,Me=_0x1d61.sIlgLZ[ht];return Me?C=Me:(C=_0x1d61.ahvmkf(C),_0x1d61.sIlgLZ[ht]=C),C}const c=_0x1d61;var ln=document[c(1830)](c(1022));ln[c(1701)]=`.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}.inline-flex{display:inline-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-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / 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)}.outline{outline-style:solid}.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 }.blur{--tw-blur: blur(8px);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)}.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(1235)].appendChild(ln);function Pn(e){const n=c;return e&&e[n(167)]&&Object[n(1319)][n(835)][n(573)](e,"default")?e.default:e}var o0={},L0={exports:{}},N0;function In(){const e=c;return N0||(N0=1,(function(n){const t=e;function o(x){return x&&x.__esModule?x:{default:x}}n.exports=o,n.exports.__esModule=!0,n[t(942)].default=n[t(942)]})(L0)),L0[e(942)]}var An={},Jo;function ds(){const e=c;if(Jo)return An;Jo=1,Object[e(1709)](An,e(167),{value:!0}),An[e(1409)]=void 0;const n={items_per_page:e(1379),jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:e(1092),next_page:"下一页",prev_5:e(593),next_5:e(1307),prev_3:e(932),next_3:e(1675),page_size:"页码"};return An[e(1409)]=n,An}var En={},jn={},Yn={},Un={},_o;function hs(){const e=c;return _o||(_o=1,Object[e(1709)](Un,e(167),{value:!0}),Un[e(1251)]=void 0,Un[e(1251)]={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Un}var Fo;function gs(){const e=c;if(Fo)return Yn;Fo=1,Object[e(1709)](Yn,e(167),{value:!0}),Yn[e(1409)]=void 0;var n=hs();function t(s){"@babel/helpers - typeof";const u=e;return t=u(1719)==typeof Symbol&&typeof Symbol[u(217)]=="symbol"?function(d){return typeof d}:function(d){const h=u;return d&&h(1719)==typeof Symbol&&d[h(602)]===Symbol&&d!==Symbol.prototype?h(1237):typeof d},t(s)}function o(s,u){const d=e;var h=Object[d(859)](s);if(Object[d(1485)]){var y=Object[d(1485)](s);u&&(y=y[d(1027)](function(v){const g=d;return Object[g(1618)](s,v)[g(635)]})),h[d(1955)].apply(h,y)}return h}function x(s){const u=e;for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?o(Object(h),!0)[u(1956)](function(y){r(s,y,h[y])}):Object[u(759)]?Object[u(1883)](s,Object[u(759)](h)):o(Object(h))[u(1956)](function(y){Object[u(1709)](s,y,Object.getOwnPropertyDescriptor(h,y))})}return s}function r(s,u,d){const h=e;return u=i(u),u in s?Object[h(1709)](s,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[u]=d,s}function i(s){const u=e;var d=a(s,u(1516));return u(1237)==t(d)?d:String(d)}function a(s,u){const d=e;if(t(s)!="object"||!s)return s;var h=s[Symbol[d(654)]];if(h!==void 0){var y=h[d(573)](s,u);if(d(448)!=t(y))return y;throw new TypeError(d(293))}return(d(1516)===u?String:Number)(s)}var f=x(x({},n[e(1251)]),{},{locale:e(970),today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:e(677),dateSelect:e(1289),weekSelect:e(1277),clear:"清除",week:"周",month:"月",year:"年",previousMonth:e(247),nextMonth:e(541),monthSelect:e(262),yearSelect:e(494),decadeSelect:e(1639),previousYear:e(1493),nextYear:e(281),previousDecade:"上一年代",nextDecade:e(852),previousCentury:e(984),nextCentury:e(777),yearFormat:e(1099),cellDateFormat:"D",monthBeforeYear:!1});return Yn.default=f,Yn}var On={},Qo;function $o(){const e=c;if(Qo)return On;Qo=1,Object.defineProperty(On,e(167),{value:!0}),On[e(1409)]=void 0;const n={placeholder:"请选择时间",rangePlaceholder:[e(1934),e(340)]};return On[e(1409)]=n,On}var er;function nr(){const e=c;if(er)return jn;er=1;var n=In()[e(1409)];Object[e(1709)](jn,e(167),{value:!0}),jn[e(1409)]=void 0;var t=n(gs()),o=n($o());const x={lang:{placeholder:e(660),yearPlaceholder:e(1242),quarterPlaceholder:e(191),monthPlaceholder:e(1375),weekPlaceholder:e(1097),rangePlaceholder:[e(368),"结束日期"],rangeYearPlaceholder:["开始年份",e(274)],rangeMonthPlaceholder:[e(1163),e(1928)],rangeQuarterPlaceholder:[e(882),"结束季度"],rangeWeekPlaceholder:[e(1129),e(766)],...t.default},timePickerLocale:{...o[e(1409)]}};return x[e(1515)].ok="确定",jn[e(1409)]=x,jn}var tr;function ys(){const e=c;if(tr)return En;tr=1;var n=In()[e(1409)];Object[e(1709)](En,"__esModule",{value:!0}),En[e(1409)]=void 0;var t=n(nr());return En[e(1409)]=t.default,En}var xr;function ms(){const e=c;if(xr)return o0;xr=1;var n=In().default;Object[e(1709)](o0,e(167),{value:!0}),o0.default=void 0;var t=n(ds()),o=n(ys()),x=n(nr()),r=n($o());const i="${label}不是一个有效的${type}",a={locale:e(1400),Pagination:t[e(1409)],DatePicker:x[e(1409)],TimePicker:r.default,Calendar:o[e(1409)],global:{placeholder:e(1695),close:"关闭",sortable:e(455)},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:e(717),filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:e(373),selectAll:"全选当页",selectInvert:e(659),selectNone:e(1473),selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:e(1600),triggerDesc:e(347),triggerAsc:e(964),cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:e(1216)},Tour:{Next:e(547),Previous:"上一步",Finish:e(1608)},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:e(863),removeCurrent:"删除当页",selectAll:e(1378),deselectAll:e(1065),removeAll:e(1744),selectInvert:e(659)},Upload:{uploading:e(633),removeFile:e(500),uploadError:e(173),previewFile:e(1161),downloadFile:e(931)},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:e(166),defaultValidateMessages:{default:"字段验证错误${label}",required:e(1914),enum:"${label}必须是其中一个[${enum}]",whitespace:e(1355),date:{format:e(1596),parse:e(721),invalid:e(1211)},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(326),min:e(1438),max:e(264),range:"${label}须在${min}-${max}字符之间"},number:{len:e(271),min:e(887),max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:e(329),min:e(1112),max:e(948),range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:e(1747)}}},QRCode:{expired:e(1865),refresh:e(183),scanned:e(139)},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:e(1383)}};return o0[e(1409)]=a,o0}var Dx,or;function bs(){return or||(or=1,Dx=ms()),Dx}var vs=bs();const ws=Pn(vs),ps=e=>(n,t,o)=>{const x=c;return o[x(1299)]=(r,i,...a)=>{const f=x,s=typeof r===f(1719)?ht[f(736)](r):r;return n(s,i,...a)},e(o[x(1299)],t,o)},zs=ps;function Cs(e){return Array[c(1021)](e)}function rr(e){const n=c,t=[];for(const o of Object[n(859)](e)){t[n(1955)](o);const x=e[o];if(x!==null&&typeof x===n(448)&&!Array[n(1021)](x))for(const r of Object[n(859)](x))t[n(1955)](o+"."+r)}return t}function Ms(e,n,t){const o=c,x=e[o(741)];if(Cs(x)){if(n!=null&&t!=null){const r=x.find(i=>i[n]===t);if(r)return r}return{}}return x}function ir(e,n,t,o){const x=c,r=Ms(e,t,o),i={...r};if(n&&typeof n===x(448)&&!Array[x(1021)](n))return{...i,...n};if(Array[x(1021)](n)){const a={...i};for(const f of n){if(!f||typeof f!==x(448))continue;const s=f;s.paramsCode!=null&&(a[String(s[x(624)])]=s[x(699)])}return a}return i}const Bs={id:"_",name:"_",sample:{}};function Lx(e,n,t){const o=c,x=e[o(466)]!=null?String(e.boundDatasetId)[o(1431)]():"",r=x?t[o(1682)](a=>a.id===x):void 0,i=r??Bs;try{const a=ir(i,n,e[o(1026)],e.boundDatasetBindValue);return new Function(o(762),e.expression)(a)===!0}catch(a){return console[o(1570)]("状态表达式执行失败 ["+e.name+"]:",a),!1}}function ar(e,n,t){for(const o of e)if(Lx(o,n,t))return o}function cr(e,n){const t=c;for(const o of e){for(const x of o[t(1345)][t(273)])x[t(466)]===n&&(x[t(466)]=null,x[t(1026)]=null,x[t(1960)]=null);o[t(893)]==="group"&&o.children?.[t(461)]&&cr(o[t(1377)],n)}}function Nx(e){const n=c;for(const t of e){for(const o of t[n(1345)].statusList)delete o[n(1965)];t[n(893)]===n(889)&&t[n(1377)]?.length&&Nx(t[n(1377)])}}const Sx=(e,n)=>({id:e||Me[c(467)](),name:n||c(490),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:[]}}),Ds=()=>{const e=c,n=Sx();return{id:Me[e(467)](),name:e(1533),canvases:[n],currentCanvasId:n.id,siblingGroups:[],activeSiblingGroupId:null,navigationStack:[]}},sr=Ds(),Z0=sr.canvases[0],Ls={root:sr,materials:[],mode:"select",lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:Z0[c(425)],canvas:Z0[c(1386)],viewport:Z0[c(447)],selectedNodeId:Z0[c(1669)],selectedNodeIds:Z0[c(250)],selectedStatusId:Z0[c(1200)],history:Z0.history},p0=(e,n,t)=>({id:Me[c(467)](),type:e,targetId:n,payload:t,timestamp:Date[c(590)]()}),Xe=Bx[c(945)]()(zs((e,n)=>({...Ls,addCanvas:t=>{const o=c,x=Sx(Me[o(467)](),t||"画布 "+(n()[o(259)][o(1279)].length+1));return e(r=>{const i=o;r[i(259)][i(1279)][i(1955)](x),r.root.currentCanvasId=x.id;const a=x;r[i(425)]=a.nodes,r[i(202)]=a[i(1386)],r[i(447)]=a.viewport,r[i(1669)]=a[i(1669)],r[i(250)]=a[i(250)],r[i(1200)]=a[i(1200)],r[i(980)]=a.history}),x.id},removeCanvas:t=>{e(o=>{const x=_0x1d61,r=o.root[x(1279)][x(1780)](a=>a.id===t);if(r===-1||o[x(259)].canvases[x(461)]<=1)return;if(o[x(259)][x(1279)][x(802)](r,1),o[x(259)][x(1957)])for(const a of o.root[x(1957)]){const f=a[x(939)][x(1189)](t);f!==-1&&a[x(939)][x(802)](f,1)}if(o[x(259)][x(1816)]&&o.root[x(1816)].length>0&&(o[x(259)][x(1816)]=o[x(259)][x(1816)][x(1027)](a=>a!==t)),o[x(259)].currentCanvasId===t){const a=o.root.canvases[0];o[x(259)][x(186)]=a.id,o[x(425)]=a.nodes,o[x(202)]=a[x(1386)],o[x(447)]=a[x(447)],o[x(1669)]=a[x(1669)],o[x(250)]=a[x(250)],o[x(1200)]=a.selectedStatusId,o.history=a[x(980)]}const i=o[x(259)][x(1927)];if(i){const a=(o.root.siblingGroups||[])[x(1682)](f=>f.id===i);(!a||!a[x(939)][x(1486)](o.root[x(186)]||""))&&(o[x(259)][x(1927)]=null)}})},switchCanvas:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](a=>a.id===t);if(!r)return;o.root[x(186)]=t,o.nodes=r[x(425)],o[x(202)]=r[x(1386)],o[x(447)]=r.viewport,o[x(1669)]=r[x(1669)],o[x(250)]=r.selectedNodeIds,o[x(1200)]=r[x(1200)],o[x(980)]=r[x(980)];const i=o.root[x(1927)];if(i){const a=(o.root.siblingGroups||[])[x(1682)](f=>f.id===i);(!a||!a[x(939)][x(1486)](t))&&(o[x(259)][x(1927)]=null)}})},updateCanvasName:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)].canvases.find(a=>a.id===t);i&&(i[r(1123)]=o)})},getCurrentCanvas:()=>{const t=c,o=n();return o[t(259)][t(1279)][t(1682)](x=>x.id===o[t(259)][t(186)])},addSiblingGroup:(t,o)=>{const x=c,r=Me[x(467)]();return e(i=>{const a=x;i[a(259)][a(1957)]||(i.root[a(1957)]=[]);const f=i[a(259)][a(1957)][a(461)]+1,s=Array[a(598)](new Set((o||[])[a(1027)](u=>i[a(259)][a(1279)][a(540)](d=>d.id===u))));i[a(259)].siblingGroups.push({id:r,name:t||a(792)+f,canvasIds:s})}),r},removeSiblingGroup:t=>{e(o=>{const x=_0x1d61;if(!o[x(259)].siblingGroups)return;const r=o.root.siblingGroups[x(1780)](i=>i.id===t);r!==-1&&o[x(259)][x(1957)].splice(r,1),o[x(259)][x(1927)]===t&&(o[x(259)][x(1927)]=null)})},updateSiblingGroup:(t,o)=>{e(x=>{const r=_0x1d61;if(!x[r(259)][r(1957)])return;const i=x[r(259)][r(1957)][r(1682)](a=>a.id===t);if(i&&(o[r(1123)]!==void 0&&(i[r(1123)]=o[r(1123)]),o[r(939)]!==void 0)){const a=new Set,f=[];for(const s of o[r(939)])a[r(806)](s)||x.root[r(1279)][r(540)](u=>u.id===s)&&(a[r(1742)](s),f[r(1955)](s));i[r(939)]=f}})},addCanvasToSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x1d61;if(!r.root[i(1957)])return;const a=r[i(259)][i(1957)][i(1682)](f=>f.id===t);a&&r[i(259)][i(1279)].some(f=>f.id===o)&&(a.canvasIds[i(1486)](o)||(typeof x=="number"&&x>=0&&x<=a.canvasIds.length?a[i(939)].splice(x,0,o):a[i(939)][i(1955)](o)))})},removeCanvasFromSiblingGroup:(t,o)=>{e(x=>{const r=_0x1d61;if(!x[r(259)].siblingGroups)return;const i=x[r(259)][r(1957)].find(f=>f.id===t);if(!i)return;const a=i.canvasIds[r(1189)](o);a!==-1&&i[r(939)][r(802)](a,1)})},moveCanvasInSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x1d61;if(!r.root.siblingGroups)return;const a=r[i(259)][i(1957)].find(u=>u.id===t);if(!a)return;const f=a[i(939)][i(1189)](o);if(f===-1)return;const s=x==="up"?f-1:f+1;s<0||s>=a[i(939)][i(461)]||([a[i(939)][f],a.canvasIds[s]]=[a[i(939)][s],a[i(939)][f]])})},nextSiblingCanvas:(t,o=!1)=>{const x=c,r=n(),i=r[x(259)][x(1957)]?.find(u=>u.id===t);if(!i||i[x(939)][x(461)]===0)return null;const a=i.canvasIds.filter(u=>r.root[x(1279)][x(540)](d=>d.id===u));if(a[x(461)]===0)return null;const f=a[x(1189)](r[x(259)][x(186)]||"");let s;if(f===-1)s=0;else if(f===a[x(461)]-1){if(!o)return null;s=0}else s=f+1;return e(u=>{const d=x;u.root[d(1927)]=t}),n()[x(1724)](a[s]),a[s]},prevSiblingCanvas:(t,o=!1)=>{const x=c,r=n(),i=r[x(259)].siblingGroups?.[x(1682)](u=>u.id===t);if(!i||i[x(939)][x(461)]===0)return null;const a=i[x(939)][x(1027)](u=>r[x(259)][x(1279)][x(540)](d=>d.id===u));if(a[x(461)]===0)return null;const f=a[x(1189)](r[x(259)].currentCanvasId||"");let s;if(f===-1)s=a[x(461)]-1;else if(f===0){if(!o)return null;s=a[x(461)]-1}else s=f-1;return e(u=>{const d=x;u[d(259)][d(1927)]=t}),n().switchCanvas(a[s]),a[s]},gotoSiblingCanvas:(t,o)=>{const x=c,r=n(),i=r[x(259)].siblingGroups?.[x(1682)](f=>f.id===t);if(!i)return null;const a=i[x(939)][x(1027)](f=>r.root[x(1279)].some(s=>s.id===f));return o<0||o>=a[x(461)]?null:(e(f=>{const s=x;f.root[s(1927)]=t}),n()[x(1724)](a[o]),a[o])},getSiblingGroupsByCanvas:t=>{const o=c;return(n()[o(259)][o(1957)]||[])[o(1027)](r=>r[o(939)].includes(t))},setActiveSiblingGroup:t=>{e(o=>{const x=_0x1d61;if(t===null){o[x(259)][x(1927)]=null;return}(o[x(259)].siblingGroups||[])[x(540)](i=>i.id===t)&&(o[x(259)].activeSiblingGroupId=t)})},jumpToCanvas:t=>{const o=c,x=n();if(!x[o(259)][o(1279)][o(540)](i=>i.id===t)||x[o(259)][o(186)]===t)return;const r=x[o(259)][o(186)];r&&e(i=>{const a=o;i[a(259)][a(1816)]||(i[a(259)].navigationStack=[]),i[a(259)].navigationStack[a(1955)](r)}),n()[o(1724)](t)},goBack:()=>{const t=c,o=n();if((o[t(259)][t(1816)]||[])[t(461)]===0)return null;let r=null;const i=new Set(o[t(259)][t(1279)][t(1186)](a=>a.id));return e(a=>{const f=t;for(;a[f(259)].navigationStack&&a[f(259)][f(1816)][f(461)]>0;){const s=a[f(259)][f(1816)][f(404)]();if(i.has(s)){r=s;break}}}),r&&n()[t(1724)](r),r},clearNavigationStack:()=>{e(t=>{const o=_0x1d61;t[o(259)][o(1816)]=[]})},setSelectedNodeIds:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](i=>i.id===o[x(259)][x(186)]);r&&(r[x(250)]=t,o.selectedNodeIds=t)})},addSelectedNodeId:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)].find(i=>i.id===o.root[x(186)]);r&&!r.selectedNodeIds[x(1486)](t)&&(r[x(250)][x(1955)](t),o[x(250)]=r[x(250)])})},removeSelectedNodeId:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](i=>i.id===o[x(259)][x(186)]);r&&(r[x(250)]=r[x(250)].filter(i=>i!==t),o[x(250)]=r[x(250)])})},clearSelectedNodeIds:()=>{e(t=>{const o=_0x1d61,x=t[o(259)].canvases[o(1682)](r=>r.id===t[o(259)][o(186)]);x&&(x[o(250)]=[],t[o(250)]=[])})},addNode:(t,o=!0)=>{e(x=>{const r=_0x1d61,i=x[r(259)][r(1279)].find(f=>f.id===x.root.currentCanvasId);if(!i)return;const a={...t,id:t.id||Me[r(467)]()};i[r(425)][r(1955)](a),x[r(425)]=i[r(425)],o&&(i[r(1669)]=a.id,x[r(1669)]=a.id,i[r(980)][r(1248)][r(1955)](p0(r(954),a.id)),x[r(980)]=i.history)})},updateNode:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)].canvases.find(f=>f.id===x.root[r(186)]);if(!i)return;const a=i[r(425)][r(1682)](f=>f.id===t);a&&(o[r(307)]&&Object[r(1841)](a[r(307)],o[r(307)]),o[r(1345)]&&(a.contentInfo={...a.contentInfo,...o[r(1345)]}),o.name&&(a[r(1123)]=o[r(1123)]),o[r(1396)]&&Object[r(1841)](a[r(1396)],o[r(1396)]),o[r(1377)]&&(a[r(1377)]=o[r(1377)]),i[r(980)][r(1248)][r(1955)](p0(r(574),t,o)),x[r(980)]=i[r(980)],x[r(425)]=i.nodes)})},updateNodeStyle:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)][r(1279)][r(1682)](f=>f.id===x[r(259)][r(186)]);if(!i)return;const a=i[r(425)][r(1682)](f=>f.id===t);a&&(Object[r(1841)](a[r(307)],o),i[r(980)][r(1248)][r(1955)](p0(r(574),t,{normalStyle:o})),x.history=i[r(980)],x[r(425)]=i[r(425)])})},updateNodeContent:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)].canvases[r(1682)](f=>f.id===x.root[r(186)]);if(!i)return;const a=i[r(425)][r(1682)](f=>f.id===t);a&&(a.contentInfo={...a[r(1345)],...o},i[r(980)][r(1248)].push(p0(r(574),t,{contentInfo:o})),x[r(980)]=i[r(980)],x.nodes=i.nodes)})},updateNodeControl:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)][r(1279)][r(1682)](f=>f.id===x[r(259)][r(186)]);if(!i)return;const a=i.nodes.find(f=>f.id===t);a&&(Object[r(1841)](a.controlInfo,o),i[r(980)].past[r(1955)](p0(r(574),t,{controlInfo:o})),x[r(980)]=i[r(980)],x[r(425)]=i[r(425)])})},removeNode:t=>{e(o=>{const x=_0x1d61,r=o.root[x(1279)].find(a=>a.id===o[x(259)][x(186)]);if(!r)return;const i=r.nodes[x(1780)](a=>a.id===t);i!==-1&&(r.nodes[x(802)](i,1),o.nodes=r[x(425)],r.selectedNodeId===t&&(r.selectedNodeId=null,o[x(1669)]=null,r[x(1200)]=null,o[x(1200)]=null),r[x(250)]=r[x(250)][x(1027)](a=>a!==t),o[x(250)]=r[x(250)],r[x(980)][x(1248)][x(1955)](p0(x(1907),t)),o.history=r[x(980)])})},selectNode:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](i=>i.id===o[x(259)][x(186)]);r&&(r[x(1669)]=t,o[x(1669)]=t,r.selectedStatusId=null,o[x(1200)]=null,t&&(r.history[x(1248)][x(1955)](p0("NODE_SELECT",t)),o[x(980)]=r[x(980)]))})},bringToFront:t=>{e(o=>{const x=_0x1d61,r=o[x(259)].canvases[x(1682)](f=>f.id===o[x(259)][x(186)]);if(!r)return;const i=r[x(425)].findIndex(f=>f.id===t);if(i===-1||i===r[x(425)][x(461)]-1)return;const[a]=r.nodes[x(802)](i,1);r[x(425)][x(1955)](a),o[x(425)]=r[x(425)],r.history[x(1248)].push(p0(x(574),t,{zOrder:"front"})),o[x(980)]=r[x(980)]})},sendToBack:t=>{e(o=>{const x=_0x1d61,r=o[x(259)].canvases[x(1682)](f=>f.id===o[x(259)][x(186)]);if(!r)return;const i=r.nodes.findIndex(f=>f.id===t);if(i<=0)return;const[a]=r[x(425)][x(802)](i,1);r[x(425)].unshift(a),o.nodes=r[x(425)],r.history[x(1248)][x(1955)](p0(x(574),t,{zOrder:x(903)})),o[x(980)]=r[x(980)]})},addStatus:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)].canvases[r(1682)](s=>s.id===x.root.currentCanvasId);if(!i)return;const a=i[r(425)][r(1682)](s=>s.id===t);if(!a)return;const f={...o,id:Me[r(467)]()};a[r(1345)][r(273)][r(1955)](f),i.history[r(1248)][r(1955)](p0(r(896),t,{statusId:f.id})),x.history=i[r(980)]})},removeStatus:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(259)][r(1279)][r(1682)](s=>s.id===x[r(259)][r(186)]);if(!i)return;const a=i[r(425)][r(1682)](s=>s.id===t);if(!a)return;const f=a[r(1345)].statusList[r(1780)](s=>s.id===o);f!==-1&&(a[r(1345)][r(273)][r(802)](f,1),a.contentInfo[r(1020)]===o&&(a[r(1345)][r(1020)]=void 0),i[r(1200)]===o&&(i[r(1200)]=null,x[r(1200)]=null))})},updateStatus:(t,o,x)=>{e(r=>{const i=_0x1d61,a=r[i(259)][i(1279)][i(1682)](u=>u.id===r[i(259)][i(186)]);if(!a)return;const f=a[i(425)][i(1682)](u=>u.id===t);if(!f)return;const s=f[i(1345)][i(273)].find(u=>u.id===o);s&&Object[i(1841)](s,x)})},selectStatus:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](i=>i.id===o[x(259)][x(186)]);r&&(r[x(1200)]=t,o.selectedStatusId=t)})},evaluateCurrentStatus:(t,o)=>{const x=c,r=n(),i=r[x(259)].canvases.find(s=>s.id===r[x(259)][x(186)]);if(!i)return;const a=i[x(425)][x(1682)](s=>s.id===t);if(!a)return;const{dataPool:f}=n();for(const s of a[x(1345)].statusList)if(Lx(s,o,f))return s.id},addDataPoolItem:t=>{const o=Me.nanoid();return e(x=>{const r=_0x1d61;let i={};t[r(741)]&&typeof t[r(741)]===r(448)&&(Array[r(1021)](t[r(741)])?i=t[r(741)]:i=t.sample),x[r(934)][r(1955)]({...t,id:o,sample:i})}),o},updateDataPoolItem:(t,o)=>{e(x=>{const r=_0x1d61,i=x.dataPool.find(a=>a.id===t);i&&(o[r(1123)]!==void 0&&(i[r(1123)]=o[r(1123)]),o[r(741)]!==void 0&&(o[r(741)]&&typeof o[r(741)]===r(448)?i[r(741)]=o[r(741)]:i[r(741)]={}))})},removeDataPoolItem:t=>{e(o=>{const x=_0x1d61,r=o.dataPool[x(1780)](i=>i.id===t);if(r!==-1){o[x(934)][x(802)](r,1);for(const i of o[x(259)][x(1279)])cr(i[x(425)],t)}})},setDataPool:t=>{e(o=>{const x=_0x1d61;o[x(934)]=t[x(1186)](r=>{const i=x;let a={};return r[i(741)]&&typeof r[i(741)]===i(448)&&(a=r[i(741)]),{...r,sample:a}})})},setEventFlow:t=>{e(o=>{const x=_0x1d61;o[x(567)]={eventBlocks:t[x(676)]??[],eventRoots:t[x(869)]??[],editingEventRootId:t[x(1661)]??null,isEditingEventFlow:t[x(318)]??!1}})},setExternalHandlerCatalog:t=>{e(o=>{const x=_0x1d61,r=new Set;o[x(1387)]=[];for(const i of t){const a=String(i[x(387)]??"")[x(1431)]();!a||r[x(806)](a)||(r[x(1742)](a),o[x(1387)][x(1955)]({key:a,label:String(i[x(772)]??"")[x(1431)]()||a,description:i[x(1344)]}))}})},addMaterial:t=>{e(o=>{const x=_0x1d61;if(o.materials[x(540)](a=>a[x(1123)]===t[x(1123)]))return;const i={...t,id:Me[x(467)]()};o.materials.push(i)})},updateMaterial:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(1679)][r(1682)](a=>a.id===t);i&&Object.assign(i,o)})},removeMaterial:t=>{e(o=>{const x=_0x1d61,r=o[x(1679)][x(1780)](i=>i.id===t);r!==-1&&o[x(1679)][x(802)](r,1)})},setViewport:t=>{e(o=>{const x=_0x1d61,r=o.root[x(1279)].find(i=>i.id===o[x(259)][x(186)]);r&&(Object[x(1841)](r.viewport,t),o[x(447)]=r[x(447)])})},setCanvasConfig:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](i=>i.id===o[x(259)][x(186)]);r&&(r[x(1386)]={...r[x(1386)],...t},o[x(202)]=r[x(1386)])})},setMode:t=>{e(o=>{const x=_0x1d61;o[x(483)]=t})},startLineDrawing:t=>{e(o=>{const x=_0x1d61;o[x(483)]=x(1665),o.lineDrawing={isDrawing:!0,material:t,startPoint:null,endPoint:null}})},updateLineDrawing:t=>{e(o=>{const x=_0x1d61;o.lineDrawing[x(568)]&&(o.lineDrawing[x(589)]=t)})},endLineDrawing:()=>{e(t=>{const o=_0x1d61;t[o(483)]=o(718),t[o(1944)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{e(t=>{const o=_0x1d61;t[o(483)]=o(718),t.lineDrawing={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{e(t=>{const o=_0x1d61,x=t[o(259)][o(1279)][o(1682)](i=>i.id===t[o(259)].currentCanvasId);if(!x)return;const r=x[o(980)][o(1248)][o(404)]();r&&(x.history[o(1599)][o(1955)](r),t[o(980)]=x[o(980)])})},redo:()=>{e(t=>{const o=_0x1d61,x=t.root.canvases[o(1682)](i=>i.id===t.root[o(186)]);if(!x)return;const r=x.history[o(1599)].pop();r&&(x[o(980)].past[o(1955)](r),t[o(980)]=x[o(980)])})},recordEvent:t=>{e(o=>{const x=_0x1d61,r=o[x(259)][x(1279)][x(1682)](i=>i.id===o.root[x(186)]);r&&(r[x(980)].past[x(1955)](t),r[x(980)][x(1599)]=[],o[x(980)]=r[x(980)])})},exportScheme:()=>{const t=c,o=n(),{activeSiblingGroupId:x,navigationStack:r,...i}=o[t(259)];return{version:t(1466),root:i,materials:o[t(1679)],dataPool:o[t(934)],eventFlow:o[t(567)],metadata:{name:o[t(259)][t(1123)],description:"",createdAt:new Date()[t(1487)](),updatedAt:new Date()[t(1487)]()}}},importScheme:t=>{e(o=>{const x=_0x1d61;if(t[x(259)]){if(o[x(259)]=t[x(259)],!o.root[x(1957)])o[x(259)].siblingGroups=[];else{const i=new Set(o[x(259)][x(1279)][x(1186)](a=>a.id));for(const a of o[x(259)][x(1957)])a[x(939)]=a[x(939)][x(1027)](f=>i[x(806)](f))}o.root[x(1927)]=null,o[x(259)].navigationStack=[],o[x(934)]=t[x(934)]??[],t.eventFlow&&(o.eventFlow={eventBlocks:t[x(567)][x(676)]??[],eventRoots:t.eventFlow[x(869)]??[],editingEventRootId:t.eventFlow.editingEventRootId??null,isEditingEventFlow:t[x(567)].isEditingEventFlow??!1});const r=o[x(259)].canvases[x(1682)](i=>i.id===o[x(259)][x(186)])||o[x(259)][x(1279)][0];r&&(o[x(259)][x(186)]=r.id,o.nodes=r[x(425)],o.canvas=r[x(1386)],o[x(447)]=r.viewport,o.selectedNodeId=r.selectedNodeId,o[x(250)]=r[x(250)],o[x(1200)]=r[x(1200)],o.history=r.history)}else{const r=Sx();r[x(425)]=t[x(425)]||[],o[x(259)][x(1279)]=[r],o[x(259)][x(186)]=r.id,o[x(259)][x(1957)]=[],o.root.activeSiblingGroupId=null,o[x(259)][x(1816)]=[],o[x(934)]=t.dataPool??[],t.eventFlow&&(o.eventFlow={eventBlocks:t[x(567)].eventBlocks??[],eventRoots:t.eventFlow[x(869)]??[],editingEventRootId:t[x(567)][x(1661)]??null,isEditingEventFlow:t.eventFlow[x(318)]??!1}),o[x(425)]=r[x(425)],o.canvas=r[x(1386)],o[x(447)]=t[x(447)]||r[x(447)],o[x(1669)]=null,o[x(1200)]=null,o[x(980)]={past:[],future:[]}}for(const r of o[x(259)][x(1279)])Nx(r[x(425)])})},exportCanvas:t=>{const o=c,x=n(),r=t||x[o(259)].currentCanvasId,i=x[o(259)].canvases[o(1682)](a=>a.id===r);if(!i)throw new Error(o(1179)+r+" 不存在");return{version:"2.0.0",canvas:i,metadata:{name:i[o(1123)],description:"",exportedAt:new Date()[o(1487)]()}}},importCanvas:(t,o)=>{e(x=>{const r=_0x1d61,i=t[r(202)],a=o||x[r(259)][r(186)],f=x[r(259)][r(1279)][r(1682)](s=>s.id===a);if(f)f[r(1123)]=i[r(1123)],f[r(425)]=i[r(425)]||[],f[r(1386)]=i.canvasConfig,f.viewport=i.viewport,f.selectedNodeId=null,f[r(250)]=[],f[r(1200)]=null,f.history=i[r(980)]||{past:[],future:[]},a===x[r(259)][r(186)]&&(x[r(425)]=f[r(425)],x.canvas=f[r(1386)],x[r(447)]=f.viewport,x.selectedNodeId=f[r(1669)],x.selectedNodeIds=f[r(250)],x[r(1200)]=f[r(1200)],x[r(980)]=f[r(980)]);else{const s={...i,id:Me[r(467)](),selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null};x[r(259)][r(1279)].push(s),x[r(259)][r(186)]=s.id,x.nodes=s.nodes,x.canvas=s.canvasConfig,x[r(447)]=s.viewport,x[r(1669)]=s[r(1669)],x.selectedNodeIds=s[r(250)],x[r(1200)]=s[r(1200)],x[r(980)]=s[r(980)]}for(const s of x[r(259)][r(1279)])Nx(s[r(425)])})},addEventBlock:t=>{const o=c,x=Me[o(467)]();return e(r=>{const i=o;r[i(567)][i(676)][i(1955)]({...t,id:x})}),x},upsertEventBlock:t=>{e(o=>{const x=_0x1d61,r=o[x(567)][x(676)][x(1780)](i=>i.id===t.id);r!==-1?o[x(567)].eventBlocks[r]={...t}:o.eventFlow[x(676)][x(1955)]({...t})})},updateEventBlock:(t,o)=>{e(x=>{const r=_0x1d61,i=x[r(567)][r(676)][r(1682)](a=>a.id===t);i&&Object[r(1841)](i,o)})},removeEventBlock:t=>{e(o=>{const x=_0x1d61,r=o[x(567)][x(676)][x(1780)](i=>i.id===t);r!==-1&&o[x(567)][x(676)][x(802)](r,1)})},addEventRoot:t=>{const o=c,x=Me[o(467)]();return e(r=>{const i=o;r[i(567)][i(869)][i(1955)]({...t,id:x})}),x},updateEventRoot:(t,o)=>{e(x=>{const r=_0x1d61,i=x.eventFlow[r(869)].find(a=>a.id===t);i&&Object[r(1841)](i,o)})},removeEventRoot:t=>{e(o=>{const x=_0x1d61,r=o.eventFlow[x(869)].findIndex(i=>i.id===t);r!==-1&&o.eventFlow[x(869)][x(802)](r,1)})},setEditingEventRoot:t=>{e(o=>{const x=_0x1d61;o[x(567)][x(1661)]=t})},setIsEditingEventFlow:t=>{e(o=>{const x=_0x1d61;o[x(567)].isEditingEventFlow=t})},bindNodeEvent:(t,o,x)=>{const r=Me.nanoid();return e(i=>{i[_0x1d61(567)].eventRoots.push({id:r,bindNodeId:t,eventType:o,flowData:x,enabled:!0})}),r},unbindNodeEvent:(t,o,x)=>{e(r=>{const i=_0x1d61,a=r[i(567)][i(869)][i(1780)](f=>{const s=i;return f[s(1575)]!==t||f[s(1271)]!==o?!1:o===s(1647)?(f[s(1844)]||"")[s(1431)]()===(x||"")[s(1431)]():!0});a!==-1&&r[i(567)][i(869)][i(802)](a,1)})},getNodeEventRoots:t=>{const o=c;return n()[o(567)][o(869)][o(1027)](x=>x[o(1575)]===t)}}))),lr=[{id:Me.nanoid(),name:"矩形",type:"IMAGE",src:c(1721)+encodeURIComponent(c(317))},{id:Me.nanoid(),name:"圆形",type:"IMAGE",src:"data:image/svg+xml,"+encodeURIComponent(c(1146))},{id:Me[c(467)](),name:c(1297),type:c(873),src:c(1721)+encodeURIComponent(c(1269))},{id:Me[c(467)](),name:"阀门",type:c(873),src:c(1721)+encodeURIComponent(c(1201))},{id:Me.nanoid(),name:"泵",type:"IMAGE",src:c(1721)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="35" r="20" fill="#bfbfbf" stroke="#595959" stroke-width="2"/><rect x="25" y="5" width="10" height="15" fill="#595959"/><path d="M30 20 L30 35 M20 30 Q30 45 40 30" stroke="#595959" stroke-width="2" fill="none"/></svg>')},{id:Me[c(467)](),name:"罐体",type:c(873),src:"data:image/svg+xml,"+encodeURIComponent(c(864))},{id:Me.nanoid(),name:c(856),type:c(668),content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:c(1789),color:c(1819),textAlign:"left"},valueStyle:{fontSize:14,fontWeight:c(131),color:c(1614),textAlign:c(548)}}},{id:Me[c(467)](),name:"线条",type:c(1743),config:{thickness:2,lineWeight:2,color:"#262626",lineType:c(1151)}}],kx=e=>({id:Me[c(467)](),name:c(169),expression:c(528),material:{...e,id:Me.nanoid()},boundDatasetId:null}),fr=(e,n,t)=>{const o=c;if(t?.[o(893)]===o(1206)&&t[o(141)]?.[o(425)]){const x=t[o(141)][o(425)].map(u=>({...u,id:Me[o(467)]()}));let r=1/0,i=1/0,a=-1/0,f=-1/0;x[o(1956)](u=>{const d=o,h=u[d(307)].x||0,y=u[d(307)].y||0,v=u[d(307)][d(737)]||0,g=u[d(307)][d(522)]||0;r=Math.min(r,h),i=Math[d(407)](i,y),a=Math[d(630)](a,h+v),f=Math[d(630)](f,y+g)});const s=x[o(1186)](u=>({...u,normalStyle:{...u[o(307)],x:(u[o(307)].x||0)-r,y:(u[o(307)].y||0)-i,scale:void 0}}));return{id:Me.nanoid(),name:t[o(1123)]||o(1706),type:o(889),normalStyle:{width:a-r,height:f-i,x:e,y:n},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:s}}return{id:Me[o(467)](),name:o(146),type:o(131),normalStyle:{width:120,height:100,x:e,y:n,background:"transparent",padding:8},contentInfo:{statusList:t?[kx(t)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:fn}=C[c(706)],{Text:yt}=C[c(749)],ur=({onUploadSvg:e})=>{const n=c,{materials:t,addMaterial:o,removeMaterial:x,selectedStatusId:r,selectStatus:i,mode:a,lineDrawing:f,startLineDrawing:s,cancelLineDrawing:u}=Xe(),[d,h]=L.useState([n(1010),n(428),n(513),n(1036)]),y=b=>{const m=n,z=new FileReader;return z[m(839)]=p=>{const S=m,O=p[S(1385)]?.[S(1559)];o({name:b[S(1123)].replace(".svg",""),type:S(873),src:O})},z[m(1141)](b),!1},v={basic:t.filter(b=>["矩形","圆形",n(1297)].includes(b[n(1123)])),device:t[n(1027)](b=>["阀门","泵","罐体"][n(1486)](b[n(1123)])||b.type==="IMAGE"&&!["矩形","圆形","圆角矩形"][n(1486)](b[n(1123)])&&b[n(1123)]!==n(824)),text:t[n(1027)](b=>b[n(893)]===n(668)),line:t[n(1027)](b=>b[n(893)]===n(1743)),group:t[n(1027)](b=>b[n(893)]===n(1206)&&b[n(141)]?.[n(425)]),custom:t.filter(b=>b.type===n(1206)&&!b[n(141)]?.[n(425)]||b[n(893)]===n(873)&&!["矩形","圆形",n(1297),"阀门","泵","罐体"][n(1486)](b.name))},g=(b,m)=>{const z=n;b[z(661)][z(204)]=z(201),b[z(661)][z(1707)](z(1462),JSON[z(595)](m));const p=b[z(1441)][z(881)](z(1406));p&&b.dataTransfer[z(1210)](p,20,20)},w=b=>{const m=n;b[m(893)]===m(1743)&&s(b)},M=(b,m=!1,z=n(1304))=>{const p=n,S=m===!0,O=a===p(1665)&&S&&f[p(277)]?.id===b.id;return l.jsx(C[p(1492)].Item,{draggable:!S,onDragStart:G=>g(G,b),onClick:()=>S&&w(b),className:p(1854)+p(S?689:1349)+p(615)+p(1587)+p(615)+(O?p(535):"")+p(1594),actions:[S?l[p(1791)](C[p(1804)],{type:"text",size:p(1171),icon:l[p(1791)](fe[p(1009)],{}),onClick:G=>{G.stopPropagation(),w(b)},children:"绘制"},p(410)):null,l[p(1791)](C[p(1804)],{type:"text",size:p(1171),danger:!0,icon:l[p(1791)](fe[p(371)],{}),onClick:G=>{G[p(1223)](),x(b.id)}},p(579))][p(1027)](Boolean),children:l[p(584)](p(1517),{className:"flex items-center gap-3 w-full py-2 "+(S?"":p(804)),children:[l[p(1791)](p(1517),{className:p(375)+z,children:b[p(893)]===p(873)&&b.src?l[p(1791)](C[p(1923)],{src:b[p(866)],alt:b[p(1123)],width:40,height:40,preview:!1}):b[p(893)]==="TEXT"?l.jsx("span",{className:"text-xs text-gray-500",children:"T"}):b[p(893)]===p(1743)?l[p(1791)](p(1517),{className:p(1666)}):b[p(893)]===p(1206)&&b[p(141)]?.nodes?l.jsx(p(158),{className:"text-xs text-blue-500 font-bold",children:"G"}):l[p(1791)](p(158),{className:p(1597),children:"?"})}),l[p(584)]("div",{className:p(549),children:[l[p(1791)](yt,{strong:!0,className:"block truncate",children:b[p(1123)]}),l[p(584)](p(1517),{className:p(159),children:[l[p(1791)](yt,{type:p(1456),className:p(341),children:b[p(893)]}),O&&l[p(1791)](C.Tag,{color:p(297),className:"text-xs",children:p(1606)})]})]})]})},b.id)};return l[n(584)](n(1517),{className:n(575),children:[l[n(584)](n(1517),{className:n(225),children:[l[n(1791)]("h3",{className:n(1824),children:"物料库"}),l[n(1791)](yt,{type:n(1456),className:n(1276),children:n(628)})]}),l[n(1791)]("div",{className:"p-3 border-b border-gray-200",children:e?l[n(1791)](C.Button,{icon:l.jsx(fe.UploadOutlined,{}),block:!0,type:n(1733),onClick:()=>{const b=n;e()[b(886)](m=>{const z=b;console[z(922)](z(314),m)})},children:"上传 SVG"}):l[n(1791)](C[n(833)],{accept:n(734),beforeUpload:y,showUploadList:!1,children:l[n(1791)](C.Button,{icon:l[n(1791)](fe[n(1032)],{}),block:!0,type:n(1733),children:"上传 SVG"})})}),l.jsx(n(1517),{className:n(884),children:l[n(584)](C.Collapse,{activeKey:d,onChange:b=>h(b),ghost:!0,expandIconPosition:n(306),children:[l.jsx(fn,{header:n(372),children:l[n(1791)](C[n(1492)],{dataSource:v[n(1010)],renderItem:b=>M(b,!1),locale:{emptyText:l.jsx(C.Empty,{description:n(1417),image:C.Empty.PRESENTED_IMAGE_SIMPLE})}})},n(1010)),l[n(1791)](fn,{header:n(1686),children:l[n(1791)](C.List,{dataSource:v[n(428)],renderItem:b=>M(b,!1,n(665)),locale:{emptyText:l.jsx(C[n(1821)],{description:n(1417),image:C[n(1821)].PRESENTED_IMAGE_SIMPLE})}})},n(428)),l[n(1791)](fn,{header:"文本",children:l.jsx(C[n(1492)],{dataSource:v.text,renderItem:b=>M(b,!1),locale:{emptyText:l[n(1791)](C.Empty,{description:n(1417),image:C[n(1821)][n(1451)]})}})},n(513)),l.jsxs(fn,{header:l[n(584)](n(1517),{className:n(1266),children:[l[n(1791)](n(158),{children:"线条"}),a===n(1665)&&l[n(1791)](C[n(389)],{color:n(297),className:n(341),children:"绘制模式"})]}),children:[l[n(1791)](C[n(1492)],{dataSource:v.line,renderItem:b=>M(b,!0),locale:{emptyText:l[n(1791)](C[n(1821)],{description:n(1417),image:C[n(1821)][n(1451)]})}}),a===n(1665)&&l[n(584)](n(1517),{className:n(731),children:[l.jsx(n(1517),{children:"点击线条物料开始绘制"}),l.jsx(n(1517),{children:"点击画布确定起点和终点"})]})]},"line"),v[n(889)][n(461)]>0&&l.jsx(fn,{header:"群组",children:l.jsx(C[n(1492)],{dataSource:v[n(889)],renderItem:b=>M(b,!1),locale:{emptyText:l[n(1791)](C.Empty,{description:"暂无物料",image:C[n(1821)][n(1451)]})}})},"group"),v[n(992)][n(461)]>0&&l.jsx(fn,{header:n(824),children:l[n(1791)](C[n(1492)],{dataSource:v[n(992)],renderItem:b=>M(b,!1),locale:{emptyText:l.jsx(C.Empty,{description:"暂无物料",image:C[n(1821)][n(1451)]})}})},n(992))]})}),l[n(1791)]("div",{className:"p-3 border-t border-gray-200 bg-gray-50",children:l[n(1791)](yt,{type:"secondary",className:n(341),children:a===n(1665)?l[n(1791)](l[n(611)],{children:n(1512)}):l[n(1791)](l.Fragment,{children:n(334)})})})]})};var Px=function(e,n){const t=c;return Px=Object[t(210)]||{__proto__:[]}instanceof Array&&function(o,x){o.__proto__=x}||function(o,x){const r=t;for(var i in x)Object[r(1319)][r(835)][r(573)](x,i)&&(o[i]=x[i])},Px(e,n)};function Y0(e,n){const t=c;if(typeof n!="function"&&n!==null)throw new TypeError(t(1874)+String(n)+t(1173));Px(e,n);function o(){const x=t;this[x(602)]=e}e[t(1319)]=n===null?Object[t(945)](n):(o[t(1319)]=n[t(1319)],new o)}function Ns(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 a=_0x1d61;function f(d){try{u(o.next(d))}catch(h){i(h)}}function s(d){const h=_0x1d61;try{u(o[h(221)](d))}catch(y){i(y)}}function u(d){const h=_0x1d61;d[h(688)]?r(d[h(699)]):x(d.value).then(f,s)}u((o=o.apply(e,n||[]))[a(597)]())})}function dr(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(945)]((typeof Iterator===t(1719)?Iterator:Object).prototype);return a[t(597)]=f(0),a[t(221)]=f(1),a.return=f(2),typeof Symbol=="function"&&(a[Symbol[t(217)]]=function(){return this}),a;function f(u){return function(d){return s([u,d])}}function s(u){const d=t;if(x)throw new TypeError(d(1148));for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(x=1,r&&(i=u[0]&2?r[d(1521)]:u[0]?r[d(221)]||((i=r[d(1521)])&&i[d(573)](r),0):r[d(597)])&&!(i=i[d(573)](r,u[1]))[d(688)])return i;switch(r=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o[d(772)]++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o[d(608)][d(404)](),o[d(1511)][d(404)]();continue;default:if(i=o[d(1511)],!(i=i[d(461)]>0&&i[i[d(461)]-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o[d(772)]=u[1];break}if(u[0]===6&&o.label<i[1]){o[d(772)]=i[1],i=u;break}if(i&&o.label<i[2]){o[d(772)]=i[2],o[d(608)].push(u);break}i[2]&&o[d(608)][d(404)](),o[d(1511)][d(404)]();continue}u=n.call(e,o)}catch(h){u=[6,h],r=0}finally{x=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function un(e){const n=c;var t=typeof Symbol=="function"&&Symbol[n(217)],o=t&&e[t],x=0;if(o)return o[n(573)](e);if(e&&typeof e[n(461)]===n(663))return{next:function(){return e&&x>=e[n(461)]&&(e=void 0),{value:e&&e[x++],done:!e}}};throw new TypeError(t?"Object is not iterable.":n(1718))}function mt(e,n){const t=c;var o=typeof Symbol===t(1719)&&e[Symbol[t(217)]];if(!o)return e;var x=o[t(573)](e),r,i=[],a;try{for(;(n===void 0||n-- >0)&&!(r=x[t(597)]())[t(688)];)i[t(1955)](r[t(699)])}catch(f){a={error:f}}finally{try{r&&!r[t(688)]&&(o=x[t(1521)])&&o[t(573)](x)}finally{if(a)throw a[t(1842)]}}return i}function bt(e,n,t){const o=c;if(t||arguments.length===2)for(var x=0,r=n.length,i;x<r;x++)(i||!(x in n))&&(i||(i=Array[o(1319)][o(1337)][o(573)](n,0,x)),i[x]=n[x]);return e.concat(i||Array[o(1319)][o(1337)][o(573)](n))}function dn(e){return this instanceof dn?(this.v=e,this):new dn(e)}function Ss(e,n,t){const o=c;if(!Symbol.asyncIterator)throw new TypeError(o(810));var x=t.apply(e,n||[]),r,i=[];return r=Object[o(945)]((typeof AsyncIterator===o(1719)?AsyncIterator:Object)[o(1319)]),f(o(597)),f(o(221)),f("return",a),r[Symbol[o(723)]]=function(){return this},r;function a(v){return function(g){const w=_0x1d61;return Promise[w(943)](g)[w(1627)](v,h)}}function f(v,g){x[v]&&(r[v]=function(w){return new Promise(function(M,b){i[_0x1d61(1955)]([v,w,M,b])>1||s(v,w)})},g&&(r[v]=g(r[v])))}function s(v,g){try{u(x[v](g))}catch(w){y(i[0][3],w)}}function u(v){const g=o;v[g(699)]instanceof dn?Promise[g(943)](v[g(699)].v).then(d,h):y(i[0][2],v)}function d(v){s(o(597),v)}function h(v){s(o(221),v)}function y(v,g){const w=o;v(g),i[w(1461)](),i[w(461)]&&s(i[0][0],i[0][1])}}function ks(e){const n=c;if(!Symbol.asyncIterator)throw new TypeError(n(810));var t=e[Symbol[n(723)]],o;return t?t[n(573)](e):(e=typeof un===n(1719)?un(e):e[Symbol[n(217)]](),o={},x(n(597)),x("throw"),x(n(1521)),o[Symbol.asyncIterator]=function(){return this},o);function x(i){o[i]=e[i]&&function(a){return new Promise(function(f,s){const u=_0x1d61;a=e[i](a),r(f,s,a.done,a[u(699)])})}}function r(i,a,f,s){const u=n;Promise[u(943)](s)[u(1627)](function(d){i({value:d,done:f})},a)}}typeof SuppressedError=="function"&&SuppressedError;function Oe(e){return typeof e===c(1719)}function Ix(e){const n=c;var t=function(x){const r=_0x1d61;Error[r(573)](x),x[r(695)]=new Error().stack},o=e(t);return o[n(1319)]=Object.create(Error[n(1319)]),o[n(1319)][n(602)]=o,o}var Ax=Ix(function(e){return function(t){const o=_0x1d61;e(this),this[o(208)]=t?t[o(461)]+` errors occurred during unsubscription:
3
- `+t[o(1186)](function(x,r){const i=o;return r+1+") "+x[i(1182)]()}).join(o(178)):"",this.name=o(1060),this[o(742)]=t}});function vt(e,n){const t=c;if(e){var o=e[t(1189)](n);0<=o&&e[t(802)](o,1)}}var Gn=(function(){const e=c;function n(t){const o=_0x1d61;this[o(828)]=t,this[o(581)]=!1,this[o(1286)]=null,this[o(269)]=null}return n[e(1319)][e(1926)]=function(){const t=e;var o,x,r,i,a;if(!this[t(581)]){this[t(581)]=!0;var f=this._parentage;if(f)if(this[t(1286)]=null,Array.isArray(f))try{for(var s=un(f),u=s.next();!u[t(688)];u=s.next()){var d=u[t(699)];d[t(1946)](this)}}catch(M){o={error:M}}finally{try{u&&!u.done&&(x=s[t(1521)])&&x[t(573)](s)}finally{if(o)throw o[t(1842)]}}else f.remove(this);var h=this.initialTeardown;if(Oe(h))try{h()}catch(M){a=M instanceof Ax?M[t(742)]:[M]}var y=this[t(269)];if(y){this[t(269)]=null;try{for(var v=un(y),g=v[t(597)]();!g.done;g=v.next()){var w=g[t(699)];try{yr(w)}catch(M){a=a??[],M instanceof Ax?a=bt(bt([],mt(a)),mt(M[t(742)])):a.push(M)}}}catch(M){r={error:M}}finally{try{g&&!g[t(688)]&&(i=v[t(1521)])&&i.call(v)}finally{if(r)throw r.error}}}if(a)throw new Ax(a)}},n[e(1319)][e(1742)]=function(t){const o=e;var x;if(t&&t!==this)if(this[o(581)])yr(t);else{if(t instanceof n){if(t[o(581)]||t[o(1899)](this))return;t._addParent(this)}(this[o(269)]=(x=this._finalizers)!==null&&x!==void 0?x:[])[o(1955)](t)}},n[e(1319)][e(1899)]=function(t){const o=e;var x=this[o(1286)];return x===t||Array[o(1021)](x)&&x[o(1486)](t)},n.prototype[e(841)]=function(t){const o=e;var x=this._parentage;this[o(1286)]=Array[o(1021)](x)?(x[o(1955)](t),x):x?[x,t]:t},n[e(1319)][e(1797)]=function(t){const o=e;var x=this[o(1286)];x===t?this[o(1286)]=null:Array[o(1021)](x)&&vt(x,t)},n[e(1319)][e(1946)]=function(t){const o=e;var x=this[o(269)];x&&vt(x,t),t instanceof n&&t[o(1797)](this)},n.EMPTY=(function(){const t=e;var o=new n;return o[t(581)]=!0,o})(),n})(),hr=Gn[c(380)];function gr(e){const n=c;return e instanceof Gn||e&&n(581)in e&&Oe(e[n(1946)])&&Oe(e[n(1742)])&&Oe(e[n(1926)])}function yr(e){const n=c;Oe(e)?e():e[n(1926)]()}var Ps={Promise:void 0},Is={setTimeout:function(e,n){const t=c;for(var o=[],x=2;x<arguments[t(461)];x++)o[x-2]=arguments[x];return setTimeout.apply(void 0,bt([e,n],mt(o)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function mr(e){Is[c(1105)](function(){throw e})}function br(){}function wt(e){e()}var Ex=(function(e){const n=c;Y0(t,e);function t(o){const x=_0x1d61;var r=e[x(573)](this)||this;return r[x(1635)]=!1,o?(r.destination=o,gr(o)&&o[x(1742)](r)):r[x(1696)]=js,r}return t.create=function(o,x,r){return new jx(o,x,r)},t[n(1319)][n(597)]=function(o){const x=n;this[x(1635)]||this[x(1073)](o)},t[n(1319)].error=function(o){const x=n;this.isStopped||(this[x(1635)]=!0,this[x(671)](o))},t[n(1319)].complete=function(){const o=n;this.isStopped||(this[o(1635)]=!0,this[o(1640)]())},t[n(1319)].unsubscribe=function(){const o=n;!this[o(581)]&&(this[o(1635)]=!0,e.prototype[o(1926)][o(573)](this),this[o(1696)]=null)},t[n(1319)][n(1073)]=function(o){const x=n;this[x(1696)][x(597)](o)},t.prototype[n(671)]=function(o){const x=n;try{this[x(1696)][x(1842)](o)}finally{this[x(1926)]()}},t.prototype[n(1640)]=function(){const o=n;try{this.destination.complete()}finally{this[o(1926)]()}},t})(Gn),As=(function(){const e=c;function n(t){const o=_0x1d61;this[o(1439)]=t}return n[e(1319)][e(597)]=function(t){const o=e;var x=this.partialObserver;if(x[o(597)])try{x[o(597)](t)}catch(r){pt(r)}},n[e(1319)].error=function(t){const o=e;var x=this[o(1439)];if(x.error)try{x[o(1842)](t)}catch(r){pt(r)}else pt(t)},n[e(1319)].complete=function(){const t=e;var o=this.partialObserver;if(o[t(1704)])try{o[t(1704)]()}catch(x){pt(x)}},n})(),jx=(function(e){Y0(n,e);function n(t,o,x){const r=_0x1d61;var i=e[r(573)](this)||this,a;return Oe(t)||!t?a={next:t??void 0,error:o??void 0,complete:x??void 0}:a=t,i[r(1696)]=new As(a),i}return n})(Ex);function pt(e){mr(e)}function Es(e){throw e}var js={closed:!0,next:br,error:Es,complete:br},Yx=(function(){const e=c;return typeof Symbol===e(1719)&&Symbol[e(1690)]||e(319)})();function vr(e){return e}function Ys(e){const n=c;return e[n(461)]===0?vr:e[n(461)]===1?e[0]:function(o){return e[n(1906)](function(r,i){return i(r)},o)}}var s0=(function(){const e=c;function n(t){const o=_0x1d61;t&&(this[o(1542)]=t)}return n[e(1319)].lift=function(t){const o=e;var x=new n;return x[o(1630)]=this,x[o(1953)]=t,x},n[e(1319)][e(811)]=function(t,o,x){var r=this,i=Os(t)?t:new jx(t,o,x);return wt(function(){const a=_0x1d61;var f=r,s=f.operator,u=f[a(1630)];i[a(1742)](s?s[a(573)](i,u):u?r[a(1542)](i):r[a(1447)](i))}),i},n.prototype[e(1447)]=function(t){const o=e;try{return this._subscribe(t)}catch(x){t[o(1842)](x)}},n[e(1319)][e(1956)]=function(t,o){var x=this;return o=wr(o),new o(function(r,i){const a=_0x1d61;var f=new jx({next:function(s){try{t(s)}catch(u){i(u),f.unsubscribe()}},error:i,complete:r});x[a(811)](f)})},n[e(1319)][e(1542)]=function(t){const o=e;var x;return(x=this[o(1630)])===null||x===void 0?void 0:x[o(811)](t)},n[e(1319)][Yx]=function(){return this},n[e(1319)].pipe=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return Ys(t)(this)},n[e(1319)].toPromise=function(t){var o=this;return t=wr(t),new t(function(x,r){const i=_0x1d61;var a;o[i(811)](function(f){return a=f},function(f){return r(f)},function(){return x(a)})})},n.create=function(t){return new n(t)},n})();function wr(e){const n=c;var t;return(t=e??Ps[n(1767)])!==null&&t!==void 0?t:Promise}function Us(e){const n=c;return e&&Oe(e.next)&&Oe(e.error)&&Oe(e[n(1704)])}function Os(e){return e&&e instanceof Ex||Us(e)&&gr(e)}function Gs(e){return Oe(e?.[c(1382)])}function R0(e){return function(n){const t=_0x1d61;if(Gs(n))return n[t(1382)](function(o){const x=t;try{return e(o,this)}catch(r){this[x(1842)](r)}});throw new TypeError("Unable to lift unknown Observable type")}}function J0(e,n,t,o,x){return new Hs(e,n,t,o,x)}var Hs=(function(e){const n=c;Y0(t,e);function t(o,x,r,i,a,f){const s=_0x1d61;var u=e.call(this,o)||this;return u[s(444)]=a,u[s(1869)]=f,u._next=x?function(d){try{x(d)}catch(h){o.error(h)}}:e[s(1319)][s(1073)],u[s(671)]=i?function(d){const h=s;try{i(d)}catch(y){o.error(y)}finally{this[h(1926)]()}}:e[s(1319)][s(671)],u[s(1640)]=r?function(){const d=s;try{r()}catch(h){o[d(1842)](h)}finally{this[d(1926)]()}}:e[s(1319)][s(1640)],u}return t[n(1319)][n(1926)]=function(){const o=n;var x;if(!this[o(1869)]||this.shouldUnsubscribe()){var r=this[o(581)];e[o(1319)][o(1926)][o(573)](this),!r&&((x=this[o(444)])===null||x===void 0||x.call(this))}},t})(Ex),Ts=Ix(function(e){return function(){const t=_0x1d61;e(this),this[t(1123)]=t(1095),this[t(208)]=t(830)}}),pr=(function(e){const n=c;Y0(t,e);function t(){const o=_0x1d61;var x=e[o(573)](this)||this;return x[o(581)]=!1,x.currentObservers=null,x.observers=[],x[o(1635)]=!1,x.hasError=!1,x[o(505)]=null,x}return t[n(1319)].lift=function(o){const x=n;var r=new zr(this,this);return r[x(1953)]=o,r},t[n(1319)][n(144)]=function(){if(this[n(581)])throw new Ts},t[n(1319)][n(597)]=function(o){var x=this;wt(function(){const r=_0x1d61;var i,a;if(x[r(144)](),!x[r(1635)]){!x.currentObservers&&(x.currentObservers=Array[r(598)](x[r(1015)]));try{for(var f=un(x[r(492)]),s=f[r(597)]();!s[r(688)];s=f.next()){var u=s[r(699)];u[r(597)](o)}}catch(d){i={error:d}}finally{try{s&&!s[r(688)]&&(a=f[r(1521)])&&a[r(573)](f)}finally{if(i)throw i.error}}}})},t.prototype[n(1842)]=function(o){var x=this;wt(function(){const r=_0x1d61;if(x[r(144)](),!x.isStopped){x[r(638)]=x[r(1635)]=!0,x[r(505)]=o;for(var i=x.observers;i[r(461)];)i[r(1461)]()[r(1842)](o)}})},t[n(1319)][n(1704)]=function(){var o=this;wt(function(){const x=_0x1d61;if(o[x(144)](),!o.isStopped){o[x(1635)]=!0;for(var r=o.observers;r[x(461)];)r[x(1461)]()[x(1704)]()}})},t.prototype[n(1926)]=function(){const o=n;this[o(1635)]=this[o(581)]=!0,this[o(1015)]=this[o(492)]=null},Object[n(1709)](t[n(1319)],"observed",{get:function(){const o=n;var x;return((x=this[o(1015)])===null||x===void 0?void 0:x[o(461)])>0},enumerable:!1,configurable:!0}),t[n(1319)][n(1447)]=function(o){const x=n;return this[x(144)](),e.prototype[x(1447)][x(573)](this,o)},t.prototype._subscribe=function(o){const x=n;return this[x(144)](),this[x(658)](o),this._innerSubscribe(o)},t[n(1319)][n(1645)]=function(o){const x=n;var r=this,i=this,a=i[x(638)],f=i[x(1635)],s=i[x(1015)];return a||f?hr:(this.currentObservers=null,s[x(1955)](o),new Gn(function(){r.currentObservers=null,vt(s,o)}))},t[n(1319)][n(658)]=function(o){const x=n;var r=this,i=r.hasError,a=r[x(505)],f=r[x(1635)];i?o.error(a):f&&o[x(1704)]()},t.prototype[n(431)]=function(){const o=n;var x=new s0;return x[o(1630)]=this,x},t[n(945)]=function(o,x){return new zr(o,x)},t})(s0),zr=(function(e){const n=c;Y0(t,e);function t(o,x){const r=_0x1d61;var i=e[r(573)](this)||this;return i[r(1696)]=o,i[r(1630)]=x,i}return t[n(1319)][n(597)]=function(o){const x=n;var r,i;(i=(r=this[x(1696)])===null||r===void 0?void 0:r.next)===null||i===void 0||i[x(573)](r,o)},t[n(1319)][n(1842)]=function(o){const x=n;var r,i;(i=(r=this[x(1696)])===null||r===void 0?void 0:r[x(1842)])===null||i===void 0||i[x(573)](r,o)},t[n(1319)][n(1704)]=function(){const o=n;var x,r;(r=(x=this[o(1696)])===null||x===void 0?void 0:x[o(1704)])===null||r===void 0||r[o(573)](x)},t[n(1319)][n(1542)]=function(o){const x=n;var r,i;return(i=(r=this[x(1630)])===null||r===void 0?void 0:r[x(811)](o))!==null&&i!==void 0?i:hr},t})(pr),Vs={now:function(){return Date[c(590)]()}},qs=(function(e){const n=c;Y0(t,e);function t(o,x){return e.call(this)||this}return t[n(1319)][n(761)]=function(o,x){return this},t})(Gn),Cr={setInterval:function(e,n){const t=c;for(var o=[],x=2;x<arguments.length;x++)o[x-2]=arguments[x];return setInterval[t(1829)](void 0,bt([e,n],mt(o)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Ws=(function(e){const n=c;Y0(t,e);function t(o,x){const r=_0x1d61;var i=e[r(573)](this,o,x)||this;return i.scheduler=o,i.work=x,i[r(874)]=!1,i}return t[n(1319)][n(761)]=function(o,x){const r=n;var i;if(x===void 0&&(x=0),this[r(581)])return this;this[r(1111)]=o;var a=this.id,f=this[r(1368)];return a!=null&&(this.id=this[r(1068)](f,a,x)),this.pending=!0,this.delay=x,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(f,this.id,x),this},t[n(1319)][n(1760)]=function(o,x,r){const i=n;return r===void 0&&(r=0),Cr[i(693)](o.flush[i(607)](o,this),r)},t[n(1319)][n(1068)]=function(o,x,r){const i=n;return r===void 0&&(r=0),r!=null&&this[i(572)]===r&&this[i(874)]===!1?x:(x!=null&&Cr[i(617)](x),void 0)},t[n(1319)][n(1648)]=function(o,x){const r=n;if(this.closed)return new Error(r(1586));this[r(874)]=!1;var i=this._execute(o,x);if(i)return i;this[r(874)]===!1&&this.id!=null&&(this.id=this[r(1068)](this[r(1368)],this.id,null))},t[n(1319)][n(650)]=function(o,x){const r=n;var i=!1,a;try{this[r(1149)](o)}catch(f){i=!0,a=f||new Error(r(1217))}if(i)return this.unsubscribe(),a},t[n(1319)].unsubscribe=function(){const o=n;if(!this[o(581)]){var x=this,r=x.id,i=x.scheduler,a=i[o(1638)];this[o(1149)]=this.state=this[o(1368)]=null,this[o(874)]=!1,vt(a,this),r!=null&&(this.id=this[o(1068)](i,r,null)),this[o(572)]=null,e[o(1319)][o(1926)].call(this)}},t})(qs),Mr=(function(){const e=c;function n(t,o){const x=_0x1d61;o===void 0&&(o=n.now),this[x(1494)]=t,this[x(590)]=o}return n[e(1319)][e(761)]=function(t,o,x){const r=e;return o===void 0&&(o=0),new this[r(1494)](this,t).schedule(x,o)},n[e(590)]=Vs[e(590)],n})(),Xs=(function(e){const n=c;Y0(t,e);function t(o,x){const r=_0x1d61;x===void 0&&(x=Mr[r(590)]);var i=e[r(573)](this,o,x)||this;return i.actions=[],i[r(1936)]=!1,i}return t[n(1319)][n(363)]=function(o){const x=n;var r=this[x(1638)];if(this[x(1936)]){r[x(1955)](o);return}var i;this._active=!0;do if(i=o[x(1648)](o[x(1111)],o[x(572)]))break;while(o=r[x(1461)]());if(this[x(1936)]=!1,i){for(;o=r.shift();)o[x(1926)]();throw i}},t})(Mr),Ks=new Xs(Ws);function Zs(e){return e&&Oe(e[c(761)])}function Rs(e){return e[e[c(461)]-1]}function Js(e){const n=c;return Zs(Rs(e))?e[n(404)]():void 0}var Br=function(e){const n=c;return e&&typeof e[n(461)]===n(663)&&typeof e!="function"};function Dr(e){return Oe(e?.[c(1627)])}function Lr(e){return Oe(e[Yx])}function Nr(e){const n=c;return Symbol[n(723)]&&Oe(e?.[Symbol[n(723)]])}function Sr(e){const n=c;return new TypeError(n(1031)+(e!==null&&typeof e=="object"?n(194):"'"+e+"'")+n(1806))}function _s(){const e=c;return typeof Symbol!==e(1719)||!Symbol[e(217)]?e(1732):Symbol.iterator}var kr=_s();function Pr(e){return Oe(e?.[kr])}function Ir(e){return Ss(this,arguments,function(){var t,o,x,r;return dr(this,function(i){const a=_0x1d61;switch(i[a(772)]){case 0:t=e.getReader(),i.label=1;case 1:i.trys[a(1955)]([1,,9,10]),i[a(772)]=2;case 2:return[4,dn(t.read())];case 3:return o=i[a(927)](),x=o.value,r=o[a(688)],r?[4,dn(void 0)]:[3,5];case 4:return[2,i[a(927)]()];case 5:return[4,dn(x)];case 6:return[4,i[a(927)]()];case 7:return i[a(927)](),[3,2];case 8:return[3,10];case 9:return t[a(711)](),[7];case 10:return[2]}})})}function Ar(e){return Oe(e?.getReader)}function _0(e){if(e instanceof s0)return e;if(e!=null){if(Lr(e))return Fs(e);if(Br(e))return Qs(e);if(Dr(e))return $s(e);if(Nr(e))return Er(e);if(Pr(e))return el(e);if(Ar(e))return nl(e)}throw Sr(e)}function Fs(e){return new s0(function(n){const t=_0x1d61;var o=e[Yx]();if(Oe(o.subscribe))return o[t(811)](n);throw new TypeError(t(279))})}function Qs(e){return new s0(function(n){const t=_0x1d61;for(var o=0;o<e[t(461)]&&!n[t(581)];o++)n[t(597)](e[o]);n[t(1704)]()})}function $s(e){return new s0(function(n){e.then(function(t){const o=_0x1d61;!n[o(581)]&&(n[o(597)](t),n[o(1704)]())},function(t){return n[_0x1d61(1842)](t)}).then(null,mr)})}function el(e){return new s0(function(n){const t=_0x1d61;var o,x;try{for(var r=un(e),i=r.next();!i[t(688)];i=r[t(597)]()){var a=i.value;if(n[t(597)](a),n[t(581)])return}}catch(f){o={error:f}}finally{try{i&&!i[t(688)]&&(x=r[t(1521)])&&x[t(573)](r)}finally{if(o)throw o[t(1842)]}}n.complete()})}function Er(e){return new s0(function(n){const t=_0x1d61;tl(e,n)[t(886)](function(o){return n[t(1842)](o)})})}function nl(e){return Er(Ir(e))}function tl(e,n){var t,o,x,r;return Ns(this,void 0,void 0,function(){var i,a;return dr(this,function(f){const s=_0x1d61;switch(f.label){case 0:f[s(1511)].push([0,5,6,11]),t=ks(e),f.label=1;case 1:return[4,t[s(597)]()];case 2:if(o=f[s(927)](),!!o[s(688)])return[3,4];if(i=o[s(699)],n.next(i),n.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=f.sent(),x={error:a},[3,11];case 6:return f[s(1511)][s(1955)]([6,,9,10]),o&&!o[s(688)]&&(r=t[s(1521)])?[4,r[s(573)](t)]:[3,8];case 7:f.sent(),f[s(772)]=8;case 8:return[3,10];case 9:if(x)throw x[s(1842)];return[7];case 10:return[7];case 11:return n[s(1704)](),[2]}})})}function U0(e,n,t,o,x){const r=c;o===void 0&&(o=0),x===void 0&&(x=!1);var i=n[r(761)](function(){const a=r;t(),x?e.add(this[a(761)](null,o)):this.unsubscribe()},o);if(e.add(i),!x)return i}function jr(e,n){return n===void 0&&(n=0),R0(function(t,o){t[_0x1d61(811)](J0(o,function(r){return U0(o,e,function(){return o[_0x1d61(597)](r)},n)},function(){return U0(o,e,function(){return o[_0x1d61(1704)]()},n)},function(r){return U0(o,e,function(){return o[_0x1d61(1842)](r)},n)}))})}function Yr(e,n){return n===void 0&&(n=0),R0(function(t,o){const x=_0x1d61;o[x(1742)](e[x(761)](function(){return t.subscribe(o)},n))})}function xl(e,n){const t=c;return _0(e)[t(1053)](Yr(n),jr(n))}function ol(e,n){const t=c;return _0(e)[t(1053)](Yr(n),jr(n))}function rl(e,n){return new s0(function(t){const o=_0x1d61;var x=0;return n[o(761)](function(){const r=o;x===e.length?t[r(1704)]():(t[r(597)](e[x++]),!t[r(581)]&&this[r(761)]())})})}function il(e,n){return new s0(function(t){var o;return U0(t,n,function(){o=e[kr](),U0(t,n,function(){const x=_0x1d61;var r,i,a;try{r=o[x(597)](),i=r[x(699)],a=r[x(688)]}catch(f){t[x(1842)](f);return}a?t.complete():t[x(597)](i)},0,!0)}),function(){return Oe(o?.return)&&o.return()}})}function Ur(e,n){const t=c;if(!e)throw new Error(t(1754));return new s0(function(o){U0(o,n,function(){const x=_0x1d61;var r=e[Symbol[x(723)]]();U0(o,n,function(){const i=x;r[i(597)]()[i(1627)](function(a){const f=i;a[f(688)]?o.complete():o[f(597)](a.value)})},0,!0)})})}function al(e,n){return Ur(Ir(e),n)}function cl(e,n){if(e!=null){if(Lr(e))return xl(e,n);if(Br(e))return rl(e,n);if(Dr(e))return ol(e,n);if(Nr(e))return Ur(e,n);if(Pr(e))return il(e,n);if(Ar(e))return al(e,n)}throw Sr(e)}function zt(e,n){return n?cl(e,n):_0(e)}function u0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Js(e);return zt(e,t)}function Ke(e,n){var t=Oe(e)?e:function(){return e},o=function(x){return x[_0x1d61(1842)](t())};return new s0(o)}function sl(e){return e instanceof Date&&!isNaN(e)}var ll=Ix(function(e){return function(t){const o=_0x1d61;t===void 0&&(t=null),e(this),this.message=o(1925),this[o(1123)]="TimeoutError",this.info=t}});function fl(e,n){const t=c;var o=sl(e)?{first:e}:{each:e},x=o[t(1725)],r=o[t(1427)],i=o.with,a=i===void 0?ul:i,f=o[t(1368)],s=f===void 0?Ks:f,u=o[t(823)],d=u===void 0?null:u;if(x==null&&r==null)throw new TypeError(t(1264));return R0(function(h,y){const v=t;var g,w,M=null,b=0,m=function(z){w=U0(y,s,function(){const p=_0x1d61;try{g[p(1926)](),_0(a({meta:d,lastValue:M,seen:b})).subscribe(y)}catch(S){y[p(1842)](S)}},z)};g=h[v(811)](J0(y,function(z){const p=v;w?.[p(1926)](),b++,y[p(597)](M=z),r>0&&m(r)},void 0,void 0,function(){const z=v;!w?.[z(581)]&&w?.[z(1926)](),M=null})),!b&&m(x!=null?typeof x=="number"?x:+x-s[v(590)]():r)})}function ul(e){throw new ll(e)}function Ct(e,n){return R0(function(t,o){const x=_0x1d61;var r=0;t[x(811)](J0(o,function(i){const a=x;o.next(e[a(573)](n,i,r++))}))})}function dl(e,n,t,o,x,r,i,a){var f=[],s=0,u=0,d=!1,h=function(){const g=_0x1d61;d&&!f[g(461)]&&!s&&n[g(1704)]()},y=function(g){return s<o?v(g):f.push(g)},v=function(g){const w=_0x1d61;s++;var M=!1;_0(t(g,u++))[w(811)](J0(n,function(b){n[w(597)](b)},function(){M=!0},void 0,function(){const b=w;if(M)try{s--;for(var m=function(){var z=f.shift();i||v(z)};f[b(461)]&&s<o;)m();h()}catch(z){n[b(1842)](z)}}))};return e.subscribe(J0(n,y,function(){d=!0,h()})),function(){}}function Ux(e,n,t){const o=c;return t===void 0&&(t=1/0),Oe(n)?Ux(function(x,r){return Ct(function(i,a){return n(x,i,r,a)})(_0(e(x,r)))},t):(typeof n===o(663)&&(t=n),R0(function(x,r){return dl(x,r,e,t)}))}function Mt(e){return R0(function(n,t){const o=_0x1d61;var x=null,r=!1,i;x=n[o(811)](J0(t,void 0,void 0,function(a){const f=o;i=_0(e(a,Mt(e)(n))),x?(x.unsubscribe(),x=null,i[f(811)](t)):r=!0})),r&&(x[o(1926)](),x=null,i[o(811)](t))})}function hl(e,n,t){var o=Oe(e)||n||t?{next:e,error:n,complete:t}:e;return o?R0(function(x,r){const i=_0x1d61;var a;(a=o.subscribe)===null||a===void 0||a[i(573)](o);var f=!0;x[i(811)](J0(r,function(s){const u=i;var d;(d=o[u(597)])===null||d===void 0||d[u(573)](o,s),r[u(597)](s)},function(){const s=i;var u;f=!1,(u=o[s(1704)])===null||u===void 0||u[s(573)](o),r[s(1704)]()},function(s){const u=i;var d;f=!1,(d=o[u(1842)])===null||d===void 0||d.call(o,s),r[u(1842)](s)},function(){const s=i;var u,d;f&&((u=o.unsubscribe)===null||u===void 0||u[s(573)](o)),(d=o[s(1524)])===null||d===void 0||d[s(573)](o)}))}):vr}function Ox(e){const n=c;return encodeURIComponent((e||"")[n(1431)]()||n(412))}function gl(e){const n=c;return e[n(1271)]===n(1647)?e[n(1575)]+"::ext::"+Ox(e.externalEventKey??""):e.bindNodeId+"::"+e[n(1271)]}function Or(e,n){return e+":"+n}class hn{static instance;[c(1633)]=new Map;subscriptions=new Map;[c(676)]=new Map;[c(1681)]=new Map;[c(1673)];constructor(){}static[c(1578)](){const n=c;return!hn[n(1859)]&&(hn[n(1859)]=new hn),hn[n(1859)]}registerEventBlock(n){const t=c;this[t(676)][t(1676)](n.id,n)}[c(1817)](n){const t=c;this[t(676)][t(579)](n)}[c(962)](n){const t=c;return this[t(676)][t(1280)](n)}setDefaultRuntimeHandlers(n){const t=c;this[t(1673)]=n}[c(1268)](n){const t=c;if(!n)return;const o=this.defaultRuntimeHandlers;this[t(1673)]={dataRequest:{...o?.dataRequest,...n[t(1950)]},external:{...o?.external,...n.external}}}[c(643)](n){const t=c,o=this.defaultRuntimeHandlers;if(!(!o&&!n))return{dataRequest:{...o?.[t(1950)],...n?.dataRequest},external:{...o?.external,...n?.[t(1647)]}}}[c(1017)](n){const t=c,o=this[t(808)][t(1280)](n.id);o&&(o[t(1926)](),this[t(808)].delete(n.id)),this[t(1633)][t(579)](n.id)}[c(550)](n){const t=c,o=gl(n),x=this.nodeEventBindings[t(1280)](o);x&&x.id!==n.id&&this[t(1017)](x),this[t(1681)].set(o,n),!this[t(1633)][t(806)](n.id)&&this[t(290)](n)}unbindNodeEvent(n,t,o){const x=c;if(t===x(1647)){const f=n+"::ext::"+Ox(o??""),s=this[x(1681)].get(f);s&&(this[x(1017)](s),this.nodeEventBindings[x(579)](f));return}const r=n+"::"+t,i=Or(n,t),a=this[x(1681)].get(r)??this[x(1681)].get(i);a&&(this[x(1017)](a),this.nodeEventBindings[x(579)](r),this[x(1681)][x(579)](i))}[c(1110)](n){const t=c,o=[];this[t(1681)][t(1956)]((x,r)=>{const i=t;x[i(1575)]===n&&o[i(1955)]({key:r,root:x})}),o[t(1956)](({key:x,root:r})=>{const i=t;this[i(1017)](r),this[i(1681)][i(579)](x)})}[c(822)](n){const t=c,o=[];return this[t(1681)][t(1956)](x=>{const r=t;x[r(1575)]===n&&o[r(1955)](x)}),o}[c(344)](n,t,o){const x=c,r=n+"::"+t,i=this.nodeEventBindings[x(1280)](r)??this.nodeEventBindings.get(Or(n,t));if(!i||!i.enabled)return u0({success:!0,result:null,path:[],duration:0});if(!this[x(1633)][x(1280)](i.id))return Ke(()=>new Error(x(1802)+r));const f=Date[x(590)](),s={...o,executionPath:o[x(698)]||[],runtimeHandlers:this[x(643)](o.runtimeHandlers)};return this[x(1966)](i,s)[x(1053)](Ct(u=>({success:!0,result:u,path:s[x(698)],duration:Date[x(590)]()-f})),Mt(u=>u0({success:!1,error:u[x(208)]||x(536),path:s.executionPath,duration:Date[x(590)]()-f})))}[c(1837)](n,t,o){const x=c,r=n+x(1871)+Ox(t),i=this[x(1681)].get(r);if(!i||!i.enabled)return u0({success:!0,result:null,path:[],duration:0});if(!this[x(1633)][x(1280)](i.id))return Ke(()=>new Error(x(1802)+r));const f=Date[x(590)](),s={...o,executionPath:o[x(698)]||[],runtimeHandlers:this[x(643)](o[x(747)])};return this[x(1966)](i,s)[x(1053)](Ct(u=>({success:!0,result:u,path:s[x(698)],duration:Date[x(590)]()-f})),Mt(u=>u0({success:!1,error:u[x(208)]||"Event flow execution failed",path:s[x(698)],duration:Date[x(590)]()-f})))}[c(290)](n){const t=new pr;this.eventSubjects.set(n.id,t)}[c(1966)](n,t){const o=c,{nodes:x,edges:r}=n[o(1619)];if(x[o(461)]===0)return u0(null);const i=x.filter(a=>a[o(331)][o(461)]===0);return i[o(461)]===0?Ke(()=>new Error(o(978))):this[o(302)](i,x,r,t,{})}[c(302)](n,t,o,x,r){const i=c;if(n[i(461)]===0)return u0(r);const a=n[i(1186)](f=>this[i(530)](f,x,r)[i(1053)](hl(s=>{const u=i;r[f.id]=s,x[u(698)].push(f.id)})));return zt(a).pipe(Ux(f=>f,1),Ct(()=>{const f=i,s=new Set;return n[f(1956)](d=>{const h=f;d.outputs[h(1956)](y=>{const v=h,g=t[v(1682)](w=>w.id===y);g&&g.inputs[v(1947)](M=>r[M]!==void 0)&&s[v(1742)](y)})}),t[f(1027)](d=>s.has(d.id))}),Ux(f=>{const s=i;return f.length>0?this[s(302)](f,t,o,x,r):u0(r)}),fl(3e4),Mt(f=>(console.error(i(870),f),Ke(()=>f))))}resolveFlowEventBlock(n){const t=c;return this[t(676)][t(1280)](n.eventBlockId)??n.data[t(1537)]}[c(950)](n,t,o){const x=c;return n[x(960)](/\{\{\s*([^}]+?)\s*\}\}/g,(r,i)=>{const a=x,f=String(i)[a(1431)]();if(f[a(533)]("$")){const u=this[a(1448)](o,f.slice(1));return u==null?"":String(u)}const s=t[f];return s==null?"":String(s)})}[c(1622)](n,t,o){const x=c,r=n.builtinId;if(!r)return Ke(()=>new Error("内置动作未选择类型"));if(r==="antdMessage"){const i=n[x(714)]??{},a=String(i[x(912)]??""),f=i.level??"info",s=i[x(238)],u=this[x(950)](a,o,t);if(!u[x(1431)]())return Ke(()=>new Error(x(1811)));try{const d={type:f,content:u};if(s!=null&&s!==""){const h=Number(s);!Number[x(1398)](h)&&(d.duration=h)}return C[x(208)].open(d),u0({ok:!0,builtinId:r,content:u,level:f})}catch(d){return Ke(()=>d)}}if(r==="switchCanvas"){const i=n[x(714)]??{},a=String(i.targetCanvasId??"")[x(1431)]();if(!a)return Ke(()=>new Error(x(488)));const f=t.jumpToCanvas??t[x(1724)];if(!f)return Ke(()=>new Error(x(209)));try{return f(a),u0({ok:!0,builtinId:r,targetCanvasId:a,withHistory:!!t.jumpToCanvas})}catch(s){return Ke(()=>s)}}return Ke(()=>new Error(x(1418)+String(r)))}invokeRuntimeHandler(n,t,o){try{const x=n(t,o);return x instanceof Promise?zt(x):u0(x)}catch(x){return Ke(()=>x)}}[c(530)](n,t,o){const x=c,r=this[x(599)](n);if(!r)return Ke(()=>new Error("Event block not found: "+n[x(1572)]));const i=this[x(419)](n,t,o),a=r.executorType??"inlineScript";if(a==="dataRequest"){const f=(r.dataRequestKey||"").trim();if(!f)return Ke(()=>new Error(x(1641)));const s=t[x(747)]?.[x(1950)]?.[f];return s?this[x(187)](s,t,i):Ke(()=>new Error(x(845)+f))}if(a===x(1647)){const f=(r[x(299)]||"")[x(1431)]();if(!f)return Ke(()=>new Error("事件块未配置 externalHandlerKey"));const s=t[x(747)]?.[x(1647)]?.[f];return s?this[x(187)](s,t,i):Ke(()=>new Error(x(1205)+f))}if(a===x(142))return this[x(1622)](r,t,i);try{const f=new Function(x(411),x(1793),x(545),r[x(415)]),s=f(t[x(192)],t,i);return s instanceof Promise?zt(s):u0(s)}catch(f){return Ke(()=>f)}}[c(419)](n,t,o){const x=c,r={$event:t[x(1902)],$data:t[x(762)],$node:t[x(192)]},{inputMapping:i}=n.data;return i&&Object[x(1399)](i).forEach(([a,f])=>{const s=x;if(f[s(533)](s(343))){const u=f.replace(s(343),"");r[a]=o[u]}else if(f.startsWith("$")){const u=f.slice(1);r[a]=this[s(1448)](t,u)}else r[a]=f}),r}[c(1448)](n,t){const o=c;return t[o(440)](".")[o(1906)]((x,r)=>{if(x!==null&&typeof x===o(448)&&r in x)return x[r]},n)}[c(168)](){const n=c;this.subscriptions.forEach(t=>t[n(1926)]()),this[n(808)][n(767)](),this.eventSubjects[n(767)](),this[n(1681)][n(767)]()}}const gn=hn[c(1578)](),Gr=({node:e,children:n,runtimeHandlers:t,flowContextData:o})=>{const x=c,{eventFlow:r,switchCanvas:i,jumpToCanvas:a}=Xe(),f=L[x(619)](null),s=L.useCallback(()=>{const d=x;return r[d(869)].filter(h=>h[d(1575)]===e.id&&h[d(957)])},[r[x(869)],e.id]),u=L[x(130)](d=>h=>{const y=_0x1d61,v=s()[y(1027)](w=>w.eventType===d);if(v.length===0)return;d!==y(1135)&&d!==y(1912)&&h[y(1061)](),h[y(1223)]();const g=o&&typeof o===y(448)?{...o}:{};v[y(1956)](w=>{gn.emit(e.id,d,{triggerNode:e,originalEvent:h,data:g,runtimeHandlers:t,switchCanvas:i,jumpToCanvas:a}).subscribe({next:M=>{const b=_0x1d61;!M[b(454)]&&console[b(1842)](b(1595),M[b(1842)])},error:M=>{const b=_0x1d61;console[b(1842)](b(1866),M)}})})},[s,e,t,o]);return L.useEffect(()=>(s().forEach(h=>{gn.bindNodeEvent(h)}),()=>{gn[_0x1d61(1110)](e.id)}),[s,e.id]),L[x(553)](()=>{const d=x,h=f[d(1890)];if(!h)return;const y={click:u(d(652)),mousedown:u(d(298)),mouseup:u(d(1873)),dblclick:u(d(1329)),mouseover:u(d(1135)),mouseleave:u(d(1912)),mouseenter:u(d(1314)),contextmenu:u("contextMenu")};return Object[d(1399)](y)[d(1956)](([v,g])=>{h[d(1018)](v,g,!0)}),()=>{const v=d;Object[v(1399)](y)[v(1956)](([g,w])=>{h[v(1196)](g,w,!0)})}},[u]),L[x(612)](n,{ref:d=>{const h=x;f[h(1890)]=d;const y=n[h(181)];typeof y===h(1719)?y(d):y&&h(1890)in y&&(y.current=d)}})},{Text:Hr}=C[c(749)],Tr=(e,n)=>{const t=c;if(!n||!e)return{value:void 0};if(Array[t(1021)](e)){const o=e[t(1682)](x=>x[t(624)]===n);if(o)return{value:o[t(699)],unit:o[t(1166)]}}else if(typeof e=="object"){const o=n[t(440)](".");let x=e;for(const r of o){if(x===null||typeof x!==t(448))return{value:void 0};x=x[r]}if(x!==void 0)return{value:x,unit:e[t(1166)]}}return{value:void 0}};function yl(e){return Array[c(1021)](e)}const ml=(e,n,t)=>{const o=c,x=e[o(912)]||{},{valueSourceCode:r,boundDatasetId:i,boundDatasetBindCode:a,boundDatasetBindValue:f}=x;if(!r)return{value:void 0};if(i){const s=n[o(1682)](u=>u.id===i);if(s){let u;yl(s[o(741)])?a!=null&&f!=null?u=s[o(741)][o(1682)](h=>h[a]===f)||{}:u={}:u=s[o(741)];const d=t&&typeof t=="object"?{...u,...t}:u;return Tr(d,r)}}return Tr(t,r)},bl=(e,n)=>{if(e==null||e==="")return"";if(n===-1)return String(e);const t=Number(e);return isNaN(t)?String(e):t.toFixed(n??2)},vl=(e,n,t,o,x)=>{const r=c;switch(e[r(893)]){case r(873):const i=e,a=i[r(910)],f=i.fillColor;let s=i.src;return f&&s&&s[r(1486)](r(748))&&(e[r(1123)]==="矩形"?s=r(1721)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"><rect width="100" height="60" fill="'+f+'" rx="4"/></svg>'):e[r(1123)]==="圆形"?s=r(1721)+encodeURIComponent(r(1959)+f+r(1786)):e[r(1123)]===r(1297)&&(s=r(1721)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"><rect width="100" height="60" fill="'+f+r(713)))),l[r(1791)](r(1517),{className:r(325),style:{backgroundColor:a},children:s?l[r(1791)]("img",{src:s,alt:e[r(1123)],style:{width:r(1888),height:r(1888),objectFit:r(793)}}):l.jsx(r(1517),{className:r(278),children:l[r(1791)](r(158),{className:r(1419),children:r(994)})})});case"TEXT":const u=e,{label:d,value:h,valueSourceCode:y,unit:v,decimals:g,labelStyle:w,valueStyle:M,customStyle:b}=u[r(912)]||{},{value:m,unit:z}=y?ml(u,x||[],n):{value:void 0,unit:void 0},p=m!==void 0?m:h,S=bl(p,g),O=v||z||"";return l.jsxs(r(1517),{className:r(360),style:{...b},children:[d&&l[r(1791)](Hr,{style:{fontSize:14,fontWeight:r(1789),color:r(1819),textAlign:r(548),...w},children:d}),S&&l[r(584)](Hr,{style:{fontSize:14,color:"#1890ff",textAlign:r(548),...M},children:[S,O?" "+O:""]})]});case r(1743):const G=e,{thickness:q=2,color:E="#d9d9d9",dashed:V=!1,lineType:T=V?"dashed":r(1151),lineWeight:X=q,startX:H=0,startY:N=0,endX:B=100,endY:D=0}=G[r(141)]||{},j=_=>{const J=r,xe=Math[J(630)](X,1);switch(_){case"solid":return"";case J(1733):return xe*8+","+xe*4;case J(1625):return xe*12+","+xe*3+","+xe*2+","+xe*3;case J(429):return xe*12+","+xe*3+","+xe*2+","+xe*3+","+xe*2+","+xe*3;case J(1689):return xe+","+xe*3;case J(1011):return xe*8+","+xe*3+","+xe+","+xe*3;default:return""}},U=j(T),k=t?r(1614):E;return l[r(1791)](r(1517),{className:r(1283),style:{overflow:r(1145)},children:l[r(584)](r(1563),{className:r(1662),width:r(1888),height:r(1888),style:{overflow:r(1145),pointerEvents:r(245)},children:[l[r(1791)](r(1036),{x1:H,y1:N,x2:B,y2:D,stroke:"transparent",strokeWidth:Math[r(630)](X,10),strokeLinecap:r(1263),strokeLinejoin:"round",style:{pointerEvents:r(918),cursor:r(914)}}),l.jsx(r(1036),{x1:H,y1:N,x2:B,y2:D,stroke:k,strokeWidth:X,strokeDasharray:U,strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:r(245)}})]})});case r(1206):const R=e;return R.render?R.render({}):l[r(1791)](r(1517),{className:"w-full h-full flex items-center justify-center bg-gray-100",children:l[r(1791)](r(158),{className:"text-gray-400 text-xs",children:"自定义组件"})});default:return l[r(1791)](r(1517),{className:r(554),children:l[r(1791)](r(158),{className:r(1419),children:r(844)})})}},wl=({node:e,isSelected:n=!1,onClick:t,onMouseDown:o,data:x,onUpdateNode:r,scale:i=1,enableEventFlow:a=!1,eventFlowData:f})=>{const s=c,{normalStyle:u,controlInfo:d}=e,{isClickable:h,isDraggable:y,isResizable:v}=d,g=e[s(1345)],w=Xe(I=>I[s(934)]),M=Xe(I=>I[s(1506)]),b=L[s(619)](t);L[s(553)](()=>{const I=s;b[I(1890)]=t},[t]);const[m,z]=L[s(1326)](null),p=L.useRef(null),S=L[s(619)](null),O=L[s(619)](null),G=L.useRef(null),q=L[s(619)](null),[E,V]=L.useState(null),T=L[s(619)](null),X=L[s(619)](null),H=L[s(1356)](()=>{const I=s,Z=e.contentInfo[I(273)];if(Z[I(461)]===0)return;const ee=ar(Z,x,w);return ee||Z[0]},[e.contentInfo[s(273)],x,w]),N=L[s(619)](e[s(1345)][s(1020)]);L.useEffect(()=>{const I=s;N[I(1890)]=e[I(1345)][I(1020)]},[e.id]),L.useEffect(()=>{const I=s,Z=H?.id;Z!==void 0&&N[I(1890)]!==Z&&(N[I(1890)]=Z,M(e.id,{contentInfo:{...e[I(1345)],currentStatusId:Z}}))},[H?.id,e.id,M]);const B=H?.[s(277)],D=B?.[s(893)]==="LINE",j=D?B[s(141)]:null,U=u.scale??1,k=(u[s(737)]||100)*U,R=(u.height||100)*U,_=L[s(130)](()=>{const I=s,Z=q[I(1890)]?.[I(809)]('[data-canvas="true"]');if(!Z)return i;const ee=Z[I(1593)](),te=parseFloat(Z[I(1022)][I(737)]);return te?ee.width/te:i},[i]),J=L[s(130)]((I,Z)=>{const ee=s;I.stopPropagation(),I[ee(1061)]();const te=j?.[ee(470)]||0,W=j?.[ee(481)]||0,re=j?.[ee(1391)]||0,be=j?.endY||0,ve=u.x||0,De=u.y||0,Pe=Math[ee(630)]((j?.[ee(551)]||j?.[ee(1128)]||2)*2,4),Ae=Math[ee(407)](te,re),Be=Math.min(W,be),Le=Math[ee(630)](te,re),Ue=Math.max(W,be),Ie=Math[ee(630)](Le-Ae,Pe),Ge=Math[ee(630)](Ue-Be,Pe);p[ee(1890)]={mouseX:I.clientX,mouseY:I[ee(1450)],startX:te,startY:W,endX:re,endY:be,nodeX:ve,nodeY:De};const He=Math[ee(407)](te,re),Ze=Math[ee(407)](W,be);O[ee(1890)]={nodeX:ve+He,nodeY:De+Ze,width:Ie,height:Ge,startX:te-He,startY:W-Ze,endX:re-He,endY:be-Ze},S.current=H||null,z(Z)},[j,u.x,u.y,H]);L[s(553)](()=>{const I=s;if(!m||!D||!j||!r)return;const Z=te=>{const W=_0x1d61,re=p[W(1890)];if(!re||!q[W(1890)])return;const be=_(),ve=(te[W(1089)]-re.mouseX)/be,De=(te[W(1450)]-re[W(1458)])/be;let Pe=re[W(470)],Ae=re[W(481)],Be=re.endX,Le=re[W(1783)],Ue=re[W(288)],Ie=re[W(1426)];m===W(916)?(Pe=re[W(470)]+ve,Ae=re[W(481)]+De,Pe<0&&(Ue=re.nodeX+Pe,Be=re[W(1391)]-Pe,Pe=0),Ae<0&&(Ie=re[W(1426)]+Ae,Le=re[W(1783)]-Ae,Ae=0)):(Be=re.endX+ve,Le=re[W(1783)]+De,Be<0&&(Ue=re[W(288)]+Be,Pe=re[W(470)]-Be,Be=0),Le<0&&(Ie=re.nodeY+Le,Ae=re[W(481)]-Le,Le=0));const Ge=Math[W(630)]((j[W(551)]||2)*2,4),He=Math.min(Pe,Be),Ze=Math[W(407)](Ae,Le),l0=Math[W(630)](Pe,Be),b0=Math[W(630)](Ae,Le),Fe=Ue+He,n0=Ie+Ze,Qe=Pe-He,t0=Ae-Ze,c0=Be-He,A0=Le-Ze,q0=Math[W(630)](l0-He,Ge),E0=Math[W(630)](b0-Ze,Ge);O[W(1890)]={nodeX:Fe,nodeY:n0,width:q0,height:E0,startX:Qe,startY:t0,endX:c0,endY:A0};const qe=q.current;qe[W(1022)][W(548)]=Fe+"px",qe.style[W(327)]=n0+"px",qe[W(1022)].width=q0+"px",qe[W(1022)][W(522)]=E0+"px",qe[W(1513)](W(781))[W(1956)](v0=>{const W0=W;v0[W0(526)]("x1",String(Qe)),v0[W0(526)]("y1",String(t0)),v0[W0(526)]("x2",String(c0)),v0[W0(526)]("y2",String(A0))});const Re=qe[W(881)](W(172)),B0=qe[W(881)](W(1359));Re&&(Re[W(1022)][W(548)]=Qe-6+"px",Re[W(1022)][W(327)]=t0-6+"px"),B0&&(B0[W(1022)][W(548)]=c0-6+"px",B0[W(1022)].top=A0-6+"px")},ee=()=>{const te=_0x1d61,W=O.current;if(!W||!r){z(null),p[te(1890)]=null,O[te(1890)]=null,S[te(1890)]=null;return}const re=Xe[te(1772)]().nodes[te(1682)](Be=>Be.id===e.id),be=re?.[te(1345)][te(273)]??e[te(1345)][te(273)],ve=S.current,De=ve?.id??be.find(Be=>Be.material[te(893)]===te(1743))?.id,Pe=be[te(1186)](Be=>{const Le=te;if(Be[Le(277)][Le(893)]!==Le(1743)||Be.id!==De)return Be;const Ue=Be[Le(277)];return{...Be,material:{...Ue,config:{...Ue[Le(141)],startX:W.startX,startY:W[Le(481)],endX:W.endX,endY:W[Le(1783)]}}}}),Ae=re?.[te(1345)]??g;r(e.id,{normalStyle:{x:W[te(288)],y:W[te(1426)],width:W[te(737)],height:W[te(522)]},contentInfo:{...Ae,statusList:Pe}}),z(null),p[te(1890)]=null,O.current=null,S[te(1890)]=null};return window[I(1018)](I(1464),Z),window[I(1018)]("mouseup",ee),()=>{const te=I;window[te(1196)](te(1464),Z),window.removeEventListener(te(1392),ee)}},[m,D,j,e.id,u,g,e[s(1345)][s(273)],r,_]),L.useEffect(()=>{const I=s;if(!E||!r)return;const Z=te=>{const W=_0x1d61;if(!q[W(1890)])return;const re=_(),be=(te[W(1089)]-E[W(470)])/re,ve=(te.clientY-E[W(481)])/re,De=E[W(909)],Pe=De*Math.PI/180,Ae=Math[W(1357)](Pe),Be=Math[W(915)](Pe),Le=be*Ae+ve*Be,Ue=-be*Be+ve*Ae;let Ie=E[W(1700)],Ge=E.startHeight,He=E[W(1497)],Ze=E.startNodeY;switch(E.corner){case"se":Ie=Math[W(630)](20,E[W(1700)]+Le),Ge=Math.max(20,E[W(1667)]+Ue);break;case"sw":Ie=Math[W(630)](20,E[W(1700)]-Le),Ge=Math[W(630)](20,E[W(1667)]+Ue),He=E[W(1497)]+(E[W(1700)]-Ie);break;case"ne":Ie=Math[W(630)](20,E[W(1700)]+Le),Ge=Math.max(20,E[W(1667)]-Ue),Ze=E[W(1820)]+(E[W(1667)]-Ge);break;case"nw":Ie=Math.max(20,E.startWidth-Le),Ge=Math.max(20,E[W(1667)]-Ue),He=E[W(1497)]+(E.startWidth-Ie),Ze=E[W(1820)]+(E.startHeight-Ge);break}if(De!==0){let b0=0,Fe=0,n0=0,Qe=0;switch(E[W(1052)]){case"se":b0=0,Fe=0,n0=0,Qe=0;break;case"sw":b0=E.startWidth,Fe=0,n0=Ie,Qe=0;break;case"ne":b0=0,Fe=E[W(1667)],n0=0,Qe=Ge;break;case"nw":b0=E[W(1700)],Fe=E[W(1667)],n0=Ie,Qe=Ge;break}const t0=b0-E.startWidth/2,c0=Fe-E[W(1667)]/2,A0=t0*Ae-c0*Be,q0=t0*Be+c0*Ae,E0=n0-Ie/2,qe=Qe-Ge/2,rn=E0*Ae-qe*Be,Re=E0*Be+qe*Ae;He=E[W(1497)]+E[W(1700)]/2-Ie/2+A0-rn,Ze=E[W(1820)]+E[W(1667)]/2-Ge/2+q0-Re}G[W(1890)]={x:He,y:Ze,width:Ie,height:Ge};const l0=q[W(1890)];l0.style[W(548)]=He+"px",l0[W(1022)][W(327)]=Ze+"px",l0[W(1022)][W(737)]=Ie+"px",l0[W(1022)][W(522)]=Ge+"px"},ee=()=>{const te=_0x1d61,W=G.current;W&&r(e.id,{normalStyle:{...u,x:W.x,y:W.y,width:W[te(737)],height:W[te(522)]}}),V(null),G[te(1890)]=null};return window.addEventListener(I(1464),Z),window[I(1018)](I(1392),ee),()=>{const te=I;window.removeEventListener("mousemove",Z),window[te(1196)](te(1392),ee)}},[E,r,e.id,u,_]);const xe=L[s(130)]((I,Z)=>{const ee=s;I[ee(1223)](),I[ee(1061)](),V({corner:Z,startX:I[ee(1089)],startY:I.clientY,startWidth:u.width||100,startHeight:u.height||100,startNodeX:u.x||0,startNodeY:u.y||0,startRotate:u[ee(794)]||0})},[u[s(737)],u[s(522)],u.x,u.y,u.rotate]),oe=L.useCallback(I=>{const Z=s;I[Z(1223)](),I[Z(1061)]();const ee=q[Z(1890)]?.[Z(1593)]();if(!ee)return;T.current={startX:I[Z(1089)],startY:I[Z(1450)],startAngle:u.rotate||0,centerX:ee[Z(548)]+ee[Z(737)]/2,centerY:ee[Z(327)]+ee[Z(522)]/2};const te=u[Z(1225)]||"",W=ve=>{const De=Z;q[De(1890)]&&(q[De(1890)].style[De(1225)]=te?"rotate("+ve+De(1133)+te:"rotate("+ve+"deg)")};W(u[Z(794)]||0);const re=ve=>{const De=Z;if(!T[De(1890)])return;const Pe=ve[De(1089)]-T[De(1890)][De(322)],Ae=ve[De(1450)]-T[De(1890)][De(604)];let Le=(Math.atan2(Ae,Pe)*(180/Math.PI)+90)%360;Le<0&&(Le+=360),X[De(1890)]=Le,W(Le)},be=()=>{const ve=Z,De=X.current??T[ve(1890)][ve(586)];if(X[ve(1890)]=null,T[ve(1890)]=null,r){const Pe=e[ve(307)];r(e.id,{normalStyle:{...Pe,rotate:Math[ve(1263)](De)}})}q[ve(1890)]?.[ve(1022)][ve(1389)](ve(1225)),window[ve(1196)](ve(1464),re),window[ve(1196)](ve(1392),be)};window[Z(1018)](Z(1464),re),window[Z(1018)](Z(1392),be)},[u[s(794)],u[s(1225)],r,e.id,e[s(307)]]),ce=e[s(893)]==="group",ue=u[s(1225)]||"",me=u[s(794)]||0,se={position:s(1365),left:u.x||0,top:u.y||0,width:k,height:R,background:ce?s(1437):u[s(386)]||s(1437),backgroundImage:ce?void 0:u[s(258)]?s(507)+u[s(258)]+")":void 0,backgroundSize:s(1699),backgroundPosition:s(1625),padding:Array[s(1021)](u.padding)?u.padding[s(1339)](s(1411))+"px":u.padding,margin:Array[s(1021)](u.margin)?u[s(1867)][s(1339)](s(1411))+"px":u[s(1867)],borderRadius:ce?void 0:u[s(1181)],border:D||ce?"none":n?s(1134):u[s(1921)]||s(1465),outline:n&&ce&&!D?s(1134):void 0,pointerEvents:"auto",opacity:u[s(1525)]??1,transform:D?ue||void 0:ue?s(432)+me+"deg) "+ue:s(432)+me+s(1574),transformOrigin:s(1568),zIndex:n?1e3:u[s(537)]??1,cursor:s(y&&!m?779:h?914:1409),boxSizing:s(480),overflow:s(n||D||ce?1145:556)},F={width:"100%",height:s(1888),position:s(348),transformOrigin:s(1568),...u.flipX||u[s(1467)]?{transform:s(426)+(u[s(1058)]?-1:1)+s(353)+(u[s(1467)]?-1:1)+")"}:{}},le=j?{x:j[s(470)]||0,y:j[s(481)]||0}:{x:0,y:0},de=j?{x:j.endX||0,y:j[s(1783)]||0}:{x:0,y:0},Y=l[s(584)]("div",{ref:q,"data-node-id":e.id,style:se,onClick:I=>{const Z=s;console[Z(922)]("NodeRenderer onClick",e.id,Z(1656),h);const ee=b.current;h&&ee&&!m&&!E&&!T[Z(1890)]&&(I[Z(1223)](),ee(I))},onMouseDown:I=>{y&&o&&!m&&o(I)},children:[n&&!D&&l.jsxs(l[s(611)],{children:[!ce&&l[s(584)](l[s(611)],{children:[l[s(1791)]("div",{className:s(1332),style:{zIndex:9999,pointerEvents:"auto",cursor:s(1169),marginTop:s(1401),marginLeft:s(1401)},onMouseDown:I=>xe(I,"nw"),title:s(1202)}),l[s(1791)](s(1517),{className:"absolute top-0 right-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:"auto",cursor:s(450),marginTop:s(1401),marginRight:"-6px"},onMouseDown:I=>xe(I,"ne"),title:s(1202)}),l[s(1791)]("div",{className:s(603),style:{zIndex:9999,pointerEvents:"auto",cursor:s(1901),marginBottom:"-6px",marginLeft:s(1401)},onMouseDown:I=>xe(I,"sw"),title:s(1202)}),l[s(1791)](s(1517),{className:s(401),style:{zIndex:9999,pointerEvents:"auto",cursor:s(1711),marginBottom:s(1401),marginRight:"-6px"},onMouseDown:I=>xe(I,"se"),title:"拖拽调整大小"})]}),l[s(1791)](s(1517),{className:s(1601),style:{zIndex:9999,pointerEvents:"auto",cursor:s(493),marginTop:s(817),transform:s(215),boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:I=>oe(I),title:"拖拽旋转"}),l[s(1791)](s(1517),{className:"absolute top-0 left-1/2 w-0.5 h-3 bg-green-500",style:{zIndex:9998,pointerEvents:"none",marginTop:"-14px",transform:s(215)}}),l[s(584)](s(1517),{className:"absolute -top-6 left-0 bg-blue-500 text-white text-xs px-2 py-0.5 rounded whitespace-nowrap",children:[e.name," ",H?"("+H[s(1123)]+")":""]})]}),n&&D&&j&&r&&l.jsxs(l.Fragment,{children:[l.jsx("div",{"data-handle":s(916),className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:le.x-6,top:le.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:I=>J(I,s(916)),title:s(283)}),l.jsx(s(1517),{"data-handle":"end",className:s(1611),style:{left:de.x-6,top:de.y-6,boxShadow:s(685)},onMouseDown:I=>J(I,"end"),title:s(1727)}),l[s(1791)]("div",{className:"absolute -top-6 left-0 bg-blue-500 text-white text-xs px-2 py-0.5 rounded whitespace-nowrap",children:e[s(1123)]})]}),l[s(584)]("div",{style:D?void 0:F,className:D?s(1283):void 0,children:[l.jsx(s(1517),{className:s(1283),children:B?l[s(1791)](s(1517),{className:s(729),children:vl(B,x,n,e,w)}):ce?null:l[s(1791)](s(1517),{className:s(552),children:s(311)})}),e[s(893)]===s(889)&&e.children&&l.jsx(s(1517),{className:s(683),children:e[s(1377)][s(1186)](I=>l[s(1791)]("div",{className:s(145),children:l.jsx(Gx,{node:I,isSelected:!1,data:x,onUpdateNode:r,scale:i,enableEventFlow:a,eventFlowData:f})},I.id))})]})]});return a?l[s(1791)](Gr,{node:e,flowContextData:f,children:Y}):Y},Gx=L.memo(wl,(e,n)=>{const t=c,o=e[t(411)],x=n[t(411)],r=o.id===x.id&&o[t(307)].x===x[t(307)].x&&o[t(307)].y===x[t(307)].y&&o.normalStyle[t(737)]===x[t(307)][t(737)]&&o[t(307)][t(522)]===x.normalStyle[t(522)]&&o[t(307)][t(794)]===x[t(307)].rotate&&o.normalStyle[t(1058)]===x[t(307)][t(1058)]&&o.normalStyle[t(1467)]===x[t(307)][t(1467)],i=o.contentInfo===x[t(1345)],a=JSON[t(595)](e.eventFlowData??null)===JSON[t(595)](n[t(1062)]??null),f=e[t(647)]===n[t(647)]&&e.scale===n[t(442)]&&e[t(1930)]===n[t(1930)]&&a,s=y=>{const v=t,g=[];return y[v(1345)]?.[v(273)]?.forEach(w=>{const M=v;if(w[M(277)]?.[M(893)]===M(1743)){const b=w[M(277)][M(141)];g[M(1955)]({statusId:w.id,startX:b?.[M(470)]??0,startY:b?.startY??0,endX:b?.endX??100,endY:b?.[M(1783)]??0})}}),g},u=s(o),d=s(x);let h=!0;if(u[t(461)]!==d.length)h=!1;else for(let y=0;y<u[t(461)];y++){const v=u[y],g=d[t(1682)](w=>w.statusId===v[t(1408)]);if(!g||v[t(470)]!==g.startX||v.startY!==g[t(481)]||v.endX!==g[t(1391)]||v[t(1783)]!==g[t(1783)]){h=!1;break}}return r&&i&&f&&h}),pl=()=>{const e=c,{root:n,addSiblingGroup:t,removeSiblingGroup:o,updateSiblingGroup:x,addCanvasToSiblingGroup:r,removeCanvasFromSiblingGroup:i,moveCanvasInSiblingGroup:a,nextSiblingCanvas:f,prevSiblingCanvas:s,setActiveSiblingGroup:u}=Xe(),d=n[e(1927)]??null,h=n[e(1957)]||[],[y,v]=L[e(1326)](h[0]?.id??null),g=L[e(1356)](()=>h[e(1682)](E=>E.id===y)||null,[h,y]),[w,M]=L[e(1326)](null),[b,m]=L[e(1326)](""),[z,p]=L.useState(void 0),S=L[e(1356)](()=>{const E=e;return g?n[E(1279)][E(1027)](V=>!g[E(939)][E(1486)](V.id)):n.canvases},[n.canvases,g]),O=L[e(130)](()=>{const E=t();v(E)},[t]),G=L.useCallback(E=>{const V=e,T=b[V(1431)]();if(!T){C[V(208)][V(1215)]("名称不能为空");return}x(E,{name:T}),M(null),m("")},[b,x]),q=L[e(130)](()=>{!g||!z||(r(g.id,z),p(void 0))},[g,z,r]);return l[e(584)](e(1517),{className:e(497),style:{minHeight:360},children:[l[e(584)](e(1517),{className:e(631),style:{minWidth:220},children:[l[e(584)](e(1517),{className:e(1227),children:[l[e(1791)](e(158),{className:e(435),children:e(1636)}),l[e(1791)](C[e(1804)],{type:e(974),size:e(1171),icon:l[e(1791)](fe[e(1569)],{}),onClick:O,children:"新建"})]}),h[e(461)]===0?l[e(1791)](C[e(1821)],{description:e(538),image:C[e(1821)].PRESENTED_IMAGE_SIMPLE,style:{marginTop:40}}):l[e(1791)](C[e(1492)],{size:e(1171),dataSource:h,renderItem:E=>{const V=e,T=E.id===y,X=w===E.id;return l[V(1791)](C[V(1492)].Item,{onClick:()=>{X||v(E.id)},style:{cursor:V(914),background:T?V(778):void 0,padding:V(1612)},actions:[X?l.jsx(C[V(1804)],{type:V(1565),size:V(1171),onClick:H=>{H[V(1223)](),G(E.id)},children:"保存"}):l[V(1791)](C[V(1499)],{title:V(879),children:l[V(1791)](C.Button,{type:"text",size:V(1171),icon:l[V(1791)](fe[V(1009)],{}),onClick:H=>{const N=V;H.stopPropagation(),M(E.id),m(E[N(1123)])}})},"rename"),l[V(1791)](C[V(1566)],{title:V(1002),okText:"删除",cancelText:"取消",okButtonProps:{danger:!0},onConfirm:H=>{if(H?.[V(1223)](),o(E.id),y===E.id){const B=h.filter(D=>D.id!==E.id);v(B[0]?.id??null)}},onCancel:H=>H?.[V(1223)](),children:l[V(1791)](C[V(1804)],{type:V(513),size:V(1171),danger:!0,icon:l[V(1791)](fe[V(371)],{}),onClick:H=>H.stopPropagation()})},V(579))],children:X?l[V(1791)](C[V(703)],{autoFocus:!0,size:V(1171),value:b,onChange:H=>m(H[V(1385)][V(699)]),onPressEnter:()=>G(E.id),onClick:H=>H[V(1223)](),style:{width:140}}):l[V(584)]("span",{className:"flex items-center gap-2",children:[l.jsx("span",{style:{fontWeight:T?600:400},children:E.name}),l[V(1791)](C.Tag,{color:V(297),children:E.canvasIds[V(461)]}),d===E.id&&l[V(1791)](C[V(389)],{color:V(346),children:"浏览中"})]})})}})]}),l[e(1791)]("div",{className:e(631),style:{minWidth:280},children:g?l.jsxs(l[e(611)],{children:[l[e(584)](e(1517),{className:e(1227),children:[l[e(1791)](e(158),{className:e(435),children:"组内画布(按顺序翻页)"}),l.jsxs(C[e(642)],{size:e(1171),children:[d===g.id?l[e(1791)](C[e(1499)],{title:"退出该组的浏览模式(外部翻页 UI 将禁用)",children:l.jsx(C[e(1804)],{size:e(1171),onClick:()=>u(null),children:e(735)})}):l[e(1791)](C[e(1499)],{title:"将该组设为活跃组,外部翻页 UI 据此启用",children:l[e(1791)](C[e(1804)],{size:e(1171),type:"primary",ghost:!0,disabled:g[e(939)].length===0,onClick:()=>u(g.id),children:e(1393)})}),l[e(1791)](C[e(1499)],{title:e(1628),children:l[e(1791)](C[e(1804)],{size:e(1171),icon:l[e(1791)](fe[e(739)],{}),disabled:g.canvasIds[e(461)]<2,onClick:()=>s(g.id)})}),l[e(1791)](C[e(1499)],{title:"翻到下一页(基于当前画布)",children:l[e(1791)](C[e(1804)],{size:e(1171),icon:l[e(1791)](fe[e(1919)],{}),disabled:g.canvasIds[e(461)]<2,onClick:()=>f(g.id)})})]})]}),l[e(584)]("div",{className:"flex items-center gap-2 mb-3",children:[l.jsx(C.Select,{placeholder:"选择画布加入",value:z,onChange:p,style:{flex:1},size:e(1171),disabled:S[e(461)]===0,options:S[e(1186)](E=>({label:E[e(1123)],value:E.id}))}),l[e(1791)](C[e(1804)],{size:e(1171),type:e(974),icon:l.jsx(fe[e(1569)],{}),disabled:!z,onClick:q,children:"加入"})]}),g[e(939)].length===0?l[e(1791)](C.Empty,{description:e(152),image:C.Empty[e(1451)],style:{marginTop:40}}):l[e(1791)](C.List,{size:"small",dataSource:g[e(939)],renderItem:(E,V)=>{const T=e,X=n[T(1279)][T(1682)](B=>B.id===E),H=n[T(186)]===E,N=g[T(939)].length;return l[T(1791)](C[T(1492)][T(1403)],{style:{padding:T(1612)},actions:[l[T(1791)](C.Tooltip,{title:"上移",children:l[T(1791)](C[T(1804)],{type:T(513),size:T(1171),icon:l.jsx(fe.ArrowUpOutlined,{}),disabled:V===0,onClick:()=>a(g.id,E,"up")})},"up"),l[T(1791)](C[T(1499)],{title:"下移",children:l[T(1791)](C[T(1804)],{type:T(513),size:T(1171),icon:l[T(1791)](fe[T(161)],{}),disabled:V===N-1,onClick:()=>a(g.id,E,"down")})},"down"),l[T(1791)](C[T(1499)],{title:T(680),children:l[T(1791)](C[T(1804)],{type:T(513),size:T(1171),danger:!0,icon:l[T(1791)](fe[T(371)],{}),onClick:()=>i(g.id,E)})},T(1946))],children:l.jsxs(T(158),{className:T(439),children:[l.jsx(C.Tag,{children:V+1}),l.jsx(T(158),{style:{fontWeight:H?600:400},children:X?.[T(1123)]??T(1291)+E.slice(0,6)+")"}),H&&l[T(1791)](C[T(389)],{color:T(346),children:"当前"})]})})}})]}):l.jsx(C[e(1821)],{description:"请选择左侧一个同级关系组",image:C[e(1821)][e(1451)],style:{marginTop:60}})})]})},zl=[c(1614),c(1316),"#faad14",c(1554),c(1262),c(227),"#13c2c2",c(1828),c(1312),c(1819),"#8c8c8c","#d9d9d9",c(1315),c(237),"#ff4d4f","#73d13d"],yn=({value:e="#1890ff",onChange:n,onChangeComplete:t})=>{const o=c,[x,r]=L[o(1326)](!1),[i,a]=L.useState(e),f=L[o(619)](null);L[o(553)](()=>{a(e)},[e]),L.useEffect(()=>{const u=o,d=h=>{const y=_0x1d61;f[y(1890)]&&!f.current[y(503)](h[y(1385)])&&(r(!1),t?.({toHexString:()=>i}))};return x&&document.addEventListener("mousedown",d),()=>document[u(1196)](u(776),d)},[x,t,i]);const s=u=>{a(u),n?.({toHexString:()=>u})};return l[o(584)]("div",{ref:f,style:{position:o(348),display:o(901)},children:[l[o(1791)]("div",{onClick:()=>r(!x),style:{width:28,height:28,backgroundColor:i,border:"1px solid #d9d9d9",borderRadius:4,cursor:"pointer"}}),x&&l[o(584)](o(1517),{style:{position:o(1365),top:32,left:0,zIndex:1e3,background:o(1219),padding:8,borderRadius:4,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",border:"1px solid #f0f0f0"},children:[l[o(1791)]("div",{style:{display:o(1553),gridTemplateColumns:o(1740),gap:4},children:zl[o(1186)](u=>l[o(1791)](o(1517),{onClick:()=>{s(u),r(!1),t?.({toHexString:()=>u})},style:{width:20,height:20,backgroundColor:u,border:i===u?"2px solid #1890ff":"1px solid #d9d9d9",borderRadius:2,cursor:o(914)}},u))}),l[o(1791)]("input",{type:o(1822),value:i,onChange:u=>s(u[o(1385)][o(699)]),onBlur:()=>t?.({toHexString:()=>i}),style:{width:o(1888),marginTop:8,height:28,border:o(160),borderRadius:4}})]})]})},{TextArea:Cl}=C[c(703)];function Ml(e){const n=c;if(!e||!(e instanceof HTMLElement))return!1;const t=e[n(266)];return!!(t===n(1373)||t===n(967)||t===n(622)||t===n(982)||e[n(1024)]||e[n(809)](n(1509))||e.closest(n(1042))||e[n(809)](n(1364))||e[n(809)](n(446)))}const Vr=({defaultTestData:e,readonly:n=!1,backgroundImageUrl:t,initialViewportWidth:o,initialViewportHeight:x})=>{const r=c,i=L[r(619)](null),a=L.useRef(null),f=L.useRef(null),{nodes:s,selectedNodeId:u,selectedNodeIds:d,mode:h,lineDrawing:y,viewport:v,canvas:g,root:w,setViewport:M,setCanvasConfig:b,addNode:m,selectNode:z,updateNode:p,removeNode:S,bringToFront:O,sendToBack:G,undo:q,redo:E,setMode:V,startLineDrawing:T,endLineDrawing:X,cancelLineDrawing:H,addCanvas:N,removeCanvas:B,switchCanvas:D,updateCanvasName:j,exportCanvas:U,importCanvas:k,setSelectedNodeIds:R}=Xe(),[_,J]=L[r(1326)](!1),[,xe]=L[r(1326)]({}),oe=L[r(619)](h);L.useEffect(()=>{oe.current=h},[h]),L[r(553)](()=>{V(n?r(1605):"select")},[n,V]);const ce=n&&o&&g[r(737)]>0?Math[r(407)](o/g[r(737)],1):.5,ue=n&&o?1:5,me=n&&o&&g[r(737)]>0?ce:1,se=n&&o?r(1430)+o+"-"+(x||r(1937))+r(744)+g[r(737)]+"-"+g[r(522)]:r(1409),F=L.useRef(me),le=L.useRef(!1),de=L[r(619)]({x:0,y:0}),Y=L.useRef({x:0,y:0,newX:0,newY:0}),I=L[r(619)](null),[Z,ee]=L[r(1326)]({start:null,end:null,isDrawing:!1}),[te,W]=L[r(1326)]({start:null,end:null}),re=d,be=R;L[r(619)](!1);const[ve,De]=L.useState(!1),[Pe,Ae]=L.useState(!1),[Be,Le]=L[r(1326)](()=>JSON.stringify(e??null,null,2)),Ue=L[r(1356)](()=>{const P=r;if(!Pe)return e;try{return JSON[P(1028)](Be)}catch{return e}},[Be,e,Pe]),Ie=L[r(1356)](()=>{const P=Ue;if(P!==null&&typeof P=="object")return P;if(P!==void 0)return{_payload:P}},[Ue]),Ge=L[r(1356)](()=>{const P=r,A=Ue;return A!==null&&typeof A=="object"&&!Array[P(1021)](A)?A:Array[P(1021)](A)?{_telemetryRows:A}:A==null?{}:{_payload:A}},[Ue]),He=L[r(130)](()=>{const P=r;let A=e;if(Pe)try{A=JSON.parse(Be)}catch{A=e}Le(JSON[P(595)](A??null,null,2)),De(!0)},[Be,e,Pe]),[Ze,l0]=L[r(1326)](!1),[b0,Fe]=L[r(1326)](!1),[n0,Qe]=L.useState(""),[t0,c0]=L[r(1326)](!1),A0=L[r(130)](()=>{const P=r;try{const A=U(),$=JSON[P(595)](A,null,2),Q=P(1815)+encodeURIComponent($),ie=P(1609)+A[P(202)][P(1123)]+"_"+Date[P(590)]()+P(1728),K=document[P(1830)]("a");K[P(526)]("href",Q),K[P(526)](P(1404),ie),K[P(652)](),C[P(208)][P(454)](P(911))}catch{C[P(208)][P(1842)]("画布导出失败")}},[U]),q0=L[r(130)](()=>{const P=r;try{const A=JSON[P(1028)](n0);t0?k(A):k(A,w[P(186)]||void 0),Fe(!1),Qe(""),c0(!1),C[P(208)][P(454)](P(287))}catch{C[P(208)][P(1842)](P(952))}},[n0,t0,k,w[r(186)]]),E0=L.useCallback(P=>{const A=r,$=new FileReader;return $[A(839)]=Q=>{const ie=A;try{const K=Q[ie(1385)]?.[ie(1559)],ne=JSON[ie(1028)](K);t0?k(ne):k(ne,w[ie(186)]||void 0),C[ie(208)].success(ie(287)),Fe(!1),c0(!1)}catch{C[ie(208)][ie(1842)](ie(623))}},$[A(955)](P),!1},[t0,k,w.currentCanvasId]),[qe,rn]=L[r(1326)](!1),Re=L[r(130)]((P,A)=>{const $=r;if(!a[$(1890)])return{x:0,y:0};const Q=a.current[$(1593)](),ie=P-Q[$(548)],K=A-Q[$(327)],ne=Q[$(737)]/g.width,ge=Q[$(522)]/g[$(522)],we=ie/ne,ye=K/ge;return{x:Math[$(1263)](we),y:Math[$(1263)](ye)}},[g[r(737)],g[r(522)]]),B0=L[r(130)]((P,A)=>Re(P,A),[Re]),v0=L[r(130)]((P,A,$=!0)=>{const Q=r;if(!y.material)return;const ie=y[Q(277)],K=ie[Q(141)]||{},ne=K[Q(551)]||K[Q(1128)]||2,ge=Math[Q(407)](P.x,A.x),we=Math[Q(407)](P.y,A.y),ye=Math[Q(1263)](P.x-ge),ze=Math[Q(1263)](P.y-we),Ce=Math[Q(1263)](A.x-ge),Se=Math[Q(1263)](A.y-we),We=Math.max(ne*2,4),Ee=Math[Q(630)](Math[Q(1016)](P.x-A.x),We),Je=Math[Q(630)](Math.abs(P.y-A.y),We),Te={...ie,id:Me[Q(467)](),config:{color:K[Q(1822)],lineWeight:ne,thickness:ne,lineType:K.lineType,startX:ye,startY:ze,endX:Ce,endY:Se}},ae={id:Me[Q(467)](),name:ie.name+"_"+Date[Q(590)](),type:"normal",normalStyle:{width:Ee,height:Je,x:ge,y:we,background:Q(1437)},contentInfo:{statusList:[kx(Te)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(m(ae,!1),$){const he={x:A.x,y:A.y};ee({start:he,end:{...he},isDrawing:!0})}else ee({start:null,end:null,isDrawing:!1}),X()},[y[r(277)],m,X]),W0=L[r(130)](()=>{const P=r,A=i[P(1890)]?.[P(1859)];if(!A)return;const $=A[P(1722)];F[P(1890)]=$.scale,M({scale:$[P(442)],positionX:0,positionY:0})},[M]),Ao=L.useCallback(P=>{const A=r;le[A(1890)]||h!=="box-select"&&(P[A(1385)]===a.current||P[A(1385)].dataset?.canvas===A(1293))&&(z(null),be([]))},[z,h]),Eo=L.useCallback(P=>{const A=r;if(P.button===0){if(h===A(1665)&&y[A(277)]){P[A(1223)]();const $=Re(P[A(1089)],P[A(1450)]);Z[A(568)]?Z[A(916)]&&v0(Z.start,$,!0):ee({start:$,end:$,isDrawing:!0});return}if(h===A(1126)&&!qe){const $=B0(P[A(1089)],P.clientY);W({start:$,end:$}),be([]),z(null),P[A(1061)](),P.stopPropagation()}}},[h,y[r(277)],Z[r(568)],Z.start,qe,v0,Re,B0]),jo=L[r(130)](P=>{const A=r;if(!(h!==A(1665)||!y[A(277)])&&Z[A(568)]&&Z[A(916)]){const $=Re(P[A(1089)],P.clientY);v0(Z[A(916)],$,!1)}},[h,y[r(277)],Z[r(568)],Z[r(916)],v0,Re]),Yo=L[r(130)](P=>{P[r(1061)](),P.dataTransfer.dropEffect="copy",J(!0)},[]),Uo=L[r(130)](P=>{P[r(1061)](),J(!1)},[]),Oo=L[r(130)](P=>{const A=r;if(P[A(1061)](),J(!1),!(!a[A(1890)]||h!==A(718)&&h!=="box-select"))try{const $=P.dataTransfer[A(364)]("application/json");if(!$)return;const Q=JSON[A(1028)]($),ie=Re(P[A(1089)],P[A(1450)]),K=ie.x-50,ne=ie.y-50,ge=fr(K,ne,Q);m(ge),be([ge.id])}catch($){console[A(1842)](A(1087),$)}},[h,m,Re,be]),Go=L[r(130)]((P,A)=>{const $=r;h!==$(718)&&h!=="box-select"||!A[$(1396)][$(1531)]||(P[$(1223)](),z(A.id),le.current=!0,de[$(1890)]={x:P[$(1089)],y:P[$(1450)]},Y[$(1890)]={x:A.normalStyle.x||0,y:A[$(307)].y||0,newX:A.normalStyle.x||0,newY:A[$(307)].y||0},I[$(1890)]=A,P.preventDefault())},[h,z]);L.useEffect(()=>{const P=r,A=K=>{const ne=_0x1d61;if(le[ne(1890)]&&u&&I[ne(1890)]){if(!a.current)return;const ge=a[ne(1890)][ne(1593)](),we=ge.width/g.width,ye=ge[ne(522)]/g.height,ze=K.clientX-de[ne(1890)].x,Ce=K[ne(1450)]-de.current.y,Se=ze/we,We=Ce/ye,Ee=Y.current.x+Se,Je=Y[ne(1890)].y+We,Te=document[ne(881)]('[data-node-id="'+u+'"]');Te&&(Te[ne(1022)][ne(548)]=Ee+"px",Te[ne(1022)][ne(327)]=Je+"px"),Y[ne(1890)][ne(310)]=Ee,Y[ne(1890)].newY=Je}if(h===ne(1126)&&te[ne(916)]){const ge=B0(K[ne(1089)],K[ne(1450)]);W(we=>({...we,end:ge}))}if(h===ne(1665)&&Z[ne(568)]){const ge=Re(K[ne(1089)],K.clientY);ee(we=>({...we,end:ge}))}},$=()=>{const K=_0x1d61;if(le.current&&u&&I[K(1890)]){const ne=Xe.getState(),ge=Y[K(1890)].newX??Y[K(1890)].x,we=Y[K(1890)][K(339)]??Y[K(1890)].y;ne[K(1506)](u,{normalStyle:{...I.current[K(307)],x:ge,y:we}})}if(le[K(1890)]=!1,I[K(1890)]=null,xe({}),h==="box-select"&&te.start&&te[K(306)]){const ne=Math.min(te[K(916)].x,te.end.x),ge=Math[K(630)](te[K(916)].x,te[K(306)].x),we=Math[K(407)](te.start.y,te[K(306)].y),ye=Math[K(630)](te[K(916)].y,te[K(306)].y),ze=s[K(1027)](Ce=>{const Se=K,We=Ce[Se(307)].x||0,Ee=Ce[Se(307)].y||0,Je=Ce[Se(307)][Se(737)]||0,Te=Ce.normalStyle[Se(522)]||0,ae=We+Je/2,he=Ee+Te/2;return ae>=ne&&ae<=ge&&he>=we&&he<=ye})[K(1186)](Ce=>Ce.id);be(ze),W({start:null,end:null})}},Q=K=>{const ne=_0x1d61;if(!Ml(K.target)){if(K.key==="Escape"&&h===ne(1665)&&(ee({start:null,end:null,isDrawing:!1}),H()),K[ne(387)]===ne(1121)&&(u?S(u):re.length>0&&(re[ne(1956)](ge=>S(ge)),be([]))),K.ctrlKey&&K[ne(387)]==="z"&&(K[ne(1061)](),q()),K[ne(1374)]&&K[ne(387)]==="y"&&(K[ne(1061)](),E()),(h===ne(718)||h===ne(1126))&&(K[ne(387)]===ne(941)||K.key===ne(1131)||K[ne(387)]==="ArrowUp"||K[ne(387)]==="ArrowDown")){const ge=re.length>0?re:u?[u]:[];if(ge[ne(461)]>0){K.preventDefault();const we=K[ne(387)]==="ArrowLeft"?-2:K.key==="ArrowRight"?2:0,ye=K[ne(387)]===ne(206)?-2:K[ne(387)]==="ArrowDown"?2:0;ge[ne(1956)](ze=>{const Ce=ne,Se=s[Ce(1682)](We=>We.id===ze);Se&&p(ze,{normalStyle:{...Se[Ce(307)],x:(Se.normalStyle.x||0)+we,y:(Se[Ce(307)].y||0)+ye}})})}}K[ne(387)]===" "&&(K[ne(1061)](),!qe&&rn(!0))}},ie=K=>{K[_0x1d61(387)]===" "&&qe&&rn(!1)};return window[P(1018)]("mousemove",A),window[P(1018)](P(1392),$),window[P(1018)](P(1330),Q),window[P(1018)](P(291),ie),()=>{const K=P;window[K(1196)](K(1464),A),window[K(1196)](K(1392),$),window[K(1196)](K(1330),Q),window[K(1196)]("keyup",ie)}},[u,te,h,Z[r(568)],re,s,g.width,g[r(522)],S,q,qe,E,H,Re,B0,be,p]);const dx=(P,A=!0)=>{const $=r,Q={...P,id:Me.nanoid(),name:P[$(1123)]+$(222),normalStyle:{...P[$(307)],x:(P.normalStyle.x||0)+(A?20:0),y:(P[$(307)].y||0)+(A?20:0)}};return P[$(893)]===$(889)&&P.children&&(Q[$(1377)]=P.children[$(1186)](ie=>dx(ie,!1))),Q},hx=L[r(130)](()=>{const P=r,A=re[P(461)]>0?re[P(1186)](Q=>s.find(ie=>ie.id===Q))[P(1027)](Boolean):u?[s[P(1682)](Q=>Q.id===u)][P(1027)](Boolean):[];if(A[P(461)]===0)return;const $=[];A.forEach(Q=>{const ie=P,K=dx(Q);m(K),$[ie(1955)](K.id)}),$[P(461)]===1?z($[0]):be($)},[u,re,s,m,z,be]),gx=L[r(130)](()=>{const P=r;if(re[P(461)]<2)return;const A=[];for(let we=0;we<re.length;we++){const ye=re[we],ze=s.find(Ce=>Ce.id===ye);if(ze){if(ze?.[P(893)]===P(889)){ze[P(1377)][P(1956)](Se=>A.push({...Se,normalStyle:{...Se[P(307)],x:(ze.normalStyle.x||0)+(Se[P(307)].x||0),y:(ze[P(307)].y||0)+(Se[P(307)].y||0)}})),S(ye);continue}A.push(ze)}}if(A.length<2)return;let $=1/0,Q=1/0,ie=-1/0,K=-1/0;A.forEach(we=>{const ye=P,ze=we[ye(307)].x||0,Ce=we.normalStyle.y||0,Se=we[ye(307)][ye(737)]||0,We=we[ye(307)][ye(522)]||0;$=Math.min($,ze),Q=Math.min(Q,Ce),ie=Math[ye(630)](ie,ze+Se),K=Math[ye(630)](K,Ce+We)});const ne=A[P(1186)](we=>({...we,normalStyle:{...we[P(307)],x:(we[P(307)].x||0)-$,y:(we[P(307)].y||0)-Q}})),ge={id:Me[P(467)](),name:P(378)+Date[P(590)](),type:P(889),normalStyle:{x:$,y:Q,width:ie-$,height:K-Q,background:P(1437)},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:ne};re.forEach(we=>S(we)),m(ge),be([]),z(ge.id)},[re,s,S,m,z]),yx=P=>{const A=r,$={...P,id:Me.nanoid()};return P[A(893)]===A(889)&&P.children&&($[A(1377)]=P.children[A(1186)](Q=>yx(Q))),$},mx=L[r(130)](()=>{const P=r,A=re[P(461)]>0?re.map($=>s[P(1682)](Q=>Q.id===$))[P(1027)]($=>!!$&&$[P(893)]==="group"):u?[s[P(1682)]($=>$.id===u)].filter($=>!!$&&$[P(893)]===P(889)):[];A.length!==0&&(A.forEach($=>{const Q=P;if(!$[Q(1377)]||$.children[Q(461)]===0)return;const ie=$[Q(307)].x||0,K=$[Q(307)].y||0,ne=$[Q(307)][Q(737)]||0,ge=$.normalStyle.height||0,we=$[Q(307)].rotate||0,ye=we*Math.PI/180,ze=Math[Q(1357)](ye),Ce=Math[Q(915)](ye),Se=ie+ne/2,We=K+ge/2,Ee=(Te,ae)=>{const he=Te-ne/2,_e=ae-ge/2;return{x:Se+he*ze-_e*Ce,y:We+he*Ce+_e*ze}},Je=$.children[Q(1186)](Te=>{const ae=Q,he=yx(Te);if(he[ae(1345)].statusList.some(qo=>qo[ae(277)][ae(893)]===ae(1743))){const qo=he[ae(307)].x||0,g1=he[ae(307)].y||0,is=he.normalStyle[ae(737)]||0,as=he[ae(307)][ae(522)]||0,y1=he[ae(307)][ae(794)]||0,cs=y1*Math.PI/180,ss=Math[ae(1357)](cs),ls=Math.sin(cs),fs=(sn,$e)=>{const w0=sn-is/2,D0=$e-as/2,f0=w0*ss-D0*ls+is/2,Zo=w0*ls+D0*ss+as/2;return Ee(qo+f0,g1+Zo)};let an=1/0,cn=1/0,Wo=-1/0,Xo=-1/0,Ko=2;const m1=he[ae(1345)][ae(273)].map(sn=>{const $e=ae;if(sn[$e(277)].type!==$e(1743))return null;const w0=sn.material.config||{},D0=fs(w0[$e(470)]||0,w0[$e(481)]||0),f0=fs(w0.endX||0,w0[$e(1783)]||0);return an=Math[$e(407)](an,D0.x,f0.x),cn=Math[$e(407)](cn,D0.y,f0.y),Wo=Math[$e(630)](Wo,D0.x,f0.x),Xo=Math.max(Xo,D0.y,f0.y),Ko=Math[$e(630)](Ko,w0[$e(551)]||w0[$e(1128)]||2),{s:D0,e:f0}});if(Number[ae(971)](an)&&Number[ae(971)](cn)){const sn=Math[ae(630)](Ko*2,4),$e=Math[ae(630)](Wo-an,sn),w0=Math[ae(630)](Xo-cn,sn),D0=he[ae(1345)][ae(273)].map((f0,Zo)=>{const Ro=ae,dt=m1[Zo];if(!dt||f0.material.type!==Ro(1743))return f0;const us=f0[Ro(277)];return{...f0,material:{...us,config:{...us[Ro(141)]||{},startX:dt.s.x-an,startY:dt.s.y-cn,endX:dt.e.x-an,endY:dt.e.y-cn}}}});return{...he,normalStyle:{...he[ae(307)],x:an,y:cn,width:$e,height:w0,rotate:0},contentInfo:{...he[ae(1345)],statusList:D0}}}}const x0=he[ae(307)][ae(737)]||0,kn=he[ae(307)][ae(522)]||0,ut=he[ae(307)].x||0,l1=he[ae(307)].y||0,os=ut+x0/2-ne/2,rs=l1+kn/2-ge/2,f1=Se+os*ze-rs*Ce,u1=We+os*Ce+rs*ze,d1=he.normalStyle[ae(794)]||0,h1=((d1+we)%360+360)%360;return{...he,normalStyle:{...he[ae(307)],x:f1-x0/2,y:u1-kn/2,rotate:h1}}});S($.id),Je[Q(1956)](Te=>m(Te))}),be([]),z(null))},[u,re,s,S,m,z,be]),at=L.useCallback(P=>{const A=r;if(re[A(461)]<1)return;const $=re.map(Q=>s[A(1682)](ie=>ie.id===Q)).filter(Q=>!!Q);if($.length===1&&$[0][A(893)]==="group"){const Q=$[0];if(!Q[A(1377)]||Q[A(1377)][A(461)]<2)return;const ie=[...Q[A(1377)]];let K=1/0,ne=1/0,ge=-1/0,we=-1/0;if(P==="horizontal"){const ye=[...ie][A(253)]((ae,he)=>(ae[A(307)].x||0)-(he[A(307)].x||0));let ze=1/0,Ce=-1/0,Se=0;ye[A(1956)](ae=>{const he=A,_e=ae[he(307)].x||0,x0=ae[he(307)][he(737)]||0;ze=Math[he(407)](ze,_e),Ce=Math[he(630)](Ce,_e+x0),Se+=x0});const We=(Ce-ze-Se)/(ye[A(461)]-1);let Ee=ze;const Je=new Map;ye[A(1956)](ae=>{const he=A;Je[he(1676)](ae.id,Ee),Ee+=(ae.normalStyle[he(737)]||0)+We});const Te=ie[A(1186)](ae=>({...ae,normalStyle:{...ae[A(307)],x:Je[A(1280)](ae.id)??ae.normalStyle.x}}));Te.forEach(ae=>{const he=A,_e=ae[he(307)].x||0,x0=ae[he(307)].y||0,kn=ae[he(307)][he(737)]||0,ut=ae[he(307)].height||0;K=Math[he(407)](K,_e),ne=Math[he(407)](ne,x0),ge=Math[he(630)](ge,_e+kn),we=Math[he(630)](we,x0+ut)}),p(Q.id,{normalStyle:{...Q[A(307)],x:(Q[A(307)].x||0)+K,y:(Q[A(307)].y||0)+ne,width:ge-K,height:we-ne},children:Te[A(1186)](ae=>({...ae,normalStyle:{...ae[A(307)],x:(ae[A(307)].x||0)-K,y:(ae[A(307)].y||0)-ne}}))})}else{const ye=[...ie][A(253)]((ae,he)=>(ae[A(307)].y||0)-(he.normalStyle.y||0));let ze=1/0,Ce=-1/0,Se=0;ye.forEach(ae=>{const he=A,_e=ae[he(307)].y||0,x0=ae.normalStyle[he(522)]||0;ze=Math[he(407)](ze,_e),Ce=Math[he(630)](Ce,_e+x0),Se+=x0});const We=(Ce-ze-Se)/(ye[A(461)]-1);let Ee=ze;const Je=new Map;ye[A(1956)](ae=>{const he=A;Je[he(1676)](ae.id,Ee),Ee+=(ae[he(307)][he(522)]||0)+We});const Te=ie.map(ae=>({...ae,normalStyle:{...ae[A(307)],y:Je.get(ae.id)??ae[A(307)].y}}));Te.forEach(ae=>{const he=A,_e=ae.normalStyle.x||0,x0=ae[he(307)].y||0,kn=ae.normalStyle[he(737)]||0,ut=ae[he(307)][he(522)]||0;K=Math.min(K,_e),ne=Math[he(407)](ne,x0),ge=Math[he(630)](ge,_e+kn),we=Math.max(we,x0+ut)}),p(Q.id,{normalStyle:{...Q[A(307)],x:(Q[A(307)].x||0)+K,y:(Q.normalStyle.y||0)+ne,width:ge-K,height:we-ne},children:Te.map(ae=>({...ae,normalStyle:{...ae[A(307)],x:(ae[A(307)].x||0)-K,y:(ae[A(307)].y||0)-ne}}))})}return}if(!($[A(461)]<2))if(P===A(1130)){const Q=[...$][A(253)]((ye,ze)=>{const Ce=A;return(ye.normalStyle.x||0)-(ze[Ce(307)].x||0)});let ie=1/0,K=-1/0,ne=0;Q[A(1956)](ye=>{const ze=A,Ce=ye.normalStyle.x||0,Se=ye[ze(307)][ze(737)]||0;ie=Math[ze(407)](ie,Ce),K=Math.max(K,Ce+Se),ne+=Se});const ge=(K-ie-ne)/(Q.length-1);let we=ie;Q[A(1956)](ye=>{const ze=A,Ce=we;p(ye.id,{normalStyle:{...ye[ze(307)],x:Ce}}),we+=(ye[ze(307)][ze(737)]||0)+ge})}else{const Q=[...$][A(253)]((ye,ze)=>(ye[A(307)].y||0)-(ze.normalStyle.y||0));let ie=1/0,K=-1/0,ne=0;Q[A(1956)](ye=>{const ze=A,Ce=ye.normalStyle.y||0,Se=ye.normalStyle[ze(522)]||0;ie=Math[ze(407)](ie,Ce),K=Math[ze(630)](K,Ce+Se),ne+=Se});const ge=(K-ie-ne)/(Q.length-1);let we=ie;Q.forEach(ye=>{const ze=A,Ce=we;p(ye.id,{normalStyle:{...ye[ze(307)],y:Ce}}),we+=(ye[ze(307)][ze(522)]||0)+ge})}},[re,s,p]),X0=P=>{const A=r,$=P[A(1345)][A(273)][A(1682)](Q=>Q[A(277)][A(893)]===A(1743));return $?$[A(277)][A(141)]:null},K0=L[r(130)](P=>{const A=r;if(re[A(461)]<2)return;const $=Xe[A(1772)](),Q=re[A(1186)](K=>s[A(1682)](ne=>ne.id===K))[A(1027)](K=>!!K);if(Q.length<2)return;let ie=0;switch(P){case A(548):ie=Math[A(407)](...Q.map(K=>{const ne=A,ge=X0(K);return ge?(K[ne(307)].x||0)+(ge[ne(470)]||0):K[ne(307)].x||0}));break;case A(1470):ie=Math[A(630)](...Q[A(1186)](K=>{const ne=A,ge=X0(K);return ge?(K[ne(307)].x||0)+(ge[ne(1391)]||0):(K.normalStyle.x||0)+(K[ne(307)].width||0)}));break;case"top":ie=Math.min(...Q[A(1186)](K=>{const ne=A,ge=X0(K);return ge?(K[ne(307)].y||0)+(ge[ne(481)]||0):K.normalStyle.y||0}));break;case A(464):ie=Math[A(630)](...Q[A(1186)](K=>{const ne=A,ge=X0(K);return ge?(K[ne(307)].y||0)+(ge[ne(1783)]||0):(K.normalStyle.y||0)+(K[ne(307)][ne(522)]||0)}));break}Q[A(1956)](K=>{const ne=A;let ge=K[ne(307)].x||0,we=K[ne(307)].y||0;const ye=X0(K);switch(P){case ne(548):ye?ge=ie-(ye[ne(470)]||0):ge=ie;break;case"right":ye?ge=ie-(ye.endX||0):ge=ie-(K[ne(307)][ne(737)]||0);break;case"top":ye?we=ie-(ye[ne(481)]||0):we=ie;break;case ne(464):ye?we=ie-(ye[ne(1783)]||0):we=ie-(K.normalStyle[ne(522)]||0);break}$[ne(1506)](K.id,{normalStyle:{...K[ne(307)],x:ge,y:we}})})},[re,s]),bx=[{icon:l.jsx(fe.SelectOutlined,{}),title:"选择模式",active:h==="select",onClick:()=>{V(r(718))}},{icon:l[r(1791)](fe[r(1550)],{}),title:r(1423),active:h===r(1126),onClick:()=>{V("box-select"),be([])}},{icon:l.jsx(fe.DragOutlined,{}),title:r(1654),active:h==="drag",onClick:()=>{V(r(928))}},{icon:l[r(1791)](fe.EditOutlined,{}),title:r(367),active:h==="line-draw",onClick:()=>{V(r(1665))}},{icon:l[r(1791)](fe.EyeOutlined,{}),title:r(316),active:h===r(1605),onClick:()=>{V(r(1605))}}],j0=L[r(130)](()=>re[r(461)]>0?re:u?[u]:[],[re,u]),vx=L[r(130)](()=>{const P=r,A=j0();if(A.length===0)return;s[P(1027)](Q=>A[P(1486)](Q.id))[P(1186)](Q=>Q.id)[P(1956)](Q=>O(Q))},[j0,s,O]),wx=L.useCallback(()=>{const P=r,A=j0();if(A[P(461)]===0)return;[...s[P(1027)](Q=>A[P(1486)](Q.id))[P(1186)](Q=>Q.id)].reverse().forEach(Q=>G(Q))},[j0,s,G]),ct=L[r(130)](P=>{const A=r,$=j0();$[A(461)]!==0&&$[A(1956)](Q=>{const ie=A,K=s[ie(1682)](ge=>ge.id===Q);!K||K[ie(893)]==="group"||!K[ie(1345)][ie(273)].some(ge=>ge[ie(277)].type===ie(873))||(P===ie(1130)?p(Q,{normalStyle:{...K.normalStyle,flipX:!K[ie(307)][ie(1058)]}}):p(Q,{normalStyle:{...K[ie(307)],flipY:!K[ie(307)][ie(1467)]}}))})},[j0,s,p]),Ho=j0(),st=Ho[r(540)](P=>{const A=r,$=s[A(1682)](Q=>Q.id===P);return $&&$[A(893)]!=="group"&&$[A(1345)][A(273)][A(540)](Q=>Q[A(277)][A(893)]===A(873))}),{actionButtonsRow1:px,actionButtonsRow2:To}=L.useMemo(()=>({actionButtonsRow1:[{icon:l[r(1791)](fe[r(1650)],{}),title:r(571),disabled:!u&&re[r(461)]===0,onClick:vx},{icon:l.jsx(fe[r(667)],{}),title:"置于底层",disabled:!u&&re[r(461)]===0,onClick:wx},{icon:l[r(1791)](fe[r(398)],{}),title:r(1257),disabled:!u&&re[r(461)]===0,onClick:hx},{icon:l[r(1791)](fe[r(1550)],{}),title:"组合选中节点",disabled:re.length<2,onClick:gx},{icon:l[r(1791)](fe[r(1848)],{}),title:r(1272),disabled:!u&&re[r(461)]===0,onClick:mx},{icon:l[r(1791)](fe[r(1023)],{}),title:r(877),onClick:()=>l0(!0)},{icon:l[r(1791)](fe[r(1857)],{}),title:r(1539),type:"primary",onClick:He},{icon:l[r(1791)](fe.DeleteOutlined,{}),title:r(263),disabled:!u&&re[r(461)]===0,onClick:()=>{const P=r;u?S(u):re[P(461)]>0&&(re[P(1956)](A=>S(A)),be([]))}}],actionButtonsRow2:[{icon:l[r(1791)](fe[r(1945)],{}),title:r(1118),disabled:re[r(461)]<2,onClick:()=>K0(r(548))},{icon:l[r(1791)](fe[r(1228)],{}),title:r(1757),disabled:re[r(461)]<2,onClick:()=>K0("right")},{icon:l[r(1791)](fe[r(1920)],{}),title:r(956),disabled:re[r(461)]<2,onClick:()=>K0("top")},{icon:l[r(1791)](fe[r(1469)],{}),title:r(1788),disabled:re[r(461)]<2,onClick:()=>K0(r(464))},{icon:l[r(1791)](fe.ColumnWidthOutlined,{}),title:r(153),disabled:(()=>{const P=r;if(re[P(461)]>=2)return!1;if(re[P(461)]===1){const A=s[P(1682)]($=>$.id===re[0]);return!(A?.[P(893)]===P(889)&&A[P(1377)]&&A[P(1377)][P(461)]>=2)}return!0})(),onClick:()=>at("horizontal")},{icon:l[r(1791)](fe[r(641)],{}),title:"垂直分布",disabled:(()=>{const P=r;if(re.length>=2)return!1;if(re[P(461)]===1){const A=s[P(1682)]($=>$.id===re[0]);return!(A?.[P(893)]==="group"&&A[P(1377)]&&A[P(1377)][P(461)]>=2)}return!0})(),onClick:()=>at(r(486))},{icon:l.jsx(fe.SwapOutlined,{}),title:"水平翻转",disabled:!st,onClick:()=>ct(r(1130))},{icon:l[r(1791)](r(158),{style:{display:r(564),transform:r(949)},children:l[r(1791)](fe[r(1070)],{})}),title:r(1514),disabled:!st,onClick:()=>ct("vertical")}]}),[q,E,h,V,be,re,gx,mx,hx,K0,at,vx,wx,l0,De,He,u,S,w[r(186)],st,ct,s]),[Vo,zx]=L.useState(!1),[Cx,lt]=L[r(1326)](""),[Mx,ft]=L[r(1326)](null);return l[r(584)](r(1517),{className:"flex flex-col "+(n?"":r(1875)),children:[!n&&l[r(584)](r(1517),{className:"bg-white border-b border-gray-200 flex items-center justify-between px-4 py-2",children:[l[r(584)](C.Space,{children:[bx.map(P=>l.jsx(C[r(1499)],{title:P.title,children:l[r(1791)](C[r(1804)],{type:P.active?r(974):r(1409),icon:P[r(953)],onClick:P[r(1877)]})},P[r(212)])),l[r(1791)](r(1517),{className:r(1766)}),l[r(1791)](C[r(1436)],{value:w[r(186)],onChange:D,style:{width:140},dropdownRender:P=>l.jsxs(l[r(611)],{children:[P,l[r(1791)]("div",{className:r(351),children:l[r(1791)](C.Button,{type:r(1565),size:"small",block:!0,onClick:()=>zx(!0),children:r(1909)})})]}),children:w[r(1279)][r(1186)](P=>l[r(1791)](C[r(1436)][r(669)],{value:P.id,children:P[r(1123)]},P.id))}),l[r(1791)](C[r(1804)],{icon:l[r(1791)](fe[r(1569)],{}),size:"small",onClick:()=>N(),title:r(1075)}),l.jsx(C.Tooltip,{title:"导出当前画布",children:l[r(1791)](C.Button,{icon:l[r(1791)](fe[r(260)],{}),size:r(1171),onClick:A0})}),l[r(1791)](C[r(1499)],{title:r(919),children:l[r(1791)](C.Button,{icon:l[r(1791)](fe[r(1032)],{}),size:r(1171),onClick:()=>Fe(!0)})})]}),l[r(584)](C[r(642)],{direction:r(486),size:4,children:[l[r(1791)](C[r(642)],{children:px[r(1186)](P=>l[r(1791)](C[r(1499)],{title:P[r(212)],children:l.jsx(C[r(1804)],{type:P[r(1167)]?r(974):P[r(893)]||r(1409),icon:P[r(953)],onClick:A=>{const $=r;P[$(1877)](),A[$(1441)].blur()},disabled:P[r(1412)]})},P[r(212)]))}),l.jsx(C.Space,{children:To[r(1186)](P=>l[r(1791)](C[r(1499)],{title:P[r(212)],children:l[r(1791)](C[r(1804)],{type:P.active?r(974):P[r(893)]||r(1409),icon:P[r(953)],onClick:A=>{const $=r;P[$(1877)](),A[$(1441)][$(1481)]()},disabled:P[r(1412)]})},P[r(212)]))})]})]}),l.jsx(r(1517),{ref:f,className:"relative "+(n?"":"flex-1"),style:n&&o?{display:r(836),justifyContent:"flex-start",alignItems:r(205)}:void 0,onWheel:n&&o?P=>{const A=r;P[A(1061)](),P[A(1223)]();const $=i[A(1890)];if(!$)return;const Q=F[A(1890)],ie=.1,K=P[A(1139)]>0?Math[A(630)](Q-ie,ce):Math[A(407)](Q+ie,ue);$[A(1125)](0,0,K,0)}:void 0,children:l[r(1791)](gt.TransformWrapper,{ref:i,initialScale:me,initialPositionX:0,initialPositionY:0,minScale:ce,maxScale:ue,onTransformed:W0,limitToBounds:n&&!!o,centerZoomedOut:n&&!!o,panning:{disabled:!qe&&h!=="drag",velocityDisabled:!0},wheel:{disabled:n&&!!o,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:P,zoomOut:A,resetTransform:$})=>l[r(584)](l[r(611)],{children:[!n&&l[r(1791)](r(1517),{className:r(342),children:l[r(584)](C[r(642)],{direction:r(486),children:[l[r(1791)](C[r(1499)],{title:"放大",children:l[r(1791)](C.Button,{icon:l[r(1791)](fe[r(738)],{}),onClick:()=>P()})}),l.jsx(C[r(1499)],{title:"缩小",children:l.jsx(C[r(1804)],{icon:l[r(1791)](fe[r(995)],{}),onClick:()=>A()})}),l.jsx(C[r(1499)],{title:r(1671),children:l.jsx(C[r(1804)],{onClick:()=>$(),children:r(1888)})}),l.jsxs("div",{className:"text-center text-xs text-gray-500",children:[Math[r(1263)](v[r(442)]*100),"%"]})]})}),l.jsx(gt.TransformComponent,{wrapperStyle:n&&o?{width:o,height:x||g[r(522)]*(F[r(1890)]||1)+"px",position:"relative",overflow:r(556)}:{width:r(1888),height:n?g[r(522)]*(F.current||1)+"px":r(1888),position:r(348),overflow:r(n?1145:556)},contentStyle:{width:n?g.width+"px":r(1888),height:n?g[r(522)]+"px":r(1888),display:"flex",alignItems:r(n?205:1625),justifyContent:n?"flex-start":r(1625)},children:l[r(584)](r(1517),{ref:a,"data-canvas":r(1293),className:r(857)+(_?r(587):"")+" "+(h===r(1665)?r(997):"")+" "+(qe?r(921):""),style:{width:g[r(737)],height:g[r(522)],flexShrink:0,backgroundColor:g.background,backgroundImage:g[r(258)]?"url("+g[r(258)]+")":void 0,backgroundSize:r(1699),backgroundPosition:r(1625)},onClick:Ao,onMouseDown:Eo,onDoubleClick:jo,onDragOver:Yo,onDragLeave:Uo,onDrop:Oo,children:[t&&!n&&l[r(584)](r(1517),{className:"absolute top-0 left-0 pointer-events-none overflow-hidden",style:{width:g[r(737)],height:g[r(522)]},children:[l[r(1791)](r(1917),{src:t,alt:"",className:r(1311),draggable:!1}),l.jsx(r(1563),{className:r(803),width:1920,height:1080,children:l[r(1791)](r(1761),{x:"0",y:"0",width:r(1507),height:"1080",fill:r(245),stroke:"yellow",strokeWidth:"2"})})]}),g[r(1177)]!==!1&&l[r(584)]("svg",{className:r(803),width:g[r(737)],height:g[r(522)],children:[l[r(1791)](r(1370),{children:l[r(1791)](r(1109),{id:"grid",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:l[r(1791)](r(755),{d:r(309),fill:r(245),stroke:r(1800),opacity:"0.1",strokeWidth:"1"})})}),l[r(1791)]("rect",{width:r(1888),height:r(1888),fill:r(1327)})]}),s.map(Q=>l[r(1791)](Gx,{node:Q,isSelected:h==="preview"?!1:u===Q.id||re[r(1486)](Q.id),data:Ie,onClick:h===r(1605)?void 0:ie=>{const K=r;console.log(K(681),Q.id,K(1642),oe[K(1890)]),oe[K(1890)]!==K(1665)&&(ie[K(1117)]?(z(Q.id),be([...re,Q.id])):(z(Q.id),be([Q.id])))},onMouseDown:h===r(1605)?void 0:ie=>Go(ie,Q),onUpdateNode:h===r(1605)?void 0:(ie,K)=>p(ie,K),scale:v[r(442)],enableEventFlow:h===r(1605),eventFlowData:Ge},""+Q.id)),h===r(1665)&&Z.isDrawing&&Z[r(916)]&&Z[r(306)]&&l.jsx(r(1563),{className:r(803),width:g[r(737)],height:g.height,children:l[r(1791)](r(1036),{x1:Z[r(916)].x,y1:Z.start.y,x2:Z[r(306)].x,y2:Z.end.y,stroke:r(1614),strokeWidth:"2",strokeDasharray:"5,5",strokeLinecap:r(1263),strokeLinejoin:r(1263)})}),h===r(1126)&&te[r(916)]&&te[r(306)]&&l.jsx(r(1517),{className:r(1749),style:{left:Math[r(407)](te[r(916)].x,te[r(306)].x),top:Math[r(407)](te.start.y,te[r(306)].y),width:Math[r(1016)](te[r(306)].x-te[r(916)].x),height:Math[r(1016)](te[r(306)].y-te[r(916)].y),zIndex:9999}})]})})]})},se)}),l.jsx(C.Modal,{title:r(1539),open:ve,onCancel:()=>De(!1),footer:null,children:l[r(1791)](C.Form,{layout:r(486),children:l[r(1791)](C[r(1510)].Item,{label:r(517),children:l[r(1791)](Cl,{value:Be,onChange:P=>{const A=r;Ae(!0),Le(P[A(1385)][A(699)])},rows:10,placeholder:"输入 JSON 格式的测试数据;未编辑前画布跟随外部 defaultTestData(如监控推送)"})})})}),l[r(1791)](C[r(324)],{title:"画布配置",open:Ze,onCancel:()=>l0(!1),footer:null,children:l.jsxs(C.Form,{layout:r(486),children:[l.jsx(C[r(1510)][r(1403)],{label:"宽度",children:l[r(1791)](C[r(985)],{value:g[r(737)],onChange:P=>b({width:P||1920}),min:100,max:5e3,style:{width:"100%"}})}),l[r(1791)](C[r(1510)][r(1403)],{label:"高度",children:l[r(1791)](C[r(985)],{value:g.height,onChange:P=>b({height:P||1080}),min:100,max:5e3,style:{width:r(1888)}})}),l[r(1791)](C[r(1510)][r(1403)],{label:r(506),children:l[r(1791)](C[r(1019)],{checked:g[r(1177)]!==!1,onChange:P=>b({showGrid:P})})}),l.jsx(C[r(1510)][r(1403)],{label:r(1961),children:l[r(584)](r(1517),{className:r(439),children:[l[r(1791)](yn,{value:g.background||r(1692),onChange:P=>b({background:P[r(1897)]()})}),l[r(1791)](C.Input,{value:g.background,onChange:P=>b({background:P[r(1385)][r(699)]}),placeholder:r(1315)})]})}),l[r(584)](C[r(1510)][r(1403)],{label:r(1753),children:[l[r(584)]("div",{className:r(439),children:[l[r(1791)](C[r(833)],{accept:r(782),showUploadList:!1,beforeUpload:P=>{const A=r;if(!P[A(893)][A(533)](A(998)))return C[A(208)].error(A(1407)),!1;const Q=new FileReader;return Q[A(839)]=ie=>{const K=A,ne=ie.target?.[K(1559)];b({backgroundImage:ne}),C[K(208)][K(454)]("背景图片上传成功")},Q[A(1141)](P),!1},children:l[r(1791)](C[r(1804)],{icon:l.jsx(fe[r(1032)],{}),children:r(801)})}),l[r(1791)](C[r(703)],{value:g[r(258)],onChange:P=>b({backgroundImage:P[r(1385)][r(699)]}),placeholder:"输入图片 URL 或上传图片",style:{flex:1}}),g[r(258)]&&l[r(1791)](C[r(1804)],{icon:l[r(1791)](fe[r(849)],{}),onClick:()=>b({backgroundImage:void 0}),danger:!0,size:"small"})]}),g[r(258)]&&l[r(1791)]("div",{className:"mt-2 p-2 border rounded",style:{maxWidth:"100%"},children:l[r(1791)](r(1917),{src:g[r(258)],alt:r(1410),style:{maxWidth:r(1888),maxHeight:120,objectFit:r(793)}})})]})]})}),l[r(1791)](C[r(324)],{title:r(1849),open:Vo,onCancel:()=>{zx(!1),ft(null),lt("")},footer:null,width:760,children:l[r(1791)](C[r(559)],{items:[{key:"canvases",label:"画布列表",children:l.jsxs(l[r(611)],{children:[l[r(1791)](C[r(1492)],{dataSource:w[r(1279)],renderItem:P=>l[r(1791)](C[r(1492)][r(1403)],{actions:[Mx===P.id?l.jsx(C.Button,{type:r(974),size:"small",onClick:()=>{j(P.id,Cx),ft(null)},children:"保存"}):l.jsx(C.Button,{type:r(513),icon:l[r(1791)](fe.EditOutlined,{}),size:"small",onClick:()=>{ft(P.id),lt(P.name)}}),w[r(1279)].length>1&&l[r(1791)](C[r(1804)],{type:"text",danger:!0,icon:l[r(1791)](fe[r(371)],{}),size:"small",onClick:()=>B(P.id)})].filter(Boolean),children:Mx===P.id?l[r(1791)](C[r(703)],{value:Cx,onChange:A=>lt(A.target[r(699)]),size:r(1171),style:{width:200}}):l.jsxs(r(158),{style:{fontWeight:w.currentCanvasId===P.id?r(1789):r(131)},children:[P[r(1123)]," ",w[r(186)]===P.id&&"(当前)"]})})}),l[r(1791)]("div",{className:r(1922),children:l[r(1791)](C[r(1804)],{type:"primary",icon:l[r(1791)](fe[r(1569)],{}),onClick:()=>N(),children:r(1075)})})]})},{key:r(1043),label:r(216),children:l.jsx(pl,{})}]})}),l.jsx(C[r(324)],{title:r(919),open:b0,onOk:q0,onCancel:()=>{Fe(!1),Qe(""),c0(!1)},destroyOnClose:!0,width:600,children:l[r(584)]("div",{className:r(196),children:[l[r(584)](r(1517),{children:[l[r(1791)]("p",{className:r(1948),children:r(752)}),l[r(1791)](r(1338),{type:"file",accept:r(1728),onChange:P=>{const A=r,$=P[A(1385)].files?.[0];$&&E0($)},className:`block w-full text-sm text-gray-500
4
- file:mr-4 file:py-2 file:px-4
5
- file:rounded-full file:border-0
6
- file:text-sm file:font-semibold
7
- file:bg-blue-50 file:text-blue-700
8
- hover:file:bg-blue-100`})]}),l.jsx(r(1517),{className:r(600),children:"或"}),l[r(584)]("div",{children:[l[r(1791)]("p",{className:"mb-2",children:"粘贴 JSON 内容:"}),l.jsx(r(1222),{value:n0,onChange:P=>Qe(P.target[r(699)]),placeholder:r(203),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"})]}),l.jsxs(r(1517),{className:r(439),children:[l[r(1791)]("input",{type:r(959),id:"importAsNewCanvas",checked:t0,onChange:P=>c0(P[r(1385)][r(333)]),className:r(1798)}),l[r(1791)](r(772),{htmlFor:"importAsNewCanvas",className:r(770),children:"导入为新画布(不覆盖当前画布)"})]})]})})]})},{Option:Bt}=C[c(1436)];function qr(e){return Array[c(1021)](e)}function Bl(e){const n=c,t=new Set;return e[n(1956)](o=>Object[n(859)](o)[n(1956)](x=>t[n(1742)](x))),Array[n(598)](t)}function Dl(e,n){const t=c;return e[t(1186)]((o,x)=>{const r=t,i=o[n],a=o[r(1123)];return{label:String(a??"项 "+(x+1)),value:typeof i===r(1516)||typeof i===r(663)?i:String(i)}})}function Wr(e,n=""){const t=c,o=[];for(const[x,r]of Object.entries(e)){const i=n?n+"."+x:x;r!==null&&typeof r=="object"&&!Array[t(1021)](r)?o[t(1955)](...Wr(r,i)):o[t(1955)]({paramsCode:i,paramsName:i,value:r})}return o}function Ll(e,n,t){const o=c;if(qr(e)){if(n!=null&&t!=null){const x=e[o(1682)](r=>r[n]===t);if(x)return x}return{}}return e}const Nl=({material:e,onSave:n})=>{const t=c,o=e,x=o.content||{},r=Xe(m=>m[t(934)]),[i,a]=L[t(1326)]({label:x[t(772)]||"",value:x[t(699)]||"",valueSourceCode:x[t(255)]||"",unit:x[t(1166)]||"",decimals:x[t(1317)]??2,labelFontSize:x[t(825)]?.[t(1445)]||14,labelFontWeight:x.labelStyle?.[t(1434)]||"bold",labelColor:x[t(825)]?.color||t(1819),valueFontSize:x[t(1102)]?.fontSize||14,valueFontWeight:x[t(1102)]?.[t(1434)]||"normal",valueColor:x.valueStyle?.[t(1822)]||t(1614),boundDatasetId:x[t(466)]||"",boundDatasetBindCode:x[t(1026)]||"",boundDatasetBindValue:x[t(1960)]??null}),f=L.useMemo(()=>{const m=t;return r[m(1682)](z=>z.id===i[m(466)])},[r,i[t(466)]]),s=f?qr(f[t(741)]):!1,u=L[t(1356)](()=>{const m=t;if(!f)return[];const z=Ll(f[m(741)],i[m(1026)],i[m(1960)]);return Wr(z)},[f,i[t(1026)],i[t(1960)]]);L[t(553)](()=>{const m=t;a({label:x[m(772)]||"",value:x[m(699)]||"",valueSourceCode:x[m(255)]||"",unit:x.unit||"",decimals:x[m(1317)]??2,labelFontSize:x.labelStyle?.[m(1445)]||14,labelFontWeight:x[m(825)]?.fontWeight||m(1789),labelColor:x[m(825)]?.[m(1822)]||m(1819),valueFontSize:x[m(1102)]?.fontSize||14,valueFontWeight:x[m(1102)]?.[m(1434)]||m(131),valueColor:x[m(1102)]?.color||m(1614),boundDatasetId:x[m(466)]||"",boundDatasetBindCode:x[m(1026)]||"",boundDatasetBindValue:x[m(1960)]??null})},[e.id]);const d=(m,z)=>{a(p=>({...p,[m]:z}))},h=m=>{a(z=>({...z,boundDatasetId:m,boundDatasetBindCode:"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetId:m||void 0,boundDatasetBindCode:void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},y=m=>{a(z=>({...z,boundDatasetBindCode:m||"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindCode:m||void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},v=m=>{a(z=>({...z,boundDatasetBindValue:m??null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindValue:m??void 0,valueSourceCode:void 0}})},0)},g=m=>{const z=t,p=u.find(O=>O.paramsCode===m),S=p?.[z(1166)]||"";a(O=>({...O,valueSourceCode:m,unit:S,value:String(p?.[z(699)]||"")})),setTimeout(()=>{n({content:{...x,valueSourceCode:m,value:String(p?.[z(699)]||""),unit:S}})},0)},w=()=>{const m=t;n({content:{...x,label:i.label,value:i[m(699)],valueSourceCode:i[m(255)],unit:i[m(1166)],decimals:i.decimals,boundDatasetId:i[m(466)]||void 0,boundDatasetBindCode:i[m(1026)]||void 0,boundDatasetBindValue:i[m(1960)]??void 0,labelStyle:{fontSize:i[m(1805)],fontWeight:i[m(968)],color:i[m(906)]},valueStyle:{fontSize:i[m(248)],fontWeight:i.valueFontWeight,color:i[m(780)]}}})},M=f&&s?Bl(f[t(741)]):[],b=f&&s&&i[t(1026)]?Dl(f[t(741)],i[t(1026)]):[];return l[t(584)]("div",{className:"space-y-4",children:[l[t(1791)](C[t(591)],{style:{marginTop:0},children:t(1900)}),l[t(584)](C.Form,{layout:t(486),children:[l[t(1791)](C[t(1510)][t(1403)],{label:"标签文本 (label)",children:l[t(1791)](C[t(703)],{value:i.label,onChange:m=>d(t(772),m[t(1385)][t(699)]),onBlur:w,placeholder:t(812)})}),l[t(1791)](C.Form[t(1403)],{label:t(134),help:"选择数据池中的数据集作为数据源",children:l[t(1791)](C[t(1436)],{allowClear:!0,placeholder:r[t(461)]===0?t(743):"选择数据集",value:i[t(466)]||void 0,onChange:h,style:{width:t(1888)},options:r[t(1186)](m=>({label:m[t(1123)],value:m.id}))})}),f&&s&&l[t(584)](l[t(611)],{children:[l[t(1791)](C[t(1510)][t(1403)],{label:t(1421),help:t(826),children:l.jsx(C[t(1436)],{allowClear:!0,placeholder:t(897),value:i.boundDatasetBindCode||void 0,onChange:y,style:{width:t(1888)},options:M.map(m=>({label:m,value:m}))})}),i.boundDatasetBindCode&&l[t(1791)](C.Form[t(1403)],{label:"绑定值",help:t(199),children:l.jsx(C[t(1436)],{allowClear:!0,showSearch:!0,placeholder:t(704),value:i[t(1960)]??void 0,onChange:v,style:{width:t(1888)},options:b,filterOption:(m,z)=>String(z?.[t(772)]??"")[t(244)]()[t(1486)](m[t(244)]()),onInputKeyDown:m=>{m[t(387)]===" "&&m.stopPropagation()}})})]}),l[t(1791)](C[t(1510)][t(1403)],{label:t(1076),help:t(f?1302:682),children:l[t(1791)](C[t(1436)],{value:i[t(255)]||void 0,onChange:g,placeholder:f?"选择数据字段":"请先绑定数据集",allowClear:!0,disabled:!f,style:{width:"100%"},options:u[t(1186)](m=>({value:m.paramsCode,label:m[t(1503)]}))})}),l[t(1791)](C[t(1510)][t(1403)],{label:i[t(255)]?t(961):"值文本",help:i[t(255)]?t(1680):"手动输入显示的值",children:l[t(1791)](C[t(703)],{value:i[t(699)],onChange:m=>d(t(699),m.target[t(699)]),onBlur:w,placeholder:i[t(255)]?"数据字段无值时显示此备用值":"输入值文本",disabled:!!i.valueSourceCode,variant:i[t(255)]?t(1096):void 0})}),l[t(1791)](C[t(1510)][t(1403)],{label:"单位",help:t(414),children:l[t(1791)](C.Input,{value:i[t(1166)],onChange:m=>d(t(1166),m.target[t(699)]),onBlur:w,placeholder:t(813),suffix:i[t(255)]&&u[t(461)]>0?l.jsx(C.Tag,{color:t(297),style:{marginRight:-8},children:"自动"}):null})}),l[t(1791)](C[t(1510)][t(1403)],{label:t(1688),help:t(1731),children:l.jsx(C.InputNumber,{value:i[t(1317)],onChange:m=>d(t(1317),m??2),onBlur:w,min:-1,max:10,style:{width:t(1888)}})})]}),l[t(1791)](C[t(591)],{children:"标签样式"}),l.jsxs(C.Form,{layout:"vertical",children:[l[t(584)](C[t(642)],{children:[l[t(1791)](C.Form[t(1403)],{label:"字体大小",children:l.jsx(C[t(985)],{value:i[t(1805)],onChange:m=>d(t(1805),m||14),onBlur:w,min:8,max:72})}),l[t(1791)](C.Form.Item,{label:"字体粗细",children:l[t(584)](C[t(1436)],{value:i[t(968)],onChange:m=>{d(t(968),m),setTimeout(w,0)},style:{width:100},children:[l[t(1791)](Bt,{value:"normal",children:"正常"}),l.jsx(Bt,{value:t(1789),children:"粗体"})]})})]}),l.jsx(C[t(1510)][t(1403)],{label:t(1198),children:l[t(584)]("div",{className:t(439),children:[l.jsx(yn,{value:i[t(906)]||t(1819),onChange:m=>{const z=t;d(z(906),m[z(1897)]())},onChangeComplete:m=>{const z=t;n({content:{...x,label:i.label,value:i[z(699)],valueSourceCode:i.valueSourceCode,unit:i[z(1166)],decimals:i[z(1317)],boundDatasetId:i.boundDatasetId||void 0,boundDatasetBindCode:i[z(1026)]||void 0,boundDatasetBindValue:i[z(1960)]??void 0,labelStyle:{fontSize:i[z(1805)],fontWeight:i[z(968)],color:m[z(1897)]()},valueStyle:{fontSize:i[z(248)],fontWeight:i[z(251)],color:i.valueColor}}})}}),l[t(1791)](C[t(703)],{value:i.labelColor,onChange:m=>d(t(906),m[t(1385)].value),onBlur:w,placeholder:t(1819),style:{width:100}})]})})]}),l.jsx(C[t(591)],{children:t(345)}),l[t(584)](C[t(1510)],{layout:t(486),children:[l.jsxs(C[t(642)],{children:[l[t(1791)](C[t(1510)][t(1403)],{label:t(1048),children:l[t(1791)](C[t(985)],{value:i[t(248)],onChange:m=>d("valueFontSize",m||14),onBlur:w,min:8,max:72})}),l[t(1791)](C.Form[t(1403)],{label:t(1488),children:l.jsxs(C[t(1436)],{value:i.valueFontWeight,onChange:m=>{d(t(251),m),setTimeout(w,0)},style:{width:100},children:[l[t(1791)](Bt,{value:"normal",children:"正常"}),l[t(1791)](Bt,{value:t(1789),children:"粗体"})]})})]}),l[t(1791)](C[t(1510)].Item,{label:t(1198),children:l.jsxs("div",{className:t(439),children:[l[t(1791)](yn,{value:i[t(780)]||t(1614),onChange:m=>{const z=t;d(z(780),m[z(1897)]())},onChangeComplete:m=>{const z=t;n({content:{...x,label:i.label,value:i[z(699)],valueSourceCode:i[z(255)],unit:i[z(1166)],decimals:i[z(1317)],boundDatasetId:i.boundDatasetId||void 0,boundDatasetBindCode:i[z(1026)]||void 0,boundDatasetBindValue:i[z(1960)]??void 0,labelStyle:{fontSize:i[z(1805)],fontWeight:i[z(968)],color:i[z(906)]},valueStyle:{fontSize:i.valueFontSize,fontWeight:i[z(251)],color:m[z(1897)]()}}})}}),l[t(1791)](C[t(703)],{value:i[t(780)],onChange:m=>d(t(780),m[t(1385)].value),onBlur:w,placeholder:t(1614),style:{width:100}})]})})]})]})},Sl=({material:e,onSave:n})=>{const t=c,o=e,[x,r]=L[t(1326)]({name:e[t(1123)],src:o[t(866)]||"",backgroundColor:o[t(910)]||"",fillColor:o[t(1631)]||""});L[t(553)](()=>{const f=t;r({name:e.name,src:o[f(866)]||"",backgroundColor:o.backgroundColor||"",fillColor:o[f(1631)]||""})},[e.id]);const i=(f,s)=>{r(u=>({...u,[f]:s}))},a=()=>{const f=t;n({name:x[f(1123)],src:x[f(866)],backgroundColor:x[f(910)]})};return l[t(584)](t(1517),{className:"space-y-4",children:[l.jsx(C.Divider,{style:{marginTop:0},children:t(1046)}),l[t(584)](C[t(1510)],{layout:"vertical",children:[l[t(1791)](C.Form.Item,{label:t(140),children:l[t(1791)](C[t(703)],{value:x[t(1123)],onChange:f=>i(t(1123),f[t(1385)].value),onBlur:a})}),l.jsx(C[t(1510)][t(1403)],{label:t(1468),children:l[t(1791)](C.Input[t(1870)],{value:x[t(866)],onChange:f=>i(t(866),f.target[t(699)]),onBlur:a,rows:4,placeholder:t(457)})}),l[t(1791)](C.Form[t(1403)],{label:t(252),children:l[t(584)]("div",{className:t(439),children:[l.jsx(yn,{value:x[t(1631)]||"#1890ff",onChange:f=>{const s=t,u=f[s(1897)]();i(s(1631),u),n({name:x[s(1123)],src:x[s(866)],backgroundColor:x[s(910)],fillColor:u})}}),l.jsx(C[t(703)],{value:x[t(1631)],onChange:f=>i(t(1631),f.target[t(699)]),onBlur:a,placeholder:t(1614)})]})}),l[t(1791)](C[t(1510)].Item,{label:t(427),children:l[t(584)](t(1517),{className:"flex items-center gap-2",children:[l[t(1791)](yn,{value:x.backgroundColor||t(1614),onChange:f=>{const s=t,u=f[s(1897)]();i("backgroundColor",u),n({name:x[s(1123)],src:x[s(866)],backgroundColor:u,fillColor:x.fillColor})}}),l[t(1791)](C.Input,{value:x[t(910)],onChange:f=>i("backgroundColor",f.target.value),onBlur:a,placeholder:t(1614)})]})})]})]})},{Option:kl}=C.Select,Pl=({material:e,onSave:n})=>{const t=c,o=e.config||{},[x,r]=L.useState({lineWeight:o[t(551)]||o.thickness||2,color:o[t(1822)]||t(1819),lineType:o[t(1039)]||"solid",startX:o[t(470)]??0,startY:o[t(481)]??0,endX:o[t(1391)]??100,endY:o[t(1783)]??0}),i=JSON.stringify({sw:o[t(551)]??o[t(1128)],c:o[t(1822)],t:o[t(1039)],sx:o[t(470)],sy:o[t(481)],ex:o[t(1391)],ey:o[t(1783)]});L.useEffect(()=>{const s=t;r({lineWeight:o[s(551)]||o[s(1128)]||2,color:o[s(1822)]||s(1819),lineType:o[s(1039)]||s(1151),startX:o.startX??0,startY:o[s(481)]??0,endX:o.endX??100,endY:o.endY??0})},[e.id,i]);const a=s=>{const u=t,d={...x,...s};r(d),n({config:{...o,thickness:d[u(551)],lineWeight:d.lineWeight,color:d[u(1822)],lineType:d.lineType,startX:d[u(470)],startY:d.startY,endX:d[u(1391)],endY:d[u(1783)]}})},f=[{value:"solid",label:"实线",desc:t(149)},{value:t(1733),label:"虚线",desc:t(1763)},{value:t(1625),label:t(847),desc:t(1454)},{value:t(429),label:"假想线",desc:t(1795)},{value:t(1689),label:"点线",desc:t(230)},{value:t(1011),label:t(1045),desc:t(1318)}];return l.jsxs("div",{className:t(196),children:[l[t(1791)](C[t(591)],{style:{marginTop:0},children:t(1653)}),l.jsxs(C[t(1510)],{layout:"vertical",children:[l[t(584)](t(1517),{className:t(451),children:[l[t(1791)](C[t(1510)].Item,{label:"起点 X",className:"mb-2",children:l[t(1791)](C.InputNumber,{value:x[t(470)],onChange:s=>a({startX:s??0}),style:{width:"100%"}})}),l.jsx(C[t(1510)][t(1403)],{label:t(1322),className:t(1948),children:l[t(1791)](C[t(985)],{value:x[t(481)],onChange:s=>a({startY:s??0}),style:{width:t(1888)}})}),l[t(1791)](C.Form[t(1403)],{label:t(1342),className:t(1948),children:l[t(1791)](C[t(985)],{value:x.endX,onChange:s=>a({endX:s??100}),style:{width:"100%"}})}),l[t(1791)](C[t(1510)].Item,{label:t(352),className:"mb-2",children:l.jsx(C[t(985)],{value:x.endY,onChange:s=>a({endY:s??0}),style:{width:t(1888)}})})]}),l[t(1791)](C[t(1510)][t(1403)],{label:"快速对齐",className:"mt-4",children:l[t(584)](C[t(642)],{children:[l[t(1791)](C[t(1804)],{size:t(1171),onClick:()=>{const s=t,u=o.startX??x.startX,d=o[s(481)]??x.startY,h=o[s(1391)]??x.endX,y=o.endY??x[s(1783)],v=h-u,g=y-d,w=Math[s(1127)](v*v+g*g),M=v>=0?1:-1;a({endX:u+M*w,endY:d})},title:t(1523),children:"水平"}),l.jsx(C[t(1804)],{size:t(1171),onClick:()=>{const s=t,u=o.startX??x.startX,d=o[s(481)]??x[s(481)],h=o[s(1391)]??x[s(1391)],y=o.endY??x.endY,v=h-u,g=y-d,w=Math[s(1127)](v*v+g*g),M=g>=0?1:-1;a({endX:u,endY:d+M*w})},title:t(1082),children:"垂直"}),l[t(1791)](C.Button,{size:"small",onClick:()=>{const s=t,u=o[s(470)]??x[s(470)],d=o[s(481)]??x[s(481)],h=o[s(1391)]??x.endX,y=o[s(1783)]??x[s(1783)];a({startX:h,startY:y,endX:u,endY:d})},title:t(1361),children:"反向"})]})})]}),l[t(1791)](C.Divider,{children:t(357)}),l[t(584)](C.Form,{layout:t(486),children:[l[t(1791)](C[t(1510)][t(1403)],{label:"线型",help:t(1522),children:l[t(1791)](C[t(1436)],{value:x[t(1039)],onChange:s=>a({lineType:s}),children:f.map(s=>l[t(1791)](kl,{value:s[t(699)],children:l[t(584)](t(1517),{className:"flex flex-col",children:[l[t(1791)](t(158),{children:s[t(772)]}),l.jsx("span",{className:t(1585),children:s[t(349)]})]})},s[t(699)]))})}),l.jsx(C[t(1510)][t(1403)],{label:t(477),children:l[t(1791)](C[t(985)],{value:x.lineWeight,onChange:s=>a({lineWeight:s||2}),min:1,max:20,style:{width:120}})}),l.jsx(C[t(1510)].Item,{label:"颜色",children:l.jsxs("div",{className:t(439),children:[l[t(1791)](yn,{value:x.color||t(305),onChange:s=>a({color:s[t(1897)]()})}),l.jsx(C[t(703)],{value:x.color,onChange:s=>a({color:s.target[t(699)]}),placeholder:"#d9d9d9",style:{width:100}})]})})]})]})};function Xr(e){return Array[c(1021)](e)}function Il(e){const n=c,t=new Set;return e[n(1956)](o=>Object[n(859)](o).forEach(x=>t.add(x))),Array[n(598)](t)}function Al(e,n){const t=c;return e[t(1186)]((o,x)=>{const r=t,i=o[n],a=o[r(1123)];return{label:String(a??"项 "+(x+1)),value:typeof i===r(1516)||typeof i===r(663)?i:String(i)}})}function El(e,n,t){if(Xr(e)){if(n!=null&&t!=null){const o=e.find(x=>x[n]===t);if(o)return o}return{}}return e}const Kr=({status:e,onUpdate:n,onAppendToExpression:t})=>{const o=c,x=Xe(g=>g[o(934)]),r=x[o(1682)](g=>g.id===e[o(466)]),i=r?Xr(r.sample):!1,a=r?El(r[o(741)],e[o(1026)],e[o(1960)]):{},f=rr(a),s=g=>{const w=o,M=w(757)+g;t?t(M):n({expression:""+(e.expression||"")+M})},u=g=>{n({boundDatasetId:g??null,boundDatasetBindCode:null,boundDatasetBindValue:null})},d=g=>{n({boundDatasetBindCode:g??null,boundDatasetBindValue:null})},h=g=>{n({boundDatasetBindValue:g??null})},y=r&&i?Il(r[o(741)]):[],v=r&&i&&e[o(1026)]?Al(r[o(741)],e[o(1026)]):[];return l[o(584)](l.Fragment,{children:[l[o(1791)](C[o(1510)][o(1403)],{label:"绑定数据集",extra:x[o(461)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":o(585),children:l[o(1791)](C[o(1436)],{allowClear:!0,showSearch:!0,placeholder:x.length===0?"暂无数据集,请打开「数据池」添加":"选择数据池中的数据集",value:e[o(466)]??void 0,options:x[o(1186)](g=>({label:g.name,value:g.id})),onChange:u,filterOption:(g,w)=>String(w?.[o(772)]??"").toLowerCase()[o(1486)](g[o(244)]()),onInputKeyDown:g=>{const w=o;g[w(387)]===" "&&g[w(1223)]()}})}),r&&i&&l[o(584)](l[o(611)],{children:[l[o(1791)](C[o(1510)][o(1403)],{label:o(1421),extra:o(826),children:l[o(1791)](C.Select,{allowClear:!0,placeholder:o(897),value:e.boundDatasetBindCode??void 0,options:y[o(1186)](g=>({label:g,value:g})),onChange:d})}),e[o(1026)]&&l.jsx(C[o(1510)][o(1403)],{label:o(1475),extra:"选择该字段对应的具体值以定位数据项",children:l[o(1791)](C[o(1436)],{allowClear:!0,showSearch:!0,placeholder:"选择绑定值",value:e[o(1960)]??void 0,options:v,onChange:h,filterOption:(g,w)=>String(w?.[o(772)]??"")[o(244)]()[o(1486)](g[o(244)]()),onInputKeyDown:g=>{const w=o;g[w(387)]===" "&&g[w(1223)]()}})})]}),f[o(461)]>0&&l[o(1791)](C[o(1510)][o(1403)],{label:o(229),children:l[o(1791)](C[o(642)],{size:[4,4],wrap:!0,children:f.map(g=>l[o(1791)](C.Tag,{className:"cursor-pointer mb-0",onClick:()=>s(g),children:o(757)+g},g))})})]})},Zr=({material:e,onSave:n})=>{const t=c;switch(e[t(893)]){case t(668):return l.jsx(Nl,{material:e,onSave:n});case t(873):return l[t(1791)](Sl,{material:e,onSave:n});case t(1743):return l[t(1791)](Pl,{material:e,onSave:n});default:return l[t(1791)](t(1517),{className:t(475),children:t(1577)})}},{Panel:Rr}=C[c(706)],{TextArea:jl}=C[c(703)],Yl=({node:e,updateNode:n,materials:t})=>{const o=c,x=t.filter(d=>d[o(893)]!=="CUSTOM"||!d[o(141)]?.[o(425)]),r=(d,h)=>{const y=o,v=e[y(1377)]?.[y(1186)](g=>{const w=y;return g.id===d?{...g,contentInfo:{...g[w(1345)],statusList:h}}:g});n(e.id,{children:v})},i=d=>{const h=o,y=e[h(1377)]?.[h(1682)](g=>g.id===d);if(!y)return;const v={id:Me[h(467)](),name:"状态"+(y[h(1345)][h(273)][h(461)]+1),expression:y[h(1345)][h(273)].length===0?h(528):h(1107),material:{...x[0],id:Me[h(467)]()},boundDatasetId:null};r(d,[...y[h(1345)][h(273)],v])},a=(d,h)=>{const y=o,v=e.children?.[y(1682)](w=>w.id===d);if(!v)return;const g=v[y(1345)][y(273)][y(1027)](w=>w.id!==h);r(d,g)},f=(d,h,y)=>{const v=o,g=e.children?.[v(1682)](M=>M.id===d);if(!g)return;const w=g[v(1345)][v(273)][v(1186)](M=>M.id===h?{...M,...y}:M);r(d,w)},s=(d,h,y)=>{const v=o,g=e[v(1377)]?.[v(1682)](b=>b.id===d);if(!g)return;const w=g[v(1345)].statusList[v(1780)](b=>b.id===h);if(w===-1)return;const M=[...g[v(1345)][v(273)]];y==="up"&&w>0?[M[w],M[w-1]]=[M[w-1],M[w]]:y===v(557)&&w<M[v(461)]-1&&([M[w],M[w+1]]=[M[w+1],M[w]]),r(d,M)},u=(d,h,y)=>{const v=o,g=t.find(w=>w.id===y);g&&f(d,h,{material:{...g,id:Me[v(467)]()}})};return l.jsxs(o(1517),{className:"space-y-4",children:[l[o(1791)]("div",{className:o(679),children:l[o(584)](o(1517),{className:"text-sm text-blue-700",children:[l[o(1791)]("strong",{children:o(1706)}),o(694)]})}),l[o(1791)](C[o(706)],{ghost:!0,children:e.children?.[o(1186)]((d,h)=>l[o(1791)](Rr,{header:l.jsxs(o(1517),{className:o(715),children:[l[o(584)](o(158),{className:o(177),children:["子节点 ",h+1]}),l.jsxs(C.Tag,{color:o(297),style:{fontSize:o(1184),padding:o(570)},children:[d[o(1345)][o(273)].length," 个状态"]})]}),children:l.jsxs(o(1517),{className:o(800),children:[l[o(584)](o(1517),{className:o(1132),children:[l.jsx(o(158),{className:"text-sm text-gray-600",children:o(1221)}),l[o(1791)](C[o(1804)],{type:o(974),size:o(1171),icon:l[o(1791)](fe[o(1569)],{}),onClick:()=>i(d.id),children:o(523)})]}),d[o(1345)][o(273)][o(461)]===0?l.jsx(o(1517),{className:o(1548),children:o(239)}):l[o(1791)](C.Collapse,{ghost:!0,children:d.contentInfo[o(273)][o(1186)]((y,v)=>l.jsx(Rr,{header:l[o(584)](o(1517),{className:"flex items-center gap-2",children:[l[o(1791)](o(158),{className:o(1879),children:v+1}),l.jsx(o(158),{className:"font-medium",children:y[o(1123)]}),l.jsx(C[o(389)],{color:o(1409),className:o(341),children:y[o(277)][o(893)]})]}),extra:l[o(584)](C[o(642)],{size:o(1171),onClick:g=>g[o(1223)](),children:[l.jsx(C[o(1804)],{type:"text",size:"small",icon:l[o(1791)](fe[o(1835)],{}),disabled:v===0,onClick:g=>{g.stopPropagation(),s(d.id,y.id,"up")}}),l[o(1791)](C.Button,{type:"text",size:o(1171),icon:l[o(1791)](fe[o(161)],{}),disabled:v===d.contentInfo[o(273)][o(461)]-1,onClick:g=>{const w=o;g.stopPropagation(),s(d.id,y.id,w(557))}}),l.jsx(C[o(1804)],{type:"text",size:"small",danger:!0,icon:l[o(1791)](fe[o(371)],{}),onClick:g=>{g[o(1223)](),a(d.id,y.id)}})]}),children:l.jsxs(C.Form,{layout:o(486),children:[l.jsx(C[o(1510)][o(1403)],{label:o(292),children:l[o(1791)](C[o(703)],{value:y[o(1123)],onChange:g=>f(d.id,y.id,{name:g[o(1385)].value}),placeholder:o(1634)})}),l[o(1791)](Kr,{status:y,onUpdate:g=>f(d.id,y.id,g)}),l[o(1791)](C[o(1510)].Item,{label:"执行表达式",help:o(583),children:l[o(1791)](jl,{value:y[o(1238)],onChange:g=>f(d.id,y.id,{expression:g[o(1385)].value}),rows:3,placeholder:o(528)})}),l.jsx(C.Form[o(1403)],{label:"更换物料",children:l[o(584)](o(1517),{className:"flex items-center gap-2",children:[l.jsx(C[o(389)],{color:o(297),children:y.material.name}),l.jsx(C[o(389)],{color:o(1409),children:y.material[o(893)]}),l.jsx(C[o(1436)],{placeholder:o(733),style:{width:150},value:void 0,onChange:g=>g&&u(d.id,y.id,g),options:x.map(g=>({value:g.id,label:g[o(1123)]+" ("+g.type+")"}))})]})}),l[o(1791)](C[o(591)],{style:{margin:"12px 0"}}),l[o(584)](o(1517),{className:o(1963),children:[l[o(584)]("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("span",{className:o(270),children:o(588)}),l.jsx(C[o(389)],{children:y[o(277)][o(1123)]})]}),l[o(1791)](Zr,{material:y.material,onSave:g=>{const w=o,M={...y[w(277)],...g};f(d.id,y.id,{material:M})}})]})]})},y.id))})]})},d.id))})]})};function Ve(e){if(typeof e=="string"||typeof e===c(663))return""+e;let t="";if(Array.isArray(e))for(let o=0,x;o<e.length;o++)(x=Ve(e[o]))!==""&&(t+=(t&&" ")+x);else for(let o in e)e[o]&&(t+=(t&&" ")+o);return t}var Ul={value:()=>{}};function Dt(){const e=c;for(var n=0,t=arguments.length,o={},x;n<t;++n){if(!(x=arguments[n]+"")||x in o||/[\s.]/[e(558)](x))throw new Error("illegal type: "+x);o[x]=[]}return new Lt(o)}function Lt(e){this._=e}function Ol(e,n){const t=c;return e.trim()[t(440)](/^|\s+/)[t(1186)](function(o){const x=t;var r="",i=o[x(1189)](".");if(i>=0&&(r=o.slice(i+1),o=o[x(1337)](0,i)),o&&!n.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:r}})}Lt.prototype=Dt[c(1319)]={constructor:Lt,on:function(e,n){const t=c;var o=this._,x=Ol(e+"",o),r,i=-1,a=x[t(461)];if(arguments[t(461)]<2){for(;++i<a;)if((r=(e=x[i])[t(893)])&&(r=Gl(o[r],e[t(1123)])))return r;return}if(n!=null&&typeof n!==t(1719))throw new Error(t(321)+n);for(;++i<a;)if(r=(e=x[i]).type)o[r]=Jr(o[r],e.name,n);else if(n==null)for(r in o)o[r]=Jr(o[r],e[t(1123)],null);return this},copy:function(){const e=c;var n={},t=this._;for(var o in t)n[o]=t[o][e(1337)]();return new Lt(n)},call:function(e,n){const t=c;if((r=arguments[t(461)]-2)>0)for(var o=new Array(r),x=0,r,i;x<r;++x)o[x]=arguments[x+2];if(!this._[t(835)](e))throw new Error(t(1716)+e);for(i=this._[e],x=0,r=i.length;x<r;++x)i[x][t(699)][t(1829)](n,o)},apply:function(e,n,t){const o=c;if(!this._[o(835)](e))throw new Error(o(1716)+e);for(var x=this._[e],r=0,i=x[o(461)];r<i;++r)x[r].value.apply(n,t)}};function Gl(e,n){const t=c;for(var o=0,x=e[t(461)],r;o<x;++o)if((r=e[o]).name===n)return r.value}function Jr(e,n,t){const o=c;for(var x=0,r=e.length;x<r;++x)if(e[x].name===n){e[x]=Ul,e=e.slice(0,x)[o(1823)](e[o(1337)](x+1));break}return t!=null&&e.push({name:n,value:t}),e}var Hx=c(1759);const _r={svg:c(1250),xhtml:Hx,xlink:"http://www.w3.org/1999/xlink",xml:c(1543),xmlns:c(1748)};function Nt(e){const n=c;var t=e+="",o=t.indexOf(":");return o>=0&&(t=e[n(1337)](0,o))!==n(1693)&&(e=e[n(1337)](o+1)),_r[n(835)](t)?{space:_r[t],local:e}:e}function Hl(e){return function(){const n=_0x1d61;var t=this[n(213)],o=this.namespaceURI;return o===Hx&&t.documentElement[n(417)]===Hx?t.createElement(e):t[n(1204)](o,e)}}function Tl(e){return function(){const n=_0x1d61;return this[n(213)][n(1204)](e[n(1845)],e[n(1812)])}}function Fr(e){var n=Nt(e);return(n.local?Tl:Hl)(n)}function Vl(){}function Tx(e){return e==null?Vl:function(){return this[_0x1d61(881)](e)}}function ql(e){const n=c;typeof e!="function"&&(e=Tx(e));for(var t=this._groups,o=t[n(461)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(461)],f=x[r]=new Array(a),s,u,d=0;d<a;++d)(s=i[d])&&(u=e[n(573)](s,s[n(1684)],d,i))&&(n(1684)in s&&(u[n(1684)]=s.__data__),f[d]=u);return new r0(x,this[n(895)])}function Wl(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Xl(){return[]}function Qr(e){return e==null?Xl:function(){return this[_0x1d61(1513)](e)}}function Kl(e){return function(){return Wl(e.apply(this,arguments))}}function Zl(e){const n=c;typeof e===n(1719)?e=Kl(e):e=Qr(e);for(var t=this[n(525)],o=t.length,x=[],r=[],i=0;i<o;++i)for(var a=t[i],f=a[n(461)],s,u=0;u<f;++u)(s=a[u])&&(x.push(e.call(s,s[n(1684)],u,a)),r[n(1955)](s));return new r0(x,r)}function $r(e){return function(){return this.matches(e)}}function ei(e){return function(n){return n[_0x1d61(400)](e)}}var Rl=Array[c(1319)][c(1682)];function Jl(e){return function(){const n=_0x1d61;return Rl[n(573)](this[n(1377)],e)}}function _l(){return this[c(1918)]}function Fl(e){const n=c;return this[n(718)](e==null?_l:Jl(typeof e===n(1719)?e:ei(e)))}var Ql=Array[c(1319)].filter;function $l(){const e=c;return Array[e(598)](this[e(1377)])}function ef(e){return function(){const n=_0x1d61;return Ql.call(this[n(1377)],e)}}function nf(e){const n=c;return this[n(1710)](e==null?$l:ef(typeof e===n(1719)?e:ei(e)))}function tf(e){const n=c;typeof e!="function"&&(e=$r(e));for(var t=this[n(525)],o=t[n(461)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(461)],f=x[r]=[],s,u=0;u<a;++u)(s=i[u])&&e[n(573)](s,s[n(1684)],u,i)&&f[n(1955)](s);return new r0(x,this[n(895)])}function ni(e){const n=c;return new Array(e[n(461)])}function xf(){const e=c;return new r0(this[e(332)]||this[e(525)].map(ni),this._parents)}function St(e,n){const t=c;this.ownerDocument=e[t(213)],this[t(417)]=e[t(417)],this._next=null,this[t(1501)]=e,this[t(1684)]=n}St[c(1319)]={constructor:St,appendChild:function(e){const n=c;return this[n(1501)][n(1074)](e,this[n(1073)])},insertBefore:function(e,n){const t=c;return this._parent[t(1074)](e,n)},querySelector:function(e){const n=c;return this[n(1501)][n(881)](e)},querySelectorAll:function(e){return this[c(1501)].querySelectorAll(e)}};function of(e){return function(){return e}}function rf(e,n,t,o,x,r){const i=c;for(var a=0,f,s=n.length,u=r.length;a<u;++a)(f=n[a])?(f[i(1684)]=r[a],o[a]=f):t[a]=new St(e,r[a]);for(;a<s;++a)(f=n[a])&&(x[a]=f)}function af(e,n,t,o,x,r,i){const a=c;var f,s,u=new Map,d=n[a(461)],h=r[a(461)],y=new Array(d),v;for(f=0;f<d;++f)(s=n[f])&&(y[f]=v=i[a(573)](s,s[a(1684)],f,n)+"",u[a(806)](v)?x[f]=s:u.set(v,s));for(f=0;f<h;++f)v=i.call(e,r[f],f,r)+"",(s=u[a(1280)](v))?(o[f]=s,s[a(1684)]=r[f],u.delete(v)):t[f]=new St(e,r[f]);for(f=0;f<d;++f)(s=n[f])&&u[a(1280)](y[f])===s&&(x[f]=s)}function cf(e){return e[c(1684)]}function sf(e,n){const t=c;if(!arguments.length)return Array[t(598)](this,cf);var o=n?af:rf,x=this._parents,r=this[t(525)];typeof e!="function"&&(e=of(e));for(var i=r.length,a=new Array(i),f=new Array(i),s=new Array(i),u=0;u<i;++u){var d=x[u],h=r[u],y=h[t(461)],v=lf(e.call(d,d&&d.__data__,u,x)),g=v[t(461)],w=f[u]=new Array(g),M=a[u]=new Array(g),b=s[u]=new Array(y);o(d,h,w,M,b,v,n);for(var m=0,z=0,p,S;m<g;++m)if(p=w[m]){for(m>=z&&(z=m+1);!(S=M[z])&&++z<g;);p[t(1073)]=S||null}}return a=new r0(a,x),a[t(332)]=f,a._exit=s,a}function lf(e){const n=c;return typeof e===n(448)&&n(461)in e?e:Array.from(e)}function ff(){const e=c;return new r0(this._exit||this[e(525)][e(1186)](ni),this[e(895)])}function uf(e,n,t){const o=c;var x=this.enter(),r=this,i=this[o(129)]();return typeof e===o(1719)?(x=e(x),x&&(x=x[o(1939)]())):x=x.append(e+""),n!=null&&(r=n(r),r&&(r=r[o(1939)]())),t==null?i[o(1946)]():t(i),x&&r?x.merge(r)[o(1158)]():r}function df(e){const n=c;for(var t=e.selection?e.selection():e,o=this._groups,x=t[n(525)],r=o[n(461)],i=x[n(461)],a=Math.min(r,i),f=new Array(r),s=0;s<a;++s)for(var u=o[s],d=x[s],h=u[n(461)],y=f[s]=new Array(h),v,g=0;g<h;++g)(v=u[g]||d[g])&&(y[g]=v);for(;s<r;++s)f[s]=o[s];return new r0(f,this._parents)}function hf(){const e=c;for(var n=this[e(525)],t=-1,o=n[e(461)];++t<o;)for(var x=n[t],r=x[e(461)]-1,i=x[r],a;--r>=0;)(a=x[r])&&(i&&a[e(1571)](i)^4&&i[e(1500)].insertBefore(a,i),i=a);return this}function gf(e){const n=c;e||(e=yf);function t(h,y){const v=_0x1d61;return h&&y?e(h.__data__,y[v(1684)]):!h-!y}for(var o=this[n(525)],x=o[n(461)],r=new Array(x),i=0;i<x;++i){for(var a=o[i],f=a[n(461)],s=r[i]=new Array(f),u,d=0;d<f;++d)(u=a[d])&&(s[d]=u);s[n(253)](t)}return new r0(r,this._parents).order()}function yf(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function mf(){const e=c;var n=arguments[0];return arguments[0]=this,n[e(1829)](null,arguments),this}function bf(){return Array[c(598)](this)}function vf(){const e=c;for(var n=this[e(525)],t=0,o=n[e(461)];t<o;++t)for(var x=n[t],r=0,i=x[e(461)];r<i;++r){var a=x[r];if(a)return a}return null}function wf(){let e=0;for(const n of this)++e;return e}function pf(){return!this.node()}function zf(e){const n=c;for(var t=this[n(525)],o=0,x=t[n(461)];o<x;++o)for(var r=t[o],i=0,a=r[n(461)],f;i<a;++i)(f=r[i])&&e.call(f,f[n(1684)],i,r);return this}function Cf(e){return function(){this[_0x1d61(937)](e)}}function Mf(e){return function(){const n=_0x1d61;this[n(1491)](e[n(1845)],e.local)}}function Bf(e,n){return function(){this[_0x1d61(526)](e,n)}}function Df(e,n){return function(){this[_0x1d61(1224)](e.space,e.local,n)}}function Lf(e,n){return function(){const t=_0x1d61;var o=n[t(1829)](this,arguments);o==null?this.removeAttribute(e):this[t(526)](e,o)}}function Nf(e,n){return function(){const t=_0x1d61;var o=n[t(1829)](this,arguments);o==null?this.removeAttributeNS(e[t(1845)],e[t(1812)]):this[t(1224)](e[t(1845)],e[t(1812)],o)}}function Sf(e,n){const t=c;var o=Nt(e);if(arguments[t(461)]<2){var x=this[t(411)]();return o[t(1812)]?x[t(1668)](o.space,o[t(1812)]):x[t(1432)](o)}return this.each((n==null?o.local?Mf:Cf:typeof n===t(1719)?o[t(1812)]?Nf:Lf:o[t(1812)]?Df:Bf)(o,n))}function ti(e){const n=c;return e[n(213)]&&e[n(213)][n(774)]||e[n(445)]&&e||e[n(774)]}function kf(e){return function(){const n=_0x1d61;this[n(1022)][n(1389)](e)}}function Pf(e,n,t){return function(){const o=_0x1d61;this[o(1022)][o(1247)](e,n,t)}}function If(e,n,t){return function(){const o=_0x1d61;var x=n.apply(this,arguments);x==null?this[o(1022)][o(1389)](e):this[o(1022)][o(1247)](e,x,t)}}function Af(e,n,t){const o=c;return arguments[o(461)]>1?this.each((n==null?kf:typeof n===o(1719)?If:Pf)(e,n,t??"")):mn(this[o(411)](),e)}function mn(e,n){const t=c;return e[t(1022)][t(254)](n)||ti(e)[t(831)](e,null)[t(254)](n)}function Ef(e){return function(){delete this[e]}}function jf(e,n){return function(){this[e]=n}}function Yf(e,n){return function(){var t=n.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function Uf(e,n){const t=c;return arguments[t(461)]>1?this.each((n==null?Ef:typeof n===t(1719)?Yf:jf)(e,n)):this[t(411)]()[e]}function xi(e){const n=c;return e[n(1431)]()[n(440)](/^|\s+/)}function Vx(e){return e[c(1056)]||new oi(e)}function oi(e){const n=c;this[n(1088)]=e,this._names=xi(e[n(1432)](n(1561))||"")}oi[c(1319)]={add:function(e){const n=c;var t=this[n(1140)][n(1189)](e);t<0&&(this[n(1140)].push(e),this[n(1088)][n(526)](n(1561),this[n(1140)][n(1339)](" ")))},remove:function(e){const n=c;var t=this[n(1140)][n(1189)](e);t>=0&&(this[n(1140)][n(802)](t,1),this[n(1088)].setAttribute(n(1561),this[n(1140)][n(1339)](" ")))},contains:function(e){const n=c;return this[n(1140)][n(1189)](e)>=0}};function ri(e,n){const t=c;for(var o=Vx(e),x=-1,r=n[t(461)];++x<r;)o[t(1742)](n[x])}function ii(e,n){const t=c;for(var o=Vx(e),x=-1,r=n[t(461)];++x<r;)o.remove(n[x])}function Of(e){return function(){ri(this,e)}}function Gf(e){return function(){ii(this,e)}}function Hf(e,n){return function(){(n.apply(this,arguments)?ri:ii)(this,e)}}function Tf(e,n){const t=c;var o=xi(e+"");if(arguments[t(461)]<2){for(var x=Vx(this[t(411)]()),r=-1,i=o[t(461)];++r<i;)if(!x[t(503)](o[r]))return!1;return!0}return this.each((typeof n=="function"?Hf:n?Of:Gf)(o,n))}function Vf(){const e=c;this[e(1701)]=""}function qf(e){return function(){const n=_0x1d61;this[n(1701)]=e}}function Wf(e){return function(){var t=e[_0x1d61(1829)](this,arguments);this.textContent=t??""}}function Xf(e){const n=c;return arguments[n(461)]?this.each(e==null?Vf:(typeof e===n(1719)?Wf:qf)(e)):this[n(411)]()[n(1701)]}function Kf(){this.innerHTML=""}function Zf(e){return function(){const n=_0x1d61;this[n(508)]=e}}function Rf(e){return function(){const n=_0x1d61;var t=e[n(1829)](this,arguments);this[n(508)]=t??""}}function Jf(e){const n=c;return arguments[n(461)]?this[n(1427)](e==null?Kf:(typeof e===n(1719)?Rf:Zf)(e)):this[n(411)]()[n(508)]}function _f(){const e=c;this[e(383)]&&this[e(1500)].appendChild(this)}function Ff(){return this[c(1427)](_f)}function Qf(){const e=c;this.previousSibling&&this.parentNode[e(1074)](this,this[e(1500)][e(1440)])}function $f(){return this[c(1427)](Qf)}function eu(e){const n=c;var t=typeof e===n(1719)?e:Fr(e);return this[n(718)](function(){return this.appendChild(t.apply(this,arguments))})}function nu(){return null}function tu(e,n){const t=c;var o=typeof e===t(1719)?e:Fr(e),x=n==null?nu:typeof n===t(1719)?n:Tx(n);return this[t(718)](function(){const r=t;return this.insertBefore(o[r(1829)](this,arguments),x[r(1829)](this,arguments)||null)})}function xu(){const e=c;var n=this[e(1500)];n&&n[e(1253)](this)}function ou(){return this[c(1427)](xu)}function ru(){const e=c;var n=this[e(1660)](!1),t=this[e(1500)];return t?t[e(1074)](n,this[e(383)]):n}function iu(){const e=c;var n=this.cloneNode(!0),t=this[e(1500)];return t?t[e(1074)](n,this[e(383)]):n}function au(e){return this[c(718)](e?iu:ru)}function cu(e){const n=c;return arguments[n(461)]?this[n(1245)](n(1684),e):this[n(411)]()[n(1684)]}function su(e){return function(n){const t=_0x1d61;e[t(573)](this,n,this[t(1684)])}}function lu(e){const n=c;return e[n(1431)]()[n(440)](/^|\s+/)[n(1186)](function(t){const o=n;var x="",r=t[o(1189)](".");return r>=0&&(x=t[o(1337)](r+1),t=t[o(1337)](0,r)),{type:t,name:x}})}function fu(e){return function(){const n=_0x1d61;var t=this.__on;if(t){for(var o=0,x=-1,r=t[n(461)],i;o<r;++o)i=t[o],(!e[n(893)]||i.type===e[n(893)])&&i.name===e.name?this[n(1196)](i[n(893)],i.listener,i[n(256)]):t[++x]=i;++x?t[n(461)]=x:delete this[n(678)]}}}function uu(e,n,t){return function(){const o=_0x1d61;var x=this[o(678)],r,i=su(n);if(x){for(var a=0,f=x[o(461)];a<f;++a)if((r=x[a]).type===e[o(893)]&&r[o(1123)]===e.name){this[o(1196)](r[o(893)],r[o(136)],r[o(256)]),this[o(1018)](r[o(893)],r[o(136)]=i,r[o(256)]=t),r[o(699)]=n;return}}this[o(1018)](e.type,i,t),r={type:e[o(893)],name:e[o(1123)],value:n,listener:i,options:t},x?x.push(r):this[o(678)]=[r]}}function du(e,n,t){const o=c;var x=lu(e+""),r,i=x.length,a;if(arguments.length<2){var f=this[o(411)]()[o(678)];if(f){for(var s=0,u=f[o(461)],d;s<u;++s)for(r=0,d=f[s];r<i;++r)if((a=x[r])[o(893)]===d.type&&a[o(1123)]===d[o(1123)])return d[o(699)]}return}for(f=n?uu:fu,r=0;r<i;++r)this[o(1427)](f(x[r],n,t));return this}function ai(e,n,t){const o=c;var x=ti(e),r=x.CustomEvent;typeof r=="function"?r=new r(n,t):(r=x[o(445)][o(1863)]("Event"),t?(r[o(1762)](n,t[o(1508)],t[o(640)]),r[o(1540)]=t[o(1540)]):r[o(1762)](n,!1,!1)),e[o(639)](r)}function hu(e,n){return function(){return ai(this,e,n)}}function gu(e,n){return function(){return ai(this,e,n[_0x1d61(1829)](this,arguments))}}function yu(e,n){const t=c;return this[t(1427)]((typeof n===t(1719)?gu:hu)(e,n))}function*mu(){const e=c;for(var n=this[e(525)],t=0,o=n.length;t<o;++t)for(var x=n[t],r=0,i=x[e(461)],a;r<i;++r)(a=x[r])&&(yield a)}var ci=[null];function r0(e,n){const t=c;this[t(525)]=e,this._parents=n}function Hn(){return new r0([[document.documentElement]],ci)}function bu(){return this}r0[c(1319)]=Hn[c(1319)]={constructor:r0,select:ql,selectAll:Zl,selectChild:Fl,selectChildren:nf,filter:tf,data:sf,enter:xf,exit:ff,join:uf,merge:df,selection:bu,order:hf,sort:gf,call:mf,nodes:bf,node:vf,size:wf,empty:pf,each:zf,attr:Sf,style:Af,property:Uf,classed:Tf,text:Xf,html:Jf,raise:Ff,lower:$f,append:eu,insert:tu,remove:ou,clone:au,datum:cu,on:du,dispatch:yu,[Symbol[c(217)]]:mu};function i0(e){const n=c;return typeof e===n(1516)?new r0([[document[n(881)](e)]],[document[n(1098)]]):new r0([[e]],ci)}function vu(e){const n=c;let t;for(;t=e[n(1405)];)e=t;return e}function d0(e,n){const t=c;if(e=vu(e),n===void 0&&(n=e[t(1441)]),n){var o=n[t(1343)]||n;if(o[t(1598)]){var x=o.createSVGPoint();return x.x=e.clientX,x.y=e.clientY,x=x[t(1476)](n[t(1774)]().inverse()),[x.x,x.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[e[t(1089)]-r[t(548)]-n.clientLeft,e.clientY-r[t(327)]-n[t(913)]]}}return[e.pageX,e[t(498)]]}const wu={passive:!1},Tn={capture:!0,passive:!1};function qx(e){e[c(381)]()}function bn(e){const n=c;e[n(1061)](),e[n(381)]()}function si(e){const n=c;var t=e[n(445)][n(1098)],o=i0(e).on(n(705),bn,Tn);n(1583)in t?o.on("selectstart.drag",bn,Tn):(t[n(1051)]=t[n(1022)][n(651)],t[n(1022)][n(651)]=n(245))}function li(e,n){const t=c;var o=e[t(445)][t(1098)],x=i0(e).on(t(705),null);n&&(x.on(t(1285),bn,Tn),setTimeout(function(){const r=t;x.on(r(1285),null)},0)),t(1583)in o?x.on(t(1592),null):(o[t(1022)][t(651)]=o[t(1051)],delete o[t(1051)])}const kt=e=>()=>e;function Wx(e,{sourceEvent:n,subject:t,target:o,identifier:x,active:r,x:i,y:a,dx:f,dy:s,dispatch:u}){Object[c(1883)](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:f,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:u}})}Wx[c(1319)].on=function(){const e=c;var n=this._.on[e(1829)](this._,arguments);return n===this._?this:n};function pu(e){const n=c;return!e[n(1374)]&&!e[n(1729)]}function zu(){return this[c(1500)]}function Cu(e,n){return n??{x:e.x,y:e.y}}function Mu(){const e=c;return navigator.maxTouchPoints||e(233)in this}function fi(){const e=c;var n=pu,t=zu,o=Cu,x=Mu,r={},i=Dt(e(916),e(928),e(306)),a=0,f,s,u,d,h=0;function y(p){const S=e;p.on(S(1120),v).filter(x).on(S(1320),M).on(S(872),b,wu).on(S(296),m)[S(1022)](S(1659),S(245))[S(1022)](S(796),"rgba(0,0,0,0)")}function v(p,S){const O=e;if(!(d||!n[O(573)](this,p,S))){var G=z(this,t[O(573)](this,p,S),p,S,O(1885));G&&(i0(p.view).on(O(981),g,Tn).on(O(769),w,Tn),si(p[O(1564)]),qx(p),u=!1,f=p[O(1089)],s=p[O(1450)],G(O(916),p))}}function g(p){const S=e;if(bn(p),!u){var O=p[S(1089)]-f,G=p[S(1450)]-s;u=O*O+G*G>h}r[S(1885)]("drag",p)}function w(p){const S=e;i0(p[S(1564)]).on("mousemove.drag mouseup.drag",null),li(p[S(1564)],u),bn(p),r[S(1885)](S(306),p)}function M(p,S){const O=e;if(n[O(573)](this,p,S)){var G=p.changedTouches,q=t[O(573)](this,p,S),E=G.length,V,T;for(V=0;V<E;++V)(T=z(this,q,p,S,G[V][O(1527)],G[V]))&&(qx(p),T(O(916),p,G[V]))}}function b(p){const S=e;var O=p[S(1192)],G=O[S(461)],q,E;for(q=0;q<G;++q)(E=r[O[q][S(1527)]])&&(bn(p),E(S(928),p,O[q]))}function m(p){const S=e;var O=p.changedTouches,G=O[S(461)],q,E;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),q=0;q<G;++q)(E=r[O[q][S(1527)]])&&(qx(p),E("end",p,O[q]))}function z(p,S,O,G,q,E){const V=e;var T=i[V(201)](),X=d0(E||O,S),H,N,B;if((B=o[V(573)](p,new Wx(V(815),{sourceEvent:O,target:y,identifier:q,active:a,x:X[0],y:X[1],dx:0,dy:0,dispatch:T}),G))!=null)return H=B.x-X[0]||0,N=B.y-X[1]||0,function D(j,U,k){const R=V;var _=X,J;switch(j){case R(916):r[q]=D,J=a++;break;case"end":delete r[q],--a;case R(928):X=d0(k||U,S),J=a;break}T[R(573)](j,p,new Wx(j,{sourceEvent:U,subject:B,target:y,identifier:q,active:J,x:X[0]+H,y:X[1]+N,dx:X[0]-_[0],dy:X[1]-_[1],dispatch:T}),G)}}return y[e(1027)]=function(p){const S=e;return arguments[S(461)]?(n=typeof p===S(1719)?p:kt(!!p),y):n},y[e(1623)]=function(p){const S=e;return arguments.length?(t=typeof p===S(1719)?p:kt(p),y):t},y[e(838)]=function(p){const S=e;return arguments[S(461)]?(o=typeof p===S(1719)?p:kt(p),y):o},y[e(1358)]=function(p){const S=e;return arguments[S(461)]?(x=typeof p===S(1719)?p:kt(!!p),y):x},y.on=function(){const p=e;var S=i.on[p(1829)](i,arguments);return S===i?y:S},y.clickDistance=function(p){const S=e;return arguments.length?(h=(p=+p)*p,y):Math[S(1127)](h)},y}function Xx(e,n,t){const o=c;e[o(1319)]=n[o(1319)]=t,t.constructor=e}function ui(e,n){const t=c;var o=Object[t(945)](e[t(1319)]);for(var x in n)o[x]=n[x];return o}function Vn(){}var qn=.7,Pt=1/qn,vn=c(707),Wn=c(330),z0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bu=/^#([0-9a-f]{3,8})$/,Du=new RegExp(c(518)+vn+","+vn+","+vn+c(501)),Lu=new RegExp(c(518)+z0+","+z0+","+z0+"\\)$"),Nu=new RegExp("^rgba\\("+vn+","+vn+","+vn+","+Wn+c(501)),Su=new RegExp(c(1209)+z0+","+z0+","+z0+","+Wn+"\\)$"),ku=new RegExp(c(616)+Wn+","+z0+","+z0+c(501)),Pu=new RegExp(c(1035)+Wn+","+z0+","+z0+","+Wn+c(501)),di={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};Xx(Vn,F0,{copy(e){const n=c;return Object[n(1841)](new this[n(602)],this,e)},displayable(){return this.rgb().displayable()},hex:hi,formatHex:hi,formatHex8:Iu,formatHsl:Au,formatRgb:gi,toString:gi});function hi(){const e=c;return this[e(1369)]()[e(1305)]()}function Iu(){return this[c(1369)]().formatHex8()}function Au(){const e=c;return wi(this)[e(722)]()}function gi(){const e=c;return this[e(1369)]()[e(1904)]()}function F0(e){const n=c;var t,o;return e=(e+"")[n(1431)]()[n(244)](),(t=Bu[n(1643)](e))?(o=t[1].length,t=parseInt(t[1],16),o===6?yi(t):o===3?new e0(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):o===8?It(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):o===4?It(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=Du[n(1643)](e))?new e0(t[1],t[2],t[3],1):(t=Lu[n(1643)](e))?new e0(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Nu[n(1643)](e))?It(t[1],t[2],t[3],t[4]):(t=Su.exec(e))?It(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ku[n(1643)](e))?vi(t[1],t[2]/100,t[3]/100,1):(t=Pu.exec(e))?vi(t[1],t[2]/100,t[3]/100,t[4]):di.hasOwnProperty(e)?yi(di[e]):e===n(1437)?new e0(NaN,NaN,NaN,0):null}function yi(e){return new e0(e>>16&255,e>>8&255,e&255,1)}function It(e,n,t,o){return o<=0&&(e=n=t=NaN),new e0(e,n,t,o)}function Eu(e){return e instanceof Vn||(e=F0(e)),e?(e=e.rgb(),new e0(e.r,e.g,e.b,e.opacity)):new e0}function Kx(e,n,t,o){return arguments[c(461)]===1?Eu(e):new e0(e,n,t,o??1)}function e0(e,n,t,o){const x=c;this.r=+e,this.g=+n,this.b=+t,this[x(1525)]=+o}Xx(e0,Kx,ui(Vn,{brighter(e){const n=c;return e=e==null?Pt:Math[n(1952)](Pt,e),new e0(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){const n=c;return e=e==null?qn:Math.pow(qn,e),new e0(this.r*e,this.g*e,this.b*e,this[n(1525)])},rgb(){return this},clamp(){const e=c;return new e0(Q0(this.r),Q0(this.g),Q0(this.b),At(this[e(1525)]))},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(1525)]&&this.opacity<=1},hex:mi,formatHex:mi,formatHex8:ju,formatRgb:bi,toString:bi}));function mi(){return"#"+$0(this.r)+$0(this.g)+$0(this.b)}function ju(){const e=c;return"#"+$0(this.r)+$0(this.g)+$0(this.b)+$0((isNaN(this[e(1525)])?1:this[e(1525)])*255)}function bi(){const e=c,n=At(this[e(1525)]);return""+e(n===1?1651:1782)+Q0(this.r)+", "+Q0(this.g)+", "+Q0(this.b)+(n===1?")":", "+n+")")}function At(e){const n=c;return isNaN(e)?1:Math[n(630)](0,Math[n(407)](1,e))}function Q0(e){const n=c;return Math[n(630)](0,Math[n(407)](255,Math[n(1263)](e)||0))}function $0(e){const n=c;return e=Q0(e),(e<16?"0":"")+e[n(1182)](16)}function vi(e,n,t,o){return o<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new h0(e,n,t,o)}function wi(e){const n=c;if(e instanceof h0)return new h0(e.h,e.s,e.l,e[n(1525)]);if(e instanceof Vn||(e=F0(e)),!e)return new h0;if(e instanceof h0)return e;e=e[n(1369)]();var t=e.r/255,o=e.g/255,x=e.b/255,r=Math[n(407)](t,o,x),i=Math[n(630)](t,o,x),a=NaN,f=i-r,s=(i+r)/2;return f?(t===i?a=(o-x)/f+(o<x)*6:o===i?a=(x-t)/f+2:a=(t-o)/f+4,f/=s<.5?i+r:2-i-r,a*=60):f=s>0&&s<1?0:a,new h0(a,f,s,e[n(1525)])}function Yu(e,n,t,o){return arguments[c(461)]===1?wi(e):new h0(e,n,t,o??1)}function h0(e,n,t,o){const x=c;this.h=+e,this.s=+n,this.l=+t,this[x(1525)]=+o}Xx(h0,Yu,ui(Vn,{brighter(e){return e=e==null?Pt:Math.pow(Pt,e),new h0(this.h,this.s,this.l*e,this.opacity)},darker(e){const n=c;return e=e==null?qn:Math[n(1952)](qn,e),new h0(this.h,this.s,this.l*e,this[n(1525)])},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 e0(Zx(n>=240?n-240:n+120,r,x),Zx(n,r,x),Zx(n<120?n+240:n-120,r,x),this[e(1525)])},clamp(){const e=c;return new h0(pi(this.h),Et(this.s),Et(this.l),At(this[e(1525)]))},displayable(){const e=c;return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this[e(1525)]&&this[e(1525)]<=1},formatHsl(){const e=c,n=At(this[e(1525)]);return""+(n===1?e(837):"hsla(")+pi(this.h)+", "+Et(this.s)*100+e(1180)+Et(this.l)*100+"%"+(n===1?")":", "+n+")")}}));function pi(e){return e=(e||0)%360,e<0?e+360:e}function Et(e){const n=c;return Math[n(630)](0,Math[n(407)](1,e||0))}function Zx(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 Rx=e=>()=>e;function Uu(e,n){return function(t){return e+t*n}}function Ou(e,n,t){const o=c;return e=Math[o(1952)](e,t),n=Math[o(1952)](n,t)-e,t=1/t,function(x){return Math[o(1952)](e+x*n,t)}}function Gu(e){return(e=+e)==1?zi:function(n,t){return t-n?Ou(n,t,e):Rx(isNaN(n)?t:n)}}function zi(e,n){var t=n-e;return t?Uu(e,t):Rx(isNaN(e)?n:e)}const jt=(function e(n){const t=c;var o=Gu(n);function x(r,i){const a=_0x1d61;var f=o((r=Kx(r)).r,(i=Kx(i)).r),s=o(r.g,i.g),u=o(r.b,i.b),d=zi(r.opacity,i[a(1525)]);return function(h){return r.r=f(h),r.g=s(h),r.b=u(h),r.opacity=d(h),r+""}}return x[t(1354)]=e,x})(1);function Hu(e,n){const t=c;n||(n=[]);var o=e?Math[t(407)](n[t(461)],e[t(461)]):0,x=n.slice(),r;return function(i){for(r=0;r<o;++r)x[r]=e[r]*(1-i)+n[r]*i;return x}}function Tu(e){return ArrayBuffer[c(1360)](e)&&!(e instanceof DataView)}function Vu(e,n){const t=c;var o=n?n.length:0,x=e?Math[t(407)](o,e.length):0,r=new Array(x),i=new Array(o),a;for(a=0;a<x;++a)r[a]=Xn(e[a],n[a]);for(;a<o;++a)i[a]=n[a];return function(f){for(a=0;a<x;++a)i[a]=r[a](f);return i}}function qu(e,n){var t=new Date;return e=+e,n=+n,function(o){return t.setTime(e*(1-o)+n*o),t}}function C0(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function Wu(e,n){const t=c;var o={},x={},r;(e===null||typeof e!==t(448))&&(e={}),(n===null||typeof n!="object")&&(n={});for(r in n)r in e?o[r]=Xn(e[r],n[r]):x[r]=n[r];return function(i){for(r in o)x[r]=o[r](i);return x}}var Jx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_x=new RegExp(Jx[c(1630)],"g");function Xu(e){return function(){return e}}function Ku(e){return function(n){return e(n)+""}}function Ci(e,n){const t=c;var o=Jx[t(520)]=_x[t(520)]=0,x,r,i,a=-1,f=[],s=[];for(e=e+"",n=n+"";(x=Jx[t(1643)](e))&&(r=_x.exec(n));)(i=r[t(1218)])>o&&(i=n[t(1337)](o,i),f[a]?f[a]+=i:f[++a]=i),(x=x[0])===(r=r[0])?f[a]?f[a]+=r:f[++a]=r:(f[++a]=null,s[t(1955)]({i:a,x:C0(x,r)})),o=_x[t(520)];return o<n.length&&(i=n[t(1337)](o),f[a]?f[a]+=i:f[++a]=i),f.length<2?s[0]?Ku(s[0].x):Xu(n):(n=s.length,function(u){const d=t;for(var h=0,y;h<n;++h)f[(y=s[h]).i]=y.x(u);return f[d(1339)]("")})}function Xn(e,n){const t=c;var o=typeof n,x;return n==null||o===t(1106)?Rx(n):(o===t(663)?C0:o===t(1516)?(x=F0(n))?(n=x,jt):Ci:n instanceof F0?jt:n instanceof Date?qu:Tu(n)?Hu:Array[t(1021)](n)?Vu:typeof n[t(218)]!==t(1719)&&typeof n.toString!==t(1719)||isNaN(n)?Wu:C0)(e,n)}var Mi=180/Math.PI,Fx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Bi(e,n,t,o,x,r){const i=c;var a,f,s;return(a=Math[i(1127)](e*e+n*n))&&(e/=a,n/=a),(s=e*t+n*o)&&(t-=e*s,o-=n*s),(f=Math[i(1127)](t*t+o*o))&&(t/=f,o/=f,s/=f),e*o<n*t&&(e=-e,n=-n,s=-s,a=-a),{translateX:x,translateY:r,rotate:Math.atan2(n,e)*Mi,skewX:Math.atan(s)*Mi,scaleX:a,scaleY:f}}var Yt;function Zu(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Fx:Bi(n.a,n.b,n.c,n.d,n.e,n.f)}function Ru(e){const n=c;return e==null||(Yt||(Yt=document.createElementNS(n(1250),"g")),Yt[n(526)](n(1225),e),!(e=Yt[n(1225)].baseVal[n(827)]()))?Fx:(e=e[n(315)],Bi(e.a,e.b,e.c,e.d,e.e,e.f))}function Di(e,n,t,o){function x(s){const u=_0x1d61;return s[u(461)]?s[u(404)]()+" ":""}function r(s,u,d,h,y,v){const g=_0x1d61;if(s!==d||u!==h){var w=y.push(g(594),null,n,null,t);v.push({i:w-4,x:C0(s,d)},{i:w-2,x:C0(u,h)})}else(d||h)&&y.push(g(594)+d+n+h+t)}function i(s,u,d,h){const y=_0x1d61;s!==u?(s-u>180?u+=360:u-s>180&&(s+=360),h[y(1955)]({i:d.push(x(d)+y(432),null,o)-2,x:C0(s,u)})):u&&d[y(1955)](x(d)+y(432)+u+o)}function a(s,u,d,h){const y=_0x1d61;s!==u?h[y(1955)]({i:d[y(1955)](x(d)+y(1294),null,o)-2,x:C0(s,u)}):u&&d[y(1955)](x(d)+y(1294)+u+o)}function f(s,u,d,h,y,v){const g=_0x1d61;if(s!==d||u!==h){var w=y[g(1955)](x(y)+g(184),null,",",null,")");v[g(1955)]({i:w-4,x:C0(s,d)},{i:w-2,x:C0(u,h)})}else(d!==1||h!==1)&&y[g(1955)](x(y)+g(184)+d+","+h+")")}return function(s,u){const d=_0x1d61;var h=[],y=[];return s=e(s),u=e(u),r(s.translateX,s[d(1637)],u[d(449)],u.translateY,h,y),i(s.rotate,u[d(794)],h,y),a(s[d(1397)],u[d(1397)],h,y),f(s[d(626)],s[d(890)],u[d(626)],u.scaleY,h,y),s=u=null,function(v){for(var g=-1,w=y.length,M;++g<w;)h[(M=y[g]).i]=M.x(v);return h.join("")}}}var Ju=Di(Zu,c(1080),c(1213),c(1574)),_u=Di(Ru,", ",")",")"),Fu=1e-12;function Li(e){return((e=Math[c(1942)](e))+1/e)/2}function Qu(e){return((e=Math[c(1942)](e))-1/e)/2}function $u(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ut=(function e(n,t,o){const x=c;function r(i,a){const f=_0x1d61;var s=i[0],u=i[1],d=i[2],h=a[0],y=a[1],v=a[2],g=h-s,w=y-u,M=g*g+w*w,b,m;if(M<Fu)m=Math[f(922)](v/d)/n,b=function(q){const E=f;return[s+q*g,u+q*w,d*Math[E(1942)](n*q*m)]};else{var z=Math[f(1127)](M),p=(v*v-d*d+o*M)/(2*d*t*z),S=(v*v-d*d-o*M)/(2*v*t*z),O=Math[f(922)](Math[f(1127)](p*p+1)-p),G=Math[f(922)](Math[f(1127)](S*S+1)-S);m=(G-O)/n,b=function(q){var E=q*m,V=Li(O),T=d/(t*z)*(V*$u(n*E+O)-Qu(O));return[s+T*g,u+T*w,d*V/Li(n*E+O)]}}return b[f(238)]=m*1e3*n/Math[f(672)],b}return r[x(1703)]=function(i){var f=Math[x(630)](.001,+i),s=f*f,u=s*s;return e(f,s,u)},r})(Math[c(672)],2,4);var wn=0,Kn=0,Zn=0,Ni=1e3,Ot,Rn,Gt=0,en=0,Ht=0,Jn=typeof performance===c(448)&&performance[c(590)]?performance:Date,Si=typeof window===c(448)&&window[c(929)]?window[c(929)].bind(window):function(e){setTimeout(e,17)};function Qx(){const e=c;return en||(Si(ed),en=Jn[e(590)]()+Ht)}function ed(){en=0}function Tt(){const e=c;this[e(725)]=this[e(1300)]=this[e(1073)]=null}Tt[c(1319)]=ki.prototype={constructor:Tt,restart:function(e,n,t){const o=c;if(typeof e!==o(1719))throw new TypeError(o(313));t=(t==null?Qx():+t)+(n==null?0:+n),!this[o(1073)]&&Rn!==this&&(Rn?Rn[o(1073)]=this:Ot=this,Rn=this),this._call=e,this[o(1300)]=t,$x()},stop:function(){const e=c;this[e(725)]&&(this[e(725)]=null,this._time=1/0,$x())}};function ki(e,n,t){const o=c;var x=new Tt;return x[o(648)](e,n,t),x}function nd(){const e=c;Qx(),++wn;for(var n=Ot,t;n;)(t=en-n[e(1300)])>=0&&n[e(725)][e(573)](void 0,t),n=n[e(1073)];--wn}function Pi(){en=(Gt=Jn[c(590)]())+Ht,wn=Kn=0;try{nd()}finally{wn=0,xd(),en=0}}function td(){var n=Jn[c(590)](),t=n-Gt;t>Ni&&(Ht-=t,Gt=n)}function xd(){const e=c;for(var n,t=Ot,o,x=1/0;t;)t._call?(x>t[e(1300)]&&(x=t[e(1300)]),n=t,t=t[e(1073)]):(o=t[e(1073)],t[e(1073)]=null,t=n?n._next=o:Ot=o);Rn=n,$x(x)}function $x(e){const n=c;if(!wn){Kn&&(Kn=clearTimeout(Kn));var t=e-en;t>24?(e<1/0&&(Kn=setTimeout(Pi,e-Jn[n(590)]()-Ht)),Zn&&(Zn=clearInterval(Zn))):(Zn||(Gt=Jn.now(),Zn=setInterval(td,Ni)),wn=1,Si(Pi))}}function Ii(e,n,t){const o=c;var x=new Tt;return n=n==null?0:+n,x[o(648)](r=>{x[o(1388)](),e(r+n)},n,t),x}var od=Dt(c(916),c(306),c(236),"interrupt"),rd=[],Ai=0,Ei=1,eo=2,Vt=3,ji=4,no=5,qt=6;function Wt(e,n,t,o,x,r){const i=c;var a=e.__transition;if(!a)e[i(576)]={};else if(t in a)return;id(e,t,{name:n,index:o,group:x,on:od,tween:rd,time:r.time,delay:r[i(572)],duration:r.duration,ease:r.ease,timer:null,state:Ai})}function to(e,n){const t=c;var o=g0(e,n);if(o[t(1111)]>Ai)throw new Error("too late; already scheduled");return o}function M0(e,n){var t=g0(e,n);if(t.state>Vt)throw new Error("too late; already running");return t}function g0(e,n){const t=c;var o=e.__transition;if(!o||!(o=o[n]))throw new Error(t(605));return o}function id(e,n,t){const o=c;var x=e[o(576)],r;x[n]=t,t[o(1809)]=ki(i,0,t[o(726)]);function i(u){const d=o;t[d(1111)]=Ei,t[d(1809)].restart(a,t[d(572)],t[d(726)]),t.delay<=u&&a(u-t[d(572)])}function a(u){const d=o;var h,y,v,g;if(t[d(1111)]!==Ei)return s();for(h in x)if(g=x[h],g[d(1123)]===t[d(1123)]){if(g[d(1111)]===Vt)return Ii(a);g[d(1111)]===ji?(g[d(1111)]=qt,g[d(1809)][d(1388)](),g.on[d(573)](d(180),e,e[d(1684)],g[d(1218)],g[d(889)]),delete x[h]):+h<n&&(g[d(1111)]=qt,g[d(1809)][d(1388)](),g.on.call(d(236),e,e.__data__,g[d(1218)],g[d(889)]),delete x[h])}if(Ii(function(){const w=d;t[w(1111)]===Vt&&(t[w(1111)]=ji,t[w(1809)][w(648)](f,t.delay,t[w(726)]),f(u))}),t[d(1111)]=eo,t.on[d(573)](d(916),e,e.__data__,t[d(1218)],t[d(889)]),t.state===eo){for(t[d(1111)]=Vt,r=new Array(v=t[d(1157)].length),h=0,y=-1;h<v;++h)(g=t[d(1157)][h][d(699)].call(e,e.__data__,t[d(1218)],t.group))&&(r[++y]=g);r[d(461)]=y+1}}function f(u){const d=o;for(var h=u<t[d(238)]?t.ease[d(573)](null,u/t[d(238)]):(t[d(1809)][d(648)](s),t[d(1111)]=no,1),y=-1,v=r.length;++y<v;)r[y].call(e,h);t[d(1111)]===no&&(t.on[d(573)](d(306),e,e[d(1684)],t[d(1218)],t.group),s())}function s(){const u=o;t.state=qt,t.timer[u(1388)](),delete x[n];for(var d in x)return;delete e[u(576)]}}function Xt(e,n){const t=c;var o=e[t(576)],x,r,i=!0,a;if(o){n=n==null?null:n+"";for(a in o){if((x=o[a])[t(1123)]!==n){i=!1;continue}r=x[t(1111)]>eo&&x.state<no,x[t(1111)]=qt,x.timer[t(1388)](),x.on[t(573)](r?"interrupt":t(236),e,e.__data__,x[t(1218)],x[t(889)]),delete o[a]}i&&delete e.__transition}}function ad(e){return this[c(1427)](function(){Xt(this,e)})}function cd(e,n){var t,o;return function(){const x=_0x1d61;var r=M0(this,e),i=r.tween;if(i!==t){o=t=i;for(var a=0,f=o[x(461)];a<f;++a)if(o[a].name===n){o=o.slice(),o[x(802)](a,1);break}}r[x(1157)]=o}}function sd(e,n,t){const o=c;var x,r;if(typeof t!==o(1719))throw new Error;return function(){const i=o;var a=M0(this,e),f=a[i(1157)];if(f!==x){r=(x=f)[i(1337)]();for(var s={name:n,value:t},u=0,d=r[i(461)];u<d;++u)if(r[u][i(1123)]===n){r[u]=s;break}u===d&&r[i(1955)](s)}a[i(1157)]=r}}function ld(e,n){const t=c;var o=this._id;if(e+="",arguments.length<2){for(var x=g0(this[t(411)](),o)[t(1157)],r=0,i=x[t(461)],a;r<i;++r)if((a=x[r])[t(1123)]===e)return a.value;return null}return this.each((n==null?cd:sd)(o,e,n))}function xo(e,n,t){var o=e._id;return e.each(function(){const x=_0x1d61;var r=M0(this,o);(r[x(699)]||(r[x(699)]={}))[n]=t[x(1829)](this,arguments)}),function(x){return g0(x,o).value[n]}}function Yi(e,n){var t;return(typeof n=="number"?C0:n instanceof F0?jt:(t=F0(n))?(n=t,jt):Ci)(e,n)}function fd(e){return function(){this[_0x1d61(937)](e)}}function ud(e){return function(){const n=_0x1d61;this.removeAttributeNS(e[n(1845)],e[n(1812)])}}function dd(e,n,t){var o,x=t+"",r;return function(){var a=this[_0x1d61(1432)](e);return a===x?null:a===o?r:r=n(o=a,t)}}function hd(e,n,t){var o,x=t+"",r;return function(){const i=_0x1d61;var a=this[i(1668)](e[i(1845)],e[i(1812)]);return a===x?null:a===o?r:r=n(o=a,t)}}function gd(e,n,t){var o,x,r;return function(){const i=_0x1d61;var a,f=t(this),s;return f==null?void this[i(937)](e):(a=this[i(1432)](e),s=f+"",a===s?null:a===o&&s===x?r:(x=s,r=n(o=a,f)))}}function yd(e,n,t){var o,x,r;return function(){const i=_0x1d61;var a,f=t(this),s;return f==null?void this.removeAttributeNS(e[i(1845)],e.local):(a=this[i(1668)](e[i(1845)],e[i(1812)]),s=f+"",a===s?null:a===o&&s===x?r:(x=s,r=n(o=a,f)))}}function md(e,n){const t=c;var o=Nt(e),x=o===t(1225)?_u:Yi;return this[t(655)](e,typeof n=="function"?(o[t(1812)]?yd:gd)(o,x,xo(this,t(1323)+e,n)):n==null?(o[t(1812)]?ud:fd)(o):(o[t(1812)]?hd:dd)(o,x,n))}function bd(e,n){return function(t){this[_0x1d61(526)](e,n.call(this,t))}}function vd(e,n){return function(t){const o=_0x1d61;this.setAttributeNS(e[o(1845)],e[o(1812)],n[o(573)](this,t))}}function wd(e,n){const t=c;var o,x;function r(){var a=n[_0x1d61(1829)](this,arguments);return a!==x&&(o=(x=a)&&vd(e,a)),o}return r[t(1607)]=n,r}function pd(e,n){const t=c;var o,x;function r(){var a=n[_0x1d61(1829)](this,arguments);return a!==x&&(o=(x=a)&&bd(e,a)),o}return r[t(1607)]=n,r}function zd(e,n){const t=c;var o=t(1323)+e;if(arguments[t(461)]<2)return(o=this.tween(o))&&o[t(1607)];if(n==null)return this[t(1157)](o,null);if(typeof n!==t(1719))throw new Error;var x=Nt(e);return this.tween(o,(x[t(1812)]?wd:pd)(x,n))}function Cd(e,n){return function(){const t=_0x1d61;to(this,e)[t(572)]=+n.apply(this,arguments)}}function Md(e,n){return n=+n,function(){to(this,e).delay=n}}function Bd(e){const n=c;var t=this[n(241)];return arguments[n(461)]?this.each((typeof e=="function"?Cd:Md)(t,e)):g0(this[n(411)](),t).delay}function Dd(e,n){return function(){const t=_0x1d61;M0(this,e)[t(238)]=+n.apply(this,arguments)}}function Ld(e,n){return n=+n,function(){M0(this,e).duration=n}}function Nd(e){const n=c;var t=this[n(241)];return arguments[n(461)]?this[n(1427)]((typeof e===n(1719)?Dd:Ld)(t,e)):g0(this[n(411)](),t)[n(238)]}function Sd(e,n){const t=c;if(typeof n!==t(1719))throw new Error;return function(){const o=t;M0(this,e)[o(1832)]=n}}function kd(e){const n=c;var t=this[n(241)];return arguments[n(461)]?this[n(1427)](Sd(t,e)):g0(this[n(411)](),t)[n(1832)]}function Pd(e,n){return function(){const t=_0x1d61;var o=n[t(1829)](this,arguments);if(typeof o!==t(1719))throw new Error;M0(this,e)[t(1832)]=o}}function Id(e){const n=c;if(typeof e!==n(1719))throw new Error;return this[n(1427)](Pd(this[n(241)],e))}function Ad(e){const n=c;typeof e!==n(1719)&&(e=$r(e));for(var t=this[n(525)],o=t[n(461)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(461)],f=x[r]=[],s,u=0;u<a;++u)(s=i[u])&&e[n(573)](s,s[n(1684)],u,i)&&f[n(1955)](s);return new S0(x,this[n(895)],this[n(1153)],this[n(241)])}function Ed(e){const n=c;if(e[n(241)]!==this._id)throw new Error;for(var t=this[n(525)],o=e[n(525)],x=t[n(461)],r=o.length,i=Math[n(407)](x,r),a=new Array(x),f=0;f<i;++f)for(var s=t[f],u=o[f],d=s[n(461)],h=a[f]=new Array(d),y,v=0;v<d;++v)(y=s[v]||u[v])&&(h[v]=y);for(;f<x;++f)a[f]=t[f];return new S0(a,this[n(895)],this[n(1153)],this[n(241)])}function jd(e){const n=c;return(e+"")[n(1431)]()[n(440)](/^|\s+/).every(function(t){const o=n;var x=t[o(1189)](".");return x>=0&&(t=t.slice(0,x)),!t||t===o(916)})}function Yd(e,n,t){var o,x,r=jd(n)?to:M0;return function(){const i=_0x1d61;var a=r(this,e),f=a.on;f!==o&&(x=(o=f)[i(201)]()).on(n,t),a.on=x}}function Ud(e,n){const t=c;var o=this._id;return arguments[t(461)]<2?g0(this[t(411)](),o).on.on(e):this[t(1427)](Yd(o,e,n))}function Od(e){return function(){const n=_0x1d61;var t=this[n(1500)];for(var o in this[n(576)])if(+o!==e)return;t&&t[n(1253)](this)}}function Gd(){return this.on("end.remove",Od(this._id))}function Hd(e){const n=c;var t=this._name,o=this[n(241)];typeof e!==n(1719)&&(e=Tx(e));for(var x=this[n(525)],r=x[n(461)],i=new Array(r),a=0;a<r;++a)for(var f=x[a],s=f[n(461)],u=i[a]=new Array(s),d,h,y=0;y<s;++y)(d=f[y])&&(h=e.call(d,d[n(1684)],y,f))&&(n(1684)in d&&(h.__data__=d[n(1684)]),u[y]=h,Wt(u[y],t,o,y,u,g0(d,o)));return new S0(i,this[n(895)],t,o)}function Td(e){const n=c;var t=this[n(1153)],o=this[n(241)];typeof e!==n(1719)&&(e=Qr(e));for(var x=this[n(525)],r=x.length,i=[],a=[],f=0;f<r;++f)for(var s=x[f],u=s.length,d,h=0;h<u;++h)if(d=s[h]){for(var y=e.call(d,d[n(1684)],h,s),v,g=g0(d,o),w=0,M=y.length;w<M;++w)(v=y[w])&&Wt(v,t,o,w,y,g);i.push(y),a[n(1955)](d)}return new S0(i,a,t,o)}var Vd=Hn[c(1319)][c(602)];function qd(){return new Vd(this._groups,this._parents)}function Wd(e,n){var t,o,x;return function(){const r=_0x1d61;var i=mn(this,e),a=(this[r(1022)][r(1389)](e),mn(this,e));return i===a?null:i===t&&a===o?x:x=n(t=i,o=a)}}function Ui(e){return function(){const n=_0x1d61;this[n(1022)][n(1389)](e)}}function Xd(e,n,t){var o,x=t+"",r;return function(){var i=mn(this,e);return i===x?null:i===o?r:r=n(o=i,t)}}function Kd(e,n,t){var o,x,r;return function(){var i=mn(this,e),a=t(this),f=a+"";return a==null&&(f=a=(this.style.removeProperty(e),mn(this,e))),i===f?null:i===o&&f===x?r:(x=f,r=n(o=i,a))}}function Zd(e,n){const t=c;var o,x,r,i=t(1604)+n,a="end."+i,f;return function(){const s=t;var u=M0(this,e),d=u.on,h=u[s(699)][i]==null?f||(f=Ui(n)):void 0;(d!==o||r!==h)&&(x=(o=d)[s(201)]()).on(a,r=h),u.on=x}}function Rd(e,n,t){const o=c;var x=(e+="")===o(1225)?Ju:Yi;return n==null?this[o(220)](e,Wd(e,x)).on(o(393)+e,Ui(e)):typeof n===o(1719)?this.styleTween(e,Kd(e,x,xo(this,o(1604)+e,n)))[o(1427)](Zd(this[o(241)],e)):this[o(220)](e,Xd(e,x,n),t).on(o(393)+e,null)}function Jd(e,n,t){return function(o){const x=_0x1d61;this[x(1022)].setProperty(e,n[x(573)](this,o),t)}}function _d(e,n,t){const o=c;var x,r;function i(){var a=n.apply(this,arguments);return a!==r&&(x=(r=a)&&Jd(e,a,t)),x}return i[o(1607)]=n,i}function Fd(e,n,t){const o=c;var x=o(1604)+(e+="");if(arguments.length<2)return(x=this.tween(x))&&x[o(1607)];if(n==null)return this.tween(x,null);if(typeof n!==o(1719))throw new Error;return this[o(1157)](x,_d(e,n,t??""))}function Qd(e){return function(){const n=_0x1d61;this[n(1701)]=e}}function $d(e){return function(){const n=_0x1d61;var t=e(this);this[n(1701)]=t??""}}function e2(e){const n=c;return this[n(1157)]("text",typeof e=="function"?$d(xo(this,n(513),e)):Qd(e==null?"":e+""))}function n2(e){return function(n){const t=_0x1d61;this[t(1701)]=e[t(573)](this,n)}}function t2(e){const n=c;var t,o;function x(){var i=e[_0x1d61(1829)](this,arguments);return i!==o&&(t=(o=i)&&n2(i)),t}return x[n(1607)]=e,x}function x2(e){const n=c;var t=n(513);if(arguments[n(461)]<1)return(t=this[n(1157)](t))&&t[n(1607)];if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this[n(1157)](t,t2(e))}function o2(){const e=c;for(var n=this._name,t=this[e(241)],o=Oi(),x=this[e(525)],r=x[e(461)],i=0;i<r;++i)for(var a=x[i],f=a.length,s,u=0;u<f;++u)if(s=a[u]){var d=g0(s,t);Wt(s,n,o,u,a,{time:d[e(726)]+d[e(572)]+d[e(238)],delay:0,duration:d[e(238)],ease:d[e(1832)]})}return new S0(x,this[e(895)],n,o)}function r2(){const e=c;var n,t,o=this,x=o[e(241)],r=o[e(613)]();return new Promise(function(i,a){const f=e;var s={value:a},u={value:function(){--r===0&&i()}};o[f(1427)](function(){const d=f;var h=M0(this,x),y=h.on;y!==n&&(t=(n=y)[d(201)](),t._.cancel.push(s),t._.interrupt[d(1955)](s),t._[d(306)][d(1955)](u)),h.on=t}),r===0&&i()})}var i2=0;function S0(e,n,t,o){const x=c;this[x(525)]=e,this[x(895)]=n,this[x(1153)]=t,this._id=o}function Oi(){return++i2}var k0=Hn[c(1319)];S0[c(1319)]={constructor:S0,select:Hd,selectAll:Td,selectChild:k0.selectChild,selectChildren:k0[c(1876)],filter:Ad,merge:Ed,selection:qd,transition:o2,call:k0[c(573)],nodes:k0[c(425)],node:k0.node,size:k0.size,empty:k0.empty,each:k0[c(1427)],on:Ud,attr:md,attrTween:zd,style:Rd,styleTween:Fd,text:e2,textTween:x2,remove:Gd,tween:ld,delay:Bd,duration:Nd,ease:kd,easeVarying:Id,end:r2,[Symbol[c(217)]]:k0[Symbol[c(217)]]};function a2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var c2={time:null,delay:0,duration:250,ease:a2};function s2(e,n){const t=c;for(var o;!(o=e[t(576)])||!(o=o[n]);)if(!(e=e[t(1500)]))throw new Error(t(1683)+n+t(423));return o}function l2(e){const n=c;var t,o;e instanceof S0?(t=e[n(241)],e=e[n(1153)]):(t=Oi(),(o=c2).time=Qx(),e=e==null?null:e+"");for(var x=this[n(525)],r=x[n(461)],i=0;i<r;++i)for(var a=x[i],f=a[n(461)],s,u=0;u<f;++u)(s=a[u])&&Wt(s,e,t,u,a,o||s2(s,t));return new S0(x,this._parents,e,t)}Hn[c(1319)].interrupt=ad,Hn[c(1319)][c(1713)]=l2;const Kt=e=>()=>e;function f2(e,{sourceEvent:n,target:t,transform:o,dispatch:x}){Object[c(1883)](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 P0(e,n,t){this.k=e,this.x=n,this.y=t}P0[c(1319)]={constructor:P0,scale:function(e){return e===1?this:new P0(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new P0(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(201)]().domain(e.range()[n(1186)](this[n(1615)],this)[n(1186)](e[n(784)],e))},rescaleY:function(e){const n=c;return e[n(201)]()[n(1868)](e[n(925)]()[n(1186)](this[n(907)],this)[n(1186)](e.invert,e))},toString:function(){const e=c;return e(594)+this.x+","+this.y+e(899)+this.k+")"}};var Zt=new P0(1,0,0);Gi.prototype=P0.prototype;function Gi(e){const n=c;for(;!e.__zoom;)if(!(e=e.parentNode))return Zt;return e[n(1025)]}function oo(e){e[c(381)]()}function _n(e){const n=c;e.preventDefault(),e[n(381)]()}function u2(e){const n=c;return(!e[n(1374)]||e[n(893)]===n(469))&&!e.button}function d2(){const e=c;var n=this;return n instanceof SVGElement?(n=n[e(1343)]||n,n.hasAttribute(e(1720))?(n=n[e(1720)][e(637)],[[n.x,n.y],[n.x+n[e(737)],n.y+n[e(522)]]]):[[0,0],[n[e(737)][e(637)][e(699)],n.height.baseVal.value]]):[[0,0],[n.clientWidth,n[e(320)]]]}function Hi(){return this[c(1025)]||Zt}function h2(e){const n=c;return-e[n(1139)]*(e.deltaMode===1?.05:e[n(1187)]?1:.002)*(e[n(1374)]?10:1)}function g2(){const e=c;return navigator.maxTouchPoints||e(233)in this}function y2(e,n,t){const o=c;var x=e[o(1615)](n[0][0])-t[0][0],r=e[o(1615)](n[1][0])-t[1][0],i=e.invertY(n[0][1])-t[0][1],a=e[o(907)](n[1][1])-t[1][1];return e[o(1290)](r>x?(x+r)/2:Math[o(407)](0,x)||Math[o(630)](0,r),a>i?(i+a)/2:Math[o(407)](0,i)||Math[o(630)](0,a))}function Ti(){const e=c;var n=u2,t=d2,o=y2,x=h2,r=g2,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],f=250,s=Ut,u=Dt("start",e(441),"end"),d,h,y,v=500,g=150,w=0,M=10;function b(N){const B=e;N[B(1245)](B(1025),Hi).on(B(662),q,{passive:!1}).on("mousedown.zoom",E).on(B(359),V)[B(1027)](r).on(B(1678),T).on(B(862),X).on("touchend.zoom touchcancel.zoom",H)[B(1022)](B(796),"rgba(0,0,0,0)")}b[e(1225)]=function(N,B,D,j){const U=e;var k=N.selection?N[U(1939)]():N;k[U(1245)](U(1025),Hi),N!==k?S(N,B,D,j):k.interrupt()[U(1427)](function(){const R=U;O(this,arguments)[R(1310)](j)[R(916)]()[R(441)](null,typeof B===R(1719)?B[R(1829)](this,arguments):B)[R(306)]()})},b[e(898)]=function(N,B,D,j){const U=e;b[U(1038)](N,function(){const k=U;var R=this[k(1025)].k,_=typeof B===k(1719)?B[k(1829)](this,arguments):B;return R*_},D,j)},b.scaleTo=function(N,B,D,j){const U=e;b[U(1225)](N,function(){const k=U;var R=t[k(1829)](this,arguments),_=this[k(1025)],J=D==null?p(R):typeof D===k(1719)?D[k(1829)](this,arguments):D,xe=_[k(784)](J),oe=typeof B===k(1719)?B.apply(this,arguments):B;return o(z(m(_,oe),J,xe),R,a)},D,j)},b[e(1705)]=function(N,B,D,j){const U=e;b[U(1225)](N,function(){const k=U;return o(this[k(1025)][k(1290)](typeof B===k(1719)?B[k(1829)](this,arguments):B,typeof D===k(1719)?D[k(1829)](this,arguments):D),t[k(1829)](this,arguments),a)},null,j)},b[e(1240)]=function(N,B,D,j,U){const k=e;b[k(1225)](N,function(){const R=k;var _=t[R(1829)](this,arguments),J=this.__zoom,xe=j==null?p(_):typeof j===R(1719)?j[R(1829)](this,arguments):j;return o(Zt[R(1290)](xe[0],xe[1])[R(442)](J.k)[R(1290)](typeof B=="function"?-B[R(1829)](this,arguments):-B,typeof D===R(1719)?-D[R(1829)](this,arguments):-D),_,a)},j,U)};function m(N,B){const D=e;return B=Math.max(i[0],Math[D(407)](i[1],B)),B===N.k?N:new P0(B,N.x,N.y)}function z(N,B,D){var j=B[0]-D[0]*N.k,U=B[1]-D[1]*N.k;return j===N.x&&U===N.y?N:new P0(N.k,j,U)}function p(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function S(N,B,D,j){const U=e;N.on(U(1840),function(){const k=U;O(this,arguments)[k(1310)](j).start()}).on(U(1658),function(){const k=U;O(this,arguments)[k(1310)](j)[k(306)]()}).tween(U(441),function(){const k=U;var R=this,_=arguments,J=O(R,_)[k(1310)](j),xe=t.apply(R,_),oe=D==null?p(xe):typeof D===k(1719)?D[k(1829)](R,_):D,ce=Math[k(630)](xe[1][0]-xe[0][0],xe[1][1]-xe[0][1]),ue=R.__zoom,me=typeof B===k(1719)?B[k(1829)](R,_):B,se=s(ue[k(784)](oe)[k(1823)](ce/ue.k),me[k(784)](oe)[k(1823)](ce/me.k));return function(F){const le=k;if(F===1)F=me;else{var de=se(F),Y=ce/de[2];F=new P0(Y,oe[0]-de[0]*Y,oe[1]-de[1]*Y)}J[le(441)](null,F)}})}function O(N,B,D){return!D&&N.__zooming||new G(N,B)}function G(N,B){const D=e;this[D(923)]=N,this[D(545)]=B,this.active=0,this[D(1405)]=null,this.extent=t[D(1829)](N,B),this[D(532)]=0}G[e(1319)]={event:function(N){const B=e;return N&&(this[B(1405)]=N),this},start:function(){const N=e;return++this[N(1167)]===1&&(this[N(923)][N(645)]=this,this[N(344)](N(916))),this},zoom:function(N,B){const D=e;return this.mouse&&N!==D(1885)&&(this[D(1885)][1]=B[D(784)](this[D(1885)][0])),this[D(1790)]&&N!=="touch"&&(this[D(1790)][1]=B[D(784)](this[D(1790)][0])),this[D(1858)]&&N!==D(1552)&&(this[D(1858)][1]=B[D(784)](this[D(1858)][0])),this.that[D(1025)]=B,this[D(344)](D(441)),this},end:function(){const N=e;return--this[N(1167)]===0&&(delete this[N(923)].__zooming,this[N(344)](N(306))),this},emit:function(N){const B=e;var D=i0(this[B(923)])[B(1831)]();u[B(573)](N,this.that,new f2(N,{sourceEvent:this[B(1405)],target:b,transform:this[B(923)].__zoom,dispatch:u}),D)}};function q(N,...B){const D=e;if(!n.apply(this,arguments))return;var j=O(this,B)[D(1310)](N),U=this[D(1025)],k=Math.max(i[0],Math[D(407)](i[1],U.k*Math[D(1952)](2,x[D(1829)](this,arguments)))),R=d0(N);if(j[D(469)])(j.mouse[0][0]!==R[0]||j[D(1885)][0][1]!==R[1])&&(j[D(1885)][1]=U.invert(j[D(1885)][0]=R)),clearTimeout(j[D(469)]);else{if(U.k===k)return;j[D(1885)]=[R,U[D(784)](R)],Xt(this),j[D(916)]()}_n(N),j[D(469)]=setTimeout(_,g),j[D(441)](D(1885),o(z(m(U,k),j[D(1885)][0],j.mouse[1]),j[D(403)],a));function _(){const J=D;j[J(469)]=null,j[J(306)]()}}function E(N,...B){const D=e;if(y||!n.apply(this,arguments))return;var j=N[D(1441)],U=O(this,B,!0)[D(1310)](N),k=i0(N.view).on(D(851),xe,!0).on("mouseup.zoom",oe,!0),R=d0(N,j),_=N.clientX,J=N[D(1450)];si(N[D(1564)]),oo(N),U[D(1885)]=[R,this[D(1025)][D(784)](R)],Xt(this),U[D(916)]();function xe(ce){const ue=D;if(_n(ce),!U.moved){var me=ce[ue(1089)]-_,se=ce.clientY-J;U[ue(361)]=me*me+se*se>w}U[ue(1310)](ce)[ue(441)]("mouse",o(z(U.that[ue(1025)],U[ue(1885)][0]=d0(ce,j),U.mouse[1]),U[ue(403)],a))}function oe(ce){const ue=D;k.on(ue(1333),null),li(ce[ue(1564)],U[ue(361)]),_n(ce),U[ue(1310)](ce)[ue(306)]()}}function V(N,...B){const D=e;if(n[D(1829)](this,arguments)){var j=this[D(1025)],U=d0(N[D(1192)]?N[D(1192)][0]:N,this),k=j[D(784)](U),R=j.k*(N[D(1117)]?.5:2),_=o(z(m(j,R),U,k),t[D(1829)](this,B),a);_n(N),f>0?i0(this).transition().duration(f)[D(573)](S,_,U,N):i0(this)[D(573)](b.transform,_,U,N)}}function T(N,...B){const D=e;if(n.apply(this,arguments)){var j=N.touches,U=j.length,k=O(this,B,N.changedTouches[D(461)]===U)[D(1310)](N),R,_,J,xe;for(oo(N),_=0;_<U;++_)J=j[_],xe=d0(J,this),xe=[xe,this[D(1025)][D(784)](xe),J[D(1527)]],k[D(1790)]?!k[D(1858)]&&k[D(1790)][2]!==xe[2]&&(k[D(1858)]=xe,k[D(532)]=0):(k[D(1790)]=xe,R=!0,k.taps=1+!!d);d&&(d=clearTimeout(d)),R&&(k[D(532)]<2&&(h=xe[0],d=setTimeout(function(){d=null},v)),Xt(this),k[D(916)]())}}function X(N,...B){const D=e;if(this[D(645)]){var j=O(this,B)[D(1310)](N),U=N[D(1192)],k=U[D(461)],R,_,J,xe;for(_n(N),R=0;R<k;++R)_=U[R],J=d0(_,this),j[D(1790)]&&j[D(1790)][2]===_[D(1527)]?j.touch0[0]=J:j[D(1858)]&&j.touch1[2]===_.identifier&&(j[D(1858)][0]=J);if(_=j[D(923)][D(1025)],j.touch1){var oe=j[D(1790)][0],ce=j[D(1790)][1],ue=j[D(1858)][0],me=j[D(1858)][1],se=(se=ue[0]-oe[0])*se+(se=ue[1]-oe[1])*se,F=(F=me[0]-ce[0])*F+(F=me[1]-ce[1])*F;_=m(_,Math[D(1127)](se/F)),J=[(oe[0]+ue[0])/2,(oe[1]+ue[1])/2],xe=[(ce[0]+me[0])/2,(ce[1]+me[1])/2]}else if(j[D(1790)])J=j[D(1790)][0],xe=j[D(1790)][1];else return;j[D(441)]("touch",o(z(_,J,xe),j[D(403)],a))}}function H(N,...B){const D=e;if(this[D(645)]){var j=O(this,B).event(N),U=N[D(1192)],k=U.length,R,_;for(oo(N),y&&clearTimeout(y),y=setTimeout(function(){y=null},v),R=0;R<k;++R)_=U[R],j[D(1790)]&&j[D(1790)][2]===_.identifier?delete j.touch0:j[D(1858)]&&j[D(1858)][2]===_[D(1527)]&&delete j.touch1;if(j[D(1858)]&&!j[D(1790)]&&(j[D(1790)]=j[D(1858)],delete j.touch1),j[D(1790)])j[D(1790)][1]=this[D(1025)][D(784)](j[D(1790)][0]);else if(j[D(306)](),j.taps===2&&(_=d0(_,this),Math[D(861)](h[0]-_[0],h[1]-_[1])<M)){var J=i0(this).on(D(359));J&&J[D(1829)](this,arguments)}}}return b[e(459)]=function(N){const B=e;return arguments.length?(x=typeof N===B(1719)?N:Kt(+N),b):x},b[e(1027)]=function(N){const B=e;return arguments[B(461)]?(n=typeof N===B(1719)?N:Kt(!!N),b):n},b[e(1358)]=function(N){const B=e;return arguments[B(461)]?(r=typeof N===B(1719)?N:Kt(!!N),b):r},b[e(403)]=function(N){return arguments[e(461)]?(t=typeof N=="function"?N:Kt([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),b):t},b[e(249)]=function(N){return arguments[e(461)]?(i[0]=+N[0],i[1]=+N[1],b):[i[0],i[1]]},b[e(1273)]=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],b):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},b[e(1530)]=function(N){return arguments[e(461)]?(o=N,b):o},b[e(238)]=function(N){return arguments.length?(f=+N,b):f},b[e(1284)]=function(N){return arguments[e(461)]?(s=N,b):s},b.on=function(){const N=e;var B=u.on[N(1829)](u,arguments);return B===u?b:B},b.clickDistance=function(N){const B=e;return arguments[B(461)]?(w=(N=+N)*N,b):Math[B(1127)](w)},b[e(1313)]=function(N){return arguments[e(461)]?(M=+N,b):M},b}const a0={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>c(1230),error003:e=>'Node type "'+e+'" not found. Using fallback type "default".',error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>c(1734),error006:()=>c(1850),error007:e=>c(787)+e+c(783),error009:e=>'Marker type "'+e+c(1459),error008:(e,{id:n,sourceHandle:t,targetHandle:o})=>c(860)+e+c(1894)+(e==="source"?t:o)+c(1168)+n+".",error010:()=>c(179),error011:e=>c(1420)+e+c(1750),error012:e=>'Node with id "'+e+c(627),error013:(e=c(1843))=>c(399)+e+"/dist/style.css' or base.css to make sure everything is working properly.",error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>c(724)},Fn=[[Number[c(542)],Number[c(542)]],[Number[c(176)],Number[c(176)]]],Vi=[c(1519)," ",c(473)],qi={"node.a11yDescription.default":c(1546),"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(1796)+e+c(1296)+n+c(1483)+t,"edge.a11yDescription.default":c(951),"controls.ariaLabel":c(521),"controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":c(720),"controls.fitView.ariaLabel":c(1246),"controls.interactive.ariaLabel":c(1188),"minimap.ariaLabel":c(396),"handle.ariaLabel":c(460)};var pn;(function(e){const n=c;e[n(1951)]=n(1255),e[n(1555)]=n(670)})(pn||(pn={}));var nn;(function(e){const n=c;e[n(819)]=n(614),e[n(848)]="vertical",e[n(1910)]=n(1130)})(nn||(nn={}));var Qn;(function(e){const n=c;e[n(1376)]=n(1185),e[n(592)]="full"})(Qn||(Qn={}));const Wi={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var O0;(function(e){const n=c;e[n(463)]=n(1409),e.Straight=n(1275),e[n(786)]="step",e[n(1644)]=n(1905),e[n(219)]=n(1504)})(O0||(O0={}));var Rt;(function(e){const n=c;e[n(1004)]="arrow",e.ArrowClosed=n(1351)})(Rt||(Rt={}));var pe;(function(e){const n=c;e[n(771)]=n(548),e.Top=n(327),e[n(888)]=n(1470),e.Bottom=n(464)})(pe||(pe={}));const Xi={[pe[c(771)]]:pe.Right,[pe[c(888)]]:pe[c(771)],[pe.Top]:pe[c(905)],[pe.Bottom]:pe[c(1880)]};function Ki(e){return e===null?null:e?c(226):"invalid"}const Zi=e=>"id"in e&&c(1630)in e&&c(1385)in e,m2=e=>"id"in e&&"position"in e&&!(c(1630)in e)&&!(c(1385)in e),ro=e=>"id"in e&&"internals"in e&&!(c(1630)in e)&&!(c(1385)in e),$n=(e,n=[0,0])=>{const t=c,{width:o,height:x}=I0(e),r=e[t(1233)]??n,i=o*r[0],a=x*r[1];return{x:e.position.x-i,y:e[t(1137)].y-a}},b2=(e,n={nodeOrigin:[0,0]})=>{const t=c;if(process.env.NODE_ENV===t(1243)&&!n[t(1067)]&&console[t(1570)](t(1712)),e[t(461)]===0)return{x:0,y:0,width:0,height:0};const o=e[t(1906)]((x,r)=>{const i=t,a=typeof r===i(1516);let f=!n[i(1067)]&&!a?r:void 0;n.nodeLookup&&(f=a?n[i(1067)][i(1280)](r):ro(r)?r:n[i(1067)][i(1280)](r.id));const s=f?Ft(f,n[i(1193)]):{x:0,y:0,x2:0,y2:0};return Jt(x,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return _t(o)},et=(e,n={})=>{let t={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(x=>{const r=_0x1d61;(n[r(1027)]===void 0||n[r(1027)](x))&&(t=Jt(t,Ft(x)),o=!0)}),o?_t(t):{x:0,y:0,width:0,height:0}},io=(e,n,[t,o,x]=[0,0,1],r=!1,i=!1)=>{const a=c,f={...xt(n,[t,o,x]),width:n[a(737)]/x,height:n[a(522)]/x},s=[];for(const u of e[a(1852)]()){const{measured:d,selectable:h=!0,hidden:y=!1}=u;if(i&&!h||y)continue;const v=d[a(737)]??u.width??u[a(983)]??null,g=d.height??u[a(522)]??u[a(509)]??null,w=nt(f,Cn(u)),M=(v??0)*(g??0),b=r&&w>0;(!u.internals.handleBounds||b||w>=M||u[a(1309)])&&s[a(1955)](u)}return s},v2=(e,n)=>{const t=c,o=new Set;return e[t(1956)](x=>{o[t(1742)](x.id)}),n[t(1027)](x=>o[t(806)](x.source)||o[t(806)](x[t(1385)]))};function w2(e,n){const t=c,o=new Map,x=n?.[t(425)]?new Set(n[t(425)][t(1186)](r=>r.id)):null;return e[t(1956)](r=>{const i=t;r[i(701)][i(737)]&&r[i(701)][i(522)]&&(n?.[i(1183)]||!r[i(556)])&&(!x||x[i(806)](r.id))&&o[i(1676)](r.id,r)}),o}async function p2({nodes:e,width:n,height:t,panZoom:o,minZoom:x,maxZoom:r},i){const a=c;if(e[a(613)]===0)return Promise[a(943)](!0);const f=w2(e,i),s=et(f),u=co(s,n,t,i?.[a(1160)]??x,i?.[a(653)]??r,i?.[a(1077)]??.1);return await o[a(758)](u,{duration:i?.[a(238)],ease:i?.[a(1832)],interpolate:i?.[a(1284)]}),Promise.resolve(!0)}function Ri({nodeId:e,nextPosition:n,nodeLookup:t,nodeOrigin:o=[0,0],nodeExtent:x,onError:r}){const i=c,a=t[i(1280)](e),f=a.parentId?t[i(1280)](a[i(1085)]):void 0,{x:s,y:u}=f?f.internals.positionAbsolute:{x:0,y:0},d=a[i(1233)]??o;let h=a[i(403)]||x;if(a[i(403)]===i(1115)&&!a.expandParent)if(!f)r?.(i(1147),a0[i(276)]());else{const v=f[i(701)][i(737)],g=f[i(701)][i(522)];v&&g&&(h=[[s,u],[s+v,u+g]])}else f&&Bn(a[i(403)])&&(h=[[a[i(403)][0][0]+s,a[i(403)][0][1]+u],[a[i(403)][1][0]+s,a[i(403)][1][1]+u]]);const y=Bn(h)?tn(n,h,a[i(701)]):n;return(a[i(701)][i(737)]===void 0||a[i(701)].height===void 0)&&r?.(i(1003),a0[i(350)]()),{position:{x:y.x-s+(a.measured[i(737)]??0)*d[0],y:y.y-u+(a[i(701)].height??0)*d[1]},positionAbsolute:y}}async function z2({nodesToRemove:e=[],edgesToRemove:n=[],nodes:t,edges:o,onBeforeDelete:x}){const r=c,i=new Set(e[r(1186)](y=>y.id)),a=[];for(const y of t){if(y.deletable===!1)continue;const v=i[r(806)](y.id),g=!v&&y[r(1085)]&&a[r(1682)](w=>w.id===y.parentId);(v||g)&&a[r(1955)](y)}const f=new Set(n[r(1186)](y=>y.id)),s=o[r(1027)](y=>y[r(171)]!==!1),u=v2(a,s),d=u;for(const y of s)f[r(806)](y.id)&&!d[r(1682)](g=>g.id===y.id)&&d[r(1955)](y);if(!x)return{edges:d,nodes:a};const h=await x({nodes:a,edges:d});return typeof h===r(1106)?h?{edges:d,nodes:a}:{edges:[],nodes:[]}:h}const zn=(e,n=0,t=1)=>Math.min(Math[c(630)](e,n),t),tn=(e={x:0,y:0},n,t)=>({x:zn(e.x,n[0][0],n[1][0]-(t?.[c(737)]??0)),y:zn(e.y,n[0][1],n[1][1]-(t?.height??0))});function Ji(e,n,t){const{width:o,height:x}=I0(t),{x:r,y:i}=t.internals.positionAbsolute;return tn(e,[[r,i],[r+o,i+x]],n)}const _i=(e,n,t)=>{const o=c;return e<n?zn(Math[o(1016)](e-n),1,n)/n:e>t?-zn(Math[o(1016)](e-t),1,n)/n:0},Fi=(e,n,t=15,o=40)=>{const x=c,r=_i(e.x,o,n[x(737)]-o)*t,i=_i(e.y,o,n[x(522)]-o)*t;return[r,i]},Jt=(e,n)=>({x:Math[c(407)](e.x,n.x),y:Math[c(407)](e.y,n.y),x2:Math.max(e.x2,n.x2),y2:Math[c(630)](e.y2,n.y2)}),ao=({x:e,y:n,width:t,height:o})=>({x:e,y:n,x2:e+t,y2:n+o}),_t=({x:e,y:n,x2:t,y2:o})=>({x:e,y:n,width:t-e,height:o-n}),Cn=(e,n=[0,0])=>{const t=c,{x:o,y:x}=ro(e)?e[t(620)].positionAbsolute:$n(e,n);return{x:o,y:x,width:e[t(701)]?.[t(737)]??e[t(737)]??e[t(983)]??0,height:e[t(701)]?.[t(522)]??e[t(522)]??e[t(509)]??0}},Ft=(e,n=[0,0])=>{const t=c,{x:o,y:x}=ro(e)?e[t(620)][t(745)]:$n(e,n);return{x:o,y:x,x2:o+(e[t(701)]?.[t(737)]??e[t(737)]??e[t(983)]??0),y2:x+(e.measured?.[t(522)]??e[t(522)]??e[t(509)]??0)}},Qi=(e,n)=>_t(Jt(ao(e),ao(n))),nt=(e,n)=>{const t=c,o=Math[t(630)](0,Math[t(407)](e.x+e[t(737)],n.x+n[t(737)])-Math.max(e.x,n.x)),x=Math[t(630)](0,Math[t(407)](e.y+e[t(522)],n.y+n[t(522)])-Math[t(630)](e.y,n.y));return Math[t(621)](o*x)},$i=e=>y0(e[c(737)])&&y0(e.height)&&y0(e.x)&&y0(e.y),y0=e=>!isNaN(e)&&isFinite(e),ea=(e,n)=>{const t=c;process.env.NODE_ENV===t(1243)&&console[t(1570)](t(868)+n+" Help: https://reactflow.dev/error#"+e)},tt=(e,n=[1,1])=>{const t=c;return{x:n[0]*Math[t(1263)](e.x/n[0]),y:n[1]*Math.round(e.y/n[1])}},xt=({x:e,y:n},[t,o,x],r=!1,i=[1,1])=>{const a={x:(e-t)/x,y:(n-o)/x};return r?tt(a,i):a},Qt=({x:e,y:n},[t,o,x])=>({x:e*x+t,y:n*x+o});function Mn(e,n){const t=c;if(typeof e===t(663))return Math[t(312)]((n-n/(1+e))*.5);if(typeof e===t(1516)&&e[t(894)]("px")){const o=parseFloat(e);if(!Number[t(1398)](o))return Math[t(312)](o)}if(typeof e===t(1516)&&e[t(894)]("%")){const o=parseFloat(e);if(!Number.isNaN(o))return Math[t(312)](n*o*.01)}return console[t(1842)](t(1259)+e+t(1872)),0}function C2(e,n,t){const o=c;if(typeof e===o(1516)||typeof e=="number"){const x=Mn(e,t),r=Mn(e,n);return{top:x,right:r,bottom:x,left:r,x:r*2,y:x*2}}if(typeof e===o(448)){const x=Mn(e[o(327)]??e.y??0,t),r=Mn(e[o(464)]??e.y??0,t),i=Mn(e[o(548)]??e.x??0,n),a=Mn(e.right??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 M2(e,n,t,o,x,r){const i=c,{x:a,y:f}=Qt(e,[n,t,o]),{x:s,y:u}=Qt({x:e.x+e[i(737)],y:e.y+e[i(522)]},[n,t,o]),d=x-s,h=r-u;return{left:Math[i(312)](a),top:Math[i(312)](f),right:Math[i(312)](d),bottom:Math[i(312)](h)}}const co=(e,n,t,o,x,r)=>{const i=c,a=C2(r,n,t),f=(n-a.x)/e[i(737)],s=(t-a.y)/e[i(522)],u=Math[i(407)](f,s),d=zn(u,o,x),h=e.x+e[i(737)]/2,y=e.y+e.height/2,v=n/2-h*d,g=t/2-y*d,w=M2(e,v,g,d,n,t),M={left:Math.min(w[i(548)]-a[i(548)],0),top:Math[i(407)](w.top-a[i(327)],0),right:Math[i(407)](w[i(1470)]-a[i(1470)],0),bottom:Math.min(w[i(464)]-a[i(464)],0)};return{x:v-M.left+M[i(1470)],y:g-M[i(327)]+M[i(464)],zoom:d}},ot=()=>typeof navigator!==c(1482)&&navigator?.[c(422)]?.indexOf(c(395))>=0;function Bn(e){return e!=null&&e!=="parent"}function I0(e){const n=c;return{width:e.measured?.width??e[n(737)]??e[n(983)]??0,height:e.measured?.height??e[n(522)]??e[n(509)]??0}}function na(e){const n=c;return(e.measured?.[n(737)]??e[n(737)]??e[n(983)])!==void 0&&(e[n(701)]?.[n(522)]??e[n(522)]??e[n(509)])!==void 0}function ta(e,n={width:0,height:0},t,o,x){const r=c,i={...e},a=o[r(1280)](t);if(a){const f=a.origin||x;i.x+=a[r(620)][r(745)].x-(n[r(737)]??0)*f[0],i.y+=a[r(620)][r(745)].y-(n[r(522)]??0)*f[1]}return i}function xa(e,n){const t=c;if(e.size!==n.size)return!1;for(const o of e)if(!n[t(806)](o))return!1;return!0}function B2(){let e,n;return{promise:new Promise((o,x)=>{e=o,n=x}),resolve:e,reject:n}}function D2(e){return{...qi,...e||{}}}function rt(e,{snapGrid:n=[0,0],snapToGrid:t=!1,transform:o,containerBounds:x}){const r=c,{x:i,y:a}=m0(e),f=xt({x:i-(x?.[r(548)]??0),y:a-(x?.[r(327)]??0)},o),{x:s,y:u}=t?tt(f,n):f;return{xSnapped:s,ySnapped:u,...f}}const so=e=>({width:e[c(900)],height:e.offsetHeight}),oa=e=>e?.getRootNode?.()||window?.document,L2=[c(1373),c(622),c(967)];function ra(e){const n=c,t=e[n(1584)]?.()?.[0]||e[n(1385)];return t?.[n(846)]!==1?!1:L2[n(1486)](t.nodeName)||t[n(534)](n(268))||!!t[n(809)](n(625))}const ia=e=>"clientX"in e,m0=(e,n)=>{const t=c,o=ia(e),x=o?e[t(1089)]:e.touches?.[0][t(1089)],r=o?e[t(1450)]:e[t(175)]?.[0][t(1450)];return{x:x-(n?.[t(548)]??0),y:r-(n?.[t(327)]??0)}},aa=(e,n,t,o,x)=>{const r=c,i=n[r(1513)]("."+e);return!i||!i.length?null:Array[r(598)](i)[r(1186)](a=>{const f=r,s=a[f(1593)]();return{id:a[f(1432)](f(138)),type:e,nodeId:x,position:a[f(1432)](f(566)),x:(s.left-t[f(548)])/o,y:(s.top-t[f(327)])/o,...so(a)}})};function ca({sourceX:e,sourceY:n,targetX:t,targetY:o,sourceControlX:x,sourceControlY:r,targetControlX:i,targetControlY:a}){const f=c,s=e*.125+x*.375+i*.375+t*.125,u=n*.125+r*.375+a*.375+o*.125,d=Math[f(1016)](s-e),h=Math[f(1016)](u-n);return[s,u,d,h]}function $t(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function sa({pos:e,x1:n,y1:t,x2:o,y2:x,c:r}){const i=c;switch(e){case pe[i(771)]:return[n-$t(n-o,r),t];case pe[i(888)]:return[n+$t(o-n,r),t];case pe.Top:return[n,t-$t(t-x,r)];case pe[i(905)]:return[n,t+$t(x-t,r)]}}function la({sourceX:e,sourceY:n,sourcePosition:t=pe[c(905)],targetX:o,targetY:x,targetPosition:r=pe[c(1880)],curvature:i=.25}){const[a,f]=sa({pos:t,x1:e,y1:n,x2:o,y2:x,c:i}),[s,u]=sa({pos:r,x1:o,y1:x,x2:e,y2:n,c:i}),[d,h,y,v]=ca({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:a,sourceControlY:f,targetControlX:s,targetControlY:u});return["M"+e+","+n+" C"+a+","+f+" "+s+","+u+" "+o+","+x,d,h,y,v]}function fa({sourceX:e,sourceY:n,targetX:t,targetY:o}){const x=c,r=Math[x(1016)](t-e)/2,i=t<e?t+r:t-r,a=Math[x(1016)](o-n)/2,f=o<n?o+a:o-a;return[i,f,r,a]}function N2({sourceNode:e,targetNode:n,selected:t=!1,zIndex:o=0,elevateOnSelect:x=!1,zIndexMode:r="basic"}){const i=c;if(r===i(436))return o;const a=x&&t?o+1e3:o,f=Math[i(630)](e[i(1085)]||x&&e[i(1477)]?e[i(620)].z:0,n[i(1085)]||x&&n[i(1477)]?n[i(620)].z:0);return a+f}function S2({sourceNode:e,targetNode:n,width:t,height:o,transform:x}){const r=Jt(Ft(e),Ft(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 nt(i,_t(r))>0}const k2=({source:e,sourceHandle:n,target:t,targetHandle:o})=>"xy-edge__"+e+(n||"")+"-"+t+(o||""),P2=(e,n)=>{const t=c;return n[t(540)](o=>o[t(1630)]===e[t(1630)]&&o.target===e[t(1385)]&&(o[t(1664)]===e[t(1664)]||!o[t(1664)]&&!e[t(1664)])&&(o.targetHandle===e[t(1278)]||!o.targetHandle&&!e[t(1278)]))},ua=(e,n,t={})=>{const o=c;if(!e[o(1630)]||!e.target)return ea(o(1756),a0[o(1142)]()),n;const x=t.getEdgeId||k2;let r;return Zi(e)?r={...e}:r={...e,id:x(e)},P2(r,n)?n:(r[o(1664)]===null&&delete r.sourceHandle,r.targetHandle===null&&delete r[o(1278)],n.concat(r))};function da({sourceX:e,sourceY:n,targetX:t,targetY:o}){const[x,r,i,a]=fa({sourceX:e,sourceY:n,targetX:t,targetY:o});return["M "+e+","+n+"L "+t+","+o,x,r,i,a]}const ha={[pe.Left]:{x:-1,y:0},[pe[c(888)]]:{x:1,y:0},[pe[c(1880)]]:{x:0,y:-1},[pe[c(905)]]:{x:0,y:1}},I2=({source:e,sourcePosition:n=pe[c(905)],target:t})=>n===pe[c(771)]||n===pe.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},ga=(e,n)=>Math.sqrt(Math[c(1952)](n.x-e.x,2)+Math.pow(n.y-e.y,2));function A2({source:e,sourcePosition:n=pe.Bottom,target:t,targetPosition:o=pe[c(1880)],center:x,offset:r,stepPosition:i}){const a=c,f=ha[n],s=ha[o],u={x:e.x+f.x*r,y:e.y+f.y*r},d={x:t.x+s.x*r,y:t.y+s.y*r},h=I2({source:u,sourcePosition:n,target:d}),y=h.x!==0?"x":"y",v=h[y];let g=[],w,M;const b={x:0,y:0},m={x:0,y:0},[,,z,p]=fa({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(f[y]*s[y]===-1){y==="x"?(w=x.x??u.x+(d.x-u.x)*i,M=x.y??(u.y+d.y)/2):(w=x.x??(u.x+d.x)/2,M=x.y??u.y+(d.y-u.y)*i);const q=[{x:w,y:u.y},{x:w,y:d.y}],E=[{x:u.x,y:M},{x:d.x,y:M}];f[y]===v?g=y==="x"?q:E:g=y==="x"?E:q}else{const q=[{x:u.x,y:d.y}],E=[{x:d.x,y:u.y}];if(y==="x"?g=f.x===v?E:q:g=f.y===v?q:E,n===o){const N=Math[a(1016)](e[y]-t[y]);if(N<=r){const B=Math.min(r-1,r-N);f[y]===v?b[y]=(u[y]>e[y]?-1:1)*B:m[y]=(d[y]>t[y]?-1:1)*B}}if(n!==o){const N=y==="x"?"y":"x",B=f[y]===s[N],D=u[N]>d[N],j=u[N]<d[N];(f[y]===1&&(!B&&D||B&&j)||f[y]!==1&&(!B&&j||B&&D))&&(g=y==="x"?q:E)}const V={x:u.x+b.x,y:u.y+b.y},T={x:d.x+m.x,y:d.y+m.y},X=Math[a(630)](Math[a(1016)](V.x-g[0].x),Math[a(1016)](T.x-g[0].x)),H=Math[a(630)](Math[a(1016)](V.y-g[0].y),Math[a(1016)](T.y-g[0].y));X>=H?(w=(V.x+T.x)/2,M=g[0].y):(w=g[0].x,M=(V.y+T.y)/2)}const S={x:u.x+b.x,y:u.y+b.y},O={x:d.x+m.x,y:d.y+m.y};return[[e,...S.x!==g[0].x||S.y!==g[0].y?[S]:[],...g,...O.x!==g[g[a(461)]-1].x||O.y!==g[g[a(461)]-1].y?[O]:[],t],w,M,z,p]}function E2(e,n,t,o){const x=Math.min(ga(e,n)/2,ga(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,u=e.y<t.y?1:-1;return"L "+(r+x*s)+","+i+"Q "+r+","+i+" "+r+","+(i+x*u)}const a=e.x<t.x?1:-1,f=e.y<t.y?-1:1;return"L "+r+","+(i+x*f)+"Q "+r+","+i+" "+(r+x*a)+","+i}function lo({sourceX:e,sourceY:n,sourcePosition:t=pe[c(905)],targetX:o,targetY:x,targetPosition:r=pe[c(1880)],borderRadius:i=5,centerX:a,centerY:f,offset:s=20,stepPosition:u=.5}){const d=c,[h,y,v,g,w]=A2({source:{x:e,y:n},sourcePosition:t,target:{x:o,y:x},targetPosition:r,center:{x:a,y:f},offset:s,stepPosition:u});let M="M"+h[0].x+" "+h[0].y;for(let b=1;b<h[d(461)]-1;b++)M+=E2(h[b-1],h[b],h[b+1],i);return M+="L"+h[h[d(461)]-1].x+" "+h[h.length-1].y,[M,y,v,g,w]}function ya(e){const n=c;return e&&!!(e[n(620)][n(569)]||e[n(1104)]?.[n(461)])&&!!(e[n(701)][n(737)]||e[n(737)]||e[n(983)])}function j2(e){const n=c,{sourceNode:t,targetNode:o}=e;if(!ya(t)||!ya(o))return null;const x=t[n(620)][n(569)]||ma(t[n(1104)]),r=o[n(620)][n(569)]||ma(o[n(1104)]),i=ba(x?.[n(1630)]??[],e[n(1664)]),a=ba(e[n(1698)]===pn[n(1951)]?r?.[n(1385)]??[]:(r?.[n(1385)]??[])[n(1823)](r?.source??[]),e[n(1278)]);if(!i||!a)return e[n(1029)]?.(n(1558),a0[n(601)](n(i?1385:1630),{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e[n(1278)]})),null;const f=i?.[n(1137)]||pe[n(905)],s=a?.[n(1137)]||pe[n(1880)],u=xn(t,i,f),d=xn(o,a,s);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:f,targetPosition:s}}function ma(e){const n=c;if(!e)return null;const t=[],o=[];for(const x of e)x[n(737)]=x.width??1,x.height=x.height??1,x[n(893)]===n(1630)?t.push(x):x[n(893)]===n(1385)&&o[n(1955)](x);return{source:t,target:o}}function xn(e,n,t=pe[c(771)],o=!1){const x=c,r=(n?.x??0)+e[x(620)][x(745)].x,i=(n?.y??0)+e.internals.positionAbsolute.y,{width:a,height:f}=n??I0(e);if(o)return{x:r+a/2,y:i+f/2};switch(n?.[x(1137)]??t){case pe.Top:return{x:r+a/2,y:i};case pe[x(888)]:return{x:r+a,y:i+f/2};case pe[x(905)]:return{x:r+a/2,y:i+f};case pe[x(771)]:return{x:r,y:i+f/2}}}function ba(e,n){const t=c;return e&&(n?e[t(1682)](o=>o.id===n):e[0])||null}function fo(e,n){const t=c;return e?typeof e===t(1516)?e:""+(n?n+"__":"")+Object[t(859)](e).sort()[t(1186)](x=>x+"="+e[x])[t(1339)]("&"):""}function Y2(e,{id:n,defaultColor:t,defaultMarkerStart:o,defaultMarkerEnd:x}){const r=c,i=new Set;return e[r(1906)]((a,f)=>{const s=r;return[f[s(1741)]||o,f[s(1535)]||x][s(1956)](u=>{const d=s;if(u&&typeof u===d(448)){const h=fo(u,n);!i[d(806)](h)&&(a.push({id:h,color:u[d(1822)]||t,...u}),i[d(1742)](h))}}),a},[])[r(253)]((a,f)=>a.id[r(716)](f.id))}const va=1e3,U2=10,uo={nodeOrigin:[0,0],nodeExtent:Fn,elevateNodesOnSelect:!0,zIndexMode:c(1010),defaults:{}},O2={...uo,checkEquality:!0};function ho(e,n){const t={...e};for(const o in n)n[o]!==void 0&&(t[o]=n[o]);return t}function G2(e,n,t){const o=c,x=ho(uo,t);for(const r of e.values())if(r[o(1085)])mo(r,e,n,x);else{const i=$n(r,x[o(1193)]),a=Bn(r[o(403)])?r.extent:x[o(1350)],f=tn(i,a,I0(r));r[o(620)][o(745)]=f}}function H2(e,n){const t=c;if(!e[t(1104)])return e[t(701)]?n?.internals.handleBounds:void 0;const o=[],x=[];for(const r of e[t(1104)]){const i={id:r.id,width:r[t(737)]??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r[t(1137)],type:r[t(893)]};r.type===t(1630)?o[t(1955)](i):r.type===t(1385)&&x[t(1955)](i)}return{source:o,target:x}}function go(e){return e===c(436)}function yo(e,n,t,o={}){const x=c,r=ho(O2,o),i={i:0},a=new Map(n),f=r?.[x(1632)]&&!go(r[x(198)])?va:0;let s=e[x(461)]>0,u=!1;n.clear(),t[x(767)]();for(const d of e){let h=a[x(1280)](d.id);if(r[x(917)]&&d===h?.[x(620)][x(1580)])n.set(d.id,h);else{const y=$n(d,r.nodeOrigin),v=Bn(d[x(403)])?d[x(403)]:r[x(1350)],g=tn(y,v,I0(d));h={...r[x(434)],...d,measured:{width:d.measured?.width,height:d[x(701)]?.[x(522)]},internals:{positionAbsolute:g,handleBounds:H2(d,h),z:wa(d,f,r.zIndexMode),userNode:d}},n[x(1676)](d.id,h)}(h[x(701)]===void 0||h[x(701)][x(737)]===void 0||h[x(701)].height===void 0)&&!h[x(556)]&&(s=!1),d[x(1085)]&&mo(h,n,t,o,i),u||=d[x(1477)]??!1}return{nodesInitialized:s,hasSelectedNodes:u}}function T2(e,n){const t=c;if(!e[t(1085)])return;const o=n[t(1280)](e[t(1085)]);o?o[t(1676)](e.id,e):n[t(1676)](e[t(1085)],new Map([[e.id,e]]))}function mo(e,n,t,o,x){const r=c,{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:f,zIndexMode:s}=ho(uo,o),u=e[r(1085)],d=n[r(1280)](u);if(!d){console.warn("Parent node "+u+r(193));return}T2(e,t),x&&!d[r(1085)]&&d[r(620)].rootParentIndex===void 0&&s===r(1937)&&(d[r(620)][r(555)]=++x.i,d.internals.z=d[r(620)].z+x.i*U2),x&&d[r(620)].rootParentIndex!==void 0&&(x.i=d[r(620)][r(555)]);const h=i&&!go(s)?va:0,{x:y,y:v,z:g}=V2(e,d,a,f,h,s),{positionAbsolute:w}=e[r(620)],M=y!==w.x||v!==w.y;(M||g!==e[r(620)].z)&&n[r(1676)](e.id,{...e,internals:{...e[r(620)],positionAbsolute:M?{x:y,y:v}:w,z:g}})}function wa(e,n,t){const o=c,x=y0(e[o(537)])?e[o(537)]:0;return go(t)?x:x+(e.selected?n:0)}function V2(e,n,t,o,x,r){const i=c,{x:a,y:f}=n.internals[i(745)],s=I0(e),u=$n(e,t),d=Bn(e.extent)?tn(u,e[i(403)],s):u;let h=tn({x:a+d.x,y:f+d.y},o,s);e.extent===i(1115)&&(h=Ji(h,s,n));const y=wa(e,x,r),v=n.internals.z??0;return{x:h.x,y:h.y,z:v>=y?v+1:y}}function bo(e,n,t,o=[0,0]){const x=c,r=[],i=new Map;for(const a of e){const f=n[x(1280)](a[x(1085)]);if(!f)continue;const s=i[x(1280)](a[x(1085)])?.[x(1270)]??Cn(f),u=Qi(s,a[x(1761)]);i.set(a.parentId,{expandedRect:u,parent:f})}return i[x(613)]>0&&i[x(1956)](({expandedRect:a,parent:f},s)=>{const u=x,d=f.internals[u(745)],h=I0(f),y=f[u(1233)]??o,v=a.x<d.x?Math[u(1263)](Math.abs(d.x-a.x)):0,g=a.y<d.y?Math[u(1263)](Math[u(1016)](d.y-a.y)):0,w=Math[u(630)](h[u(737)],Math.round(a[u(737)])),M=Math[u(630)](h[u(522)],Math[u(1263)](a[u(522)])),b=(w-h[u(737)])*y[0],m=(M-h[u(522)])*y[1];(v>0||g>0||b||m)&&(r.push({id:s,type:"position",position:{x:f[u(1137)].x-v+b,y:f[u(1137)].y-g+m}}),t.get(s)?.[u(1956)](z=>{const p=u;!e[p(540)](S=>S.id===z.id)&&r[p(1955)]({id:z.id,type:p(1137),position:{x:z[p(1137)].x+v,y:z[p(1137)].y+g}})})),(h[u(737)]<a[u(737)]||h.height<a[u(522)]||v||g)&&r[u(1955)]({id:s,type:u(275),setAttributes:!0,dimensions:{width:w+(v?y[0]*v-b:0),height:M+(g?y[1]*g-m:0)}})}),r}function q2(e,n,t,o,x,r,i){const a=c,f=o?.querySelector(a(1588));let s=!1;if(!f)return{changes:[],updatedInternals:s};const u=[],d=window[a(831)](f),{m22:h}=new window[a(1702)](d[a(1225)]),y=[];for(const v of e[a(1852)]()){const g=n.get(v.id);if(!g)continue;if(g[a(556)]){n.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),s=!0;continue}const w=so(v.nodeElement),M=g.measured[a(737)]!==w[a(737)]||g[a(701)].height!==w[a(522)];if(!!(w[a(737)]&&w[a(522)]&&(M||!g.internals[a(569)]||v[a(1498)]))){const m=v.nodeElement.getBoundingClientRect(),z=Bn(g[a(403)])?g.extent:r;let{positionAbsolute:p}=g[a(620)];g[a(1085)]&&g[a(403)]==="parent"?p=Ji(p,w,n[a(1280)](g[a(1085)])):z&&(p=tn(p,z,w));const S={...g,measured:w,internals:{...g[a(620)],positionAbsolute:p,handleBounds:{source:aa(a(1630),v[a(1174)],m,h,g.id),target:aa(a(1385),v.nodeElement,m,h,g.id)}}};n[a(1676)](g.id,S),g[a(1085)]&&mo(S,n,t,{nodeOrigin:x,zIndexMode:i}),s=!0,M&&(u.push({id:g.id,type:a(275),dimensions:w}),g[a(1889)]&&g[a(1085)]&&y.push({id:g.id,parentId:g[a(1085)],rect:Cn(S,x)}))}}if(y[a(461)]>0){const v=bo(y,n,t,x);u[a(1955)](...v)}return{changes:u,updatedInternals:s}}async function W2({delta:e,panZoom:n,transform:t,translateExtent:o,width:x,height:r}){const i=c;if(!n||!e.x&&!e.y)return Promise[i(943)](!1);const a=await n[i(1715)]({x:t[0]+e.x,y:t[1]+e.y,zoom:t[2]},[[0,0],[x,r]],o),f=!!a&&(a.x!==t[0]||a.y!==t[1]||a.k!==t[2]);return Promise.resolve(f)}function pa(e,n,t,o,x,r){const i=c;let a=x;const f=o[i(1280)](a)||new Map;o[i(1676)](a,f[i(1676)](t,n)),a=x+"-"+e;const s=o[i(1280)](a)||new Map;if(o[i(1676)](a,s[i(1676)](t,n)),r){a=x+"-"+e+"-"+r;const u=o[i(1280)](a)||new Map;o.set(a,u[i(1676)](t,n))}}function za(e,n,t){const o=c;e.clear(),n[o(767)]();for(const x of t){const{source:r,target:i,sourceHandle:a=null,targetHandle:f=null}=x,s={edgeId:x.id,source:r,target:i,sourceHandle:a,targetHandle:f},u=r+"-"+a+"--"+i+"-"+f,d=i+"-"+f+"--"+r+"-"+a;pa(o(1630),s,d,e,r,a),pa(o(1385),s,u,e,i,f),n[o(1676)](x.id,x)}}function Ca(e,n){const t=c;if(!e.parentId)return!1;const o=n[t(1280)](e[t(1085)]);return o?o[t(1477)]?!0:Ca(o,n):!1}function Ma(e,n,t){let o=e;do{if(o?.matches?.(n))return!0;if(o===t)return!1;o=o?.parentElement}while(o);return!1}function X2(e,n,t,o){const x=c,r=new Map;for(const[i,a]of e)if((a[x(1477)]||a.id===o)&&(!a[x(1085)]||!Ca(a,e))&&(a[x(1573)]||n&&typeof a.draggable===x(1482))){const f=e[x(1280)](i);f&&r[x(1676)](i,{id:i,position:f[x(1137)]||{x:0,y:0},distance:{x:t.x-f[x(620)][x(745)].x,y:t.y-f[x(620)][x(745)].y},extent:f[x(403)],parentId:f[x(1085)],origin:f.origin,expandParent:f[x(1889)],internals:{positionAbsolute:f.internals[x(745)]||{x:0,y:0}},measured:{width:f.measured.width??0,height:f[x(701)].height??0}})}return r}function vo({nodeId:e,dragItems:n,nodeLookup:t,dragging:o=!0}){const x=c,r=[];for(const[a,f]of n){const s=t[x(1280)](a)?.internals[x(1580)];s&&r[x(1955)]({...s,position:f.position,dragging:o})}if(!e)return[r[0],r];const i=t.get(e)?.[x(620)][x(1580)];return[i?{...i,position:n[x(1280)](e)?.[x(1137)]||i[x(1137)],dragging:o}:r[0],r]}function K2({dragItems:e,snapGrid:n,x:t,y:o}){const x=c,r=e.values()[x(597)]()[x(699)];if(!r)return null;const i={x:t-r.distance.x,y:o-r[x(1562)].y},a=tt(i,n);return{x:a.x-i.x,y:a.y-i.y}}function Z2({onNodeMouseDown:e,getStoreItems:n,onDragStart:t,onDrag:o,onDragStop:x}){let r={x:null,y:null},i=0,a=new Map,f=!1,s={x:0,y:0},u=null,d=!1,h=null,y=!1,v=!1,g=null;function w({noDragClassName:b,handleSelector:m,domNode:z,isSelectable:p,nodeId:S,nodeClickDistance:O=0}){const G=_0x1d61;h=i0(z);function q({x:X,y:H}){const N=_0x1d61,{nodeLookup:B,nodeExtent:D,snapGrid:j,snapToGrid:U,nodeOrigin:k,onNodeDrag:R,onSelectionDrag:_,onError:J,updateNodePositions:xe}=n();r={x:X,y:H};let oe=!1;const ce=a[N(613)]>1,ue=ce&&D?ao(et(a)):null,me=ce&&U?K2({dragItems:a,snapGrid:j,x:X,y:H}):null;for(const[se,F]of a){if(!B[N(806)](se))continue;let le={x:X-F[N(1562)].x,y:H-F[N(1562)].y};U&&(le=me?{x:Math.round(le.x+me.x),y:Math[N(1263)](le.y+me.y)}:tt(le,j));let de=null;if(ce&&D&&!F.extent&&ue){const{positionAbsolute:Z}=F[N(620)],ee=Z.x-ue.x+D[0][0],te=Z.x+F[N(701)].width-ue.x2+D[1][0],W=Z.y-ue.y+D[0][1],re=Z.y+F[N(701)][N(522)]-ue.y2+D[1][1];de=[[ee,W],[te,re]]}const{position:Y,positionAbsolute:I}=Ri({nodeId:se,nextPosition:le,nodeLookup:B,nodeExtent:de||D,nodeOrigin:k,onError:J});oe=oe||F[N(1137)].x!==Y.x||F[N(1137)].y!==Y.y,F[N(1137)]=Y,F[N(620)][N(745)]=I}if(v=v||oe,!!oe&&(xe(a,!0),g&&(o||R||!S&&_))){const[se,F]=vo({nodeId:S,dragItems:a,nodeLookup:B});o?.(g,a,se,F),R?.(g,se,F),!S&&_?.(g,F)}}async function E(){if(!u)return;const{transform:X,panBy:H,autoPanSpeed:N,autoPanOnNodeDrag:B}=n();if(!B){f=!1,cancelAnimationFrame(i);return}const[D,j]=Fi(s,u,N);(D!==0||j!==0)&&(r.x=(r.x??0)-D/X[2],r.y=(r.y??0)-j/X[2],await H({x:D,y:j})&&q(r)),i=requestAnimationFrame(E)}function V(X){const H=_0x1d61,{nodeLookup:N,multiSelectionActive:B,nodesDraggable:D,transform:j,snapGrid:U,snapToGrid:k,selectNodesOnDrag:R,onNodeDragStart:_,onSelectionDragStart:J,unselectNodesAndEdges:xe}=n();d=!0,(!R||!p)&&!B&&S&&!N[H(1280)](S)?.[H(1477)]&&xe(),p&&R&&S&&e?.(S);const oe=rt(X.sourceEvent,{transform:j,snapGrid:U,snapToGrid:k,containerBounds:u});if(r=oe,a=X2(N,D,oe,S),a[H(613)]>0&&(t||_||!S&&J)){const[ce,ue]=vo({nodeId:S,dragItems:a,nodeLookup:N});t?.(X[H(1405)],a,ce,ue),_?.(X[H(1405)],ce,ue),!S&&J?.(X.sourceEvent,ue)}}const T=fi()[G(284)](O).on(G(916),X=>{const H=G,{domNode:N,nodeDragThreshold:B,transform:D,snapGrid:j,snapToGrid:U}=n();u=N?.[H(1593)]()||null,y=!1,v=!1,g=X.sourceEvent,B===0&&V(X),r=rt(X[H(1405)],{transform:D,snapGrid:j,snapToGrid:U,containerBounds:u}),s=m0(X[H(1405)],u)}).on("drag",X=>{const H=G,{autoPanOnNodeDrag:N,transform:B,snapGrid:D,snapToGrid:j,nodeDragThreshold:U,nodeLookup:k}=n(),R=rt(X[H(1405)],{transform:B,snapGrid:D,snapToGrid:j,containerBounds:u});if(g=X[H(1405)],(X.sourceEvent[H(893)]===H(165)&&X[H(1405)][H(175)][H(461)]>1||S&&!k[H(806)](S))&&(y=!0),!y){if(!f&&N&&d&&(f=!0,E()),!d){const _=m0(X[H(1405)],u),J=_.x-s.x,xe=_.y-s.y;Math[H(1127)](J*J+xe*xe)>U&&V(X)}(r.x!==R[H(753)]||r.y!==R[H(456)])&&a&&d&&(s=m0(X.sourceEvent,u),q(R))}}).on(G(306),X=>{const H=G;if(!(!d||y)&&(f=!1,d=!1,cancelAnimationFrame(i),a.size>0)){const{nodeLookup:N,updateNodePositions:B,onNodeDragStop:D,onSelectionDragStop:j}=n();if(v&&(B(a,!1),v=!1),x||D||!S&&j){const[U,k]=vo({nodeId:S,dragItems:a,nodeLookup:N,dragging:!1});x?.(X[H(1405)],a,U,k),D?.(X[H(1405)],U,k),!S&&j?.(X.sourceEvent,k)}}}).filter(X=>{const H=G,N=X.target;return!X[H(1729)]&&(!b||!Ma(N,"."+b,z))&&(!m||Ma(N,m,z))});h[G(573)](T)}function M(){h?.on(".drag",null)}return{update:w,destroy:M}}function R2(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(1852)]())nt(r,Cn(i))>0&&x[o(1955)](i);return x}const J2=250;function _2(e,n,t,o){const x=c;let r=[],i=1/0;const a=R2(e,t,n+J2);for(const f of a){const s=[...f.internals.handleBounds?.[x(1630)]??[],...f[x(620)][x(569)]?.[x(1385)]??[]];for(const u of s){if(o[x(875)]===u.nodeId&&o[x(893)]===u[x(893)]&&o.id===u.id)continue;const{x:d,y:h}=xn(f,u,u[x(1137)],!0),y=Math[x(1127)](Math[x(1952)](d-e.x,2)+Math[x(1952)](h-e.y,2));y>n||(y<i?(r=[{...u,x:d,y:h}],i=y):y===i&&r.push({...u,x:d,y:h}))}}if(!r[x(461)])return null;if(r[x(461)]>1){const f=o[x(893)]==="source"?x(1385):"source";return r[x(1682)](s=>s.type===f)??r[0]}return r[0]}function Ba(e,n,t,o,x,r=!1){const i=c,a=o[i(1280)](e);if(!a)return null;const f=x===i(1255)?a[i(620)].handleBounds?.[n]:[...a[i(620)].handleBounds?.[i(1630)]??[],...a.internals.handleBounds?.[i(1385)]??[]],s=(t?f?.find(u=>u.id===t):f?.[0])??null;return s&&r?{...s,...xn(a,s,s[i(1137)],!0)}:s}function Da(e,n){const t=c;return e||(n?.[t(1056)][t(503)]("target")?t(1385):n?.[t(1056)][t(503)](t(1630))?"source":null)}function F2(e,n){let t=null;return n?t=!0:e&&!n&&(t=!1),t}const La=()=>!0;function Q2(e,{connectionMode:n,connectionRadius:t,handleId:o,nodeId:x,edgeUpdaterType:r,isTarget:i,domNode:a,nodeLookup:f,lib:s,autoPanOnConnect:u,flowId:d,panBy:h,cancelConnection:y,onConnectStart:v,onConnect:g,onConnectEnd:w,isValidConnection:M=La,onReconnectEnd:b,updateConnection:m,getTransform:z,getFromHandle:p,autoPanSpeed:S,dragThreshold:O=1,handleDomNode:G}){const q=c,E=oa(e.target);let V=0,T;const{x:X,y:H}=m0(e),N=Da(r,G),B=a?.[q(1593)]();let D=!1;if(!B||!N)return;const j=Ba(x,N,o,f,n);if(!j)return;let U=m0(e,B),k=!1,R=null,_=!1,J=null;function xe(){if(!u||!B)return;const[de,Y]=Fi(U,B,S);h({x:de,y:Y}),V=requestAnimationFrame(xe)}const oe={...j,nodeId:x,type:N,position:j.position},ce=f[q(1280)](x);let me={inProgress:!0,isValid:null,from:xn(ce,oe,pe[q(771)],!0),fromHandle:oe,fromPosition:oe[q(1137)],fromNode:ce,to:U,toHandle:null,toPosition:Xi[oe.position],toNode:null,pointer:U};function se(){D=!0,m(me),v?.(e,{nodeId:x,handleId:o,handleType:N})}O===0&&se();function F(de){const Y=q;if(!D){const{x:re,y:be}=m0(de),ve=re-X,De=be-H;if(!(ve*ve+De*De>O*O))return;se()}if(!p()||!oe){le(de);return}const I=z();U=m0(de,B),T=_2(xt(U,I,!1,[1,1]),t,f,oe),!k&&(xe(),k=!0);const Z=Na(de,{handle:T,connectionMode:n,fromNodeId:x,fromHandleId:o,fromType:i?Y(1385):"source",isValidConnection:M,doc:E,lib:s,flowId:d,nodeLookup:f});J=Z[Y(1746)],R=Z[Y(842)],_=F2(!!T,Z.isValid);const ee=f[Y(1280)](x),te=ee?xn(ee,oe,pe.Left,!0):me[Y(598)],W={...me,from:te,isValid:_,to:Z[Y(1371)]&&_?Qt({x:Z[Y(1371)].x,y:Z[Y(1371)].y},I):U,toHandle:Z[Y(1371)],toPosition:_&&Z.toHandle?Z[Y(1371)][Y(1137)]:Xi[oe[Y(1137)]],toNode:Z.toHandle?f.get(Z[Y(1371)][Y(875)]):null,pointer:U};m(W),me=W}function le(de){const Y=q;if(!(Y(175)in de&&de[Y(175)][Y(461)]>0)){if(D){(T||J)&&R&&_&&g?.(R);const{inProgress:I,...Z}=me,ee={...Z,toPosition:me[Y(1371)]?me[Y(719)]:null};w?.(de,ee),r&&b?.(de,ee)}y(),cancelAnimationFrame(V),k=!1,_=!1,R=null,J=null,E[Y(1196)](Y(1464),F),E[Y(1196)](Y(1392),le),E[Y(1196)]("touchmove",F),E[Y(1196)](Y(452),le)}}E[q(1018)](q(1464),F),E[q(1018)]("mouseup",le),E[q(1018)](q(165),F),E[q(1018)](q(452),le)}function Na(e,{handle:n,connectionMode:t,fromNodeId:o,fromHandleId:x,fromType:r,doc:i,lib:a,flowId:f,isValidConnection:s=La,nodeLookup:u}){const d=c,h=r===d(1385),y=n?i[d(881)]("."+a+d(1776)+f+"-"+n?.[d(875)]+"-"+n?.id+"-"+n?.type+'"]'):null,{x:v,y:g}=m0(e),w=i[d(1071)](v,g),M=w?.[d(1056)][d(503)](a+d(996))?w:y,b={handleDomNode:M,isValid:!1,connection:null,toHandle:null};if(M){const m=Da(void 0,M),z=M.getAttribute(d(986)),p=M[d(1432)]("data-handleid"),S=M[d(1056)][d(503)](d(1827)),O=M[d(1056)].contains("connectableend");if(!z||!m)return b;const G={source:h?z:o,sourceHandle:h?p:x,target:h?o:z,targetHandle:h?x:p};b[d(842)]=G;const q=S&&O,E=q&&(t===pn.Strict?h&&m===d(1630)||!h&&m===d(1385):z!==o||p!==x);b[d(785)]=E&&s(G),b.toHandle=Ba(z,m,p,u,t,!0)}return b}const wo={onPointerDown:Q2,isValid:Na};function $2({domNode:e,panZoom:n,getTransform:t,getViewScale:o}){const x=i0(e);function r({translateExtent:a,width:f,height:s,zoomStep:u=1,pannable:d=!0,zoomable:h=!0,inversePan:y=!1}){const v=_0x1d61,g=z=>{const p=_0x1d61;if(z[p(1405)][p(893)]!==p(469)||!n)return;const S=t(),O=z[p(1405)][p(1374)]&&ot()?10:1,G=-z[p(1405)].deltaY*(z[p(1405)][p(1187)]===1?.05:z.sourceEvent[p(1187)]?1:.002)*u,q=S[2]*Math[p(1952)](2,G*O);n[p(1038)](q)};let w=[0,0];const M=z=>{const p=_0x1d61;(z[p(1405)][p(893)]===p(776)||z.sourceEvent[p(893)]==="touchstart")&&(w=[z[p(1405)][p(1089)]??z[p(1405)][p(175)][0][p(1089)],z.sourceEvent[p(1450)]??z.sourceEvent[p(175)][0][p(1450)]])},b=z=>{const p=_0x1d61,S=t();if(z[p(1405)].type!=="mousemove"&&z.sourceEvent[p(893)]!==p(165)||!n)return;const O=[z.sourceEvent.clientX??z[p(1405)][p(175)][0][p(1089)],z[p(1405)][p(1450)]??z[p(1405)][p(175)][0].clientY],G=[O[0]-w[0],O[1]-w[1]];w=O;const q=o()*Math.max(S[2],Math[p(922)](S[2]))*(y?-1:1),E={x:S[0]-G[0]*q,y:S[1]-G[1]*q},V=[[0,0],[f,s]];n[p(1715)]({x:E.x,y:E.y,zoom:S[2]},V,a)},m=Ti().on(v(916),M).on(v(441),d?b:null).on(v(1484),h?g:null);x.call(m,{})}function i(){const a=_0x1d61;x.on(a(441),null)}return{update:r,destroy:i,pointer:d0}}const ex=e=>({x:e.x,y:e.y,zoom:e.k}),po=({x:e,y:n,zoom:t})=>Zt.translate(e,n)[c(442)](t),Dn=(e,n)=>e[c(1385)][c(809)]("."+n),Sa=(e,n)=>n===2&&Array.isArray(e)&&e[c(1486)](2),eh=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,zo=(e,n=0,t=eh,o=()=>{})=>{const x=c,r=typeof n===x(663)&&n>0;return!r&&o(),r?e[x(1713)]()[x(238)](n).ease(t).on("end",o):e},ka=e=>{const n=c,t=e[n(1374)]&&ot()?10:1;return-e[n(1139)]*(e[n(1187)]===1?.05:e[n(1187)]?1:.002)*t};function nh({zoomPanValues:e,noWheelClassName:n,d3Selection:t,d3Zoom:o,panOnScrollMode:x,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:a,onPanZoom:f,onPanZoomEnd:s}){return u=>{const d=_0x1d61;if(Dn(u,n))return u[d(1374)]&&u[d(1061)](),!1;u[d(1061)](),u[d(381)]();const h=t[d(1245)](d(1025)).k||1;if(u.ctrlKey&&i){const M=d0(u),b=ka(u),m=h*Math[d(1952)](2,b);o.scaleTo(t,m,M,u);return}const y=u[d(1187)]===1?20:1;let v=x===nn[d(848)]?0:u[d(834)]*y,g=x===nn[d(1910)]?0:u.deltaY*y;!ot()&&u[d(1117)]&&x!==nn.Vertical&&(v=u.deltaY*y,g=0),o[d(1705)](t,-(v/h)*r,-(g/h)*r,{internal:!0});const w=ex(t[d(1245)]("__zoom"));clearTimeout(e[d(865)]),e[d(1435)]?(f?.(u,w),e.panScrollTimeout=setTimeout(()=>{s?.(u,w),e.isPanScrolling=!1},150)):(e[d(1435)]=!0,a?.(u,w))}}function th({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:t}){return function(o,x){const r=_0x1d61,i=o[r(893)]===r(469),a=!n&&i&&!o.ctrlKey,f=Dn(o,e);if(o[r(1374)]&&i&&f&&o[r(1061)](),a||f)return null;o[r(1061)](),t[r(573)](this,o,x)}}function xh({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:t}){return o=>{const x=_0x1d61;if(o.sourceEvent?.[x(1520)])return;const r=ex(o[x(1225)]);e[x(1528)]=o.sourceEvent?.[x(1729)]||0,e.isZoomingOrPanning=!0,e[x(1826)]=r,o[x(1405)]?.[x(893)]===x(776)&&n(!0),t&&t?.(o[x(1405)],r)}}function oh({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:t,onTransformChange:o,onPanZoom:x}){return r=>{const i=_0x1d61;e[i(394)]=!!(t&&Sa(n,e[i(1528)]??0)),!r[i(1405)]?.[i(1348)]&&o([r[i(1225)].x,r[i(1225)].y,r[i(1225)].k]),x&&!r[i(1405)]?.internal&&x?.(r[i(1405)],ex(r[i(1225)]))}}function rh({zoomPanValues:e,panOnDrag:n,panOnScroll:t,onDraggingChange:o,onPanZoomEnd:x,onPaneContextMenu:r}){return i=>{const a=_0x1d61;if(!i[a(1405)]?.internal&&(e.isZoomingOrPanning=!1,r&&Sa(n,e[a(1528)]??0)&&!e[a(394)]&&i[a(1405)]&&r(i.sourceEvent),e.usedRightMouseButton=!1,o(!1),x)){const f=ex(i[a(1225)]);e.prevViewport=f,clearTimeout(e[a(1778)]),e[a(1778)]=setTimeout(()=>{x?.(i[a(1405)],f)},t?150:0)}}}function ih({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:t,panOnDrag:o,panOnScroll:x,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:a,noPanClassName:f,lib:s,connectionInProgress:u}){return d=>{const h=_0x1d61,y=e||n,v=t&&d[h(1374)],g=d.type==="wheel";if(d[h(1729)]===1&&d[h(893)]===h(776)&&(Dn(d,s+h(402))||Dn(d,s+h(1155))))return!0;if(!o&&!y&&!x&&!r&&!t||i||u&&!g||Dn(d,a)&&g||Dn(d,f)&&(!g||x&&g&&!e)||!t&&d[h(1374)]&&g)return!1;if(!t&&d[h(893)]===h(1402)&&d[h(175)]?.[h(461)]>1)return d[h(1061)](),!1;if(!y&&!x&&!v&&g||!o&&(d.type===h(776)||d[h(893)]==="touchstart")||Array.isArray(o)&&!o[h(1486)](d[h(1729)])&&d.type===h(776))return!1;const w=Array[h(1021)](o)&&o[h(1486)](d[h(1729)])||!d[h(1729)]||d.button<=1;return(!d.ctrlKey||g)&&w}}function ah({domNode:e,minZoom:n,maxZoom:t,translateExtent:o,viewport:x,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:a,onDraggingChange:f}){const s=c,u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},d=e[s(1593)](),h=Ti()[s(249)]([n,t])[s(1273)](o),y=i0(e)[s(573)](h);m({x:x.x,y:x.y,zoom:zn(x[s(441)],n,t)},[[0,0],[d.width,d[s(522)]]],o);const v=y.on(s(662)),g=y.on("dblclick.zoom");h.wheelDelta(ka);function w(T,X){const H=s;return y?new Promise(N=>{const B=_0x1d61;h?.interpolate(X?.[B(1284)]===B(1915)?Xn:Ut).transform(zo(y,X?.duration,X?.[B(1832)],()=>N(!0)),T)}):Promise[H(943)](!1)}function M({noWheelClassName:T,noPanClassName:X,onPaneContextMenu:H,userSelectionActive:N,panOnScroll:B,panOnDrag:D,panOnScrollMode:j,panOnScrollSpeed:U,preventScrolling:k,zoomOnPinch:R,zoomOnScroll:_,zoomOnDoubleClick:J,zoomActivationKeyPressed:xe,lib:oe,onTransformChange:ce,connectionInProgress:ue,paneClickDistance:me,selectionOnDrag:se}){const F=s;N&&!u[F(1549)]&&b();const le=B&&!xe&&!N;h.clickDistance(se?1/0:!y0(me)||me<0?0:me);const de=le?nh({zoomPanValues:u,noWheelClassName:T,d3Selection:y,d3Zoom:h,panOnScrollMode:j,panOnScrollSpeed:U,zoomOnPinch:R,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:a}):th({noWheelClassName:T,preventScrolling:k,d3ZoomHandler:v});if(y.on(F(662),de,{passive:!1}),!N){const I=xh({zoomPanValues:u,onDraggingChange:f,onPanZoomStart:i});h.on(F(916),I);const Z=oh({zoomPanValues:u,panOnDrag:D,onPaneContextMenu:!!H,onPanZoom:r,onTransformChange:ce});h.on("zoom",Z);const ee=rh({zoomPanValues:u,panOnDrag:D,panOnScroll:B,onPaneContextMenu:H,onPanZoomEnd:a,onDraggingChange:f});h.on("end",ee)}const Y=ih({zoomActivationKeyPressed:xe,panOnDrag:D,zoomOnScroll:_,panOnScroll:B,zoomOnDoubleClick:J,zoomOnPinch:R,userSelectionActive:N,noPanClassName:X,noWheelClassName:T,lib:oe,connectionInProgress:ue});h[F(1027)](Y),J?y.on(F(359),g):y.on(F(359),null)}function b(){const T=s;h.on(T(441),null)}async function m(T,X,H){const N=po(T),B=h?.constrain()(N,X,H);return B&&await w(B),new Promise(D=>D(B))}async function z(T,X){const H=po(T);return await w(H,X),new Promise(N=>N(H))}function p(T){const X=s;if(y){const H=po(T),N=y.property(X(1025));(N.k!==T[X(441)]||N.x!==T.x||N.y!==T.y)&&h?.[X(1225)](y,H,null,{sync:!0})}}function S(){const T=y?Gi(y.node()):{x:0,y:0,k:1};return{x:T.x,y:T.y,zoom:T.k}}function O(T,X){const H=s;return y?new Promise(N=>{const B=_0x1d61;h?.[B(1284)](X?.[B(1284)]===B(1915)?Xn:Ut)[B(1038)](zo(y,X?.[B(238)],X?.[B(1832)],()=>N(!0)),T)}):Promise[H(943)](!1)}function G(T,X){const H=s;return y?new Promise(N=>{const B=_0x1d61;h?.[B(1284)](X?.[B(1284)]===B(1915)?Xn:Ut)[B(898)](zo(y,X?.[B(238)],X?.[B(1832)],()=>N(!0)),T)}):Promise[H(943)](!1)}function q(T){h?.[s(249)](T)}function E(T){h?.[s(1273)](T)}function V(T){const X=s,H=!y0(T)||T<0?0:T;h?.[X(284)](H)}return{update:M,destroy:b,setViewport:z,setViewportConstrained:m,getViewport:S,scaleTo:O,scaleBy:G,setScaleExtent:q,setTranslateExtent:E,syncViewport:p,setClickDistance:V}}var Ln;(function(e){const n=c;e[n(904)]=n(1036),e[n(460)]=n(975)})(Ln||(Ln={}));function ch({width:e,prevWidth:n,height:t,prevHeight:o,affectsX:x,affectsY:r}){const i=e-n,a=t-o,f=[i>0?1:i<0?-1:0,a>0?1:a<0?-1:0];return i&&x&&(f[0]=f[0]*-1),a&&r&&(f[1]=f[1]*-1),f}function Pa(e){const n=c,t=e.includes(n(1470))||e[n(1486)]("left"),o=e[n(1486)](n(464))||e[n(1486)](n(327)),x=e[n(1486)](n(548)),r=e[n(1486)](n(327));return{isHorizontal:t,isVertical:o,affectsX:x,affectsY:r}}function G0(e,n){return Math[c(630)](0,n-e)}function H0(e,n){return Math.max(0,e-n)}function nx(e,n,t){return Math[c(630)](0,n-e,e-t)}function Ia(e,n){return e?!n:n}function sh(e,n,t,o,x,r,i,a){const f=c;let{affectsX:s,affectsY:u}=n;const{isHorizontal:d,isVertical:h}=n,y=d&&h,{xSnapped:v,ySnapped:g}=t,{minWidth:w,maxWidth:M,minHeight:b,maxHeight:m}=o,{x:z,y:p,width:S,height:O,aspectRatio:G}=e;let q=Math.floor(d?v-e[f(1449)]:0),E=Math.floor(h?g-e.pointerY:0);const V=S+(s?-q:q),T=O+(u?-E:E),X=-r[0]*S,H=-r[1]*O;let N=nx(V,w,M),B=nx(T,b,m);if(i){let U=0,k=0;s&&q<0?U=G0(z+q+X,i[0][0]):!s&&q>0&&(U=H0(z+V+X,i[1][0])),u&&E<0?k=G0(p+E+H,i[0][1]):!u&&E>0&&(k=H0(p+T+H,i[1][1])),N=Math[f(630)](N,U),B=Math[f(630)](B,k)}if(a){let U=0,k=0;s&&q>0?U=H0(z+q,a[0][0]):!s&&q<0&&(U=G0(z+V,a[1][0])),u&&E>0?k=H0(p+E,a[0][1]):!u&&E<0&&(k=G0(p+T,a[1][1])),N=Math[f(630)](N,U),B=Math[f(630)](B,k)}if(x){if(d){const U=nx(V/G,b,m)*G;if(N=Math.max(N,U),i){let k=0;!s&&!u||s&&!u&&y?k=H0(p+H+V/G,i[1][1])*G:k=G0(p+H+(s?q:-q)/G,i[0][1])*G,N=Math[f(630)](N,k)}if(a){let k=0;!s&&!u||s&&!u&&y?k=G0(p+V/G,a[1][1])*G:k=H0(p+(s?q:-q)/G,a[0][1])*G,N=Math.max(N,k)}}if(h){const U=nx(T*G,w,M)/G;if(B=Math.max(B,U),i){let k=0;!s&&!u||u&&!s&&y?k=H0(z+T*G+X,i[1][0])/G:k=G0(z+(u?E:-E)*G+X,i[0][0])/G,B=Math.max(B,k)}if(a){let k=0;!s&&!u||u&&!s&&y?k=G0(z+T*G,a[1][0])/G:k=H0(z+(u?E:-E)*G,a[0][0])/G,B=Math.max(B,k)}}}E=E+(E<0?B:-B),q=q+(q<0?N:-N),x&&(y?V>T*G?E=(Ia(s,u)?-q:q)/G:q=(Ia(s,u)?-E:E)*G:d?(E=q/G,u=s):(q=E*G,s=u));const D=s?z+q:z,j=u?p+E:p;return{width:S+(s?-q:q),height:O+(u?-E:E),x:r[0]*q*(s?-1:1)+D,y:r[1]*E*(u?-1:1)+j}}const Aa={width:0,height:0,x:0,y:0},lh={...Aa,pointerX:0,pointerY:0,aspectRatio:1};function fh(e){const n=c;return[[0,0],[e[n(701)][n(737)],e[n(701)][n(522)]]]}function uh(e,n,t){const o=c,x=n[o(1137)].x+e[o(1137)].x,r=n[o(1137)].y+e[o(1137)].y,i=e[o(701)][o(737)]??0,a=e[o(701)].height??0,f=t[0]*i,s=t[1]*a;return[[x-f,r-s],[x+i-f,r+a-s]]}function dh({domNode:e,nodeId:n,getStoreItems:t,onChange:o,onEnd:x}){const r=c,i=i0(e);let a={controlDirection:Pa(r(973)),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number[r(1495)]},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:u,boundaries:d,keepAspectRatio:h,resizeDirection:y,onResizeStart:v,onResize:g,onResizeEnd:w,shouldResize:M}){const b=r;let m={...Aa},z={...lh};a={boundaries:d,resizeDirection:y,keepAspectRatio:h,controlDirection:Pa(u)};let p,S=null,O=[],G,q,E,V=!1;const T=fi().on(b(916),X=>{const H=b,{nodeLookup:N,transform:B,snapGrid:D,snapToGrid:j,nodeOrigin:U,paneDomNode:k}=t();if(p=N.get(n),!p)return;S=k?.getBoundingClientRect()??null;const{xSnapped:R,ySnapped:_}=rt(X.sourceEvent,{transform:B,snapGrid:D,snapToGrid:j,containerBounds:S});m={width:p[H(701)].width??0,height:p[H(701)][H(522)]??0,x:p[H(1137)].x??0,y:p[H(1137)].y??0},z={...m,pointerX:R,pointerY:_,aspectRatio:m[H(737)]/m[H(522)]},G=void 0,p[H(1085)]&&(p.extent==="parent"||p[H(1889)])&&(G=N[H(1280)](p[H(1085)]),q=G&&p[H(403)]===H(1115)?fh(G):void 0),O=[],E=void 0;for(const[J,xe]of N)if(xe[H(1085)]===n&&(O.push({id:J,position:{...xe[H(1137)]},extent:xe[H(403)]}),xe[H(403)]==="parent"||xe[H(1889)])){const oe=uh(xe,p,xe[H(1233)]??U);E?E=[[Math[H(407)](oe[0][0],E[0][0]),Math.min(oe[0][1],E[0][1])],[Math[H(630)](oe[1][0],E[1][0]),Math.max(oe[1][1],E[1][1])]]:E=oe}v?.(X,{...m})}).on(b(928),X=>{const H=b,{transform:N,snapGrid:B,snapToGrid:D,nodeOrigin:j}=t(),U=rt(X.sourceEvent,{transform:N,snapGrid:B,snapToGrid:D,containerBounds:S}),k=[];if(!p)return;const{x:R,y:_,width:J,height:xe}=m,oe={},ce=p[H(1233)]??j,{width:ue,height:me,x:se,y:F}=sh(z,a[H(133)],U,a[H(577)],a[H(1347)],ce,q,E),le=ue!==J,de=me!==xe,Y=se!==R&&le,I=F!==_&&de;if(!Y&&!I&&!le&&!de)return;if((Y||I||ce[0]===1||ce[1]===1)&&(oe.x=Y?se:m.x,oe.y=I?F:m.y,m.x=oe.x,m.y=oe.y,O[H(461)]>0)){const W=se-R,re=F-_;for(const be of O)be.position={x:be[H(1137)].x-W+ce[0]*(ue-J),y:be[H(1137)].y-re+ce[1]*(me-xe)},k.push(be)}if((le||de)&&(oe[H(737)]=le&&(!a[H(902)]||a[H(902)]===H(1130))?ue:m[H(737)],oe[H(522)]=de&&(!a[H(902)]||a[H(902)]===H(486))?me:m[H(522)],m.width=oe[H(737)],m[H(522)]=oe[H(522)]),G&&p.expandParent){const W=ce[0]*(oe[H(737)]??0);oe.x&&oe.x<W&&(m.x=W,z.x=z.x-(oe.x-W));const re=ce[1]*(oe.height??0);oe.y&&oe.y<re&&(m.y=re,z.y=z.y-(oe.y-re))}const Z=ch({width:m[H(737)],prevWidth:J,height:m[H(522)],prevHeight:xe,affectsX:a[H(133)][H(1252)],affectsY:a[H(133)][H(1422)]}),ee={...m,direction:Z};M?.(X,ee)!==!1&&(V=!0,g?.(X,ee),o(oe,k))}).on(b(306),X=>{V&&(w?.(X,{...m}),x?.({...m}),V=!1)});i[b(573)](T)}function s(){const u=r;i.on(u(1143),null)}return{update:f,destroy:s}}var tx={exports:{}},Co={},xx={exports:{}},Mo={},Ea;function hh(){const e=c;if(Ea)return Mo;Ea=1;var n=L;function t(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var o=e(1719)===typeof Object.is?Object.is:t,x=n.useState,r=n.useEffect,i=n[e(214)],a=n.useDebugValue;function f(h,y){const v=e;var g=y(),w=x({inst:{value:g,getSnapshot:y}}),M=w[0][v(1260)],b=w[1];return i(function(){const m=v;M[m(699)]=g,M.getSnapshot=y,s(M)&&b({inst:M})},[h,g,y]),r(function(){return s(M)&&b({inst:M}),h(function(){s(M)&&b({inst:M})})},[h]),a(g),g}function s(h){const y=e;var v=h[y(1353)];h=h[y(699)];try{var g=v();return!o(h,g)}catch{return!0}}function u(h,y){return y()}var d=e(1482)===typeof window||e(1482)===typeof window[e(445)]||e(1482)===typeof window[e(445)].createElement?u:f;return Mo[e(1735)]=n[e(1735)]!==void 0?n[e(1735)]:d,Mo}var Bo={},ja;function gh(){return ja||(ja=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x1d61;function n(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){const w=_0x1d61;d||r.startTransition===void 0||(d=!0,console[w(1842)]("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var M=g();if(!h){var b=g();i(M,b)||(console[w(1842)](w(1938)),h=!0)}b=a({inst:{value:M,getSnapshot:g}});var m=b[0][w(1260)],z=b[1];return s(function(){const p=w;m[p(699)]=M,m[p(1353)]=g,o(m)&&z({inst:m})},[v,M,g]),f(function(){return o(m)&&z({inst:m}),v(function(){o(m)&&z({inst:m})})},[v]),u(M),M}function o(v){const g=_0x1d61;var w=v.getSnapshot;v=v[g(699)];try{var M=w();return!i(v,M)}catch{return!0}}function x(v,g){return g()}e(1482)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1719)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(1288)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(1288)](Error());var r=L,i=e(1719)===typeof Object.is?Object.is:n,a=r[e(1326)],f=r[e(553)],s=r.useLayoutEffect,u=r[e(867)],d=!1,h=!1,y=e(1482)===typeof window||e(1482)===typeof window.document||e(1482)===typeof window[e(445)][e(1830)]?x:t;Bo[e(1735)]=r[e(1735)]!==void 0?r.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&e(1719)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(234)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(234)](Error())})()),Bo}var Ya;function Ua(){const e=c;return Ya||(Ya=1,process.env.NODE_ENV==="production"?xx[e(942)]=hh():xx.exports=gh()),xx[e(942)]}var Oa;function yh(){const e=c;if(Oa)return Co;Oa=1;var n=L,t=Ua();function o(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var x=e(1719)===typeof Object.is?Object.is:o,r=t[e(1735)],i=n[e(619)],a=n[e(553)],f=n[e(1356)],s=n.useDebugValue;return Co[e(935)]=function(u,d,h,y,v){const g=e;var w=i(null);if(w[g(1890)]===null){var M={hasValue:!1,value:null};w.current=M}else M=w[g(1890)];w=f(function(){function m(G){const q=_0x1d61;if(!z){if(z=!0,p=G,G=y(G),v!==void 0&&M[q(1502)]){var E=M[q(699)];if(v(E,G))return S=E}return S=G}if(E=S,x(p,G))return E;var V=y(G);return v!==void 0&&v(E,V)?(p=G,E):(p=G,S=V)}var z=!1,p,S,O=h===void 0?null:h;return[function(){return m(d())},O===null?void 0:function(){return m(O())}]},[d,h,y,v]);var b=r(u,w[0],w[1]);return a(function(){const m=g;M[m(1502)]=!0,M.value=b},[b]),s(b),b},Co}var Do={},Ga;function mh(){return Ga||(Ga=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x1d61;function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}e(1482)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1719)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(1288)](Error());var t=L,o=Ua(),x=e(1719)===typeof Object.is?Object.is:n,r=o[e(1735)],i=t[e(619)],a=t.useEffect,f=t[e(1356)],s=t[e(867)];Do.useSyncExternalStoreWithSelector=function(u,d,h,y,v){const g=e;var w=i(null);if(w[g(1890)]===null){var M={hasValue:!1,value:null};w.current=M}else M=w[g(1890)];w=f(function(){function m(G){const q=_0x1d61;if(!z){if(z=!0,p=G,G=y(G),v!==void 0&&M[q(1502)]){var E=M[q(699)];if(v(E,G))return S=E}return S=G}if(E=S,x(p,G))return E;var V=y(G);return v!==void 0&&v(E,V)?(p=G,E):(p=G,S=V)}var z=!1,p,S,O=h===void 0?null:h;return[function(){return m(d())},O===null?void 0:function(){return m(O())}]},[d,h,y,v]);var b=r(u,w[0],w[1]);return a(function(){const m=g;M.hasValue=!0,M[m(699)]=b},[b]),s(b),b},e(1482)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1719)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(234)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(234)](Error())})()),Do}var Ha;function bh(){const e=c;return Ha?tx.exports:(Ha=1,process.env.NODE_ENV==="production"?tx[e(942)]=yh():tx[e(942)]=mh(),tx[e(942)])}var vh=bh();const wh=Pn(vh),ph={},Ta=e=>{let n;const t=new Set,o=(u,d)=>{const h=_0x1d61,y=typeof u===h(1719)?u(n):u;if(!Object.is(y,n)){const v=n;n=d??(typeof y!==h(448)||y===null)?y:Object[h(1841)]({},n,y),t[h(1956)](g=>g(n,v))}},x=()=>n,r=()=>s,i=u=>{const d=_0x1d61;return t[d(1742)](u),()=>t[d(579)](u)},a=()=>{const u=_0x1d61;(ph?u(1054):void 0)!==u(1054)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t[u(767)]()},f={setState:o,getState:x,getInitialState:r,subscribe:i,destroy:a},s=n=e(o,x,f);return f},zh=e=>e?Ta(e):Ta,{useDebugValue:Ch}=L,{useSyncExternalStoreWithSelector:Mh}=wh,Bh=e=>e;function Va(e,n=Bh,t){const o=c,x=Mh(e[o(811)],e[o(1772)],e.getServerState||e[o(1455)],n,t);return Ch(x),x}const qa=(e,n)=>{const t=c,o=zh(e),x=(r,i=n)=>Va(o,r,i);return Object[t(1841)](x,o),x},Dh=(e,n)=>e?qa(e,n):qa;function je(e,n){const t=c;if(Object.is(e,n))return!0;if(typeof e!==t(448)||e===null||typeof n!==t(448)||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n[t(613)])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(613)]!==n[t(613)])return!1;for(const x of e)if(!n[t(806)](x))return!1;return!0}const o=Object.keys(e);if(o[t(461)]!==Object[t(859)](n).length)return!1;for(const x of o)if(!Object[t(1319)][t(835)][t(573)](n,x)||!Object.is(e[x],n[x]))return!1;return!0}const ox=L[c(1738)](null),Lh=ox.Provider,Wa=a0[c(1452)]();function ke(e,n){const t=c,o=L[t(1372)](ox);if(o===null)throw new Error(Wa);return Va(o,e,n)}function Ye(){const e=c,n=L.useContext(ox);if(n===null)throw new Error(Wa);return L.useMemo(()=>({getState:n[e(1772)],setState:n.setState,subscribe:n.subscribe}),[n])}const Xa={display:c(245)},Nh={position:c(1365),width:1,height:1,margin:-1,border:0,padding:0,overflow:c(556),clip:c(1556),clipPath:c(1949)},Ka=c(1799),Za=c(1779),Sh=c(1489),kh=e=>e[c(190)],Ph=e=>e[c(510)];function Ih({rfId:e}){const n=c,t=ke(kh);return l.jsx("div",{id:Sh+"-"+e,"aria-live":n(1362),"aria-atomic":n(1293),style:Nh,children:t})}function Ah({rfId:e,disableKeyboardA11y:n}){const t=c,o=ke(Ph);return l[t(584)](l.Fragment,{children:[l.jsx(t(1517),{id:Ka+"-"+e,style:Xa,children:n?o[t(1261)]:o[t(1254)]}),l[t(1791)](t(1517),{id:Za+"-"+e,style:Xa,children:o[t(1093)]}),!n&&l.jsx(Ih,{rfId:e})]})}const rx=L[c(496)](({position:e=c(690),children:n,className:t,style:o,...x},r)=>{const i=c,a=(""+e)[i(440)]("-");return l.jsx(i(1517),{className:Ve([i(1341),t,...a]),style:o,ref:r,...x,children:n})});rx.displayName=c(1895);function Eh({proOptions:e,position:n=c(973)}){const t=c;return e?.[t(1170)]?null:l[t(1791)](rx,{position:n,className:t(644),"data-message":t(1801),children:l.jsx("a",{href:t(484),target:t(465),rel:t(519),"aria-label":t(991),children:t(821)})})}const jh=e=>{const n=c,t=[],o=[];for(const[,x]of e[n(1067)])x[n(1477)]&&t[n(1955)](x.internals[n(1580)]);for(const[,x]of e[n(443)])x.selected&&o.push(x);return{selectedNodes:t,selectedEdges:o}},ix=e=>e.id;function Yh(e,n){const t=c;return je(e[t(987)].map(ix),n[t(987)][t(1186)](ix))&&je(e[t(675)][t(1186)](ix),n[t(675)][t(1186)](ix))}function Uh({onSelectionChange:e}){const n=c,t=Ye(),{selectedNodes:o,selectedEdges:x}=ke(jh,Yh);return L[n(553)](()=>{const r=n,i={nodes:o,edges:x};e?.(i),t.getState()[r(788)][r(1956)](a=>a(i))},[o,x,e]),null}const Oh=e=>!!e[c(788)];function Gh({onSelectionChange:e}){const n=c,t=ke(Oh);return e||t?l[n(1791)](Uh,{onSelectionChange:e}):null}const Lo=typeof window!==c(1482)?L[c(214)]:L.useEffect,Ra=[0,0],Hh={x:0,y:0,zoom:1},Th=[c(425),c(365),"defaultNodes",c(1813),c(544),c(1395),c(1084),"onClickConnectStart","onClickConnectEnd","nodesDraggable",c(491),c(301),c(560),c(712),"edgesReconnectable","elevateNodesOnSelect",c(746),"minZoom",c(653),c(1350),"onNodesChange","onEdgesChange",c(1069),c(1698),c(958),c(336),"translateExtent",c(157),c(1526),c(408),c(1962),c(1736),c(1758),c(1496),c(546),c(1460),c(775),c(1541),"onSelectionDragStart",c(1178),c(154),c(295),c(458),"noPanClassName","nodeOrigin",c(1691),c(1547),c(1029),"connectionRadius",c(479),"selectNodesOnDrag",c(462),"connectionDragThreshold",c(1321),c(1787),c(853),c(510),"zIndexMode"],Ja=[...Th,"rfId"],Vh=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e[c(1964)],setMaxZoom:e[c(150)],setTranslateExtent:e[c(816)],setNodeExtent:e[c(257)],reset:e[c(164)],setDefaultNodesAndEdges:e[c(1814)]}),_a={translateExtent:Fn,nodeOrigin:Ra,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:c(965),rfId:"1"};function qh(e){const n=c,{setNodes:t,setEdges:o,setMinZoom:x,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:a,reset:f,setDefaultNodesAndEdges:s}=ke(Vh,je),u=Ye();Lo(()=>{const h=_0x1d61;return s(e[h(1777)],e[h(1813)]),()=>{const y=h;d[y(1890)]=_a,f()}},[]);const d=L[n(619)](_a);return Lo(()=>{const h=n;for(const y of Ja){const v=e[y],g=d.current[y];v!==g&&typeof e[y]!==h(1482)&&(y==="nodes"?t(v):y===h(365)?o(v):y===h(1160)?x(v):y===h(653)?r(v):y===h(1273)?i(v):y==="nodeExtent"?a(v):y===h(510)?u[h(1299)]({ariaLabelConfig:D2(v)}):y===h(408)?u.setState({fitViewQueued:v}):y===h(1962)?u[h(1299)]({fitViewOptions:v}):u[h(1299)]({[y]:v}))}d[h(1890)]=e},Ja[n(1186)](h=>e[h])),null}function Fa(){const e=c;return typeof window>"u"||!window[e(1490)]?null:window.matchMedia(e(1855))}function Wh(e){const n=c,[t,o]=L[n(1326)](e===n(224)?null:e);return L[n(553)](()=>{const x=n;if(e!==x(224)){o(e);return}const r=Fa(),i=()=>o(r?.[x(400)]?x(582):x(1726));return i(),r?.[x(1018)]("change",i),()=>{const a=x;r?.removeEventListener(a(1006),i)}},[e]),t!==null?t:Fa()?.matches?n(582):"light"}const Qa=typeof document!==c(1482)?document:null;function it(e=null,n={target:Qa,actInsideInputWithModifier:!0}){const t=c,[o,x]=L.useState(!1),r=L.useRef(!1),i=L[t(619)](new Set([])),[a,f]=L[t(1356)](()=>{const s=t;if(e!==null){const u=Array[s(1021)](e)?e:[e],d=u.filter(y=>typeof y===s(1516)).map(y=>y[s(960)]("+",`
9
- `)[s(960)](`
1
+ (function(Se,l){const B=_0x5590,C=Se();for(;;)try{if(-parseInt(B(827))/1+parseInt(B(886))/2*(-parseInt(B(1024))/3)+-parseInt(B(1203))/4*(-parseInt(B(2174))/5)+parseInt(B(921))/6+-parseInt(B(2186))/7+parseInt(B(968))/8*(parseInt(B(1168))/9)+parseInt(B(1101))/10*(parseInt(B(1022))/11)===l)break;C.push(C.shift())}catch{C.push(C.shift())}})(_0x5257,407895),(function(Se,l){const B=_0x5590;typeof exports===B(878)&&typeof module!==B(383)?l(exports,require("react/jsx-runtime"),require(B(1530)),require(B(1693)),require(B(1739)),require("zustand"),require(B(1493)),require(B(1335)),require(B(829)),require(B(432))):typeof define=="function"&&define.amd?define([B(1896),B(864),"react",B(1693),B(1739),B(2036),B(1493),B(1335),B(829),B(432)],l):(Se=typeof globalThis!==B(383)?globalThis:Se||self,l(Se.ConfigEditor={},Se[B(1697)],Se[B(671)],Se[B(1693)],Se.icons,Se[B(2036)],Se[B(1493)],Se[B(1335)],Se[B(711)]))})(this,function(Se,l,B,C,de,Xx,Nt,Le,St){"use strict";function _0x5590(Se,l){Se=Se-345;const B=_0x5257();let C=B[Se];if(_0x5590.sjnDcS===void 0){var de=function(St){const s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let mn="",Vn="";for(let l0=0,E0,U0,qn=0;U0=St.charAt(qn++);~U0&&(E0=l0%4?E0*64+U0:U0,l0++%4)?mn+=String.fromCharCode(255&E0>>(-2*l0&6)):0)U0=s.indexOf(U0);for(let l0=0,E0=mn.length;l0<E0;l0++)Vn+="%"+("00"+mn.charCodeAt(l0).toString(16)).slice(-2);return decodeURIComponent(Vn)};_0x5590.UvQbpo=de,_0x5590.zrylHI={},_0x5590.sjnDcS=!0}const Xx=B[0],Nt=Se+Xx,Le=_0x5590.zrylHI[Nt];return Le?C=Le:(C=_0x5590.UvQbpo(C),_0x5590.zrylHI[Nt]=C),C}function _0x5257(){const Se=["Dg9tDhjPBMC","C2v0qxr0CMLIDxrLtLm","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","lwzSB3DFx2HHBMrSzvTKyxrHlwLKpsi","BM9KzunSAwnRrgLZDgfUy2u","vg9W","C2v0tM9Kzuv4DgvUDa","B3b0Aw9UCW","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","BMv3wq","Aw5SAw5LlwzSzxG","twLUDxndAxjJBgvpDxrSAw5Lza","zgf0ys1Oyw5KBgvPza","zhjHz0HHBMrSzq","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","zxzLBNrtDwjQzwn0CW","5PwW5O2U6zUgia","yw50ze1LC3nHz2u","Bw91C2vcDxr0B24","BwiTmW","BwfYA2vYrw5K","yMLUzenVzgvZ","vgHLig9SzcbLzgDLihDPDgGGAwq9","zhjHzW","Dhj1zq","DMfSDwvZ","Dw5RBM93BIb0ExbLoIa","Dg9WlwXLzNq","DMLLD3bVCNqT","Aw1Hz2uVkG","y29UDgvUDgvKAxrHyMXL","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGicaGicbMAwXLoM1YltqGzMLSztPWEs0YigzPBgu6ChGTnaOGicaGicaGicaGicaGicaGicbMAwXLoNjVDw5KzwqTzNvSBcbMAwXLoMjVCMrLCI0WcIaGicaGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicaGicaGzMLSztPIzY1IBhvLltuWigzPBgu6Dgv4Dc1IBhvLltCWmaOGicaGicaGicaGicaGicaGicbOB3zLCJPMAwXLoMjNlwjSDwuTmtaW","ihrVia","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","DY1MDwXSigGTzNvSBa","y3LHBG","C3vIBwL0","5zcr5yMnidmG6Ag1","Dg91y2HZDgfYDc56B29T","q29UDhjVBcbqyw5LBa","DxnLu3LUy0v4DgvYBMfSu3rVCMu","zg9Uzq","lteWic0XmcaYmcaYma","BwvYz2u","zw1WDhK","BwvTBW","CMzFx3DYyxbWzxi","D2HLzwWUEM9VBq","DxnLrwzMzwn0","Dg91y2HLCW","zgfZAc1KB3q","ywn0sw5ZAwrLsw5WDxrxAxrOtw9KAwzPzxi","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","EwvSBg93","CMvHza","C3LTyM9S","Dw5PDa","Cc0ZigjNlwjSDwuTntaGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKlwXNig1Iltq","D2fYBG","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","C2v0rhjHz0LTywDL","yxr0CI4","mdeY","55s75BIdia","6iom5PMV6iMY","6ycj5OUP5BM05lU9","rxzLBNqGyMXVy2SGBM90igzVDw5KoIa","y2XLyxjjBNrLCNzHBa","AgfZvMfSDwu","6k+35AgR5yAz5Asw6yoO5PA55Rov5Qch6k+g","DxnLCLnLBgvJDgLVBLjLy3q","5y+V5OUw5OU9","6k+35AgR5yAz5OMN6kgm5lUJ56cb","57Ut5P2F5zgO","C2v0rgf0yq","CMv0DxjUigzHBhnLoW","zxHLyW","mta4ma","jhTSywjLBh3POBVKUlOKE2XLBN3KUkRLRzFNRky","ENvZDgfUza","zNvSBa","Dg9qCMLTAxrPDMu","rxzLBNqGzMXVDYbUB3qGAw5PDgLHBgL6zwqGzM9Yia","y29Z","5lUo57Ue5lIT56E76zMK","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","yMfJA2DYB3vUza","y2XHC3nmAxn0","y29TBw9Utg9JywXL","zgvMAw5LuhjVCgvYDgLLCW","ywn0Aw9UCW","igrVzxmGBM90igv4Axn0lG","Aw5PDgLHBfrLyxjKB3DU","y29UBMvJDgLVBLjHzgL1CW","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iG","zwrNzuXVB2T1Ca","kow9K+wjJsK","yxv0B1bHBK9UtM9KzuzVy3vZ","C2fTCgXLiow/HEMHU+AyRYbku09oiowVUEIXOEAiLUAvSoE7Ha","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iG","ChjLCgfYzuv2zw50qxjNCW","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","BNvTyMvY","5PU05O2I54MP5PAz","B25dB25Uzwn0u3rHCNq","CMvHy3qTzMXVD19FzwrNzs10zxH0","5BgE5OcN6z2I5P2/","BM9KzvG","5PAh5lU25Qc85BYp6zsz6k+V","Dgv4Dc1NCMf5ltyWmcbTDc0WlJu","C2v0rgvMyxvSDe5VzgvZqw5KrwrNzxm","5A+85ywLiePtt04","CMv0DxjUihrYDwu7","zgvJAw1HBhm","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY0WlJuGAc0ZigjNlwDYzwvUltuWma","Dg9izxHtDhjPBMC","u3rYywLNAhrfzgDL","CMvXDwvZDefUAw1HDgLVBKzYyw1L","6BUy6k6K5yc877Yi5Ash55sO77Yj","y2fUy2vSq29UBMvJDgLVBG","5O+q56s65yAf5A65","q2fUDMfZ","CMvWzwf0kdGSidfMCIK","Dgv4Dc1ZBsb0zxH0lwDYyxKTnJaW","rg90CW","5BYa5AEl5zgO","zwrNzxm","CMvTB3zLqxr0CMLIDxrL","ChjPBwfYEq","B3v0Chv0CW","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","zwzMzwn0qwXSB3DLza","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","ChjVCgvYDhK","6kEJ6zMK57Ue5zci","u21VB3rOu3rLCa","5zcr5zcoiduG6Ag1","5lIk5lYG6zsz6k+V","z2v0u25HChnOB3q","AxnfzgL0Aw5NrxzLBNrgBg93","5lIl5lIQ5PYiicJNV7VPOBxKUiVPLk4P","ios4QUIkGUEcUq","y29UDhjVBerPCMvJDgLVBG","B2jZzxj2zq","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","AxnszxnPEMfIBgu","C2vSzwn0Aw9U","CgfYyw1Zq29Kzq","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/ksvCCYO","i2q5zdLKoq","ChjVDg90ExbL","B25dB25Uzwn0rw5K","zgjSy2XPy2SUEM9VBq","qM90Dg9T","zxHLy3v0Aw5NigeGy2fUy2vSBgvKigfJDgLVBG","y3vYC29YlxbVAw50zxiGBwiTma","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTyMv0D2vLBIbWEc00ihb5lti","y2XPzw50vg9W","zM9YBwf0sgv4","y2fUDMfZxW","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","zNjVBuHHBMrSzq","yMLUza","5zcn56EW5lIn6io95lI656M6","6k+L5PwW5O2U6zUg55QeihnHBxbSzsdKUlRMLBdNU4tVViZOR7FPGiNMI6NNLkJKUO7LJlNPHy3MLBdMJA7POBNNMOtLRzFMRRu","ywjZB2X1Dgu","B25nB3zLu3rHCNq","6BYG5Qch5OYj5lIl","zgf0yxnLDa","CgWTmIbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Zmda","55s75BId5A+85ywL5OIq5yQF77Yb","ltuSltqGmcWWic01ldq","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltmGDY1MDwXSihb5ltiG","Dgv4Dc14CYb0zxH0lwDYyxKTndaWihCTnq","C3rHCNrxAwr0Aa","i2zHywqXna","C2fTCgXL","qxjYB3Dmzwz0","CMvHy3qTzMXVD19Fyxr0CMLIDxrPB24","Dg91y2HHyMXL","5A+85ywL57Ue5Ocb5PA55Qgi","Cg9PBNrLCI1LDMvUDhmTBM9Uzq","Bw91C2vKB3DUlMrYywC","y29TCgfYzurVy3vTzw50ug9ZAxrPB24","562j5Q+u57YP5Ps+6iQc54k555Qe5A696AUy","y3jLyxrLrwXLBwvUDa","AxntzwXLy3rHyMXL","5l6l5AAc77YABMf2AwDHDgvuB+oaGw9Wzw5eAwfSB2C","CMvHy3qTzMXVD19FzwrNzwXHyMvSlxjLBMrLCMvY","C2v0ug9PBNrLCKnHChr1CMu","y2fUy2vSywjSzq","57Ue5Ocb57Yw6l6r5zMO","5BEY5RE75yQG","u1fsvdi","CMv2zxjZzq","DxjSkcCJ","rxHWzxjPBwvUDe91DgXPBMvK","C2v0vgLTzw91Da","z2v0qxr0CMLIDxrLtLm","Dg9ju09tDhjPBMC","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","vgfN","y3vZDg9T","vxbtCxvHCMvpDxrSAw5Lza","zMLSzq","CMvHzefZvgv4Da","C3bHBG","x2DYB3vWCW","rwrPDe91DgXPBMvK","6Ake6kEi5QIH5BYp","lY8G5PsV5OYb5A+56lgH5OIw5PwW57Ue5Qc85BYpcI8ViowVUEIXOEAGVow8J++8MGP7cIaGiNnWzwvKiJOGmcWkicaIDgvTCci6idi1laOGicjUzxn0zwqIoIb7icj4iJOGmsb9cN0kcI8VioAvSoE7HoAGVow8J++8IoAVJ+MHUEMCGowmHEwqQYbUyw1LiowTL+AUTEEuQos6JUMaIEAlQE+8IE+8MGPBcIaGEYaIBMfTzsi6iclMTyVNGRKXiIWGiNzHBhvLiJOGmtaWlcaIDw5PDci6icjTBsiGFsWkicb7icjUyw1LiJOGiUA1I+EcUtiIlcaIDMfSDwuIoIaYmdaSicj1BML0iJOGiM1TiIb9cL0","Bw91C2vpDMvY","i2iXyJfInW","x25Vzgu","iZHJogm4yW","Bwf4","u2v0DgLUz091DgXPBMvK","nJq1mJG1Eg92v1nT","Aw5PDgLHBfDPzhrO","DxnLCLnLBgvJDgLVBKfJDgL2zq","khbYzwzLCNmTy29SB3iTC2nOzw1LoIbKyxjRkq","z2v0rgf0yq","BgvUz3rO","Aw5ZDgfUy2u","zMLSzxm","ugXLyxnLig9UBhKGAgLKzsb0AgLZigf0DhjPyNv0Aw9UihDOzw4GEw91igfYzsbZDwjZy3jPyMvKihrVifjLywn0iezSB3CGuhjVoIbODhrWCZOVl3bYBY5YzwfJDgzSB3CUzgv2","5PYQ55+L5yAf572U5yQO5l2CoIa","tM9KzsbVBKnSAwnRoG","yxbWBhK","mZm5nJyXn0zNuwfAuW","DxnLtM9KzunVBM5Ly3rPB25ZoIboBYbUB2rLieLeigzVDw5KlIbdywXSihvZzu5VzgvdB25Uzwn0Aw9UCYbPBNnPzguGysbJDxn0B20GtM9KzsbVCIbWCM92AwrLigeGBM9Kzsbjrc4","wM9VBsbjBG","C3rHCNrZv2L0Aa","AxnAB29TAw5Nt3jqyw5UAw5N","tM8GDgLTzw91DcbWCM92AwrLzc4","54Q25Ocb5PwWoIa","yxjPyuXHyMvSq29UzMLN","Axnqyw5ty3jVBgXPBMC","DhjPBq","zMXLEc0Xig1PBI13lta","y2XPy2SUzhjHzW","6k+35Rgc5Qch6k+g","yxjPyuXHyMvS","Dgv4Dc1NCMf5ltGWma","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","BM9KzurYywDuAhjLC2HVBgq","zxH0zxjUywXiyw5KBgvYs2v5","ru1qvfK","yMCTz3jHEs0Ymda","6ycj5OUP54MP5PAz","6l6t5ywL6iQc54k55zcn56EW","6zw/54k5lEEFREEcUEs6PoABVW","CMvHy3qTzMXVD19FyMfJA2DYB3vUzc1Wyxr0zxjU","q29WEu91DgXPBMvK","uMLNAhq","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","EMHFq04","5BEM5A+56B2q","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","x190CMfUC2L0Aw9U","5OM+5lIn5yIW5lQl5lU25z2x","Dhj5CW","BwiTmG","Bw91C2v1Cc56B29T","y2HYB21L","zgvNksa","5Pon5l2C5OIq5yQF","w3jVBgu9iMXPC3rIB3GIxq","BgfIzwXcz1bHzgrPBMC","6ycj5OUP5PEL5PYF","CM91BMq","BNCTCMvZAxPL","Dw5KzwzPBMvK","zgvMyxvSDa","lM1HDgvYAwfSlxbYzxzPzxC","BgLMDa","6l6t5ywLiePtt04G5Qc85BYp55Qe5Rwl6k+v5PwW5O2U77YB5PYQ57Yw6l6r5yMn55s75BId6lEF6zQp5Asw6yoOigrLzMf1Bhruzxn0rgf0yE+8IowMGUEBKEAoP+AoQoMaGE+8Iq","BM9KzvK","5PEG54Q25Ocb","y29UDgfPBMvY","DhjHBNnSyxrLwa","5PAh5PYS5Qch562+","Aw50zxjUywW","5AAc77YA55s15PY65Rwl54k56zUg","zgf0ys1Pza","lI4U","y29SBgvJDerHDgfZzxrgAwvSzfbHDgHZ","5zcm57QN5ywZ57o757Ue","zNjVBNq","5Bgv5BYa6kgm","572U5lQo6Ag25Bgc","C2nYB2XSvg8","DxnLrM9YBq","5lIn5zcm5PA55BYp5A+55BQu5lIl5PA55lIn5zcm6ywn572U6Ag5","u21VB3rOu3rLCevKz2u","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGigzPBgu6BxiTncbMAwXLoNb5ltiGzMLSztPWEc00cIaGicaGicaGicaGicaGzMLSztPYB3vUzgvKlwz1BgWGzMLSztPIB3jKzxiTmaOGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicbMAwXLoMjNlwjSDwuTntaGzMLSztP0zxH0lwjSDwuTnZaWcIaGicaGicaGicaGicaGAg92zxi6zMLSztPIzY1IBhvLlteWma","C2nHBgvuBW","ywn0AxzLu2LIBgLUz0DYB3vWswq","55s75BId6ywn572U","C2v0tM9Kzxm","6ycj5OUP57Ur5A6A5yc8","DgLTzq","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","y2fSBa","DxjSka","iZCYmMvKmq","yxv0BY1ZDgfYDc1YzxzLCNnL","5lQm57U056cb6l+h5PYF","6k+35AgR5yAz6k+35Rgc5Qch6k+g","zgv2AwnL","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","6ycj5OUP5PE26zE0","Bwf0zxjPywXZ","zMLUzeLUzgv4","y2XVBMvfBgvTzw50","zM9YD2fYzfjLzG","B25fzgDLC0rLBgv0zq","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","cIaGicaGicaGicbYB3vUzgvKlwXNihrYyw5ZAxrPB24TywXSigr1CMf0Aw9UltiWmcbZzwXLy3qTBM9UzqOGicaGicaGicaG","ioADOEwfPEI+UsdIHPdJGiW","uhjVDMLKzxi","CMvHy3qTzg9T","5OMl5yQO6l6t5ywL5PI+56s655Qe5yc8","yNvPBhrPBG","B2zMC2v0sgvPz2H0","5RE75yQG5lQl5lU25z2x","C3rHDgu","zgLZCgXHEwfIBgu","zgf0yvjLCxvLC3rlzxK","57Yw6l6r5lQl5lU25z2x","tufurvjjquXFu1rbvfvtx0niqu5hrq","6k+36ycj5OUP5PYi5lU9","5ywL5y+c5zcn56EW77Yi5OYj6l+E57Q/6Ag65BQp77Yj","zgfZAgvK","qxjYB3DeB3DUt3v0BgLUzwq","zM9UDc1TzwrPDw0GDgv4Dc1ZBq","6k+36ycj5OUP5OMN6kgm5PA55BYp","CgfKzgLUzW","5A2x5l2t5AsN5Bcp","CMvHy3qTzMXVD19FBwfYA2vY","C2vSzwn0zwrtDgf0Dxnjza","rNvSBa","DMfSAwq","Ahr0CdOVl3D3DY53mY5VCMCVwe1mlZe5otGVBMfTzxnWywnL","6ycj5OUP5PwW5O2U5A2x5Q61","BgLZDgvUzxi","zg90","yMLUze5Vzgvjza","wvLzwEw5Ta","tM9Kzsb3AxrOigLKici","Aw5KzxG","sg9YAxPVBNrHBa","CMvJEwnSzufZEw5Jswq","vhLWB2DYyxbOEq","sw5WDxq","Bw91C2vKB3DUlNPVB20","ywzMzwn0C1G","ie0Wia","CMvHy3qTzMXVD19FBwLUAw1HCa","i2zMzMzMzG","ksbZy2fSzvKO","6l+u5zUE5lUk5AsP","yM94lxnLBgvJDa","BwfW","5Bcg6k+L57Ue6k6+5lI65Rs76lEd57Ue77Ym5Asw6yoO57+76Ag1ifvjioAnRUATPowqR+EuQa","5PAW5BU655s75BId","57Ut5P2F5PE26zE0","mI4WlJa","Dw5ZDwjZy3jPyMu","BMv3wa","mxb4ihnVBgLKicnKowq5zdK","rMfPBgvKihrVihbHCNnLigrYB3bWzwqGBwf0zxjPywW6","BgfIzwXgB250u2L6zq","AgLZDg9YEq","BM9YBwfS","CMvHy3qTzMXVD19FzwrNzs10zxH0D3jHChbLCG","vMvYDgLJywXbBgLNBLrVCe91DgXPBMvK","x19LC01VzhvSzq","tgf5B3v0","yM9YzgvYlxqGyM9YzgvYlwDYyxKTmJaWig10lteGChqTmq","ywjZB2X1DguGDg9WltaGBgvMDc0WihnLBgvJDc1UB25L","BM9Kzvf1zxvL","AgfUzgXLCG","CgfUu2nYB2XSvgLTzw91Da","5OUw5OU96lcd5Pw05AsN5Bcp","ugfYzw50ig5VzguG","zgLTzw5ZAw9UCW","x+wjR+ACRa","5yIG6zMK5ywO6yoO","DgfYz2v0","x196B29T","zxH0zw50","57Ur5A6A5A2x5Q61","C3rHCNrz","Cgf0DgvYBG","iwjNlwjSDwuTntaW","5l+D55wz5Bcp5PwW5l2n","B25nB3zLrw5K","tM9KzvjLBMrLCMvY","BwvHC3vYzwq","C2LIBgLUz0DYB3vWCW","6yca5yE65Rwp6kEi","6iom5PMV5zU+54Mh","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","DxnLrwrPDg9Yu3rVCMu","lMrYywC","y2HPBgrYzw4","ioMHUEw/HEMHU+AyR+wVUEIXOq","y29Kzq","tK9erv9eruXfveu","B25oB2rLq29UDgv4De1LBNu","CMvQzwn0","y3vYCMvUDa","C2nHBgvz","zMXLEcbNyxaTna","5PwW5O2U5RgG77Yi6iQc54k554Q25Ocb55sO77Yj","CMvZzxrgAwvSzhm","yM90Dg9TlwXLzNq","i2zMzG","x2LUBMvYu3vIC2nYAwjL","y3jLyxrLq29UDgv4Da","zMXPCfG","5lQK5O2I6lw354k55zkm57Ui54k5","CMvTB3zLqxr0CMLIDxrLtLm","C29SAwq","zg91yMXLq2XPy2S","x196B29TAw5N","qMv6AwvYrwrNzuLUDgvYBMfS","mc4X","AxnjzgvUDgL0Eq","zgvSyxK","BMfTzxnWywnLvvjj","6k+36ycj5OUP5PEL5PYF","5BEY56Ab55sO","zxHLy3v0zuzSB3DoB2rLCW","BwiTna","yMX1zq","5PEG5zU+54Mh","yMX1CG","BwiTmcbTDc00","Aw5PDe1HDgvYAwfSCW","iw1Ylta","5PEl6l2S6kEs5BQM77Yi5BQM77Yj","6zw/5yIs6zE06zQu","BM9KzxngB2n1C2fIBgu","zxHLy3v0Aw9Uugf0Aa","5PAW5BU65lQl5lU25Rwb","C3bSAwnL","C2vSzwn0zwroB2rLswrZ","CgfYzw50rwXLBwvUDa","x3rYEvn1yNnJCMLIzq","idaGvG","BM9KzxndB25Uzwn0ywjSzq","5yAf6igu6isA5PYS","AxnbCNjHEq","B25tzwXLy3rPB25eCMfNu3rVCa","C2uTCMvZAxPL","z3jPza","vgLTzw91DcbOyxmGB2nJDxjYzwq","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4Gww91ignHBIb0AgvUihvZzsb0AguGyxjYB3CGA2v5CYb0BYbTB3zLihrOzsbUB2rLigfYB3vUzc4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","w2rHDgeTBM9Kzs1Pzd0I","zxHWCMvZC2LVBG","yM9YzgvYlwjVEa","56gU6k6K5yIG6zMK6k+L5zcm57QN5ywZ57o757Ue77YF","y29UC3rYDwn0B3i","57Ut5P2F5PYi5lU9","CMDIysGWldaSmcWWkq","tM9Kzsb0ExbLici","zgf0ys1UB2rLAwq","5lQl5lU25Rwb5yIB5BU65OIq5yQF","B25fCNjVCG","CgLWzq","Aw52zxj0wq","5y+n6ycj5B2t6Ag1","BM9KzuvSzw1LBNq","Aw5PDgLHBeHLAwDODa","CMvHy3qTzMXVD19FDMLLD3bVCNqTCg9YDgfS","twvZC2fNzsdMJ5dNPlRLHOxLRRNKUlRNQBO","rwrNzsbMCM9Tia","Aw5JBhvKzuHPzgrLBK5VzgvZ","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","y29UDgvUDa","zgvMAw5LuhjVCgvYDhK","Aw52B2TLuNvUDgLTzuHHBMrSzxi","CMvHy3qTzMXVD19Fy29UDgfPBMvY","BgLUzwfYlwDYywrPzw50khrVihjPz2H0lcbYz2jHkdi0mcWYndaSmJqWldaUmdmPidfWEcWGDhjHBNnWyxjLBNqGmxb4ksWGBgLUzwfYlwDYywrPzw50khrVigjVDhrVBsWGCMDIysGYndaSmJqWldi0mcWWlJaZksaXChGSihrYyw5ZCgfYzw50idfWEcK","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltiGBwiTmW","lcb5oIa","BM9VCgvUzxiGBM9YzwzLCNjLCG","u3rYAwn0","q1vtve9n","CMvZB2X2zuzSB3DfDMvUDejSB2nR","DMfSDwvpzG","ChGP","5zYg6kEs55+P5B2I","Dw5YzwDPC3rLCKv2zw50qMXVy2S","mtjWEa","Aw5SAw5Lu2nYAxb0","DgLTzxjjza","AgfUzgXLqM91BMrZ","y29UDgfPBNm","zxjYB3iWmdu","y2vUDgvY","Aw5WDxq","mdaY","572U5lQo5BQv5Bgc","DMLLD3bVCNq","Dg9VigXHDgu7igfSCMvHzhKGCNvUBMLUzW","Cg9PBNrLCG","5lQl5lU25Rwb5l+D5A2y5OIq5yQF","yM91BMrHCMLLCW","BwfYA2vYu3rHCNq","DMfSDwvdB2XVCG","yw5PBwf0zwq","zxjYB3iWmdG","y2XPzw50sgvPz2H0","Cc02","zgvSDgfy","CMvHy3qTzMXVD19FyxjYB3DOzwfK","C2nOzwr1Bgu","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","54Q25Ocb5yIx6kgO","uMvHy3qGrMXVDYbHDhrYAwj1DgLVBG","C2nOzwr1BgvY","rgvSzxrLt3v0BgLUzwq","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","CMvZzxrtzwXLy3rLzevSzw1LBNrZ","CMzjza","CMvUyw1L","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/77Ym5l+D5OYb6zw/5BQM","5lIl6l295PAh5lU2","rML0ifzPzxC","6k+36ycj5OUP5PE26zE0","xNjNyMfCka","C3rYB25N","sxqGBg9VA3mGBgLRzsb5B3uNDMuGy3jLyxrLzcbHig5LDYbUB2rLvhLWzxmGB3iGzwrNzvr5CgvZig9IAMvJDc4GswyGDgHPCYb3yxnUj3qGB24GChvYCg9ZzsbWBgvHC2uGzgvMAw5LihrOzsbUB2rLvhLWzxmVzwrNzvr5CgvZig91DhnPzguGB2yGDgHLignVBxbVBMvUDcbVCIbTzw1VAxPLihrOzw0U","DMfSDwvgB250v2vPz2H0","CMvXDwvZDefZEw5Jswq","y29UDhjVBhmUzML0vMLLDY5HCMLHtgfIzwW","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","CMvHy3qTzMXVD19FCMvZAxPLlwnVBNrYB2W","Bg9JywW","zgf0yvrYyw5ZzMvY","lwnHBNzHCY0","6BUy6k6K6Ag555UU","Bw91C2vTB3zLlMrYywCGBw91C2v1Cc5KCMfN","ywjZB2X1DguGyM90Dg9TltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","Aw5MBW","z2v0qxr0CMLIDxrL","x3rOCM93swzdBg9Zzwq","CMvTB3zLuhjVCgvYDhK","t1busu9o","BgfIzwW","BgfIzwXgB250v2vPz2H0","DgvZDa","Bwf4wa","5BYa5AEl5PE26zE0","C2nHBgvfEhrLBNq","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS","yxjPyuXPDMvnzxnZywDL","uMvHy3q","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","y292zxi","Cg9SEwXPBMu","tw92zwqGC2vSzwn0zwqGBM9Kzsa","BgLUzxm","5Asn5yI26iQc54k5","5lIk5lIa6Ag1","zwrNzxnszwnVBM5Ly3rHyMXL","B25ezwXLDgu","yM9YzgvYuMfKAxvZ","BM9Kzuv2zw50qMLUzgLUz3m","CMvSzwfZzvbVAw50zxjdyxb0DxjL","DgfWCW","z2v0sw5PDgLHBfn0yxrL","CgfUwM9VBq","y3vYCMvUDenHBNzHC0LK","DgHLBG","yM90Dg9T","C2nHBgu","wM9VBu91De91DgXPBMvK","CMvSyxrPDMu","5PwW57UeicG","BgfIzwXcz1n0EwXL","B25SB2fK","Bw92zq","C2v0vgLTzq","AxneCMfNz2fIBgu","rNjLzq","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","tgLUzxm","5y+V54k55yE7","lte0ChG","z2v0q29TChv0zwrtDhLSzq","zgvZyW","AxnwywXPza","6iom5PMV6AkC6iMY","Dg9gAxHLza","B25fzgDLC0nOyw5Nzq","zxzLBM9Kza","uMvHy3rAB29TugfUugLUy2G","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","C2v0uhjVCgvYDhK","y2f0y2G","sw5WDxroDw1Izxi","57Ur5A6A5PwW5O2U6zUg","BM9KzuXVB2T1Ca","D29YAW","Aw5ZDa","iZuYyZqXyq","C2v0","zM9JDxnHyMXL","x2v4zwn1Dgu","D2L0Aa","54k55yE757Q/5P2H54MP5PAz5BYa5AEl57Uy5yI2","CMvHy3qTzMXVDW","EhKTzwrNzv9F","6iQc54k554Q25Ocb55sO55Qe5PwW5O2U6zUg77Yi5lIo5lQl5lU25Rwb5PEG5ywZ77Yj","ywrK","C3LUy1zPzxDWB3j0","y2HLy2TwAxnPyMLSAxr5","AxndB250zw50rwrPDgfIBgu","yxv0B1bHBK9UtM9KzurYywC","y2HHBMDL","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","lIbozxCGCg9ZAxrPB24SihG6ia","54k55yE75y2h5BQp","CM9VDa","i2vImMy5nG","BMf2AwDHDgLVBLn0ywnR","EKLUzgv4","y29UDgvUDeLUzM8","yM9VBgvHBG","z3jVDxa","y2fSBgjHy2S","CMvHy3qTzMXVD19FzwrNzs1WyxrO","yNvPBhrPBKLK","57ky6ls0iePtt04G5yAf5A65lI4U","i2zMngq0zG","zgLZDgfUy2u","5Qch6k+g5lIn6io95lI656M6","yNv0Dg9U","ufjpuevsvfLFq0HbtKDf","y3vYCMvUDe9IC2vYDMvYCW","CMDIysG","5Rc05BMZ57+76l2S","BMv4DfnPyMXPBMC","y29Uy2f0","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","zwXLBwvUDhntzwXLy3rHyMXL","mda1","6lw35Q2I5l2n572U77Yi55U45A+56iQc54k577Yj","zw5KlNjLBw92zq","q2XHC3mGzxH0zw5KCYb2ywX1zsa","44cn77YA5lIk5RI4","C291CMnL","vw5HyMXLihrVigXPzNqGDw5RBM93BIbpyNnLCNzHyMXLihr5Cgu","yxv0B1bHBLnWzwvK","6ycj5OUP5zgO","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","5y+V6lcd5Pw05AsN5Bcp","CMvHy3qTzMXVD19Fy29UDhjVBhm","ltzWEa","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","BwLU","CMvHy3qTzMXVD19FzwrNzs1KzxnJ","yMfZzvzHBa","5A+85yE65B2t5yMn55s75BId","iIbPCYbPBNzHBgLKlIbqBgvHC2uGChjVDMLKzsbHig51BwjLCIbVCIbHihn0CMLUzYb3AxrOigeGDMfSAwqGDw5PDcaOChGGB3iGjsKU","DxnLuMvM","z2v0sw5ZDgfUy2u","w1jLywn0iezSB3DDoIa","AhLWB3q","ChjLDLzPzxDWB3j0","zMXLEc0X","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWidGGmca0lJu3msaZlJqYosa0lJu3msa3lJyXoxyZlJa0oeGZlJa0oeeZlJa1nIaZlJa1nIaWidaWmcaXmY43mtr2mtuUmJm4qtmUmdu2idmUmdu2idaGmdaZlJa0ocaZmMGXoc4YodvHmY4WntyGmY4WntyGmcaWmdmUmdq4ltmUmdq4vJeZlJCXngeZlJa1nIaZlJa1nIaWidaWltmUmdq4ltmUmdq3EK0XmI4XosaYnc41mZnHmY4WntyGmY4WntyGmcaWms0ZlJa0nY0ZlJa0nYaZlJa1nIaZlJa1nIaWidaXmY4WndCTmY4WndGGmY4WntyGmY4WntyGmcaWmtmUmdq4idmUmdq4idmUmdu2idmUmdu2idaGmdeTmY4WndGGmY4WndD6BtqUnZi0lteZlJG2nKG3lJq2n1y3lJyXowmWltiUntKGmI4XmZmTnc43mJqGnc43mJmTnc43mJqGmI41oteGmca0lJCYncaYlJeZmYa0lJCYnca0lJCYnhyZlJa0ohO","C2vSzwn0","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","BMuTCMvZAxPL","BM9Kzuv4DgvUDa","DgHYB3DUrxjYB3i","C2TLD1GO","iZaWmtKZqW","6ycj5OUP5QIH5BYp","C291CMnLswq","5Qch562+5Qc35BYp","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","Bg9VC2u","y29UBMvJDgLVBKXVB2T1Ca","57Ut5P2F5BM05lU9","rg93BMXVywrpDxrSAw5Lza","B25gAw5HBgL6zq","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","mxb4ihnVBgLKicnMmgyWzJa","CMvHy3qTzMXVD19FCgfUzq","54k55yE755s75BId56gU5A6A6lw354k55zkm57Ui54k5","Bw0VCW","B3bLCMf0B3i","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","ChjLDMvUDerLzMf1Bhq","CMDIysGYncWXndqSmJu1ldaUmdGP","vevyvefsrue","DxbKyxrLtM9Kzq","Bw91C2v1Ca","zMLSDgvY","Bwf0y2HnzwrPyq","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","q2XVC2vpDxrSAw5Lza","ANvTCfrVq2fUDMfZ","BM9KCMfN","zg9JDw1LBNq","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","Dg9iyw5KBgu","zMLUywXPEMu","iZCZzdeZza","nZe3ody1quPjBeT2","tgLUzq","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","CMvWBgfJzq","mNb4igrHC2HLzcb0CMfUC3bHCMvUDa","BgfIzwXtDhLSzq","zMfJDg9Y","6k+36ycj5OUP5BM05lU9","Cg9ZAxrPB24","6yca5yE66k+L57Ue55Qe5Rwp6kEi5QIH5BYp77Yi5Asw6yoO57+76Ag1ifvjiowWHUEMGEEuQo+8Iq","C291CMnLsgfUzgXL","vxbSB2fKt3v0BgLUzwq","CMvHy3qTzMXVD19FzwrNzs1PBNrLCMfJDgLVBG","C29YDa","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","qxjYB3DdBg9Zzwq","y29UC29SAwrHDgu","A2v5","twfYA2vYihr5CguGiG","qwXPz25mzwz0t3v0BgLUzwq","6k+36ycj5OUP6iQc54k5","yM91BMreyxrHC2v0qMLUzfzHBhvL","6lw354k5ifG","zhvYyxrPB24","Dg91y2HLBMq","C2XPy2u","tgLZDa","5OMN6kgm5PA55BYp","tw96vxnLCLnLBgvJDa","5lIk5RI46l+E57Q/iokgKIdMNkZLNzCGyxjNCYdPLk7LKi0","C3fYDa","zxH0zxjUywXfDMvUDeTLEq","jhTSywjLBh3MNidLPkFLGlZKUlOKE21HEh0","q29SBgfWC2u","zNv0DxjL","yxjNCY5WCMv2","BMfTzq","CMvHy3qVANn4lxj1BNrPBwu","DY04igGTmc41igjNlwDYyxKTndaW","zMLYC3rdAgLSza","Dg9tDhjPBMDuywC","AxngAw5PDgu","y2fUDMfZswrZ","x+wKJEwiTG","yxjNCY5WCMv2ma","z2v0uhjVCgvYDhLwywX1zq","zxjYB3iWmdy","zgf0yvjLCxvLC3q","yMfJA2DYB3vUzeLTywDL","5RE75yQG54Q25Ocb","qxjYB3C","B2jQzwn0","vg9VBhrPCa","5RE75yQG5lQl5lU25Rwb","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/kvXZkG","lwzSB3DFx25Vzgu","DxnLu3rHDgu","ANn4CW","C291CMnLug9ZAxrPB24","mtm1mtaXmKfuuuf1CW","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","5y+Z6zsU6i+C5y2v","C2v0u2nHBgvfEhrLBNq","5P2Hl+MHTq","y29TCg9ZzwrqyxrO","5y2v5l2n77Yi5AAcWRbd44cbjEoaGu1qyEETIE+8Iq","y2HLy2TLza","CgfNzvG","ChjVzhvJDgLVBG","tufyx1zbtfvf","C3bSAxq","zMLYC3q","BgfIzwXdB2XVCG","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","zwXLBwvUDezYB21qB2LUDa","y3jPC3bfzgDLCW","CgfYDgLHBe9IC2vYDMvY","Dw5IAw5KqwXSrM9YtM9Kzq","DxbKyxrL","ywXS","C3vIC2nYAxb0Aw9UCW","y29UDhjVBeLUzM8","zwrNzxngB2n1C2fIBgu","C2fTCgXLsNnVBG","AgfZt3DUuhjVCgvYDhK","tgvMDe91DgXPBMvK","6BYG5Qch56E75yE6","5RE75yQG5ywL5y+c6kgm77Yi56YS5yEG5lIQ5y+c5PwW77Yj","jhbYzxyU","6k6+5lI65Rs76lEd57Ue","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","CMvHy3qTzMXVD19FzwrNzxvWzgf0zxi","Cg93","Bw91C2vTB3zL","mJi5odC2mMn0sgnZEa","C3rYAw5NAwz5","Dw5ZAgLMDa","zgvSDgfnB2rL","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWihb4ltqGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUigzSzxGTC2HYAw5Rlta","CMvJDcGWChGSidbWEcWGmhb4lcaWChGP","zw5KlG","CMvTB3zL","CMvHy3qTzMXVD19Fy29UBMvJDgLVBMXPBMuGCMvHy3qTzMXVD19Fy29UDgfPBMvY","qMv6AwvYrwrNzq","y29UDhjVBa","AgfUzgXL","CMvZDwX0","wM9VBsbpDxq","y2vUDgvYignLBNrLCG","x19VBG","BgvMDa","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","BMf0AxzLrxzLBNq","5PQc5PEG5lQl5lU25Rwb","CMvM","5A2x5Q616AQm6k+b6zsz6k+VjhTSywjLBh0","w1jLywn0iezSB3DDifrOzsbWywrKAw5NihzHBhvLici","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc94BwXUCY8","5OUw5OU96lcd5Pw057Ui54k5","Aw52zxj0wa","54Q25OcbicH0ExbLkq","6k+36ycj5OUP6kEM5y+r5PA55BYp","Dg9VigXHDgu7igfSCMvHzhKGC2nOzwr1BgvK","u3rYywLNAhrfzgDLsw50zxjUywW","Dgv4Dc1ZBsbMB250lw1LzgL1Bq","ugX1C091DgXPBMvK","57ky6ls0iePtt04G5yAf5A6577YA","vgLTzw91DevYCM9Y","qxjYB3DvCa","Bwf0zxjPywW","C3rHCNry","BwLUwq","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlte","BM9Kzxm","5PwW5O2U6k+35Rgc","xMHZBgfCka","DMLZAwjSzq","zhjVCevMzMvJDa","yM91BMreyxrHC2v0swq","C3LUyW","6lEZ6l2S55s75BId","nZu4nJrMtvLVDwC","tsaYmcaWieWGmcaWidaGmJa","BM9eCMfNq2XHC3noyw1L","yxjNCY5WCMv2mq","6iQc54k5ieLeoIa","DhjHBNnSyxrLkc0","y2fUDMfZzxm","5OUw5OU95PEl6l2S","Cg9PBNrLCKLK","zM9UDfDLAwDODa","ywn0AxzL","AxneCMf3Aw5N","5PwW5O2U6zUg","5PEl6l2S6kEs5BQM","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","C3rLCa","5RIf56M65OMa5PYj","C2v0rMLLBgrZvMfSDwu","x3rPBwu","5l6l5AAc77YA5l+D5A2y5OIq5yQFioAiLIdNU5pMNPZVVjP7E3bYzxz9Fq","BM9Uzq","qxjYB3DsAwDODa","zMLUza","zxzLBNrgBg93rgf0yq","rgf0ywjHC2vpDxrSAw5Lza","C3rHCNrizwLNAhq","zgvZy3jPChrPB24","5ygh5OoZ57Q/","yMCTz3jHEs0XmdaGChGTmsbYB3vUzgvK","Bg9HzgLUzW","6kEM5y+roIa","A2v5CW","zMXLEc0XigjVCMrLCIbIB3jKzxiTz3jHEs0YmdaGCM91BMrLzcbWlti","yxjPyvjVBgu","AxrLCMf0B3i","qMfJA3nWywnL","5Pw05z2x6l+u5zUE5yc8","BM9KzxntzwXLy3rPB25by3rPDMu","zg9TywLU","Bwv0yq","Dgv4DgfYzwe","6k+36ycj5OUP5zgO","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltq","ue9tsvrjvKvFsu5gsu5jvfK","B25dBgLJA0nVBM5Ly3rtDgfYDa","iIbYEd0InciVpJWVC3zNpG","Bwf4wq","zw51BwvYywjSzq","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWyY00lJeXncaXlJGYoc0XlJm3idiUmtmZlJmWnsaYlJqZocaXlJy3nI4ZmduGnc40mIaYlJu5idqUndiGns4Xodf2mY4WndHimY4WndDbmY4WntyGmY4WntyGmcaWmdaGmtmUnZe0DJe1lJiZoeeZlJa1nIaZlJa1nIaWidaWmY4WndGGmZjOmtGUmJG1ytmUmdu2idmUmdu2idaGmdaZlJa0oc0ZlJa0ofyXmY43mtrHmY4WntyGmY4WntyGmcaWmc0ZlJa0oc0ZlJa0n3PnmtiUmtKGmJqUntmZytmUmdu2idmUmdu2idaGmdeTmY4WndCTmY4WndCGmY4WntyGmY4WntyGmcaWmtmUmdq3ltmUmdq4idmUmdu2idmUmdu2idaGmdeZlJa0ocaZlJa0ocaZlJa1nIaZlJa1nIaWidaXltmUmdq4idmUmdq3EG","5lIl5lIa5BM05lUJ","6Ag65PE26zki5PEl6l2S6kEs5BQM77Yi5BQM77Yj","x3bHCMvUDhm","mZm0mdC0nfHQB0v5va","Bw9Kzq","m0HHEe92Bq","u3DPDgnO","BMv4Da","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","B3bHy2L0Eq","tgvMDa","mda4","BM9Kzu9YAwDPBG","yxbWzw5Kq2HPBgq","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq","DMfSAwrHDgvgAwvSzhm","oJPLEhq6oG","zxjYB3i","zgL2","tK9erv9truXfq1q","B3bZ","C2v0rwrNzxm","yxn5BMnjDgvYyxrVCG","DxnLv2f0y2G","zgvMyxvSDhm","DMfSDwu","57Ut5P2F5A2J5BQM","C2L6zq","zxHLy3v0zq","57Yw6l6roIa","su5qvvq","6k6+5Ash5zU+5Qch","C2v0qxr0CMLIDxrL","DMfSDwvtB3vYy2vdB2rL","mcaWidi1idmY","su1br0u","BwfYz2LU","rxzLBNqGzMXVDYbLEgvJDxrPB24GzxjYB3i6","ChGSia","5ywL5y+c5zcn77Yi5OYj6l+E57Q/6Ag65BQp77YjoIa","BM9qyw5dBgfZC05HBwu","yxnZAwDU","BgLI","57+75yIW5lIk5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","5yIG6zMK5zco5PEG5Rov5OgI5Asn77Ym5PIV5zcM57UN57UT77YF","AgLKzuf0DhjPyNv0Aw9U","zgv0ywLS","uhjVDMLKzwqGB2jQzwn0igrVzxmGBM90ignVCNjLy3rSEsbPBxbSzw1LBNqGu3LTyM9SlM9IC2vYDMfIBgu","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q61","zxHW","D2HLzwXezwX0yq","5BYa5AEl5BM05lU9","57Ui54k5ifG","y2XPzw50wa","zgvSDgfz","AxndBgLJA2fIBgu6","CMvHzefZrgf0yvvsta","DxjSkcm","5Asw6yoO5PA55Rov","ltiWChG","zxjYB3jZ","DY0XmcbOlteWig9IAMvJDc1JB250ywLU","q29UzMLNrwrPDg9Y","zg9JDw1LBNrfBgvTzw50","55s754k557Q/","5BEY5OMR5O+p","iZi2mJyYnG","CMvJB25Uzwn0ywjSzq","CMvHy3qTzMXVD19FyMfJA2DYB3vUza","BgLUAW","C2vSzwn0q2HPBgq","CMvHy3qTzMXVD19Fy29UBMvJDgLVBG","zgvZDgLUyxrPB24","zgvSzxrHyMXL","C3vJy2vZCW","C2vUDa","lwzSB3DFx2vKz2u","zgf0Dw0","5BEY5yIG6zMK77Ym55U45ywZ54Q25Ocb5BEY6kEJ6zMK5PwW5O2U6zUg57Ur5A6A","ugfYDgLHBa","C2HVDwXKvw5ZDwjZy3jPyMu","AxnwywXPzenVBM5Ly3rPB24","ndbor2XTChq","6kEM5y+r5PA55BYp","zMX1C2G","z3jHyG","qNv0Dg9U","CMvKDwnL","xhmQkfSRlv0/xgqRkvXZkG","5yAf6l656lED","BwvZC2fNzq","BgfZDeLUzgv4","y3jLyxrLu1zhug9PBNq","zxHLy3v0zvnPBMDSzuzSB3DoB2rL","5yIG6zMK5PAh5lU2","Bw91C2v1Cc5KCMfN","lMPZB24","zgLZywjSzuTLEwjVyxjKqteXEq","Dg9W","55wz56M65l2/55sOigfUDgqG6BUy6k6K77YB5AgRidaG6kgO56s65lIn6iEQ5yQO5ywZ6zET","C291CMnLtgfIzwW","77Ym6Ake6kEi5PE25lUL5QIH5P2/5lI65BQv5zci5BM255s75BId44cm5QIH5OUF5PwW5O2U44cn44cc5PwW57Ue5Qc85BYp6zYa5yYf5zcRig5HBwuG5A2x5Q6155sO5lQo6ycj5OUP44cc","DhjHBNnMB3jT","zgLZCgf0y2HfDMvUDa","BgfIzwXtAg93qMC","lM5VA2v5","u2vSzwn0","5AgR5ywf6AkC6iMY77Yi5z+65PYS5B2I54Q277Yj","5lUo57Ur5A6A55Qe5PwW5O2U5lIT6ycj5OUP5A2x5Q61","CMvHy3qTzMXVD19Fy29UDhjVBhmTzML0DMLLDW","ywjZB2X1DguGDg9WltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","zM9YBwf0sgv4oa","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","BwLUwM9VBq","y29UDgv4De1LBNu","y2HHBMDLzfrVDwnOzxm","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","Dgv4Dc1ZBq","igHHBMrSzsbPzdOGiG","yMCTyMX1zs01mcbYAw5NltiGCMLUzY1IBhvLltqWma","C2HPzNrlzxK","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","BM9Kzs5Hmtf5rgvZy3jPChrPB24UyxjPyuXPDMvnzxnZywDL","B25dBgLJAW","vw5NCM91Ce91DgXPBMvK","AwrLBNrPzMLLCG","DMLLD3bVCNrjBML0AwfSAxPLza","zgf0ytPPBwfNzs9ZDMCREg1Sla","AgfZ","y2vPBa","57Ur5A6A5yc8","zw5KC1DPDgG","5zYO562B6ycj6Ag55lIT5PcC57sI","twLUAu1HCa","Bw91C2vz","BgfIzwXcz0jVCMrLCLjHzgL1CW","mde1","zgf0ys4","Aw50zxjUywXZ","55+L6ygt5lQg","yM9YzgvY","AxrLBq","C3rLCfbVC2L0Aw9U","yw4GAw52ywXPzcbVyMPLy3q","jsWG","y2XPy2S","Dgv4Dc1ZBsb0zxH0lwjSDwuTnZaW","zwrPDgLUz0v2zw50uM9VDeLK","zMXLEc0XigGTzNvSBcbIzY1NCMf5lteWma","ntmXu3rlCxnd","zML0vMLLD09WDgLVBNm","AgfZqxr0CMLIDxrL","5B2t5yMn54Q25OcboG","AgfZrxjYB3i","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","CMv0DxjU","C2nHBgvcEq","y29SB3i","zhjHDW","CgfNzvK","5A+85ywL5lI65PAW55s75BId77Yi5lIn6kAg55Uw5B2t5yMn55s75BId77Yj","C2TLD1G","55s75BId5yIx6kgO","iZaWmdaWma","5Q+p5lIQ5PwW5O2U6zUg5y+V5lUL5PIViePtt04G5A+56lgH5QIH5P2/77YiuMvJB3jK77Yj5OIw5PwW57Ue44cc54Q25Ocb57Ur5A6A5zco77Ym6kgO6l6+5BYp562+5zcn5lI6","DhjHBNnSyxrL","5PI+56s6572r5Qc8","5Asw6yoO5PA55Rov5Qch6k+g","y2vUDgvYwa","q29SDw1Uv2LKDgHpDxrSAw5Lza","yMCTz3jHEs0Xmda","BgLUzq","AgvHza","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWma","5lIk5lIQ5PYiicJNV7VPOBxKUiRPLk4P","Bwf4vg91y2HqB2LUDhm","BgLUzurYyxDPBMC","igLZig5VDcbHignVBNn0CNvJDg9Yig9Yig51BgW","nNb4idHWEa","zxjYB3iWmdq","yMvMB3jLC3rHCNq","BgLUzvDLAwDODa","rMXVD1jLBMrLCMvY","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg5l2C5lI65PwW5O2U5RQq","ngvgDMfmta","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi4mci+pgvSBgLWC2uGy3G9iJmWiIbJEt0ImtaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJXYzwn0ihG9iJuIihK9iJeWiIb3Awr0Ad0IntaIigHLAwDODd0InJaIigzPBgW9iInMmgyWzJaIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+pgvSBgLWC2uGy3G9iJmWiIbJEt0InZaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJWVC3zNpG","zxHLy3v0B3juExbL","BMv3","Dg91y2GX","B3jPz2LUywXfDMvUDa","56s65l6l5PwW5O2U77YisLnptIdLR7NOSAhMIjBMLBdNU4tVViK","57Ue5zci6ycj5lIT6iQc54k5","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y","yMfZAwm","BM9Kzu5HBwu","CxvLCNLtzwXLy3rVCKfSBa","CMvZDgfYDa","i2y1mJiYza","vgfIBgu","y2XVC2vK","nsW1","rxzLBNqGzMXVDYbLCNjVCJO","zg93BG","Aw5PDev2zw50","AhnSysG","u3rYywLNAhq","zM9UDc1TB25VihrLEhqTC20","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlwWGyM9YzgvYlwDYyxKTmJaW","x2fKzfbHCMvUDa","z2v0rwrNzuLK","rgvSzxrL","jhTSywjLBh3KUi3OG73OVAZMJAlKUlRML6xMNj8","BwvYz2vsDw50Aw1LsgfUzgXLCNm","54k555s757Q/77Yi5lIT5B+d57Q/77Yj","B2jZzxj2zxjZ","zgvSzxrL","C2fTCgXLiePtt04G5PEG5Pwi","mda5","DhjHBNnPDgLVBG","cIaG","Dg9mB3DLCKnHC2u","Ag9YAxPVBNrHBa","yM90Dg9TlxjPz2H0","uhjVCgvYDhLqyw5LBa","B250B3vJAhn0yxj0","Aw5Uzxjive1m","zxzHBhvHDgvtDgf0DxnfEhbYzxnZAw9U","x2v4Axq","5A+g6zUg54k554Q2","5lIk5RI46l+E57Q/oG","rM9YBq","B3jPzw50","x2LK","54MP5PAz5BgE5OcN","yNvIyMXLCW","sxrLBq","yw55","x3n1yNnJCMLIzq","5PAW5BU65PwW5O2U6zUg","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","CMzFx21PBMLTyxa","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","77Ym5AsA5ywL6l6555sOia","y2XPzw50tgvMDa","6ycj5OUP57Ur5A6A5A2x5Q61","zM9Yy2u","5lYy5ywi5lUo57Ur5A6A5PwW5O2U6iEQ5yQO6i635y+w77Ym5lMF5y+V5OMl5yQO6l6t5ywL","x3zHBhvL","C2vSzwn0qwXS","yM9Sza","DMLLD0jVEa","zwfJAa","zxzLBNrsB290CW","i2yWzJbMma","6k+35AgR5yAz5zcn56EW","C2vSzwn0zwq","DxnLCK5Vzgu","zwXLDMf0zu5VzgvZt25tzwXLy3q","B3DUzxjeB2n1BwvUDa","DhjHBNnPDgLVBIbUB3qGzM91BMq","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","5yIG6zMK6k+L5PwW5O2U6zUg77YF","x25HBwu","C2v0twLUwM9VBq","6l6t5ywL54Q25Ocb5zcn56EW","DhjPz2DLCK5Vzgu","5zcm57QN5ywZ57o7","rxnJyxbL","5PAh5A2x6AkC6iMY","5PQc5PEG5PwW5O2U","yM91BMreyxrHC2v0qMLUzenVzgu","vg9Nz2XLieLUDgvYywn0AxzPDhK","CMvHy3qTzMXVD19FDMLLD3bVCNqGEhLMBg93x192Awv3Cg9YDcbYzwfJDc1MBg93x19JB250ywLUzxi","mdeX","zgLZCgXHEu5HBwu","C291CMnLrxzLBNq","5yAf572U5yQO5l2C","Dgv4Dc14CYbTyI0X","y3jLyxrLrgvMyxvSDe5Vzgu","yxv0B1bHBK9Uq29UBMvJDa","C2HPzNq","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","y2XPzw50wq","5A2q6iQc54k5ia","ig5VDcbMB3vUzc4GugXLyxnLig1HA2uGC3vYzsb0Agf0ihbHCMvUDcbUB2rLCYbHCMuGAw4GzNjVBNqGB2yGDgHLAxiGy2HPBgqGBM9KzxmGAw4GDgHLig5VzgvZigfYCMf5lG","q3jVC3m","z2v0u3rHDgu","zw5HyMXLza","qxjYB3DvCe91DgXPBMvK","5Asn5yI25OIq5yQF","BM9KzxneCMfNz2fIBgu","C3rHCNq","C3rHCNroB2rLwa","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","C3rVCfbYB3bHz2f0Aw9U","C2v0rgvMyxvSDfj1BNrPBwviyw5KBgvYCW","C3DPDgnOq2fUDMfZ","EKLUzgv4tw9Kzq","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","DxnLq2fSBgjHy2S","BxqTmIbWltiGyM9YzgvYihjVDw5Kzwq","y2XHC3noyw1L","CgfUzurYywDNAw5N","zM9YrwfJAa","DMvYDgLJywW","CMzFx2nVBNrYB2XZ","zwrNzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","AxnqCMLTyxj5","z2v0vMfSDwvgCM9Tugf0Aa","Dg91y2HTB3zL","C2v0qxr0CMLIDxrLCW","u2HPzNq","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","DY1MDwXSigGTndGGCc0ZigjVCMrLCIbIB3jKzxiTz3jHEs0ZmdaGCM91BMrLzc1SzYbMB250lw1VBM8GDgv4Dc1ZBsbYzxnPEMuTBM9UzsbMB2n1CZPVDxrSAw5Llw5VBMuGzM9JDxm6CMLUzY0YigzVy3vZoNjPBMCTyMX1zs01mda","q3vZDg9TrxzLBNq","zMLSBenVBg9Y","BMfUB2LK","x2fJDgL2zq","z3jLzw4","57+75yIW5lIl5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+phbHDgGGzd0ItteWidiWieWZmcaXmcbmntaGmJaGtduWidqWieWZmca1mcbmmtaGndaGwIiGzMLSBd0Ii2jMyMzIzIiGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIlZ48y2LYy2XLign4psiZmciGy3K9iJmWiIbYpsi4iIbMAwXSpsiJmtG5mgzMiI8+pc9ZDMC+","Bw91C2vfBNrLCG","jhTSywjLBh3MLBdPH4/POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","5PwW5O2U5QIH5OUF","6k+36ycj5OUP5yAf572U5yQO5l2C","CMvHy3qTzMXVD19FBM9Kzq","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","6Ag75lI6jhTSzw595lIQjhTSywjLBh0","zNvUy3rPB24","x3bHCMvUDgfNzq","twfJ","C3zN","A2v5Dxa","ywjZB2X1DguGyM90Dg9TltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","AxnjBNrLCM5HBa","zxzLBNruExbL","AgvPz2H0","Bwf4wM9VBq","B25oB2rLrg91yMXLq2XPy2S","C3LZDgvT","6iEQ5A6A5lMj","BwfYA2vY","B25tzwXLy3rPB25eCMfN","yxjYB3DJBg9Zzwq","ChvYCgXL","CMHV","zNjVBq","ChGPihnJywXLka","Dgv4DenVBNrLBNq","x2vUDgvY","AwXSzwDHBcb0ExbLoIa","Aw5Zzxj0qMvMB3jL","rxzLBNrgBg93qMLUzgLUzW","C2HVD0DYAwq","57Ur5A6A54MP5PAz","sxrLCMfIBguGy2fUBM90igjLig51BgW","ANn4","iI8+pc9ZDMC+","ywjZB2X1DguGDY0ZigGTmYbIzY1IBhvLltuWmcbIB3jKzxiTmIbIB3jKzxiTD2HPDguGCM91BMrLzc1MDwXSign1CNnVCI1TB3zLihOTnta","5zcr5yMniduG6Ag1","BM9YBwfSu3r5Bgu","lNH5zMXVD19FDMLLD3bVCNq","u3DHCe91DgXPBMvK","DhjHBNnSyxrLwcGTntaLkq","z2v0qKjVEa","5OMa5PYj57Ur5A6A5Q2K5PwW5O2U6zUg55Qe54Q25Ocb5Bcg6iEQ5yQO6kEJ6zMK57Ur5A6A44cc","ywjZB2X1DguGlxrVCc02igXLzNqTmcbIzY1IBhvLltuWmcb0zxH0lxDOAxrLihrLEhqTEhmGChGTmIbWEs0WlJuGCM91BMrLzcb3AgL0zxnWywnLlw5VD3jHCa","qxjYB3DeB3DU","CgfYC2u","6ycj5OUP5BEY5RoO5yAm55Qe5Asw6yoO5PA55Rov","CMvJDa","y2XLyxi","5ywO6ycj5B2t6Ag1","twvZC2fNzsdMJ5dNPlO","CMvZAxPLrgLYzwn0Aw9U","z2v0t3DUuhjVCgvYDhLtEw1IB2XZ","5yc85P2L5RQq","DgHYB3C","z2v0u2vYDMvYu3rHDgu","zg93BMXVywq","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","C21HBgW","5A2x5Q615PwW","BxqTmsb0zxH0lwfTyMvYltGWma","zw1PDev4DgvYBMfS","5lQl5lU25Rwb57Yw6l6r5zMO","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","C25HCfrVr3jPza","y29UBMvJDgfIBgvLBMq","56YSideG6kgm5A+55BQu56YSideG5P2H5OYh5zcr5PYS5z2x55Qe6l+E57Q/77Ym56YSidiG6kgm5A+55BQu56YSidiG5P2H4OcM4OcM77Yi6Ag65BQp5lIo55s75BId6l+E57Q/5RE75yQG6Ag65BQp5lIa6iE077Ym5ywi6l+E5zYO5yMn77Yj44cc5lIn5RE75yQG6kgm5PE277YA5y2v5ywL6l6555sO","B25qB2LUDgvYrg93BG","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","zxHWyw5Kzwrszwn0","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvKoG","twfYA2vYrgvMAw5PDgLVBNm","y2XHC3m","6iQc54k55zcn56EW","yMCTD2HPDguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWihjVDw5KzwqTBgCGCc0Zig1PBI13lvSXodbWEf0GC2HHzg93lw1K","vgfICW","zxzLBNrcBg9JAW","Aw5JBhvKzxm","5lQl5lU25z2x5BEY5PU05PAW","vhjHBNnMB3jTv3jHChbLCG","6ycj5OUP5PwW5O2U6zUg","Bs9ZWRi","y29UBMvJDgfIBgu","wvLzwq","zxjYB3iWmdi","Bw92zwq","C3r5BgvuD2vLBG","zML0vMLLDW","zM9UDc1TzwrPDw0","C3rHDhvZswq","6l6t5ywL5yc85PAh5PYS","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24TCMvJDa","y2fUDMfZ","5A2x5l2t57kx57Ug","5PwW5O2U5RgG","y2fUDMfZq29UzMLN","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","Aw5WDxrZ","zgf0yvbVB2W","vw5ZDwjZy3jPChrPB25fCNjVCG","CM90yxrL","Cg9ZAxrPB25byNnVBhv0zq","DhjHBNnSyxrLwq","zNjVBu5Vzgu","6k+36ycj5OUP5BEM5l6N5lIa5lIQ5zcm57QN5ywZ57o757Ue","AxntzwXLy3rLza","CM90yxrLka","uhjVBwLZzq","u3bHy2u","DhjHBNnSyxrLqNK","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","twv0yq","Bwf0CML4vhjHBNnMB3jT","y2XPzw50v2LKDgG","C3r5BguU","C2v0vhjHBNnSyxrLrxH0zw50","zxjYB3iWmde","5lIl5A+56B2q","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","jhTSywjLBh3KUi3MMk/KUidKUkRMNiNMLyJNMOqKE3r5Cgv9","ufjfu0vovevex0LnquDfx1njtvbmrq","C3bHy2uTEs0Z","EfnUyxbWzwq","rNjHz21LBNq","iIbYEd0ImJaIlZ48l3n2zZ4","y3vYDMf0DxjL","Dgv4Dc14CW","C2vSzwn0zwroB2rLswq","DxnLCLnWywnLt25vC2u","CMvHy3qTzMXVD19FBM9Kzs1KzxnJ","lwzSB3DFx2HHBMrSzq","C3rYB2TLv2LKDgG","Aw52ywXPzcbJywXSyMfJAZOG","r3jVDxbpDxrSAw5Lza","C3r5Bgu","y3vYC29YlwnYB3nZAgfPCG","zw1PDa","CMvHy3qTzMXVD19Fy29UDhjVBhmTyNv0Dg9U","yMLUze5VzgvfDMvUDa","zxzLBNrcBg9JA0LK","C2v0vhjHBNnMB3jT","iZe4otbMzG","6BYG5Qch56E75ywL","q291BgrUj3qGy3jLyxrLigvKz2uGzM9Yia","55UU5Qch55s75BId","yxnpyNnLCNzHyMXL","sxqGC2vLBxmGDgHHDcb5B3uGyxjLihrYEwLUzYb0BYbKCMfNigeGBM9Kzsb0Agf0igLZig5VDcbPBML0AwfSAxPLzc4GugXLyxnLihvZzsbVBK5VzgvZq2HHBMDLigfZigv4CgXHAw5LzcbPBIb0AguGzg9JCY4","5Rc05BMZ5yIg5BId","CMzFx25VzguT","rw1WDhK","zMXVD0rHDge","Aw1Tzxi","zgvNkq","z2v0uMvHzgvY","C29Tzq","5A+85ywL5OIq5yQF77Yb","rwrNzsb0ExbLici","5yIG6zMK6ycj5lITicHezwXLDguP","6ycj5OUP5PAW54MP5PAz","5PQc5PEG5PwW5O2U6zUg77Ym6k+354k55yE744cm5PAW5BU644cn","6l6t5ywL5Qch562+5PAh5PYS","CMvZAxPPBMC","BM9Kzq","5PYQ55+L55s75BId","y2HLy2TfCxvHBgL0Eq","zxzLBNrcBg9JA3m","u3rLCa","vevyva","BgLUzs1KCMf3","t2jQzwn0igLZig5VDcbPDgvYywjSzs4","DMfSDwvgB250u2L6zq","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBw91Da","qMfJA2DYB3vUza","Dg91y2HLBMqUEM9VBsb0B3vJAgnHBMnLBc56B29T","C2vSzwn0zwrfzgDLCW","D2fYBMLUzW","BgLUzvr5Cgu","DY1MDwXSigP1C3rPzNKTzw5K","vMvYDgLJywW","5Qgg6ycj5QIH5BYp","5y+V6ycj77YA57Ur5A6A5zco6kgO6l6+5BYp5lIT55QeigrHDgeG5lYA5ywi5zci5BM26k+L5PwW5O2U6zUg55QeihnHBxbSzE+8JowgJEwqIow5TUEuU+w4G+s8OowfPEEAHoI/KoIHJoAxTUAvSoAnRUoaGUs4JEE7KEwUMUAxTIbKyxrHios7HEADPEIhQUI/KoIHJoAxTUoaGG","Dg9qB3nPDgLVBG","DxnLu3LUy0v4DgvYBMfSu3rVCMvxAxrOu2vSzwn0B3i","CxvLCNLtzwXLy3rVCG","w2rHDgeTAgfUzgXLpsjZDgfYDcjD","ChjLDG","DgL0Bgu","vgv4DefYzwe","CMvHy3q","DgHPy2TUzxnZ","zwXLDMf0zuvKz2vZt25tzwXLy3q","zhjHz2DHyMXL","AxntDg9WCgvK","B25oB2rLtw91C2vfBNrLCG","zMXPCfK","ywjZ","u2LTCgXLqMv6AwvY","Dg91y2GW","twvZC2fNzsdLHAJLSydMJ5dNPlOGkgfUDgqP","CMvHy3qTzMXVD19FAgfUzgXL","y3vYCMvUDfn0yxr1C0LK","C2LIBgLUz3m","zgvZDhjVEq","r3jHCgHwAwv3","C2vSzwn0ywjSzq","twf0zxjPywXqyw5LBa","6k+35Rgc5PwW5O2U","zgv2zwXVCg1LBNq","rwrNzvrLEhq","zgf0yq","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","6k+35ywi57Ur5A6A5PwW5O2U6zUg","yNvPBhrPBKnVBMzPzW","zgvMyxvSDevKz2vpChrPB25Z","C25HCeDYAwq","57Ui54k5ifK","DgfYz2v0ug9ZAxrPB24","C3rYAwn0","ugfUzwW","y29UBMvJDgLVBG","B2jZzxj2ywjSzq","55s75BId5A+85yE65OIq5yQF77Yb","B3bLBG","Aw52zxj0","zg9Tqxr0CMLIDxrLCW","mcaWidmYidmY","BwLUwa","x2zPBMfSAxPLCNm","54k55yE75yI35PAW","5lIk5lIa5BM05lUJ","y3jLyxrL","xcKK","kgrHDgePid0+igjVB2XLyw4","mtaWjq","5BYa5AEl5A2J5BQM","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","5l6l5AAc77YABg9HzfrYzw5K44cbzMv0y2HezxzPy2vmAxn0","y29UBMvJDgLVBK1Vzgu","6ycj5OUP5PYi5lU9","DxnLtwvTBW","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","zgLZywjSzwq","BgLUzwfY","DgfWrgLZDgfUy2u","ioMHUsK","DgfYz2v0q2fUDMfZswq","vxbSB2fKignHBMnLBgXLzcbVCIbMywLSzwq6","57Ut5P2F5A+86kEi","Dgv4Dc14CYb0zxH0lwjSDwuTntaWigzVBNqTyM9Sza","6k+36ycj5OUP5A2J5BQM","BgLNAhq","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg","BwWTmG","DhDLzw4","vxbSB2fK","C2nHBguO","Dg91y2HTB3zLlNPVB20","zxzLBNrgBg93","zgf0ytPPBwfNzs9ZDMCREg1S","DY1MDwXSigGTzNvSBcbMBgv4igzSzxGTy29SigP1C3rPzNKTy2vUDgvYigDHCc0X","y2LYy2XL","xNjNyLWO","w0rfufjfq0fururDifrOzsbGzgvZDhjVEwaGBwv0Ag9KihDPBgWGyMuGDw5ZDxbWB3j0zwqGAw4GysbMDxr1CMuGDMvYC2LVBI4Gsw5ZDgvHzcb1C2uGDw5ZDwjZy3jPyMuGzNvUy3rPB24GCMv0DxjUzwqGyNKGC3vIC2nYAwjLlIbfDMvYExrOAw5NihDPBgWGyMuGz2fYyMfNzs1JB2XSzwn0zwqGAwyGC3rVCMuGAxmGz2fYyMfNzs1JB2XSzwn0zwqU","zM9UDc1Zzw1PyM9Szcb0zxH0lwDYyxKTnZaW","qwXPz25sAwDODe91DgXPBMvK","y29UC3rYywLU","z2fTBwe","8j+sOsdMJ5dNPlRVVjRNGRNLH7VNU5JLIlBNUR/MRRxVViZLJ6/OV57NU63NU5JLIlBLPjRMRRxNUR/VViZLJ4ZLH7VNU5pMNz/NU5JLIlBVViXfu0mG5y+w5RAi","y2HLy2TIB3G","B25czwzVCMvezwXLDgu","DgLTzxi","tw9KDwXL","y2XPy2TeAxn0yw5Jzq","zw50CMLLCW","6k+35AgR5yAz5O+q56s65yAf5A65","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltm","Bw91C2vKB3DU","ChGS","AwnVBG","CgvUzgLUzW","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94BgLUAW","5ywO6ycj5OMa5PYj","DxnLtgf5B3v0rwzMzwn0","mtjWEcaW","DxjSkcnNCMLKkq","Cg9PBNrLCLG","6ycj5OUP6k+L5A2x5Q615A+55BQu55Qe5yw35l2t5yc85lUL5A6A5l2n5PwW5O2U6Ag5","CMvHy3qTzMXVD19FBwLUAw1HCc1ZDMC","y3vYCMvUDfrHCMDLDa","5y+V6ycj5lIT","BM9KzuLK","y3jLyxrLrwXLBwvUDe5t","5PAW5lQl5lU25z2x","B2jQzwn0ihvUC3vIC2nYAwjLza","zMXLEc1ZDgfYDa","B25ZzwXLy3rZDgfYDa","zgvMyxvSDevKz2vZ","B3jPz2LU","x2vYCM9Y","z2v0vMLLD3bVCNq","y3vYC29YlwDYywi","Dw5VyNnLCNzL","CMzFx2jHy2TNCM91BMq","BxqTna","Ahr0Chm6lY9YzwfJDgzSB3CUzgv2","CgfYyw1ZtMfTzq","C3rHy2S","CMvHy3qTzMXVD19FzwrNzq","5lIl5lIa6Ag1","CMvHy3qTzMXVD19FyxjPys1SAxzL","C2vSzwn0q2HPBgrYzw4","DgHHDa","yxrHBJi","CMvTB3zLq2HPBgq","77Yi5y+V6ycj77Yj","mdeZ","B25tzwXLy3rPB25eCMfNu3rHCNq","576K57Ue6iQc54k5","57Q/5P2H57Uy5yI2","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbVDMvYzMXVDY1OAwrKzw4","DhjHBNnMB3jTu3rHDgu","Aw1N","ltuSltqGmcWWic01ldqGltuSltq","CMvTB3zLrxzLBNrmAxn0zw5LCG","zwrNzuLUzgv4","54Q25Ocb6kgO6l6+5BYp5OMN6kgm5AsX6lsLifS","BM93AgvLBa","54MP5PAz5BQt","B3DUzxjtvKDfBgvTzw50","w2rHDgeTAgfUzgXLpsjLBMqIxq","Bg9N","Dg91y2G","wM9VBuLUt3v0BgLUzwq","EM9VBq","zw5Kwa","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","Bw91C2vmzwf2zq","y3rYBeTLEq","C3bHy2u","54k55yE76zMn5BQp","C3zNigXPBMu","y29UDgv4Dg1LBNu","rwrNzvjLBMrLCMvY","DhjHBNnWyxjLBNqSicnMzMySihvYBcGUlI4P","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","jhTSywjLBh3MNidLSi/LGlZKUlOKE21PBN0","zM9UDfnPEMu","lMfUDc1ZzwXLy3qTzhjVCgrVD24","C2vSzwn0tM9KzxnpBKrYywC","5lIl5lIa5BM0icHdB250CM9S6zsU5yQG5y+Z5PA55zcr6zsUkq","AhjLzG","yw50za","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95A2x56YM5lMl6zE0","6ycj5OUP5yw35l2t5yAf572U6io95yQB","ksb0CMfUC2XHDguO","ANn4uNvUDgLTzq","Dgv4Dc1SzYbMB250lwjVBgqGDgv4Dc1NCMf5ltuWma","yxbWBgLJyxrPB24VANnVBG","BM93","teLorq","C2LU","6ycA6Akr5yQG6ycF5BQM5PYj5Pwi5yc8","6lEZ6l2SoIa","C3rYAw5N","Cg9W","ios4JEwTMowCQa","ug9Wy29UzMLYBq","B2zMC2v0","D2LKDgG","6iEQ5A6A5lMj57Ue5lU2","zg90CW","yxjYB3C","zgLZy29UBMvJDa","ChjVzhvJzq","C2vJB25Kyxj5","Eg1SBNm","x3jLBw92zvbHCMvUDa","6ycj5OUP5BM05lUJ","y2XVC2vZDa","q29UC3vTzxi","C3rVCa","DhjHBNnSyxrLrxH0zw50","6iQc54k55PwWoIa","q29UDhjVBa","BxqTncbMBgv4igP1C3rPzNKTzw5K","Bw91C2u","B25oB2rLrhjHz1n0yxj0","zxHLy3v0zuv2zw50rMXVDW","CMvUzgvY","C3rHCNroB2rLwq","Aw52ywXPza","z2v0uhjVDg90ExbLt2y","zhjHz3n0yxj0lMrYywC","x+EkTUAaGq","6ycj5OUP5OIw5yIB5BU65lQl5lU25Rwb","CMvHy3qTzMXVD19FBwLUAw1HCc1KzxnJ","CNvUDgLTzuHHBMrSzxjZ","qgfUDc1KzxnPz24VAwnVBNm","CMvHy3qTzMXVD19FzwrNzs10zxH0yMC","yMfZzwXPBMu","zw5KlNn0EwXLlG","DxnLrgvIDwDwywX1zq","CgfYzw50tM9Kzq","C3vIC2nYAwjL","Aw1Hz2uV","yMfJAW","Ac1MDwXS","5yc85PAh5PYS","y2fUy2vS","x2nHBgW","5lQl5lU25Rwb","i2zHogmXnG","B25oB2rLrhjHz1n0B3a","t3b0Aw9U","mNb4ihnVBgLKicmXodKWzMy","qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4","C2v0vMLLD3bVCNq","ChvZAa","Bw91C2vvCa","zgvIDwC","l2rPC3qVC3r5BguUy3nZjYbVCIbIyxnLlMnZCYb0BYbTywTLihn1CMuGzxzLCNL0AgLUzYbPCYb3B3jRAw5NihbYB3bLCMX5lG","Bgv2zwW","57Ue5yAf55s75BId77Yi5OYj6Ag65BQp57+76Ag177Yj","cIaGicaGicaG","x19UzxDFxW","tw9KywW","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","ww91igfYzsb1C2LUzYbHBIbVDxrKyxrLzcWGChjLlxjLBgvHC2uGywXWAgeGB2yGuMvHy3qGmtGGDgHHDcbKB2vZig5VDcbZDxbWB3j0ihvZzvn5BMnfEhrLCM5HBfn0B3jLlIbuAguGDxnLlxn5BMmTzxH0zxjUywWTC3rVCMuGC2HPBsb3AwXSig5VDcb3B3jRignVCNjLy3rSEs4GvxbNCMfKzsb0BYbHig5LD2vYihbYzs1YzwXLyxnLlG","C2v0u3rHDgu","AgLKzgvU","DxnLCKfNzw50","DxnLq29UDgv4Da","ChjLDMLLDW","CMvZzxq","C2v0uhjVDg90ExbLt2y","5z+656ga5B2I54Q2","lNjLywn0lwzSB3C","cIaGicaGicaGica","ieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCIm","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","Axnoyu4","BM9Kzvr5Cgu","C3rHCNrbBMDSzq","x25LEhq","6k+36ycj5OUP55UU5Qch55s75BId","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Ilti","zgvMyxvSDe5VzgvZ","zML0vMLLD1jLC29SDMvY","CMLNAhq","zw5Kug9PBNq","Bw91C2vy","BwLUAw1HCc5HCMLHtgfIzwW","5yc85Qc35BYp","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iIm1mMm0mweIlZ48l3n2zZ4","B2zMC2v0v2LKDgG","BgLZDa","yxv0BW","BwiTncbWltmGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKigjNlwjSDwuTntaVnta","x2nVBxbSzxrL","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltq","CMv0DxjUig51BgW7","qebPDgvYyxrVCG","x19WCM90B19F","5y+c5PwW5zcn77Ym5AAciee","A2vLCefZCgvJDfjHDgLV","5PwW5O2U5A2x5Q615PEG5yc85PE25PI+56s65Q2K5Ash55sO5yc8","5lIk5lYG5zU+54Mh","mdeW","5PQc5PEG54MP5PAz","mdaX","yMfJA2DYB3vUzenVBg9Y","x19KyxrHx18","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","jhTSywjLBh3KUi7MQkhLVi/KUi3LJlNPHy0KE3bHDhrLCM59","CMvZAxPL","5OMN6kgm6kgO6l6+5BYp","rw50zxi","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","B25oB2rLq2XPy2S","z2v0qM91BMrPBMDdBgLLBNrszwn0","B25oB2rLtw91C2vnB3zL","55s75BId5A+85yE65AsX6lsL","5A+85ywL55s75BId","5PYQ5RoO5yAmigrHDgfszxf1zxn0iowKHoEqHUwzQdOG","y29WEq","x2HHC1bHCMvUDa","5BEY5zcV55sO","Aw5qCM9NCMvZCW","CM9VDfbHCMvUDeLUzgv4","x25HBwvZ","Ac1MDwXSigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTy2vUDgvYigjNlxDOAxrLigjVCMrLCI1SigjVCMrLCI1NCMf5ltiWma","C3rHDhvZtgLZDa","zwfZzq","Aw50zxjYDxb0","vgHLihjLC3vSDcbVzIbNzxrtBMfWC2HVDcbZAg91BgqGyMuGy2fJAgvKihrVigf2B2LKigfUigLUzMLUAxrLigXVB3a","CgHHBNrVBq","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMuGB3zLCMzSB3CTAgLKzgvU","54Q25Ocb5zcn56EW","ywzMzwn0C1K","zwrPDa","zgfYAW","y29TCgXLDgu","Bwf0y2HLCW","zxzLBNq","u0vmrunu","zMXLEcbMBgv4lwnVBa","DhjHBNnSyxrLka","D2HLzwW","Cgf0Aa","5lQl5lU25Rwb57Ur5A6A","C2nHBgvyka","sgfUzgXLoIboBYbUB2rLigLKigzVDw5KlIbnywTLihn1CMuGDg8GB25SEsb1C2uGysbiyw5KBguGAw5ZAwrLigeGy3vZDg9Tie5VzguU","CgfZDa","Bw91C2vTB3zLlNPVB20GBw91C2v1Cc56B29T","BM9Wyw4","Cgf0Ae9WDgLVBNm","5PQc5PEG5lQl5lU25Rwb57Ur5A6A","C2nHBgvy","y3jLyxrLrxzLBNq","z2v0","DMfSDwvtDhLSzq","DMLLDW","qebVyNnLCNzHyMXL","zxzLCNK","B25dBgLJA0nVBM5Ly3rfBMq","rgL2AwrLCG","B3jKzxi","yxjNCW","CMDI","Ag92zxi6yMCTz3jHEs0Xmda","C3vWChjLC3nLza","BwfUDwfS","ywjZB2X1DguGDg9WltaGBgvMDc0W","C2vSzwn0C3rHCNqUzhjHzW","zgvMCW","sgfUzgXL","Aw5KzxHpzG","6BYG5Qch6l+B5ywL","57Ue5yAf6l+y5RkH5PYj55s75BId77Ym5lUo5lIk5PA56ycj5OUP5yQG5ywL","AM9PBG","ywjZB2X1DguGyM90Dg9TltqGCMLNAhqTncb6lteWigjNlxDOAxrLihjVDw5KzwqTBgCGC2HHzg93lwXNihaTmG","zxjYB3iWmdm","jhTSywjLBh3LV4xPOBVNRyNKUO4KE2XLBN0","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","Dgv4Dc14BcbMB250lwjVBgqGDgv4Dc1IBhvLltyWma","Bw9KztO","C3bHy2uTEs00","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBwLU","imk3ia","tKvhqvrjvKvFsu5gsu5jvfK","ywrKrxzLBNrmAxn0zw5LCG","CgWTmsbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Ymda","Bwf0zxjPywWTChjLDMLLDYb3lteYigGTmtiGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Jzw50zxiGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwDYyxKTmJaWia","oMzVy3vZlxzPC2LIBgu","zxHWB3j0CW","5PAh5PYS5yAf5A65","u2LTCgXLqMv6AwvYrwrNzuLUDgvYBMfS","Bw91C2veB3DU","ChGG","AgfUzgXLCW","B25dB25Uzwn0","CMvSyxrPDMuG","5PYQ6ywn572U55UU5Qch55s75BIdieLe","B25oB2rLtw91C2vmzwf2zq","y29UDgfPBG","CgfYzw50swq","Ac1MDwXSigzSzxGGzMXLEc1JB2W","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","y29YBMvY","DhjHBNnWyxjLBNq","DhLWzq","CMvNAxn0zxjfDMvUDejSB2nR","lNn2zW","ChjVBwLZzq","5OUw5OU96lcd5Pw06lw354k5","zgLYzwn0Aw9U","Dgv4Da","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","A2v5zg93BG","q29UBMvJDgLVBKXPBMu","zw5HyMXLrxzLBNrgBg93","CgfYzw50","DgfYz2v0sgfUzgXL","zxH0zxjUywW","55sX6kgO6l6+5BYp6iEQ5yQO6k6H566x","Dg91y2HZDgfYDa","BwiTma","rhjHz091DgXPBMvK","jhTSywjLBh3MNidLSjeKE21PBN3KUkRLRzFNRky","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","B25oB2rLC0nOyw5Nzq","y2XVC2vKlq","md3MSltLUBpLKjhLJ7pVViW5md3LNOlNM7tLKjhKUiVVViZKU4xNLkJKUO7MOlNMJA7OTBFNGRNLKOZPLB/LUQBPH43MLRdORQhNRPFNU4JNGRK","zxHWyw5KugfYzw50","y29UzMLN","y29UBMvJDe9Uq2XPy2S","zMXVB3i","Aw50zxjWB2XHDgu","5Asw6yoO5lQl5lU25Qch6k+g","zhjHz2DPBMC","zw5K","Bwf0CML4","zgvMyxvSDfzPzxC","zw5Kwq","yMCTD2HPDgu","x3bHCMvUDa","CMvHy3qTzMXVD19FCMvUzgvYzxi","zMLSBgvK","C3jJ","5lIk5lYGifnwrW","CMvZB2X2zq","y2XVBMvoB2rL","x19UB3nLBgvJDa","6BUy6k6K54Q25Ocb","5PQc5PEG5PwW5O2U6zUg77Ym6k+35OMt5BYa44cm5PwW5O2U5RgG44cn5RE75yQG"];return _0x5257=function(){return Se},_0x5257()}const s=_0x5590;var mn=document[s(2142)](s(1476));mn.textContent=`.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}.inline-flex{display:inline-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-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / 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)}.outline{outline-style:solid}.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 }.blur{--tw-blur: blur(8px);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)}.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[s(1191)][s(1032)](mn);function Vn(e){const n=s;return e&&e[n(488)]&&Object.prototype[n(911)][n(414)](e,"default")?e.default:e}var l0={},E0={exports:{}},U0;function qn(){const e=s;return U0||(U0=1,(function(n){const t=e;function o(x){return x&&x[_0x5590(488)]?x:{default:x}}n[t(1896)]=o,n[t(1896)][t(488)]=!0,n[t(1896)][t(384)]=n[t(1896)]})(E0)),E0[e(1896)]}var Wn={},fr;function Cs(){const e=s;if(fr)return Wn;fr=1,Object[e(593)](Wn,e(488),{value:!0}),Wn.default=void 0;const n={items_per_page:e(890),jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:e(678),next_page:e(1650),prev_5:e(1378),next_5:e(2093),prev_3:e(1994),next_3:"向后 3 页",page_size:"页码"};return Wn.default=n,Wn}var Xn={},Kn={},Zn={},Rn={},hr;function Ms(){const e=s;return hr||(hr=1,Object[e(593)](Rn,e(488),{value:!0}),Rn[e(2045)]=void 0,Rn[e(2045)]={yearFormat:e(1425),dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Rn}var gr;function Bs(){const e=s;if(gr)return Zn;gr=1,Object[e(593)](Zn,"__esModule",{value:!0}),Zn.default=void 0;var n=Ms();function t(a){"@babel/helpers - typeof";const u=e;return t=u(1347)==typeof Symbol&&u(2012)==typeof Symbol.iterator?function(f){return typeof f}:function(f){const b=u;return f&&b(1347)==typeof Symbol&&f[b(575)]===Symbol&&f!==Symbol[b(2107)]?b(2012):typeof f},t(a)}function o(a,u){const f=e;var b=Object[f(999)](a);if(Object[f(1394)]){var g=Object[f(1394)](a);u&&(g=g[f(815)](function(w){const h=f;return Object[h(1211)](a,w)[h(1015)]})),b[f(1759)].apply(b,g)}return b}function x(a){const u=e;for(var f=1;f<arguments[u(2179)];f++){var b=arguments[f]!=null?arguments[f]:{};f%2?o(Object(b),!0).forEach(function(g){r(a,g,b[g])}):Object[u(823)]?Object[u(2046)](a,Object[u(823)](b)):o(Object(b))[u(1322)](function(g){Object.defineProperty(a,g,Object[u(1211)](b,g))})}return a}function r(a,u,f){const b=e;return u=i(u),u in a?Object[b(593)](a,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[u]=f,a}function i(a){var f=c(a,e(1705));return t(f)=="symbol"?f:String(f)}function c(a,u){const f=e;if(f(878)!=t(a)||!a)return a;var b=a[Symbol[f(2038)]];if(b!==void 0){var g=b[f(414)](a,u);if(t(g)!="object")return g;throw new TypeError(f(1757))}return(f(1705)===u?String:Number)(a)}var d=x(x({},n[e(2045)]),{},{locale:e(367),today:"今天",now:"此刻",backToToday:e(472),ok:"确定",timeSelect:e(422),dateSelect:e(380),weekSelect:e(769),clear:"清除",week:"周",month:"月",year:"年",previousMonth:e(1193),nextMonth:e(2097),monthSelect:e(1580),yearSelect:e(2022),decadeSelect:e(1719),previousYear:e(1033),nextYear:e(1691),previousDecade:e(1571),nextDecade:e(1019),previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:e(459),cellDateFormat:"D",monthBeforeYear:!1});return Zn[e(384)]=d,Zn}var Jn={},br;function yr(){const e=s;if(br)return Jn;br=1,Object[e(593)](Jn,e(488),{value:!0}),Jn[e(384)]=void 0;const n={placeholder:e(643),rangePlaceholder:[e(667),e(477)]};return Jn[e(384)]=n,Jn}var mr;function wr(){const e=s;if(mr)return Kn;mr=1;var n=qn()[e(384)];Object[e(593)](Kn,e(488),{value:!0}),Kn[e(384)]=void 0;var t=n(Bs()),o=n(yr());const x={lang:{placeholder:e(543),yearPlaceholder:e(834),quarterPlaceholder:e(1591),monthPlaceholder:e(442),weekPlaceholder:e(1009),rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:[e(1070),e(800)],rangeMonthPlaceholder:["开始月份",e(576)],rangeQuarterPlaceholder:[e(1576),e(1045)],rangeWeekPlaceholder:[e(2082),e(2030)],...t[e(384)]},timePickerLocale:{...o[e(384)]}};return x.lang.ok="确定",Kn[e(384)]=x,Kn}var vr;function Ds(){const e=s;if(vr)return Xn;vr=1;var n=qn()[e(384)];Object[e(593)](Xn,e(488),{value:!0}),Xn[e(384)]=void 0;var t=n(wr());return Xn[e(384)]=t.default,Xn}var pr;function Ls(){const e=s;if(pr)return l0;pr=1;var n=qn()[e(384)];Object[e(593)](l0,e(488),{value:!0}),l0[e(384)]=void 0;var t=n(Cs()),o=n(Ds()),x=n(wr()),r=n(yr());const i=e(1461),c={locale:"zh-cn",Pagination:t.default,DatePicker:x[e(384)],TimePicker:r[e(384)],Calendar:o[e(384)],global:{placeholder:"请选择",close:"关闭",sortable:"可排序"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:e(1151),emptyText:e(1288),selectAll:e(1391),selectInvert:e(584),selectNone:e(984),selectionAll:e(1623),sortTitle:"排序",expand:e(400),collapse:"关闭行",triggerDesc:e(1681),triggerAsc:e(737),cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:e(1158)},Tour:{Next:"下一步",Previous:"上一步",Finish:e(1589)},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:e(1391),removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:e(499),selectInvert:e(584)},Upload:{uploading:"文件上传中",removeFile:e(1113),uploadError:e(2094),previewFile:"预览文件",downloadFile:e(641)},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:e(1308),expand:"展开",collapse:"收起"},Form:{optional:e(1656),defaultValidateMessages:{default:e(942),required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:e(1230),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(2035),min:e(1930),max:"${label}最多${max}个字符",range:e(1694)},number:{len:e(1884),min:e(1687),max:e(859),range:e(1017)},array:{len:e(1346),min:"最少${min}个${label}",max:"最多${max}个${label}",range:e(1341)},pattern:{mismatch:e(1815)}}},QRCode:{expired:e(418),refresh:e(1570),scanned:e(1084)},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return l0.default=c,l0}var Kx,zr;function Ns(){return zr||(zr=1,Kx=Ls()),Kx}var Ss=Ns();const ks=Vn(Ss),Is=e=>(n,t,o)=>{const x=s;return o.setState=(r,i,...c)=>{const d=_0x5590,a=typeof r=="function"?Nt[d(1715)](r):r;return n(a,i,...c)},e(o[x(1770)],t,o)},Ps=Is;function As(e){return Array[s(565)](e)}function Cr(e){const n=s,t=[];for(const o of Object[n(999)](e)){t.push(o);const x=e[o];if(x!==null&&typeof x===n(878)&&!Array.isArray(x))for(const r of Object.keys(x))t[n(1759)](o+"."+r)}return t}function js(e,n,t){const o=s,x=e[o(2133)];if(As(x)){if(n!=null&&t!=null){const r=x[o(990)](i=>i[n]===t);if(r)return r}return{}}return x}function Mr(e,n,t,o){const x=s,r=js(e,t,o),i={...r};if(n&&typeof n===x(878)&&!Array.isArray(n))return{...i,...n};if(Array[x(565)](n)){const c={...i};for(const d of n){if(!d||typeof d!==x(878))continue;const a=d;a.paramsCode!=null&&(c[String(a[x(2104)])]=a[x(1044)])}return c}return i}const Ys={id:"_",name:"_",sample:{}};function Zx(e,n,t){const o=s,x=e[o(965)]!=null?String(e[o(965)]).trim():"",r=x?t.find(c=>c.id===x):void 0,i=r??Ys;try{const c=Mr(i,n,e[o(1289)],e[o(848)]);return new Function("data",e.expression)(c)===!0}catch(c){return console[o(2015)](o(1667)+e[o(863)]+"]:",c),!1}}function Br(e,n,t){for(const o of e)if(Zx(o,n,t))return o}function Dr(e,n){const t=s;for(const o of e){for(const x of o[t(742)][t(1833)])x.boundDatasetId===n&&(x[t(965)]=null,x[t(1289)]=null,x.boundDatasetBindValue=null);o[t(1912)]===t(744)&&o.children?.[t(2179)]&&Dr(o[t(517)],n)}}function Rx(e){const n=s;for(const t of e){for(const o of t[n(742)].statusList)delete o[n(1978)];t[n(1912)]===n(744)&&t[n(517)]?.length&&Rx(t[n(517)])}}const Jx=(e,n)=>({id:e||Le[s(1335)](),name:n||"画布 1",nodes:[],canvasConfig:{width:1920,height:1080,background:s(793),showGrid:!0},viewport:{scale:1,positionX:0,positionY:0},selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null,history:{past:[],future:[]}}),Es=()=>{const e=s,n=Jx();return{id:Le.nanoid(),name:e(655),canvases:[n],currentCanvasId:n.id,siblingGroups:[],activeSiblingGroupId:null,navigationStack:[]}},Lr=Es(),nn=Lr.canvases[0],Us={root:Lr,materials:[],mode:s(787),lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:nn[s(960)],canvas:nn[s(1437)],viewport:nn[s(617)],selectedNodeId:nn[s(1469)],selectedNodeIds:nn[s(559)],selectedStatusId:nn[s(451)],history:nn[s(484)]},S0=(e,n,t)=>({id:Le[s(1335)](),type:e,targetId:n,payload:t,timestamp:Date[s(1700)]()}),Qe=Xx[s(1572)]()(Ps((e,n)=>({...Us,addCanvas:t=>{const o=s,x=Jx(Le[o(1335)](),t||o(2020)+(n()[o(738)][o(974)][o(2179)]+1));return e(r=>{const i=o;r[i(738)][i(974)].push(x),r.root[i(687)]=x.id;const c=x;r[i(960)]=c[i(960)],r[i(1434)]=c.canvasConfig,r[i(617)]=c[i(617)],r[i(1469)]=c[i(1469)],r.selectedNodeIds=c[i(559)],r[i(451)]=c[i(451)],r[i(484)]=c[i(484)]}),x.id},removeCanvas:t=>{e(o=>{const x=_0x5590,r=o.root[x(974)][x(424)](c=>c.id===t);if(r===-1||o[x(738)][x(974)][x(2179)]<=1)return;if(o[x(738)][x(974)][x(558)](r,1),o.root[x(511)])for(const c of o[x(738)][x(511)]){const d=c.canvasIds[x(1878)](t);d!==-1&&c[x(869)][x(558)](d,1)}if(o.root[x(740)]&&o[x(738)].navigationStack[x(2179)]>0&&(o.root[x(740)]=o[x(738)][x(740)][x(815)](c=>c!==t)),o[x(738)][x(687)]===t){const c=o.root.canvases[0];o[x(738)][x(687)]=c.id,o[x(960)]=c.nodes,o[x(1434)]=c[x(1437)],o[x(617)]=c[x(617)],o[x(1469)]=c.selectedNodeId,o[x(559)]=c.selectedNodeIds,o[x(451)]=c.selectedStatusId,o.history=c[x(484)]}const i=o[x(738)].activeSiblingGroupId;if(i){const c=(o[x(738)][x(511)]||[]).find(d=>d.id===i);(!c||!c[x(869)][x(1419)](o[x(738)][x(687)]||""))&&(o[x(738)].activeSiblingGroupId=null)}})},switchCanvas:t=>{e(o=>{const x=_0x5590,r=o.root[x(974)][x(990)](c=>c.id===t);if(!r)return;o[x(738)][x(687)]=t,o[x(960)]=r[x(960)],o[x(1434)]=r[x(1437)],o[x(617)]=r[x(617)],o[x(1469)]=r[x(1469)],o[x(559)]=r[x(559)],o[x(451)]=r[x(451)],o[x(484)]=r.history;const i=o[x(738)][x(408)];if(i){const c=(o[x(738)].siblingGroups||[]).find(d=>d.id===i);(!c||!c[x(869)][x(1419)](t))&&(o[x(738)][x(408)]=null)}})},updateCanvasName:(t,o)=>{e(x=>{const r=_0x5590,i=x[r(738)][r(974)][r(990)](c=>c.id===t);i&&(i[r(863)]=o)})},getCurrentCanvas:()=>{const t=s,o=n();return o.root[t(974)][t(990)](x=>x.id===o[t(738)][t(687)])},addSiblingGroup:(t,o)=>{const x=s,r=Le[x(1335)]();return e(i=>{const c=x;i[c(738)][c(511)]||(i[c(738)][c(511)]=[]);const d=i[c(738)].siblingGroups.length+1,a=Array[c(1365)](new Set((o||[])[c(815)](u=>i[c(738)][c(974)][c(1496)](f=>f.id===u))));i.root[c(511)][c(1759)]({id:r,name:t||"同级关系 "+d,canvasIds:a})}),r},removeSiblingGroup:t=>{e(o=>{const x=_0x5590;if(!o[x(738)][x(511)])return;const r=o[x(738)][x(511)][x(424)](i=>i.id===t);r!==-1&&o[x(738)][x(511)][x(558)](r,1),o[x(738)][x(408)]===t&&(o[x(738)].activeSiblingGroupId=null)})},updateSiblingGroup:(t,o)=>{e(x=>{const r=_0x5590;if(!x.root[r(511)])return;const i=x[r(738)][r(511)][r(990)](c=>c.id===t);if(i&&(o[r(863)]!==void 0&&(i[r(863)]=o[r(863)]),o.canvasIds!==void 0)){const c=new Set,d=[];for(const a of o[r(869)])c[r(1147)](a)||x[r(738)].canvases.some(u=>u.id===a)&&(c[r(729)](a),d[r(1759)](a));i[r(869)]=d}})},addCanvasToSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x5590;if(!r[i(738)][i(511)])return;const c=r.root[i(511)][i(990)](d=>d.id===t);c&&r.root[i(974)][i(1496)](d=>d.id===o)&&(c[i(869)][i(1419)](o)||(typeof x=="number"&&x>=0&&x<=c[i(869)].length?c[i(869)][i(558)](x,0,o):c.canvasIds[i(1759)](o)))})},removeCanvasFromSiblingGroup:(t,o)=>{e(x=>{const r=_0x5590;if(!x.root[r(511)])return;const i=x[r(738)].siblingGroups[r(990)](d=>d.id===t);if(!i)return;const c=i[r(869)][r(1878)](o);c!==-1&&i[r(869)][r(558)](c,1)})},moveCanvasInSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x5590;if(!r.root[i(511)])return;const c=r[i(738)][i(511)][i(990)](u=>u.id===t);if(!c)return;const d=c[i(869)][i(1878)](o);if(d===-1)return;const a=x==="up"?d-1:d+1;a<0||a>=c[i(869)][i(2179)]||([c[i(869)][d],c.canvasIds[a]]=[c.canvasIds[a],c[i(869)][d]])})},nextSiblingCanvas:(t,o=!1)=>{const x=s,r=n(),i=r[x(738)].siblingGroups?.[x(990)](u=>u.id===t);if(!i||i[x(869)][x(2179)]===0)return null;const c=i[x(869)][x(815)](u=>r[x(738)][x(974)].some(f=>f.id===u));if(c[x(2179)]===0)return null;const d=c[x(1878)](r.root[x(687)]||"");let a;if(d===-1)a=0;else if(d===c[x(2179)]-1){if(!o)return null;a=0}else a=d+1;return e(u=>{const f=x;u.root[f(408)]=t}),n().switchCanvas(c[a]),c[a]},prevSiblingCanvas:(t,o=!1)=>{const x=s,r=n(),i=r.root[x(511)]?.find(u=>u.id===t);if(!i||i[x(869)].length===0)return null;const c=i.canvasIds[x(815)](u=>r[x(738)].canvases.some(f=>f.id===u));if(c.length===0)return null;const d=c[x(1878)](r.root[x(687)]||"");let a;if(d===-1)a=c.length-1;else if(d===0){if(!o)return null;a=c[x(2179)]-1}else a=d-1;return e(u=>{const f=x;u.root[f(408)]=t}),n()[x(1315)](c[a]),c[a]},gotoSiblingCanvas:(t,o)=>{const x=s,r=n(),i=r[x(738)][x(511)]?.[x(990)](d=>d.id===t);if(!i)return null;const c=i[x(869)][x(815)](d=>r[x(738)][x(974)].some(a=>a.id===d));return o<0||o>=c.length?null:(e(d=>{const a=x;d.root[a(408)]=t}),n()[x(1315)](c[o]),c[o])},getSiblingGroupsByCanvas:t=>{const o=s;return(n()[o(738)][o(511)]||[])[o(815)](r=>r.canvasIds[o(1419)](t))},setActiveSiblingGroup:t=>{e(o=>{const x=_0x5590;if(t===null){o.root[x(408)]=null;return}(o.root[x(511)]||[])[x(1496)](i=>i.id===t)&&(o[x(738)][x(408)]=t)})},jumpToCanvas:t=>{const o=s,x=n();if(!x.root[o(974)][o(1496)](i=>i.id===t)||x.root.currentCanvasId===t)return;const r=x[o(738)][o(687)];r&&e(i=>{const c=o;i[c(738)][c(740)]||(i[c(738)][c(740)]=[]),i.root[c(740)][c(1759)](r)}),n().switchCanvas(t)},goBack:()=>{const t=s,o=n();if((o[t(738)][t(740)]||[]).length===0)return null;let r=null;const i=new Set(o[t(738)][t(974)][t(474)](c=>c.id));return e(c=>{const d=t;for(;c[d(738)].navigationStack&&c[d(738)][d(740)][d(2179)]>0;){const a=c[d(738)][d(740)][d(1706)]();if(i[d(1147)](a)){r=a;break}}}),r&&n()[t(1315)](r),r},clearNavigationStack:()=>{e(t=>{const o=_0x5590;t[o(738)][o(740)]=[]})},setSelectedNodeIds:t=>{e(o=>{const x=_0x5590,r=o[x(738)][x(974)][x(990)](i=>i.id===o[x(738)].currentCanvasId);r&&(r[x(559)]=t,o.selectedNodeIds=t)})},addSelectedNodeId:t=>{e(o=>{const x=_0x5590,r=o.root[x(974)][x(990)](i=>i.id===o[x(738)][x(687)]);r&&!r[x(559)][x(1419)](t)&&(r.selectedNodeIds.push(t),o[x(559)]=r[x(559)])})},removeSelectedNodeId:t=>{e(o=>{const x=_0x5590,r=o[x(738)][x(974)][x(990)](i=>i.id===o[x(738)][x(687)]);r&&(r[x(559)]=r[x(559)][x(815)](i=>i!==t),o[x(559)]=r[x(559)])})},clearSelectedNodeIds:()=>{e(t=>{const o=_0x5590,x=t[o(738)][o(974)].find(r=>r.id===t[o(738)][o(687)]);x&&(x.selectedNodeIds=[],t[o(559)]=[])})},addNode:(t,o=!0)=>{e(x=>{const r=_0x5590,i=x.root[r(974)][r(990)](d=>d.id===x[r(738)][r(687)]);if(!i)return;const c={...t,id:t.id||Le[r(1335)]()};i[r(960)][r(1759)](c),x[r(960)]=i.nodes,o&&(i.selectedNodeId=c.id,x.selectedNodeId=c.id,i.history[r(1854)][r(1759)](S0("NODE_SELECT",c.id)),x[r(484)]=i[r(484)])})},updateNode:(t,o)=>{e(x=>{const r=_0x5590,i=x[r(738)][r(974)][r(990)](d=>d.id===x[r(738)][r(687)]);if(!i)return;const c=i.nodes[r(990)](d=>d.id===t);c&&(o[r(1379)]&&Object[r(1060)](c[r(1379)],o[r(1379)]),o[r(742)]&&(c[r(742)]={...c[r(742)],...o[r(742)]}),o[r(863)]&&(c[r(863)]=o[r(863)]),o.controlInfo&&Object[r(1060)](c[r(908)],o[r(908)]),o[r(517)]&&(c.children=o[r(517)]),i[r(484)][r(1854)][r(1759)](S0(r(753),t,o)),x[r(484)]=i[r(484)],x.nodes=i.nodes)})},updateNodeStyle:(t,o)=>{e(x=>{const r=_0x5590,i=x[r(738)][r(974)][r(990)](d=>d.id===x[r(738)].currentCanvasId);if(!i)return;const c=i[r(960)][r(990)](d=>d.id===t);c&&(Object[r(1060)](c[r(1379)],o),i[r(484)].past.push(S0(r(753),t,{normalStyle:o})),x[r(484)]=i.history,x.nodes=i.nodes)})},updateNodeContent:(t,o)=>{e(x=>{const r=_0x5590,i=x.root.canvases[r(990)](d=>d.id===x.root[r(687)]);if(!i)return;const c=i[r(960)][r(990)](d=>d.id===t);c&&(c[r(742)]={...c[r(742)],...o},i[r(484)][r(1854)].push(S0(r(753),t,{contentInfo:o})),x[r(484)]=i[r(484)],x[r(960)]=i[r(960)])})},updateNodeControl:(t,o)=>{e(x=>{const r=_0x5590,i=x.root[r(974)][r(990)](d=>d.id===x[r(738)][r(687)]);if(!i)return;const c=i[r(960)][r(990)](d=>d.id===t);c&&(Object[r(1060)](c[r(908)],o),i[r(484)][r(1854)][r(1759)](S0(r(753),t,{controlInfo:o})),x.history=i[r(484)],x[r(960)]=i[r(960)])})},removeNode:t=>{e(o=>{const x=_0x5590,r=o[x(738)].canvases[x(990)](c=>c.id===o[x(738)][x(687)]);if(!r)return;const i=r.nodes[x(424)](c=>c.id===t);i!==-1&&(r.nodes.splice(i,1),o[x(960)]=r[x(960)],r[x(1469)]===t&&(r[x(1469)]=null,o.selectedNodeId=null,r.selectedStatusId=null,o[x(451)]=null),r[x(559)]=r[x(559)].filter(c=>c!==t),o[x(559)]=r[x(559)],r[x(484)].past[x(1759)](S0(x(520),t)),o[x(484)]=r[x(484)])})},selectNode:t=>{e(o=>{const x=_0x5590,r=o[x(738)].canvases[x(990)](i=>i.id===o.root[x(687)]);r&&(r[x(1469)]=t,o[x(1469)]=t,r[x(451)]=null,o.selectedStatusId=null,t&&(r.history[x(1854)].push(S0(x(1038),t)),o.history=r[x(484)]))})},bringToFront:t=>{e(o=>{const x=_0x5590,r=o[x(738)][x(974)][x(990)](d=>d.id===o[x(738)][x(687)]);if(!r)return;const i=r[x(960)][x(424)](d=>d.id===t);if(i===-1||i===r[x(960)][x(2179)]-1)return;const[c]=r[x(960)][x(558)](i,1);r[x(960)][x(1759)](c),o[x(960)]=r.nodes,r[x(484)][x(1854)][x(1759)](S0(x(753),t,{zOrder:x(399)})),o[x(484)]=r[x(484)]})},sendToBack:t=>{e(o=>{const x=_0x5590,r=o.root[x(974)].find(d=>d.id===o.root[x(687)]);if(!r)return;const i=r[x(960)][x(424)](d=>d.id===t);if(i<=0)return;const[c]=r[x(960)][x(558)](i,1);r.nodes[x(923)](c),o[x(960)]=r[x(960)],r[x(484)][x(1854)][x(1759)](S0(x(753),t,{zOrder:x(1747)})),o[x(484)]=r[x(484)]})},addStatus:(t,o)=>{e(x=>{const r=_0x5590,i=x[r(738)][r(974)][r(990)](a=>a.id===x.root[r(687)]);if(!i)return;const c=i[r(960)][r(990)](a=>a.id===t);if(!c)return;const d={...o,id:Le[r(1335)]()};c.contentInfo.statusList[r(1759)](d),i[r(484)][r(1854)].push(S0(r(441),t,{statusId:d.id})),x.history=i.history})},removeStatus:(t,o)=>{e(x=>{const r=_0x5590,i=x.root.canvases[r(990)](a=>a.id===x.root[r(687)]);if(!i)return;const c=i.nodes[r(990)](a=>a.id===t);if(!c)return;const d=c[r(742)][r(1833)][r(424)](a=>a.id===o);d!==-1&&(c[r(742)][r(1833)][r(558)](d,1),c[r(742)].currentStatusId===o&&(c[r(742)].currentStatusId=void 0),i[r(451)]===o&&(i[r(451)]=null,x[r(451)]=null))})},updateStatus:(t,o,x)=>{e(r=>{const i=_0x5590,c=r.root[i(974)][i(990)](u=>u.id===r[i(738)][i(687)]);if(!c)return;const d=c[i(960)][i(990)](u=>u.id===t);if(!d)return;const a=d[i(742)][i(1833)].find(u=>u.id===o);a&&Object[i(1060)](a,x)})},selectStatus:t=>{e(o=>{const x=_0x5590,r=o[x(738)][x(974)][x(990)](i=>i.id===o[x(738)][x(687)]);r&&(r[x(451)]=t,o[x(451)]=t)})},evaluateCurrentStatus:(t,o)=>{const x=s,r=n(),i=r.root[x(974)][x(990)](a=>a.id===r[x(738)].currentCanvasId);if(!i)return;const c=i.nodes.find(a=>a.id===t);if(!c)return;const{dataPool:d}=n();for(const a of c[x(742)][x(1833)])if(Zx(a,o,d))return a.id},addDataPoolItem:t=>{const o=s,x=Le[o(1335)]();return e(r=>{const i=o;let c={};t[i(2133)]&&typeof t.sample===i(878)&&(Array.isArray(t.sample),c=t[i(2133)]),r[i(1440)][i(1759)]({...t,id:x,sample:c})}),x},updateDataPoolItem:(t,o)=>{e(x=>{const r=_0x5590,i=x[r(1440)][r(990)](c=>c.id===t);i&&(o[r(863)]!==void 0&&(i[r(863)]=o[r(863)]),o[r(2133)]!==void 0&&(o[r(2133)]&&typeof o[r(2133)]===r(878)?i.sample=o.sample:i[r(2133)]={}))})},removeDataPoolItem:t=>{e(o=>{const x=_0x5590,r=o[x(1440)].findIndex(i=>i.id===t);if(r!==-1){o[x(1440)].splice(r,1);for(const i of o.root[x(974)])Dr(i[x(960)],t)}})},setDataPool:t=>{e(o=>{const x=_0x5590;o[x(1440)]=t[x(474)](r=>{const i=x;let c={};return r[i(2133)]&&typeof r[i(2133)]===i(878)&&(c=r[i(2133)]),{...r,sample:c}})})},setEventFlow:t=>{e(o=>{const x=_0x5590;o[x(1599)]={eventBlocks:t[x(1507)]??[],eventRoots:t.eventRoots??[],editingEventRootId:t[x(1166)]??null,isEditingEventFlow:t.isEditingEventFlow??!1}})},setExternalHandlerCatalog:t=>{e(o=>{const x=_0x5590,r=new Set;o[x(2058)]=[];for(const i of t){const c=String(i[x(844)]??"").trim();!c||r[x(1147)](c)||(r[x(729)](c),o[x(2058)][x(1759)]({key:c,label:String(i[x(663)]??"")[x(349)]()||c,description:i.description}))}})},addMaterial:t=>{e(o=>{const x=_0x5590;if(o[x(423)][x(1496)](c=>c[x(863)]===t[x(863)]))return;const i={...t,id:Le[x(1335)]()};o[x(423)][x(1759)](i)})},updateMaterial:(t,o)=>{e(x=>{const r=_0x5590,i=x.materials[r(990)](c=>c.id===t);i&&Object.assign(i,o)})},removeMaterial:t=>{e(o=>{const x=_0x5590,r=o.materials[x(424)](i=>i.id===t);r!==-1&&o[x(423)][x(558)](r,1)})},setViewport:t=>{e(o=>{const x=_0x5590,r=o[x(738)].canvases[x(990)](i=>i.id===o[x(738)][x(687)]);r&&(Object[x(1060)](r[x(617)],t),o.viewport=r[x(617)])})},setCanvasConfig:t=>{e(o=>{const x=_0x5590,r=o[x(738)][x(974)][x(990)](i=>i.id===o.root[x(687)]);r&&(r.canvasConfig={...r[x(1437)],...t},o.canvas=r.canvasConfig)})},setMode:t=>{e(o=>{o.mode=t})},startLineDrawing:t=>{e(o=>{const x=_0x5590;o[x(1023)]=x(1510),o.lineDrawing={isDrawing:!0,material:t,startPoint:null,endPoint:null}})},updateLineDrawing:t=>{e(o=>{const x=_0x5590;o[x(1195)].isDrawing&&(o[x(1195)][x(1791)]=t)})},endLineDrawing:()=>{e(t=>{const o=_0x5590;t[o(1023)]="select",t.lineDrawing={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{e(t=>{const o=_0x5590;t.mode=o(787),t[o(1195)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{e(t=>{const o=_0x5590,x=t[o(738)][o(974)].find(i=>i.id===t[o(738)][o(687)]);if(!x)return;const r=x[o(484)][o(1854)][o(1706)]();r&&(x.history[o(861)].push(r),t[o(484)]=x.history)})},redo:()=>{e(t=>{const o=_0x5590,x=t[o(738)][o(974)].find(i=>i.id===t[o(738)][o(687)]);if(!x)return;const r=x.history[o(861)][o(1706)]();r&&(x.history.past[o(1759)](r),t[o(484)]=x[o(484)])})},recordEvent:t=>{e(o=>{const x=_0x5590,r=o[x(738)][x(974)][x(990)](i=>i.id===o[x(738)][x(687)]);r&&(r[x(484)].past[x(1759)](t),r[x(484)][x(861)]=[],o.history=r[x(484)])})},exportScheme:()=>{const t=s,o=n(),{activeSiblingGroupId:x,navigationStack:r,...i}=o[t(738)];return{version:t(478),root:i,materials:o[t(423)],dataPool:o[t(1440)],eventFlow:o.eventFlow,metadata:{name:o[t(738)][t(863)],description:"",createdAt:new Date()[t(2156)](),updatedAt:new Date()[t(2156)]()}}},importScheme:t=>{e(o=>{const x=_0x5590;if(t[x(738)]){if(o[x(738)]=t[x(738)],!o.root.siblingGroups)o[x(738)][x(511)]=[];else{const i=new Set(o[x(738)][x(974)][x(474)](c=>c.id));for(const c of o[x(738)].siblingGroups)c[x(869)]=c[x(869)].filter(d=>i[x(1147)](d))}o[x(738)][x(408)]=null,o[x(738)][x(740)]=[],o[x(1440)]=t[x(1440)]??[],t[x(1599)]&&(o[x(1599)]={eventBlocks:t[x(1599)].eventBlocks??[],eventRoots:t[x(1599)][x(1271)]??[],editingEventRootId:t[x(1599)][x(1166)]??null,isEditingEventFlow:t[x(1599)][x(2096)]??!1});const r=o[x(738)].canvases[x(990)](i=>i.id===o[x(738)][x(687)])||o[x(738)][x(974)][0];r&&(o.root[x(687)]=r.id,o.nodes=r[x(960)],o[x(1434)]=r[x(1437)],o[x(617)]=r[x(617)],o[x(1469)]=r[x(1469)],o.selectedNodeIds=r.selectedNodeIds,o[x(451)]=r[x(451)],o[x(484)]=r[x(484)])}else{const r=Jx();r.nodes=t[x(960)]||[],o[x(738)][x(974)]=[r],o[x(738)][x(687)]=r.id,o[x(738)][x(511)]=[],o[x(738)][x(408)]=null,o.root.navigationStack=[],o.dataPool=t[x(1440)]??[],t[x(1599)]&&(o.eventFlow={eventBlocks:t[x(1599)][x(1507)]??[],eventRoots:t[x(1599)][x(1271)]??[],editingEventRootId:t[x(1599)][x(1166)]??null,isEditingEventFlow:t[x(1599)].isEditingEventFlow??!1}),o[x(960)]=r[x(960)],o[x(1434)]=r.canvasConfig,o[x(617)]=t[x(617)]||r[x(617)],o[x(1469)]=null,o[x(451)]=null,o[x(484)]={past:[],future:[]}}for(const r of o[x(738)][x(974)])Rx(r.nodes)})},exportCanvas:t=>{const o=s,x=n(),r=t||x[o(738)][o(687)],i=x[o(738)][o(974)].find(c=>c.id===r);if(!i)throw new Error(o(2020)+r+o(1707));return{version:"2.0.0",canvas:i,metadata:{name:i[o(863)],description:"",exportedAt:new Date()[o(2156)]()}}},importCanvas:(t,o)=>{e(x=>{const r=_0x5590,i=t.canvas,c=o||x[r(738)][r(687)],d=x[r(738)][r(974)][r(990)](a=>a.id===c);if(d)d[r(863)]=i.name,d[r(960)]=i.nodes||[],d[r(1437)]=i[r(1437)],d.viewport=i[r(617)],d[r(1469)]=null,d[r(559)]=[],d[r(451)]=null,d[r(484)]=i[r(484)]||{past:[],future:[]},c===x.root[r(687)]&&(x[r(960)]=d[r(960)],x.canvas=d[r(1437)],x[r(617)]=d[r(617)],x[r(1469)]=d[r(1469)],x[r(559)]=d.selectedNodeIds,x.selectedStatusId=d[r(451)],x[r(484)]=d.history);else{const a={...i,id:Le.nanoid(),selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null};x[r(738)][r(974)].push(a),x[r(738)][r(687)]=a.id,x[r(960)]=a[r(960)],x[r(1434)]=a.canvasConfig,x.viewport=a.viewport,x[r(1469)]=a.selectedNodeId,x[r(559)]=a[r(559)],x[r(451)]=a.selectedStatusId,x[r(484)]=a.history}for(const a of x[r(738)][r(974)])Rx(a.nodes)})},addEventBlock:t=>{const o=Le.nanoid();return e(x=>{const r=_0x5590;x[r(1599)][r(1507)].push({...t,id:o})}),o},upsertEventBlock:t=>{e(o=>{const x=_0x5590,r=o[x(1599)][x(1507)][x(424)](i=>i.id===t.id);r!==-1?o[x(1599)].eventBlocks[r]={...t}:o[x(1599)].eventBlocks[x(1759)]({...t})})},updateEventBlock:(t,o)=>{e(x=>{const r=_0x5590,i=x.eventFlow[r(1507)][r(990)](c=>c.id===t);i&&Object[r(1060)](i,o)})},removeEventBlock:t=>{e(o=>{const x=_0x5590,r=o[x(1599)][x(1507)][x(424)](i=>i.id===t);r!==-1&&o[x(1599)][x(1507)].splice(r,1)})},addEventRoot:t=>{const o=s,x=Le[o(1335)]();return e(r=>{const i=o;r[i(1599)][i(1271)][i(1759)]({...t,id:x})}),x},updateEventRoot:(t,o)=>{e(x=>{const r=_0x5590,i=x.eventFlow[r(1271)][r(990)](c=>c.id===t);i&&Object[r(1060)](i,o)})},removeEventRoot:t=>{e(o=>{const x=_0x5590,r=o[x(1599)][x(1271)].findIndex(i=>i.id===t);r!==-1&&o[x(1599)][x(1271)][x(558)](r,1)})},setEditingEventRoot:t=>{e(o=>{const x=_0x5590;o.eventFlow[x(1166)]=t})},setIsEditingEventFlow:t=>{e(o=>{const x=_0x5590;o[x(1599)].isEditingEventFlow=t})},bindNodeEvent:(t,o,x)=>{const r=Le.nanoid();return e(i=>{const c=_0x5590;i.eventFlow[c(1271)].push({id:r,bindNodeId:t,eventType:o,flowData:x,enabled:!0})}),r},unbindNodeEvent:(t,o,x)=>{e(r=>{const i=_0x5590,c=r[i(1599)][i(1271)].findIndex(d=>{const a=i;return d[a(458)]!==t||d.eventType!==o?!1:o===a(1925)?(d[a(858)]||"")[a(349)]()===(x||"").trim():!0});c!==-1&&r[i(1599)][i(1271)].splice(c,1)})},getNodeEventRoots:t=>{const o=s;return n()[o(1599)][o(1271)][o(815)](x=>x[o(458)]===t)}}))),Nr=[{id:Le[s(1335)](),name:"矩形",type:"IMAGE",src:s(1146)+encodeURIComponent(s(1909))},{id:Le[s(1335)](),name:"圆形",type:s(1054),src:s(1146)+encodeURIComponent(s(1795))},{id:Le[s(1335)](),name:s(605),type:s(1054),src:s(1146)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"><rect width="100" height="60" fill="#faad14" rx="20"/></svg>')},{id:Le[s(1335)](),name:"阀门",type:s(1054),src:"data:image/svg+xml,"+encodeURIComponent(s(1339))},{id:Le[s(1335)](),name:"泵",type:s(1054),src:s(1146)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="35" r="20" fill="#bfbfbf" stroke="#595959" stroke-width="2"/><rect x="25" y="5" width="10" height="15" fill="#595959"/><path d="M30 20 L30 35 M20 30 Q30 45 40 30" stroke="#595959" stroke-width="2" fill="none"/></svg>')},{id:Le.nanoid(),name:"罐体",type:s(1054),src:s(1146)+encodeURIComponent(s(1204))},{id:Le.nanoid(),name:s(392),type:s(1509),content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:s(1268),color:s(1085),textAlign:"left"},valueStyle:{fontSize:14,fontWeight:s(485),color:"#1890ff",textAlign:"left"}}},{id:Le[s(1335)](),name:"线条",type:s(1701),config:{thickness:2,lineWeight:2,color:"#262626",lineType:"solid"}}],_x=e=>({id:Le[s(1335)](),name:s(1955),expression:s(2069),material:{...e,id:Le.nanoid()},boundDatasetId:null}),Sr=(e,n,t)=>{const o=s;if(t?.[o(1912)]===o(601)&&t[o(1936)]?.[o(960)]){const x=t[o(1936)][o(960)].map(u=>({...u,id:Le[o(1335)]()}));let r=1/0,i=1/0,c=-1/0,d=-1/0;x[o(1322)](u=>{const f=o,b=u[f(1379)].x||0,g=u[f(1379)].y||0,w=u[f(1379)][f(1710)]||0,h=u[f(1379)][f(1355)]||0;r=Math[f(775)](r,b),i=Math[f(775)](i,g),c=Math[f(2172)](c,b+w),d=Math[f(2172)](d,g+h)});const a=x[o(474)](u=>({...u,normalStyle:{...u.normalStyle,x:(u.normalStyle.x||0)-r,y:(u[o(1379)].y||0)-i,scale:void 0}}));return{id:Le[o(1335)](),name:t[o(863)]||o(1659),type:o(744),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:a}}return{id:Le[o(1335)](),name:"新节点",type:o(485),normalStyle:{width:120,height:100,x:e,y:n,background:"transparent",padding:8},contentInfo:{statusList:t?[_x(t)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:wn}=C.Collapse,{Text:kt}=C.Typography,kr=({onUploadSvg:e})=>{const n=s,{materials:t,addMaterial:o,removeMaterial:x,selectedStatusId:r,selectStatus:i,mode:c,lineDrawing:d,startLineDrawing:a,cancelLineDrawing:u}=Qe(),[f,b]=B.useState(["basic",n(420),n(1918),"line"]),g=m=>{const y=n,p=new FileReader;return p[y(695)]=z=>{const P=y,G=z[P(500)]?.[P(933)];o({name:m[P(863)].replace(".svg",""),type:P(1054),src:G})},p[y(1075)](m),!1},w={basic:t[n(815)](m=>["矩形","圆形",n(605)][n(1419)](m[n(863)])),device:t[n(815)](m=>["阀门","泵","罐体"][n(1419)](m[n(863)])||m[n(1912)]==="IMAGE"&&!["矩形","圆形","圆角矩形"][n(1419)](m.name)&&m[n(863)]!==n(1359)),text:t[n(815)](m=>m.type===n(1509)),line:t[n(815)](m=>m[n(1912)]===n(1701)),group:t[n(815)](m=>m[n(1912)]===n(601)&&m[n(1936)]?.nodes),custom:t.filter(m=>m[n(1912)]==="CUSTOM"&&!m.config?.nodes||m[n(1912)]===n(1054)&&!["矩形","圆形",n(605),"阀门","泵","罐体"][n(1419)](m[n(863)]))},h=(m,y)=>{const p=n;m[p(653)][p(2088)]=p(1826),m.dataTransfer[p(2031)](p(1699),JSON.stringify(y));const z=m[p(1630)][p(1525)](p(385));z&&m[p(653)][p(2017)](z,20,20)},v=m=>{m.type==="LINE"&&a(m)},M=(m,y=!1,p=n(1946))=>{const z=n,P=y===!0,G=c===z(1510)&&P&&d.material?.id===m.id;return l[z(1375)](C[z(853)][z(1254)],{draggable:!P,onDragStart:O=>h(O,m),onClick:()=>P&&v(m),className:z(429)+(P?"cursor-pointer":"cursor-move")+z(1779)+z(1871)+z(1779)+(G?z(1138):"")+z(1765),actions:[P?l.jsx(C[z(1105)],{type:z(1918),size:z(1400),icon:l[z(1375)](de[z(2165)],{}),onClick:O=>{O.stopPropagation(),v(m)},children:"绘制"},z(1177)):null,l[z(1375)](C[z(1105)],{type:"text",size:z(1400),danger:!0,icon:l[z(1375)](de.DeleteOutlined,{}),onClick:O=>{O[z(1313)](),x(m.id)}},z(1234))][z(815)](Boolean),children:l.jsxs(z(1037),{className:z(2129)+(P?"":z(2138)),children:[l.jsx(z(1037),{className:z(1894)+p,children:m[z(1912)]==="IMAGE"&&m[z(1950)]?l[z(1375)](C.Image,{src:m[z(1950)],alt:m.name,width:40,height:40,preview:!1}):m[z(1912)]===z(1509)?l.jsx(z(2163),{className:z(1959),children:"T"}):m.type==="LINE"?l[z(1375)]("div",{className:z(865)}):m[z(1912)]===z(601)&&m[z(1936)]?.nodes?l.jsx(z(2163),{className:z(1590),children:"G"}):l[z(1375)](z(2163),{className:z(1959),children:"?"})}),l[z(884)](z(1037),{className:z(350),children:[l[z(1375)](kt,{strong:!0,className:"block truncate",children:m[z(863)]}),l.jsxs("div",{className:z(959),children:[l[z(1375)](kt,{type:"secondary",className:z(1468),children:m[z(1912)]}),G&&l[z(1375)](C[z(2158)],{color:z(547),className:"text-xs",children:"绘制中"})]})]})]})},m.id)};return l[n(884)](n(1037),{className:"h-full flex flex-col bg-white border-r border-gray-200",children:[l.jsxs(n(1037),{className:n(591),children:[l[n(1375)]("h3",{className:n(1410),children:n(1669)}),l.jsx(kt,{type:n(1716),className:n(1136),children:n(2087)})]}),l[n(1375)](n(1037),{className:"p-3 border-b border-gray-200",children:e?l.jsx(C.Button,{icon:l[n(1375)](de.UploadOutlined,{}),block:!0,type:"dashed",onClick:()=>{e().catch(m=>{console.log(_0x5590(1588),m)})},children:n(1951)}):l[n(1375)](C[n(1596)],{accept:n(1914),beforeUpload:g,showUploadList:!1,children:l[n(1375)](C[n(1105)],{icon:l[n(1375)](de[n(838)],{}),block:!0,type:"dashed",children:n(1951)})})}),l[n(1375)]("div",{className:"flex-1 overflow-y-auto p-2",children:l[n(884)](C[n(860)],{activeKey:f,onChange:m=>b(m),ghost:!0,expandIconPosition:n(1942),children:[l[n(1375)](wn,{header:n(1777),children:l[n(1375)](C[n(853)],{dataSource:w.basic,renderItem:m=>M(m,!1),locale:{emptyText:l[n(1375)](C[n(1491)],{description:n(1810),image:C.Empty[n(1462)]})}})},n(1212)),l[n(1375)](wn,{header:"设备图标",children:l[n(1375)](C[n(853)],{dataSource:w[n(420)],renderItem:m=>M(m,!1,n(359)),locale:{emptyText:l[n(1375)](C.Empty,{description:n(1810),image:C[n(1491)][n(1462)]})}})},n(420)),l[n(1375)](wn,{header:"文本",children:l[n(1375)](C[n(853)],{dataSource:w[n(1918)],renderItem:m=>M(m,!1),locale:{emptyText:l[n(1375)](C.Empty,{description:n(1810),image:C[n(1491)][n(1462)]})}})},n(1918)),l[n(884)](wn,{header:l[n(884)](n(1037),{className:n(817),children:[l[n(1375)](n(2163),{children:"线条"}),c===n(1510)&&l[n(1375)](C.Tag,{color:n(547),className:n(1468),children:"绘制模式"})]}),children:[l[n(1375)](C[n(853)],{dataSource:w[n(1190)],renderItem:m=>M(m,!0),locale:{emptyText:l.jsx(C.Empty,{description:n(1810),image:C[n(1491)][n(1462)]})}}),c==="line-draw"&&l[n(884)]("div",{className:n(1258),children:[l[n(1375)]("div",{children:n(725)}),l[n(1375)]("div",{children:n(806)})]})]},"line"),w[n(744)].length>0&&l.jsx(wn,{header:"群组",children:l[n(1375)](C[n(853)],{dataSource:w[n(744)],renderItem:m=>M(m,!1),locale:{emptyText:l.jsx(C[n(1491)],{description:"暂无物料",image:C[n(1491)][n(1462)]})}})},"group"),w.custom[n(2179)]>0&&l[n(1375)](wn,{header:n(1359),children:l.jsx(C[n(853)],{dataSource:w[n(2159)],renderItem:m=>M(m,!1),locale:{emptyText:l[n(1375)](C[n(1491)],{description:n(1810),image:C.Empty[n(1462)]})}})},n(2159))]})}),l.jsx("div",{className:"p-3 border-t border-gray-200 bg-gray-50",children:l[n(1375)](kt,{type:"secondary",className:"text-xs",children:c===n(1510)?l.jsx(l[n(1465)],{children:n(1609)}):l[n(1375)](l[n(1465)],{children:"💡 提示:拖拽物料到画布创建节点,点击线条物料进入绘制模式"})})})]})};var Qx=function(e,n){const t=s;return Qx=Object[t(1776)]||{__proto__:[]}instanceof Array&&function(o,x){const r=t;o[r(1804)]=x}||function(o,x){const r=t;for(var i in x)Object[r(2107)].hasOwnProperty[r(414)](x,i)&&(o[i]=x[i])},Qx(e,n)};function K0(e,n){const t=s;if(typeof n!="function"&&n!==null)throw new TypeError(t(764)+String(n)+t(1196));Qx(e,n);function o(){const x=t;this[x(575)]=e}e.prototype=n===null?Object.create(n):(o[t(2107)]=n[t(2107)],new o)}function Gs(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=_0x5590;function d(f){const b=_0x5590;try{u(o[b(1026)](f))}catch(g){i(g)}}function a(f){const b=_0x5590;try{u(o[b(1396)](f))}catch(g){i(g)}}function u(f){const b=_0x5590;f[b(1998)]?r(f.value):x(f.value)[b(688)](d,a)}u((o=o[c(2185)](e,n||[]))[c(1026)]())})}function Ir(e,n){const t=s;var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},x,r,i,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c[t(1026)]=d(0),c[t(1396)]=d(1),c[t(1174)]=d(2),typeof Symbol===t(1347)&&(c[Symbol[t(1002)]]=function(){return this}),c;function d(u){return function(f){return a([u,f])}}function a(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(1174)]:u[0]?r[f(1396)]||((i=r[f(1174)])&&i[f(414)](r),0):r[f(1026)])&&!(i=i.call(r,u[1]))[f(1998)])return i;switch(r=0,i&&(u=[u[0]&2,i[f(1044)]]),u[0]){case 0:case 1:i=u;break;case 4:return o[f(663)]++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o[f(1039)][f(1706)](),o[f(372)][f(1706)]();continue;default:if(i=o.trys,!(i=i[f(2179)]>0&&i[i[f(2179)]-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o[f(663)]=u[1];break}if(u[0]===6&&o.label<i[1]){o[f(663)]=i[1],i=u;break}if(i&&o[f(663)]<i[2]){o[f(663)]=i[2],o[f(1039)].push(u);break}i[2]&&o[f(1039)].pop(),o[f(372)][f(1706)]();continue}u=n[f(414)](e,o)}catch(b){u=[6,b],r=0}finally{x=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function vn(e){const n=s;var t=typeof Symbol=="function"&&Symbol[n(1002)],o=t&&e[t],x=0;if(o)return o[n(414)](e);if(e&&typeof e.length===n(2059))return{next:function(){return e&&x>=e[n(2179)]&&(e=void 0),{value:e&&e[x++],done:!e}}};throw new TypeError(n(t?1511:1686))}function It(e,n){const t=s;var o=typeof Symbol=="function"&&e[Symbol[t(1002)]];if(!o)return e;var x=o.call(e),r,i=[],c;try{for(;(n===void 0||n-- >0)&&!(r=x[t(1026)]())[t(1998)];)i[t(1759)](r.value)}catch(d){c={error:d}}finally{try{r&&!r[t(1998)]&&(o=x[t(1174)])&&o[t(414)](x)}finally{if(c)throw c.error}}return i}function Pt(e,n,t){const o=s;if(t||arguments.length===2)for(var x=0,r=n[o(2179)],i;x<r;x++)(i||!(x in n))&&(i||(i=Array[o(2107)][o(852)][o(414)](n,0,x)),i[x]=n[x]);return e.concat(i||Array.prototype[o(852)].call(n))}function pn(e){return this instanceof pn?(this.v=e,this):new pn(e)}function Os(e,n,t){const o=s;if(!Symbol[o(1041)])throw new TypeError("Symbol.asyncIterator is not defined.");var x=t[o(2185)](e,n||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object)[o(2107)]),d(o(1026)),d(o(1396)),d(o(1174),c),r[Symbol[o(1041)]]=function(){return this},r;function c(w){return function(h){const v=_0x5590;return Promise[v(1952)](h)[v(688)](w,b)}}function d(w,h){x[w]&&(r[w]=function(v){return new Promise(function(M,m){i[_0x5590(1759)]([w,v,M,m])>1||a(w,v)})},h&&(r[w]=h(r[w])))}function a(w,h){try{u(x[w](h))}catch(v){g(i[0][3],v)}}function u(w){const h=o;w[h(1044)]instanceof pn?Promise.resolve(w[h(1044)].v)[h(688)](f,b):g(i[0][2],w)}function f(w){a(o(1026),w)}function b(w){a("throw",w)}function g(w,h){const v=o;w(h),i.shift(),i[v(2179)]&&a(i[0][0],i[0][1])}}function Hs(e){const n=s;if(!Symbol.asyncIterator)throw new TypeError(n(1971));var t=e[Symbol.asyncIterator],o;return t?t[n(414)](e):(e=typeof vn===n(1347)?vn(e):e[Symbol[n(1002)]](),o={},x(n(1026)),x(n(1396)),x("return"),o[Symbol[n(1041)]]=function(){return this},o);function x(i){o[i]=e[i]&&function(c){return new Promise(function(d,a){const u=_0x5590;c=e[i](c),r(d,a,c.done,c[u(1044)])})}}function r(i,c,d,a){const u=n;Promise[u(1952)](a)[u(688)](function(f){i({value:f,done:d})},c)}}typeof SuppressedError===s(1347)&&SuppressedError;function Ve(e){return typeof e=="function"}function Fx(e){const n=s;var t=function(x){const r=_0x5590;Error.call(x),x[r(1648)]=new Error()[r(1648)]},o=e(t);return o[n(2107)]=Object.create(Error[n(2107)]),o[n(2107)][n(575)]=o,o}var $x=Fx(function(e){return function(t){const o=_0x5590;e(this),this[o(1109)]=t?t.length+` errors occurred during unsubscription:
3
+ `+t[o(474)](function(x,r){return r+1+") "+x.toString()})[o(1881)](o(1238)):"",this[o(863)]=o(1441),this[o(1079)]=t}});function At(e,n){const t=s;if(e){var o=e.indexOf(n);0<=o&&e[t(558)](o,1)}}var _n=(function(){const e=s;function n(t){const o=_0x5590;this.initialTeardown=t,this[o(1218)]=!1,this[o(1348)]=null,this[o(1569)]=null}return n[e(2107)][e(479)]=function(){const t=e;var o,x,r,i,c;if(!this.closed){this.closed=!0;var d=this[t(1348)];if(d)if(this[t(1348)]=null,Array[t(565)](d))try{for(var a=vn(d),u=a[t(1026)]();!u[t(1998)];u=a[t(1026)]()){var f=u[t(1044)];f.remove(this)}}catch(M){o={error:M}}finally{try{u&&!u[t(1998)]&&(x=a.return)&&x[t(414)](a)}finally{if(o)throw o[t(1036)]}}else d.remove(this);var b=this[t(2049)];if(Ve(b))try{b()}catch(M){c=M instanceof $x?M[t(1079)]:[M]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var w=vn(g),h=w.next();!h[t(1998)];h=w.next()){var v=h.value;try{jr(v)}catch(M){c=c??[],M instanceof $x?c=Pt(Pt([],It(c)),It(M[t(1079)])):c[t(1759)](M)}}}catch(M){r={error:M}}finally{try{h&&!h[t(1998)]&&(i=w[t(1174)])&&i[t(414)](w)}finally{if(r)throw r[t(1036)]}}}if(c)throw new $x(c)}},n[e(2107)].add=function(t){const o=e;var x;if(t&&t!==this)if(this[o(1218)])jr(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this[o(1569)]=(x=this._finalizers)!==null&&x!==void 0?x:[])[o(1759)](t)}},n[e(2107)][e(1827)]=function(t){const o=e;var x=this[o(1348)];return x===t||Array[o(565)](x)&&x[o(1419)](t)},n[e(2107)][e(1227)]=function(t){const o=e;var x=this._parentage;this._parentage=Array[o(565)](x)?(x[o(1759)](t),x):x?[x,t]:t},n[e(2107)][e(1718)]=function(t){const o=e;var x=this[o(1348)];x===t?this[o(1348)]=null:Array[o(565)](x)&&At(x,t)},n[e(2107)][e(928)]=function(t){const o=e;var x=this[o(1569)];x&&At(x,t),t instanceof n&&t[o(1718)](this)},n[e(358)]=(function(){const t=e;var o=new n;return o[t(1218)]=!0,o})(),n})(),Pr=_n[s(358)];function Ar(e){const n=s;return e instanceof _n||e&&n(1218)in e&&Ve(e[n(928)])&&Ve(e.add)&&Ve(e[n(479)])}function jr(e){const n=s;Ve(e)?e():e[n(479)]()}var Ts={Promise:void 0},Vs={setTimeout:function(e,n){const t=s;for(var o=[],x=2;x<arguments.length;x++)o[x-2]=arguments[x];return setTimeout[t(2185)](void 0,Pt([e,n],It(o)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Yr(e){Vs[s(2154)](function(){throw e})}function Er(){}function jt(e){e()}var eo=(function(e){const n=s;K0(t,e);function t(o){const x=_0x5590;var r=e[x(414)](this)||this;return r[x(1534)]=!1,o?(r[x(1091)]=o,Ar(o)&&o.add(r)):r[x(1091)]=Xs,r}return t[n(1572)]=function(o,x,r){return new no(o,x,r)},t.prototype.next=function(o){const x=n;this[x(1534)]||this[x(1785)](o)},t.prototype[n(1036)]=function(o){const x=n;this[x(1534)]||(this[x(1534)]=!0,this[x(1640)](o))},t[n(2107)][n(1843)]=function(){this[n(1534)]||(this.isStopped=!0,this._complete())},t[n(2107)][n(479)]=function(){const o=n;!this[o(1218)]&&(this[o(1534)]=!0,e[o(2107)].unsubscribe[o(414)](this),this[o(1091)]=null)},t[n(2107)][n(1785)]=function(o){const x=n;this[x(1091)][x(1026)](o)},t[n(2107)][n(1640)]=function(o){const x=n;try{this.destination[x(1036)](o)}finally{this[x(479)]()}},t[n(2107)][n(1800)]=function(){const o=n;try{this.destination[o(1843)]()}finally{this.unsubscribe()}},t})(_n),qs=(function(){const e=s;function n(t){const o=_0x5590;this[o(903)]=t}return n[e(2107)][e(1026)]=function(t){const o=e;var x=this[o(903)];if(x[o(1026)])try{x[o(1026)](t)}catch(r){Yt(r)}},n[e(2107)][e(1036)]=function(t){const o=e;var x=this.partialObserver;if(x.error)try{x[o(1036)](t)}catch(r){Yt(r)}else Yt(t)},n[e(2107)][e(1843)]=function(){const t=e;var o=this.partialObserver;if(o[t(1843)])try{o.complete()}catch(x){Yt(x)}},n})(),no=(function(e){K0(n,e);function n(t,o,x){var i=e[_0x5590(414)](this)||this,c;return Ve(t)||!t?c={next:t??void 0,error:o??void 0,complete:x??void 0}:c=t,i.destination=new qs(c),i}return n})(eo);function Yt(e){Yr(e)}function Ws(e){throw e}var Xs={closed:!0,next:Er,error:Ws,complete:Er},to=(function(){const e=s;return typeof Symbol===e(1347)&&Symbol[e(1562)]||e(1864)})();function Ur(e){return e}function Ks(e){const n=s;return e[n(2179)]===0?Ur:e[n(2179)]===1?e[0]:function(o){return e[n(1106)](function(r,i){return i(r)},o)}}var g0=(function(){const e=s;function n(t){const o=_0x5590;t&&(this[o(1256)]=t)}return n.prototype[e(386)]=function(t){const o=e;var x=new n;return x.source=this,x[o(808)]=t,x},n[e(2107)][e(1745)]=function(t,o,x){var r=this,i=Rs(t)?t:new no(t,o,x);return jt(function(){const c=_0x5590;var d=r,a=d[c(808)],u=d[c(766)];i[c(729)](a?a[c(414)](i,u):u?r[c(1256)](i):r._trySubscribe(i))}),i},n[e(2107)][e(561)]=function(t){const o=e;try{return this[o(1256)](t)}catch(x){t.error(x)}},n[e(2107)][e(1322)]=function(t,o){var x=this;return o=Gr(o),new o(function(r,i){const c=_0x5590;var d=new no({next:function(a){try{t(a)}catch(u){i(u),d.unsubscribe()}},error:i,complete:r});x[c(1745)](d)})},n[e(2107)][e(1256)]=function(t){const o=e;var x;return(x=this[o(766)])===null||x===void 0?void 0:x[o(1745)](t)},n[e(2107)][to]=function(){return this},n[e(2107)][e(582)]=function(){const t=e;for(var o=[],x=0;x<arguments[t(2179)];x++)o[x]=arguments[x];return Ks(o)(this)},n.prototype.toPromise=function(t){var o=this;return t=Gr(t),new t(function(x,r){var i;o.subscribe(function(c){return i=c},function(c){return r(c)},function(){return x(i)})})},n[e(1572)]=function(t){return new n(t)},n})();function Gr(e){const n=s;var t;return(t=e??Ts[n(1449)])!==null&&t!==void 0?t:Promise}function Zs(e){const n=s;return e&&Ve(e[n(1026)])&&Ve(e[n(1036)])&&Ve(e.complete)}function Rs(e){return e&&e instanceof eo||Zs(e)&&Ar(e)}function Js(e){return Ve(e?.[s(386)])}function tn(e){return function(n){const t=_0x5590;if(Js(n))return n[t(386)](function(o){const x=t;try{return e(o,this)}catch(r){this[x(1036)](r)}});throw new TypeError(t(767))}}function xn(e,n,t,o,x){return new _s(e,n,t,o,x)}var _s=(function(e){const n=s;K0(t,e);function t(o,x,r,i,c,d){const a=_0x5590;var u=e.call(this,o)||this;return u.onFinalize=c,u[a(1099)]=d,u[a(1785)]=x?function(f){const b=a;try{x(f)}catch(g){o[b(1036)](g)}}:e[a(2107)][a(1785)],u[a(1640)]=i?function(f){try{i(f)}catch(b){o.error(b)}finally{this.unsubscribe()}}:e[a(2107)][a(1640)],u[a(1800)]=r?function(){const f=a;try{r()}catch(b){o[f(1036)](b)}finally{this.unsubscribe()}}:e[a(2107)][a(1800)],u}return t[n(2107)][n(479)]=function(){const o=n;var x;if(!this[o(1099)]||this[o(1099)]()){var r=this[o(1218)];e.prototype.unsubscribe[o(414)](this),!r&&((x=this[o(802)])===null||x===void 0||x.call(this))}},t})(eo),Qs=Fx(function(e){return function(){const t=_0x5590;e(this),this[t(863)]=t(2016),this[t(1109)]=t(1635)}}),Or=(function(e){const n=s;K0(t,e);function t(){const o=_0x5590;var x=e[o(414)](this)||this;return x[o(1218)]=!1,x[o(754)]=null,x[o(1233)]=[],x[o(1534)]=!1,x.hasError=!1,x.thrownError=null,x}return t[n(2107)][n(386)]=function(o){const x=n;var r=new Hr(this,this);return r[x(808)]=o,r},t.prototype[n(660)]=function(){if(this.closed)throw new Qs},t[n(2107)][n(1026)]=function(o){var x=this;jt(function(){const r=_0x5590;var i,c;if(x[r(660)](),!x[r(1534)]){!x[r(754)]&&(x[r(754)]=Array[r(1365)](x.observers));try{for(var d=vn(x.currentObservers),a=d[r(1026)]();!a.done;a=d[r(1026)]()){var u=a[r(1044)];u[r(1026)](o)}}catch(f){i={error:f}}finally{try{a&&!a[r(1998)]&&(c=d.return)&&c[r(414)](d)}finally{if(i)throw i[r(1036)]}}}})},t[n(2107)].error=function(o){var x=this;jt(function(){const r=_0x5590;if(x[r(660)](),!x[r(1534)]){x.hasError=x[r(1534)]=!0,x[r(791)]=o;for(var i=x.observers;i[r(2179)];)i[r(1299)]()[r(1036)](o)}})},t[n(2107)][n(1843)]=function(){var o=this;jt(function(){const x=_0x5590;if(o[x(660)](),!o[x(1534)]){o[x(1534)]=!0;for(var r=o[x(1233)];r.length;)r[x(1299)]()[x(1843)]()}})},t[n(2107)][n(479)]=function(){const o=n;this[o(1534)]=this.closed=!0,this.observers=this.currentObservers=null},Object[n(593)](t[n(2107)],"observed",{get:function(){const o=n;var x;return((x=this.observers)===null||x===void 0?void 0:x[o(2179)])>0},enumerable:!1,configurable:!0}),t[n(2107)][n(561)]=function(o){const x=n;return this[x(660)](),e.prototype[x(561)][x(414)](this,o)},t[n(2107)][n(1256)]=function(o){const x=n;return this[x(660)](),this[x(770)](o),this._innerSubscribe(o)},t[n(2107)][n(530)]=function(o){const x=n;var r=this,i=this,c=i[x(1172)],d=i[x(1534)],a=i[x(1233)];return c||d?Pr:(this[x(754)]=null,a[x(1759)](o),new _n(function(){const u=x;r[u(754)]=null,At(a,o)}))},t.prototype[n(770)]=function(o){const x=n;var r=this,i=r[x(1172)],c=r[x(791)],d=r[x(1534)];i?o[x(1036)](c):d&&o[x(1843)]()},t.prototype[n(1487)]=function(){const o=n;var x=new g0;return x[o(766)]=this,x},t[n(1572)]=function(o,x){return new Hr(o,x)},t})(g0),Hr=(function(e){const n=s;K0(t,e);function t(o,x){const r=_0x5590;var i=e[r(414)](this)||this;return i[r(1091)]=o,i[r(766)]=x,i}return t[n(2107)][n(1026)]=function(o){const x=n;var r,i;(i=(r=this[x(1091)])===null||r===void 0?void 0:r[x(1026)])===null||i===void 0||i[x(414)](r,o)},t[n(2107)][n(1036)]=function(o){const x=n;var r,i;(i=(r=this[x(1091)])===null||r===void 0?void 0:r[x(1036)])===null||i===void 0||i.call(r,o)},t[n(2107)].complete=function(){const o=n;var x,r;(r=(x=this[o(1091)])===null||x===void 0?void 0:x[o(1843)])===null||r===void 0||r[o(414)](x)},t[n(2107)]._subscribe=function(o){const x=n;var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r[x(1745)](o))!==null&&i!==void 0?i:Pr},t})(Or),Fs={now:function(){return Date[s(1700)]()}},$s=(function(e){const n=s;K0(t,e);function t(o,x){return e[_0x5590(414)](this)||this}return t[n(2107)][n(630)]=function(o,x){return this},t})(_n),Tr={setInterval:function(e,n){const t=s;for(var o=[],x=2;x<arguments.length;x++)o[x-2]=arguments[x];return setInterval[t(2185)](void 0,Pt([e,n],It(o)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},el=(function(e){const n=s;K0(t,e);function t(o,x){const r=_0x5590;var i=e[r(414)](this,o,x)||this;return i[r(634)]=o,i[r(718)]=x,i.pending=!1,i}return t[n(2107)][n(630)]=function(o,x){const r=n;var i;if(x===void 0&&(x=0),this.closed)return this;this.state=o;var c=this.id,d=this[r(634)];return c!=null&&(this.id=this[r(463)](d,c,x)),this[r(1621)]=!0,this[r(541)]=x,this.id=(i=this.id)!==null&&i!==void 0?i:this[r(648)](d,this.id,x),this},t[n(2107)][n(648)]=function(o,x,r){const i=n;return r===void 0&&(r=0),Tr.setInterval(o[i(1103)][i(2119)](o,this),r)},t.prototype.recycleAsyncId=function(o,x,r){const i=n;return r===void 0&&(r=0),r!=null&&this.delay===r&&this[i(1621)]===!1?x:(x!=null&&Tr[i(2024)](x),void 0)},t.prototype.execute=function(o,x){const r=n;if(this.closed)return new Error(r(2111));this.pending=!1;var i=this[r(723)](o,x);if(i)return i;this[r(1621)]===!1&&this.id!=null&&(this.id=this[r(463)](this[r(634)],this.id,null))},t[n(2107)][n(723)]=function(o,x){const r=n;var i=!1,c;try{this.work(o)}catch(d){i=!0,c=d||new Error("Scheduled action threw falsy error")}if(i)return this[r(479)](),c},t[n(2107)][n(479)]=function(){const o=n;if(!this[o(1218)]){var x=this,r=x.id,i=x[o(634)],c=i[o(2047)];this[o(718)]=this[o(437)]=this[o(634)]=null,this.pending=!1,At(c,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this[o(541)]=null,e[o(2107)][o(479)][o(414)](this)}},t})($s),Vr=(function(){const e=s;function n(t,o){const x=_0x5590;o===void 0&&(o=n[x(1700)]),this[x(917)]=t,this.now=o}return n.prototype.schedule=function(t,o,x){const r=_0x5590;return o===void 0&&(o=0),new this.schedulerActionCtor(this,t)[r(630)](x,o)},n.now=Fs[e(1700)],n})(),nl=(function(e){const n=s;K0(t,e);function t(o,x){const r=_0x5590;x===void 0&&(x=Vr.now);var i=e.call(this,o,x)||this;return i.actions=[],i[r(1336)]=!1,i}return t[n(2107)][n(1103)]=function(o){const x=n;var r=this.actions;if(this[x(1336)]){r[x(1759)](o);return}var i;this._active=!0;do if(i=o[x(1047)](o[x(437)],o[x(541)]))break;while(o=r.shift());if(this[x(1336)]=!1,i){for(;o=r[x(1299)]();)o[x(479)]();throw i}},t})(Vr),tl=new nl(el);function xl(e){return e&&Ve(e[s(630)])}function ol(e){return e[e.length-1]}function rl(e){const n=s;return xl(ol(e))?e[n(1706)]():void 0}var qr=function(e){const n=s;return e&&typeof e[n(2179)]===n(2059)&&typeof e!==n(1347)};function Wr(e){return Ve(e?.[s(688)])}function Xr(e){return Ve(e[to])}function Kr(e){return Symbol.asyncIterator&&Ve(e?.[Symbol[s(1041)]])}function Zr(e){const n=s;return new TypeError("You provided "+(e!==null&&typeof e===n(878)?n(1162):"'"+e+"'")+n(759))}function il(){const e=s;return typeof Symbol!="function"||!Symbol.iterator?e(1803):Symbol[e(1002)]}var Rr=il();function Jr(e){return Ve(e?.[Rr])}function _r(e){return Os(this,arguments,function(){var t,o,x,r;return Ir(this,function(i){const c=_0x5590;switch(i[c(663)]){case 0:t=e[c(1495)](),i.label=1;case 1:i[c(372)][c(1759)]([1,,9,10]),i[c(663)]=2;case 2:return[4,pn(t[c(2011)]())];case 3:return o=i.sent(),x=o[c(1044)],r=o[c(1998)],r?[4,pn(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,pn(x)];case 6:return[4,i[c(1094)]()];case 7:return i[c(1094)](),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Qr(e){return Ve(e?.getReader)}function on(e){if(e instanceof g0)return e;if(e!=null){if(Xr(e))return cl(e);if(qr(e))return al(e);if(Wr(e))return sl(e);if(Kr(e))return Fr(e);if(Jr(e))return ll(e);if(Qr(e))return dl(e)}throw Zr(e)}function cl(e){return new g0(function(n){const t=_0x5590;var o=e[to]();if(Ve(o[t(1745)]))return o.subscribe(n);throw new TypeError(t(1066))})}function al(e){return new g0(function(n){const t=_0x5590;for(var o=0;o<e.length&&!n[t(1218)];o++)n[t(1026)](e[o]);n[t(1843)]()})}function sl(e){return new g0(function(n){const t=_0x5590;e[t(688)](function(o){const x=t;!n[x(1218)]&&(n.next(o),n[x(1843)]())},function(o){return n[t(1036)](o)})[t(688)](null,Yr)})}function ll(e){return new g0(function(n){const t=_0x5590;var o,x;try{for(var r=vn(e),i=r[t(1026)]();!i[t(1998)];i=r[t(1026)]()){var c=i[t(1044)];if(n[t(1026)](c),n[t(1218)])return}}catch(d){o={error:d}}finally{try{i&&!i[t(1998)]&&(x=r.return)&&x[t(414)](r)}finally{if(o)throw o[t(1036)]}}n[t(1843)]()})}function Fr(e){return new g0(function(n){const t=_0x5590;ul(e,n)[t(714)](function(o){return n.error(o)})})}function dl(e){return Fr(_r(e))}function ul(e,n){var t,o,x,r;return Gs(this,void 0,void 0,function(){var i,c;return Ir(this,function(d){const a=_0x5590;switch(d[a(663)]){case 0:d[a(372)][a(1759)]([0,5,6,11]),t=Hs(e),d[a(663)]=1;case 1:return[4,t[a(1026)]()];case 2:if(o=d[a(1094)](),!!o.done)return[3,4];if(i=o[a(1044)],n[a(1026)](i),n.closed)return[2];d[a(663)]=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=d[a(1094)](),x={error:c},[3,11];case 6:return d[a(372)][a(1759)]([6,,9,10]),o&&!o.done&&(r=t[a(1174)])?[4,r.call(t)]:[3,8];case 7:d.sent(),d[a(663)]=8;case 8:return[3,10];case 9:if(x)throw x[a(1036)];return[7];case 10:return[7];case 11:return n[a(1843)](),[2]}})})}function Z0(e,n,t,o,x){const r=s;o===void 0&&(o=0),x===void 0&&(x=!1);var i=n[r(630)](function(){const c=r;t(),x?e[c(729)](this[c(630)](null,o)):this[c(479)]()},o);if(e.add(i),!x)return i}function $r(e,n){return n===void 0&&(n=0),tn(function(t,o){t[_0x5590(1745)](xn(o,function(r){return Z0(o,e,function(){return o[_0x5590(1026)](r)},n)},function(){return Z0(o,e,function(){return o[_0x5590(1843)]()},n)},function(r){return Z0(o,e,function(){return o.error(r)},n)}))})}function ei(e,n){return n===void 0&&(n=0),tn(function(t,o){const x=_0x5590;o[x(729)](e.schedule(function(){return t[x(1745)](o)},n))})}function fl(e,n){return on(e).pipe(ei(n),$r(n))}function hl(e,n){const t=s;return on(e)[t(582)](ei(n),$r(n))}function gl(e,n){return new g0(function(t){const o=_0x5590;var x=0;return n[o(630)](function(){const r=o;x===e.length?t[r(1843)]():(t[r(1026)](e[x++]),!t[r(1218)]&&this[r(630)]())})})}function bl(e,n){return new g0(function(t){var o;return Z0(t,n,function(){o=e[Rr](),Z0(t,n,function(){const x=_0x5590;var r,i,c;try{r=o[x(1026)](),i=r[x(1044)],c=r[x(1998)]}catch(d){t[x(1036)](d);return}c?t.complete():t.next(i)},0,!0)}),function(){const x=_0x5590;return Ve(o?.[x(1174)])&&o[x(1174)]()}})}function ni(e,n){const t=s;if(!e)throw new Error(t(1374));return new g0(function(o){Z0(o,n,function(){const x=_0x5590;var r=e[Symbol[x(1041)]]();Z0(o,n,function(){const i=x;r[i(1026)]()[i(688)](function(c){const d=i;c[d(1998)]?o[d(1843)]():o[d(1026)](c.value)})},0,!0)})})}function yl(e,n){return ni(_r(e),n)}function ml(e,n){if(e!=null){if(Xr(e))return fl(e,n);if(qr(e))return gl(e,n);if(Wr(e))return hl(e,n);if(Kr(e))return ni(e,n);if(Jr(e))return bl(e,n);if(Qr(e))return yl(e,n)}throw Zr(e)}function Et(e,n){return n?ml(e,n):on(e)}function w0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=rl(e);return Et(e,t)}function Fe(e,n){var t=Ve(e)?e:function(){return e},o=function(x){return x[_0x5590(1036)](t())};return new g0(o)}function wl(e){return e instanceof Date&&!isNaN(e)}var vl=Fx(function(e){return function(t){const o=_0x5590;t===void 0&&(t=null),e(this),this[o(1109)]=o(569),this[o(863)]=o(954),this.info=t}});function pl(e,n){const t=s;var o=wl(e)?{first:e}:{each:e},x=o[t(898)],r=o[t(1270)],i=o[t(724)],c=i===void 0?zl:i,d=o[t(634)],a=d===void 0?tl:d,u=o[t(1007)],f=u===void 0?null:u;if(x==null&&r==null)throw new TypeError(t(345));return tn(function(b,g){const w=t;var h,v,M=null,m=0,y=function(p){v=Z0(g,a,function(){const z=_0x5590;try{h[z(479)](),on(c({meta:f,lastValue:M,seen:m}))[z(1745)](g)}catch(P){g[z(1036)](P)}},p)};h=b[w(1745)](xn(g,function(p){const z=w;v?.unsubscribe(),m++,g[z(1026)](M=p),r>0&&y(r)},void 0,void 0,function(){const p=w;!v?.[p(1218)]&&v?.[p(479)](),M=null})),!m&&y(x!=null?typeof x===w(2059)?x:+x-a.now():r)})}function zl(e){throw new vl(e)}function Ut(e,n){return tn(function(t,o){var x=0;t.subscribe(xn(o,function(r){const i=_0x5590;o.next(e[i(414)](n,r,x++))}))})}function Cl(e,n,t,o,x,r,i,c){const d=s;var a=[],u=0,f=0,b=!1,g=function(){const v=_0x5590;b&&!a[v(2179)]&&!u&&n[v(1843)]()},w=function(v){const M=_0x5590;return u<o?h(v):a[M(1759)](v)},h=function(v){const M=_0x5590;u++;var m=!1;on(t(v,f++))[M(1745)](xn(n,function(y){n[M(1026)](y)},function(){m=!0},void 0,function(){const y=M;if(m)try{u--;for(var p=function(){var P=a[_0x5590(1299)]();i||h(P)};a[y(2179)]&&u<o;)p();g()}catch(z){n[y(1036)](z)}}))};return e[d(1745)](xn(n,w,function(){b=!0,g()})),function(){}}function xo(e,n,t){return t===void 0&&(t=1/0),Ve(n)?xo(function(o,x){return Ut(function(r,i){return n(o,r,x,i)})(on(e(o,x)))},t):(typeof n=="number"&&(t=n),tn(function(o,x){return Cl(o,x,e,t)}))}function Gt(e){return tn(function(n,t){const o=_0x5590;var x=null,r=!1,i;x=n[o(1745)](xn(t,void 0,void 0,function(c){const d=o;i=on(e(c,Gt(e)(n))),x?(x[d(479)](),x=null,i[d(1745)](t)):r=!0})),r&&(x[o(479)](),x=null,i[o(1745)](t))})}function Ml(e,n,t){var o=Ve(e)||n||t?{next:e,error:n,complete:t}:e;return o?tn(function(x,r){const i=_0x5590;var c;(c=o[i(1745)])===null||c===void 0||c.call(o);var d=!0;x[i(1745)](xn(r,function(a){const u=i;var f;(f=o[u(1026)])===null||f===void 0||f[u(414)](o,a),r.next(a)},function(){const a=i;var u;d=!1,(u=o[a(1843)])===null||u===void 0||u[a(414)](o),r.complete()},function(a){const u=i;var f;d=!1,(f=o[u(1036)])===null||f===void 0||f[u(414)](o,a),r[u(1036)](a)},function(){const a=i;var u,f;d&&((u=o[a(479)])===null||u===void 0||u.call(o)),(f=o[a(825)])===null||f===void 0||f[a(414)](o)}))}):Ur}function oo(e){return encodeURIComponent((e||"")[s(349)]()||"__default__")}function Bl(e){const n=s;return e[n(1354)]==="external"?e[n(458)]+"::ext::"+oo(e[n(858)]??""):e.bindNodeId+"::"+e[n(1354)]}function ti(e,n){return e+":"+n}class zn{static instance;eventSubjects=new Map;[s(907)]=new Map;eventBlocks=new Map;[s(682)]=new Map;defaultRuntimeHandlers;constructor(){}static[s(781)](){const n=s;return!zn.instance&&(zn[n(2180)]=new zn),zn[n(2180)]}[s(1913)](n){const t=s;this.eventBlocks[t(721)](n.id,n)}[s(606)](n){this[s(1507)].delete(n)}getEventBlock(n){const t=s;return this[t(1507)][t(1861)](n)}[s(1314)](n){this.defaultRuntimeHandlers=n}[s(1331)](n){const t=s;if(!n)return;const o=this.defaultRuntimeHandlers;this.defaultRuntimeHandlers={dataRequest:{...o?.[t(874)],...n.dataRequest},external:{...o?.external,...n[t(1925)]}}}[s(1231)](n){const t=s,o=this.defaultRuntimeHandlers;if(!(!o&&!n))return{dataRequest:{...o?.[t(874)],...n?.dataRequest},external:{...o?.[t(1925)],...n?.[t(1925)]}}}disposeEventRootPipeline(n){const t=s,o=this[t(907)][t(1861)](n.id);o&&(o.unsubscribe(),this[t(907)].delete(n.id)),this.eventSubjects[t(1234)](n.id)}bindNodeEvent(n){const t=s,o=Bl(n),x=this[t(682)][t(1861)](o);x&&x.id!==n.id&&this.disposeEventRootPipeline(x),this[t(682)][t(721)](o,n),!this[t(1972)][t(1147)](n.id)&&this.createEventFlowPipeline(n)}unbindNodeEvent(n,t,o){const x=s;if(t==="external"){const d=n+"::ext::"+oo(o??""),a=this[x(682)][x(1861)](d);a&&(this[x(428)](a),this[x(682)][x(1234)](d));return}const r=n+"::"+t,i=ti(n,t),c=this.nodeEventBindings[x(1861)](r)??this[x(682)][x(1861)](i);c&&(this[x(428)](c),this[x(682)][x(1234)](r),this[x(682)][x(1234)](i))}[s(904)](n){const t=s,o=[];this[t(682)][t(1322)]((x,r)=>{x[t(458)]===n&&o.push({key:r,root:x})}),o[t(1322)](({key:x,root:r})=>{const i=t;this[i(428)](r),this[i(682)].delete(x)})}getNodeEventBindings(n){const t=s,o=[];return this[t(682)][t(1322)](x=>{const r=t;x.bindNodeId===n&&o[r(1759)](x)}),o}[s(1478)](n,t,o){const x=s,r=n+"::"+t,i=this[x(682)][x(1861)](r)??this[x(682)][x(1861)](ti(n,t));if(!i||!i[x(1306)])return w0({success:!0,result:null,path:[],duration:0});if(!this[x(1972)][x(1861)](i.id))return Fe(()=>new Error("Event flow not initialized for "+r));const d=Date[x(1700)](),a={...o,executionPath:o[x(556)]||[],runtimeHandlers:this[x(1231)](o[x(1738)])};return this[x(1729)](i,a)[x(582)](Ut(u=>({success:!0,result:u,path:a[x(556)],duration:Date[x(1700)]()-d})),Gt(u=>w0({success:!1,error:u[x(1109)]||"Event flow execution failed",path:a.executionPath,duration:Date.now()-d})))}[s(1403)](n,t,o){const x=s,r=n+x(1035)+oo(t),i=this.nodeEventBindings[x(1861)](r);if(!i||!i[x(1306)])return w0({success:!0,result:null,path:[],duration:0});if(!this.eventSubjects[x(1861)](i.id))return Fe(()=>new Error(x(2039)+r));const d=Date[x(1700)](),a={...o,executionPath:o[x(556)]||[],runtimeHandlers:this.mergeRuntimeHandlers(o.runtimeHandlers)};return this.executeEventFlow(i,a)[x(582)](Ut(u=>({success:!0,result:u,path:a[x(556)],duration:Date[x(1700)]()-d})),Gt(u=>w0({success:!1,error:u[x(1109)]||"Event flow execution failed",path:a[x(556)],duration:Date[x(1700)]()-d})))}createEventFlowPipeline(n){const t=s,o=new Or;this.eventSubjects[t(721)](n.id,o)}[s(1729)](n,t){const o=s,{nodes:x,edges:r}=n.flowData;if(x[o(2179)]===0)return w0(null);const i=x[o(815)](c=>c[o(1439)][o(2179)]===0);return i[o(2179)]===0?Fe(()=>new Error("No start node found in event flow")):this[o(545)](i,x,r,t,{})}[s(545)](n,t,o,x,r){const i=s;if(n.length===0)return w0(r);const c=n[i(474)](d=>this[i(1112)](d,x,r)[i(582)](Ml(a=>{const u=i;r[d.id]=a,x.executionPath[u(1759)](d.id)})));return Et(c)[i(582)](xo(d=>d,1),Ut(()=>{const d=i,a=new Set;return n[d(1322)](f=>{const b=d;f[b(2086)].forEach(g=>{const w=b,h=t[w(990)](v=>v.id===g);h&&h.inputs.every(M=>r[M]!==void 0)&&a[w(729)](g)})}),t[d(815)](f=>a[d(1147)](f.id))}),xo(d=>{const a=i;return d.length>0?this[a(545)](d,t,o,x,r):w0(r)}),pl(3e4),Gt(d=>(console.error(i(1056),d),Fe(()=>d))))}[s(602)](n){const t=s;return this[t(1507)][t(1861)](n[t(1481)])??n[t(1551)][t(1418)]}[s(803)](n,t,o){const x=s;return n[x(830)](/\{\{\s*([^}]+?)\s*\}\}/g,(r,i)=>{const c=x,d=String(i)[c(349)]();if(d[c(2189)]("$")){const u=this[c(1327)](o,d[c(852)](1));return u==null?"":String(u)}const a=t[d];return a==null?"":String(a)})}executeBuiltin(n,t,o){const x=s,r=n[x(747)];if(!r)return Fe(()=>new Error("内置动作未选择类型"));if(r==="antdMessage"){const i=n.builtinConfig??{},c=String(i[x(592)]??""),d=i.level??"info",a=i.duration,u=this[x(803)](c,o,t);if(!u[x(349)]())return Fe(()=>new Error(x(588)));try{const f={type:d,content:u};if(a!=null&&a!==""){const b=Number(a);!Number[x(1782)](b)&&(f[x(850)]=b)}return C[x(1109)][x(1564)](f),w0({ok:!0,builtinId:r,content:u,level:d})}catch(f){return Fe(()=>f)}}if(r==="switchCanvas"){const i=n[x(1554)]??{},c=String(i.targetCanvasId??"")[x(349)]();if(!c)return Fe(()=>new Error(x(1904)));const d=t[x(819)]??t[x(1315)];if(!d)return Fe(()=>new Error("当前环境不支持画布切换"));try{return d(c),w0({ok:!0,builtinId:r,targetCanvasId:c,withHistory:!!t[x(819)]})}catch(a){return Fe(()=>a)}}return Fe(()=>new Error(x(2183)+String(r)))}invokeRuntimeHandler(n,t,o){try{const x=n(t,o);return x instanceof Promise?Et(x):w0(x)}catch(x){return Fe(()=>x)}}executeSingleFlowNode(n,t,o){const x=s,r=this[x(602)](n);if(!r)return Fe(()=>new Error(x(2023)+n[x(1481)]));const i=this[x(2057)](n,t,o),c=r[x(1205)]??"inlineScript";if(c==="dataRequest"){const d=(r[x(439)]||"")[x(349)]();if(!d)return Fe(()=>new Error("事件块未配置 dataRequestKey"));const a=t.runtimeHandlers?.[x(874)]?.[d];return a?this[x(594)](a,t,i):Fe(()=>new Error(x(1825)+d))}if(c===x(1925)){const d=(r[x(357)]||"")[x(349)]();if(!d)return Fe(()=>new Error("事件块未配置 externalHandlerKey"));const a=t.runtimeHandlers?.[x(1925)]?.[d];return a?this[x(594)](a,t,i):Fe(()=>new Error(x(841)+d))}if(c===x(434))return this.executeBuiltin(r,t,i);try{const d=new Function(x(1504),"context","args",r.callback),a=d(t[x(1284)],t,i);return a instanceof Promise?Et(a):w0(a)}catch(d){return Fe(()=>d)}}[s(2057)](n,t,o){const x=s,r={$event:t[x(1208)],$data:t[x(1551)],$node:t[x(1284)]},{inputMapping:i}=n[x(1551)];return i&&Object.entries(i)[x(1322)](([c,d])=>{const a=x;if(d.startsWith(a(915))){const u=d[a(830)](a(915),"");r[c]=o[u]}else if(d.startsWith("$")){const u=d[a(852)](1);r[c]=this[a(1327)](t,u)}else r[c]=d}),r}[s(1327)](n,t){return t.split(".").reduce((o,x)=>{if(o!==null&&typeof o=="object"&&x in o)return o[x]},n)}clearAll(){const n=s;this.subscriptions.forEach(t=>t[n(479)]()),this.subscriptions[n(1390)](),this[n(1972)][n(1390)](),this.nodeEventBindings[n(1390)]()}}const Cn=zn[s(781)](),xi=({node:e,children:n,runtimeHandlers:t,flowContextData:o})=>{const x=s,{eventFlow:r,switchCanvas:i,jumpToCanvas:c}=Qe(),d=B[x(780)](null),a=B[x(1318)](()=>{const f=x;return r[f(1271)].filter(b=>b[f(458)]===e.id&&b[f(1306)])},[r[x(1271)],e.id]),u=B[x(1318)](f=>b=>{const g=_0x5590,w=a()[g(815)](v=>v[g(1354)]===f);if(w.length===0)return;f!==g(2168)&&f!==g(1678)&&b[g(810)](),b.stopPropagation();const h=o&&typeof o===g(878)?{...o}:{};w[g(1322)](v=>{const M=g;Cn.emit(e.id,f,{triggerNode:e,originalEvent:b,data:h,runtimeHandlers:t,switchCanvas:i,jumpToCanvas:c})[M(1745)]({next:m=>{const y=M;!m[y(1093)]&&console.error(y(1412),m[y(1036)])},error:m=>{const y=M;console[y(1036)](y(1220),m)}})})},[a,e,t,o]);return B.useEffect(()=>{const f=x;return a()[f(1322)](g=>{Cn.bindNodeEvent(g)}),()=>{Cn[f(904)](e.id)}},[a,e.id]),B[x(2005)](()=>{const f=x,b=d.current;if(!b)return;const g={click:u(f(1164)),mousedown:u("mouseDown"),mouseup:u("mouseUp"),dblclick:u(f(536)),mouseover:u(f(2168)),mouseleave:u(f(1678)),mouseenter:u(f(1340)),contextmenu:u(f(1133))};return Object[f(1615)](g)[f(1322)](([w,h])=>{b[f(1892)](w,h,!0)}),()=>{const w=f;Object[w(1615)](g)[w(1322)](([h,v])=>{b[w(1665)](h,v,!0)})}},[u]),B[x(425)](n,{ref:f=>{const b=x;d.current=f;const g=n[b(941)];typeof g===b(1347)?g(f):g&&"current"in g&&(g[b(523)]=f)}})},{Text:oi}=C[s(464)],ri=(e,n)=>{const t=s;if(!n||!e)return{value:void 0};if(Array[t(565)](e)){const o=e[t(990)](x=>x.paramsCode===n);if(o)return{value:o[t(1044)],unit:o[t(2013)]}}else if(typeof e===t(878)){const o=n[t(897)](".");let x=e;for(const r of o){if(x===null||typeof x!==t(878))return{value:void 0};x=x[r]}if(x!==void 0)return{value:x,unit:e.unit}}return{value:void 0}};function Dl(e){return Array[s(565)](e)}const Ll=(e,n,t)=>{const o=s,x=e.content||{},{valueSourceCode:r,boundDatasetId:i,boundDatasetBindCode:c,boundDatasetBindValue:d}=x;if(!r)return{value:void 0};if(i){const a=n.find(u=>u.id===i);if(a){let u;Dl(a[o(2133)])?c!=null&&d!=null?u=a[o(2133)][o(990)](b=>b[c]===d)||{}:u={}:u=a[o(2133)];const f=t&&typeof t===o(878)?{...u,...t}:u;return ri(f,r)}}return ri(t,r)},Nl=(e,n)=>{const t=s;if(e==null||e==="")return"";if(n===-1)return String(e);const o=Number(e);return isNaN(o)?String(e):o[t(708)](n??2)},Sl=(e,n,t,o,x)=>{const r=s;switch(e[r(1912)]){case"IMAGE":const i=e,c=i.backgroundColor,d=i[r(1334)];let a=i[r(1950)];return d&&a&&a[r(1419)](r(1600))&&(e[r(863)]==="矩形"?a="data:image/svg+xml,"+encodeURIComponent(r(2056)+d+r(1013)):e[r(863)]==="圆形"?a=r(1146)+encodeURIComponent(r(2051)+d+r(1376)):e[r(863)]===r(605)&&(a=r(1146)+encodeURIComponent(r(2056)+d+r(1466)))),l[r(1375)](r(1037),{className:r(1661),style:{backgroundColor:c},children:a?l[r(1375)](r(1663),{src:a,alt:e.name,style:{width:r(1575),height:r(1575),objectFit:r(1906)}}):l[r(1375)](r(1037),{className:"w-full h-full flex items-center justify-center",children:l[r(1375)](r(2163),{className:r(982),children:r(548)})})});case r(1509):const u=e,{label:f,value:b,valueSourceCode:g,unit:w,decimals:h,labelStyle:v,valueStyle:M,customStyle:m}=u.content||{},{value:y,unit:p}=g?Ll(u,x||[],n):{value:void 0,unit:void 0},z=y!==void 0?y:b,P=Nl(z,h),G=w||p||"";return l[r(884)]("div",{className:r(1601),style:{...m},children:[f&&l[r(1375)](oi,{style:{fontSize:14,fontWeight:r(1268),color:r(1085),textAlign:"left",...v},children:f}),P&&l[r(884)](oi,{style:{fontSize:14,color:r(1483),textAlign:r(937),...M},children:[P,G?" "+G:""]})]});case r(1701):const O=e,{thickness:V=2,color:j="#d9d9d9",dashed:q=!1,lineType:H=r(q?444:535),lineWeight:W=V,startX:T=0,startY:N=0,endX:L=100,endY:D=0}=O.config||{},Y=$=>{const F=r,xe=Math[F(2172)](W,1);switch($){case F(535):return"";case F(444):return xe*8+","+xe*4;case F(613):return xe*12+","+xe*3+","+xe*2+","+xe*3;case"phantom":return xe*12+","+xe*3+","+xe*2+","+xe*3+","+xe*2+","+xe*3;case F(457):return xe+","+xe*3;case F(2007):return xe*8+","+xe*3+","+xe+","+xe*3;default:return""}},U=Y(H),I=t?r(1483):j;return l[r(1375)](r(1037),{className:r(2101),style:{overflow:r(963)},children:l[r(884)]("svg",{className:r(1874),width:r(1575),height:r(1575),style:{overflow:"visible",pointerEvents:r(988)},children:[l.jsx(r(1190),{x1:T,y1:N,x2:L,y2:D,stroke:r(1911),strokeWidth:Math.max(W,10),strokeLinecap:r(381),strokeLinejoin:r(381),style:{pointerEvents:"stroke",cursor:r(619)}}),l[r(1375)](r(1190),{x1:T,y1:N,x2:L,y2:D,stroke:I,strokeWidth:W,strokeDasharray:U,strokeLinecap:"round",strokeLinejoin:r(381),style:{pointerEvents:"none"}})]})});case r(601):const J=e;return J[r(1730)]?J.render({}):l[r(1375)]("div",{className:r(1781),children:l[r(1375)]("span",{className:r(982),children:r(1711)})});default:return l[r(1375)](r(1037),{className:"w-full h-full flex items-center justify-center bg-gray-100",children:l.jsx(r(2163),{className:r(982),children:"未知类型"})})}},kl=({node:e,isSelected:n=!1,onClick:t,onMouseDown:o,data:x,onUpdateNode:r,scale:i=1,enableEventFlow:c=!1,eventFlowData:d})=>{const a=s,{normalStyle:u,controlInfo:f}=e,{isClickable:b,isDraggable:g,isResizable:w}=f,h=e[a(742)],v=Qe(A=>A[a(1440)]),M=Qe(A=>A[a(813)]),m=B[a(780)](t);B[a(2005)](()=>{const A=a;m[A(523)]=t},[t]);const[y,p]=B[a(883)](null),z=B[a(780)](null),P=B.useRef(null),G=B[a(780)](null),O=B[a(780)](null),V=B[a(780)](null),[j,q]=B.useState(null),H=B[a(780)](null),W=B[a(780)](null),T=B.useMemo(()=>{const A=a,Z=e[A(742)][A(1833)];if(Z[A(2179)]===0)return;const ne=Br(Z,x,v);return ne||Z[0]},[e[a(742)][a(1833)],x,v]),N=B[a(780)](e.contentInfo[a(1542)]);B[a(2005)](()=>{const A=a;N[A(523)]=e[A(742)][A(1542)]},[e.id]),B[a(2005)](()=>{const A=a,Z=T?.id;Z!==void 0&&N[A(523)]!==Z&&(N[A(523)]=Z,M(e.id,{contentInfo:{...e.contentInfo,currentStatusId:Z}}))},[T?.id,e.id,M]);const L=T?.material,D=L?.[a(1912)]===a(1701),Y=D?L.config:null,U=u[a(690)]??1,I=(u.width||100)*U,J=(u[a(1355)]||100)*U,$=B[a(1318)](()=>{const A=a,Z=V[A(523)]?.[A(1720)]('[data-canvas="true"]');if(!Z)return i;const ne=Z[A(1821)](),te=parseFloat(Z[A(1476)].width);return te?ne[A(1710)]/te:i},[i]),F=B[a(1318)]((A,Z)=>{const ne=a;A.stopPropagation(),A[ne(810)]();const te=Y?.[ne(957)]||0,X=Y?.[ne(504)]||0,oe=Y?.[ne(1676)]||0,ve=Y?.[ne(1945)]||0,pe=u.x||0,Ie=u.y||0,Ae=Math.max((Y?.[ne(1200)]||Y?.[ne(1531)]||2)*2,4),Ee=Math[ne(775)](te,oe),Ne=Math[ne(775)](X,ve),ke=Math[ne(2172)](te,oe),Oe=Math.max(X,ve),je=Math[ne(2172)](ke-Ee,Ae),qe=Math.max(Oe-Ne,Ae);z[ne(523)]={mouseX:A[ne(1072)],mouseY:A[ne(1301)],startX:te,startY:X,endX:oe,endY:ve,nodeX:pe,nodeY:Ie};const We=Math[ne(775)](te,oe),$e=Math[ne(775)](X,ve);G.current={nodeX:pe+We,nodeY:Ie+$e,width:je,height:qe,startX:te-We,startY:X-$e,endX:oe-We,endY:ve-$e},P[ne(523)]=T||null,p(Z)},[Y,u.x,u.y,T]);B[a(2005)](()=>{const A=a;if(!y||!D||!Y||!r)return;const Z=te=>{const X=_0x5590,oe=z[X(523)];if(!oe||!V[X(523)])return;const ve=$(),pe=(te[X(1072)]-oe[X(1792)])/ve,Ie=(te[X(1301)]-oe[X(1153)])/ve;let Ae=oe.startX,Ee=oe[X(504)],Ne=oe[X(1676)],ke=oe[X(1945)],Oe=oe[X(2064)],je=oe[X(388)];y===X(1310)?(Ae=oe[X(957)]+pe,Ee=oe[X(504)]+Ie,Ae<0&&(Oe=oe[X(2064)]+Ae,Ne=oe.endX-Ae,Ae=0),Ee<0&&(je=oe[X(388)]+Ee,ke=oe.endY-Ee,Ee=0)):(Ne=oe.endX+pe,ke=oe[X(1945)]+Ie,Ne<0&&(Oe=oe[X(2064)]+Ne,Ae=oe.startX-Ne,Ne=0),ke<0&&(je=oe.nodeY+ke,Ee=oe.startY-ke,ke=0));const qe=Math[X(2172)]((Y[X(1200)]||2)*2,4),We=Math[X(775)](Ae,Ne),$e=Math[X(775)](Ee,ke),b0=Math[X(2172)](Ae,Ne),B0=Math.max(Ee,ke),t0=Oe+We,a0=je+$e,x0=Ae-We,s0=Ee-$e,h0=Ne-We,V0=ke-$e,$0=Math[X(2172)](b0-We,qe),q0=Math[X(2172)](B0-$e,qe);G.current={nodeX:t0,nodeY:a0,width:$0,height:q0,startX:x0,startY:s0,endX:h0,endY:V0};const Ke=V[X(523)];Ke[X(1476)][X(937)]=t0+"px",Ke[X(1476)][X(1117)]=a0+"px",Ke.style[X(1710)]=$0+"px",Ke[X(1476)].height=q0+"px",Ke[X(1214)](X(1682)).forEach(D0=>{const gn=X;D0[gn(1051)]("x1",String(x0)),D0[gn(1051)]("y1",String(s0)),D0.setAttribute("x2",String(h0)),D0[gn(1051)]("y2",String(V0))});const e0=Ke[X(1525)](X(1526)),A0=Ke[X(1525)](X(1671));e0&&(e0[X(1476)][X(937)]=x0-6+"px",e0[X(1476)][X(1117)]=s0-6+"px"),A0&&(A0[X(1476)].left=h0-6+"px",A0.style.top=V0-6+"px")},ne=()=>{const te=_0x5590,X=G[te(523)];if(!X||!r){p(null),z[te(523)]=null,G[te(523)]=null,P[te(523)]=null;return}const oe=Qe[te(1305)]().nodes[te(990)](Ne=>Ne.id===e.id),ve=oe?.contentInfo[te(1833)]??e[te(742)].statusList,pe=P[te(523)],Ie=pe?.id??ve[te(990)](Ne=>Ne[te(956)][te(1912)]===te(1701))?.id,Ae=ve[te(474)](Ne=>{const ke=te;if(Ne[ke(956)][ke(1912)]!==ke(1701)||Ne.id!==Ie)return Ne;const Oe=Ne[ke(956)];return{...Ne,material:{...Oe,config:{...Oe.config,startX:X.startX,startY:X[ke(504)],endX:X[ke(1676)],endY:X.endY}}}}),Ee=oe?.[te(742)]??h;r(e.id,{normalStyle:{x:X[te(2064)],y:X[te(388)],width:X.width,height:X.height},contentInfo:{...Ee,statusList:Ae}}),p(null),z[te(523)]=null,G[te(523)]=null,P[te(523)]=null};return window.addEventListener(A(920),Z),window[A(1892)](A(814),ne),()=>{const te=A;window[te(1665)](te(920),Z),window[te(1665)](te(814),ne)}},[y,D,Y,e.id,u,h,e[a(742)][a(1833)],r,$]),B[a(2005)](()=>{const A=a;if(!j||!r)return;const Z=te=>{const X=_0x5590;if(!V[X(523)])return;const oe=$(),ve=(te.clientX-j[X(957)])/oe,pe=(te.clientY-j[X(504)])/oe,Ie=j.startRotate,Ae=Ie*Math.PI/180,Ee=Math[X(2040)](Ae),Ne=Math.sin(Ae),ke=ve*Ee+pe*Ne,Oe=-ve*Ne+pe*Ee;let je=j.startWidth,qe=j[X(993)],We=j[X(1311)],$e=j[X(1731)];switch(j[X(1910)]){case"se":je=Math.max(20,j[X(2131)]+ke),qe=Math[X(2172)](20,j[X(993)]+Oe);break;case"sw":je=Math.max(20,j[X(2131)]-ke),qe=Math[X(2172)](20,j[X(993)]+Oe),We=j[X(1311)]+(j[X(2131)]-je);break;case"ne":je=Math[X(2172)](20,j[X(2131)]+ke),qe=Math.max(20,j[X(993)]-Oe),$e=j[X(1731)]+(j[X(993)]-qe);break;case"nw":je=Math[X(2172)](20,j[X(2131)]-ke),qe=Math[X(2172)](20,j[X(993)]-Oe),We=j[X(1311)]+(j[X(2131)]-je),$e=j[X(1731)]+(j[X(993)]-qe);break}if(Ie!==0){let B0=0,t0=0,a0=0,x0=0;switch(j.corner){case"se":B0=0,t0=0,a0=0,x0=0;break;case"sw":B0=j[X(2131)],t0=0,a0=je,x0=0;break;case"ne":B0=0,t0=j[X(993)],a0=0,x0=qe;break;case"nw":B0=j.startWidth,t0=j[X(993)],a0=je,x0=qe;break}const s0=B0-j[X(2131)]/2,h0=t0-j[X(993)]/2,V0=s0*Ee-h0*Ne,$0=s0*Ne+h0*Ee,q0=a0-je/2,Ke=x0-qe/2,hn=q0*Ee-Ke*Ne,e0=q0*Ne+Ke*Ee;We=j[X(1311)]+j[X(2131)]/2-je/2+V0-hn,$e=j.startNodeY+j[X(993)]/2-qe/2+$0-e0}O[X(523)]={x:We,y:$e,width:je,height:qe};const b0=V[X(523)];b0[X(1476)][X(937)]=We+"px",b0.style[X(1117)]=$e+"px",b0[X(1476)][X(1710)]=je+"px",b0[X(1476)][X(1355)]=qe+"px"},ne=()=>{const te=_0x5590,X=O[te(523)];X&&r(e.id,{normalStyle:{...u,x:X.x,y:X.y,width:X[te(1710)],height:X.height}}),q(null),O.current=null};return window.addEventListener(A(920),Z),window[A(1892)]("mouseup",ne),()=>{const te=A;window[te(1665)](te(920),Z),window[te(1665)](te(814),ne)}},[j,r,e.id,u,$]);const xe=B[a(1318)]((A,Z)=>{const ne=a;A.stopPropagation(),A[ne(810)](),q({corner:Z,startX:A[ne(1072)],startY:A[ne(1301)],startWidth:u[ne(1710)]||100,startHeight:u.height||100,startNodeX:u.x||0,startNodeY:u.y||0,startRotate:u[ne(1442)]||0})},[u[a(1710)],u.height,u.x,u.y,u[a(1442)]]),re=B[a(1318)](A=>{const Z=a;A[Z(1313)](),A[Z(810)]();const ne=V[Z(523)]?.[Z(1821)]();if(!ne)return;H[Z(523)]={startX:A[Z(1072)],startY:A[Z(1301)],startAngle:u.rotate||0,centerX:ne.left+ne[Z(1710)]/2,centerY:ne[Z(1117)]+ne[Z(1355)]/2};const te=u[Z(1121)]||"",X=pe=>{const Ie=Z;V[Ie(523)]&&(V[Ie(523)][Ie(1476)].transform=te?"rotate("+pe+Ie(376)+te:"rotate("+pe+Ie(1494))};X(u[Z(1442)]||0);const oe=pe=>{const Ie=Z;if(!H[Ie(523)])return;const Ae=pe.clientX-H[Ie(523)][Ie(1187)],Ee=pe.clientY-H[Ie(523)].centerY;let ke=(Math[Ie(1654)](Ee,Ae)*(180/Math.PI)+90)%360;ke<0&&(ke+=360),W.current=ke,X(ke)},ve=()=>{const pe=Z,Ie=W[pe(523)]??H[pe(523)][pe(1784)];if(W.current=null,H[pe(523)]=null,r){const Ae=e[pe(1379)];r(e.id,{normalStyle:{...Ae,rotate:Math.round(Ie)}})}V[pe(523)]?.[pe(1476)][pe(661)](pe(1121)),window[pe(1665)](pe(920),oe),window[pe(1665)](pe(814),ve)};window[Z(1892)]("mousemove",oe),window[Z(1892)](Z(814),ve)},[u[a(1442)],u[a(1121)],r,e.id,e[a(1379)]]),ae=e[a(1912)]===a(744),ue=u.transform||"",me=u.rotate||0,se={position:a(2122),left:u.x||0,top:u.y||0,width:I,height:J,background:ae?a(1911):u.background||a(1911),backgroundImage:ae?void 0:u.backgroundImage?a(415)+u[a(875)]+")":void 0,backgroundSize:a(673),backgroundPosition:a(613),padding:Array[a(565)](u.padding)?u[a(448)][a(1881)]("px ")+"px":u.padding,margin:Array[a(565)](u[a(1055)])?u[a(1055)][a(1881)](a(1900))+"px":u.margin,borderRadius:ae?void 0:u[a(681)],border:D||ae?a(988):n?a(1756):u[a(1159)]||a(831),outline:n&&ae&&!D?"2px solid #1890ff":void 0,pointerEvents:"auto",opacity:u.opacity??1,transform:D?ue||void 0:ue?a(1448)+me+a(376)+ue:a(1448)+me+"deg)",transformOrigin:a(935),zIndex:n?1e3:u.zIndex??1,cursor:g&&!y?a(696):b?"pointer":a(384),boxSizing:a(573),overflow:a(n||D||ae?963:1771)},ee={width:a(1575),height:"100%",position:a(692),transformOrigin:a(935),...u[a(532)]||u.flipY?{transform:a(1852)+(u[a(532)]?-1:1)+a(471)+(u[a(1536)]?-1:1)+")"}:{}},le=Y?{x:Y[a(957)]||0,y:Y.startY||0}:{x:0,y:0},be=Y?{x:Y.endX||0,y:Y[a(1945)]||0}:{x:0,y:0},E=l.jsxs(a(1037),{ref:V,"data-node-id":e.id,style:se,onClick:A=>{const Z=a;console[Z(1672)]("NodeRenderer onClick",e.id,Z(1074),b);const ne=m[Z(523)];b&&ne&&!y&&!j&&!H.current&&(A[Z(1313)](),ne(A))},onMouseDown:A=>{g&&o&&!y&&o(A)},children:[n&&!D&&l.jsxs(l[a(1465)],{children:[!ae&&l[a(884)](l[a(1465)],{children:[l[a(1375)]("div",{className:a(366),style:{zIndex:9999,pointerEvents:a(1798),cursor:a(382),marginTop:a(773),marginLeft:a(773)},onMouseDown:A=>xe(A,"nw"),title:a(495)}),l.jsx(a(1037),{className:a(1129),style:{zIndex:9999,pointerEvents:a(1798),cursor:a(789),marginTop:"-6px",marginRight:"-6px"},onMouseDown:A=>xe(A,"ne"),title:a(495)}),l[a(1375)]("div",{className:a(657),style:{zIndex:9999,pointerEvents:a(1798),cursor:"sw-resize",marginBottom:a(773),marginLeft:"-6px"},onMouseDown:A=>xe(A,"sw"),title:a(495)}),l[a(1375)](a(1037),{className:a(1352),style:{zIndex:9999,pointerEvents:a(1798),cursor:a(567),marginBottom:a(773),marginRight:a(773)},onMouseDown:A=>xe(A,"se"),title:"拖拽调整大小"})]}),l[a(1375)]("div",{className:a(2157),style:{zIndex:9999,pointerEvents:a(1798),cursor:a(1104),marginTop:a(1078),transform:a(1382),boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:A=>re(A),title:a(975)}),l.jsx("div",{className:a(2071),style:{zIndex:9998,pointerEvents:a(988),marginTop:a(703),transform:"translateX(-50%)"}}),l[a(884)](a(1037),{className:a(1385),children:[e[a(863)]," ",T?"("+T[a(863)]+")":""]})]}),n&&D&&Y&&r&&l[a(884)](l[a(1465)],{children:[l[a(1375)]("div",{"data-handle":a(1310),className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:le.x-6,top:le.y-6,boxShadow:a(1317)},onMouseDown:A=>F(A,a(1310)),title:a(1916)}),l[a(1375)](a(1037),{"data-handle":a(1942),className:a(1377),style:{left:be.x-6,top:be.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:A=>F(A,"end"),title:a(945)}),l[a(1375)](a(1037),{className:a(1385),children:e[a(863)]})]}),l[a(884)]("div",{style:D?void 0:ee,className:D?"w-full h-full relative":void 0,children:[l[a(1375)](a(1037),{className:a(2101),children:L?l.jsx(a(1037),{className:a(1991),children:Sl(L,x,n,e,v)}):ae?null:l[a(1375)](a(1037),{className:a(1140),children:a(389)})}),e[a(1912)]==="group"&&e.children&&l[a(1375)](a(1037),{className:"absolute inset-0 pointer-events-none",children:e[a(517)].map(A=>l[a(1375)](a(1037),{className:"pointer-events-auto",children:l[a(1375)](ro,{node:A,isSelected:!1,data:x,onUpdateNode:r,scale:i,enableEventFlow:c,eventFlowData:d})},A.id))})]})]});return c?l[a(1375)](xi,{node:e,flowContextData:d,children:E}):E},ro=B[s(2002)](kl,(e,n)=>{const t=s,o=e[t(1504)],x=n[t(1504)],r=o.id===x.id&&o[t(1379)].x===x[t(1379)].x&&o[t(1379)].y===x.normalStyle.y&&o.normalStyle.width===x[t(1379)].width&&o[t(1379)][t(1355)]===x[t(1379)][t(1355)]&&o.normalStyle.rotate===x[t(1379)][t(1442)]&&o[t(1379)][t(532)]===x[t(1379)][t(532)]&&o.normalStyle[t(1536)]===x.normalStyle[t(1536)],i=o[t(742)]===x[t(742)],c=JSON[t(922)](e[t(991)]??null)===JSON[t(922)](n[t(991)]??null),d=e.isSelected===n[t(1447)]&&e[t(690)]===n[t(690)]&&e.enableEventFlow===n[t(1922)]&&c,a=g=>{const w=t,h=[];return g[w(742)]?.[w(1833)]?.[w(1322)](v=>{const M=w;if(v[M(956)]?.type===M(1701)){const m=v[M(956)][M(1936)];h[M(1759)]({statusId:v.id,startX:m?.[M(957)]??0,startY:m?.[M(504)]??0,endX:m?.[M(1676)]??100,endY:m?.[M(1945)]??0})}}),h},u=a(o),f=a(x);let b=!0;if(u.length!==f[t(2179)])b=!1;else for(let g=0;g<u[t(2179)];g++){const w=u[g],h=f[t(990)](v=>v[t(1431)]===w.statusId);if(!h||w[t(957)]!==h.startX||w.startY!==h.startY||w[t(1676)]!==h[t(1676)]||w.endY!==h.endY){b=!1;break}}return r&&i&&d&&b}),Il=()=>{const e=s,{root:n,addSiblingGroup:t,removeSiblingGroup:o,updateSiblingGroup:x,addCanvasToSiblingGroup:r,removeCanvasFromSiblingGroup:i,moveCanvasInSiblingGroup:c,nextSiblingCanvas:d,prevSiblingCanvas:a,setActiveSiblingGroup:u}=Qe(),f=n[e(408)]??null,b=n[e(511)]||[],[g,w]=B[e(883)](b[0]?.id??null),h=B[e(1581)](()=>b[e(990)](j=>j.id===g)||null,[b,g]),[v,M]=B[e(883)](null),[m,y]=B[e(883)](""),[p,z]=B[e(883)](void 0),P=B[e(1581)](()=>{const j=e;return h?n[j(974)][j(815)](q=>!h[j(869)][j(1419)](q.id)):n[j(974)]},[n[e(974)],h]),G=B[e(1318)](()=>{const j=t();w(j)},[t]),O=B[e(1318)](j=>{const q=e,H=m.trim();if(!H){C[q(1109)][q(1517)](q(2120));return}x(j,{name:H}),M(null),y("")},[m,x]),V=B[e(1318)](()=>{!h||!p||(r(h.id,p),z(void 0))},[h,p,r]);return l[e(884)](e(1037),{className:e(525),style:{minHeight:360},children:[l[e(884)](e(1037),{className:e(1e3),style:{minWidth:220},children:[l.jsxs("div",{className:e(2009),children:[l[e(1375)](e(2163),{className:"font-semibold text-gray-700",children:e(398)}),l[e(1375)](C.Button,{type:e(2085),size:"small",icon:l.jsx(de[e(952)],{}),onClick:G,children:"新建"})]}),b[e(2179)]===0?l[e(1375)](C.Empty,{description:"暂无同级关系,点击「新建」开始",image:C[e(1491)][e(1462)],style:{marginTop:40}}):l[e(1375)](C[e(853)],{size:e(1400),dataSource:b,renderItem:j=>{const q=e,H=j.id===g,W=v===j.id;return l[q(1375)](C[q(853)][q(1254)],{onClick:()=>{W||w(j.id)},style:{cursor:q(619),background:H?q(811):void 0,padding:q(1197)},actions:[W?l.jsx(C.Button,{type:q(1088),size:"small",onClick:T=>{T.stopPropagation(),O(j.id)},children:"保存"}):l[q(1375)](C[q(879)],{title:"重命名",children:l.jsx(C[q(1105)],{type:q(1918),size:"small",icon:l.jsx(de[q(2165)],{}),onClick:T=>{const N=q;T[N(1313)](),M(j.id),y(j[N(863)])}})},q(639)),l[q(1375)](C[q(1708)],{title:q(574),okText:"删除",cancelText:"取消",okButtonProps:{danger:!0},onConfirm:T=>{const N=q;if(T?.stopPropagation(),o(j.id),g===j.id){const L=b[N(815)](D=>D.id!==j.id);w(L[0]?.id??null)}},onCancel:T=>T?.[q(1313)](),children:l[q(1375)](C[q(1105)],{type:q(1918),size:q(1400),danger:!0,icon:l[q(1375)](de.DeleteOutlined,{}),onClick:T=>T[q(1313)]()})},"delete")],children:W?l[q(1375)](C[q(465)],{autoFocus:!0,size:q(1400),value:m,onChange:T=>y(T[q(500)].value),onPressEnter:()=>O(j.id),onClick:T=>T.stopPropagation(),style:{width:140}}):l.jsxs(q(2163),{className:q(1965),children:[l.jsx("span",{style:{fontWeight:H?600:400},children:j[q(863)]}),l.jsx(C.Tag,{color:"blue",children:j.canvasIds[q(2179)]}),f===j.id&&l[q(1375)](C[q(2158)],{color:q(1337),children:"浏览中"})]})})}})]}),l[e(1375)](e(1037),{className:"flex-1 border border-gray-200 rounded p-2",style:{minWidth:280},children:h?l.jsxs(l.Fragment,{children:[l[e(884)](e(1037),{className:e(2009),children:[l.jsx(e(2163),{className:e(1605),children:e(1764)}),l[e(884)](C[e(1450)],{size:e(1400),children:[f===h.id?l[e(1375)](C.Tooltip,{title:e(836),children:l[e(1375)](C[e(1105)],{size:e(1400),onClick:()=>u(null),children:e(512)})}):l[e(1375)](C.Tooltip,{title:e(475),children:l[e(1375)](C.Button,{size:e(1400),type:"primary",ghost:!0,disabled:h[e(869)].length===0,onClick:()=>u(h.id),children:e(916)})}),l[e(1375)](C[e(879)],{title:e(1062),children:l.jsx(C[e(1105)],{size:e(1400),icon:l[e(1375)](de[e(912)],{}),disabled:h[e(869)][e(2179)]<2,onClick:()=>a(h.id)})}),l[e(1375)](C[e(879)],{title:e(1338),children:l[e(1375)](C[e(1105)],{size:e(1400),icon:l[e(1375)](de.RightOutlined,{}),disabled:h[e(869)].length<2,onClick:()=>d(h.id)})})]})]}),l[e(884)](e(1037),{className:e(597),children:[l[e(1375)](C[e(1125)],{placeholder:"选择画布加入",value:p,onChange:z,style:{flex:1},size:e(1400),disabled:P[e(2179)]===0,options:P[e(474)](j=>({label:j.name,value:j.id}))}),l[e(1375)](C.Button,{size:"small",type:e(2085),icon:l[e(1375)](de[e(952)],{}),disabled:!p,onClick:V,children:"加入"})]}),h[e(869)][e(2179)]===0?l[e(1375)](C.Empty,{description:e(1880),image:C.Empty[e(1462)],style:{marginTop:40}}):l[e(1375)](C[e(853)],{size:e(1400),dataSource:h.canvasIds,renderItem:(j,q)=>{const H=e,W=n[H(974)][H(990)](L=>L.id===j),T=n[H(687)]===j,N=h[H(869)].length;return l[H(1375)](C[H(853)][H(1254)],{style:{padding:"6px 8px"},actions:[l[H(1375)](C[H(879)],{title:"上移",children:l[H(1375)](C[H(1105)],{type:"text",size:H(1400),icon:l[H(1375)](de[H(1307)],{}),disabled:q===0,onClick:()=>c(h.id,j,"up")})},"up"),l[H(1375)](C[H(879)],{title:"下移",children:l[H(1375)](C[H(1105)],{type:H(1918),size:H(1400),icon:l[H(1375)](de[H(445)],{}),disabled:q===N-1,onClick:()=>c(h.id,j,H(1221))})},H(1221)),l[H(1375)](C.Tooltip,{title:H(2041),children:l[H(1375)](C[H(1105)],{type:H(1918),size:H(1400),danger:!0,icon:l[H(1375)](de[H(635)],{}),onClick:()=>i(h.id,j)})},H(928))],children:l[H(884)](H(2163),{className:H(1965),children:[l[H(1375)](C[H(2158)],{children:q+1}),l[H(1375)](H(2163),{style:{fontWeight:T?600:400},children:W?.[H(863)]??"(已删除:"+j[H(852)](0,6)+")"}),T&&l[H(1375)](C[H(2158)],{color:H(1337),children:"当前"})]})})}})]}):l[e(1375)](C.Empty,{description:e(1446),image:C[e(1491)][e(1462)],style:{marginTop:60}})})]})},Pl=["#1890ff",s(720),s(2132),s(1216),s(416),s(739),"#13c2c2",s(1753),"#595959",s(1085),s(2171),s(2106),s(470),s(1182),s(749),s(826)],Mn=({value:e=s(1483),onChange:n,onChangeComplete:t})=>{const o=s,[x,r]=B[o(883)](!1),[i,c]=B[o(883)](e),d=B.useRef(null);B[o(2005)](()=>{c(e)},[e]),B[o(2005)](()=>{const u=o,f=b=>{const g=_0x5590;d[g(523)]&&!d[g(523)][g(611)](b.target)&&(r(!1),t?.({toHexString:()=>i}))};return x&&document.addEventListener("mousedown",f),()=>document.removeEventListener(u(1618),f)},[x,t,i]);const a=u=>{c(u),n?.({toHexString:()=>u})};return l.jsxs("div",{ref:d,style:{position:o(692),display:"inline-block"},children:[l[o(1375)](o(1037),{onClick:()=>r(!x),style:{width:28,height:28,backgroundColor:i,border:o(481),borderRadius:4,cursor:"pointer"}}),x&&l[o(884)](o(1037),{style:{position:o(2122),top:32,left:0,zIndex:1e3,background:o(529),padding:8,borderRadius:4,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",border:o(804)},children:[l[o(1375)](o(1037),{style:{display:o(568),gridTemplateColumns:o(2079),gap:4},children:Pl[o(474)](u=>l.jsx(o(1037),{onClick:()=>{a(u),r(!1),t?.({toHexString:()=>u})},style:{width:20,height:20,backgroundColor:u,border:o(i===u?1756:481),borderRadius:2,cursor:o(619)}},u))}),l.jsx("input",{type:o(1176),value:i,onChange:u=>a(u[o(500)].value),onBlur:()=>t?.({toHexString:()=>i}),style:{width:o(1575),marginTop:8,height:28,border:o(481),borderRadius:4}})]})]})},{TextArea:Al}=C.Input;function jl(e){const n=s;if(!e||!(e instanceof HTMLElement))return!1;const t=e.tagName;return!!(t==="INPUT"||t===n(812)||t===n(1846)||t===n(662)||e[n(732)]||e.closest('[contenteditable="true"]')||e.closest('[role="combobox"]')||e.closest(n(378))||e.closest(n(1689)))}const ii=({defaultTestData:e,readonly:n=!1,backgroundImageUrl:t,initialViewportWidth:o,initialViewportHeight:x})=>{const r=s,i=B[r(780)](null),c=B[r(780)](null),d=B[r(780)](null),{nodes:a,selectedNodeId:u,selectedNodeIds:f,mode:b,lineDrawing:g,viewport:w,canvas:h,root:v,setViewport:M,setCanvasConfig:m,addNode:y,selectNode:p,updateNode:z,removeNode:P,bringToFront:G,sendToBack:O,undo:V,redo:j,setMode:q,startLineDrawing:H,endLineDrawing:W,cancelLineDrawing:T,addCanvas:N,removeCanvas:L,switchCanvas:D,updateCanvasName:Y,exportCanvas:U,importCanvas:I,setSelectedNodeIds:J}=Qe(),[$,F]=B[r(883)](!1),[,xe]=B[r(883)]({}),re=B[r(780)](b);B[r(2005)](()=>{const k=r;re[k(523)]=b},[b]),B.useEffect(()=>{const k=r;q(k(n?1774:787))},[n,q]);const ae=n&&o&&h[r(1710)]>0?Math.min(o/h[r(1710)],1):.5,ue=n&&o?1:5,me=n&&o&&h.width>0?ae:1,se=n&&o?r(1985)+o+"-"+(x||r(1798))+r(654)+h.width+"-"+h[r(1355)]:r(384),ee=B[r(780)](me),le=B[r(780)](!1),be=B[r(780)]({x:0,y:0}),E=B[r(780)]({x:0,y:0,newX:0,newY:0}),A=B[r(780)](null),[Z,ne]=B[r(883)]({start:null,end:null,isDrawing:!1}),[te,X]=B[r(883)]({start:null,end:null}),oe=f,ve=J;B[r(780)](!1);const[pe,Ie]=B[r(883)](!1),[Ae,Ee]=B[r(883)](!1),[Ne,ke]=B.useState(()=>JSON[r(922)](e??null,null,2)),Oe=B[r(1581)](()=>{const k=r;if(!Ae)return e;try{return JSON[k(1387)](Ne)}catch{return e}},[Ne,e,Ae]),je=B.useMemo(()=>{const k=r,S=Oe;if(S!==null&&typeof S===k(878))return S;if(S!==void 0)return{_payload:S}},[Oe]),qe=B[r(1581)](()=>{const k=r,S=Oe;return S!==null&&typeof S=="object"&&!Array[k(565)](S)?S:Array[k(565)](S)?{_telemetryRows:S}:S==null?{}:{_payload:S}},[Oe]),We=B[r(1318)](()=>{const k=r;let S=e;if(Ae)try{S=JSON.parse(Ne)}catch{S=e}ke(JSON[k(922)](S??null,null,2)),Ie(!0)},[Ne,e,Ae]),[$e,b0]=B[r(883)](!1),[B0,t0]=B.useState(!1),[a0,x0]=B[r(883)](""),[s0,h0]=B[r(883)](!1),V0=B[r(1318)](()=>{const k=r;try{const S=U(),_=JSON[k(922)](S,null,2),R=k(669)+encodeURIComponent(_),ie=k(2116)+S[k(1434)].name+"_"+Date[k(1700)]()+".json",K=document.createElement("a");K[k(1051)](k(1692),R),K[k(1051)](k(1398),ie),K[k(1164)](),C[k(1109)][k(1093)](k(1563))}catch{C.message[k(1036)](k(1823))}},[U]),$0=B[r(1318)](()=>{const k=r;try{const S=JSON.parse(a0);s0?I(S):I(S,v[k(687)]||void 0),t0(!1),x0(""),h0(!1),C[k(1109)].success(k(2127))}catch{C[k(1109)][k(1036)]("JSON 格式错误,请检查输入")}},[a0,s0,I,v.currentCanvasId]),q0=B[r(1318)](k=>{const S=r,_=new FileReader;return _[S(695)]=R=>{const ie=S;try{const K=R[ie(500)]?.result,Q=JSON[ie(1387)](K);s0?I(Q):I(Q,v[ie(687)]||void 0),C[ie(1109)][ie(1093)]("画布导入成功!"),t0(!1),h0(!1)}catch{C[ie(1109)][ie(1036)]("文件格式错误")}},_.readAsText(k),!1},[s0,I,v[r(687)]]),[Ke,hn]=B.useState(!1),e0=B[r(1318)]((k,S)=>{const _=r;if(!c[_(523)])return{x:0,y:0};const R=c[_(523)][_(1821)](),ie=k-R.left,K=S-R[_(1117)],Q=R[_(1710)]/h[_(1710)],fe=R[_(1355)]/h[_(1355)],ye=ie/Q,he=K/fe;return{x:Math[_(381)](ye),y:Math[_(381)](he)}},[h[r(1710)],h[r(1355)]]),A0=B.useCallback((k,S)=>e0(k,S),[e0]),D0=B[r(1318)]((k,S,_=!0)=>{const R=r;if(!g[R(956)])return;const ie=g.material,K=ie[R(1936)]||{},Q=K[R(1200)]||K[R(1531)]||2,fe=Math[R(775)](k.x,S.x),ye=Math[R(775)](k.y,S.y),he=Math[R(381)](k.x-fe),we=Math[R(381)](k.y-ye),Me=Math.round(S.x-fe),De=Math[R(381)](S.y-ye),Be=Math[R(2172)](Q*2,4),Ce=Math.max(Math[R(1537)](k.x-S.x),Be),He=Math[R(2172)](Math[R(1537)](k.y-S.y),Be),Ye=S.x-k.x,ce=S.y-k.y,ge=Math[R(381)](Math.atan2(ce,Ye)*(180/Math.PI)),Te={...ie,id:Le[R(1335)](),config:{color:K[R(1176)],lineWeight:Q,thickness:Q,lineType:K[R(1518)],startX:he,startY:we,endX:Me,endY:De,rotate:ge}},Je={id:Le[R(1335)](),name:ie[R(863)]+"_"+Date.now(),type:R(485),normalStyle:{width:Ce,height:He,x:fe,y:ye,background:"transparent"},contentInfo:{statusList:[_x(Te)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(y(Je,!1),_){const y0={x:S.x,y:S.y};ne({start:y0,end:{...y0},isDrawing:!0})}else ne({start:null,end:null,isDrawing:!1}),W()},[g[r(956)],y,W]),gn=B.useCallback(()=>{const k=r,S=i[k(523)]?.[k(2180)];if(!S)return;const _=S[k(1662)];ee[k(523)]=_[k(690)],M({scale:_[k(690)],positionX:0,positionY:0})},[M]),$o=B[r(1318)](k=>{const S=r;le.current||b!==S(473)&&(k[S(500)]===c[S(523)]||k.target[S(2125)]?.canvas===S(1981))&&(p(null),ve([]))},[p,b]),er=B[r(1318)](k=>{const S=r;if(k[S(752)]===0){if(b===S(1510)&&g[S(956)]){k[S(1313)]();const _=e0(k[S(1072)],k.clientY);Z[S(979)]?Z[S(1310)]&&D0(Z[S(1310)],_,!0):ne({start:_,end:_,isDrawing:!0});return}if(b===S(473)&&!Ke){const _=A0(k[S(1072)],k[S(1301)]);X({start:_,end:_}),ve([]),p(null),k[S(810)](),k.stopPropagation()}}},[b,g.material,Z[r(979)],Z[r(1310)],Ke,D0,e0,A0]),nr=B[r(1318)](k=>{const S=r;if(!(b!==S(1510)||!g[S(956)])&&Z[S(979)]&&Z[S(1310)]){const _=e0(k[S(1072)],k[S(1301)]);D0(Z[S(1310)],_,!1)}},[b,g[r(956)],Z[r(979)],Z[r(1310)],D0,e0]),tr=B[r(1318)](k=>{const S=r;k[S(810)](),k[S(653)][S(964)]=S(1826),F(!0)},[]),xr=B.useCallback(k=>{k[r(810)](),F(!1)},[]),or=B[r(1318)](k=>{const S=r;if(k[S(810)](),F(!1),!(!c.current||b!==S(787)&&b!==S(473)))try{const _=k[S(653)][S(2178)]("application/json");if(!_)return;const R=JSON[S(1387)](_),ie=e0(k[S(1072)],k.clientY),K=ie.x-50,Q=ie.y-50,fe=Sr(K,Q,R);y(fe),ve([fe.id])}catch(_){console[S(1036)](S(482),_)}},[b,y,e0,ve]),rr=B[r(1318)]((k,S)=>{const _=r;b!==_(787)&&b!==_(473)||!S.controlInfo.isDraggable||(k[_(1313)](),p(S.id),le[_(523)]=!0,be.current={x:k[_(1072)],y:k[_(1301)]},E[_(523)]={x:S[_(1379)].x||0,y:S[_(1379)].y||0,newX:S[_(1379)].x||0,newY:S.normalStyle.y||0},A[_(523)]=S,k[_(810)]())},[b,p]);B[r(2005)](()=>{const k=r,S=K=>{const Q=_0x5590;if(le.current&&u&&A.current){if(!c[Q(523)])return;const fe=c[Q(523)][Q(1821)](),ye=fe[Q(1710)]/h.width,he=fe[Q(1355)]/h[Q(1355)],we=K[Q(1072)]-be[Q(523)].x,Me=K[Q(1301)]-be[Q(523)].y,De=we/ye,Be=Me/he,Ce=E[Q(523)].x+De,He=E[Q(523)].y+Be,Ye=document[Q(1525)](Q(571)+u+'"]');Ye&&(Ye[Q(1476)][Q(937)]=Ce+"px",Ye[Q(1476)].top=He+"px"),E[Q(523)][Q(480)]=Ce,E[Q(523)][Q(1966)]=He}if(b===Q(473)&&te[Q(1310)]){const fe=A0(K[Q(1072)],K[Q(1301)]);X(ye=>({...ye,end:fe}))}if(b===Q(1510)&&Z.isDrawing){const fe=e0(K[Q(1072)],K[Q(1301)]);ne(ye=>({...ye,end:fe}))}},_=()=>{const K=_0x5590;if(le[K(523)]&&u&&A[K(523)]){const Q=Qe[K(1305)](),fe=E.current[K(480)]??E[K(523)].x,ye=E[K(523)][K(1966)]??E[K(523)].y;Q[K(813)](u,{normalStyle:{...A[K(523)][K(1379)],x:fe,y:ye}})}if(le[K(523)]=!1,A[K(523)]=null,xe({}),b==="box-select"&&te[K(1310)]&&te.end){const Q=Math[K(775)](te.start.x,te[K(1942)].x),fe=Math[K(2172)](te[K(1310)].x,te[K(1942)].x),ye=Math[K(775)](te[K(1310)].y,te.end.y),he=Math[K(2172)](te[K(1310)].y,te[K(1942)].y),we=a.filter(Me=>{const De=K,Be=Me.normalStyle.x||0,Ce=Me[De(1379)].y||0,He=Me.normalStyle[De(1710)]||0,Ye=Me[De(1379)][De(1355)]||0,ce=Be+He/2,ge=Ce+Ye/2;return ce>=Q&&ce<=fe&&ge>=ye&&ge<=he})[K(474)](Me=>Me.id);ve(we),X({start:null,end:null})}},R=K=>{const Q=_0x5590;if(!jl(K.target)){if(K[Q(844)]==="Escape"&&b==="line-draw"&&(ne({start:null,end:null,isDrawing:!1}),T()),K.key===Q(1229)&&(u?P(u):oe[Q(2179)]>0&&(oe[Q(1322)](fe=>P(fe)),ve([]))),K[Q(1679)]&&K[Q(844)]==="z"&&(K[Q(810)](),V()),K[Q(1679)]&&K[Q(844)]==="y"&&(K[Q(810)](),j()),(b===Q(787)||b===Q(473))&&(K[Q(844)]==="ArrowLeft"||K.key===Q(989)||K[Q(844)]===Q(955)||K[Q(844)]===Q(1386))){const fe=oe[Q(2179)]>0?oe:u?[u]:[];if(fe[Q(2179)]>0){K[Q(810)]();const ye=K.key===Q(2134)?-2:K[Q(844)]===Q(989)?2:0,he=K.key===Q(955)?-2:K[Q(844)]==="ArrowDown"?2:0;fe[Q(1322)](we=>{const Me=Q,De=a[Me(990)](Be=>Be.id===we);De&&z(we,{normalStyle:{...De[Me(1379)],x:(De[Me(1379)].x||0)+ye,y:(De[Me(1379)].y||0)+he}})})}}K.key===" "&&(K[Q(810)](),!Ke&&hn(!0))}},ie=K=>{K.key===" "&&Ke&&hn(!1)};return window.addEventListener(k(920),S),window.addEventListener(k(814),_),window[k(1892)]("keydown",R),window[k(1892)](k(1351),ie),()=>{const K=k;window[K(1665)](K(920),S),window.removeEventListener(K(814),_),window[K(1665)]("keydown",R),window[K(1665)](K(1351),ie)}},[u,te,b,Z[r(979)],oe,a,h.width,h.height,P,V,Ke,j,T,e0,A0,ve,z]);const Lx=(k,S=!0)=>{const _=r,R={...k,id:Le.nanoid(),name:k[_(863)]+_(498),normalStyle:{...k[_(1379)],x:(k[_(1379)].x||0)+(S?20:0),y:(k[_(1379)].y||0)+(S?20:0)}};return k[_(1912)]===_(744)&&k[_(517)]&&(R.children=k.children[_(474)](ie=>Lx(ie,!1))),R},Nx=B[r(1318)](()=>{const k=r,S=oe[k(2179)]>0?oe[k(474)](R=>a.find(ie=>ie.id===R))[k(815)](Boolean):u?[a[k(990)](R=>R.id===u)][k(815)](Boolean):[];if(S[k(2179)]===0)return;const _=[];S[k(1322)](R=>{const ie=Lx(R);y(ie),_.push(ie.id)}),_[k(2179)]===1?p(_[0]):ve(_)},[u,oe,a,y,p,ve]),Sx=B[r(1318)](k=>{const S=r,_=k[S(1379)].x||0,R=k[S(1379)].y||0,ie=k.normalStyle.width||0,K=k[S(1379)].height||0,Q=k[S(1379)][S(1442)]||0;if(!Q)return{minX:_,minY:R,maxX:_+ie,maxY:R+K};const fe=_+ie/2,ye=R+K/2,he=Q*Math.PI/180,we=Math[S(2040)](he),Me=Math[S(1702)](he),De=[{x:-ie/2,y:-K/2},{x:ie/2,y:-K/2},{x:ie/2,y:K/2},{x:-ie/2,y:K/2}];let Be=1/0,Ce=1/0,He=-1/0,Ye=-1/0;for(const ce of De){const ge=fe+ce.x*we-ce.y*Me,Te=ye+ce.x*Me+ce.y*we;Be=Math[S(775)](Be,ge),Ce=Math[S(775)](Ce,Te),He=Math[S(2172)](He,ge),Ye=Math.max(Ye,Te)}return{minX:Be,minY:Ce,maxX:He,maxY:Ye}},[]),kx=B.useCallback(k=>{const S=r,_=k.normalStyle.x||0,R=k[S(1379)].y||0,ie=k[S(1379)][S(1710)]||0,K=k[S(1379)][S(1355)]||0,Q=k[S(1379)].rotate||0;if(!Q)return(k[S(517)]||[])[S(474)](Be=>({...Be,normalStyle:{...Be[S(1379)],x:_+(Be[S(1379)].x||0),y:R+(Be.normalStyle.y||0)}}));const fe=Q*Math.PI/180,ye=Math[S(2040)](fe),he=Math[S(1702)](fe),we=_+ie/2,Me=R+K/2,De=(Be,Ce)=>{const He=Be-ie/2,Ye=Ce-K/2;return{x:we+He*ye-Ye*he,y:Me+He*he+Ye*ye}};return(k[S(517)]||[]).map(Be=>{const Ce=S;if(Be.contentInfo[Ce(1833)].some(On=>On[Ce(956)][Ce(1912)]==="LINE")){const On=Be[Ce(1379)].x||0,Hx=Be[Ce(1379)].y||0,Tx=Be[Ce(1379)][Ce(1710)]||0,Vx=Be[Ce(1379)][Ce(1355)]||0,Mt=Be[Ce(1379)][Ce(1442)]||0,qx=Mt*Math.PI/180,Bt=Math[Ce(2040)](qx),Dt=Math[Ce(1702)](qx),Wx=(N0,_e)=>{const o0=N0-Tx/2,m0=_e-Vx/2,Ze=o0*Bt-m0*Dt+Tx/2,Re=o0*Dt+m0*Bt+Vx/2;return De(On+Ze,Hx+Re)};let j0=1/0,Y0=1/0,Hn=-1/0,Tn=-1/0,L0=2;const X0=Be[Ce(742)][Ce(1833)][Ce(474)](N0=>{const _e=Ce;if(N0[_e(956)].type!=="LINE")return null;const o0=N0.material[_e(1936)]||{},m0=Wx(o0[_e(957)]||0,o0[_e(504)]||0),Ze=Wx(o0[_e(1676)]||0,o0[_e(1945)]||0);return j0=Math.min(j0,m0.x,Ze.x),Y0=Math[_e(775)](Y0,m0.y,Ze.y),Hn=Math[_e(2172)](Hn,m0.x,Ze.x),Tn=Math[_e(2172)](Tn,m0.y,Ze.y),L0=Math[_e(2172)](L0,o0[_e(1200)]||o0.thickness||2),{s:m0,e:Ze}});if(Number[Ce(868)](j0)&&Number[Ce(868)](Y0)){const N0=Math[Ce(2172)](L0*2,4),_e=Math[Ce(2172)](Hn-j0,N0),o0=Math[Ce(2172)](Tn-Y0,N0),m0=Be.contentInfo[Ce(1833)][Ce(474)]((Ze,Re)=>{const r0=Ce,n0=X0[Re];if(!n0||Ze[r0(956)].type!==r0(1701))return Ze;const i0=Ze[r0(956)];return{...Ze,material:{...i0,config:{...i0.config||{},startX:n0.s.x-j0,startY:n0.s.y-Y0,endX:n0.e.x-j0,endY:n0.e.y-Y0}}}});return{...Be,normalStyle:{...Be.normalStyle,x:j0,y:Y0,width:_e,height:o0,rotate:0},contentInfo:{...Be.contentInfo,statusList:m0}}}return{...Be,normalStyle:{...Be.normalStyle,x:_+On,y:R+Hx,rotate:0}}}const Ye=Be[Ce(1379)][Ce(1710)]||0,ce=Be[Ce(1379)][Ce(1355)]||0,ge=Be[Ce(1379)].x||0,Te=Be.normalStyle.y||0,Je=ge+Ye/2-ie/2,y0=Te+ce/2-K/2,yn=we+Je*ye-y0*he,lr=Me+Je*he+y0*ye,Gx=Be[Ce(1379)][Ce(1442)]||0,Ox=((Gx+Q)%360+360)%360;return{...Be,normalStyle:{...Be[Ce(1379)],x:yn-Ye/2,y:lr-ce/2,rotate:Ox}}})},[]),Ix=B[r(1318)](()=>{const k=r;if(oe[k(2179)]<2)return;const S=[];for(let ye=0;ye<oe.length;ye++){const he=oe[ye],we=a[k(990)](Me=>Me.id===he);if(we){if(we?.[k(1912)]==="group"){kx(we)[k(1322)](De=>S[k(1759)](De)),P(he);continue}S[k(1759)](we)}}if(S[k(2179)]<2)return;let _=1/0,R=1/0,ie=-1/0,K=-1/0;S[k(1322)](ye=>{const he=k,we=Sx(ye);_=Math[he(775)](_,we[he(1568)]),R=Math[he(775)](R,we[he(958)]),ie=Math[he(2172)](ie,we[he(666)]),K=Math.max(K,we[he(1014)])});const Q=S.map(ye=>({...ye,normalStyle:{...ye[k(1379)],x:(ye[k(1379)].x||0)-_,y:(ye[k(1379)].y||0)-R}})),fe={id:Le[k(1335)](),name:"群组_"+Date[k(1700)](),type:k(744),normalStyle:{x:_,y:R,width:ie-_,height:K-R,background:k(1911)},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:Q};oe[k(1322)](ye=>P(ye)),y(fe),ve([]),p(fe.id)},[oe,a,P,y,p,kx,Sx]),Px=k=>{const S=r,_={...k,id:Le[S(1335)]()};return k[S(1912)]===S(744)&&k.children&&(_.children=k.children[S(474)](R=>Px(R))),_},mt=B[r(1318)](()=>{const k=r,S=oe[k(2179)]>0?oe[k(474)](_=>a.find(R=>R.id===_))[k(815)](_=>!!_&&_[k(1912)]==="group"):u?[a[k(990)](_=>_.id===u)][k(815)](_=>!!_&&_[k(1912)]===k(744)):[];S[k(2179)]!==0&&(S[k(1322)](_=>{const R=k;if(!_.children||_[R(517)][R(2179)]===0)return;const ie=_[R(1379)].x||0,K=_[R(1379)].y||0,Q=_[R(1379)][R(1710)]||0,fe=_[R(1379)][R(1355)]||0,ye=_.normalStyle[R(1442)]||0,he=ye*Math.PI/180,we=Math[R(2040)](he),Me=Math.sin(he),De=ie+Q/2,Be=K+fe/2,Ce=(Ye,ce)=>{const ge=Ye-Q/2,Te=ce-fe/2;return{x:De+ge*we-Te*Me,y:Be+ge*Me+Te*we}},He=_[R(517)][R(474)](Ye=>{const ce=R,ge=Px(Ye);if(ge.contentInfo.statusList[ce(1496)](Mt=>Mt.material[ce(1912)]===ce(1701))){const Mt=ge.normalStyle.x||0,qx=ge[ce(1379)].y||0,Bt=ge[ce(1379)].width||0,Dt=ge.normalStyle[ce(1355)]||0,Wx=ge[ce(1379)].rotate||0,j0=Wx*Math.PI/180,Y0=Math[ce(2040)](j0),Hn=Math[ce(1702)](j0),Tn=(Ze,Re)=>{const r0=Ze-Bt/2,n0=Re-Dt/2,i0=r0*Y0-n0*Hn+Bt/2,dr=r0*Hn+n0*Y0+Dt/2;return Ce(Mt+i0,qx+dr)};let L0=1/0,X0=1/0,N0=-1/0,_e=-1/0,o0=2;const m0=ge[ce(742)][ce(1833)][ce(474)](Ze=>{const Re=ce;if(Ze[Re(956)].type!==Re(1701))return null;const r0=Ze.material[Re(1936)]||{},n0=Tn(r0[Re(957)]||0,r0[Re(504)]||0),i0=Tn(r0[Re(1676)]||0,r0[Re(1945)]||0);return L0=Math[Re(775)](L0,n0.x,i0.x),X0=Math[Re(775)](X0,n0.y,i0.y),N0=Math.max(N0,n0.x,i0.x),_e=Math[Re(2172)](_e,n0.y,i0.y),o0=Math.max(o0,r0[Re(1200)]||r0[Re(1531)]||2),{s:n0,e:i0}});if(Number[ce(868)](L0)&&Number[ce(868)](X0)){const Ze=Math.max(o0*2,4),Re=Math[ce(2172)](N0-L0,Ze),r0=Math[ce(2172)](_e-X0,Ze),n0=ge[ce(742)][ce(1833)][ce(474)]((i0,dr)=>{const ur=ce,Lt=m0[dr];if(!Lt||i0.material[ur(1912)]!=="LINE")return i0;const zs=i0[ur(956)];return{...i0,material:{...zs,config:{...zs[ur(1936)]||{},startX:Lt.s.x-L0,startY:Lt.s.y-X0,endX:Lt.e.x-L0,endY:Lt.e.y-X0}}}});return{...ge,normalStyle:{...ge[ce(1379)],x:L0,y:X0,width:Re,height:r0,rotate:0},contentInfo:{...ge[ce(742)],statusList:n0}}}}const Je=ge[ce(1379)][ce(1710)]||0,y0=ge[ce(1379)][ce(1355)]||0,yn=ge[ce(1379)].x||0,lr=ge[ce(1379)].y||0,Gx=yn+Je/2-Q/2,Ox=lr+y0/2-fe/2,On=De+Gx*we-Ox*Me,Hx=Be+Gx*Me+Ox*we,Tx=ge[ce(1379)].rotate||0,Vx=((Tx+ye)%360+360)%360;return{...ge,normalStyle:{...ge[ce(1379)],x:On-Je/2,y:Hx-y0/2,rotate:Vx}}});P(_.id),He[R(1322)](Ye=>y(Ye))}),ve([]),p(null))},[u,oe,a,P,y,p,ve]),Gn=B[r(1318)](k=>{const S=r;if(oe[S(2179)]<1)return;const _=oe[S(474)](R=>a[S(990)](ie=>ie.id===R))[S(815)](R=>!!R);if(_.length===1&&_[0][S(1912)]===S(744)){const R=_[0];if(!R[S(517)]||R.children[S(2179)]<2)return;const ie=[...R[S(517)]];let K=1/0,Q=1/0,fe=-1/0,ye=-1/0;if(k==="horizontal"){const he=[...ie][S(840)]((ce,ge)=>(ce[S(1379)].x||0)-(ge.normalStyle.x||0));let we=1/0,Me=-1/0,De=0;he.forEach(ce=>{const ge=S,Te=ce.normalStyle.x||0,Je=ce[ge(1379)].width||0;we=Math[ge(775)](we,Te),Me=Math[ge(2172)](Me,Te+Je),De+=Je});const Be=(Me-we-De)/(he[S(2179)]-1);let Ce=we;const He=new Map;he[S(1322)](ce=>{const ge=S;He[ge(721)](ce.id,Ce),Ce+=(ce[ge(1379)][ge(1710)]||0)+Be});const Ye=ie.map(ce=>({...ce,normalStyle:{...ce[S(1379)],x:He[S(1861)](ce.id)??ce[S(1379)].x}}));Ye[S(1322)](ce=>{const ge=S,Te=ce.normalStyle.x||0,Je=ce[ge(1379)].y||0,y0=ce[ge(1379)][ge(1710)]||0,yn=ce[ge(1379)][ge(1355)]||0;K=Math[ge(775)](K,Te),Q=Math[ge(775)](Q,Je),fe=Math[ge(2172)](fe,Te+y0),ye=Math[ge(2172)](ye,Je+yn)}),z(R.id,{normalStyle:{...R.normalStyle,x:(R.normalStyle.x||0)+K,y:(R[S(1379)].y||0)+Q,width:fe-K,height:ye-Q},children:Ye[S(474)](ce=>({...ce,normalStyle:{...ce[S(1379)],x:(ce.normalStyle.x||0)-K,y:(ce[S(1379)].y||0)-Q}}))})}else{const he=[...ie][S(840)]((ce,ge)=>(ce[S(1379)].y||0)-(ge[S(1379)].y||0));let we=1/0,Me=-1/0,De=0;he.forEach(ce=>{const ge=S,Te=ce.normalStyle.y||0,Je=ce.normalStyle[ge(1355)]||0;we=Math[ge(775)](we,Te),Me=Math[ge(2172)](Me,Te+Je),De+=Je});const Be=(Me-we-De)/(he[S(2179)]-1);let Ce=we;const He=new Map;he[S(1322)](ce=>{const ge=S;He[ge(721)](ce.id,Ce),Ce+=(ce.normalStyle[ge(1355)]||0)+Be});const Ye=ie.map(ce=>({...ce,normalStyle:{...ce[S(1379)],y:He.get(ce.id)??ce[S(1379)].y}}));Ye.forEach(ce=>{const ge=S,Te=ce[ge(1379)].x||0,Je=ce[ge(1379)].y||0,y0=ce[ge(1379)].width||0,yn=ce[ge(1379)][ge(1355)]||0;K=Math.min(K,Te),Q=Math.min(Q,Je),fe=Math[ge(2172)](fe,Te+y0),ye=Math[ge(2172)](ye,Je+yn)}),z(R.id,{normalStyle:{...R[S(1379)],x:(R[S(1379)].x||0)+K,y:(R.normalStyle.y||0)+Q,width:fe-K,height:ye-Q},children:Ye.map(ce=>({...ce,normalStyle:{...ce[S(1379)],x:(ce.normalStyle.x||0)-K,y:(ce[S(1379)].y||0)-Q}}))})}return}if(!(_.length<2))if(k===S(1240)){const R=[..._][S(840)]((he,we)=>(he[S(1379)].x||0)-(we.normalStyle.x||0));let ie=1/0,K=-1/0,Q=0;R.forEach(he=>{const we=S,Me=he[we(1379)].x||0,De=he[we(1379)].width||0;ie=Math[we(775)](ie,Me),K=Math[we(2172)](K,Me+De),Q+=De});const fe=(K-ie-Q)/(R[S(2179)]-1);let ye=ie;R[S(1322)](he=>{const we=S,Me=ye;z(he.id,{normalStyle:{...he[we(1379)],x:Me}}),ye+=(he.normalStyle.width||0)+fe})}else{const R=[..._].sort((he,we)=>{const Me=S;return(he[Me(1379)].y||0)-(we[Me(1379)].y||0)});let ie=1/0,K=-1/0,Q=0;R[S(1322)](he=>{const we=S,Me=he[we(1379)].y||0,De=he.normalStyle.height||0;ie=Math[we(775)](ie,Me),K=Math[we(2172)](K,Me+De),Q+=De});const fe=(K-ie-Q)/(R[S(2179)]-1);let ye=ie;R.forEach(he=>{const we=S,Me=ye;z(he.id,{normalStyle:{...he[we(1379)],y:Me}}),ye+=(he[we(1379)][we(1355)]||0)+fe})}},[oe,a,z]),en=k=>{const S=r,_=k[S(742)][S(1833)][S(990)](R=>R[S(956)].type===S(1701));return _?_[S(956)][S(1936)]:null},bn=B[r(1318)](k=>{const S=r;if(oe.length<2)return;const _=Qe.getState(),R=oe.map(K=>a.find(Q=>Q.id===K))[S(815)](K=>!!K);if(R.length<2)return;let ie=0;switch(k){case S(937):ie=Math.min(...R.map(K=>{const Q=S,fe=en(K);return fe?(K[Q(1379)].x||0)+(fe[Q(957)]||0):K[Q(1379)].x||0}));break;case S(1790):ie=Math[S(2172)](...R[S(474)](K=>{const Q=S,fe=en(K);return fe?(K.normalStyle.x||0)+(fe[Q(1676)]||0):(K[Q(1379)].x||0)+(K.normalStyle[Q(1710)]||0)}));break;case S(1117):ie=Math[S(775)](...R[S(474)](K=>{const Q=S,fe=en(K);return fe?(K[Q(1379)].y||0)+(fe[Q(504)]||0):K[Q(1379)].y||0}));break;case S(689):ie=Math[S(2172)](...R.map(K=>{const Q=S,fe=en(K);return fe?(K[Q(1379)].y||0)+(fe.endY||0):(K[Q(1379)].y||0)+(K.normalStyle.height||0)}));break}R[S(1322)](K=>{const Q=S;let fe=K[Q(1379)].x||0,ye=K[Q(1379)].y||0;const he=en(K);switch(k){case Q(937):he?fe=ie-(he[Q(957)]||0):fe=ie;break;case"right":he?fe=ie-(he[Q(1676)]||0):fe=ie-(K[Q(1379)][Q(1710)]||0);break;case Q(1117):he?ye=ie-(he[Q(504)]||0):ye=ie;break;case Q(689):he?ye=ie-(he.endY||0):ye=ie-(K[Q(1379)].height||0);break}_.updateNode(K.id,{normalStyle:{...K.normalStyle,x:fe,y:ye}})})},[oe,a]),ir=[{icon:l.jsx(de.SelectOutlined,{}),title:r(794),active:b===r(787),onClick:()=>{q(r(787))}},{icon:l[r(1375)](de[r(1475)],{}),title:r(1521),active:b===r(473),onClick:()=>{q("box-select"),ve([])}},{icon:l[r(1375)](de[r(1929)],{}),title:"拖拽模式",active:b===r(1980),onClick:()=>{q(r(1980))}},{icon:l[r(1375)](de[r(2165)],{}),title:r(1660),active:b==="line-draw",onClick:()=>{q(r(1510))}},{icon:l[r(1375)](de.EyeOutlined,{}),title:r(2166),active:b==="preview",onClick:()=>{q(r(1774))}}],W0=B[r(1318)](()=>oe[r(2179)]>0?oe:u?[u]:[],[oe,u]),Ax=B.useCallback(()=>{const k=r,S=W0();if(S[k(2179)]===0)return;a[k(815)](R=>S[k(1419)](R.id))[k(474)](R=>R.id)[k(1322)](R=>G(R))},[W0,a,G]),jx=B[r(1318)](()=>{const k=r,S=W0();if(S[k(2179)]===0)return;[...a[k(815)](R=>S[k(1419)](R.id)).map(R=>R.id)][k(2151)]()[k(1322)](R=>O(R))},[W0,a,O]),wt=B.useCallback(k=>{const S=r,_=W0();_[S(2179)]!==0&&_[S(1322)](R=>{const ie=S,K=a.find(fe=>fe.id===R);!K||K[ie(1912)]===ie(744)||!K.contentInfo[ie(1833)].some(fe=>fe[ie(956)].type==="IMAGE")||(k===ie(1240)?z(R,{normalStyle:{...K[ie(1379)],flipX:!K[ie(1379)].flipX}}):z(R,{normalStyle:{...K[ie(1379)],flipY:!K[ie(1379)].flipY}}))})},[W0,a,z]),Yx=W0(),vt=Yx.some(k=>{const S=r,_=a[S(990)](R=>R.id===k);return _&&_.type!==S(744)&&_[S(742)].statusList[S(1496)](R=>R.material[S(1912)]===S(1054))}),{actionButtonsRow1:cr,actionButtonsRow2:ar}=B[r(1581)](()=>({actionButtonsRow1:[{icon:l[r(1375)](de[r(2160)],{}),title:r(401),disabled:!u&&oe.length===0,onClick:Ax},{icon:l.jsx(de.DownSquareOutlined,{}),title:r(616),disabled:!u&&oe[r(2179)]===0,onClick:jx},{icon:l.jsx(de[r(364)],{}),title:r(677),disabled:!u&&oe[r(2179)]===0,onClick:Nx},{icon:l.jsx(de[r(1475)],{}),title:r(1210),disabled:oe[r(2179)]<2,onClick:Ix},{icon:l[r(1375)](de[r(1143)],{}),title:r(2091),disabled:!u&&oe[r(2179)]===0,onClick:mt},{icon:l[r(1375)](de[r(2173)],{}),title:r(409),onClick:()=>b0(!0)},{icon:l[r(1375)](de[r(2153)],{}),title:"数据模拟",type:r(2085),onClick:We},{icon:l[r(1375)](de[r(635)],{}),title:r(1499),disabled:!u&&oe[r(2179)]===0,onClick:()=>{const k=r;u?P(u):oe[k(2179)]>0&&(oe[k(1322)](S=>P(S)),ve([]))}}],actionButtonsRow2:[{icon:l[r(1375)](de[r(846)],{}),title:r(368),disabled:oe.length<2,onClick:()=>bn("left")},{icon:l[r(1375)](de[r(1606)],{}),title:"右对齐",disabled:oe[r(2179)]<2,onClick:()=>bn(r(1790))},{icon:l[r(1375)](de[r(487)],{}),title:"上对齐",disabled:oe.length<2,onClick:()=>bn(r(1117))},{icon:l[r(1375)](de.VerticalAlignBottomOutlined,{}),title:r(1459),disabled:oe[r(2179)]<2,onClick:()=>bn(r(689))},{icon:l[r(1375)](de[r(1188)],{}),title:r(1489),disabled:(()=>{const k=r;if(oe[k(2179)]>=2)return!1;if(oe[k(2179)]===1){const S=a[k(990)](_=>_.id===oe[0]);return!(S?.[k(1912)]===k(744)&&S[k(517)]&&S[k(517)][k(2179)]>=2)}return!0})(),onClick:()=>Gn("horizontal")},{icon:l.jsx(de.ColumnHeightOutlined,{}),title:"垂直分布",disabled:(()=>{const k=r;if(oe[k(2179)]>=2)return!1;if(oe[k(2179)]===1){const S=a.find(_=>_.id===oe[0]);return!(S?.type===k(744)&&S[k(517)]&&S[k(517)].length>=2)}return!0})(),onClick:()=>Gn(r(1323))},{icon:l.jsx(de[r(1381)],{}),title:r(756),disabled:!vt,onClick:()=>wt(r(1240))},{icon:l[r(1375)](r(2163),{style:{display:r(1967),transform:"rotate(90deg)"},children:l[r(1375)](de[r(1381)],{})}),title:"垂直翻转",disabled:!vt,onClick:()=>wt(r(1323))}]}),[V,j,b,q,ve,oe,Ix,mt,Nx,bn,Gn,Ax,jx,b0,Ie,We,u,P,v[r(687)],vt,wt,a]),[sr,Ex]=B[r(883)](!1),[Ux,pt]=B.useState(""),[zt,Ct]=B[r(883)](null);return l.jsxs(r(1037),{className:"flex flex-col "+(n?"":r(1167)),children:[!n&&l.jsxs("div",{className:r(2113),children:[l[r(884)](C[r(1450)],{children:[ir[r(474)](k=>l[r(1375)](C[r(879)],{title:k.title,children:l[r(1375)](C.Button,{type:k[r(978)]?"primary":"default",icon:k[r(1620)],onClick:k.onClick})},k[r(1528)])),l[r(1375)](r(1037),{className:r(2089)}),l[r(1375)](C.Select,{value:v[r(687)],onChange:D,style:{width:140},dropdownRender:k=>l.jsxs(l.Fragment,{children:[k,l[r(1375)]("div",{className:r(490),children:l[r(1375)](C[r(1105)],{type:"link",size:r(1400),block:!0,onClick:()=>Ex(!0),children:"管理画布..."})})]}),children:v[r(974)][r(474)](k=>l[r(1375)](C[r(1125)][r(1755)],{value:k.id,children:k[r(863)]},k.id))}),l[r(1375)](C[r(1105)],{icon:l[r(1375)](de[r(952)],{}),size:r(1400),onClick:()=>N(),title:r(476)}),l[r(1375)](C[r(879)],{title:r(778),children:l[r(1375)](C[r(1105)],{icon:l[r(1375)](de.DownloadOutlined,{}),size:r(1400),onClick:V0})}),l[r(1375)](C[r(879)],{title:r(1824),children:l[r(1375)](C[r(1105)],{icon:l[r(1375)](de[r(838)],{}),size:r(1400),onClick:()=>t0(!0)})})]}),l[r(884)](C[r(1450)],{direction:r(1323),size:4,children:[l.jsx(C[r(1450)],{children:cr[r(474)](k=>l[r(1375)](C[r(879)],{title:k.title,children:l[r(1375)](C[r(1105)],{type:k[r(978)]?"primary":k[r(1912)]||r(384),icon:k.icon,onClick:S=>{const _=r;k[_(1142)](),S[_(1630)][_(549)]()},disabled:k[r(1583)]})},k.title))}),l[r(1375)](C[r(1450)],{children:ar[r(474)](k=>l[r(1375)](C[r(879)],{title:k[r(1528)],children:l[r(1375)](C.Button,{type:k[r(978)]?"primary":k[r(1912)]||r(384),icon:k[r(1620)],onClick:S=>{const _=r;k[_(1142)](),S[_(1630)].blur()},disabled:k[r(1583)]})},k[r(1528)]))})]})]}),l[r(1375)](r(1037),{ref:d,className:r(1903)+(n?"":"flex-1"),style:n&&o?{display:"flex",justifyContent:r(1636),alignItems:r(1636)}:void 0,onWheel:n&&o?k=>{const S=r;k[S(810)](),k[S(1313)]();const _=i[S(523)];if(!_)return;const R=ee[S(523)],ie=.1,K=k[S(1073)]>0?Math[S(2172)](R-ie,ae):Math.min(R+ie,ue);_[S(1482)](0,0,K,0)}:void 0,children:l.jsx(St[r(1421)],{ref:i,initialScale:me,initialPositionX:0,initialPositionY:0,minScale:ae,maxScale:ue,onTransformed:gn,limitToBounds:n&&!!o,centerZoomedOut:n&&!!o,panning:{disabled:!Ke&&b!==r(1980),velocityDisabled:!0},wheel:{disabled:n&&!!o,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:k,zoomOut:S,resetTransform:_})=>l[r(884)](l.Fragment,{children:[!n&&l.jsx("div",{className:r(1882),children:l.jsxs(C.Space,{direction:r(1323),children:[l.jsx(C[r(879)],{title:"放大",children:l[r(1375)](C.Button,{icon:l[r(1375)](de[r(1674)],{}),onClick:()=>k()})}),l.jsx(C[r(879)],{title:"缩小",children:l[r(1375)](C[r(1105)],{icon:l.jsx(de[r(691)],{}),onClick:()=>S()})}),l[r(1375)](C.Tooltip,{title:"重置视图",children:l[r(1375)](C.Button,{onClick:()=>_(),children:r(1575)})}),l.jsxs(r(1037),{className:"text-center text-xs text-gray-500",children:[Math[r(381)](w[r(690)]*100),"%"]})]})}),l[r(1375)](St.TransformComponent,{wrapperStyle:n&&o?{width:o,height:x||h[r(1355)]*(ee[r(523)]||1)+"px",position:r(692),overflow:r(1771)}:{width:r(1575),height:n?h[r(1355)]*(ee.current||1)+"px":"100%",position:r(692),overflow:n?"visible":r(1771)},contentStyle:{width:n?h[r(1710)]+"px":"100%",height:n?h[r(1355)]+"px":"100%",display:"flex",alignItems:n?"flex-start":"center",justifyContent:r(n?1636:613)},children:l[r(884)](r(1037),{ref:c,"data-canvas":r(1981),className:r(1903)+($?r(1173):"")+" "+(b==="line-draw"?r(1477):"")+" "+(Ke?r(1642):""),style:{width:h.width,height:h.height,flexShrink:0,backgroundColor:h.background,backgroundImage:h[r(875)]?"url("+h[r(875)]+")":void 0,backgroundSize:r(673),backgroundPosition:"center"},onClick:$o,onMouseDown:er,onDoubleClick:nr,onDragOver:tr,onDragLeave:xr,onDrop:or,children:[t&&!n&&l[r(884)](r(1037),{className:r(1838),style:{width:h.width,height:h[r(1355)]},children:[l[r(1375)](r(1663),{src:t,alt:"",className:r(491),draggable:!1}),l[r(1375)](r(1350),{className:r(514),width:1920,height:1080,children:l[r(1375)]("rect",{x:"0",y:"0",width:"1920",height:r(2034),fill:"none",stroke:r(2010),strokeWidth:"2"})})]}),h[r(1372)]!==!1&&l.jsxs(r(1350),{className:r(514),width:h[r(1710)],height:h[r(1355)],children:[l[r(1375)]("defs",{children:l.jsx(r(505),{id:"grid",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:l.jsx(r(1850),{d:r(969),fill:r(988),stroke:r(1272),opacity:r(539),strokeWidth:"1"})})}),l[r(1375)](r(1389),{width:r(1575),height:r(1575),fill:r(1626)})]}),a[r(474)](R=>l[r(1375)](ro,{node:R,isSelected:b===r(1774)?!1:u===R.id||oe[r(1419)](R.id),data:je,onClick:b==="preview"?void 0:ie=>{const K=r;console.log(K(2184),R.id,K(1887),re[K(523)]),re[K(523)]!=="line-draw"&&(ie[K(1139)]?(p(R.id),ve([...oe,R.id])):(p(R.id),ve([R.id])))},onMouseDown:b==="preview"?void 0:ie=>rr(ie,R),onUpdateNode:b==="preview"?void 0:(ie,K)=>z(ie,K),scale:w[r(690)],enableEventFlow:b==="preview",eventFlowData:qe},""+R.id)),b==="line-draw"&&Z.isDrawing&&Z[r(1310)]&&Z[r(1942)]&&l[r(1375)](r(1350),{className:r(514),width:h.width,height:h.height,children:l[r(1375)](r(1190),{x1:Z[r(1310)].x,y1:Z.start.y,x2:Z[r(1942)].x,y2:Z.end.y,stroke:r(1483),strokeWidth:"2",strokeDasharray:r(1219),strokeLinecap:r(381),strokeLinejoin:r(381)})}),b==="box-select"&&te[r(1310)]&&te[r(1942)]&&l[r(1375)](r(1037),{className:r(1312),style:{left:Math.min(te.start.x,te[r(1942)].x),top:Math.min(te[r(1310)].y,te[r(1942)].y),width:Math.abs(te[r(1942)].x-te[r(1310)].x),height:Math.abs(te[r(1942)].y-te[r(1310)].y),zIndex:9999}})]})})]})},se)}),l[r(1375)](C[r(1767)],{title:r(1342),open:pe,onCancel:()=>Ie(!1),footer:null,children:l.jsx(C[r(1249)],{layout:r(1323),children:l.jsx(C[r(1249)][r(1254)],{label:"测试数据 (JSON)",children:l.jsx(Al,{value:Ne,onChange:k=>{const S=r;Ee(!0),ke(k[S(500)][S(1044)])},rows:10,placeholder:r(387)})})})}),l.jsx(C[r(1767)],{title:"画布配置",open:$e,onCancel:()=>b0(!1),footer:null,children:l.jsxs(C[r(1249)],{layout:r(1323),children:[l[r(1375)](C.Form.Item,{label:"宽度",children:l[r(1375)](C[r(715)],{value:h.width,onChange:k=>m({width:k||1920}),min:100,max:5e3,style:{width:r(1575)}})}),l.jsx(C[r(1249)][r(1254)],{label:"高度",children:l[r(1375)](C[r(715)],{value:h[r(1355)],onChange:k=>m({height:k||1080}),min:100,max:5e3,style:{width:r(1575)}})}),l[r(1375)](C[r(1249)][r(1254)],{label:r(1185),children:l[r(1375)](C[r(1025)],{checked:h[r(1372)]!==!1,onChange:k=>m({showGrid:k})})}),l.jsx(C[r(1249)][r(1254)],{label:r(2021),children:l.jsxs(r(1037),{className:r(1965),children:[l[r(1375)](Mn,{value:h[r(2043)]||r(793),onChange:k=>m({background:k.toHexString()})}),l[r(1375)](C.Input,{value:h[r(2043)],onChange:k=>m({background:k.target[r(1044)]}),placeholder:"#ffffff"})]})}),l[r(884)](C.Form.Item,{label:r(513),children:[l.jsxs("div",{className:r(1965),children:[l[r(1375)](C[r(1596)],{accept:r(1986),showUploadList:!1,beforeUpload:k=>{const S=r;if(!k[S(1912)][S(2189)](S(1746)))return C[S(1109)][S(1036)]("只能上传图片文件!"),!1;const R=new FileReader;return R[S(695)]=ie=>{const K=S,Q=ie[K(500)]?.[K(933)];m({backgroundImage:Q}),C[K(1109)][K(1093)]("背景图片上传成功")},R[S(1075)](k),!1},children:l[r(1375)](C[r(1105)],{icon:l[r(1375)](de[r(838)],{}),children:r(1808)})}),l.jsx(C[r(465)],{value:h[r(875)],onChange:k=>m({backgroundImage:k[r(500)][r(1044)]}),placeholder:"输入图片 URL 或上传图片",style:{flex:1}}),h.backgroundImage&&l[r(1375)](C.Button,{icon:l.jsx(de[r(818)],{}),onClick:()=>m({backgroundImage:void 0}),danger:!0,size:r(1400)})]}),h[r(875)]&&l.jsx(r(1037),{className:r(1319),style:{maxWidth:r(1575)},children:l.jsx("img",{src:h[r(875)],alt:"背景预览",style:{maxWidth:r(1575),maxHeight:120,objectFit:r(1906)}})})]})]})}),l.jsx(C[r(1767)],{title:"画布管理",open:sr,onCancel:()=>{Ex(!1),Ct(null),pt("")},footer:null,width:760,children:l[r(1375)](C.Tabs,{items:[{key:"canvases",label:r(1181),children:l[r(884)](l[r(1465)],{children:[l[r(1375)](C[r(853)],{dataSource:v.canvases,renderItem:k=>l[r(1375)](C[r(853)][r(1254)],{actions:[zt===k.id?l.jsx(C[r(1105)],{type:r(2085),size:r(1400),onClick:()=>{Y(k.id,Ux),Ct(null)},children:"保存"}):l[r(1375)](C.Button,{type:r(1918),icon:l.jsx(de[r(2165)],{}),size:r(1400),onClick:()=>{Ct(k.id),pt(k.name)}}),v[r(974)].length>1&&l[r(1375)](C[r(1105)],{type:r(1918),danger:!0,icon:l[r(1375)](de.DeleteOutlined,{}),size:r(1400),onClick:()=>L(k.id)})].filter(Boolean),children:zt===k.id?l[r(1375)](C[r(465)],{value:Ux,onChange:S=>pt(S.target[r(1044)]),size:"small",style:{width:200}}):l[r(884)]("span",{style:{fontWeight:v[r(687)]===k.id?"bold":"normal"},children:[k[r(863)]," ",v.currentCanvasId===k.id&&r(2053)]})})}),l.jsx(r(1037),{className:r(1726),children:l[r(1375)](C.Button,{type:r(2085),icon:l[r(1375)](de[r(952)],{}),onClick:()=>N(),children:r(476)})})]})},{key:r(1543),label:r(1285),children:l[r(1375)](Il,{})}]})}),l[r(1375)](C[r(1767)],{title:"导入画布",open:B0,onOk:$0,onCancel:()=>{t0(!1),x0(""),h0(!1)},destroyOnClose:!0,width:600,children:l[r(884)](r(1037),{className:r(1888),children:[l[r(884)](r(1037),{children:[l.jsx("p",{className:"mb-2",children:"选择 JSON 文件导入:"}),l[r(1375)](r(614),{type:r(2161),accept:r(1115),onChange:k=>{const S=r,_=k[S(500)][S(2181)]?.[0];_&&q0(_)},className:r(406)})]}),l[r(1375)]("div",{className:"text-center text-gray-400",children:"或"}),l[r(884)](r(1037),{children:[l.jsx("p",{className:"mb-2",children:r(953)}),l.jsx("textarea",{value:a0,onChange:k=>x0(k[r(500)][r(1044)]),placeholder:"粘贴画布 JSON 内容...",className:r(1332)})]}),l[r(884)](r(1037),{className:r(1965),children:[l[r(1375)](r(614),{type:r(1610),id:"importAsNewCanvas",checked:s0,onChange:k=>h0(k[r(500)][r(893)]),className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500"}),l[r(1375)](r(663),{htmlFor:"importAsNewCanvas",className:"text-sm text-gray-700",children:r(1179)})]})]})})]})},{Option:Ot}=C[s(1125)];function ci(e){return Array[s(565)](e)}function Yl(e){const n=s,t=new Set;return e[n(1322)](o=>Object[n(999)](o)[n(1322)](x=>t[n(729)](x))),Array[n(1365)](t)}function El(e,n){const t=s;return e[t(474)]((o,x)=>{const r=t,i=o[n],c=o[r(863)];return{label:String(c??"项 "+(x+1)),value:typeof i===r(1705)||typeof i===r(2059)?i:String(i)}})}function ai(e,n=""){const t=s,o=[];for(const[x,r]of Object[t(1615)](e)){const i=n?n+"."+x:x;r!==null&&typeof r===t(878)&&!Array[t(565)](r)?o.push(...ai(r,i)):o.push({paramsCode:i,paramsName:i,value:r})}return o}function Ul(e,n,t){const o=s;if(ci(e)){if(n!=null&&t!=null){const x=e[o(990)](r=>r[n]===t);if(x)return x}return{}}return e}const Gl=({material:e,onSave:n})=>{const t=s,o=e,x=o.content||{},r=Qe(y=>y[t(1440)]),[i,c]=B[t(883)]({label:x[t(663)]||"",value:x.value||"",valueSourceCode:x[t(1052)]||"",unit:x.unit||"",decimals:x[t(2070)]??2,labelFontSize:x.labelStyle?.[t(1688)]||14,labelFontWeight:x.labelStyle?.[t(977)]||t(1268),labelColor:x.labelStyle?.color||t(1085),valueFontSize:x.valueStyle?.[t(1688)]||14,valueFontWeight:x[t(1862)]?.fontWeight||"normal",valueColor:x[t(1862)]?.[t(1176)]||t(1483),boundDatasetId:x[t(965)]||"",boundDatasetBindCode:x[t(1289)]||"",boundDatasetBindValue:x[t(848)]??null}),d=B[t(1581)](()=>{const y=t;return r.find(p=>p.id===i[y(965)])},[r,i[t(965)]]),a=d?ci(d[t(2133)]):!1,u=B[t(1581)](()=>{const y=t;if(!d)return[];const p=Ul(d[y(2133)],i[y(1289)],i[y(848)]);return ai(p)},[d,i[t(1289)],i[t(848)]]);B.useEffect(()=>{const y=t;c({label:x.label||"",value:x.value||"",valueSourceCode:x.valueSourceCode||"",unit:x[y(2013)]||"",decimals:x[y(2070)]??2,labelFontSize:x[y(832)]?.[y(1688)]||14,labelFontWeight:x[y(832)]?.fontWeight||"bold",labelColor:x[y(832)]?.[y(1176)]||"#262626",valueFontSize:x[y(1862)]?.[y(1688)]||14,valueFontWeight:x[y(1862)]?.fontWeight||"normal",valueColor:x[y(1862)]?.[y(1176)]||"#1890ff",boundDatasetId:x.boundDatasetId||"",boundDatasetBindCode:x[y(1289)]||"",boundDatasetBindValue:x[y(848)]??null})},[e.id]);const f=(y,p)=>{c(z=>({...z,[y]:p}))},b=y=>{c(p=>({...p,boundDatasetId:y,boundDatasetBindCode:"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetId:y||void 0,boundDatasetBindCode:void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},g=y=>{c(p=>({...p,boundDatasetBindCode:y||"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindCode:y||void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},w=y=>{c(p=>({...p,boundDatasetBindValue:y??null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindValue:y??void 0,valueSourceCode:void 0}})},0)},h=y=>{const p=t,z=u[p(990)](G=>G[p(2104)]===y),P=z?.[p(2013)]||"";c(G=>({...G,valueSourceCode:y,unit:P,value:String(z?.[p(1044)]||"")})),setTimeout(()=>{n({content:{...x,valueSourceCode:y,value:String(z?.value||""),unit:P}})},0)},v=()=>{const y=t;n({content:{...x,label:i.label,value:i[y(1044)],valueSourceCode:i[y(1052)],unit:i[y(2013)],decimals:i[y(2070)],boundDatasetId:i[y(965)]||void 0,boundDatasetBindCode:i[y(1289)]||void 0,boundDatasetBindValue:i[y(848)]??void 0,labelStyle:{fontSize:i.labelFontSize,fontWeight:i[y(664)],color:i[y(899)]},valueStyle:{fontSize:i[y(1512)],fontWeight:i[y(647)],color:i[y(623)]}}})},M=d&&a?Yl(d[t(2133)]):[],m=d&&a&&i[t(1289)]?El(d[t(2133)],i[t(1289)]):[];return l[t(884)](t(1037),{className:t(1888),children:[l[t(1375)](C.Divider,{style:{marginTop:0},children:t(1897)}),l[t(884)](C[t(1249)],{layout:t(1323),children:[l[t(1375)](C[t(1249)][t(1254)],{label:"标签文本 (label)",children:l[t(1375)](C.Input,{value:i[t(663)],onChange:y=>f("label",y.target[t(1044)]),onBlur:v,placeholder:t(1502)})}),l[t(1375)](C[t(1249)][t(1254)],{label:t(716),help:t(1202),children:l[t(1375)](C[t(1125)],{allowClear:!0,placeholder:r[t(2179)]===0?"暂无数据集":t(1422),value:i[t(965)]||void 0,onChange:b,style:{width:t(1575)},options:r[t(474)](y=>({label:y.name,value:y.id}))})}),d&&a&&l[t(884)](l[t(1465)],{children:[l[t(1375)](C[t(1249)].Item,{label:t(503),help:t(2121),children:l.jsx(C[t(1125)],{allowClear:!0,placeholder:t(1263),value:i[t(1289)]||void 0,onChange:g,style:{width:"100%"},options:M.map(y=>({label:y,value:y}))})}),i[t(1289)]&&l[t(1375)](C[t(1249)][t(1254)],{label:t(1149),help:"选择该字段对应的具体值以定位数据项",children:l[t(1375)](C[t(1125)],{allowClear:!0,showSearch:!0,placeholder:t(411),value:i.boundDatasetBindValue??void 0,onChange:w,style:{width:t(1575)},options:m,filterOption:(y,p)=>String(p?.[t(663)]??"")[t(1239)]()[t(1419)](y[t(1239)]()),onInputKeyDown:y=>{const p=t;y.key===" "&&y[p(1313)]()}})})]}),l[t(1375)](C[t(1249)][t(1254)],{label:t(1395),help:t(d?1127:1553),children:l[t(1375)](C[t(1125)],{value:i[t(1052)]||void 0,onChange:h,placeholder:d?t(455):"请先绑定数据集",allowClear:!0,disabled:!d,style:{width:t(1575)},options:u[t(474)](y=>({value:y.paramsCode,label:y[t(1647)]}))})}),l[t(1375)](C[t(1249)][t(1254)],{label:i[t(1052)]?t(2075):t(1749),help:i[t(1052)]?t(1067):t(433),children:l[t(1375)](C[t(465)],{value:i[t(1044)],onChange:y=>f("value",y[t(500)][t(1044)]),onBlur:v,placeholder:i[t(1052)]?t(1807):t(1432),disabled:!!i.valueSourceCode,variant:i[t(1052)]?t(1949):void 0})}),l[t(1375)](C[t(1249)][t(1254)],{label:"单位",help:t(1265),children:l[t(1375)](C.Input,{value:i[t(2013)],onChange:y=>f(t(2013),y[t(500)][t(1044)]),onBlur:v,placeholder:t(892),suffix:i[t(1052)]&&u[t(2179)]>0?l[t(1375)](C[t(2158)],{color:"blue",style:{marginRight:-8},children:"自动"}):null})}),l.jsx(C[t(1249)].Item,{label:t(507),help:"数值格式化时保留的小数位数,-1表示不格式化",children:l[t(1375)](C[t(715)],{value:i[t(2070)],onChange:y=>f(t(2070),y??2),onBlur:v,min:-1,max:10,style:{width:t(1575)}})})]}),l[t(1375)](C.Divider,{children:t(796)}),l[t(884)](C[t(1249)],{layout:t(1323),children:[l[t(884)](C.Space,{children:[l[t(1375)](C[t(1249)][t(1254)],{label:t(449),children:l.jsx(C[t(715)],{value:i[t(483)],onChange:y=>f("labelFontSize",y||14),onBlur:v,min:8,max:72})}),l[t(1375)](C[t(1249)][t(1254)],{label:t(1435),children:l[t(884)](C.Select,{value:i[t(664)],onChange:y=>{f(t(664),y),setTimeout(v,0)},style:{width:100},children:[l[t(1375)](Ot,{value:"normal",children:"正常"}),l.jsx(Ot,{value:t(1268),children:"粗体"})]})})]}),l[t(1375)](C[t(1249)].Item,{label:t(1287),children:l[t(884)]("div",{className:"flex items-center gap-2",children:[l[t(1375)](Mn,{value:i[t(899)]||t(1085),onChange:y=>{const p=t;f(p(899),y[p(2072)]())},onChangeComplete:y=>{const p=t;n({content:{...x,label:i[p(663)],value:i[p(1044)],valueSourceCode:i[p(1052)],unit:i[p(2013)],decimals:i[p(2070)],boundDatasetId:i[p(965)]||void 0,boundDatasetBindCode:i[p(1289)]||void 0,boundDatasetBindValue:i.boundDatasetBindValue??void 0,labelStyle:{fontSize:i[p(483)],fontWeight:i[p(664)],color:y[p(2072)]()},valueStyle:{fontSize:i.valueFontSize,fontWeight:i[p(647)],color:i[p(623)]}}})}}),l[t(1375)](C[t(465)],{value:i.labelColor,onChange:y=>f(t(899),y[t(500)][t(1044)]),onBlur:v,placeholder:t(1085),style:{width:100}})]})})]}),l[t(1375)](C[t(1867)],{children:t(1794)}),l.jsxs(C.Form,{layout:t(1323),children:[l[t(884)](C[t(1450)],{children:[l.jsx(C[t(1249)][t(1254)],{label:t(449),children:l.jsx(C[t(715)],{value:i[t(1512)],onChange:y=>f(t(1512),y||14),onBlur:v,min:8,max:72})}),l[t(1375)](C[t(1249)][t(1254)],{label:"字体粗细",children:l[t(884)](C.Select,{value:i.valueFontWeight,onChange:y=>{f(t(647),y),setTimeout(v,0)},style:{width:100},children:[l[t(1375)](Ot,{value:"normal",children:"正常"}),l.jsx(Ot,{value:t(1268),children:"粗体"})]})})]}),l[t(1375)](C[t(1249)][t(1254)],{label:t(1287),children:l[t(884)]("div",{className:t(1965),children:[l[t(1375)](Mn,{value:i[t(623)]||t(1483),onChange:y=>{f(t(623),y.toHexString())},onChangeComplete:y=>{const p=t;n({content:{...x,label:i[p(663)],value:i[p(1044)],valueSourceCode:i[p(1052)],unit:i.unit,decimals:i[p(2070)],boundDatasetId:i[p(965)]||void 0,boundDatasetBindCode:i[p(1289)]||void 0,boundDatasetBindValue:i[p(848)]??void 0,labelStyle:{fontSize:i[p(483)],fontWeight:i[p(664)],color:i[p(899)]},valueStyle:{fontSize:i[p(1512)],fontWeight:i[p(647)],color:y[p(2072)]()}}})}}),l[t(1375)](C.Input,{value:i[t(623)],onChange:y=>f(t(623),y[t(500)][t(1044)]),onBlur:v,placeholder:"#1890ff",style:{width:100}})]})})]})]})},Ol=({material:e,onSave:n})=>{const t=s,o=e,[x,r]=B[t(883)]({name:e.name,src:o.src||"",backgroundColor:o.backgroundColor||"",fillColor:o[t(1334)]||""});B[t(2005)](()=>{const d=t;r({name:e[d(863)],src:o[d(1950)]||"",backgroundColor:o[d(1812)]||"",fillColor:o.fillColor||""})},[e.id]);const i=(d,a)=>{r(u=>({...u,[d]:a}))},c=()=>{const d=t;n({name:x[d(863)],src:x[d(1950)],backgroundColor:x[d(1812)]})};return l.jsxs(t(1037),{className:"space-y-4",children:[l[t(1375)](C.Divider,{style:{marginTop:0},children:"图片属性"}),l[t(884)](C[t(1249)],{layout:t(1323),children:[l[t(1375)](C[t(1249)][t(1254)],{label:"图片名称",children:l.jsx(C[t(465)],{value:x.name,onChange:d=>i("name",d.target[t(1044)]),onBlur:c})}),l[t(1375)](C.Form[t(1254)],{label:"图片地址 (src)",children:l.jsx(C[t(465)].TextArea,{value:x[t(1950)],onChange:d=>i(t(1950),d[t(500)][t(1044)]),onBlur:c,rows:4,placeholder:t(1279)})}),l.jsx(C[t(1249)][t(1254)],{label:t(1126),children:l[t(884)](t(1037),{className:t(1965),children:[l.jsx(Mn,{value:x[t(1334)]||"#1890ff",onChange:d=>{const a=t,u=d[a(2072)]();i(a(1334),u),n({name:x[a(863)],src:x[a(1950)],backgroundColor:x.backgroundColor,fillColor:u})}}),l[t(1375)](C[t(465)],{value:x[t(1334)],onChange:d=>i(t(1334),d[t(500)][t(1044)]),onBlur:c,placeholder:t(1483)})]})}),l[t(1375)](C[t(1249)].Item,{label:t(707),children:l[t(884)](t(1037),{className:t(1965),children:[l[t(1375)](Mn,{value:x[t(1812)]||t(1483),onChange:d=>{const a=t,u=d[a(2072)]();i(a(1812),u),n({name:x.name,src:x[a(1950)],backgroundColor:u,fillColor:x.fillColor})}}),l.jsx(C.Input,{value:x[t(1812)],onChange:d=>i("backgroundColor",d[t(500)].value),onBlur:c,placeholder:t(1483)})]})})]})]})},{Option:Hl}=C[s(1125)],Tl=({material:e,onSave:n})=>{const t=s,o=e[t(1936)]||{},[x,r]=B[t(883)]({lineWeight:o[t(1200)]||o[t(1531)]||2,color:o[t(1176)]||t(1085),lineType:o.lineType||t(535),startX:o[t(957)]??0,startY:o[t(504)]??0,endX:o[t(1676)]??100,endY:o[t(1945)]??0,rotate:o.rotate??0}),i=JSON[t(922)]({sw:o[t(1200)]??o[t(1531)],c:o[t(1176)],t:o[t(1518)],sx:o.startX,sy:o[t(504)],ex:o[t(1676)],ey:o.endY,r:o[t(1442)]});B[t(2005)](()=>{const a=t;r({lineWeight:o[a(1200)]||o[a(1531)]||2,color:o.color||"#262626",lineType:o[a(1518)]||a(535),startX:o.startX??0,startY:o.startY??0,endX:o[a(1676)]??100,endY:o[a(1945)]??0,rotate:o[a(1442)]??0})},[e.id,i]);const c=a=>{const u=t,f={...x,...a};r(f),n({config:{...o,thickness:f.lineWeight,lineWeight:f[u(1200)],color:f.color,lineType:f[u(1518)],startX:f[u(957)],startY:f[u(504)],endX:f[u(1676)],endY:f[u(1945)],rotate:f.rotate}})},d=[{value:t(535),label:"实线",desc:"连续实线"},{value:"dashed",label:"虚线",desc:t(554)},{value:t(613),label:t(1232),desc:t(362)},{value:t(1837),label:t(995),desc:"长划-双点交替"},{value:t(457),label:"点线",desc:t(1247)},{value:t(2007),label:t(1083),desc:"长划-点交替"}];return l.jsxs(t(1037),{className:t(1888),children:[l.jsx(C.Divider,{style:{marginTop:0},children:t(762)}),l.jsxs(C[t(1249)],{layout:t(1323),children:[l[t(884)](t(1037),{className:"grid grid-cols-2 gap-2",children:[l[t(1375)](C[t(1249)][t(1254)],{label:t(849),className:"mb-2",children:l.jsx(C.InputNumber,{value:x.startX,onChange:a=>c({startX:a??0}),style:{width:t(1575)}})}),l.jsx(C[t(1249)][t(1254)],{label:"起点 Y",className:t(373),children:l[t(1375)](C[t(715)],{value:x[t(504)],onChange:a=>c({startY:a??0}),style:{width:t(1575)}})}),l[t(1375)](C[t(1249)][t(1254)],{label:t(1071),className:t(373),children:l[t(1375)](C[t(715)],{value:x[t(1676)],onChange:a=>c({endX:a??100}),style:{width:"100%"}})}),l[t(1375)](C[t(1249)][t(1254)],{label:t(1557),className:"mb-2",children:l[t(1375)](C[t(715)],{value:x[t(1945)],onChange:a=>c({endY:a??0}),style:{width:t(1575)}})})]}),l.jsx(C.Form.Item,{label:"快速对齐",className:t(1645),children:l.jsxs(C[t(1450)],{children:[l[t(1375)](C[t(1105)],{size:t(1400),onClick:()=>{const a=t,u=o[a(957)]??x[a(957)],f=o[a(504)]??x.startY,b=o.endX??x[a(1676)],g=o[a(1945)]??x[a(1945)],w=b-u,h=g-f,v=Math[a(857)](w*w+h*h),M=w>=0?1:-1;c({endX:u+M*v,endY:f})},title:t(640),children:"水平"}),l[t(1375)](C[t(1105)],{size:t(1400),onClick:()=>{const a=t,u=o[a(957)]??x[a(957)],f=o[a(504)]??x.startY,b=o[a(1676)]??x[a(1676)],g=o[a(1945)]??x[a(1945)],w=b-u,h=g-f,v=Math[a(857)](w*w+h*h),M=h>=0?1:-1;c({endX:u,endY:f+M*v})},title:"将线条变为垂直线,保持长度",children:"垂直"}),l[t(1375)](C[t(1105)],{size:t(1400),onClick:()=>{const a=t,u=o.startX??x.startX,f=o[a(504)]??x.startY,b=o[a(1676)]??x.endX,g=o[a(1945)]??x.endY;c({startX:b,startY:g,endX:u,endY:f})},title:t(533),children:"反向"})]})}),l.jsx(C[t(1249)].Item,{label:t(553),help:t(1934),children:l[t(1375)](C[t(715)],{value:x[t(1442)],onChange:a=>{const u=t,f=a??0,b=o[u(957)]??x.startX,g=o[u(504)]??x[u(504)],w=o[u(1676)]??x[u(1676)],h=o[u(1945)]??x.endY,v=w-b,M=h-g,m=Math[u(857)](v*v+M*M),y=f*Math.PI/180;c({rotate:f,endX:Math.round(b+m*Math.cos(y)),endY:Math[u(381)](g+m*Math[u(1702)](y))})},style:{width:120}})})]}),l[t(1375)](C[t(1867)],{children:"线条属性"}),l[t(884)](C[t(1249)],{layout:t(1323),children:[l.jsx(C[t(1249)][t(1254)],{label:"线型",help:"选择线条样式",children:l[t(1375)](C[t(1125)],{value:x[t(1518)],onChange:a=>c({lineType:a}),children:d[t(474)](a=>l[t(1375)](Hl,{value:a[t(1044)],children:l[t(884)](t(1037),{className:t(1847),children:[l[t(1375)](t(2163),{children:a[t(663)]}),l.jsx(t(2163),{className:"text-xs text-gray-400",children:a[t(705)]})]})},a[t(1044)]))})}),l.jsx(C[t(1249)][t(1254)],{label:"线宽(像素)",children:l[t(1375)](C.InputNumber,{value:x[t(1200)],onChange:a=>c({lineWeight:a||2}),min:1,max:20,style:{width:120}})}),l.jsx(C.Form[t(1254)],{label:"颜色",children:l[t(884)](t(1037),{className:t(1965),children:[l[t(1375)](Mn,{value:x[t(1176)]||t(2106),onChange:a=>c({color:a[t(2072)]()})}),l.jsx(C[t(465)],{value:x[t(1176)],onChange:a=>c({color:a[t(500)][t(1044)]}),placeholder:"#d9d9d9",style:{width:100}})]})})]})]})};function si(e){return Array[s(565)](e)}function Vl(e){const n=s,t=new Set;return e[n(1322)](o=>Object[n(999)](o)[n(1322)](x=>t[n(729)](x))),Array[n(1365)](t)}function ql(e,n){const t=s;return e[t(474)]((o,x)=>{const r=t,i=o[n],c=o.name;return{label:String(c??"项 "+(x+1)),value:typeof i===r(1705)||typeof i===r(2059)?i:String(i)}})}function Wl(e,n,t){if(si(e)){if(n!=null&&t!=null){const o=e.find(x=>x[n]===t);if(o)return o}return{}}return e}const li=({status:e,onUpdate:n,onAppendToExpression:t})=>{const o=s,x=Qe(h=>h[o(1440)]),r=x.find(h=>h.id===e[o(965)]),i=r?si(r[o(2133)]):!1,c=r?Wl(r.sample,e[o(1289)],e[o(848)]):{},d=Cr(c),a=h=>{const v=o,M=v(1156)+h;t?t(M):n({expression:""+(e[v(572)]||"")+M})},u=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?Vl(r[o(2133)]):[],w=r&&i&&e[o(1289)]?ql(r.sample,e[o(1289)]):[];return l[o(884)](l[o(1465)],{children:[l.jsx(C[o(1249)][o(1254)],{label:o(716),extra:x[o(2179)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":o(1522),children:l.jsx(C[o(1125)],{allowClear:!0,showSearch:!0,placeholder:x[o(2179)]===0?o(1956):o(1593),value:e[o(965)]??void 0,options:x.map(h=>({label:h[o(863)],value:h.id})),onChange:u,filterOption:(h,v)=>String(v?.label??"")[o(1239)]()[o(1419)](h.toLowerCase()),onInputKeyDown:h=>{h[o(844)]===" "&&h.stopPropagation()}})}),r&&i&&l[o(884)](l[o(1465)],{children:[l[o(1375)](C[o(1249)].Item,{label:o(503),extra:"该数据集的 sample 为数组,请选择用于匹配数据项的字段",children:l[o(1375)](C.Select,{allowClear:!0,placeholder:o(1263),value:e.boundDatasetBindCode??void 0,options:g[o(474)](h=>({label:h,value:h})),onChange:f})}),e.boundDatasetBindCode&&l[o(1375)](C[o(1249)][o(1254)],{label:o(1149),extra:o(1628),children:l.jsx(C[o(1125)],{allowClear:!0,showSearch:!0,placeholder:o(411),value:e[o(848)]??void 0,options:w,onChange:b,filterOption:(h,v)=>String(v?.[o(663)]??"")[o(1239)]().includes(h[o(1239)]()),onInputKeyDown:h=>{const v=o;h[v(844)]===" "&&h[v(1313)]()}})})]}),d[o(2179)]>0&&l.jsx(C[o(1249)][o(1254)],{label:o(1016),children:l[o(1375)](C.Space,{size:[4,4],wrap:!0,children:d.map(h=>l.jsx(C.Tag,{className:o(2112),onClick:()=>a(h),children:o(1156)+h},h))})})]})},di=({material:e,onSave:n})=>{const t=s;switch(e[t(1912)]){case t(1509):return l[t(1375)](Gl,{material:e,onSave:n});case t(1054):return l[t(1375)](Ol,{material:e,onSave:n});case t(1701):return l.jsx(Tl,{material:e,onSave:n});default:return l[t(1375)](t(1037),{className:t(1814),children:"暂不支持编辑此类型的物料"})}},{Panel:ui}=C[s(860)],{TextArea:Xl}=C.Input,Kl=({node:e,updateNode:n,materials:t})=>{const o=s,x=t[o(815)](f=>f.type!==o(601)||!f[o(1936)]?.[o(960)]),r=(f,b)=>{const g=o,w=e[g(517)]?.[g(474)](h=>{const v=g;return h.id===f?{...h,contentInfo:{...h[v(742)],statusList:b}}:h});n(e.id,{children:w})},i=f=>{const b=o,g=e[b(517)]?.[b(990)](h=>h.id===f);if(!g)return;const w={id:Le[b(1335)](),name:"状态"+(g[b(742)][b(1833)][b(2179)]+1),expression:g[b(742)][b(1833)].length===0?b(2069):"return false;",material:{...x[0],id:Le[b(1335)]()},boundDatasetId:null};r(f,[...g[b(742)][b(1833)],w])},c=(f,b)=>{const g=o,w=e[g(517)]?.[g(990)](v=>v.id===f);if(!w)return;const h=w[g(742)].statusList[g(815)](v=>v.id!==b);r(f,h)},d=(f,b,g)=>{const w=o,h=e.children?.find(M=>M.id===f);if(!h)return;const v=h[w(742)][w(1833)][w(474)](M=>M.id===b?{...M,...g}:M);r(f,v)},a=(f,b,g)=>{const w=o,h=e[w(517)]?.[w(990)](m=>m.id===f);if(!h)return;const v=h.contentInfo[w(1833)][w(424)](m=>m.id===b);if(v===-1)return;const M=[...h.contentInfo[w(1833)]];g==="up"&&v>0?[M[v],M[v-1]]=[M[v-1],M[v]]:g===w(1221)&&v<M.length-1&&([M[v],M[v+1]]=[M[v+1],M[v]]),r(f,M)},u=(f,b,g)=>{const w=o,h=t[w(990)](v=>v.id===g);h&&d(f,b,{material:{...h,id:Le.nanoid()}})};return l[o(884)]("div",{className:o(1888),children:[l[o(1375)](o(1037),{className:o(2014),children:l.jsxs(o(1037),{className:o(1165),children:[l[o(1375)](o(645),{children:o(1659)}),":为每个子节点配置多个状态和绑定"]})}),l[o(1375)](C[o(860)],{ghost:!0,children:e.children?.[o(474)]((f,b)=>l[o(1375)](ui,{header:l[o(884)]("div",{className:"flex items-center justify-between w-full pr-4",children:[l.jsxs("span",{className:o(446),children:[o(1302),b+1]}),l.jsxs(C[o(2158)],{color:o(547),style:{fontSize:o(607),padding:"0 4px"},children:[f[o(742)][o(1833)][o(2179)]," 个状态"]})]}),children:l[o(884)]("div",{className:o(1463),children:[l[o(884)](o(1037),{className:o(1617),children:[l[o(1375)](o(2163),{className:"text-sm text-gray-600",children:"状态列表"}),l[o(1375)](C[o(1105)],{type:o(2085),size:"small",icon:l.jsx(de[o(952)],{}),onClick:()=>i(f.id),children:o(876)})]}),f[o(742)][o(1833)][o(2179)]===0?l[o(1375)](o(1037),{className:"text-center text-gray-400 py-4 bg-gray-50 rounded-lg",children:o(735)}):l[o(1375)](C.Collapse,{ghost:!0,children:f[o(742)].statusList[o(474)]((g,w)=>l[o(1375)](ui,{header:l[o(884)]("div",{className:o(1965),children:[l[o(1375)]("span",{className:o(2130),children:w+1}),l[o(1375)](o(2163),{className:"font-medium",children:g[o(863)]}),l[o(1375)](C[o(2158)],{color:o(384),className:"text-xs",children:g.material[o(1912)]})]}),extra:l.jsxs(C[o(1450)],{size:o(1400),onClick:h=>h[o(1313)](),children:[l[o(1375)](C[o(1105)],{type:o(1918),size:o(1400),icon:l.jsx(de[o(1307)],{}),disabled:w===0,onClick:h=>{h.stopPropagation(),a(f.id,g.id,"up")}}),l[o(1375)](C[o(1105)],{type:o(1918),size:o(1400),icon:l[o(1375)](de.ArrowDownOutlined,{}),disabled:w===f[o(742)][o(1833)][o(2179)]-1,onClick:h=>{const v=o;h[v(1313)](),a(f.id,g.id,v(1221))}}),l.jsx(C[o(1105)],{type:o(1918),size:o(1400),danger:!0,icon:l.jsx(de[o(635)],{}),onClick:h=>{h[o(1313)](),c(f.id,g.id)}})]}),children:l[o(884)](C[o(1249)],{layout:o(1323),children:[l[o(1375)](C[o(1249)][o(1254)],{label:"状态名称",children:l[o(1375)](C[o(465)],{value:g.name,onChange:h=>d(f.id,g.id,{name:h[o(500)][o(1044)]}),placeholder:o(1283)})}),l[o(1375)](li,{status:g,onUpdate:h=>d(f.id,g.id,h)}),l[o(1375)](C[o(1249)].Item,{label:o(1817),help:o(1819),children:l.jsx(Xl,{value:g[o(572)],onChange:h=>d(f.id,g.id,{expression:h[o(500)][o(1044)]}),rows:3,placeholder:o(2069)})}),l[o(1375)](C.Form[o(1254)],{label:o(2060),children:l[o(884)](o(1037),{className:o(1965),children:[l[o(1375)](C[o(2158)],{color:o(547),children:g[o(956)][o(863)]}),l[o(1375)](C.Tag,{color:"default",children:g[o(956)].type}),l[o(1375)](C[o(1125)],{placeholder:o(1500),style:{width:150},value:void 0,onChange:h=>h&&u(f.id,g.id,h),options:x[o(474)](h=>({value:h.id,label:h[o(863)]+" ("+h.type+")"}))})]})}),l.jsx(C.Divider,{style:{margin:"12px 0"}}),l[o(884)](o(1037),{className:o(1885),children:[l[o(884)]("div",{className:o(2009),children:[l[o(1375)](o(2163),{className:"text-sm font-medium",children:o(1252)}),l[o(1375)](C.Tag,{children:g.material[o(863)]})]}),l[o(1375)](di,{material:g[o(956)],onSave:h=>{const v=o,M={...g[v(956)],...h};d(f.id,g.id,{material:M})}})]})]})},g.id))})]})},f.id))})]})};function Xe(e){const n=s;if(typeof e===n(1705)||typeof e=="number")return""+e;let t="";if(Array[n(565)](e))for(let o=0,x;o<e[n(2179)];o++)(x=Xe(e[o]))!==""&&(t+=(t&&" ")+x);else for(let o in e)e[o]&&(t+=(t&&" ")+o);return t}var Zl={value:()=>{}};function Ht(){const e=s;for(var n=0,t=arguments.length,o={},x;n<t;++n){if(!(x=arguments[n]+"")||x in o||/[\s.]/[e(665)](x))throw new Error(e(1369)+x);o[x]=[]}return new Tt(o)}function Tt(e){this._=e}function Rl(e,n){const t=s;return e[t(349)]()[t(897)](/^|\s+/).map(function(o){const x=t;var r="",i=o[x(1878)](".");if(i>=0&&(r=o[x(852)](i+1),o=o[x(852)](0,i)),o&&!n[x(911)](o))throw new Error(x(1983)+o);return{type:o,name:r}})}Tt[s(2107)]=Ht.prototype={constructor:Tt,on:function(e,n){const t=s;var o=this._,x=Rl(e+"",o),r,i=-1,c=x[t(2179)];if(arguments.length<2){for(;++i<c;)if((r=(e=x[i])[t(1912)])&&(r=Jl(o[r],e.name)))return r;return}if(n!=null&&typeof n!==t(1347))throw new Error(t(1474)+n);for(;++i<c;)if(r=(e=x[i])[t(1912)])o[r]=fi(o[r],e[t(863)],n);else if(n==null)for(r in o)o[r]=fi(o[r],e.name,null);return this},copy:function(){const e=s;var n={},t=this._;for(var o in t)n[o]=t[o][e(852)]();return new Tt(n)},call:function(e,n){const t=s;if((r=arguments[t(2179)]-2)>0)for(var o=new Array(r),x=0,r,i;x<r;++x)o[x]=arguments[x+2];if(!this._[t(911)](e))throw new Error("unknown type: "+e);for(i=this._[e],x=0,r=i[t(2179)];x<r;++x)i[x][t(1044)][t(2185)](n,o)},apply:function(e,n,t){const o=s;if(!this._[o(911)](e))throw new Error("unknown type: "+e);for(var x=this._[e],r=0,i=x[o(2179)];r<i;++r)x[r][o(1044)][o(2185)](n,t)}};function Jl(e,n){const t=s;for(var o=0,x=e[t(2179)],r;o<x;++o)if((r=e[o])[t(863)]===n)return r[t(1044)]}function fi(e,n,t){const o=s;for(var x=0,r=e[o(2179)];x<r;++x)if(e[x][o(863)]===n){e[x]=Zl,e=e[o(852)](0,x)[o(758)](e[o(852)](x+1));break}return t!=null&&e[o(1759)]({name:n,value:t}),e}var io=s(2042);const hi={svg:s(413),xhtml:io,xlink:s(1622),xml:s(454),xmlns:s(944)};function Vt(e){const n=s;var t=e+="",o=t[n(1878)](":");return o>=0&&(t=e[n(852)](0,o))!==n(1717)&&(e=e[n(852)](o+1)),hi[n(911)](t)?{space:hi[t],local:e}:e}function _l(e){return function(){const n=_0x5590;var t=this[n(1277)],o=this[n(542)];return o===io&&t[n(1082)][n(542)]===io?t[n(2142)](e):t.createElementNS(o,e)}}function Ql(e){return function(){const n=_0x5590;return this[n(1277)].createElementNS(e[n(1680)],e[n(652)])}}function gi(e){const n=s;var t=Vt(e);return(t[n(652)]?Ql:_l)(t)}function Fl(){}function co(e){return e==null?Fl:function(){return this.querySelector(e)}}function $l(e){const n=s;typeof e!==n(1347)&&(e=co(e));for(var t=this._groups,o=t.length,x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i.length,d=x[r]=new Array(c),a,u,f=0;f<c;++f)(a=i[f])&&(u=e[n(414)](a,a[n(1813)],f,i))&&(n(1813)in a&&(u[n(1813)]=a[n(1813)]),d[f]=u);return new d0(x,this._parents)}function ed(e){const n=s;return e==null?[]:Array[n(565)](e)?e:Array.from(e)}function nd(){return[]}function bi(e){return e==null?nd:function(){return this[_0x5590(1214)](e)}}function td(e){return function(){return ed(e[_0x5590(2185)](this,arguments))}}function xd(e){const n=s;typeof e===n(1347)?e=td(e):e=bi(e);for(var t=this[n(2164)],o=t[n(2179)],x=[],r=[],i=0;i<o;++i)for(var c=t[i],d=c[n(2179)],a,u=0;u<d;++u)(a=c[u])&&(x[n(1759)](e[n(414)](a,a[n(1813)],u,c)),r.push(a));return new d0(x,r)}function yi(e){return function(){return this[_0x5590(1844)](e)}}function mi(e){return function(n){return n[_0x5590(1844)](e)}}var od=Array.prototype.find;function rd(e){return function(){return od[_0x5590(414)](this.children,e)}}function id(){return this.firstElementChild}function cd(e){const n=s;return this.select(e==null?id:rd(typeof e===n(1347)?e:mi(e)))}var ad=Array[s(2107)][s(815)];function sd(){return Array.from(this.children)}function ld(e){return function(){const n=_0x5590;return ad[n(414)](this[n(517)],e)}}function dd(e){const n=s;return this[n(1267)](e==null?sd:ld(typeof e===n(1347)?e:mi(e)))}function ud(e){const n=s;typeof e!==n(1347)&&(e=yi(e));for(var t=this[n(2164)],o=t[n(2179)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i[n(2179)],d=x[r]=[],a,u=0;u<c;++u)(a=i[u])&&e[n(414)](a,a.__data__,u,i)&&d[n(1759)](a);return new d0(x,this[n(1021)])}function wi(e){const n=s;return new Array(e[n(2179)])}function fd(){const e=s;return new d0(this[e(1368)]||this._groups[e(474)](wi),this._parents)}function qt(e,n){const t=s;this[t(1277)]=e.ownerDocument,this[t(542)]=e[t(542)],this[t(1785)]=null,this._parent=e,this.__data__=n}qt[s(2107)]={constructor:qt,appendChild:function(e){const n=s;return this[n(1947)][n(1370)](e,this[n(1785)])},insertBefore:function(e,n){const t=s;return this[t(1947)][t(1370)](e,n)},querySelector:function(e){const n=s;return this[n(1947)][n(1525)](e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function hd(e){return function(){return e}}function gd(e,n,t,o,x,r){const i=s;for(var c=0,d,a=n[i(2179)],u=r[i(2179)];c<u;++c)(d=n[c])?(d[i(1813)]=r[c],o[c]=d):t[c]=new qt(e,r[c]);for(;c<a;++c)(d=n[c])&&(x[c]=d)}function bd(e,n,t,o,x,r,i){const c=s;var d,a,u=new Map,f=n[c(2179)],b=r[c(2179)],g=new Array(f),w;for(d=0;d<f;++d)(a=n[d])&&(g[d]=w=i[c(414)](a,a[c(1813)],d,n)+"",u[c(1147)](w)?x[d]=a:u[c(721)](w,a));for(d=0;d<b;++d)w=i[c(414)](e,r[d],d,r)+"",(a=u.get(w))?(o[d]=a,a.__data__=r[d],u.delete(w)):t[d]=new qt(e,r[d]);for(d=0;d<f;++d)(a=n[d])&&u[c(1861)](g[d])===a&&(x[d]=a)}function yd(e){return e.__data__}function md(e,n){const t=s;if(!arguments.length)return Array.from(this,yd);var o=n?bd:gd,x=this[t(1021)],r=this._groups;typeof e!==t(1347)&&(e=hd(e));for(var i=r[t(2179)],c=new Array(i),d=new Array(i),a=new Array(i),u=0;u<i;++u){var f=x[u],b=r[u],g=b[t(2179)],w=wd(e[t(414)](f,f&&f[t(1813)],u,x)),h=w.length,v=d[u]=new Array(h),M=c[u]=new Array(h),m=a[u]=new Array(g);o(f,b,v,M,m,w,n);for(var y=0,p=0,z,P;y<h;++y)if(z=v[y]){for(y>=p&&(p=y+1);!(P=M[p])&&++p<h;);z[t(1785)]=P||null}}return c=new d0(c,x),c._enter=d,c[t(1246)]=a,c}function wd(e){const n=s;return typeof e===n(878)&&n(2179)in e?e:Array[n(1365)](e)}function vd(){const e=s;return new d0(this._exit||this[e(2164)][e(474)](wi),this[e(1021)])}function pd(e,n,t){const o=s;var x=this.enter(),r=this,i=this.exit();return typeof e=="function"?(x=e(x),x&&(x=x[o(2103)]())):x=x.append(e+""),n!=null&&(r=n(r),r&&(r=r[o(2103)]())),t==null?i.remove():t(i),x&&r?x[o(2e3)](r)[o(1868)]():r}function zd(e){const n=s;for(var t=e.selection?e[n(2103)]():e,o=this[n(2164)],x=t[n(2164)],r=o.length,i=x.length,c=Math[n(775)](r,i),d=new Array(r),a=0;a<c;++a)for(var u=o[a],f=x[a],b=u[n(2179)],g=d[a]=new Array(b),w,h=0;h<b;++h)(w=u[h]||f[h])&&(g[h]=w);for(;a<r;++a)d[a]=o[a];return new d0(d,this[n(1021)])}function Cd(){const e=s;for(var n=this[e(2164)],t=-1,o=n[e(2179)];++t<o;)for(var x=n[t],r=x[e(2179)]-1,i=x[r],c;--r>=0;)(c=x[r])&&(i&&c[e(2140)](i)^4&&i.parentNode[e(1370)](c,i),i=c);return this}function Md(e){const n=s;e||(e=Bd);function t(b,g){const w=_0x5590;return b&&g?e(b[w(1813)],g[w(1813)]):!b-!g}for(var o=this[n(2164)],x=o[n(2179)],r=new Array(x),i=0;i<x;++i){for(var c=o[i],d=c[n(2179)],a=r[i]=new Array(d),u,f=0;f<d;++f)(u=c[f])&&(a[f]=u);a[n(840)](t)}return new d0(r,this[n(1021)])[n(1868)]()}function Bd(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function Dd(){const e=s;var n=arguments[0];return arguments[0]=this,n[e(2185)](null,arguments),this}function Ld(){return Array[s(1365)](this)}function Nd(){const e=s;for(var n=this[e(2164)],t=0,o=n[e(2179)];t<o;++t)for(var x=n[t],r=0,i=x[e(2179)];r<i;++r){var c=x[r];if(c)return c}return null}function Sd(){let e=0;for(const n of this)++e;return e}function kd(){return!this[s(1504)]()}function Id(e){const n=s;for(var t=this[n(2164)],o=0,x=t.length;o<x;++o)for(var r=t[o],i=0,c=r.length,d;i<c;++i)(d=r[i])&&e[n(414)](d,d.__data__,i,r);return this}function Pd(e){return function(){this[_0x5590(2084)](e)}}function Ad(e){return function(){const n=_0x5590;this[n(534)](e.space,e[n(652)])}}function jd(e,n){return function(){this[_0x5590(1051)](e,n)}}function Yd(e,n){return function(){const t=_0x5590;this[t(1958)](e[t(1680)],e.local,n)}}function Ed(e,n){return function(){var o=n[_0x5590(2185)](this,arguments);o==null?this.removeAttribute(e):this.setAttribute(e,o)}}function Ud(e,n){return function(){const t=_0x5590;var o=n[t(2185)](this,arguments);o==null?this[t(534)](e[t(1680)],e[t(652)]):this[t(1958)](e[t(1680)],e[t(652)],o)}}function Gd(e,n){const t=s;var o=Vt(e);if(arguments[t(2179)]<2){var x=this.node();return o.local?x.getAttributeNS(o.space,o[t(652)]):x[t(659)](o)}return this[t(1270)]((n==null?o[t(652)]?Ad:Pd:typeof n===t(1347)?o[t(652)]?Ud:Ed:o[t(652)]?Yd:jd)(o,n))}function vi(e){const n=s;return e[n(1277)]&&e[n(1277)][n(1944)]||e[n(821)]&&e||e[n(1944)]}function Od(e){return function(){this[_0x5590(1476)].removeProperty(e)}}function Hd(e,n,t){return function(){const o=_0x5590;this[o(1476)][o(713)](e,n,t)}}function Td(e,n,t){return function(){const o=_0x5590;var x=n[o(2185)](this,arguments);x==null?this.style[o(661)](e):this[o(1476)][o(713)](e,x,t)}}function Vd(e,n,t){const o=s;return arguments[o(2179)]>1?this[o(1270)]((n==null?Od:typeof n===o(1347)?Td:Hd)(e,n,t??"")):Bn(this[o(1504)](),e)}function Bn(e,n){const t=s;return e.style.getPropertyValue(n)||vi(e)[t(704)](e,null)[t(872)](n)}function qd(e){return function(){delete this[e]}}function Wd(e,n){return function(){this[e]=n}}function Xd(e,n){return function(){var o=n[_0x5590(2185)](this,arguments);o==null?delete this[e]:this[e]=o}}function Kd(e,n){const t=s;return arguments[t(2179)]>1?this.each((n==null?qd:typeof n===t(1347)?Xd:Wd)(e,n)):this[t(1504)]()[e]}function pi(e){const n=s;return e.trim()[n(897)](/^|\s+/)}function ao(e){return e.classList||new zi(e)}function zi(e){const n=s;this[n(2170)]=e,this[n(1831)]=pi(e[n(659)](n(1414))||"")}zi[s(2107)]={add:function(e){const n=s;var t=this._names[n(1878)](e);t<0&&(this[n(1831)][n(1759)](e),this._node.setAttribute(n(1414),this._names[n(1881)](" ")))},remove:function(e){const n=s;var t=this[n(1831)][n(1878)](e);t>=0&&(this[n(1831)].splice(t,1),this[n(2170)][n(1051)]("class",this._names[n(1881)](" ")))},contains:function(e){const n=s;return this[n(1831)][n(1878)](e)>=0}};function Ci(e,n){for(var t=ao(e),o=-1,x=n.length;++o<x;)t.add(n[o])}function Mi(e,n){for(var t=ao(e),o=-1,x=n.length;++o<x;)t.remove(n[o])}function Zd(e){return function(){Ci(this,e)}}function Rd(e){return function(){Mi(this,e)}}function Jd(e,n){return function(){(n.apply(this,arguments)?Ci:Mi)(this,e)}}function _d(e,n){const t=s;var o=pi(e+"");if(arguments.length<2){for(var x=ao(this[t(1504)]()),r=-1,i=o[t(2179)];++r<i;)if(!x.contains(o[r]))return!1;return!0}return this.each((typeof n===t(1347)?Jd:n?Zd:Rd)(o,n))}function Qd(){this.textContent=""}function Fd(e){return function(){this.textContent=e}}function $d(e){return function(){const n=_0x5590;var t=e[n(2185)](this,arguments);this[n(1367)]=t??""}}function eu(e){const n=s;return arguments[n(2179)]?this[n(1270)](e==null?Qd:(typeof e===n(1347)?$d:Fd)(e)):this[n(1504)]()[n(1367)]}function nu(){const e=s;this[e(1244)]=""}function tu(e){return function(){const n=_0x5590;this[n(1244)]=e}}function xu(e){return function(){const n=_0x5590;var t=e[n(2185)](this,arguments);this[n(1244)]=t??""}}function ou(e){const n=s;return arguments[n(2179)]?this[n(1270)](e==null?nu:(typeof e===n(1347)?xu:tu)(e)):this.node()[n(1244)]}function ru(){const e=s;this[e(757)]&&this[e(1744)][e(1032)](this)}function iu(){return this[s(1270)](ru)}function cu(){const e=s;this.previousSibling&&this[e(1744)][e(1370)](this,this[e(1744)][e(866)])}function au(){return this[s(1270)](cu)}function su(e){const n=s;var t=typeof e===n(1347)?e:gi(e);return this[n(787)](function(){const o=n;return this[o(1032)](t[o(2185)](this,arguments))})}function lu(){return null}function du(e,n){const t=s;var o=typeof e===t(1347)?e:gi(e),x=n==null?lu:typeof n=="function"?n:co(n);return this.select(function(){return this[t(1370)](o.apply(this,arguments),x.apply(this,arguments)||null)})}function uu(){const e=s;var n=this[e(1744)];n&&n[e(1655)](this)}function fu(){return this.each(uu)}function hu(){const e=s;var n=this[e(1953)](!1),t=this[e(1744)];return t?t[e(1370)](n,this[e(757)]):n}function gu(){const e=s;var n=this[e(1953)](!0),t=this[e(1744)];return t?t[e(1370)](n,this[e(757)]):n}function bu(e){return this[s(787)](e?gu:hu)}function yu(e){const n=s;return arguments[n(2179)]?this.property(n(1813),e):this[n(1504)]()[n(1813)]}function mu(e){return function(n){const t=_0x5590;e[t(414)](this,n,this[t(1813)])}}function wu(e){const n=s;return e[n(349)]()[n(897)](/^|\s+/).map(function(t){const o=n;var x="",r=t.indexOf(".");return r>=0&&(x=t.slice(r+1),t=t[o(852)](0,r)),{type:t,name:x}})}function vu(e){return function(){const n=_0x5590;var t=this.__on;if(t){for(var o=0,x=-1,r=t.length,i;o<r;++o)i=t[o],(!e[n(1912)]||i[n(1912)]===e.type)&&i.name===e[n(863)]?this[n(1665)](i.type,i[n(456)],i.options):t[++x]=i;++x?t[n(2179)]=x:delete this.__on}}}function pu(e,n,t){return function(){const o=_0x5590;var x=this[o(936)],r,i=mu(n);if(x){for(var c=0,d=x[o(2179)];c<d;++c)if((r=x[c])[o(1912)]===e[o(1912)]&&r[o(863)]===e[o(863)]){this[o(1665)](r[o(1912)],r[o(456)],r[o(1964)]),this[o(1892)](r.type,r[o(456)]=i,r[o(1964)]=t),r[o(1044)]=n;return}}this.addEventListener(e[o(1912)],i,t),r={type:e[o(1912)],name:e[o(863)],value:n,listener:i,options:t},x?x[o(1759)](r):this[o(936)]=[r]}}function zu(e,n,t){const o=s;var x=wu(e+""),r,i=x[o(2179)],c;if(arguments[o(2179)]<2){var d=this[o(1504)]()[o(936)];if(d){for(var a=0,u=d[o(2179)],f;a<u;++a)for(r=0,f=d[a];r<i;++r)if((c=x[r]).type===f.type&&c[o(863)]===f[o(863)])return f[o(1044)]}return}for(d=n?pu:vu,r=0;r<i;++r)this[o(1270)](d(x[r],n,t));return this}function Bi(e,n,t){const o=s;var x=vi(e),r=x[o(1333)];typeof r===o(1347)?r=new r(n,t):(r=x[o(821)][o(1860)]("Event"),t?(r[o(1222)](n,t[o(1253)],t[o(2147)]),r[o(1065)]=t.detail):r[o(1222)](n,!1,!1)),e[o(1122)](r)}function Cu(e,n){return function(){return Bi(this,e,n)}}function Mu(e,n){return function(){return Bi(this,e,n.apply(this,arguments))}}function Bu(e,n){const t=s;return this.each((typeof n===t(1347)?Mu:Cu)(e,n))}function*Du(){const e=s;for(var n=this._groups,t=0,o=n[e(2179)];t<o;++t)for(var x=n[t],r=0,i=x[e(2179)],c;r<i;++r)(c=x[r])&&(yield c)}var Di=[null];function d0(e,n){const t=s;this[t(2164)]=e,this[t(1021)]=n}function Qn(){const e=s;return new d0([[document[e(1082)]]],Di)}function Lu(){return this}d0.prototype=Qn[s(2107)]={constructor:d0,select:$l,selectAll:xd,selectChild:cd,selectChildren:dd,filter:ud,data:md,enter:fd,exit:vd,join:pd,merge:zd,selection:Lu,order:Cd,sort:Md,call:Dd,nodes:Ld,node:Nd,size:Sd,empty:kd,each:Id,attr:Gd,style:Vd,property:Kd,classed:_d,text:eu,html:ou,raise:iu,lower:au,append:su,insert:du,remove:fu,clone:bu,datum:yu,on:zu,dispatch:Bu,[Symbol[s(1002)]]:Du};function u0(e){const n=s;return typeof e===n(1705)?new d0([[document[n(1525)](e)]],[document[n(1082)]]):new d0([[e]],Di)}function Nu(e){const n=s;let t;for(;t=e[n(1294)];)e=t;return e}function v0(e,n){const t=s;if(e=Nu(e),n===void 0&&(n=e.currentTarget),n){var o=n.ownerSVGElement||n;if(o[t(1111)]){var x=o[t(1111)]();return x.x=e[t(1072)],x.y=e.clientY,x=x[t(1454)](n.getScreenCTM().inverse()),[x.x,x.y]}if(n[t(1821)]){var r=n.getBoundingClientRect();return[e[t(1072)]-r.left-n[t(1262)],e[t(1301)]-r[t(1117)]-n[t(2114)]]}}return[e[t(894)],e[t(1178)]]}const Su={passive:!1},Fn={capture:!0,passive:!1};function so(e){e.stopImmediatePropagation()}function Dn(e){const n=s;e[n(810)](),e[n(774)]()}function Li(e){const n=s;var t=e[n(821)].documentElement,o=u0(e).on(n(1734),Dn,Fn);n(1637)in t?o.on(n(1875),Dn,Fn):(t.__noselect=t[n(1476)][n(855)],t.style[n(855)]="none")}function Ni(e,n){const t=s;var o=e[t(821)][t(1082)],x=u0(e).on("dragstart.drag",null);n&&(x.on(t(351),Dn,Fn),setTimeout(function(){const r=t;x.on(r(351),null)},0)),t(1637)in o?x.on(t(1875),null):(o[t(1476)][t(855)]=o[t(1954)],delete o[t(1954)])}const Wt=e=>()=>e;function lo(e,{sourceEvent:n,subject:t,target:o,identifier:x,active:r,x:i,y:c,dx:d,dy:a,dispatch:u}){Object[s(2046)](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:a,enumerable:!0,configurable:!0},_:{value:u}})}lo[s(2107)].on=function(){const e=s;var n=this._.on[e(2185)](this._,arguments);return n===this._?this:n};function ku(e){const n=s;return!e.ctrlKey&&!e[n(752)]}function Iu(){return this[s(1744)]}function Pu(e,n){return n??{x:e.x,y:e.y}}function Au(){const e=s;return navigator[e(1194)]||e(1243)in this}function Si(){const e=s;var n=ku,t=Iu,o=Pu,x=Au,r={},i=Ht(e(1310),e(1980),e(1942)),c=0,d,a,u,f,b=0;function g(z){const P=e;z.on(P(2139),w)[P(815)](x).on("touchstart.drag",M).on("touchmove.drag",m,Su).on(P(1577),y)[P(1476)]("touch-action","none")[P(1476)](P(1552),P(577))}function w(z,P){const G=e;if(!(f||!n[G(414)](this,z,P))){var O=p(this,t[G(414)](this,z,P),z,P,G(1727));O&&(u0(z[G(1863)]).on("mousemove.drag",h,Fn).on(G(1114),v,Fn),Li(z[G(1863)]),so(z),u=!1,d=z[G(1072)],a=z[G(1301)],O(G(1310),z))}}function h(z){const P=e;if(Dn(z),!u){var G=z[P(1072)]-d,O=z[P(1301)]-a;u=G*G+O*O>b}r[P(1727)]("drag",z)}function v(z){const P=e;u0(z.view).on(P(656),null),Ni(z[P(1863)],u),Dn(z),r[P(1727)](P(1942),z)}function M(z,P){const G=e;if(n[G(414)](this,z,P)){var O=z.changedTouches,V=t.call(this,z,P),j=O.length,q,H;for(q=0;q<j;++q)(H=p(this,V,z,P,O[q][G(1144)],O[q]))&&(so(z),H(G(1310),z,O[q]))}}function m(z){const P=e;var G=z[P(1134)],O=G[P(2179)],V,j;for(V=0;V<O;++V)(j=r[G[V].identifier])&&(Dn(z),j(P(1980),z,G[V]))}function y(z){const P=e;var G=z[P(1134)],O=G[P(2179)],V,j;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),V=0;V<O;++V)(j=r[G[V][P(1144)]])&&(so(z),j(P(1942),z,G[V]))}function p(z,P,G,O,V,j){const q=e;var H=i[q(1826)](),W=v0(j||G,P),T,N,L;if((L=o[q(414)](z,new lo(q(1199),{sourceEvent:G,target:g,identifier:V,active:c,x:W[0],y:W[1],dx:0,dy:0,dispatch:H}),O))!=null)return T=L.x-W[0]||0,N=L.y-W[1]||0,function D(Y,U,I){const J=q;var $=W,F;switch(Y){case J(1310):r[V]=D,F=c++;break;case J(1942):delete r[V],--c;case J(1980):W=v0(I||U,P),F=c;break}H[J(414)](Y,z,new lo(Y,{sourceEvent:U,subject:L,target:g,identifier:V,active:F,x:W[0]+T,y:W[1]+N,dx:W[0]-$[0],dy:W[1]-$[1],dispatch:H}),O)}}return g[e(815)]=function(z){const P=e;return arguments[P(2179)]?(n=typeof z===P(1347)?z:Wt(!!z),g):n},g[e(390)]=function(z){const P=e;return arguments[P(2179)]?(t=typeof z===P(1347)?z:Wt(z),g):t},g.subject=function(z){const P=e;return arguments[P(2179)]?(o=typeof z===P(1347)?z:Wt(z),g):o},g[e(2136)]=function(z){return arguments.length?(x=typeof z=="function"?z:Wt(!!z),g):x},g.on=function(){var z=i.on.apply(i,arguments);return z===i?g:z},g[e(1614)]=function(z){const P=e;return arguments.length?(b=(z=+z)*z,g):Math[P(857)](b)},g}function uo(e,n,t){const o=s;e.prototype=n[o(2107)]=t,t[o(575)]=e}function ki(e,n){const t=s;var o=Object[t(1572)](e[t(2107)]);for(var x in n)o[x]=n[x];return o}function $n(){}var et=.7,Xt=1/et,Ln=s(1107),nt=s(881),k0=s(2105),ju=/^#([0-9a-f]{3,8})$/,Yu=new RegExp("^rgb\\("+Ln+","+Ln+","+Ln+s(1573)),Eu=new RegExp(s(1603)+k0+","+k0+","+k0+s(1573)),Uu=new RegExp(s(644)+Ln+","+Ln+","+Ln+","+nt+s(1573)),Gu=new RegExp(s(644)+k0+","+k0+","+k0+","+nt+s(1573)),Ou=new RegExp("^hsl\\("+nt+","+k0+","+k0+s(1573)),Hu=new RegExp(s(962)+nt+","+k0+","+k0+","+nt+s(1573)),Ii={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};uo($n,rn,{copy(e){const n=s;return Object[n(1060)](new this[n(575)],this,e)},displayable(){const e=s;return this.rgb()[e(438)]()},hex:Pi,formatHex:Pi,formatHex8:Tu,formatHsl:Vu,formatRgb:Ai,toString:Ai});function Pi(){const e=s;return this[e(1870)]()[e(2115)]()}function Tu(){const e=s;return this[e(1870)]()[e(1130)]()}function Vu(){return Gi(this).formatHsl()}function Ai(){return this[s(1870)]().formatRgb()}function rn(e){const n=s;var t,o;return e=(e+"")[n(349)]()[n(1239)](),(t=ju[n(2033)](e))?(o=t[1][n(2179)],t=parseInt(t[1],16),o===6?ji(t):o===3?new c0(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):o===8?Kt(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):o===4?Kt(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=Yu.exec(e))?new c0(t[1],t[2],t[3],1):(t=Eu.exec(e))?new c0(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Uu.exec(e))?Kt(t[1],t[2],t[3],t[4]):(t=Gu[n(2033)](e))?Kt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ou[n(2033)](e))?Ui(t[1],t[2]/100,t[3]/100,1):(t=Hu.exec(e))?Ui(t[1],t[2]/100,t[3]/100,t[4]):Ii[n(911)](e)?ji(Ii[e]):e==="transparent"?new c0(NaN,NaN,NaN,0):null}function ji(e){return new c0(e>>16&255,e>>8&255,e&255,1)}function Kt(e,n,t,o){return o<=0&&(e=n=t=NaN),new c0(e,n,t,o)}function qu(e){const n=s;return e instanceof $n||(e=rn(e)),e?(e=e[n(1870)](),new c0(e.r,e.g,e.b,e[n(1028)])):new c0}function fo(e,n,t,o){return arguments[s(2179)]===1?qu(e):new c0(e,n,t,o??1)}function c0(e,n,t,o){const x=s;this.r=+e,this.g=+n,this.b=+t,this[x(1028)]=+o}uo(c0,fo,ki($n,{brighter(e){const n=s;return e=e==null?Xt:Math[n(919)](Xt,e),new c0(this.r*e,this.g*e,this.b*e,this[n(1028)])},darker(e){const n=s;return e=e==null?et:Math[n(919)](et,e),new c0(this.r*e,this.g*e,this.b*e,this[n(1028)])},rgb(){return this},clamp(){return new c0(cn(this.r),cn(this.g),cn(this.b),Zt(this.opacity))},displayable(){const e=s;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(1028)]&&this.opacity<=1},hex:Yi,formatHex:Yi,formatHex8:Wu,formatRgb:Ei,toString:Ei}));function Yi(){return"#"+an(this.r)+an(this.g)+an(this.b)}function Wu(){const e=s;return"#"+an(this.r)+an(this.g)+an(this.b)+an((isNaN(this[e(1028)])?1:this[e(1028)])*255)}function Ei(){const e=s,n=Zt(this.opacity);return""+(n===1?"rgb(":e(755))+cn(this.r)+", "+cn(this.g)+", "+cn(this.b)+(n===1?")":", "+n+")")}function Zt(e){const n=s;return isNaN(e)?1:Math[n(2172)](0,Math[n(775)](1,e))}function cn(e){return Math.max(0,Math.min(255,Math[s(381)](e)||0))}function an(e){const n=s;return e=cn(e),(e<16?"0":"")+e[n(1957)](16)}function Ui(e,n,t,o){return o<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new p0(e,n,t,o)}function Gi(e){const n=s;if(e instanceof p0)return new p0(e.h,e.s,e.l,e.opacity);if(e instanceof $n||(e=rn(e)),!e)return new p0;if(e instanceof p0)return e;e=e.rgb();var t=e.r/255,o=e.g/255,x=e.b/255,r=Math[n(775)](t,o,x),i=Math[n(2172)](t,o,x),c=NaN,d=i-r,a=(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/=a<.5?i+r:2-i-r,c*=60):d=a>0&&a<1?0:c,new p0(c,d,a,e[n(1028)])}function Xu(e,n,t,o){return arguments[s(2179)]===1?Gi(e):new p0(e,n,t,o??1)}function p0(e,n,t,o){const x=s;this.h=+e,this.s=+n,this.l=+t,this[x(1028)]=+o}uo(p0,Xu,ki($n,{brighter(e){const n=s;return e=e==null?Xt:Math[n(919)](Xt,e),new p0(this.h,this.s,this.l*e,this[n(1028)])},darker(e){const n=s;return e=e==null?et:Math[n(919)](et,e),new p0(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,o=t+(t<.5?t:1-t)*n,x=2*t-o;return new c0(ho(e>=240?e-240:e+120,x,o),ho(e,x,o),ho(e<120?e+240:e-120,x,o),this.opacity)},clamp(){const e=s;return new p0(Oi(this.h),Rt(this.s),Rt(this.l),Zt(this[e(1028)]))},displayable(){const e=s;return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this[e(1028)]<=1},formatHsl(){const e=s,n=Zt(this[e(1028)]);return""+(n===1?"hsl(":e(1223))+Oi(this.h)+", "+Rt(this.s)*100+e(1163)+Rt(this.l)*100+"%"+(n===1?")":", "+n+")")}}));function Oi(e){return e=(e||0)%360,e<0?e+360:e}function Rt(e){return Math.max(0,Math[s(775)](1,e||0))}function ho(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 go=e=>()=>e;function Ku(e,n){return function(t){return e+t*n}}function Zu(e,n,t){const o=s;return e=Math[o(919)](e,t),n=Math.pow(n,t)-e,t=1/t,function(x){return Math[o(919)](e+x*n,t)}}function Ru(e){return(e=+e)==1?Hi:function(n,t){return t-n?Zu(n,t,e):go(isNaN(n)?t:n)}}function Hi(e,n){var t=n-e;return t?Ku(e,t):go(isNaN(e)?n:e)}const Jt=(function e(n){const t=s;var o=Ru(n);function x(r,i){const c=_0x5590;var d=o((r=fo(r)).r,(i=fo(i)).r),a=o(r.g,i.g),u=o(r.b,i.b),f=Hi(r[c(1028)],i[c(1028)]);return function(b){const g=c;return r.r=d(b),r.g=a(b),r.b=u(b),r[g(1028)]=f(b),r+""}}return x[t(1608)]=e,x})(1);function Ju(e,n){const t=s;n||(n=[]);var o=e?Math.min(n[t(2179)],e[t(2179)]):0,x=n.slice(),r;return function(i){for(r=0;r<o;++r)x[r]=e[r]*(1-i)+n[r]*i;return x}}function _u(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qu(e,n){const t=s;var o=n?n.length:0,x=e?Math[t(775)](o,e[t(2179)]):0,r=new Array(x),i=new Array(o),c;for(c=0;c<x;++c)r[c]=tt(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 Fu(e,n){var t=new Date;return e=+e,n=+n,function(o){return t[_0x5590(697)](e*(1-o)+n*o),t}}function I0(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function $u(e,n){const t=s;var o={},x={},r;(e===null||typeof e!==t(878))&&(e={}),(n===null||typeof n!==t(878))&&(n={});for(r in n)r in e?o[r]=tt(e[r],n[r]):x[r]=n[r];return function(i){for(r in o)x[r]=o[r](i);return x}}var bo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yo=new RegExp(bo.source,"g");function ef(e){return function(){return e}}function nf(e){return function(n){return e(n)+""}}function Ti(e,n){const t=s;var o=bo[t(1110)]=yo[t(1110)]=0,x,r,i,c=-1,d=[],a=[];for(e=e+"",n=n+"";(x=bo[t(2033)](e))&&(r=yo[t(2033)](n));)(i=r.index)>o&&(i=n[t(852)](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,a[t(1759)]({i:c,x:I0(x,r)})),o=yo.lastIndex;return o<n[t(2179)]&&(i=n[t(852)](o),d[c]?d[c]+=i:d[++c]=i),d[t(2179)]<2?a[0]?nf(a[0].x):ef(n):(n=a.length,function(u){const f=t;for(var b=0,g;b<n;++b)d[(g=a[b]).i]=g.x(u);return d[f(1881)]("")})}function tt(e,n){const t=s;var o=typeof n,x;return n==null||o===t(743)?go(n):(o===t(2059)?I0:o==="string"?(x=rn(n))?(n=x,Jt):Ti:n instanceof rn?Jt:n instanceof Date?Fu:_u(n)?Ju:Array.isArray(n)?Qu:typeof n[t(603)]!==t(1347)&&typeof n[t(1957)]!==t(1347)||isNaN(n)?$u:I0)(e,n)}var Vi=180/Math.PI,mo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qi(e,n,t,o,x,r){const i=s;var c,d,a;return(c=Math[i(857)](e*e+n*n))&&(e/=c,n/=c),(a=e*t+n*o)&&(t-=e*a,o-=n*a),(d=Math[i(857)](t*t+o*o))&&(t/=d,o/=d,a/=d),e*o<n*t&&(e=-e,n=-n,a=-a,c=-c),{translateX:x,translateY:r,rotate:Math.atan2(n,e)*Vi,skewX:Math.atan(a)*Vi,scaleX:c,scaleY:d}}var _t;function tf(e){const n=s,t=new(typeof DOMMatrix===n(1347)?DOMMatrix:WebKitCSSMatrix)(e+"");return t[n(540)]?mo:qi(t.a,t.b,t.c,t.d,t.e,t.f)}function xf(e){const n=s;return e==null||(_t||(_t=document[n(1633)](n(413),"g")),_t[n(1051)](n(1121),e),!(e=_t[n(1121)][n(777)][n(843)]()))?mo:(e=e[n(1943)],qi(e.a,e.b,e.c,e.d,e.e,e.f))}function Wi(e,n,t,o){function x(a){const u=_0x5590;return a[u(2179)]?a[u(1706)]()+" ":""}function r(a,u,f,b,g,w){const h=_0x5590;if(a!==f||u!==b){var v=g[h(1759)](h(1848),null,n,null,t);w[h(1759)]({i:v-4,x:I0(a,f)},{i:v-2,x:I0(u,b)})}else(f||b)&&g.push(h(1848)+f+n+b+t)}function i(a,u,f,b){const g=_0x5590;a!==u?(a-u>180?u+=360:u-a>180&&(a+=360),b[g(1759)]({i:f.push(x(f)+g(1448),null,o)-2,x:I0(a,u)})):u&&f[g(1759)](x(f)+g(1448)+u+o)}function c(a,u,f,b){const g=_0x5590;a!==u?b[g(1759)]({i:f[g(1759)](x(f)+g(792),null,o)-2,x:I0(a,u)}):u&&f[g(1759)](x(f)+g(792)+u+o)}function d(a,u,f,b,g,w){const h=_0x5590;if(a!==f||u!==b){var v=g.push(x(g)+h(1597),null,",",null,")");w.push({i:v-4,x:I0(a,f)},{i:v-2,x:I0(u,b)})}else(f!==1||b!==1)&&g[h(1759)](x(g)+h(1597)+f+","+b+")")}return function(a,u){const f=_0x5590;var b=[],g=[];return a=e(a),u=e(u),r(a[f(391)],a[f(1444)],u[f(391)],u[f(1444)],b,g),i(a[f(1442)],u[f(1442)],b,g),c(a[f(1180)],u[f(1180)],b,g),d(a[f(1859)],a[f(524)],u[f(1859)],u[f(524)],b,g),a=u=null,function(w){const h=f;for(var v=-1,M=g.length,m;++v<M;)b[(m=g[v]).i]=m.x(w);return b[h(1881)]("")}}}var of=Wi(tf,"px, ","px)","deg)"),rf=Wi(xf,", ",")",")"),cf=1e-12;function Xi(e){return((e=Math[s(1068)](e))+1/e)/2}function af(e){return((e=Math.exp(e))-1/e)/2}function sf(e){return((e=Math.exp(2*e))-1)/(e+1)}const Qt=(function e(n,t,o){const x=s;function r(i,c){const d=_0x5590;var a=i[0],u=i[1],f=i[2],b=c[0],g=c[1],w=c[2],h=b-a,v=g-u,M=h*h+v*v,m,y;if(M<cf)y=Math[d(1672)](w/f)/n,m=function(V){const j=d;return[a+V*h,u+V*v,f*Math[j(1068)](n*V*y)]};else{var p=Math[d(857)](M),z=(w*w-f*f+o*M)/(2*f*t*p),P=(w*w-f*f-o*M)/(2*w*t*p),G=Math[d(1672)](Math[d(857)](z*z+1)-z),O=Math[d(1672)](Math[d(857)](P*P+1)-P);y=(O-G)/n,m=function(V){var j=V*y,q=Xi(G),H=f/(t*p)*(q*sf(n*j+G)-af(G));return[a+H*h,u+H*v,f*q/Xi(n*j+G)]}}return m.duration=y*1e3*n/Math.SQRT2,m}return r[x(1364)]=function(i){var d=Math[x(2172)](.001,+i),a=d*d,u=a*a;return e(d,a,u)},r})(Math[s(2150)],2,4);var Nn=0,xt=0,ot=0,Ki=1e3,Ft,rt,$t=0,sn=0,ex=0,it=typeof performance===s(878)&&performance.now?performance:Date,Zi=typeof window===s(878)&&window[s(2074)]?window[s(2074)][s(2119)](window):function(e){setTimeout(e,17)};function wo(){const e=s;return sn||(Zi(lf),sn=it[e(1700)]()+ex)}function lf(){sn=0}function nx(){const e=s;this[e(1751)]=this[e(986)]=this[e(1785)]=null}nx[s(2107)]=Ri[s(2107)]={constructor:nx,restart:function(e,n,t){const o=s;if(typeof e!==o(1347))throw new TypeError("callback is not a function");t=(t==null?wo():+t)+(n==null?0:+n),!this[o(1785)]&&rt!==this&&(rt?rt[o(1785)]=this:Ft=this,rt=this),this[o(1751)]=e,this[o(986)]=t,vo()},stop:function(){const e=s;this[e(1751)]&&(this[e(1751)]=null,this._time=1/0,vo())}};function Ri(e,n,t){const o=s;var x=new nx;return x[o(1215)](e,n,t),x}function df(){const e=s;wo(),++Nn;for(var n=Ft,t;n;)(t=sn-n._time)>=0&&n._call[e(414)](void 0,t),n=n[e(1785)];--Nn}function Ji(){sn=($t=it[s(1700)]())+ex,Nn=xt=0;try{df()}finally{Nn=0,ff(),sn=0}}function uf(){var n=it[s(1700)](),t=n-$t;t>Ki&&(ex-=t,$t=n)}function ff(){const e=s;for(var n,t=Ft,o,x=1/0;t;)t[e(1751)]?(x>t[e(986)]&&(x=t[e(986)]),n=t,t=t[e(1785)]):(o=t[e(1785)],t[e(1785)]=null,t=n?n._next=o:Ft=o);rt=n,vo(x)}function vo(e){const n=s;if(!Nn){xt&&(xt=clearTimeout(xt));var t=e-sn;t>24?(e<1/0&&(xt=setTimeout(Ji,e-it[n(1700)]()-ex)),ot&&(ot=clearInterval(ot))):(ot||($t=it[n(1700)](),ot=setInterval(uf,Ki)),Nn=1,Zi(Ji))}}function _i(e,n,t){const o=s;var x=new nx;return n=n==null?0:+n,x[o(1215)](r=>{x.stop(),e(r+n)},n,t),x}var hf=Ht("start",s(1942),s(1750),s(1835)),gf=[],Qi=0,Fi=1,po=2,tx=3,$i=4,zo=5,xx=6;function ox(e,n,t,o,x,r){const i=s;var c=e[i(370)];if(!c)e[i(370)]={};else if(t in c)return;bf(e,t,{name:n,index:o,group:x,on:hf,tween:gf,time:r[i(412)],delay:r[i(541)],duration:r[i(850)],ease:r.ease,timer:null,state:Qi})}function Co(e,n){const t=s;var o=z0(e,n);if(o[t(437)]>Qi)throw new Error(t(949));return o}function P0(e,n){const t=s;var o=z0(e,n);if(o.state>tx)throw new Error(t(618));return o}function z0(e,n){const t=s;var o=e[t(370)];if(!o||!(o=o[n]))throw new Error(t(1278));return o}function bf(e,n,t){const o=s;var x=e[o(370)],r;x[n]=t,t[o(1612)]=Ri(i,0,t[o(412)]);function i(u){const f=o;t[f(437)]=Fi,t[f(1612)][f(1215)](c,t.delay,t[f(412)]),t[f(541)]<=u&&c(u-t.delay)}function c(u){const f=o;var b,g,w,h;if(t[f(437)]!==Fi)return a();for(b in x)if(h=x[b],h[f(863)]===t[f(863)]){if(h.state===tx)return _i(c);h[f(437)]===$i?(h[f(437)]=xx,h.timer.stop(),h.on[f(414)](f(1835),e,e.__data__,h[f(461)],h[f(744)]),delete x[b]):+b<n&&(h[f(437)]=xx,h[f(1612)][f(1722)](),h.on[f(414)](f(1750),e,e[f(1813)],h.index,h[f(744)]),delete x[b])}if(_i(function(){const v=f;t[v(437)]===tx&&(t[v(437)]=$i,t.timer[v(1215)](d,t.delay,t[v(412)]),d(u))}),t[f(437)]=po,t.on[f(414)](f(1310),e,e[f(1813)],t[f(461)],t[f(744)]),t[f(437)]===po){for(t[f(437)]=tx,r=new Array(w=t[f(1595)].length),b=0,g=-1;b<w;++b)(h=t[f(1595)][b][f(1044)][f(414)](e,e.__data__,t[f(461)],t[f(744)]))&&(r[++g]=h);r[f(2179)]=g+1}}function d(u){const f=o;for(var b=u<t[f(850)]?t[f(1834)].call(null,u/t.duration):(t.timer[f(1215)](a),t[f(437)]=zo,1),g=-1,w=r.length;++g<w;)r[g][f(414)](e,b);t.state===zo&&(t.on[f(414)]("end",e,e[f(1813)],t[f(461)],t.group),a())}function a(){const u=o;t[u(437)]=xx,t[u(1612)].stop(),delete x[n];for(var f in x)return;delete e[u(370)]}}function rx(e,n){const t=s;var o=e[t(370)],x,r,i=!0,c;if(o){n=n==null?null:n+"";for(c in o){if((x=o[c])[t(863)]!==n){i=!1;continue}r=x[t(437)]>po&&x[t(437)]<zo,x[t(437)]=xx,x.timer[t(1722)](),x.on[t(414)](t(r?1835:1750),e,e.__data__,x[t(461)],x[t(744)]),delete o[c]}i&&delete e[t(370)]}}function yf(e){return this[s(1270)](function(){rx(this,e)})}function mf(e,n){var t,o;return function(){const x=_0x5590;var r=P0(this,e),i=r.tween;if(i!==t){o=t=i;for(var c=0,d=o[x(2179)];c<d;++c)if(o[c].name===n){o=o[x(852)](),o[x(558)](c,1);break}}r[x(1595)]=o}}function wf(e,n,t){var o,x;if(typeof t!="function")throw new Error;return function(){const r=_0x5590;var i=P0(this,e),c=i[r(1595)];if(c!==o){x=(o=c)[r(852)]();for(var d={name:n,value:t},a=0,u=x[r(2179)];a<u;++a)if(x[a].name===n){x[a]=d;break}a===u&&x[r(1759)](d)}i[r(1595)]=x}}function vf(e,n){const t=s;var o=this[t(1251)];if(e+="",arguments[t(2179)]<2){for(var x=z0(this[t(1504)](),o)[t(1595)],r=0,i=x.length,c;r<i;++r)if((c=x[r])[t(863)]===e)return c[t(1044)];return null}return this[t(1270)]((n==null?mf:wf)(o,e,n))}function Mo(e,n,t){const o=s;var x=e._id;return e[o(1270)](function(){const r=o;var i=P0(this,x);(i[r(1044)]||(i[r(1044)]={}))[n]=t[r(2185)](this,arguments)}),function(r){const i=o;return z0(r,x)[i(1044)][n]}}function ec(e,n){const t=s;var o;return(typeof n===t(2059)?I0:n instanceof rn?Jt:(o=rn(n))?(n=o,Jt):Ti)(e,n)}function pf(e){return function(){this[_0x5590(2084)](e)}}function zf(e){return function(){const n=_0x5590;this[n(534)](e[n(1680)],e[n(652)])}}function Cf(e,n,t){var o,x=t+"",r;return function(){var c=this[_0x5590(659)](e);return c===x?null:c===o?r:r=n(o=c,t)}}function Mf(e,n,t){var o,x=t+"",r;return function(){const i=_0x5590;var c=this.getAttributeNS(e[i(1680)],e[i(652)]);return c===x?null:c===o?r:r=n(o=c,t)}}function Bf(e,n,t){var o,x,r;return function(){const i=_0x5590;var c,d=t(this),a;return d==null?void this[i(2084)](e):(c=this[i(659)](e),a=d+"",c===a?null:c===o&&a===x?r:(x=a,r=n(o=c,d)))}}function Df(e,n,t){var o,x,r;return function(){const i=_0x5590;var c,d=t(this),a;return d==null?void this[i(534)](e[i(1680)],e[i(652)]):(c=this[i(2155)](e[i(1680)],e.local),a=d+"",c===a?null:c===o&&a===x?r:(x=a,r=n(o=c,d)))}}function Lf(e,n){const t=s;var o=Vt(e),x=o===t(1121)?rf:ec;return this.attrTween(e,typeof n=="function"?(o.local?Df:Bf)(o,x,Mo(this,"attr."+e,n)):n==null?(o.local?zf:pf)(o):(o[t(652)]?Mf:Cf)(o,x,n))}function Nf(e,n){return function(t){const o=_0x5590;this[o(1051)](e,n[o(414)](this,t))}}function Sf(e,n){return function(t){const o=_0x5590;this[o(1958)](e.space,e[o(652)],n[o(414)](this,t))}}function kf(e,n){var t,o;function x(){var i=n[_0x5590(2185)](this,arguments);return i!==o&&(t=(o=i)&&Sf(e,i)),t}return x._value=n,x}function If(e,n){const t=s;var o,x;function r(){var c=n[_0x5590(2185)](this,arguments);return c!==x&&(o=(x=c)&&Nf(e,c)),o}return r[t(1266)]=n,r}function Pf(e,n){const t=s;var o=t(2018)+e;if(arguments[t(2179)]<2)return(o=this.tween(o))&&o[t(1266)];if(n==null)return this.tween(o,null);if(typeof n!==t(1347))throw new Error;var x=Vt(e);return this[t(1595)](o,(x[t(652)]?kf:If)(x,n))}function Af(e,n){return function(){const t=_0x5590;Co(this,e).delay=+n[t(2185)](this,arguments)}}function jf(e,n){return n=+n,function(){const t=_0x5590;Co(this,e)[t(541)]=n}}function Yf(e){const n=s;var t=this[n(1251)];return arguments[n(2179)]?this.each((typeof e===n(1347)?Af:jf)(t,e)):z0(this.node(),t).delay}function Ef(e,n){return function(){const t=_0x5590;P0(this,e).duration=+n[t(2185)](this,arguments)}}function Uf(e,n){return n=+n,function(){const t=_0x5590;P0(this,e)[t(850)]=n}}function Gf(e){const n=s;var t=this[n(1251)];return arguments.length?this[n(1270)]((typeof e===n(1347)?Ef:Uf)(t,e)):z0(this[n(1504)](),t).duration}function Of(e,n){const t=s;if(typeof n!==t(1347))throw new Error;return function(){const o=t;P0(this,e)[o(1834)]=n}}function Hf(e){const n=s;var t=this[n(1251)];return arguments[n(2179)]?this[n(1270)](Of(t,e)):z0(this[n(1504)](),t).ease}function Tf(e,n){return function(){const t=_0x5590;var o=n[t(2185)](this,arguments);if(typeof o!==t(1347))throw new Error;P0(this,e)[t(1834)]=o}}function Vf(e){const n=s;if(typeof e!==n(1347))throw new Error;return this[n(1270)](Tf(this[n(1251)],e))}function qf(e){const n=s;typeof e!==n(1347)&&(e=yi(e));for(var t=this[n(2164)],o=t[n(2179)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i[n(2179)],d=x[r]=[],a,u=0;u<c;++u)(a=i[u])&&e[n(414)](a,a.__data__,u,i)&&d[n(1759)](a);return new G0(x,this[n(1021)],this[n(1281)],this[n(1251)])}function Wf(e){const n=s;if(e[n(1251)]!==this._id)throw new Error;for(var t=this[n(2164)],o=e[n(2164)],x=t[n(2179)],r=o[n(2179)],i=Math.min(x,r),c=new Array(x),d=0;d<i;++d)for(var a=t[d],u=o[d],f=a[n(2179)],b=c[d]=new Array(f),g,w=0;w<f;++w)(g=a[w]||u[w])&&(b[w]=g);for(;d<x;++d)c[d]=t[d];return new G0(c,this[n(1021)],this[n(1281)],this[n(1251)])}function Xf(e){const n=s;return(e+"")[n(349)]()[n(897)](/^|\s+/)[n(1865)](function(t){const o=n;var x=t[o(1878)](".");return x>=0&&(t=t[o(852)](0,x)),!t||t==="start"})}function Kf(e,n,t){var o,x,r=Xf(n)?Co:P0;return function(){const i=_0x5590;var c=r(this,e),d=c.on;d!==o&&(x=(o=d)[i(1826)]()).on(n,t),c.on=x}}function Zf(e,n){const t=s;var o=this[t(1251)];return arguments[t(2179)]<2?z0(this.node(),o).on.on(e):this[t(1270)](Kf(o,e,n))}function Rf(e){return function(){const n=_0x5590;var t=this[n(1744)];for(var o in this[n(370)])if(+o!==e)return;t&&t.removeChild(this)}}function Jf(){const e=s;return this.on(e(763),Rf(this[e(1251)]))}function _f(e){const n=s;var t=this[n(1281)],o=this._id;typeof e!==n(1347)&&(e=co(e));for(var x=this._groups,r=x[n(2179)],i=new Array(r),c=0;c<r;++c)for(var d=x[c],a=d.length,u=i[c]=new Array(a),f,b,g=0;g<a;++g)(f=d[g])&&(b=e.call(f,f.__data__,g,d))&&(n(1813)in f&&(b[n(1813)]=f[n(1813)]),u[g]=b,ox(u[g],t,o,g,u,z0(f,o)));return new G0(i,this[n(1021)],t,o)}function Qf(e){const n=s;var t=this[n(1281)],o=this[n(1251)];typeof e!="function"&&(e=bi(e));for(var x=this._groups,r=x[n(2179)],i=[],c=[],d=0;d<r;++d)for(var a=x[d],u=a.length,f,b=0;b<u;++b)if(f=a[b]){for(var g=e.call(f,f[n(1813)],b,a),w,h=z0(f,o),v=0,M=g[n(2179)];v<M;++v)(w=g[v])&&ox(w,t,o,v,g,h);i.push(g),c.push(f)}return new G0(i,c,t,o)}var Ff=Qn.prototype.constructor;function $f(){const e=s;return new Ff(this[e(2164)],this[e(1021)])}function e2(e,n){var t,o,x;return function(){const r=_0x5590;var i=Bn(this,e),c=(this.style[r(661)](e),Bn(this,e));return i===c?null:i===t&&c===o?x:x=n(t=i,o=c)}}function nc(e){return function(){this.style.removeProperty(e)}}function n2(e,n,t){var o,x=t+"",r;return function(){var i=Bn(this,e);return i===x?null:i===o?r:r=n(o=i,t)}}function t2(e,n,t){var o,x,r;return function(){var i=Bn(this,e),c=t(this),d=c+"";return c==null&&(d=c=(this.style.removeProperty(e),Bn(this,e))),i===d?null:i===o&&d===x?r:(x=d,r=n(o=i,c))}}function x2(e,n){const t=s;var o,x,r,i="style."+n,c=t(927)+i,d;return function(){const a=t;var u=P0(this,e),f=u.on,b=u[a(1044)][i]==null?d||(d=nc(n)):void 0;(f!==o||r!==b)&&(x=(o=f).copy()).on(c,r=b),u.on=x}}function o2(e,n,t){const o=s;var x=(e+="")===o(1121)?of:ec;return n==null?this[o(1428)](e,e2(e,x)).on(o(1742)+e,nc(e)):typeof n===o(1347)?this[o(1428)](e,t2(e,x,Mo(this,o(1456)+e,n)))[o(1270)](x2(this[o(1251)],e)):this[o(1428)](e,n2(e,x,n),t).on(o(1742)+e,null)}function r2(e,n,t){return function(o){const x=_0x5590;this[x(1476)][x(713)](e,n[x(414)](this,o),t)}}function i2(e,n,t){const o=s;var x,r;function i(){var d=n[_0x5590(2185)](this,arguments);return d!==r&&(x=(r=d)&&r2(e,d,t)),x}return i[o(1266)]=n,i}function c2(e,n,t){const o=s;var x=o(1456)+(e+="");if(arguments[o(2179)]<2)return(x=this[o(1595)](x))&&x[o(1266)];if(n==null)return this[o(1595)](x,null);if(typeof n!==o(1347))throw new Error;return this[o(1595)](x,i2(e,n,t??""))}function a2(e){return function(){const n=_0x5590;this[n(1367)]=e}}function s2(e){return function(){var n=e(this);this.textContent=n??""}}function l2(e){const n=s;return this[n(1595)](n(1918),typeof e=="function"?s2(Mo(this,n(1918),e)):a2(e==null?"":e+""))}function d2(e){return function(n){const t=_0x5590;this[t(1367)]=e.call(this,n)}}function u2(e){var n,t;function o(){var x=e.apply(this,arguments);return x!==t&&(n=(t=x)&&d2(x)),n}return o._value=e,o}function f2(e){const n=s;var t="text";if(arguments[n(2179)]<1)return(t=this[n(1595)](t))&&t[n(1266)];if(e==null)return this[n(1595)](t,null);if(typeof e!==n(1347))throw new Error;return this[n(1595)](t,u2(e))}function h2(){const e=s;for(var n=this[e(1281)],t=this[e(1251)],o=tc(),x=this[e(2164)],r=x[e(2179)],i=0;i<r;++i)for(var c=x[i],d=c.length,a,u=0;u<d;++u)if(a=c[u]){var f=z0(a,t);ox(a,n,o,u,c,{time:f[e(412)]+f[e(541)]+f[e(850)],delay:0,duration:f.duration,ease:f.ease})}return new G0(x,this[e(1021)],n,o)}function g2(){const e=s;var n,t,o=this,x=o[e(1251)],r=o[e(1046)]();return new Promise(function(i,c){const d=e;var a={value:c},u={value:function(){--r===0&&i()}};o[d(1270)](function(){const f=d;var b=P0(this,x),g=b.on;g!==n&&(t=(n=g)[f(1826)](),t._[f(1750)][f(1759)](a),t._[f(1835)][f(1759)](a),t._[f(1942)][f(1759)](u)),b.on=t}),r===0&&i()})}var b2=0;function G0(e,n,t,o){const x=s;this[x(2164)]=e,this[x(1021)]=n,this._name=t,this._id=o}function tc(){return++b2}var O0=Qn[s(2107)];G0[s(2107)]={constructor:G0,select:_f,selectAll:Qf,selectChild:O0[s(1089)],selectChildren:O0[s(1652)],filter:qf,merge:Wf,selection:$f,transition:h2,call:O0[s(414)],nodes:O0[s(960)],node:O0[s(1504)],size:O0[s(1046)],empty:O0[s(2001)],each:O0[s(1270)],on:Zf,attr:Lf,attrTween:Pf,style:o2,styleTween:c2,text:l2,textTween:f2,remove:Jf,tween:vf,delay:Yf,duration:Gf,ease:Hf,easeVarying:Vf,end:g2,[Symbol[s(1002)]]:O0[Symbol[s(1002)]]};function y2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var m2={time:null,delay:0,duration:250,ease:y2};function w2(e,n){const t=s;for(var o;!(o=e[t(370)])||!(o=o[n]);)if(!(e=e.parentNode))throw new Error("transition "+n+" not found");return o}function v2(e){const n=s;var t,o;e instanceof G0?(t=e[n(1251)],e=e[n(1281)]):(t=tc(),(o=m2)[n(412)]=wo(),e=e==null?null:e+"");for(var x=this._groups,r=x[n(2179)],i=0;i<r;++i)for(var c=x[i],d=c.length,a,u=0;u<d;++u)(a=c[u])&&ox(a,e,t,u,c,o||w2(a,t));return new G0(x,this[n(1021)],e,t)}Qn[s(2107)][s(1835)]=yf,Qn[s(2107)][s(1237)]=v2;const ix=e=>()=>e;function p2(e,{sourceEvent:n,target:t,transform:o,dispatch:x}){Object.defineProperties(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 H0(e,n,t){this.k=e,this.x=n,this.y=t}H0.prototype={constructor:H0,scale:function(e){return e===1?this:new H0(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new H0(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=s;return e[n(1826)]()[n(1006)](e.range().map(this.invertX,this)[n(474)](e[n(1565)],e))},rescaleY:function(e){const n=s;return e[n(1826)]()[n(1006)](e.range()[n(474)](this.invertY,this)[n(474)](e[n(1565)],e))},toString:function(){return s(1848)+this.x+","+this.y+") scale("+this.k+")"}};var cx=new H0(1,0,0);xc[s(2107)]=H0[s(2107)];function xc(e){const n=s;for(;!e[n(501)];)if(!(e=e[n(1744)]))return cx;return e.__zoom}function Bo(e){e[s(774)]()}function ct(e){e[s(810)](),e.stopImmediatePropagation()}function z2(e){const n=s;return(!e.ctrlKey||e[n(1912)]===n(1849))&&!e.button}function C2(){const e=s;var n=this;return n instanceof SVGElement?(n=n[e(1670)]||n,n[e(1170)](e(1269))?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n[e(1710)],n.y+n[e(1355)]]]):[[0,0],[n.width[e(777)][e(1044)],n[e(1355)][e(777)][e(1044)]]]):[[0,0],[n[e(1455)],n[e(626)]]]}function oc(){return this[s(501)]||cx}function M2(e){const n=s;return-e[n(1073)]*(e[n(924)]===1?.05:e[n(924)]?1:.002)*(e[n(1679)]?10:1)}function B2(){const e=s;return navigator[e(1194)]||e(1243)in this}function D2(e,n,t){const o=s;var x=e[o(946)](n[0][0])-t[0][0],r=e[o(946)](n[1][0])-t[1][0],i=e[o(583)](n[0][1])-t[0][1],c=e[o(583)](n[1][1])-t[1][1];return e[o(1184)](r>x?(x+r)/2:Math.min(0,x)||Math[o(2172)](0,r),c>i?(i+c)/2:Math[o(775)](0,i)||Math[o(2172)](0,c))}function rc(){const e=s;var n=z2,t=C2,o=D2,x=M2,r=B2,i=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,a=Qt,u=Ht("start","zoom",e(1942)),f,b,g,w=500,h=150,v=0,M=10;function m(N){const L=e;N[L(2090)](L(501),oc).on(L(2004),V,{passive:!1}).on(L(466),j).on(L(2109),q).filter(r).on(L(1995),H).on(L(1598),W).on(L(1515),T)[L(1476)](L(1552),"rgba(0,0,0,0)")}m[e(1121)]=function(N,L,D,Y){const U=e;var I=N[U(2103)]?N[U(2103)]():N;I[U(2090)](U(501),oc),N!==I?P(N,L,D,Y):I[U(1835)]()[U(1270)](function(){const J=U;G(this,arguments)[J(1845)](Y)[J(1310)]()[J(1675)](null,typeof L=="function"?L[J(2185)](this,arguments):L)[J(1942)]()})},m[e(1175)]=function(N,L,D,Y){const U=e;m[U(407)](N,function(){const I=U;var J=this[I(501)].k,$=typeof L===I(1347)?L[I(2185)](this,arguments):L;return J*$},D,Y)},m[e(407)]=function(N,L,D,Y){const U=e;m[U(1121)](N,function(){const I=U;var J=t.apply(this,arguments),$=this[I(501)],F=D==null?z(J):typeof D===I(1347)?D.apply(this,arguments):D,xe=$[I(1565)](F),re=typeof L===I(1347)?L[I(2185)](this,arguments):L;return o(p(y($,re),F,xe),J,c)},D,Y)},m[e(1451)]=function(N,L,D,Y){const U=e;m[U(1121)](N,function(){const I=U;return o(this.__zoom[I(1184)](typeof L===I(1347)?L[I(2185)](this,arguments):L,typeof D=="function"?D[I(2185)](this,arguments):D),t[I(2185)](this,arguments),c)},null,Y)},m.translateTo=function(N,L,D,Y,U){m.transform(N,function(){const I=_0x5590;var J=t[I(2185)](this,arguments),$=this[I(501)],F=Y==null?z(J):typeof Y===I(1347)?Y.apply(this,arguments):Y;return o(cx[I(1184)](F[0],F[1])[I(690)]($.k)[I(1184)](typeof L===I(1347)?-L[I(2185)](this,arguments):-L,typeof D===I(1347)?-D[I(2185)](this,arguments):-D),J,c)},Y,U)};function y(N,L){const D=e;return L=Math[D(2172)](i[0],Math[D(775)](i[1],L)),L===N.k?N:new H0(L,N.x,N.y)}function p(N,L,D){var Y=L[0]-D[0]*N.k,U=L[1]-D[1]*N.k;return Y===N.x&&U===N.y?N:new H0(N.k,Y,U)}function z(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function P(N,L,D,Y){const U=e;N.on("start.zoom",function(){const I=_0x5590;G(this,arguments)[I(1845)](Y)[I(1310)]()}).on("interrupt.zoom end.zoom",function(){const I=_0x5590;G(this,arguments)[I(1845)](Y)[I(1942)]()})[U(1595)]("zoom",function(){const I=U;var J=this,$=arguments,F=G(J,$)[I(1845)](Y),xe=t[I(2185)](J,$),re=D==null?z(xe):typeof D=="function"?D[I(2185)](J,$):D,ae=Math[I(2172)](xe[1][0]-xe[0][0],xe[1][1]-xe[0][1]),ue=J.__zoom,me=typeof L===I(1347)?L.apply(J,$):L,se=a(ue[I(1565)](re)[I(758)](ae/ue.k),me[I(1565)](re)[I(758)](ae/me.k));return function(ee){const le=I;if(ee===1)ee=me;else{var be=se(ee),E=ae/be[2];ee=new H0(E,re[0]-be[0]*E,re[1]-be[1]*E)}F[le(1675)](null,ee)}})}function G(N,L,D){return!D&&N[e(537)]||new O(N,L)}function O(N,L){const D=e;this[D(1653)]=N,this[D(1869)]=L,this[D(978)]=0,this[D(1294)]=null,this[D(502)]=t.apply(N,L),this.taps=0}O.prototype={event:function(N){const L=e;return N&&(this[L(1294)]=N),this},start:function(){const N=e;return++this[N(978)]===1&&(this[N(1653)][N(537)]=this,this[N(1478)](N(1310))),this},zoom:function(N,L){const D=e;return this[D(1727)]&&N!==D(1727)&&(this[D(1727)][1]=L.invert(this.mouse[0])),this[D(1539)]&&N!=="touch"&&(this[D(1539)][1]=L[D(1565)](this.touch0[0])),this.touch1&&N!==D(1673)&&(this[D(1207)][1]=L[D(1565)](this[D(1207)][0])),this[D(1653)][D(501)]=L,this.emit(D(1675)),this},end:function(){const N=e;return--this.active===0&&(delete this.that[N(537)],this[N(1478)](N(1942))),this},emit:function(N){const L=e;var D=u0(this[L(1653)])[L(1096)]();u.call(N,this[L(1653)],new p2(N,{sourceEvent:this.sourceEvent,target:m,transform:this[L(1653)].__zoom,dispatch:u}),D)}};function V(N,...L){const D=e;if(!n[D(2185)](this,arguments))return;var Y=G(this,L)[D(1845)](N),U=this[D(501)],I=Math.max(i[0],Math[D(775)](i[1],U.k*Math.pow(2,x[D(2185)](this,arguments)))),J=v0(N);if(Y.wheel)(Y.mouse[0][0]!==J[0]||Y[D(1727)][0][1]!==J[1])&&(Y[D(1727)][1]=U[D(1565)](Y[D(1727)][0]=J)),clearTimeout(Y[D(1849)]);else{if(U.k===I)return;Y[D(1727)]=[J,U[D(1565)](J)],rx(this),Y.start()}ct(N),Y[D(1849)]=setTimeout($,h),Y[D(1675)]("mouse",o(p(y(U,I),Y[D(1727)][0],Y[D(1727)][1]),Y.extent,c));function $(){const F=D;Y[F(1849)]=null,Y.end()}}function j(N,...L){const D=e;if(g||!n[D(2185)](this,arguments))return;var Y=N.currentTarget,U=G(this,L,!0)[D(1845)](N),I=u0(N[D(1863)]).on("mousemove.zoom",xe,!0).on(D(374),re,!0),J=v0(N,Y),$=N.clientX,F=N[D(1301)];Li(N[D(1863)]),Bo(N),U[D(1727)]=[J,this.__zoom[D(1565)](J)],rx(this),U.start();function xe(ae){const ue=D;if(ct(ae),!U[ue(1427)]){var me=ae[ue(1072)]-$,se=ae[ue(1301)]-F;U.moved=me*me+se*se>v}U[ue(1845)](ae).zoom("mouse",o(p(U[ue(1653)][ue(501)],U[ue(1727)][0]=v0(ae,Y),U[ue(1727)][1]),U[ue(502)],c))}function re(ae){const ue=D;I.on(ue(1855),null),Ni(ae[ue(1863)],U[ue(1427)]),ct(ae),U[ue(1845)](ae)[ue(1942)]()}}function q(N,...L){const D=e;if(n.apply(this,arguments)){var Y=this.__zoom,U=v0(N[D(1134)]?N[D(1134)][0]:N,this),I=Y[D(1565)](U),J=Y.k*(N.shiftKey?.5:2),$=o(p(y(Y,J),U,I),t.apply(this,L),c);ct(N),d>0?u0(this)[D(1237)]()[D(850)](d)[D(414)](P,$,U,N):u0(this).call(m[D(1121)],$,U,N)}}function H(N,...L){const D=e;if(n[D(2185)](this,arguments)){var Y=N.touches,U=Y[D(2179)],I=G(this,L,N[D(1134)].length===U)[D(1845)](N),J,$,F,xe;for(Bo(N),$=0;$<U;++$)F=Y[$],xe=v0(F,this),xe=[xe,this.__zoom[D(1565)](xe),F[D(1144)]],I[D(1539)]?!I[D(1207)]&&I[D(1539)][2]!==xe[2]&&(I[D(1207)]=xe,I[D(684)]=0):(I[D(1539)]=xe,J=!0,I[D(684)]=1+!!f);f&&(f=clearTimeout(f)),J&&(I[D(684)]<2&&(b=xe[0],f=setTimeout(function(){f=null},w)),rx(this),I.start())}}function W(N,...L){const D=e;if(this.__zooming){var Y=G(this,L).event(N),U=N[D(1134)],I=U[D(2179)],J,$,F,xe;for(ct(N),J=0;J<I;++J)$=U[J],F=v0($,this),Y.touch0&&Y[D(1539)][2]===$[D(1144)]?Y[D(1539)][0]=F:Y[D(1207)]&&Y[D(1207)][2]===$[D(1144)]&&(Y[D(1207)][0]=F);if($=Y[D(1653)][D(501)],Y[D(1207)]){var re=Y[D(1539)][0],ae=Y.touch0[1],ue=Y[D(1207)][0],me=Y[D(1207)][1],se=(se=ue[0]-re[0])*se+(se=ue[1]-re[1])*se,ee=(ee=me[0]-ae[0])*ee+(ee=me[1]-ae[1])*ee;$=y($,Math[D(857)](se/ee)),F=[(re[0]+ue[0])/2,(re[1]+ue[1])/2],xe=[(ae[0]+me[0])/2,(ae[1]+me[1])/2]}else if(Y[D(1539)])F=Y[D(1539)][0],xe=Y[D(1539)][1];else return;Y[D(1675)](D(1673),o(p($,F,xe),Y[D(502)],c))}}function T(N,...L){const D=e;if(this[D(537)]){var Y=G(this,L).event(N),U=N[D(1134)],I=U[D(2179)],J,$;for(Bo(N),g&&clearTimeout(g),g=setTimeout(function(){g=null},w),J=0;J<I;++J)$=U[J],Y[D(1539)]&&Y[D(1539)][2]===$[D(1144)]?delete Y.touch0:Y[D(1207)]&&Y[D(1207)][2]===$[D(1144)]&&delete Y[D(1207)];if(Y[D(1207)]&&!Y.touch0&&(Y.touch0=Y.touch1,delete Y.touch1),Y[D(1539)])Y.touch0[1]=this[D(501)][D(1565)](Y.touch0[0]);else if(Y[D(1942)](),Y[D(684)]===2&&($=v0($,this),Math[D(783)](b[0]-$[0],b[1]-$[1])<M)){var F=u0(this).on(D(2109));F&&F[D(2185)](this,arguments)}}}return m[e(1069)]=function(N){const L=e;return arguments.length?(x=typeof N===L(1347)?N:ix(+N),m):x},m.filter=function(N){return arguments.length?(n=typeof N=="function"?N:ix(!!N),m):n},m[e(2136)]=function(N){const L=e;return arguments[L(2179)]?(r=typeof N===L(1347)?N:ix(!!N),m):r},m[e(502)]=function(N){const L=e;return arguments.length?(t=typeof N===L(1347)?N:ix([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),m):t},m.scaleExtent=function(N){return arguments.length?(i[0]=+N[0],i[1]=+N[1],m):[i[0],i[1]]},m.translateExtent=function(N){return arguments.length?(c[0][0]=+N[0][0],c[1][0]=+N[1][0],c[0][1]=+N[0][1],c[1][1]=+N[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m[e(1607)]=function(N){return arguments[e(2179)]?(o=N,m):o},m[e(850)]=function(N){return arguments.length?(d=+N,m):d},m[e(1939)]=function(N){return arguments[e(2179)]?(a=N,m):a},m.on=function(){const N=e;var L=u.on[N(2185)](u,arguments);return L===u?m:L},m[e(1614)]=function(N){return arguments.length?(v=(N=+N)*N,m):Math.sqrt(v)},m[e(1585)]=function(N){return arguments.length?(M=+N,m):M},m}const f0={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>s(646),error003:e=>s(578)+e+'" not found. Using fallback type "default".',error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>s(2117),error007:e=>s(1979)+e+s(2048),error009:e=>s(845)+e+`" doesn't exist.`,error008:(e,{id:n,sourceHandle:t,targetHandle:o})=>s(1485)+e+s(1137)+(e==="source"?t:o)+'", edge id: '+n+".",error010:()=>s(1853),error011:e=>s(1498)+e+s(1135),error012:e=>s(460)+e+'" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.',error013:(e=s(1530))=>"It seems that you haven't loaded the styles. Please import '@xyflow/"+e+s(1762),error014:()=>s(2187),error015:()=>s(1488)},at=[[Number[s(1891)],Number[s(1891)]],[Number[s(1011)],Number.POSITIVE_INFINITY]],ic=[s(1818)," ",s(1286)],cc={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":s(570),"node.a11yDescription.ariaLiveMessage":({direction:e,x:n,y:t})=>s(675)+e+s(736)+n+s(598)+t,"edge.a11yDescription.default":s(788),"controls.ariaLabel":s(1996),"controls.zoomIn.ariaLabel":s(2188),"controls.zoomOut.ariaLabel":s(934),"controls.fitView.ariaLabel":s(642),"controls.interactive.ariaLabel":s(1290),"minimap.ariaLabel":"Mini Map","handle.ariaLabel":s(1877)};var Sn;(function(e){const n=s;e[n(600)]=n(1559),e.Loose=n(798)})(Sn||(Sn={}));var ln;(function(e){const n=s;e[n(699)]="free",e[n(1520)]=n(1323),e[n(462)]=n(1240)})(ln||(ln={}));var st;(function(e){const n=s;e[n(1098)]="partial",e.Full=n(2037)})(st||(st={}));const ac={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var R0;(function(e){const n=s;e.Bezier=n(384),e[n(1224)]="straight",e[n(1508)]=n(983),e[n(2092)]="smoothstep",e[n(1538)]="simplebezier"})(R0||(R0={}));var ax;(function(e){const n=s;e.Arrow="arrow",e[n(842)]="arrowclosed"})(ax||(ax={}));var ze;(function(e){const n=s;e[n(1029)]=n(937),e[n(1962)]=n(1117),e.Right=n(1790),e[n(2110)]=n(689)})(ze||(ze={}));const sc={[ze[s(1029)]]:ze[s(365)],[ze[s(365)]]:ze[s(1029)],[ze[s(1962)]]:ze[s(2110)],[ze.Bottom]:ze[s(1962)]};function lc(e){const n=s;return e===null?null:n(e?453:1732)}const dc=e=>"id"in e&&s(766)in e&&s(500)in e,L2=e=>"id"in e&&s(835)in e&&!(s(766)in e)&&!(s(500)in e),Do=e=>"id"in e&&"internals"in e&&!(s(766)in e)&&!(s(500)in e),lt=(e,n=[0,0])=>{const{width:t,height:o}=T0(e),x=e.origin??n,r=t*x[0],i=o*x[1];return{x:e.position.x-r,y:e.position.y-i}},N2=(e,n={nodeOrigin:[0,0]})=>{const t=s;if(process.env.NODE_ENV===t(1549)&&!n[t(717)]&&console[t(2015)]("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."),e[t(2179)]===0)return{x:0,y:0,width:0,height:0};const o=e.reduce((x,r)=>{const i=t,c=typeof r===i(1705);let d=!n.nodeLookup&&!c?r:void 0;n[i(717)]&&(d=c?n[i(717)][i(1861)](r):Do(r)?r:n[i(717)].get(r.id));const a=d?dx(d,n[i(1031)]):{x:0,y:0,x2:0,y2:0};return sx(x,a)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return lx(o)},dt=(e,n={})=>{const t=s;let o={x:1/0,y:1/0,x2:-1/0,y2:-1/0},x=!1;return e[t(1322)](r=>{(n[t(815)]===void 0||n.filter(r))&&(o=sx(o,dx(r)),x=!0)}),x?lx(o):{x:0,y:0,width:0,height:0}},Lo=(e,n,[t,o,x]=[0,0,1],r=!1,i=!1)=>{const c=s,d={...ht(n,[t,o,x]),width:n[c(1710)]/x,height:n[c(1355)]/x},a=[];for(const u of e[c(1982)]()){const{measured:f,selectable:b=!0,hidden:g=!1}=u;if(i&&!b||g)continue;const w=f[c(1710)]??u.width??u[c(2175)]??null,h=f[c(1355)]??u[c(1355)]??u[c(586)]??null,v=ut(d,In(u)),M=(w??0)*(h??0),m=r&&v>0;(!u[c(1157)][c(610)]||m||v>=M||u[c(1941)])&&a[c(1759)](u)}return a},S2=(e,n)=>{const t=s,o=new Set;return e[t(1322)](x=>{o[t(729)](x.id)}),n[t(815)](x=>o[t(1147)](x[t(766)])||o[t(1147)](x[t(500)]))};function k2(e,n){const t=s,o=new Map,x=n?.[t(960)]?new Set(n[t(960)][t(474)](r=>r.id)):null;return e[t(1322)](r=>{const i=t;r.measured[i(1710)]&&r[i(510)][i(1355)]&&(n?.[i(590)]||!r.hidden)&&(!x||x[i(1147)](r.id))&&o[i(721)](r.id,r)}),o}async function I2({nodes:e,width:n,height:t,panZoom:o,minZoom:x,maxZoom:r},i){const c=s;if(e[c(1046)]===0)return Promise[c(1952)](!0);const d=k2(e,i),a=dt(d),u=So(a,n,t,i?.[c(1132)]??x,i?.[c(1356)]??r,i?.[c(448)]??.1);return await o[c(1758)](u,{duration:i?.duration,ease:i?.[c(1834)],interpolate:i?.[c(1939)]}),Promise[c(1952)](!0)}function uc({nodeId:e,nextPosition:n,nodeLookup:t,nodeOrigin:o=[0,0],nodeExtent:x,onError:r}){const i=s,c=t[i(1861)](e),d=c[i(1907)]?t.get(c.parentId):void 0,{x:a,y:u}=d?d[i(1157)][i(1443)]:{x:0,y:0},f=c[i(1639)]??o;let b=c[i(502)]||x;if(c[i(502)]===i(1923)&&!c[i(1935)])if(!d)r?.(i(761),f0[i(612)]());else{const w=d[i(510)].width,h=d[i(510)][i(1355)];w&&h&&(b=[[a,u],[a+w,u+h]])}else d&&An(c[i(502)])&&(b=[[c.extent[0][0]+a,c[i(502)][0][1]+u],[c[i(502)][1][0]+a,c.extent[1][1]+u]]);const g=An(b)?dn(n,b,c.measured):n;return(c[i(510)][i(1710)]===void 0||c[i(510)].height===void 0)&&r?.(i(1155),f0.error015()),{position:{x:g.x-a+(c[i(510)][i(1710)]??0)*f[0],y:g.y-u+(c[i(510)].height??0)*f[1]},positionAbsolute:g}}async function P2({nodesToRemove:e=[],edgesToRemove:n=[],nodes:t,edges:o,onBeforeDelete:x}){const r=s,i=new Set(e[r(474)](g=>g.id)),c=[];for(const g of t){if(g.deletable===!1)continue;const w=i[r(1147)](g.id),h=!w&&g[r(1907)]&&c[r(990)](v=>v.id===g.parentId);(w||h)&&c.push(g)}const d=new Set(n[r(474)](g=>g.id)),a=o[r(815)](g=>g.deletable!==!1),u=S2(c,a),f=u;for(const g of a)d[r(1147)](g.id)&&!f[r(990)](h=>h.id===g.id)&&f[r(1759)](g);if(!x)return{edges:f,nodes:c};const b=await x({nodes:c,edges:f});return typeof b===r(743)?b?{edges:f,nodes:c}:{edges:[],nodes:[]}:b}const kn=(e,n=0,t=1)=>Math[s(775)](Math[s(2172)](e,n),t),dn=(e={x:0,y:0},n,t)=>({x:kn(e.x,n[0][0],n[1][0]-(t?.[s(1710)]??0)),y:kn(e.y,n[0][1],n[1][1]-(t?.height??0))});function fc(e,n,t){const o=s,{width:x,height:r}=T0(t),{x:i,y:c}=t[o(1157)][o(1443)];return dn(e,[[i,c],[i+x,c+r]],n)}const hc=(e,n,t)=>e<n?kn(Math.abs(e-n),1,n)/n:e>t?-kn(Math.abs(e-t),1,n)/n:0,gc=(e,n,t=15,o=40)=>{const x=s,r=hc(e.x,o,n[x(1710)]-o)*t,i=hc(e.y,o,n[x(1355)]-o)*t;return[r,i]},sx=(e,n)=>({x:Math[s(775)](e.x,n.x),y:Math.min(e.y,n.y),x2:Math[s(2172)](e.x2,n.x2),y2:Math[s(2172)](e.y2,n.y2)}),No=({x:e,y:n,width:t,height:o})=>({x:e,y:n,x2:e+t,y2:n+o}),lx=({x:e,y:n,x2:t,y2:o})=>({x:e,y:n,width:t-e,height:o-n}),In=(e,n=[0,0])=>{const t=s,{x:o,y:x}=Do(e)?e[t(1157)][t(1443)]:lt(e,n);return{x:o,y:x,width:e[t(510)]?.width??e[t(1710)]??e[t(2175)]??0,height:e[t(510)]?.[t(1355)]??e[t(1355)]??e[t(586)]??0}},dx=(e,n=[0,0])=>{const t=s,{x:o,y:x}=Do(e)?e[t(1157)][t(1443)]:lt(e,n);return{x:o,y:x,x2:o+(e[t(510)]?.[t(1710)]??e.width??e.initialWidth??0),y2:x+(e[t(510)]?.[t(1355)]??e[t(1355)]??e.initialHeight??0)}},bc=(e,n)=>lx(sx(No(e),No(n))),ut=(e,n)=>{const t=s,o=Math[t(2172)](0,Math.min(e.x+e[t(1710)],n.x+n[t(1710)])-Math[t(2172)](e.x,n.x)),x=Math.max(0,Math[t(775)](e.y+e[t(1355)],n.y+n.height)-Math[t(2172)](e.y,n.y));return Math[t(1148)](o*x)},yc=e=>C0(e[s(1710)])&&C0(e.height)&&C0(e.x)&&C0(e.y),C0=e=>!isNaN(e)&&isFinite(e),mc=(e,n)=>{const t=s;process.env.NODE_ENV===t(1549)&&console[t(2015)](t(782)+n+t(1780)+e)},ft=(e,n=[1,1])=>{const t=s;return{x:n[0]*Math[t(381)](e.x/n[0]),y:n[1]*Math[t(381)](e.y/n[1])}},ht=({x:e,y:n},[t,o,x],r=!1,i=[1,1])=>{const c={x:(e-t)/x,y:(n-o)/x};return r?ft(c,i):c},ux=({x:e,y:n},[t,o,x])=>({x:e*x+t,y:n*x+o});function Pn(e,n){const t=s;if(typeof e===t(2059))return Math[t(1938)]((n-n/(1+e))*.5);if(typeof e===t(1705)&&e[t(1150)]("px")){const o=parseFloat(e);if(!Number[t(1782)](o))return Math[t(1938)](o)}if(typeof e===t(1705)&&e[t(1150)]("%")){const o=parseFloat(e);if(!Number[t(1782)](o))return Math[t(1938)](n*o*.01)}return console[t(1036)](t(943)+e+t(779)),0}function A2(e,n,t){const o=s;if(typeof e=="string"||typeof e===o(2059)){const x=Pn(e,t),r=Pn(e,n);return{top:x,right:r,bottom:x,left:r,x:r*2,y:x*2}}if(typeof e=="object"){const x=Pn(e[o(1117)]??e.y??0,t),r=Pn(e[o(689)]??e.y??0,t),i=Pn(e[o(937)]??e.x??0,n),c=Pn(e.right??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 j2(e,n,t,o,x,r){const i=s,{x:c,y:d}=ux(e,[n,t,o]),{x:a,y:u}=ux({x:e.x+e[i(1710)],y:e.y+e.height},[n,t,o]),f=x-a,b=r-u;return{left:Math[i(1938)](c),top:Math[i(1938)](d),right:Math[i(1938)](f),bottom:Math[i(1938)](b)}}const So=(e,n,t,o,x,r)=>{const i=s,c=A2(r,n,t),d=(n-c.x)/e[i(1710)],a=(t-c.y)/e[i(1355)],u=Math[i(775)](d,a),f=kn(u,o,x),b=e.x+e.width/2,g=e.y+e[i(1355)]/2,w=n/2-b*f,h=t/2-g*f,v=j2(e,w,h,f,n,t),M={left:Math[i(775)](v[i(937)]-c[i(937)],0),top:Math[i(775)](v[i(1117)]-c[i(1117)],0),right:Math[i(775)](v[i(1790)]-c[i(1790)],0),bottom:Math[i(775)](v[i(689)]-c[i(689)],0)};return{x:w-M.left+M.right,y:h-M[i(1117)]+M.bottom,zoom:f}},gt=()=>typeof navigator!==s(383)&&navigator?.[s(1772)]?.[s(1878)](s(1349))>=0;function An(e){return e!=null&&e!=="parent"}function T0(e){const n=s;return{width:e.measured?.width??e[n(1710)]??e[n(2175)]??0,height:e[n(510)]?.height??e[n(1355)]??e[n(586)]??0}}function wc(e){const n=s;return(e.measured?.width??e[n(1710)]??e[n(2175)])!==void 0&&(e[n(510)]?.height??e[n(1355)]??e[n(586)])!==void 0}function vc(e,n={width:0,height:0},t,o,x){const r=s,i={...e},c=o[r(1861)](t);if(c){const d=c[r(1639)]||x;i.x+=c[r(1157)][r(1443)].x-(n[r(1710)]??0)*d[0],i.y+=c[r(1157)].positionAbsolute.y-(n[r(1355)]??0)*d[1]}return i}function pc(e,n){const t=s;if(e[t(1046)]!==n[t(1046)])return!1;for(const o of e)if(!n[t(1147)](o))return!1;return!0}function Y2(){let e,n;return{promise:new Promise((o,x)=>{e=o,n=x}),resolve:e,reject:n}}function E2(e){return{...cc,...e||{}}}function bt(e,{snapGrid:n=[0,0],snapToGrid:t=!1,transform:o,containerBounds:x}){const r=s,{x:i,y:c}=M0(e),d=ht({x:i-(x?.[r(937)]??0),y:c-(x?.top??0)},o),{x:a,y:u}=t?ft(d,n):d;return{xSnapped:a,ySnapped:u,...d}}const ko=e=>({width:e[s(1796)],height:e[s(435)]}),zc=e=>e?.getRootNode?.()||window?.document,U2=[s(1049),s(1846),s(812)];function Cc(e){const n=s,t=e[n(891)]?.()?.[0]||e[n(500)];return t?.[n(1783)]!==1?!1:U2[n(1419)](t[n(1213)])||t[n(1170)](n(1987))||!!t[n(1720)](n(1124))}const Mc=e=>s(1072)in e,M0=(e,n)=>{const t=s,o=Mc(e),x=o?e[t(1072)]:e[t(2006)]?.[0][t(1072)],r=o?e.clientY:e[t(2006)]?.[0][t(1301)];return{x:x-(n?.[t(937)]??0),y:r-(n?.[t(1117)]??0)}},Bc=(e,n,t,o,x)=>{const r=s,i=n[r(1214)]("."+e);return!i||!i.length?null:Array[r(1365)](i).map(c=>{const d=r,a=c[d(1821)]();return{id:c.getAttribute("data-handleid"),type:e,nodeId:x,position:c.getAttribute("data-handlepos"),x:(a[d(937)]-t[d(937)])/o,y:(a[d(1117)]-t[d(1117)])/o,...ko(c)}})};function Dc({sourceX:e,sourceY:n,targetX:t,targetY:o,sourceControlX:x,sourceControlY:r,targetControlX:i,targetControlY:c}){const d=s,a=e*.125+x*.375+i*.375+t*.125,u=n*.125+r*.375+c*.375+o*.125,f=Math[d(1537)](a-e),b=Math.abs(u-n);return[a,u,f,b]}function fx(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function Lc({pos:e,x1:n,y1:t,x2:o,y2:x,c:r}){const i=s;switch(e){case ze[i(1029)]:return[n-fx(n-o,r),t];case ze[i(365)]:return[n+fx(o-n,r),t];case ze[i(1962)]:return[n,t-fx(t-x,r)];case ze[i(2110)]:return[n,t+fx(x-t,r)]}}function Nc({sourceX:e,sourceY:n,sourcePosition:t=ze[s(2110)],targetX:o,targetY:x,targetPosition:r=ze[s(1962)],curvature:i=.25}){const[c,d]=Lc({pos:t,x1:e,y1:n,x2:o,y2:x,c:i}),[a,u]=Lc({pos:r,x1:o,y1:x,x2:e,y2:n,c:i}),[f,b,g,w]=Dc({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:c,sourceControlY:d,targetControlX:a,targetControlY:u});return["M"+e+","+n+" C"+c+","+d+" "+a+","+u+" "+o+","+x,f,b,g,w]}function Sc({sourceX:e,sourceY:n,targetX:t,targetY:o}){const x=s,r=Math[x(1537)](t-e)/2,i=t<e?t+r:t-r,c=Math[x(1537)](o-n)/2,d=o<n?o+c:o-c;return[i,d,r,c]}function G2({sourceNode:e,targetNode:n,selected:t=!1,zIndex:o=0,elevateOnSelect:x=!1,zIndexMode:r="basic"}){const i=s;if(r==="manual")return o;const c=x&&t?o+1e3:o,d=Math.max(e[i(1907)]||x&&e.selected?e[i(1157)].z:0,n[i(1907)]||x&&n[i(1274)]?n[i(1157)].z:0);return c+d}function O2({sourceNode:e,targetNode:n,width:t,height:o,transform:x}){const r=sx(dx(e),dx(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 ut(i,lx(r))>0}const H2=({source:e,sourceHandle:n,target:t,targetHandle:o})=>s(727)+e+(n||"")+"-"+t+(o||""),T2=(e,n)=>{const t=s;return n.some(o=>o[t(766)]===e[t(766)]&&o[t(500)]===e[t(500)]&&(o.sourceHandle===e[t(837)]||!o.sourceHandle&&!e[t(837)])&&(o[t(1924)]===e[t(1924)]||!o[t(1924)]&&!e[t(1924)]))},kc=(e,n,t={})=>{const o=s;if(!e[o(766)]||!e[o(500)])return mc("006",f0[o(873)]()),n;const x=t[o(1228)]||H2;let r;return dc(e)?r={...e}:r={...e,id:x(e)},T2(r,n)?n:(r[o(837)]===null&&delete r[o(837)],r[o(1924)]===null&&delete r[o(1924)],n[o(758)](r))};function Ic({sourceX:e,sourceY:n,targetX:t,targetY:o}){const[x,r,i,c]=Sc({sourceX:e,sourceY:n,targetX:t,targetY:o});return["M "+e+","+n+"L "+t+","+o,x,r,i,c]}const Pc={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze[s(1962)]]:{x:0,y:-1},[ze[s(2110)]]:{x:0,y:1}},V2=({source:e,sourcePosition:n=ze[s(2110)],target:t})=>n===ze[s(1029)]||n===ze.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},Ac=(e,n)=>Math.sqrt(Math[s(919)](n.x-e.x,2)+Math.pow(n.y-e.y,2));function q2({source:e,sourcePosition:n=ze[s(2110)],target:t,targetPosition:o=ze.Top,center:x,offset:r,stepPosition:i}){const c=s,d=Pc[n],a=Pc[o],u={x:e.x+d.x*r,y:e.y+d.y*r},f={x:t.x+a.x*r,y:t.y+a.y*r},b=V2({source:u,sourcePosition:n,target:f}),g=b.x!==0?"x":"y",w=b[g];let h=[],v,M;const m={x:0,y:0},y={x:0,y:0},[,,p,z]=Sc({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(d[g]*a[g]===-1){g==="x"?(v=x.x??u.x+(f.x-u.x)*i,M=x.y??(u.y+f.y)/2):(v=x.x??(u.x+f.x)/2,M=x.y??u.y+(f.y-u.y)*i);const V=[{x:v,y:u.y},{x:v,y:f.y}],j=[{x:u.x,y:M},{x:f.x,y:M}];d[g]===w?h=g==="x"?V:j:h=g==="x"?j:V}else{const V=[{x:u.x,y:f.y}],j=[{x:f.x,y:u.y}];if(g==="x"?h=d.x===w?j:V:h=d.y===w?V:j,n===o){const N=Math[c(1537)](e[g]-t[g]);if(N<=r){const L=Math[c(775)](r-1,r-N);d[g]===w?m[g]=(u[g]>e[g]?-1:1)*L:y[g]=(f[g]>t[g]?-1:1)*L}}if(n!==o){const N=g==="x"?"y":"x",L=d[g]===a[N],D=u[N]>f[N],Y=u[N]<f[N];(d[g]===1&&(!L&&D||L&&Y)||d[g]!==1&&(!L&&Y||L&&D))&&(h=g==="x"?V:j)}const q={x:u.x+m.x,y:u.y+m.y},H={x:f.x+y.x,y:f.y+y.y},W=Math[c(2172)](Math[c(1537)](q.x-h[0].x),Math[c(1537)](H.x-h[0].x)),T=Math[c(2172)](Math[c(1537)](q.y-h[0].y),Math[c(1537)](H.y-h[0].y));W>=T?(v=(q.x+H.x)/2,M=h[0].y):(v=h[0].x,M=(q.y+H.y)/2)}const P={x:u.x+m.x,y:u.y+m.y},G={x:f.x+y.x,y:f.y+y.y};return[[e,...P.x!==h[0].x||P.y!==h[0].y?[P]:[],...h,...G.x!==h[h[c(2179)]-1].x||G.y!==h[h[c(2179)]-1].y?[G]:[],t],v,M,p,z]}function W2(e,n,t,o){const x=Math.min(Ac(e,n)/2,Ac(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 a=e.x<t.x?-1:1,u=e.y<t.y?1:-1;return"L "+(r+x*a)+","+i+"Q "+r+","+i+" "+r+","+(i+x*u)}const c=e.x<t.x?1:-1,d=e.y<t.y?-1:1;return"L "+r+","+(i+x*d)+"Q "+r+","+i+" "+(r+x*c)+","+i}function Io({sourceX:e,sourceY:n,sourcePosition:t=ze[s(2110)],targetX:o,targetY:x,targetPosition:r=ze[s(1962)],borderRadius:i=5,centerX:c,centerY:d,offset:a=20,stepPosition:u=.5}){const f=s,[b,g,w,h,v]=q2({source:{x:e,y:n},sourcePosition:t,target:{x:o,y:x},targetPosition:r,center:{x:c,y:d},offset:a,stepPosition:u});let M="M"+b[0].x+" "+b[0].y;for(let m=1;m<b[f(2179)]-1;m++)M+=W2(b[m-1],b[m],b[m+1],i);return M+="L"+b[b[f(2179)]-1].x+" "+b[b[f(2179)]-1].y,[M,g,w,h,v]}function jc(e){const n=s;return e&&!!(e[n(1157)].handleBounds||e.handles?.[n(2179)])&&!!(e[n(510)][n(1710)]||e[n(1710)]||e.initialWidth)}function X2(e){const n=s,{sourceNode:t,targetNode:o}=e;if(!jc(t)||!jc(o))return null;const x=t[n(1157)].handleBounds||Yc(t[n(1901)]),r=o[n(1157)][n(610)]||Yc(o.handles),i=Ec(x?.[n(766)]??[],e[n(837)]),c=Ec(e[n(1579)]===Sn[n(600)]?r?.[n(500)]??[]:(r?.[n(500)]??[])[n(758)](r?.[n(766)]??[]),e[n(1924)]);if(!i||!c)return e[n(581)]?.(n(1030),f0[n(625)](n(i?500:766),{id:e.id,sourceHandle:e[n(837)],targetHandle:e[n(1924)]})),null;const d=i?.[n(835)]||ze[n(2110)],a=c?.position||ze[n(1962)],u=un(t,i,d),f=un(o,c,a);return{sourceX:u.x,sourceY:u.y,targetX:f.x,targetY:f.y,sourcePosition:d,targetPosition:a}}function Yc(e){const n=s;if(!e)return null;const t=[],o=[];for(const x of e)x[n(1710)]=x[n(1710)]??1,x[n(1355)]=x[n(1355)]??1,x[n(1912)]===n(766)?t[n(1759)](x):x[n(1912)]===n(500)&&o[n(1759)](x);return{source:t,target:o}}function un(e,n,t=ze[s(1029)],o=!1){const x=s,r=(n?.x??0)+e[x(1157)][x(1443)].x,i=(n?.y??0)+e[x(1157)].positionAbsolute.y,{width:c,height:d}=n??T0(e);if(o)return{x:r+c/2,y:i+d/2};switch(n?.[x(835)]??t){case ze[x(1962)]:return{x:r+c/2,y:i};case ze.Right:return{x:r+c,y:i+d/2};case ze[x(2110)]:return{x:r+c/2,y:i+d};case ze[x(1029)]:return{x:r,y:i+d/2}}}function Ec(e,n){return e&&(n?e.find(t=>t.id===n):e[0])||null}function Po(e,n){const t=s;return e?typeof e===t(1705)?e:""+(n?n+"__":"")+Object[t(999)](e)[t(840)]()[t(474)](x=>x+"="+e[x])[t(1881)]("&"):""}function K2(e,{id:n,defaultColor:t,defaultMarkerStart:o,defaultMarkerEnd:x}){const r=s,i=new Set;return e[r(1106)]((c,d)=>{const a=r;return[d.markerStart||o,d[a(1977)]||x][a(1322)](u=>{const f=a;if(u&&typeof u===f(878)){const b=Po(u,n);!i[f(1147)](b)&&(c[f(1759)]({id:b,color:u[f(1176)]||t,...u}),i[f(729)](b))}}),c},[])[r(840)]((c,d)=>c.id.localeCompare(d.id))}const Uc=1e3,Z2=10,Ao={nodeOrigin:[0,0],nodeExtent:at,elevateNodesOnSelect:!0,zIndexMode:s(1212),defaults:{}},R2={...Ao,checkEquality:!0};function jo(e,n){const t={...e};for(const o in n)n[o]!==void 0&&(t[o]=n[o]);return t}function J2(e,n,t){const o=s,x=jo(Ao,t);for(const r of e[o(1982)]())if(r[o(1907)])Uo(r,e,n,x);else{const i=lt(r,x.nodeOrigin),c=An(r[o(502)])?r[o(502)]:x[o(790)],d=dn(i,c,T0(r));r[o(1157)][o(1443)]=d}}function _2(e,n){const t=s;if(!e[t(1901)])return e[t(510)]?n?.[t(1157)].handleBounds:void 0;const o=[],x=[];for(const r of e[t(1901)]){const i={id:r.id,width:r[t(1710)]??1,height:r[t(1355)]??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r[t(1912)]};r[t(1912)]===t(766)?o[t(1759)](i):r[t(1912)]===t(500)&&x.push(i)}return{source:o,target:x}}function Yo(e){return e===s(1873)}function Eo(e,n,t,o={}){const x=s,r=jo(R2,o),i={i:0},c=new Map(n),d=r?.[x(1276)]&&!Yo(r[x(1316)])?Uc:0;let a=e[x(2179)]>0,u=!1;n.clear(),t[x(1390)]();for(const f of e){let b=c[x(1861)](f.id);if(r[x(1506)]&&f===b?.[x(1157)].userNode)n[x(721)](f.id,b);else{const g=lt(f,r[x(1031)]),w=An(f[x(502)])?f[x(502)]:r.nodeExtent,h=dn(g,w,T0(f));b={...r[x(1043)],...f,measured:{width:f.measured?.[x(1710)],height:f[x(510)]?.[x(1355)]},internals:{positionAbsolute:h,handleBounds:_2(f,b),z:Gc(f,d,r[x(1316)]),userNode:f}},n[x(721)](f.id,b)}(b[x(510)]===void 0||b[x(510)][x(1710)]===void 0||b[x(510)][x(1355)]===void 0)&&!b[x(1771)]&&(a=!1),f[x(1907)]&&Uo(b,n,t,o,i),u||=f[x(1274)]??!1}return{nodesInitialized:a,hasSelectedNodes:u}}function Q2(e,n){const t=s;if(!e[t(1907)])return;const o=n[t(1861)](e[t(1907)]);o?o.set(e.id,e):n[t(721)](e[t(1907)],new Map([[e.id,e]]))}function Uo(e,n,t,o,x){const r=s,{elevateNodesOnSelect:i,nodeOrigin:c,nodeExtent:d,zIndexMode:a}=jo(Ao,o),u=e[r(1907)],f=n[r(1861)](u);if(!f){console[r(2015)](r(496)+u+r(1303));return}Q2(e,t),x&&!f[r(1907)]&&f.internals[r(1830)]===void 0&&a===r(1798)&&(f[r(1157)][r(1830)]=++x.i,f[r(1157)].z=f[r(1157)].z+x.i*Z2),x&&f[r(1157)][r(1830)]!==void 0&&(x.i=f.internals[r(1830)]);const b=i&&!Yo(a)?Uc:0,{x:g,y:w,z:h}=F2(e,f,c,d,b,a),{positionAbsolute:v}=e[r(1157)],M=g!==v.x||w!==v.y;(M||h!==e[r(1157)].z)&&n[r(721)](e.id,{...e,internals:{...e[r(1157)],positionAbsolute:M?{x:g,y:w}:v,z:h}})}function Gc(e,n,t){const o=s,x=C0(e[o(741)])?e[o(741)]:0;return Yo(t)?x:x+(e[o(1274)]?n:0)}function F2(e,n,t,o,x,r){const i=s,{x:c,y:d}=n[i(1157)].positionAbsolute,a=T0(e),u=lt(e,t),f=An(e.extent)?dn(u,e[i(502)],a):u;let b=dn({x:c+f.x,y:d+f.y},o,a);e.extent==="parent"&&(b=fc(b,a,n));const g=Gc(e,x,r),w=n[i(1157)].z??0;return{x:b.x,y:b.y,z:w>=g?w+1:g}}function Go(e,n,t,o=[0,0]){const x=s,r=[],i=new Map;for(const c of e){const d=n[x(1861)](c[x(1907)]);if(!d)continue;const a=i[x(1861)](c.parentId)?.[x(1411)]??In(d),u=bc(a,c[x(1389)]);i[x(721)](c[x(1907)],{expandedRect:u,parent:d})}return i[x(1046)]>0&&i[x(1322)](({expandedRect:c,parent:d},a)=>{const u=x,f=d[u(1157)][u(1443)],b=T0(d),g=d[u(1639)]??o,w=c.x<f.x?Math[u(381)](Math[u(1537)](f.x-c.x)):0,h=c.y<f.y?Math[u(381)](Math.abs(f.y-c.y)):0,v=Math.max(b.width,Math[u(381)](c[u(1710)])),M=Math.max(b.height,Math.round(c[u(1355)])),m=(v-b[u(1710)])*g[0],y=(M-b.height)*g[1];(w>0||h>0||m||y)&&(r[u(1759)]({id:a,type:u(835),position:{x:d.position.x-w+m,y:d[u(835)].y-h+y}}),t[u(1861)](a)?.forEach(p=>{const z=u;!e[z(1496)](P=>P.id===p.id)&&r.push({id:p.id,type:z(835),position:{x:p[z(835)].x+w,y:p[z(835)].y+h}})})),(b.width<c.width||b.height<c[u(1355)]||w||h)&&r[u(1759)]({id:a,type:"dimensions",setAttributes:!0,dimensions:{width:v+(w?g[0]*w-m:0),height:M+(h?g[1]*h-y:0)}})}),r}function $2(e,n,t,o,x,r,i){const c=s,d=o?.[c(1525)](c(1380));let a=!1;if(!d)return{changes:[],updatedInternals:a};const u=[],f=window[c(704)](d),{m22:b}=new window.DOMMatrixReadOnly(f[c(1121)]),g=[];for(const w of e.values()){const h=n[c(1861)](w.id);if(!h)continue;if(h[c(1771)]){n.set(h.id,{...h,internals:{...h[c(1157)],handleBounds:void 0}}),a=!0;continue}const v=ko(w[c(585)]),M=h.measured[c(1710)]!==v[c(1710)]||h[c(510)].height!==v[c(1355)];if(!!(v[c(1710)]&&v.height&&(M||!h[c(1157)].handleBounds||w[c(1264)]))){const y=w[c(585)][c(1821)](),p=An(h[c(502)])?h[c(502)]:r;let{positionAbsolute:z}=h[c(1157)];h[c(1907)]&&h[c(502)]==="parent"?z=fc(z,v,n[c(1861)](h[c(1907)])):p&&(z=dn(z,p,v));const P={...h,measured:v,internals:{...h.internals,positionAbsolute:z,handleBounds:{source:Bc(c(766),w[c(585)],y,b,h.id),target:Bc(c(500),w[c(585)],y,b,h.id)}}};n[c(721)](h.id,P),h[c(1907)]&&Uo(P,n,t,{nodeOrigin:x,zIndexMode:i}),a=!0,M&&(u[c(1759)]({id:h.id,type:"dimensions",dimensions:v}),h[c(1935)]&&h[c(1907)]&&g[c(1759)]({id:h.id,parentId:h[c(1907)],rect:In(P,x)}))}}if(g[c(2179)]>0){const w=Go(g,n,t,x);u.push(...w)}return{changes:u,updatedInternals:a}}async function e5({delta:e,panZoom:n,transform:t,translateExtent:o,width:x,height:r}){const i=s;if(!n||!e.x&&!e.y)return Promise[i(1952)](!1);const c=await n[i(672)]({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(1952)](d)}function Oc(e,n,t,o,x,r){const i=s;let c=x;const d=o[i(1861)](c)||new Map;o[i(721)](c,d[i(721)](t,n)),c=x+"-"+e;const a=o[i(1861)](c)||new Map;if(o[i(721)](c,a[i(721)](t,n)),r){c=x+"-"+e+"-"+r;const u=o[i(1861)](c)||new Map;o[i(721)](c,u.set(t,n))}}function Hc(e,n,t){const o=s;e[o(1390)](),n[o(1390)]();for(const x of t){const{source:r,target:i,sourceHandle:c=null,targetHandle:d=null}=x,a={edgeId:x.id,source:r,target:i,sourceHandle:c,targetHandle:d},u=r+"-"+c+"--"+i+"-"+d,f=i+"-"+d+"--"+r+"-"+c;Oc(o(766),a,f,e,r,c),Oc(o(500),a,u,e,i,d),n[o(721)](x.id,x)}}function Tc(e,n){const t=s;if(!e[t(1907)])return!1;const o=n[t(1861)](e[t(1907)]);return o?o[t(1274)]?!0:Tc(o,n):!1}function Vc(e,n,t){const o=s;let x=e;do{if(x?.matches?.(n))return!0;if(x===t)return!1;x=x?.[o(560)]}while(x);return!1}function n5(e,n,t,o){const x=s,r=new Map;for(const[i,c]of e)if((c[x(1274)]||c.id===o)&&(!c[x(1907)]||!Tc(c,e))&&(c[x(1533)]||n&&typeof c[x(1533)]===x(383))){const d=e[x(1861)](i);d&&r[x(721)](i,{id:i,position:d[x(835)]||{x:0,y:0},distance:{x:t.x-d.internals[x(1443)].x,y:t.y-d.internals.positionAbsolute.y},extent:d[x(502)],parentId:d[x(1907)],origin:d[x(1639)],expandParent:d[x(1935)],internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d[x(510)][x(1710)]??0,height:d[x(510)][x(1355)]??0}})}return r}function Oo({nodeId:e,dragItems:n,nodeLookup:t,dragging:o=!0}){const x=s,r=[];for(const[c,d]of n){const a=t[x(1861)](c)?.[x(1157)].userNode;a&&r[x(1759)]({...a,position:d.position,dragging:o})}if(!e)return[r[0],r];const i=t[x(1861)](e)?.internals[x(1275)];return[i?{...i,position:n[x(1861)](e)?.position||i[x(835)],dragging:o}:r[0],r]}function t5({dragItems:e,snapGrid:n,x:t,y:o}){const x=s,r=e[x(1982)]().next()[x(1044)];if(!r)return null;const i={x:t-r[x(750)].x,y:o-r[x(750)].y},c=ft(i,n);return{x:c.x-i.x,y:c.y-i.y}}function x5({onNodeMouseDown:e,getStoreItems:n,onDragStart:t,onDrag:o,onDragStop:x}){let r={x:null,y:null},i=0,c=new Map,d=!1,a={x:0,y:0},u=null,f=!1,b=null,g=!1,w=!1,h=null;function v({noDragClassName:m,handleSelector:y,domNode:p,isSelectable:z,nodeId:P,nodeClickDistance:G=0}){const O=_0x5590;b=u0(p);function V({x:W,y:T}){const N=_0x5590,{nodeLookup:L,nodeExtent:D,snapGrid:Y,snapToGrid:U,nodeOrigin:I,onNodeDrag:J,onSelectionDrag:$,onError:F,updateNodePositions:xe}=n();r={x:W,y:T};let re=!1;const ae=c[N(1046)]>1,ue=ae&&D?No(dt(c)):null,me=ae&&U?t5({dragItems:c,snapGrid:Y,x:W,y:T}):null;for(const[se,ee]of c){if(!L[N(1147)](se))continue;let le={x:W-ee.distance.x,y:T-ee[N(750)].y};U&&(le=me?{x:Math[N(381)](le.x+me.x),y:Math[N(381)](le.y+me.y)}:ft(le,Y));let be=null;if(ae&&D&&!ee[N(502)]&&ue){const{positionAbsolute:Z}=ee[N(1157)],ne=Z.x-ue.x+D[0][0],te=Z.x+ee.measured[N(1710)]-ue.x2+D[1][0],X=Z.y-ue.y+D[0][1],oe=Z.y+ee[N(510)][N(1355)]-ue.y2+D[1][1];be=[[ne,X],[te,oe]]}const{position:E,positionAbsolute:A}=uc({nodeId:se,nextPosition:le,nodeLookup:L,nodeExtent:be||D,nodeOrigin:I,onError:F});re=re||ee.position.x!==E.x||ee[N(835)].y!==E.y,ee[N(835)]=E,ee.internals.positionAbsolute=A}if(w=w||re,!!re&&(xe(c,!0),h&&(o||J||!P&&$))){const[se,ee]=Oo({nodeId:P,dragItems:c,nodeLookup:L});o?.(h,c,se,ee),J?.(h,se,ee),!P&&$?.(h,ee)}}async function j(){if(!u)return;const{transform:W,panBy:T,autoPanSpeed:N,autoPanOnNodeDrag:L}=n();if(!L){d=!1,cancelAnimationFrame(i);return}const[D,Y]=gc(a,u,N);(D!==0||Y!==0)&&(r.x=(r.x??0)-D/W[2],r.y=(r.y??0)-Y/W[2],await T({x:D,y:Y})&&V(r)),i=requestAnimationFrame(j)}function q(W){const T=_0x5590,{nodeLookup:N,multiSelectionActive:L,nodesDraggable:D,transform:Y,snapGrid:U,snapToGrid:I,selectNodesOnDrag:J,onNodeDragStart:$,onSelectionDragStart:F,unselectNodesAndEdges:xe}=n();f=!0,(!J||!z)&&!L&&P&&!N.get(P)?.[T(1274)]&&xe(),z&&J&&P&&e?.(P);const re=bt(W[T(1294)],{transform:Y,snapGrid:U,snapToGrid:I,containerBounds:u});if(r=re,c=n5(N,D,re,P),c[T(1046)]>0&&(t||$||!P&&F)){const[ae,ue]=Oo({nodeId:P,dragItems:c,nodeLookup:N});t?.(W.sourceEvent,c,ae,ue),$?.(W[T(1294)],ae,ue),!P&&F?.(W[T(1294)],ue)}}const H=Si()[O(1614)](G).on("start",W=>{const T=O,{domNode:N,nodeDragThreshold:L,transform:D,snapGrid:Y,snapToGrid:U}=n();u=N?.[T(1821)]()||null,g=!1,w=!1,h=W[T(1294)],L===0&&q(W),r=bt(W[T(1294)],{transform:D,snapGrid:Y,snapToGrid:U,containerBounds:u}),a=M0(W.sourceEvent,u)}).on(O(1980),W=>{const T=O,{autoPanOnNodeDrag:N,transform:L,snapGrid:D,snapToGrid:Y,nodeDragThreshold:U,nodeLookup:I}=n(),J=bt(W[T(1294)],{transform:L,snapGrid:D,snapToGrid:Y,containerBounds:u});if(h=W[T(1294)],(W[T(1294)][T(1912)]==="touchmove"&&W.sourceEvent[T(2006)][T(2179)]>1||P&&!I[T(1147)](P))&&(g=!0),!g){if(!d&&N&&f&&(d=!0,j()),!f){const $=M0(W[T(1294)],u),F=$.x-a.x,xe=$.y-a.y;Math[T(857)](F*F+xe*xe)>U&&q(W)}(r.x!==J[T(1464)]||r.y!==J.ySnapped)&&c&&f&&(a=M0(W[T(1294)],u),V(J))}}).on(O(1942),W=>{const T=O;if(!(!f||g)&&(d=!1,f=!1,cancelAnimationFrame(i),c[T(1046)]>0)){const{nodeLookup:N,updateNodePositions:L,onNodeDragStop:D,onSelectionDragStop:Y}=n();if(w&&(L(c,!1),w=!1),x||D||!P&&Y){const[U,I]=Oo({nodeId:P,dragItems:c,nodeLookup:N,dragging:!1});x?.(W[T(1294)],c,U,I),D?.(W[T(1294)],U,I),!P&&Y?.(W.sourceEvent,I)}}}).filter(W=>{const T=O,N=W[T(500)];return!W.button&&(!m||!Vc(N,"."+m,p))&&(!y||Vc(N,y,p))});b[O(414)](H)}function M(){b?.on(".drag",null)}return{update:v,destroy:M}}function o5(e,n,t){const o=[],x={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const r of n.values())ut(x,In(r))>0&&o.push(r);return o}const r5=250;function i5(e,n,t,o){const x=s;let r=[],i=1/0;const c=o5(e,t,n+r5);for(const d of c){const a=[...d[x(1157)][x(610)]?.[x(766)]??[],...d[x(1157)][x(610)]?.[x(500)]??[]];for(const u of a){if(o.nodeId===u[x(1632)]&&o.type===u[x(1912)]&&o.id===u.id)continue;const{x:f,y:b}=un(d,u,u[x(835)],!0),g=Math.sqrt(Math[x(919)](f-e.x,2)+Math.pow(b-e.y,2));g>n||(g<i?(r=[{...u,x:f,y:b}],i=g):g===i&&r[x(1759)]({...u,x:f,y:b}))}}if(!r[x(2179)])return null;if(r[x(2179)]>1){const d=o[x(1912)]===x(766)?x(500):x(766);return r.find(a=>a[x(1912)]===d)??r[0]}return r[0]}function qc(e,n,t,o,x,r=!1){const i=s,c=o[i(1861)](e);if(!c)return null;const d=x==="strict"?c.internals[i(610)]?.[n]:[...c[i(1157)].handleBounds?.[i(766)]??[],...c[i(1157)][i(610)]?.target??[]],a=(t?d?.find(u=>u.id===t):d?.[0])??null;return a&&r?{...a,...un(c,a,a[i(835)],!0)}:a}function Wc(e,n){const t=s;return e||(n?.[t(2044)][t(611)]("target")?t(500):n?.[t(2044)][t(611)](t(766))?t(766):null)}function c5(e,n){let t=null;return n?t=!0:e&&!n&&(t=!1),t}const Xc=()=>!0;function a5(e,{connectionMode:n,connectionRadius:t,handleId:o,nodeId:x,edgeUpdaterType:r,isTarget:i,domNode:c,nodeLookup:d,lib:a,autoPanOnConnect:u,flowId:f,panBy:b,cancelConnection:g,onConnectStart:w,onConnect:h,onConnectEnd:v,isValidConnection:M=Xc,onReconnectEnd:m,updateConnection:y,getTransform:p,getFromHandle:z,autoPanSpeed:P,dragThreshold:G=1,handleDomNode:O}){const V=s,j=zc(e[V(500)]);let q=0,H;const{x:W,y:T}=M0(e),N=Wc(r,O),L=c?.getBoundingClientRect();let D=!1;if(!L||!N)return;const Y=qc(x,N,o,d,n);if(!Y)return;let U=M0(e,L),I=!1,J=null,$=!1,F=null;function xe(){if(!u||!L)return;const[be,E]=gc(U,L,P);b({x:be,y:E}),q=requestAnimationFrame(xe)}const re={...Y,nodeId:x,type:N,position:Y.position},ae=d.get(x);let me={inProgress:!0,isValid:null,from:un(ae,re,ze[V(1029)],!0),fromHandle:re,fromPosition:re[V(835)],fromNode:ae,to:U,toHandle:null,toPosition:sc[re[V(835)]],toNode:null,pointer:U};function se(){D=!0,y(me),w?.(e,{nodeId:x,handleId:o,handleType:N})}G===0&&se();function ee(be){const E=V;if(!D){const{x:oe,y:ve}=M0(be),pe=oe-W,Ie=ve-T;if(!(pe*pe+Ie*Ie>G*G))return;se()}if(!z()||!re){le(be);return}const A=p();U=M0(be,L),H=i5(ht(U,A,!1,[1,1]),t,d,re),!I&&(xe(),I=!0);const Z=Kc(be,{handle:H,connectionMode:n,fromNodeId:x,fromHandleId:o,fromType:i?"target":E(766),isValidConnection:M,doc:j,lib:a,flowId:f,nodeLookup:d});F=Z.handleDomNode,J=Z[E(1561)],$=c5(!!H,Z[E(706)]);const ne=d[E(1861)](x),te=ne?un(ne,re,ze[E(1029)],!0):me[E(1365)],X={...me,from:te,isValid:$,to:Z.toHandle&&$?ux({x:Z.toHandle.x,y:Z[E(824)].y},A):U,toHandle:Z[E(824)],toPosition:$&&Z.toHandle?Z[E(824)].position:sc[re[E(835)]],toNode:Z[E(824)]?d.get(Z[E(824)][E(1632)]):null,pointer:U};y(X),me=X}function le(be){const E=V;if(!("touches"in be&&be[E(2006)][E(2179)]>0)){if(D){(H||F)&&J&&$&&h?.(J);const{inProgress:A,...Z}=me,ne={...Z,toPosition:me[E(824)]?me[E(1523)]:null};v?.(be,ne),r&&m?.(be,ne)}g(),cancelAnimationFrame(q),I=!1,$=!1,J=null,F=null,j[E(1665)](E(920),ee),j[E(1665)](E(814),le),j[E(1665)]("touchmove",ee),j.removeEventListener(E(851),le)}}j.addEventListener(V(920),ee),j[V(1892)]("mouseup",le),j.addEventListener("touchmove",ee),j[V(1892)](V(851),le)}function Kc(e,{handle:n,connectionMode:t,fromNodeId:o,fromHandleId:x,fromType:r,doc:i,lib:c,flowId:d,isValidConnection:a=Xc,nodeLookup:u}){const f=s,b=r==="target",g=n?i[f(1525)]("."+c+f(1960)+d+"-"+n?.[f(1632)]+"-"+n?.id+"-"+n?.[f(1912)]+'"]'):null,{x:w,y:h}=M0(e),v=i[f(901)](w,h),M=v?.classList[f(611)](c+f(1472))?v:g,m={handleDomNode:M,isValid:!1,connection:null,toHandle:null};if(M){const y=Wc(void 0,M),p=M[f(659)](f(579)),z=M[f(659)](f(1969)),P=M[f(2044)][f(611)](f(1424)),G=M[f(2044)][f(611)](f(1407));if(!p||!y)return m;const O={source:b?p:o,sourceHandle:b?z:x,target:b?o:p,targetHandle:b?x:z};m[f(1561)]=O;const V=P&&G,j=V&&(t===Sn[f(600)]?b&&y===f(766)||!b&&y===f(500):p!==o||z!==x);m[f(706)]=j&&a(O),m[f(824)]=qc(p,y,z,u,t,!0)}return m}const Ho={onPointerDown:a5,isValid:Kc};function s5({domNode:e,panZoom:n,getTransform:t,getViewScale:o}){const x=u0(e);function r({translateExtent:c,width:d,height:a,zoomStep:u=1,pannable:f=!0,zoomable:b=!0,inversePan:g=!1}){const w=_0x5590,h=p=>{const z=_0x5590;if(p[z(1294)][z(1912)]!==z(1849)||!n)return;const P=t(),G=p.sourceEvent.ctrlKey&&gt()?10:1,O=-p.sourceEvent[z(1073)]*(p.sourceEvent[z(924)]===1?.05:p.sourceEvent[z(924)]?1:.002)*u,V=P[2]*Math[z(919)](2,O*G);n.scaleTo(V)};let v=[0,0];const M=p=>{const z=_0x5590;(p[z(1294)][z(1912)]===z(1618)||p[z(1294)].type===z(1927))&&(v=[p[z(1294)].clientX??p.sourceEvent.touches[0].clientX,p.sourceEvent[z(1301)]??p[z(1294)].touches[0].clientY])},m=p=>{const z=_0x5590,P=t();if(p[z(1294)][z(1912)]!==z(920)&&p.sourceEvent[z(1912)]!==z(1328)||!n)return;const G=[p[z(1294)][z(1072)]??p[z(1294)][z(2006)][0][z(1072)],p[z(1294)][z(1301)]??p[z(1294)].touches[0][z(1301)]],O=[G[0]-v[0],G[1]-v[1]];v=G;const V=o()*Math[z(2172)](P[2],Math[z(1672)](P[2]))*(g?-1:1),j={x:P[0]-O[0]*V,y:P[1]-O[1]*V},q=[[0,0],[d,a]];n[z(672)]({x:j.x,y:j.y,zoom:P[2]},q,c)},y=rc().on(w(1310),M).on(w(1675),f?m:null).on("zoom.wheel",b?h:null);x[w(414)](y,{})}function i(){const c=_0x5590;x.on(c(1675),null)}return{update:r,destroy:i,pointer:v0}}const hx=e=>({x:e.x,y:e.y,zoom:e.k}),To=({x:e,y:n,zoom:t})=>cx.translate(e,n).scale(t),jn=(e,n)=>e[s(500)].closest("."+n),Zc=(e,n)=>n===2&&Array[s(565)](e)&&e[s(1419)](2),l5=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Vo=(e,n=0,t=l5,o=()=>{})=>{const x=s,r=typeof n===x(2059)&&n>0;return!r&&o(),r?e[x(1237)]().duration(n).ease(t).on(x(1942),o):e},Rc=e=>{const n=s,t=e[n(1679)]&&gt()?10:1;return-e[n(1073)]*(e[n(924)]===1?.05:e.deltaMode?1:.002)*t};function d5({zoomPanValues:e,noWheelClassName:n,d3Selection:t,d3Zoom:o,panOnScrollMode:x,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:c,onPanZoom:d,onPanZoomEnd:a}){return u=>{const f=_0x5590;if(jn(u,n))return u[f(1679)]&&u.preventDefault(),!1;u[f(810)](),u[f(774)]();const b=t[f(2090)](f(501)).k||1;if(u[f(1679)]&&i){const M=v0(u),m=Rc(u),y=b*Math[f(919)](2,m);o[f(407)](t,y,M,u);return}const g=u[f(924)]===1?20:1;let w=x===ln.Vertical?0:u[f(628)]*g,h=x===ln[f(462)]?0:u[f(1073)]*g;!gt()&&u[f(1139)]&&x!==ln[f(1520)]&&(w=u[f(1073)]*g,h=0),o[f(1451)](t,-(w/b)*r,-(h/b)*r,{internal:!0});const v=hx(t[f(2090)](f(501)));clearTimeout(e[f(494)]),e.isPanScrolling?(d?.(u,v),e[f(494)]=setTimeout(()=>{const M=f;a?.(u,v),e[M(348)]=!1},150)):(e[f(348)]=!0,c?.(u,v))}}function u5({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:t}){return function(o,x){const r=_0x5590,i=o.type==="wheel",c=!n&&i&&!o[r(1679)],d=jn(o,e);if(o[r(1679)]&&i&&d&&o[r(810)](),c||d)return null;o[r(810)](),t[r(414)](this,o,x)}}function f5({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:t}){return o=>{const x=_0x5590;if(o[x(1294)]?.internal)return;const r=hx(o[x(1121)]);e[x(1975)]=o[x(1294)]?.button||0,e[x(2190)]=!0,e[x(784)]=r,o[x(1294)]?.[x(1912)]===x(1618)&&n(!0),t&&t?.(o[x(1294)],r)}}function h5({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:t,onTransformChange:o,onPanZoom:x}){return r=>{const i=_0x5590;e.usedRightMouseButton=!!(t&&Zc(n,e[i(1975)]??0)),!r[i(1294)]?.[i(966)]&&o([r[i(1121)].x,r[i(1121)].y,r.transform.k]),x&&!r[i(1294)]?.[i(393)]&&x?.(r[i(1294)],hx(r[i(1121)]))}}function g5({zoomPanValues:e,panOnDrag:n,panOnScroll:t,onDraggingChange:o,onPanZoomEnd:x,onPaneContextMenu:r}){return i=>{const c=_0x5590;if(!i.sourceEvent?.[c(393)]&&(e[c(2190)]=!1,r&&Zc(n,e[c(1975)]??0)&&!e.usedRightMouseButton&&i[c(1294)]&&r(i[c(1294)]),e.usedRightMouseButton=!1,o(!1),x)){const d=hx(i[c(1121)]);e[c(784)]=d,clearTimeout(e[c(609)]),e[c(609)]=setTimeout(()=>{x?.(i[c(1294)],d)},t?150:0)}}}function b5({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:t,panOnDrag:o,panOnScroll:x,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:c,noPanClassName:d,lib:a,connectionInProgress:u}){return f=>{const b=_0x5590,g=e||n,w=t&&f[b(1679)],h=f.type==="wheel";if(f[b(752)]===1&&f.type===b(1618)&&(jn(f,a+b(882))||jn(f,a+b(1095))))return!0;if(!o&&!g&&!x&&!r&&!t||i||u&&!h||jn(f,c)&&h||jn(f,d)&&(!h||x&&h&&!e)||!t&&f[b(1679)]&&h)return!1;if(!t&&f.type===b(1927)&&f[b(2006)]?.[b(2179)]>1)return f[b(810)](),!1;if(!g&&!x&&!w&&h||!o&&(f.type===b(1618)||f[b(1912)]===b(1927))||Array[b(565)](o)&&!o[b(1419)](f[b(752)])&&f[b(1912)]===b(1618))return!1;const v=Array[b(565)](o)&&o[b(1419)](f[b(752)])||!f[b(752)]||f.button<=1;return(!f[b(1679)]||h)&&v}}function y5({domNode:e,minZoom:n,maxZoom:t,translateExtent:o,viewport:x,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:c,onDraggingChange:d}){const a=s,u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e[a(1821)](),b=rc()[a(668)]([n,t])[a(1723)](o),g=u0(e).call(b);y({x:x.x,y:x.y,zoom:kn(x[a(1675)],n,t)},[[0,0],[f[a(1710)],f[a(1355)]]],o);const w=g.on(a(2004)),h=g.on(a(2109));b[a(1069)](Rc);function v(H,W){const T=a;return g?new Promise(N=>{const L=_0x5590;b?.interpolate(W?.[L(1939)]===L(1584)?tt:Qt)[L(1121)](Vo(g,W?.[L(850)],W?.[L(1834)],()=>N(!0)),H)}):Promise[T(1952)](!1)}function M({noWheelClassName:H,noPanClassName:W,onPaneContextMenu:T,userSelectionActive:N,panOnScroll:L,panOnDrag:D,panOnScrollMode:Y,panOnScrollSpeed:U,preventScrolling:I,zoomOnPinch:J,zoomOnScroll:$,zoomOnDoubleClick:F,zoomActivationKeyPressed:xe,lib:re,onTransformChange:ae,connectionInProgress:ue,paneClickDistance:me,selectionOnDrag:se}){const ee=a;N&&!u[ee(2190)]&&m();const le=L&&!xe&&!N;b.clickDistance(se?1/0:!C0(me)||me<0?0:me);const be=le?d5({zoomPanValues:u,noWheelClassName:H,d3Selection:g,d3Zoom:b,panOnScrollMode:Y,panOnScrollSpeed:U,zoomOnPinch:J,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:c}):u5({noWheelClassName:H,preventScrolling:I,d3ZoomHandler:w});if(g.on(ee(2004),be,{passive:!1}),!N){const A=f5({zoomPanValues:u,onDraggingChange:d,onPanZoomStart:i});b.on("start",A);const Z=h5({zoomPanValues:u,panOnDrag:D,onPaneContextMenu:!!T,onPanZoom:r,onTransformChange:ae});b.on(ee(1675),Z);const ne=g5({zoomPanValues:u,panOnDrag:D,panOnScroll:L,onPaneContextMenu:T,onPanZoomEnd:c,onDraggingChange:d});b.on(ee(1942),ne)}const E=b5({zoomActivationKeyPressed:xe,panOnDrag:D,zoomOnScroll:$,panOnScroll:L,zoomOnDoubleClick:F,zoomOnPinch:J,userSelectionActive:N,noPanClassName:W,noWheelClassName:H,lib:re,connectionInProgress:ue});b.filter(E),F?g.on("dblclick.zoom",h):g.on(ee(2109),null)}function m(){const H=a;b.on(H(1675),null)}async function y(H,W,T){const N=To(H),L=b?.constrain()(N,W,T);return L&&await v(L),new Promise(D=>D(L))}async function p(H,W){const T=To(H);return await v(T,W),new Promise(N=>N(T))}function z(H){const W=a;if(g){const T=To(H),N=g.property("__zoom");(N.k!==H[W(1675)]||N.x!==H.x||N.y!==H.y)&&b?.[W(1121)](g,T,null,{sync:!0})}}function P(){const H=a,W=g?xc(g[H(1504)]()):{x:0,y:0,k:1};return{x:W.x,y:W.y,zoom:W.k}}function G(H,W){return g?new Promise(T=>{const N=_0x5590;b?.[N(1939)](W?.[N(1939)]==="linear"?tt:Qt)[N(407)](Vo(g,W?.[N(850)],W?.ease,()=>T(!0)),H)}):Promise.resolve(!1)}function O(H,W){const T=a;return g?new Promise(N=>{const L=_0x5590;b?.[L(1939)](W?.[L(1939)]===L(1584)?tt:Qt).scaleBy(Vo(g,W?.[L(850)],W?.[L(1834)],()=>N(!0)),H)}):Promise[T(1952)](!1)}function V(H){b?.[a(668)](H)}function j(H){b?.[a(1723)](H)}function q(H){const W=a,T=!C0(H)||H<0?0:H;b?.[W(1614)](T)}return{update:M,destroy:m,setViewport:p,setViewportConstrained:y,getViewport:P,scaleTo:G,scaleBy:O,setScaleExtent:V,setTranslateExtent:j,syncViewport:z,setClickDistance:q}}var Yn;(function(e){const n=s;e[n(828)]=n(1190),e.Handle=n(932)})(Yn||(Yn={}));function m5({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 Jc(e){const n=s,t=e[n(1419)](n(1790))||e[n(1419)](n(937)),o=e.includes(n(689))||e.includes(n(1117)),x=e[n(1419)]("left"),r=e[n(1419)](n(1117));return{isHorizontal:t,isVertical:o,affectsX:x,affectsY:r}}function J0(e,n){return Math.max(0,n-e)}function _0(e,n){return Math.max(0,e-n)}function gx(e,n,t){return Math[s(2172)](0,n-e,e-t)}function _c(e,n){return e?!n:n}function w5(e,n,t,o,x,r,i,c){const d=s;let{affectsX:a,affectsY:u}=n;const{isHorizontal:f,isVertical:b}=n,g=f&&b,{xSnapped:w,ySnapped:h}=t,{minWidth:v,maxWidth:M,minHeight:m,maxHeight:y}=o,{x:p,y:z,width:P,height:G,aspectRatio:O}=e;let V=Math[d(1938)](f?w-e[d(1627)]:0),j=Math[d(1938)](b?h-e.pointerY:0);const q=P+(a?-V:V),H=G+(u?-j:j),W=-r[0]*P,T=-r[1]*G;let N=gx(q,v,M),L=gx(H,m,y);if(i){let U=0,I=0;a&&V<0?U=J0(p+V+W,i[0][0]):!a&&V>0&&(U=_0(p+q+W,i[1][0])),u&&j<0?I=J0(z+j+T,i[0][1]):!u&&j>0&&(I=_0(z+H+T,i[1][1])),N=Math[d(2172)](N,U),L=Math.max(L,I)}if(c){let U=0,I=0;a&&V>0?U=_0(p+V,c[0][0]):!a&&V<0&&(U=J0(p+q,c[1][0])),u&&j>0?I=_0(z+j,c[0][1]):!u&&j<0&&(I=J0(z+H,c[1][1])),N=Math.max(N,U),L=Math[d(2172)](L,I)}if(x){if(f){const U=gx(q/O,m,y)*O;if(N=Math[d(2172)](N,U),i){let I=0;!a&&!u||a&&!u&&g?I=_0(z+T+q/O,i[1][1])*O:I=J0(z+T+(a?V:-V)/O,i[0][1])*O,N=Math[d(2172)](N,I)}if(c){let I=0;!a&&!u||a&&!u&&g?I=J0(z+q/O,c[1][1])*O:I=_0(z+(a?V:-V)/O,c[0][1])*O,N=Math[d(2172)](N,I)}}if(b){const U=gx(H*O,v,M)/O;if(L=Math[d(2172)](L,U),i){let I=0;!a&&!u||u&&!a&&g?I=_0(p+H*O+W,i[1][0])/O:I=J0(p+(u?j:-j)*O+W,i[0][0])/O,L=Math[d(2172)](L,I)}if(c){let I=0;!a&&!u||u&&!a&&g?I=J0(p+H*O,c[1][0])/O:I=_0(p+(u?j:-j)*O,c[0][0])/O,L=Math[d(2172)](L,I)}}}j=j+(j<0?L:-L),V=V+(V<0?N:-N),x&&(g?q>H*O?j=(_c(a,u)?-V:V)/O:V=(_c(a,u)?-j:j)*O:f?(j=V/O,u=a):(V=j*O,a=u));const D=a?p+V:p,Y=u?z+j:z;return{width:P+(a?-V:V),height:G+(u?-j:j),x:r[0]*V*(a?-1:1)+D,y:r[1]*j*(u?-1:1)+Y}}const Qc={width:0,height:0,x:0,y:0},v5={...Qc,pointerX:0,pointerY:0,aspectRatio:1};function p5(e){const n=s;return[[0,0],[e[n(510)][n(1710)],e[n(510)][n(1355)]]]}function z5(e,n,t){const o=s,x=n[o(835)].x+e[o(835)].x,r=n.position.y+e[o(835)].y,i=e.measured[o(1710)]??0,c=e[o(510)][o(1355)]??0,d=t[0]*i,a=t[1]*c;return[[x-d,r-a],[x+i-d,r+c-a]]}function C5({domNode:e,nodeId:n,getStoreItems:t,onChange:o,onEnd:x}){const r=s,i=u0(e);let c={controlDirection:Jc("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number[r(896)],maxHeight:Number[r(896)]},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:u,boundaries:f,keepAspectRatio:b,resizeDirection:g,onResizeStart:w,onResize:h,onResizeEnd:v,shouldResize:M}){const m=r;let y={...Qc},p={...v5};c={boundaries:f,resizeDirection:g,keepAspectRatio:b,controlDirection:Jc(u)};let z,P=null,G=[],O,V,j,q=!1;const H=Si().on("start",W=>{const T=_0x5590,{nodeLookup:N,transform:L,snapGrid:D,snapToGrid:Y,nodeOrigin:U,paneDomNode:I}=t();if(z=N[T(1861)](n),!z)return;P=I?.getBoundingClientRect()??null;const{xSnapped:J,ySnapped:$}=bt(W[T(1294)],{transform:L,snapGrid:D,snapToGrid:Y,containerBounds:P});y={width:z[T(510)].width??0,height:z[T(510)][T(1355)]??0,x:z[T(835)].x??0,y:z[T(835)].y??0},p={...y,pointerX:J,pointerY:$,aspectRatio:y[T(1710)]/y[T(1355)]},O=void 0,z[T(1907)]&&(z[T(502)]===T(1923)||z[T(1935)])&&(O=N[T(1861)](z[T(1907)]),V=O&&z[T(502)]===T(1923)?p5(O):void 0),G=[],j=void 0;for(const[F,xe]of N)if(xe.parentId===n&&(G[T(1759)]({id:F,position:{...xe[T(835)]},extent:xe.extent}),xe.extent===T(1923)||xe.expandParent)){const re=z5(xe,z,xe.origin??U);j?j=[[Math[T(775)](re[0][0],j[0][0]),Math.min(re[0][1],j[0][1])],[Math[T(2172)](re[1][0],j[1][0]),Math[T(2172)](re[1][1],j[1][1])]]:j=re}w?.(W,{...y})}).on(m(1980),W=>{const T=m,{transform:N,snapGrid:L,snapToGrid:D,nodeOrigin:Y}=t(),U=bt(W.sourceEvent,{transform:N,snapGrid:L,snapToGrid:D,containerBounds:P}),I=[];if(!z)return;const{x:J,y:$,width:F,height:xe}=y,re={},ae=z[T(1639)]??Y,{width:ue,height:me,x:se,y:ee}=w5(p,c[T(2099)],U,c[T(621)],c[T(1806)],ae,V,j),le=ue!==F,be=me!==xe,E=se!==J&&le,A=ee!==$&&be;if(!E&&!A&&!le&&!be)return;if((E||A||ae[0]===1||ae[1]===1)&&(re.x=E?se:y.x,re.y=A?ee:y.y,y.x=re.x,y.y=re.y,G[T(2179)]>0)){const X=se-J,oe=ee-$;for(const ve of G)ve[T(835)]={x:ve[T(835)].x-X+ae[0]*(ue-F),y:ve[T(835)].y-oe+ae[1]*(me-xe)},I.push(ve)}if((le||be)&&(re.width=le&&(!c[T(1393)]||c[T(1393)]===T(1240))?ue:y[T(1710)],re[T(1355)]=be&&(!c[T(1393)]||c.resizeDirection===T(1323))?me:y[T(1355)],y[T(1710)]=re.width,y[T(1355)]=re[T(1355)]),O&&z[T(1935)]){const X=ae[0]*(re.width??0);re.x&&re.x<X&&(y.x=X,p.x=p.x-(re.x-X));const oe=ae[1]*(re[T(1355)]??0);re.y&&re.y<oe&&(y.y=oe,p.y=p.y-(re.y-oe))}const Z=m5({width:y[T(1710)],prevWidth:F,height:y[T(1355)],prevHeight:xe,affectsX:c[T(2099)][T(467)],affectsY:c[T(2099)][T(1840)]}),ne={...y,direction:Z};M?.(W,ne)!==!1&&(q=!0,h?.(W,ne),o(re,I))}).on("end",W=>{q&&(v?.(W,{...y}),x?.({...y}),q=!1)});i[m(414)](H)}function a(){const u=r;i.on(u(516),null)}return{update:d,destroy:a}}var bx={exports:{}},qo={},yx={exports:{}},Wo={},Fc;function M5(){const e=s;if(Fc)return Wo;Fc=1;var n=B;function t(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}var o=e(1347)===typeof Object.is?Object.is:t,x=n[e(883)],r=n.useEffect,i=n[e(1624)],c=n[e(1743)];function d(b,g){const w=e;var h=g(),v=x({inst:{value:h,getSnapshot:g}}),M=v[0][w(719)],m=v[1];return i(function(){const y=w;M[y(1044)]=h,M[y(2095)]=g,a(M)&&m({inst:M})},[b,h,g]),r(function(){return a(M)&&m({inst:M}),b(function(){a(M)&&m({inst:M})})},[b]),c(h),h}function a(b){const g=e;var w=b[g(2095)];b=b[g(1044)];try{var h=w();return!o(b,h)}catch{return!0}}function u(b,g){return g()}var f=e(383)===typeof window||e(383)===typeof window[e(821)]||e(383)===typeof window[e(821)].createElement?u:d;return Wo.useSyncExternalStore=n[e(1997)]!==void 0?n[e(1997)]:f,Wo}var Xo={},$c;function B5(){const e=s;return $c||($c=1,e(895)!==process.env.NODE_ENV&&(function(){const n=e;function t(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function o(h,v){const M=_0x5590;b||i.startTransition===void 0||(b=!0,console[M(1036)](M(1769)));var m=v();if(!g){var y=v();c(m,y)||(console[M(1036)](M(1836)),g=!0)}y=d({inst:{value:m,getSnapshot:v}});var p=y[0][M(719)],z=y[1];return u(function(){const P=M;p.value=m,p[P(2095)]=v,x(p)&&z({inst:p})},[h,m,v]),a(function(){return x(p)&&z({inst:p}),h(function(){x(p)&&z({inst:p})})},[h]),f(m),m}function x(h){var M=h[_0x5590(2095)];h=h.value;try{var m=M();return!c(h,m)}catch{return!0}}function r(h,v){return v()}n(383)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&n(1347)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(421)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(421)](Error());var i=B,c=n(1347)===typeof Object.is?Object.is:t,d=i[n(883)],a=i[n(2005)],u=i[n(1624)],f=i[n(1743)],b=!1,g=!1,w=n(383)===typeof window||n(383)===typeof window.document||n(383)===typeof window[n(821)][n(2142)]?r:o;Xo[n(1997)]=i[n(1997)]!==void 0?i[n(1997)]:w,n(383)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&n(1347)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(887)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(887)](Error())})()),Xo}var ea;function na(){const e=s;return ea||(ea=1,process.env.NODE_ENV===e(895)?yx.exports=M5():yx[e(1896)]=B5()),yx[e(1896)]}var ta;function D5(){const e=s;if(ta)return qo;ta=1;var n=B,t=na();function o(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var x=e(1347)===typeof Object.is?Object.is:o,r=t.useSyncExternalStore,i=n[e(780)],c=n.useEffect,d=n[e(1581)],a=n.useDebugValue;return qo[e(1524)]=function(u,f,b,g,w){const h=e;var v=i(null);if(v[h(523)]===null){var M={hasValue:!1,value:null};v[h(523)]=M}else M=v[h(523)];v=d(function(){function y(O){const V=_0x5590;if(!p){if(p=!0,z=O,O=g(O),w!==void 0&&M.hasValue){var j=M[V(1044)];if(w(j,O))return P=j}return P=O}if(j=P,x(z,O))return j;var q=g(O);return w!==void 0&&w(j,q)?(z=O,j):(z=O,P=q)}var p=!1,z,P,G=b===void 0?null:b;return[function(){return y(f())},G===null?void 0:function(){return y(G())}]},[f,b,g,w]);var m=r(u,v[0],v[1]);return c(function(){const y=h;M[y(2025)]=!0,M[y(1044)]=m},[m]),a(m),m},qo}var Ko={},xa;function L5(){return xa||(xa=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x5590;function n(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}e(383)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1347)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(421)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(421)](Error());var t=B,o=na(),x=typeof Object.is=="function"?Object.is:n,r=o[e(1997)],i=t[e(780)],c=t[e(2005)],d=t[e(1581)],a=t[e(1743)];Ko[e(1524)]=function(u,f,b,g,w){const h=e;var v=i(null);if(v[h(523)]===null){var M={hasValue:!1,value:null};v.current=M}else M=v[h(523)];v=d(function(){function y(O){const V=_0x5590;if(!p){if(p=!0,z=O,O=g(O),w!==void 0&&M[V(2025)]){var j=M[V(1044)];if(w(j,O))return P=j}return P=O}if(j=P,x(z,O))return j;var q=g(O);return w!==void 0&&w(j,q)?(z=O,j):(z=O,P=q)}var p=!1,z,P,G=b===void 0?null:b;return[function(){return y(f())},G===null?void 0:function(){return y(G())}]},[f,b,g,w]);var m=r(u,v[0],v[1]);return c(function(){const y=h;M[y(2025)]=!0,M[y(1044)]=m},[m]),a(m),m},e(383)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1347)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(887)](Error())})()),Ko}var oa;function N5(){const e=s;return oa||(oa=1,process.env.NODE_ENV===e(895)?bx.exports=D5():bx[e(1896)]=L5()),bx[e(1896)]}var S5=N5();const k5=Vn(S5),I5={},ra=e=>{let n;const t=new Set,o=(u,f)=>{const b=_0x5590,g=typeof u=="function"?u(n):u;if(!Object.is(g,n)){const w=n;n=f??(typeof g!="object"||g===null)?g:Object[b(1060)]({},n,g),t[b(1322)](h=>h(n,w))}},x=()=>n,r=()=>a,i=u=>{const f=_0x5590;return t[f(729)](u),()=>t[f(1234)](u)},c=()=>{const u=_0x5590;(I5?"production":void 0)!==u(895)&&console[u(2015)](u(1604)),t.clear()},d={setState:o,getState:x,getInitialState:r,subscribe:i,destroy:c},a=n=e(o,x,d);return d},P5=e=>e?ra(e):ra,{useDebugValue:A5}=B,{useSyncExternalStoreWithSelector:j5}=k5,Y5=e=>e;function ia(e,n=Y5,t){const o=s,x=j5(e[o(1745)],e.getState,e[o(1397)]||e[o(685)],n,t);return A5(x),x}const ca=(e,n)=>{const t=s,o=P5(e),x=(r,i=n)=>ia(o,r,i);return Object[t(1060)](x,o),x},E5=(e,n)=>e?ca(e,n):ca;function Ue(e,n){const t=s;if(Object.is(e,n))return!0;if(typeof e!==t(878)||e===null||typeof n!==t(878)||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e[t(1046)]!==n.size)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(1046)]!==n[t(1046)])return!1;for(const x of e)if(!n[t(1147)](x))return!1;return!0}const o=Object[t(999)](e);if(o.length!==Object.keys(n)[t(2179)])return!1;for(const x of o)if(!Object[t(2107)][t(911)][t(414)](n,x)||!Object.is(e[x],n[x]))return!1;return!0}const mx=B[s(531)](null),U5=mx[s(431)],aa=f0[s(1458)]();function Pe(e,n){const t=s,o=B[t(1773)](mx);if(o===null)throw new Error(aa);return ia(o,e,n)}function Ge(){const e=s,n=B[e(1773)](mx);if(n===null)throw new Error(aa);return B[e(1581)](()=>({getState:n[e(1305)],setState:n.setState,subscribe:n[e(1745)]}),[n])}const sa={display:s(988)},G5={position:s(2122),width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:s(926),clipPath:"inset(100%)"},la=s(1471),da=s(776),O5=s(1651),H5=e=>e[s(670)],T5=e=>e[s(347)];function V5({rfId:e}){const n=s,t=Pe(H5);return l[n(1375)](n(1037),{id:O5+"-"+e,"aria-live":"assertive","aria-atomic":n(1981),style:G5,children:t})}function q5({rfId:e,disableKeyboardA11y:n}){const t=s,o=Pe(T5);return l[t(884)](l.Fragment,{children:[l[t(1375)](t(1037),{id:la+"-"+e,style:sa,children:n?o["node.a11yDescription.default"]:o[t(1931)]}),l[t(1375)](t(1037),{id:da+"-"+e,style:sa,children:o[t(1325)]}),!n&&l[t(1375)](V5,{rfId:e})]})}const wx=B.forwardRef(({position:e=s(1984),children:n,className:t,style:o,...x},r)=>{const i=s,c=(""+e)[i(897)]("-");return l[i(1375)]("div",{className:Xe(["react-flow__panel",t,...c]),style:o,ref:r,...x,children:n})});wx.displayName=s(1560);function W5({proOptions:e,position:n=s(1241)}){const t=s;return e?.[t(1064)]?null:l[t(1375)](wx,{position:n,className:t(2135),"data-message":t(2182),children:l.jsx("a",{href:t(1646),target:"_blank",rel:t(599),"aria-label":t(633),children:"React Flow"})})}const X5=e=>{const n=s,t=[],o=[];for(const[,x]of e.nodeLookup)x.selected&&t[n(1759)](x[n(1157)][n(1275)]);for(const[,x]of e[n(2052)])x[n(1274)]&&o[n(1759)](x);return{selectedNodes:t,selectedEdges:o}},vx=e=>e.id;function K5(e,n){const t=s;return Ue(e.selectedNodes[t(474)](vx),n.selectedNodes[t(474)](vx))&&Ue(e.selectedEdges[t(474)](vx),n[t(1516)][t(474)](vx))}function Z5({onSelectionChange:e}){const n=s,t=Ge(),{selectedNodes:o,selectedEdges:x}=Pe(X5,K5);return B[n(2005)](()=>{const r=n,i={nodes:o,edges:x};e?.(i),t[r(1305)]()[r(1260)][r(1322)](c=>c(i))},[o,x,e]),null}const R5=e=>!!e.onSelectionChangeHandlers;function J5({onSelectionChange:e}){const n=s,t=Pe(R5);return e||t?l[n(1375)](Z5,{onSelectionChange:e}):null}const Zo=typeof window<"u"?B[s(1624)]:B[s(2005)],ua=[0,0],_5={x:0,y:0,zoom:1},Q5=[s(960),s(2083),s(1788),s(1638),s(1902),"onConnectStart",s(2108),s(1012),s(1866),"nodesDraggable",s(2054),s(563),"nodesFocusable",s(909),s(679),s(1276),s(1532),"minZoom",s(1356),s(790),s(1932),s(709),"elementsSelectable",s(1579),s(1556),s(1406),s(1723),s(1937),"defaultEdgeOptions",s(1429),s(1169),"onNodesDelete",s(427),s(680),"onNodeDrag",s(1728),s(1754),s(1361),s(1658),s(566),s(2123),"onMove",s(508),"noPanClassName",s(1031),s(1298),s(733),"onError",s(2050),s(1100),s(1690),s(356),"connectionDragThreshold",s(1611),s(1761),s(768),s(347),s(1316)],fa=[...Q5,s(638)],F5=e=>({setNodes:e[s(410)],setEdges:e[s(1040)],setMinZoom:e[s(1282)],setMaxZoom:e.setMaxZoom,setTranslateExtent:e[s(1457)],setNodeExtent:e[s(1963)],reset:e[s(1775)],setDefaultNodesAndEdges:e[s(2067)]}),ha={translateExtent:at,nodeOrigin:ua,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:s(1856),rfId:"1"};function $5(e){const n=s,{setNodes:t,setEdges:o,setMinZoom:x,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:a}=Pe(F5,Ue),u=Ge();Zo(()=>{const b=_0x5590;return a(e[b(1788)],e.defaultEdges),()=>{const g=b;f[g(523)]=ha,d()}},[]);const f=B[n(780)](ha);return Zo(()=>{const b=n;for(const g of fa){const w=e[g],h=f[b(523)][g];w!==h&&typeof e[g]!==b(383)&&(g==="nodes"?t(w):g===b(2083)?o(w):g===b(1132)?x(w):g===b(1356)?r(w):g===b(1723)?i(w):g==="nodeExtent"?c(w):g===b(347)?u[b(1770)]({ariaLabelConfig:E2(w)}):g===b(1429)?u[b(1770)]({fitViewQueued:w}):g===b(1169)?u.setState({fitViewOptions:w}):u[b(1770)]({[g]:w}))}f.current=e},fa[n(474)](b=>e[b])),null}function ga(){const e=s;return typeof window===e(383)||!window[e(816)]?null:window[e(816)](e(2177))}function eh(e){const n=s,[t,o]=B[n(883)](e==="system"?null:e);return B[n(2005)](()=>{const x=n;if(e!==x(1358)){o(e);return}const r=ga(),i=()=>o(r?.[x(1844)]?x(1842):x(1592));return i(),r?.[x(1892)](x(734),i),()=>{const c=x;r?.[c(1665)](c(734),i)}},[e]),t!==null?t:ga()?.[n(1844)]?n(1842):n(1592)}const ba=typeof document!==s(383)?document:null;function yt(e=null,n={target:ba,actInsideInputWithModifier:!0}){const t=s,[o,x]=B[t(883)](!1),r=B.useRef(!1),i=B[t(780)](new Set([])),[c,d]=B[t(1581)](()=>{const a=t;if(e!==null){const u=Array.isArray(e)?e:[e],f=u.filter(g=>typeof g===a(1705))[a(474)](g=>g[a(830)]("+",`
4
+ `)[a(830)](`
10
5
 
11
6
  `,`
12
- +`)[s(440)](`
13
- `)),h=d[s(1906)]((y,v)=>y[s(1823)](...v),[]);return[d,h]}return[[],[]]},[e]);return L.useEffect(()=>{const s=t,u=n?.[s(1385)]??Qa,d=n?.[s(1532)]??!0;if(e!==null){const h=g=>{const w=s;if(r.current=g[w(1374)]||g[w(977)]||g.shiftKey||g[w(1649)],(!r[w(1890)]||r[w(1890)]&&!d)&&ra(g))return!1;const b=ec(g[w(1958)],f);if(i.current.add(g[b]),$a(a,i.current,!1)){const m=g[w(1584)]?.()?.[0]||g[w(1385)],z=m?.[w(1094)]===w(920)||m?.[w(1094)]==="A";n[w(1061)]!==!1&&(r.current||!z)&&g[w(1061)](),x(!0)}},y=g=>{const w=s,M=ec(g[w(1958)],f);$a(a,i[w(1890)],!0)?(x(!1),i[w(1890)][w(767)]()):i[w(1890)][w(579)](g[M]),g[w(387)]==="Meta"&&i[w(1890)][w(767)](),r[w(1890)]=!1},v=()=>{i[s(1890)].clear(),x(!1)};return u?.[s(1018)](s(1330),h),u?.[s(1018)](s(291),y),window[s(1018)]("blur",v),window[s(1018)](s(382),v),()=>{const g=s;u?.[g(1196)](g(1330),h),u?.[g(1196)](g(291),y),window[g(1196)](g(1481),v),window.removeEventListener(g(382),v)}}},[e,x]),o}function $a(e,n,t){const o=c;return e[o(1027)](x=>t||x.length===n[o(613)])[o(540)](x=>x.every(r=>n[o(806)](r)))}function ec(e,n){const t=c;return n[t(1486)](e)?t(1958):t(387)}const Xh=()=>{const e=Ye();return L.useMemo(()=>{const n=_0x1d61;return{zoomIn:t=>{const o=_0x1d61,{panZoom:x}=e[o(1772)]();return x?x[o(898)](1.2,t):Promise[o(943)](!1)},zoomOut:t=>{const o=_0x1d61,{panZoom:x}=e[o(1772)]();return x?x[o(898)](1/1.2,t):Promise[o(943)](!1)},zoomTo:(t,o)=>{const x=_0x1d61,{panZoom:r}=e.getState();return r?r[x(1038)](t,o):Promise[x(943)](!1)},getZoom:()=>e[n(1772)]()[n(1225)][2],setViewport:async(t,o)=>{const x=n,{transform:[r,i,a],panZoom:f}=e[x(1772)]();return f?(await f.setViewport({x:t.x??r,y:t.y??i,zoom:t[x(441)]??a},o),Promise[x(943)](!0)):Promise[x(943)](!1)},getViewport:()=>{const t=n,[o,x,r]=e[t(1772)]()[t(1225)];return{x:o,y:x,zoom:r}},setCenter:async(t,o,x)=>{const r=n;return e.getState()[r(362)](t,o,x)},fitBounds:async(t,o)=>{const x=n,{width:r,height:i,minZoom:a,maxZoom:f,panZoom:s}=e[x(1772)](),u=co(t,r,i,a,f,o?.[x(1077)]??.1);return s?(await s.setViewport(u,{duration:o?.[x(238)],ease:o?.[x(1832)],interpolate:o?.[x(1284)]}),Promise[x(943)](!0)):Promise[x(943)](!1)},screenToFlowPosition:(t,o={})=>{const x=n,{transform:r,snapGrid:i,snapToGrid:a,domNode:f}=e[x(1772)]();if(!f)return t;const{x:s,y:u}=f[x(1593)](),d={x:t.x-s,y:t.y-u},h=o[x(958)]??i,y=o[x(336)]??a;return xt(d,r,y,h)},flowToScreenPosition:t=>{const o=n,{transform:x,domNode:r}=e[o(1772)]();if(!r)return t;const{x:i,y:a}=r[o(1593)](),f=Qt(t,x);return{x:f.x+i,y:f.y+a}}}},[])};function nc(e,n){const t=c,o=[],x=new Map,r=[];for(const i of e)if(i[t(893)]==="add"){r[t(1955)](i);continue}else if(i.type===t(1946)||i.type==="replace")x.set(i.id,[i]);else{const a=x.get(i.id);a?a[t(1955)](i):x[t(1676)](i.id,[i])}for(const i of n){const a=x[t(1280)](i.id);if(!a){o[t(1955)](i);continue}if(a[0][t(893)]===t(1946))continue;if(a[0][t(893)]===t(960)){o.push({...a[0][t(1551)]});continue}const f={...i};for(const s of a)Kh(s,f);o[t(1955)](f)}return r.length&&r[t(1956)](i=>{const a=t;i[a(1218)]!==void 0?o[a(802)](i[a(1218)],0,{...i.item}):o.push({...i[a(1551)]})}),o}function Kh(e,n){const t=c;switch(e[t(893)]){case t(718):{n.selected=e[t(1477)];break}case t(1137):{typeof e[t(1137)]!==t(1482)&&(n[t(1137)]=e[t(1137)]),typeof e[t(1309)]!==t(1482)&&(n[t(1309)]=e[t(1309)]);break}case t(275):{typeof e.dimensions<"u"&&(n.measured={...e[t(275)]},e[t(1781)]&&((e[t(1781)]===!0||e[t(1781)]===t(737))&&(n[t(737)]=e[t(275)].width),(e[t(1781)]===!0||e[t(1781)]==="height")&&(n[t(522)]=e[t(275)].height))),typeof e[t(990)]===t(1106)&&(n[t(990)]=e[t(990)]);break}}}function tc(e,n){return nc(e,n)}function xc(e,n){return nc(e,n)}function on(e,n){return{id:e,type:"select",selected:n}}function Nn(e,n=new Set,t=!1){const o=c,x=[];for(const[r,i]of e){const a=n[o(806)](r);!(i[o(1477)]===void 0&&!a)&&i.selected!==a&&(t&&(i[o(1477)]=a),x.push(on(i.id,a)))}return x}function oc({items:e=[],lookup:n}){const t=c,o=[],x=new Map(e[t(1186)](r=>[r.id,r]));for(const[r,i]of e[t(1399)]()){const a=n[t(1280)](i.id),f=a?.[t(620)]?.[t(1580)]??a;f!==void 0&&f!==i&&o.push({id:i.id,item:i,type:t(960)}),f===void 0&&o[t(1955)]({item:i,type:"add",index:r})}for(const[r]of n)x.get(r)===void 0&&o.push({id:r,type:t(1946)});return o}function rc(e){return{id:e.id,type:"remove"}}const ic=e=>m2(e),Zh=e=>Zi(e);function ac(e){return L[c(496)](e)}function cc(e){const n=c,[t,o]=L[n(1326)](BigInt(0)),[x]=L[n(1326)](()=>Rh(()=>o(r=>r+BigInt(1))));return Lo(()=>{const r=n,i=x.get();i[r(461)]&&(e(i),x[r(164)]())},[t]),x}function Rh(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:t=>{n[_0x1d61(1955)](t),e()}}}const sc=L[c(1738)](null);function Jh({children:e}){const n=c,t=Ye(),o=L[n(130)](f=>{const s=n,{nodes:u=[],setNodes:d,hasDefaultNodes:h,onNodesChange:y,nodeLookup:v,fitViewQueued:g,onNodesChangeMiddlewareMap:w}=t[s(1772)]();let M=u;for(const m of f)M=typeof m===s(1719)?m(M):m;let b=oc({items:M,lookup:v});for(const m of w[s(1852)]())b=m(b);h&&d(M),b[s(461)]>0?y?.(b):g&&window.requestAnimationFrame(()=>{const m=s,{fitViewQueued:z,nodes:p,setNodes:S}=t[m(1772)]();z&&S(p)})},[]),x=cc(o),r=L[n(130)](f=>{const s=n,{edges:u=[],setEdges:d,hasDefaultEdges:h,onEdgesChange:y,edgeLookup:v}=t.getState();let g=u;for(const w of f)g=typeof w===s(1719)?w(g):w;h?d(g):y&&y(oc({items:g,lookup:v}))},[]),i=cc(r),a=L[n(1356)](()=>({nodeQueue:x,edgeQueue:i}),[]);return l[n(1791)](sc[n(1624)],{value:a,children:e})}function _h(){const e=c,n=L[e(1372)](sc);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const Fh=e=>!!e.panZoom;function No(){const e=Xh(),n=Ye(),t=_h(),o=ke(Fh),x=L.useMemo(()=>{const r=_0x1d61,i=h=>n[r(1772)]()[r(1067)][r(1280)](h),a=h=>{const y=r;t[y(1672)][y(1955)](h)},f=h=>{const y=r;t.edgeQueue[y(1955)](h)},s=h=>{const y=r,{nodeLookup:v,nodeOrigin:g}=n[y(1772)](),w=ic(h)?h:v[y(1280)](h.id),M=w[y(1085)]?ta(w[y(1137)],w[y(701)],w[y(1085)],v,g):w[y(1137)],b={...w,position:M,width:w[y(701)]?.[y(737)]??w[y(737)],height:w.measured?.height??w[y(522)]};return Cn(b)},u=(h,y,v={replace:!1})=>{a(g=>g.map(w=>{const M=_0x1d61;if(w.id===h){const b=typeof y===M(1719)?y(w):y;return v[M(960)]&&ic(b)?b:{...w,...b}}return w}))},d=(h,y,v={replace:!1})=>{f(g=>g.map(w=>{const M=_0x1d61;if(w.id===h){const b=typeof y=="function"?y(w):y;return v[M(960)]&&Zh(b)?b:{...w,...b}}return w}))};return{getNodes:()=>n[r(1772)]()[r(425)][r(1186)](h=>({...h})),getNode:h=>i(h)?.[r(620)][r(1580)],getInternalNode:i,getEdges:()=>{const h=r,{edges:y=[]}=n[h(1772)]();return y.map(v=>({...v}))},getEdge:h=>n[r(1772)]().edgeLookup.get(h),setNodes:a,setEdges:f,addNodes:h=>{const y=r,v=Array.isArray(h)?h:[h];t[y(1672)][y(1955)](g=>[...g,...v])},addEdges:h=>{const y=r,v=Array[y(1021)](h)?h:[h];t[y(691)][y(1955)](g=>[...g,...v])},toObject:()=>{const h=r,{nodes:y=[],edges:v=[],transform:g}=n[h(1772)](),[w,M,b]=g;return{nodes:y[h(1186)](m=>({...m})),edges:v[h(1186)](m=>({...m})),viewport:{x:w,y:M,zoom:b}}},deleteElements:async({nodes:h=[],edges:y=[]})=>{const v=r,{nodes:g,edges:w,onNodesDelete:M,onEdgesDelete:b,triggerNodeChanges:m,triggerEdgeChanges:z,onDelete:p,onBeforeDelete:S}=n[v(1772)](),{nodes:O,edges:G}=await z2({nodesToRemove:h,edgesToRemove:y,nodes:g,edges:w,onBeforeDelete:S}),q=G[v(461)]>0,E=O[v(461)]>0;if(q){const V=G[v(1186)](rc);b?.(G),z(V)}if(E){const V=O.map(rc);M?.(O),m(V)}return(E||q)&&p?.({nodes:O,edges:G}),{deletedNodes:O,deletedEdges:G}},getIntersectingNodes:(h,y=!0,v)=>{const g=r,w=$i(h),M=w?h:s(h),b=v!==void 0;return M?(v||n.getState()[g(425)]).filter(m=>{const z=g,p=n[z(1772)]()[z(1067)][z(1280)](m.id);if(p&&!w&&(m.id===h.id||!p[z(620)][z(745)]))return!1;const S=Cn(b?m:p),O=nt(S,M);return y&&O>0||O>=S[z(737)]*S[z(522)]||O>=M[z(737)]*M[z(522)]}):[]},isNodeIntersecting:(h,y,v=!0)=>{const g=r,w=$i(h),M=w?h:s(h);if(!M)return!1;const b=nt(M,y);return v&&b>0||b>=y.width*y[g(522)]||b>=M[g(737)]*M[g(522)]},updateNode:u,updateNodeData:(h,y,v={replace:!1})=>{u(h,g=>{const w=_0x1d61,M=typeof y===w(1719)?y(g):y;return v.replace?{...g,data:M}:{...g,data:{...g[w(762)],...M}}},v)},updateEdge:d,updateEdgeData:(h,y,v={replace:!1})=>{d(h,g=>{const w=_0x1d61,M=typeof y===w(1719)?y(g):y;return v[w(960)]?{...g,data:M}:{...g,data:{...g[w(762)],...M}}},v)},getNodesBounds:h=>{const y=r,{nodeLookup:v,nodeOrigin:g}=n[y(1772)]();return b2(h,{nodeLookup:v,nodeOrigin:g})},getHandleConnections:({type:h,id:y,nodeId:v})=>Array[r(598)](n[r(1772)]()[r(820)][r(1280)](v+"-"+h+(y?"-"+y:""))?.[r(1852)]()??[]),getNodeConnections:({type:h,handleId:y,nodeId:v})=>Array[r(598)](n[r(1772)]()[r(820)][r(1280)](""+v+(h?y?"-"+h+"-"+y:"-"+h:""))?.[r(1852)]()??[]),fitView:async h=>{const y=r,v=n[y(1772)]()[y(1677)]??B2();return n[y(1299)]({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:v}),t[y(1672)][y(1955)](g=>[...g]),v[y(999)]}}},[]);return L.useMemo(()=>({...x,...e,viewportInitialized:o}),[o])}const lc=e=>e[c(1477)],Qh=typeof window!==c(1482)?window:void 0;function $h({deleteKeyCode:e,multiSelectionKeyCode:n}){const t=c,o=Ye(),{deleteElements:x}=No(),r=it(e,{actInsideInputWithModifier:!1}),i=it(n,{target:Qh});L.useEffect(()=>{const a=_0x1d61;if(r){const{edges:f,nodes:s}=o[a(1772)]();x({nodes:s[a(1027)](lc),edges:f[a(1027)](lc)}),o.setState({nodesSelectionActive:!1})}},[r]),L[t(553)](()=>{o[t(1299)]({multiSelectionActive:i})},[i])}function e5(e){const n=c,t=Ye();L[n(553)](()=>{const o=n,x=()=>{const r=_0x1d61;if(!e.current||!(e.current[r(1e3)]?.()??!0))return!1;const i=so(e[r(1890)]);(i[r(522)]===0||i[r(737)]===0)&&t[r(1772)]().onError?.(r(687),a0.error004()),t[r(1299)]({width:i[r(737)]||500,height:i.height||500})};if(e[o(1890)]){x(),window[o(1018)](o(355),x);const r=new ResizeObserver(()=>x());return r[o(1620)](e[o(1890)]),()=>{const i=o;window[i(1196)](i(355),x),r&&e[i(1890)]&&r[i(578)](e[i(1890)])}}},[])}const ax={position:c(1365),width:c(1888),height:"100%",top:0,left:0},n5=e=>({userSelectionActive:e[c(235)],lib:e[c(1932)],connectionInProgress:e[c(842)][c(1101)]});function t5({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:t=!0,panOnScroll:o=!1,panOnScrollSpeed:x=.5,panOnScrollMode:r=nn[c(819)],zoomOnDoubleClick:i=!0,panOnDrag:a=!0,defaultViewport:f,translateExtent:s,minZoom:u,maxZoom:d,zoomActivationKeyCode:h,preventScrolling:y=!0,children:v,noWheelClassName:g,noPanClassName:w,onViewportChange:M,isControlledViewport:b,paneClickDistance:m,selectionOnDrag:z}){const p=c,S=Ye(),O=L.useRef(null),{userSelectionActive:G,lib:q,connectionInProgress:E}=ke(n5,je),V=it(h),T=L[p(619)]();e5(O);const X=L.useCallback(H=>{const N=p;M?.({x:H[0],y:H[1],zoom:H[2]}),!b&&S[N(1299)]({transform:H})},[M,b]);return L.useEffect(()=>{const H=p;if(O[H(1890)]){T[H(1890)]=ah({domNode:O[H(1890)],minZoom:u,maxZoom:d,translateExtent:s,viewport:f,onDraggingChange:j=>S[H(1299)](U=>U[H(674)]===j?U:{paneDragging:j}),onPanZoomStart:(j,U)=>{const k=H,{onViewportChangeStart:R,onMoveStart:_}=S[k(1772)]();_?.(j,U),R?.(U)},onPanZoom:(j,U)=>{const k=H,{onViewportChange:R,onMove:_}=S[k(1772)]();_?.(j,U),R?.(U)},onPanZoomEnd:(j,U)=>{const k=H,{onViewportChangeEnd:R,onMoveEnd:_}=S[k(1772)]();_?.(j,U),R?.(U)}});const{x:N,y:B,zoom:D}=T[H(1890)][H(732)]();return S[H(1299)]({panZoom:T[H(1890)],transform:[N,B,D],domNode:O[H(1890)][H(809)](H(437))}),()=>{const j=H;T[j(1890)]?.[j(892)]()}}},[]),L[p(553)](()=>{const H=p;T[H(1890)]?.[H(1249)]({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:t,panOnScroll:o,panOnScrollSpeed:x,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:a,zoomActivationKeyPressed:V,preventScrolling:y,noPanClassName:w,userSelectionActive:G,noWheelClassName:g,lib:q,onTransformChange:X,connectionInProgress:E,selectionOnDrag:z,paneClickDistance:m})},[e,n,t,o,x,r,i,a,V,y,w,G,g,q,X,E,z,m]),l.jsx(p(1517),{className:p(1191),ref:O,style:ax,children:v})}const x5=e=>({userSelectionActive:e[c(235)],userSelectionRect:e[c(1474)]});function o5(){const e=c,{userSelectionActive:n,userSelectionRect:t}=ke(x5,je);return n&&t?l[e(1791)](e(1517),{className:e(649),style:{width:t[e(737)],height:t.height,transform:e(594)+t.x+e(1080)+t.y+e(1213)}}):null}const So=(e,n)=>t=>{const o=_0x1d61;t[o(1385)]===n[o(1890)]&&e?.(t)},r5=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection[c(1101)],dragging:e[c(674)]});function i5({isSelecting:e,selectionKeyPressed:n,selectionMode:t=Qn.Full,panOnDrag:o,paneClickDistance:x,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:a,onPaneClick:f,onPaneContextMenu:s,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:h,onPaneMouseLeave:y,children:v}){const g=c,w=Ye(),{userSelectionActive:M,elementsSelectable:b,dragging:m,connectionInProgress:z}=ke(r5,je),p=b&&(e||M),S=L[g(619)](null),O=L[g(619)](),G=L[g(619)](new Set),q=L.useRef(new Set),E=L[g(619)](!1),V=U=>{const k=g;if(E.current||z){E[k(1890)]=!1;return}f?.(U),w[k(1772)]()[k(1864)](),w.setState({nodesSelectionActive:!1})},T=U=>{const k=g;if(Array[k(1021)](o)&&o?.[k(1486)](2)){U[k(1061)]();return}s?.(U)},X=u?U=>u(U):void 0,H=U=>{const k=g;E[k(1890)]&&(U.stopPropagation(),E[k(1890)]=!1)},N=U=>{const k=g,{domNode:R}=w.getState();if(O[k(1890)]=R?.[k(1593)](),!O.current)return;const _=U[k(1385)]===S[k(1890)];if(!_&&!!U[k(1385)][k(809)](k(625))||!e||!(r&&_||n)||U[k(1729)]!==0||!U.isPrimary)return;U.target?.setPointerCapture?.(U[k(1807)]),E[k(1890)]=!1;const{x:oe,y:ce}=m0(U.nativeEvent,O[k(1890)]);w[k(1299)]({userSelectionRect:{width:0,height:0,startX:oe,startY:ce,x:oe,y:ce}}),!_&&(U.stopPropagation(),U.preventDefault())},B=U=>{const k=g,{userSelectionRect:R,transform:_,nodeLookup:J,edgeLookup:xe,connectionLookup:oe,triggerNodeChanges:ce,triggerEdgeChanges:ue,defaultEdgeOptions:me,resetSelectedElements:se}=w[k(1772)]();if(!O[k(1890)]||!R)return;const{x:F,y:le}=m0(U[k(702)],O[k(1890)]),{startX:de,startY:Y}=R;if(!E[k(1890)]){const W=n?0:x;if(Math.hypot(F-de,le-Y)<=W)return;se(),i?.(U)}E[k(1890)]=!0;const I={startX:de,startY:Y,x:F<de?F:de,y:le<Y?le:Y,width:Math.abs(F-de),height:Math[k(1016)](le-Y)},Z=G[k(1890)],ee=q[k(1890)];G[k(1890)]=new Set(io(J,I,_,t===Qn[k(1376)],!0).map(W=>W.id)),q[k(1890)]=new Set;const te=me?.[k(223)]??!0;for(const W of G.current){const re=oe[k(1280)](W);if(re)for(const{edgeId:be}of re[k(1852)]()){const ve=xe[k(1280)](be);ve&&(ve.selectable??te)&&q.current[k(1742)](be)}}if(!xa(Z,G[k(1890)])){const W=Nn(J,G[k(1890)],!0);ce(W)}if(!xa(ee,q[k(1890)])){const W=Nn(xe,q.current);ue(W)}w[k(1299)]({userSelectionRect:I,userSelectionActive:!0,nodesSelectionActive:!1})},D=U=>{const k=g;U[k(1729)]===0&&(U[k(1385)]?.releasePointerCapture?.(U.pointerId),!M&&U[k(1385)]===S.current&&w[k(1772)]().userSelectionRect&&V?.(U),w[k(1299)]({userSelectionActive:!1,userSelectionRect:null}),E[k(1890)]&&(a?.(U),w[k(1299)]({nodesSelectionActive:G[k(1890)][k(613)]>0})))},j=o===!0||Array.isArray(o)&&o.includes(0);return l.jsxs(g(1517),{className:Ve([g(1416),{draggable:j,dragging:m,selection:e}]),onClick:p?void 0:So(V,S),onContextMenu:So(T,S),onWheel:So(X,S),onPointerEnter:p?void 0:d,onPointerMove:p?B:h,onPointerUp:p?D:void 0,onPointerDownCapture:p?N:void 0,onClickCapture:p?H:void 0,onPointerLeave:y,ref:S,style:ax,children:[v,l[g(1791)](o5,{})]})}function ko({id:e,store:n,unselect:t=!1,nodeRef:o}){const x=c,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:f,onError:s}=n[x(1772)](),u=f.get(e);if(!u){s?.(x(1674),a0.error012(e));return}n[x(1299)]({nodesSelectionActive:!1}),u[x(1477)]?(t||u[x(1477)]&&a)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.[x(1890)]?.[x(1481)]())):r([e])}function fc({nodeRef:e,disabled:n=!1,noDragClassName:t,handleSelector:o,nodeId:x,isSelectable:r,nodeClickDistance:i}){const a=Ye(),[f,s]=L.useState(!1),u=L.useRef();return L.useEffect(()=>{const d=_0x1d61;u.current=Z2({getStoreItems:()=>a[d(1772)](),onNodeMouseDown:h=>{ko({id:h,store:a,nodeRef:e})},onDragStart:()=>{s(!0)},onDragStop:()=>{s(!1)}})},[]),L.useEffect(()=>{const d=_0x1d61;if(!(n||!e.current||!u.current))return u[d(1890)][d(1249)]({noDragClassName:t,handleSelector:o,domNode:e.current,isSelectable:r,nodeId:x,nodeClickDistance:i}),()=>{const h=d;u.current?.[h(892)]()}},[t,o,n,r,e,x,i]),f}const a5=e=>n=>n.selected&&(n[c(1573)]||e&&typeof n[c(1573)]>"u");function uc(){const e=c,n=Ye();return L[e(130)](o=>{const x=e,{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:f,onError:s,updateNodePositions:u,nodeLookup:d,nodeOrigin:h}=n[x(1772)](),y=new Map,v=a5(f),g=i?a[0]:5,w=i?a[1]:5,M=o[x(1114)].x*g*o[x(1214)],b=o[x(1114)].y*w*o[x(1214)];for(const[,m]of d){if(!v(m))continue;let z={x:m.internals.positionAbsolute.x+M,y:m[x(620)][x(745)].y+b};i&&(z=tt(z,a));const{position:p,positionAbsolute:S}=Ri({nodeId:m.id,nextPosition:z,nodeLookup:d,nodeExtent:r,nodeOrigin:h,onError:s});m[x(1137)]=p,m.internals[x(745)]=S,y[x(1676)](m.id,m)}u(y)},[])}const Po=L.createContext(null),c5=Po[c(1624)];Po[c(397)];const dc=()=>L[c(1372)](Po),s5=e=>({connectOnClick:e.connectOnClick,noPanClassName:e[c(880)],rfId:e[c(1685)]}),l5=(e,n,t)=>o=>{const x=c,{connectionClickStartHandle:r,connectionMode:i,connection:a}=o,{fromHandle:f,toHandle:s,isValid:u}=a,d=s?.[x(875)]===e&&s?.id===n&&s?.[x(893)]===t;return{connectingFrom:f?.[x(875)]===e&&f?.id===n&&f?.[x(893)]===t,connectingTo:d,clickConnecting:r?.nodeId===e&&r?.id===n&&r?.[x(893)]===t,isPossibleEndHandle:i===pn[x(1951)]?f?.[x(893)]!==t:e!==f?.nodeId||n!==f?.id,connectionInProcess:!!f,clickConnectionInProcess:!!r,valid:d&&u}};function f5({type:e=c(1630),position:n=pe[c(1880)],isValidConnection:t,isConnectable:o=!0,isConnectableStart:x=!0,isConnectableEnd:r=!0,id:i,onConnect:a,children:f,className:s,onMouseDown:u,onTouchStart:d,...h},y){const v=c,g=i||null,w=e==="target",M=Ye(),b=dc(),{connectOnClick:m,noPanClassName:z,rfId:p}=ke(s5,je),{connectingFrom:S,connectingTo:O,clickConnecting:G,isPossibleEndHandle:q,connectionInProcess:E,clickConnectionInProcess:V,valid:T}=ke(l5(b,g,e),je);!b&&M[v(1772)]().onError?.(v(370),a0.error010());const X=B=>{const D=v,{defaultEdgeOptions:j,onConnect:U,hasDefaultEdges:k}=M.getState(),R={...j,...B};if(k){const{edges:_,setEdges:J}=M[D(1772)]();J(ua(R,_))}U?.(R),a?.(R)},H=B=>{const D=v;if(!b)return;const j=ia(B[D(702)]);if(x&&(j&&B[D(1729)]===0||!j)){const U=M.getState();wo.onPointerDown(B[D(702)],{handleDomNode:B[D(1441)],autoPanOnConnect:U[D(1691)],connectionMode:U[D(1698)],connectionRadius:U.connectionRadius,domNode:U[D(323)],nodeLookup:U[D(1067)],lib:U[D(1932)],isTarget:w,handleId:g,nodeId:b,flowId:U[D(1685)],panBy:U.panBy,cancelConnection:U[D(1324)],onConnectStart:U[D(1395)],onConnectEnd:(...k)=>M[D(1772)]().onConnectEnd?.(...k),updateConnection:U[D(1529)],onConnect:X,isValidConnection:t||((...k)=>M[D(1772)]().isValidConnection?.(...k)??!0),getTransform:()=>M[D(1772)]().transform,getFromHandle:()=>M[D(1772)]()[D(842)].fromHandle,autoPanSpeed:U.autoPanSpeed,dragThreshold:U[D(384)]})}j?u?.(B):d?.(B)},N=B=>{const D=v,{onClickConnectStart:j,onClickConnectEnd:U,connectionClickStartHandle:k,connectionMode:R,isValidConnection:_,lib:J,rfId:xe,nodeLookup:oe,connection:ce}=M[D(1772)]();if(!b||!k&&!x)return;if(!k){j?.(B[D(702)],{nodeId:b,handleId:g,handleType:e}),M.setState({connectionClickStartHandle:{nodeId:b,type:e,id:g}});return}const ue=oa(B[D(1385)]),me=t||_,{connection:se,isValid:F}=wo[D(785)](B.nativeEvent,{handle:{nodeId:b,id:g,type:e},connectionMode:R,fromNodeId:k[D(875)],fromHandleId:k.id||null,fromType:k[D(893)],isValidConnection:me,flowId:xe,doc:ue,lib:J,nodeLookup:oe});F&&se&&X(se);const le=structuredClone(ce);delete le[D(1101)],le.toPosition=le.toHandle?le[D(1371)].position:null,U?.(B,le),M[D(1299)]({connectionClickStartHandle:null})};return l.jsx(v(1517),{"data-handleid":g,"data-nodeid":b,"data-handlepos":n,"data-id":p+"-"+b+"-"+g+"-"+e,className:Ve([v(1176),v(1208)+n,v(1380),z,s,{source:!w,target:w,connectable:o,connectablestart:x,connectableend:r,clickconnecting:G,connectingfrom:S,connectingto:O,valid:T,connectionindicator:o&&(!E||q)&&(E||V?r:x)}]),onMouseDown:H,onTouchStart:H,onClick:m?N:void 0,ref:y,...h,children:f})}const Sn=L[c(1050)](ac(f5));function u5({data:e,isConnectable:n,sourcePosition:t=pe[c(905)]}){const o=c;return l[o(584)](l[o(611)],{children:[e?.[o(772)],l.jsx(Sn,{type:o(1630),position:t,isConnectable:n})]})}function d5({data:e,isConnectable:n,targetPosition:t=pe.Top,sourcePosition:o=pe[c(905)]}){const x=c;return l[x(584)](l.Fragment,{children:[l[x(1791)](Sn,{type:"target",position:t,isConnectable:n}),e?.[x(772)],l[x(1791)](Sn,{type:x(1630),position:o,isConnectable:n})]})}function h5(){return null}function g5({data:e,isConnectable:n,targetPosition:t=pe.Top}){const o=c;return l[o(584)](l.Fragment,{children:[l.jsx(Sn,{type:o(1385),position:t,isConnectable:n}),e?.label]})}const cx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},hc={input:u5,default:d5,output:g5,group:h5};function y5(e){const n=c;return e[n(620)].handleBounds===void 0?{width:e[n(737)]??e[n(983)]??e[n(1022)]?.[n(737)],height:e[n(522)]??e[n(509)]??e[n(1022)]?.height}:{width:e.width??e.style?.[n(737)],height:e.height??e[n(1022)]?.[n(522)]}}const m5=e=>{const n=c,{width:t,height:o,x,y:r}=et(e.nodeLookup,{filter:i=>!!i[n(1477)]});return{width:y0(t)?t:null,height:y0(o)?o:null,userSelectionActive:e[n(235)],transformString:n(594)+e[n(1225)][0]+n(750)+e[n(1225)][1]+"px) scale("+e[n(1225)][2]+n(1366)+x+"px,"+r+"px)"}};function b5({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:t}){const o=c,x=Ye(),{width:r,height:i,transformString:a,userSelectionActive:f}=ke(m5,je),s=uc(),u=L.useRef(null);L.useEffect(()=>{const v=_0x1d61;!t&&u[v(1890)]?.[v(1567)]({preventScroll:!0})},[t]);const d=!f&&r!==null&&i!==null;if(fc({nodeRef:u,disabled:!d}),!d)return null;const h=e?v=>{const g=_0x1d61,w=x[g(1772)]().nodes[g(1027)](M=>M[g(1477)]);e(v,w)}:void 0,y=v=>{const g=_0x1d61;Object.prototype[g(835)].call(cx,v[g(387)])&&(v[g(1061)](),s({direction:cx[v.key],factor:v.shiftKey?4:1}))};return l.jsx(o(1517),{className:Ve([o(988),o(1331),n]),style:{transform:a},children:l[o(1791)](o(1517),{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:h,tabIndex:t?void 0:-1,onKeyDown:t?void 0:y,style:{width:r,height:i}})})}const gc=typeof window!==c(1482)?window:void 0,v5=e=>({nodesSelectionActive:e[c(790)],userSelectionActive:e.userSelectionActive});function yc({children:e,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:a,deleteKeyCode:f,selectionKeyCode:s,selectionOnDrag:u,selectionMode:d,onSelectionStart:h,onSelectionEnd:y,multiSelectionKeyCode:v,panActivationKeyCode:g,zoomActivationKeyCode:w,elementsSelectable:M,zoomOnScroll:b,zoomOnPinch:m,panOnScroll:z,panOnScrollSpeed:p,panOnScrollMode:S,zoomOnDoubleClick:O,panOnDrag:G,defaultViewport:q,translateExtent:E,minZoom:V,maxZoom:T,preventScrolling:X,onSelectionContextMenu:H,noWheelClassName:N,noPanClassName:B,disableKeyboardA11y:D,onViewportChange:j,isControlledViewport:U}){const k=c,{nodesSelectionActive:R,userSelectionActive:_}=ke(v5,je),J=it(s,{target:gc}),xe=it(g,{target:gc}),oe=xe||G,ce=xe||z,ue=u&&oe!==!0,me=J||_||ue;return $h({deleteKeyCode:f,multiSelectionKeyCode:v}),l[k(1791)](t5,{onPaneContextMenu:r,elementsSelectable:M,zoomOnScroll:b,zoomOnPinch:m,panOnScroll:ce,panOnScrollSpeed:p,panOnScrollMode:S,zoomOnDoubleClick:O,panOnDrag:!J&&oe,defaultViewport:q,translateExtent:E,minZoom:V,maxZoom:T,zoomActivationKeyCode:w,preventScrolling:X,noWheelClassName:N,noPanClassName:B,onViewportChange:j,isControlledViewport:U,paneClickDistance:a,selectionOnDrag:ue,children:l[k(584)](i5,{onSelectionStart:h,onSelectionEnd:y,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:oe,isSelecting:!!me,selectionMode:d,selectionKeyPressed:J,paneClickDistance:a,selectionOnDrag:ue,children:[e,R&&l.jsx(b5,{onSelectionContextMenu:H,noPanClassName:B,disableKeyboardA11y:D})]})})}yc[c(1014)]=c(700);const w5=L[c(1050)](yc),p5=e=>n=>{const t=c;return e?io(n.nodeLookup,{x:0,y:0,width:n[t(737)],height:n.height},n[t(1225)],!0)[t(1186)](o=>o.id):Array[t(598)](n[t(1067)][t(859)]())};function z5(e){return ke(L[c(130)](p5(e),[e]),je)}const C5=e=>e.updateNodeInternals;function M5(){const e=c,n=ke(C5),[t]=L.useState(()=>{const o=_0x1d61;return typeof ResizeObserver===o(1482)?null:new ResizeObserver(x=>{const r=o,i=new Map;x[r(1956)](a=>{const f=r,s=a[f(1385)].getAttribute(f(1108));i.set(s,{id:s,nodeElement:a[f(1385)],force:!0})}),n(i)})});return L[e(553)](()=>()=>{t?.[_0x1d61(1274)]()},[t]),t}function B5({node:e,nodeType:n,hasDimensions:t,resizeObserver:o}){const x=c,r=Ye(),i=L[x(619)](null),a=L[x(619)](null),f=L[x(619)](e[x(1281)]),s=L[x(619)](e[x(1229)]),u=L[x(619)](n),d=t&&!!e[x(620)][x(569)];return L[x(553)](()=>{const h=x;i[h(1890)]&&!e.hidden&&(!d||a[h(1890)]!==i[h(1890)])&&(a[h(1890)]&&o?.[h(578)](a[h(1890)]),o?.[h(1620)](i[h(1890)]),a[h(1890)]=i.current)},[d,e[x(556)]]),L[x(553)](()=>()=>{const h=_0x1d61;a[h(1890)]&&(o?.[h(578)](a[h(1890)]),a.current=null)},[]),L.useEffect(()=>{const h=x;if(i[h(1890)]){const y=u.current!==n,v=f[h(1890)]!==e[h(1281)],g=s[h(1890)]!==e[h(1229)];(y||v||g)&&(u[h(1890)]=n,f[h(1890)]=e[h(1281)],s.current=e.targetPosition,r[h(1772)]().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i[h(1890)],force:!0}]])))}},[e.id,n,e[x(1281)],e[x(1229)]]),i}function D5({id:e,onClick:n,onMouseEnter:t,onMouseMove:o,onMouseLeave:x,onContextMenu:r,onDoubleClick:i,nodesDraggable:a,elementsSelectable:f,nodesConnectable:s,nodesFocusable:u,resizeObserver:d,noDragClassName:h,noPanClassName:y,disableKeyboardA11y:v,rfId:g,nodeTypes:w,nodeClickDistance:M,onError:b}){const m=c,{node:z,internals:p,isParent:S}=ke(se=>{const F=_0x1d61,le=se[F(1067)][F(1280)](e),de=se[F(228)][F(806)](e);return{node:le,internals:le[F(620)],isParent:de}},je);let O=z.type||m(1409),G=w?.[O]||hc[O];G===void 0&&(b?.(m(285),a0[m(1282)](O)),O=m(1409),G=w?.[m(1409)]||hc.default);const q=!!(z[m(1573)]||a&&typeof z[m(1573)]===m(1482)),E=!!(z[m(223)]||f&&typeof z[m(223)]>"u"),V=!!(z[m(1827)]||s&&typeof z.connectable===m(1482)),T=!!(z.focusable||u&&typeof z[m(1041)]>"u"),X=Ye(),H=na(z),N=B5({node:z,nodeType:O,hasDimensions:H,resizeObserver:d}),B=fc({nodeRef:N,disabled:z.hidden||!q,noDragClassName:h,handleSelector:z[m(763)],nodeId:e,isSelectable:E,nodeClickDistance:M}),D=uc();if(z.hidden)return null;const j=I0(z),U=y5(z),k=E||q||n||t||o||x,R=t?se=>t(se,{...p[m(1580)]}):void 0,_=o?se=>o(se,{...p.userNode}):void 0,J=x?se=>x(se,{...p[m(1580)]}):void 0,xe=r?se=>r(se,{...p[m(1580)]}):void 0,oe=i?se=>i(se,{...p.userNode}):void 0,ce=se=>{const F=m,{selectNodesOnDrag:le,nodeDragThreshold:de}=X[F(1772)]();E&&(!le||!q||de>0)&&ko({id:e,store:X,nodeRef:N}),n&&n(se,{...p.userNode})},ue=se=>{const F=m;if(!(ra(se[F(702)])||v)){if(Vi[F(1486)](se[F(387)])&&E){const le=se[F(387)]===F(473);ko({id:e,store:X,unselect:le,nodeRef:N})}else if(q&&z[F(1477)]&&Object.prototype[F(835)][F(573)](cx,se[F(387)])){se[F(1061)]();const{ariaLabelConfig:le}=X[F(1772)]();X[F(1299)]({ariaLiveMessage:le["node.a11yDescription.ariaLiveMessage"]({direction:se[F(387)][F(960)](F(1004),"").toLowerCase(),x:~~p.positionAbsolute.x,y:~~p.positionAbsolute.y})}),D({direction:cx[se[F(387)]],factor:se[F(1117)]?4:1})}}},me=()=>{const se=m;if(v||!N[se(1890)]?.[se(400)](se(1898)))return;const{transform:F,width:le,height:de,autoPanOnNodeFocus:Y,setCenter:I}=X[se(1772)]();if(!Y)return;!(io(new Map([[e,z]]),{x:0,y:0,width:le,height:de},F,!0)[se(461)]>0)&&I(z.position.x+j[se(737)]/2,z[se(1137)].y+j.height/2,{zoom:F[2]})};return l[m(1791)](m(1517),{className:Ve([m(754),m(646)+O,{[y]:q},z[m(265)],{selected:z[m(1477)],selectable:E,parent:S,draggable:q,dragging:B}]),ref:N,style:{zIndex:p.z,transform:m(594)+p[m(745)].x+"px,"+p[m(745)].y+"px)",pointerEvents:m(k?529:245),visibility:m(H?1145:556),...z[m(1022)],...U},"data-id":e,"data-testid":m(1231)+e,onMouseEnter:R,onMouseMove:_,onMouseLeave:J,onContextMenu:xe,onClick:ce,onDoubleClick:oe,onKeyDown:T?ue:void 0,tabIndex:T?0:void 0,onFocus:T?me:void 0,role:z.ariaRole??(T?m(889):void 0),"aria-roledescription":"node","aria-describedby":v?void 0:Ka+"-"+g,"aria-label":z[m(1267)],...z[m(1723)],children:l[m(1791)](c5,{value:e,children:l.jsx(G,{id:e,data:z[m(762)],type:O,positionAbsoluteX:p[m(745)].x,positionAbsoluteY:p.positionAbsolute.y,selected:z[m(1477)]??!1,selectable:E,draggable:q,deletable:z[m(171)]??!0,isConnectable:V,sourcePosition:z[m(1281)],targetPosition:z.targetPosition,dragging:B,dragHandle:z[m(763)],zIndex:p.z,parentId:z[m(1085)],...j})})})}var L5=L[c(1050)](D5);const N5=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e[c(301)],nodesFocusable:e[c(560)],elementsSelectable:e[c(1069)],onError:e[c(1029)]});function mc(e){const n=c,{nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,onError:i}=ke(N5,je),a=z5(e[n(335)]),f=M5();return l[n(1791)](n(1517),{className:n(1617),style:ax,children:a[n(1186)](s=>{const u=n;return l.jsx(L5,{id:s,nodeTypes:e.nodeTypes,nodeExtent:e[u(1350)],onClick:e[u(195)],onMouseEnter:e[u(453)],onMouseMove:e[u(764)],onMouseLeave:e.onNodeMouseLeave,onContextMenu:e[u(1001)],onDoubleClick:e[u(829)],noDragClassName:e.noDragClassName,noPanClassName:e[u(880)],rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,nodeClickDistance:e[u(840)],onError:i},s)})})}mc[c(1014)]="NodeRenderer";const S5=L[c(1050)](mc);function k5(e){return ke(L.useCallback(t=>{const o=_0x1d61;if(!e)return t.edges[o(1186)](r=>r.id);const x=[];if(t.width&&t.height)for(const r of t[o(365)]){const i=t[o(1067)][o(1280)](r[o(1630)]),a=t[o(1067)].get(r[o(1385)]);i&&a&&S2({sourceNode:i,targetNode:a,width:t[o(737)],height:t.height,transform:t[o(1225)]})&&x.push(r.id)}return x},[e]),je)}const P5=({color:e=c(245),strokeWidth:n=1})=>{const t=c,o={strokeWidth:n,...e&&{stroke:e}};return l[t(1791)](t(388),{className:t(188),style:o,strokeLinecap:t(1263),fill:t(245),strokeLinejoin:t(1263),points:t(137)})},I5=({color:e=c(245),strokeWidth:n=1})=>{const t=c,o={strokeWidth:n,...e&&{stroke:e,fill:e}};return l.jsx(t(388),{className:"arrowclosed",style:o,strokeLinecap:"round",strokeLinejoin:t(1263),points:t(993)})},bc={[Rt[c(1004)]]:P5,[Rt[c(1557)]]:I5};function A5(e){const n=c,t=Ye();return L[n(1356)](()=>{const x=n;return Object.prototype[x(835)].call(bc,e)?bc[e]:(t.getState()[x(1029)]?.(x(524),a0[x(132)](e)),null)},[e])}const E5=({id:e,type:n,color:t,width:o=12.5,height:x=12.5,markerUnits:r=c(197),strokeWidth:i,orient:a="auto-start-reverse"})=>{const f=c,s=A5(n);return s?l.jsx("marker",{className:f(1103),id:e,markerWidth:""+o,markerHeight:""+x,viewBox:f(789),markerUnits:r,orient:a,refX:"0",refY:"0",children:l[f(1791)](s,{color:t,strokeWidth:i})}):null},vc=({defaultColor:e,rfId:n})=>{const t=c,o=ke(i=>i[t(365)]),x=ke(i=>i[t(1526)]),r=L[t(1356)](()=>{const i=t;return Y2(o,{id:n,defaultColor:e,defaultMarkerStart:x?.[i(1741)],defaultMarkerEnd:x?.[i(1535)]})},[o,x,n,e]);return r[t(461)]?l.jsx(t(1563),{className:"react-flow__marker","aria-hidden":t(1293),children:l[t(1791)](t(1370),{children:r.map(i=>l[t(1791)](E5,{id:i.id,type:i[t(893)],color:i[t(1822)],width:i[t(737)],height:i[t(522)],markerUnits:i[t(1207)],strokeWidth:i[t(197)],orient:i[t(1931)]},i.id))})}):null};vc[c(1014)]=c(728);var j5=L.memo(vc);function wc({x:e,y:n,label:t,labelStyle:o,labelShowBg:x=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:a=2,children:f,className:s,...u}){const d=c,[h,y]=L[d(1326)]({x:1,y:0,width:0,height:0}),v=Ve([d(385),s]),g=L[d(619)](null);return L[d(553)](()=>{const w=d;if(g[w(1890)]){const M=g[w(1890)][w(1244)]();y({x:M.x,y:M.y,width:M[w(737)],height:M[w(522)]})}},[t]),t?l[d(584)]("g",{transform:d(594)+(e-h[d(737)]/2)+" "+(n-h[d(522)]/2)+")",className:v,visibility:h[d(737)]?d(1145):"hidden",...u,children:[x&&l[d(1791)](d(1761),{width:h[d(737)]+2*i[0],x:-i[0],y:-i[1],height:h[d(522)]+2*i[1],className:d(1626),style:r,rx:a,ry:a}),l[d(1791)](d(513),{className:d(686),y:h[d(522)]/2,dy:"0.3em",ref:g,style:o,children:t}),f]}):null}wc[c(1014)]=c(799);const Y5=L[c(1050)](wc);function sx({path:e,labelX:n,labelY:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:f,interactionWidth:s=20,...u}){const d=c;return l[d(584)](l[d(611)],{children:[l[d(1791)]("path",{...u,d:e,fill:d(245),className:Ve(["react-flow__edge-path",u[d(265)]])}),s?l[d(1791)](d(755),{d:e,fill:"none",strokeOpacity:0,strokeWidth:s,className:d(946)}):null,o&&y0(n)&&y0(t)?l[d(1791)](Y5,{x:n,y:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:f}):null]})}function pc({pos:e,x1:n,y1:t,x2:o,y2:x}){return e===pe.Left||e===pe.Right?[.5*(n+o),t]:[n,.5*(t+x)]}function zc({sourceX:e,sourceY:n,sourcePosition:t=pe[c(905)],targetX:o,targetY:x,targetPosition:r=pe[c(1880)]}){const[i,a]=pc({pos:t,x1:e,y1:n,x2:o,y2:x}),[f,s]=pc({pos:r,x1:o,y1:x,x2:e,y2:n}),[u,d,h,y]=ca({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:i,sourceControlY:a,targetControlX:f,targetControlY:s});return["M"+e+","+n+" C"+i+","+a+" "+f+","+s+" "+o+","+x,u,d,h,y]}function Cc(e){const n=c;return L[n(1050)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a,targetPosition:f,label:s,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:w,markerStart:M,interactionWidth:b})=>{const m=n,[z,p,S]=zc({sourceX:o,sourceY:x,sourcePosition:a,targetX:r,targetY:i,targetPosition:f}),O=e[m(1663)]?void 0:t;return l.jsx(sx,{id:O,path:z,labelX:p,labelY:S,label:s,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:w,markerStart:M,interactionWidth:b})})}const U5=Cc({isInternal:!1}),Mc=Cc({isInternal:!0});U5[c(1014)]=c(1911),Mc[c(1014)]="SimpleBezierEdgeInternal";function Bc(e){const n=c;return L[n(1050)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:a,labelStyle:f,labelShowBg:s,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:y,sourcePosition:v=pe[n(905)],targetPosition:g=pe.Top,markerEnd:w,markerStart:M,pathOptions:b,interactionWidth:m})=>{const z=n,[p,S,O]=lo({sourceX:o,sourceY:x,sourcePosition:v,targetX:r,targetY:i,targetPosition:g,borderRadius:b?.[z(1181)],offset:b?.[z(391)],stepPosition:b?.[z(1616)]}),G=e[z(1663)]?void 0:t;return l[z(1791)](sx,{id:G,path:p,labelX:S,labelY:O,label:a,labelStyle:f,labelShowBg:s,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:y,markerEnd:w,markerStart:M,interactionWidth:m})})}const Dc=Bc({isInternal:!1}),Lc=Bc({isInternal:!0});Dc[c(1014)]="SmoothStepEdge",Lc.displayName=c(797);function Nc(e){const n=c;return L[n(1050)](({id:t,...o})=>{const x=n,r=e.isInternal?void 0:t;return l[x(1791)](Dc,{...o,id:r,pathOptions:L[x(1356)](()=>({borderRadius:0,offset:o.pathOptions?.[x(391)]}),[o[x(1040)]?.[x(391)]])})})}const O5=Nc({isInternal:!1}),Sc=Nc({isInternal:!0});O5[c(1014)]="StepEdge",Sc.displayName=c(1415);function kc(e){const n=c;return L[n(1050)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:a,labelStyle:f,labelShowBg:s,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:y,markerEnd:v,markerStart:g,interactionWidth:w})=>{const M=n,[b,m,z]=da({sourceX:o,sourceY:x,targetX:r,targetY:i}),p=e[M(1663)]?void 0:t;return l[M(1791)](sx,{id:p,path:b,labelX:m,labelY:z,label:a,labelStyle:f,labelShowBg:s,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:y,markerEnd:v,markerStart:g,interactionWidth:w})})}const G5=kc({isInternal:!1}),Pc=kc({isInternal:!0});G5[c(1014)]="StraightEdge",Pc.displayName=c(539);function Ic(e){const n=c;return L[n(1050)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a=pe.Bottom,targetPosition:f=pe[n(1880)],label:s,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:w,markerStart:M,pathOptions:b,interactionWidth:m})=>{const z=n,[p,S,O]=la({sourceX:o,sourceY:x,sourcePosition:a,targetX:r,targetY:i,targetPosition:f,curvature:b?.curvature}),G=e[z(1663)]?void 0:t;return l[z(1791)](sx,{id:G,path:p,labelX:S,labelY:O,label:s,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:w,markerStart:M,interactionWidth:m})})}const H5=Ic({isInternal:!1}),Ac=Ic({isInternal:!0});H5[c(1014)]="BezierEdge",Ac.displayName="BezierEdgeInternal";const Ec={default:Ac,straight:Pc,step:Sc,smoothstep:Lc,simplebezier:Mc},jc={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},T5=(e,n,t)=>{const o=c;return t===pe[o(771)]?e-n:t===pe[o(888)]?e+n:e},V5=(e,n,t)=>{const o=c;return t===pe[o(1880)]?e-n:t===pe[o(905)]?e+n:e},Yc=c(369);function Uc({position:e,centerX:n,centerY:t,radius:o=10,onMouseDown:x,onMouseEnter:r,onMouseOut:i,type:a}){const f=c;return l.jsx(f(947),{onMouseDown:x,onMouseEnter:r,onMouseOut:i,className:Ve([Yc,Yc+"-"+a]),cx:T5(n,o,e),cy:V5(t,o,e),r:o,stroke:f(1437),fill:f(1437)})}function q5({isReconnectable:e,reconnectRadius:n,edge:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a,targetPosition:f,onReconnect:s,onReconnectStart:u,onReconnectEnd:d,setReconnecting:h,setUpdateHover:y}){const v=c,g=Ye(),w=(p,S)=>{const O=_0x1d61;if(p[O(1729)]!==0)return;const{autoPanOnConnect:G,domNode:q,connectionMode:E,connectionRadius:V,lib:T,onConnectStart:X,cancelConnection:H,nodeLookup:N,rfId:B,panBy:D,updateConnection:j}=g[O(1772)](),U=S[O(893)]===O(1385),k=(J,xe)=>{const oe=O;h(!1),d?.(J,t,S[oe(893)],xe)},R=J=>s?.(t,J),_=(J,xe)=>{const oe=O;h(!0),u?.(p,t,S[oe(893)]),X?.(J,xe)};wo.onPointerDown(p[O(702)],{autoPanOnConnect:G,connectionMode:E,connectionRadius:V,domNode:q,handleId:S.id,nodeId:S[O(875)],nodeLookup:N,isTarget:U,edgeUpdaterType:S[O(893)],lib:T,flowId:B,cancelConnection:H,panBy:D,isValidConnection:(...J)=>g[O(1772)]().isValidConnection?.(...J)??!0,onConnect:R,onConnectStart:_,onConnectEnd:(...J)=>g[O(1772)]().onConnectEnd?.(...J),onReconnectEnd:k,updateConnection:j,getTransform:()=>g.getState()[O(1225)],getFromHandle:()=>g[O(1772)]().connection[O(379)],dragThreshold:g[O(1772)]()[O(384)],handleDomNode:p.currentTarget})},M=p=>w(p,{nodeId:t[v(1385)],id:t[v(1278)]??null,type:"target"}),b=p=>w(p,{nodeId:t.source,id:t.sourceHandle??null,type:v(1630)}),m=()=>y(!0),z=()=>y(!1);return l.jsxs(l[v(611)],{children:[(e===!0||e===v(1630))&&l[v(1791)](Uc,{position:a,centerX:o,centerY:x,radius:n,onMouseDown:M,onMouseEnter:m,onMouseOut:z,type:v(1630)}),(e===!0||e===v(1385))&&l[v(1791)](Uc,{position:f,centerX:r,centerY:i,radius:n,onMouseDown:b,onMouseEnter:m,onMouseOut:z,type:"target"})]})}function W5({id:e,edgesFocusable:n,edgesReconnectable:t,elementsSelectable:o,onClick:x,onDoubleClick:r,onContextMenu:i,onMouseEnter:a,onMouseMove:f,onMouseLeave:s,reconnectRadius:u,onReconnect:d,onReconnectStart:h,onReconnectEnd:y,rfId:v,edgeTypes:g,noPanClassName:w,onError:M,disableKeyboardA11y:b}){const m=c;let z=ke(Y=>Y[m(443)][m(1280)](e));const p=ke(Y=>Y[m(1526)]);z=p?{...p,...z}:z;let S=z.type||m(1409),O=g?.[S]||Ec[S];O===void 0&&(M?.(m(606),a0[m(409)](S)),S="default",O=g?.[m(1409)]||Ec[m(1409)]);const G=!!(z[m(1041)]||n&&typeof z[m(1041)]===m(1482)),q=typeof d!==m(1482)&&(z.reconnectable||t&&typeof z[m(1428)]===m(1482)),E=!!(z.selectable||o&&typeof z[m(223)]===m(1482)),V=L.useRef(null),[T,X]=L[m(1326)](!1),[H,N]=L[m(1326)](!1),B=Ye(),{zIndex:D,sourceX:j,sourceY:U,targetX:k,targetY:R,sourcePosition:_,targetPosition:J}=ke(L[m(130)](Y=>{const I=m,Z=Y[I(1067)].get(z[I(1630)]),ee=Y[I(1067)][I(1280)](z[I(1385)]);if(!Z||!ee)return{zIndex:z[I(537)],...jc};const te=j2({id:e,sourceNode:Z,targetNode:ee,sourceHandle:z[I(1664)]||null,targetHandle:z.targetHandle||null,connectionMode:Y.connectionMode,onError:M});return{zIndex:N2({selected:z[I(1477)],zIndex:z[I(537)],sourceNode:Z,targetNode:ee,elevateOnSelect:Y[I(746)],zIndexMode:Y.zIndexMode}),...te||jc}},[z[m(1630)],z[m(1385)],z[m(1664)],z[m(1278)],z[m(1477)],z.zIndex]),je),xe=L.useMemo(()=>z[m(1741)]?m(1194)+fo(z[m(1741)],v)+"')":void 0,[z[m(1741)],v]),oe=L[m(1356)](()=>z[m(1535)]?m(1194)+fo(z[m(1535)],v)+"')":void 0,[z[m(1535)],v]);if(z[m(556)]||j===null||U===null||k===null||R===null)return null;const ce=Y=>{const I=m,{addSelectedEdges:Z,unselectNodesAndEdges:ee,multiSelectionActive:te}=B[I(1772)]();E&&(B[I(1299)]({nodesSelectionActive:!1}),z[I(1477)]&&te?(ee({nodes:[],edges:[z]}),V[I(1890)]?.[I(1481)]()):Z([e])),x&&x(Y,z)},ue=r?Y=>{r(Y,{...z})}:void 0,me=i?Y=>{i(Y,{...z})}:void 0,se=a?Y=>{a(Y,{...z})}:void 0,F=f?Y=>{f(Y,{...z})}:void 0,le=s?Y=>{s(Y,{...z})}:void 0,de=Y=>{const I=m;if(!b&&Vi[I(1486)](Y.key)&&E){const{unselectNodesAndEdges:Z,addSelectedEdges:ee}=B[I(1772)]();Y.key===I(473)?(V.current?.[I(1481)](),Z({edges:[z]})):ee([e])}};return l[m(1791)](m(1563),{style:{zIndex:D},children:l[m(584)]("g",{className:Ve([m(727),m(1764)+S,z[m(265)],w,{selected:z[m(1477)],animated:z.animated,inactive:!E&&!x,updating:T,selectable:E}]),onClick:ce,onDoubleClick:ue,onContextMenu:me,onMouseEnter:se,onMouseMove:F,onMouseLeave:le,onKeyDown:G?de:void 0,tabIndex:G?0:void 0,role:z[m(1603)]??m(G?889:1917),"aria-roledescription":m(189),"data-id":e,"data-testid":m(1164)+e,"aria-label":z[m(1267)]===null?void 0:z[m(1267)]||m(933)+z.source+" to "+z.target,"aria-describedby":G?Za+"-"+v:void 0,ref:V,...z[m(1723)],children:[!H&&l[m(1791)](O,{id:e,source:z.source,target:z.target,type:z.type,selected:z[m(1477)],animated:z[m(1887)],selectable:E,deletable:z[m(171)]??!0,label:z[m(772)],labelStyle:z[m(825)],labelShowBg:z[m(1810)],labelBgStyle:z[m(1335)],labelBgPadding:z[m(515)],labelBgBorderRadius:z[m(1212)],sourceX:j,sourceY:U,targetX:k,targetY:R,sourcePosition:_,targetPosition:J,data:z[m(762)],style:z[m(1022)],sourceHandleId:z[m(1664)],targetHandleId:z.targetHandle,markerStart:xe,markerEnd:oe,pathOptions:m(1040)in z?z[m(1040)]:void 0,interactionWidth:z[m(1220)]}),q&&l.jsx(q5,{edge:z,isReconnectable:q,reconnectRadius:u,onReconnect:d,onReconnectStart:h,onReconnectEnd:y,sourceX:j,sourceY:U,targetX:k,targetY:R,sourcePosition:_,targetPosition:J,setUpdateHover:X,setReconnecting:N})]})})}var X5=L.memo(W5);const K5=e=>({edgesFocusable:e[c(712)],edgesReconnectable:e.edgesReconnectable,elementsSelectable:e[c(1069)],connectionMode:e[c(1698)],onError:e.onError});function Oc({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:t,edgeTypes:o,noPanClassName:x,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:a,onEdgeMouseMove:f,onEdgeMouseLeave:s,onEdgeClick:u,reconnectRadius:d,onEdgeDoubleClick:h,onReconnectStart:y,onReconnectEnd:v,disableKeyboardA11y:g}){const w=c,{edgesFocusable:M,edgesReconnectable:b,elementsSelectable:m,onError:z}=ke(K5,je),p=k5(n);return l[w(584)]("div",{className:w(416),children:[l[w(1791)](j5,{defaultColor:e,rfId:t}),p[w(1186)](S=>l[w(1791)](X5,{id:S,edgesFocusable:M,edgesReconnectable:b,elementsSelectable:m,noPanClassName:x,onReconnect:r,onContextMenu:i,onMouseEnter:a,onMouseMove:f,onMouseLeave:s,onClick:u,reconnectRadius:d,onDoubleClick:h,onReconnectStart:y,onReconnectEnd:v,rfId:t,onError:z,edgeTypes:o,disableKeyboardA11y:g},S))]})}Oc.displayName=c(1861);const Z5=L[c(1050)](Oc),R5=e=>c(594)+e[c(1225)][0]+c(750)+e[c(1225)][1]+c(1847)+e[c(1225)][2]+")";function J5({children:e}){const n=c,t=ke(R5);return l.jsx("div",{className:n(1589),style:{transform:t},children:e})}function _5(e){const n=c,t=No(),o=L[n(619)](!1);L[n(553)](()=>{const x=n;!o[x(1890)]&&t[x(512)]&&e&&(setTimeout(()=>e(t),1),o[x(1890)]=!0)},[e,t[n(512)]])}const F5=e=>e.panZoom?.[c(850)];function Q5(e){const n=c,t=ke(F5),o=Ye();return L[n(553)](()=>{const x=n;e&&(t?.(e),o[x(1299)]({transform:[e.x,e.y,e[x(441)]]}))},[e,t]),null}function $5(e){const n=c;return e[n(842)][n(1101)]?{...e[n(842)],to:xt(e[n(842)].to,e[n(1225)])}:{...e[n(842)]}}function eg(e){return $5}function ng(e){const n=eg();return ke(n,je)}const tg=e=>({nodesConnectable:e[c(301)],isValid:e[c(842)][c(785)],inProgress:e[c(842)][c(1101)],width:e[c(737)],height:e.height});function xg({containerStyle:e,style:n,type:t,component:o}){const x=c,{nodesConnectable:r,width:i,height:a,isValid:f,inProgress:s}=ke(tg,je);return!(i&&r&&s)?null:l[x(1791)]("svg",{style:e,width:i,height:a,className:x(930),children:l[x(1791)]("g",{className:Ve([x(406),Ki(f)]),children:l.jsx(Gc,{style:n,type:t,CustomComponent:o,isValid:f})})})}const Gc=({style:e,type:n=O0.Bezier,CustomComponent:t,isValid:o})=>{const x=c,{inProgress:r,from:i,fromNode:a,fromHandle:f,fromPosition:s,to:u,toNode:d,toHandle:h,toPosition:y,pointer:v}=ng();if(!r)return;if(t)return l[x(1791)](t,{connectionLineType:n,connectionLineStyle:e,fromNode:a,fromHandle:f,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:s,toPosition:y,connectionStatus:Ki(o),toNode:d,toHandle:h,pointer:v});let g="";const w={sourceX:i.x,sourceY:i.y,sourcePosition:s,targetX:u.x,targetY:u.y,targetPosition:y};switch(n){case O0.Bezier:[g]=la(w);break;case O0.SimpleBezier:[g]=zc(w);break;case O0[x(786)]:[g]=lo({...w,borderRadius:0});break;case O0[x(1644)]:[g]=lo(w);break;default:[g]=da(w)}return l[x(1791)](x(755),{d:g,fill:"none",className:x(1878),style:e})};Gc[c(1014)]=c(885);const og={};function Hc(e=og){const n=c,t=L.useRef(e),o=Ye();L[n(553)](()=>{const x=n;if(process.env.NODE_ENV===x(1243)){const r=new Set([...Object[x(859)](t[x(1890)]),...Object[x(859)](e)]);for(const i of r)if(t.current[i]!==e[i]){o.getState()[x(1029)]?.(x(1846),a0[x(1292)]());break}t.current=e}},[e])}function rg(){const e=c,n=Ye(),t=L[e(619)](!1);L[e(553)](()=>{const o=e;if(process.env.NODE_ENV===o(1243)&&!t[o(1890)]){const x=document[o(881)](o(969));x&&window[o(831)](x)[o(537)]!=="1"&&n.getState()[o(1029)]?.("013",a0.error013(o(1843))),t[o(1890)]=!0}},[])}function Tc({nodeTypes:e,edgeTypes:n,onInit:t,onNodeClick:o,onEdgeClick:x,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:f,onNodeMouseLeave:s,onNodeContextMenu:u,onSelectionContextMenu:d,onSelectionStart:h,onSelectionEnd:y,connectionLineType:v,connectionLineStyle:g,connectionLineComponent:w,connectionLineContainerStyle:M,selectionKeyCode:b,selectionOnDrag:m,selectionMode:z,multiSelectionKeyCode:p,panActivationKeyCode:S,zoomActivationKeyCode:O,deleteKeyCode:G,onlyRenderVisibleElements:q,elementsSelectable:E,defaultViewport:V,translateExtent:T,minZoom:X,maxZoom:H,preventScrolling:N,defaultMarkerColor:B,zoomOnScroll:D,zoomOnPinch:j,panOnScroll:U,panOnScrollSpeed:k,panOnScrollMode:R,zoomOnDoubleClick:_,panOnDrag:J,onPaneClick:xe,onPaneMouseEnter:oe,onPaneMouseMove:ce,onPaneMouseLeave:ue,onPaneScroll:me,onPaneContextMenu:se,paneClickDistance:F,nodeClickDistance:le,onEdgeContextMenu:de,onEdgeMouseEnter:Y,onEdgeMouseMove:I,onEdgeMouseLeave:Z,reconnectRadius:ee,onReconnect:te,onReconnectStart:W,onReconnectEnd:re,noDragClassName:be,noWheelClassName:ve,noPanClassName:De,disableKeyboardA11y:Pe,nodeExtent:Ae,rfId:Be,viewport:Le,onViewportChange:Ue}){const Ie=c;return Hc(e),Hc(n),rg(),_5(t),Q5(Le),l[Ie(1791)](w5,{onPaneClick:xe,onPaneMouseEnter:oe,onPaneMouseMove:ce,onPaneMouseLeave:ue,onPaneContextMenu:se,onPaneScroll:me,paneClickDistance:F,deleteKeyCode:G,selectionKeyCode:b,selectionOnDrag:m,selectionMode:z,onSelectionStart:h,onSelectionEnd:y,multiSelectionKeyCode:p,panActivationKeyCode:S,zoomActivationKeyCode:O,elementsSelectable:E,zoomOnScroll:D,zoomOnPinch:j,zoomOnDoubleClick:_,panOnScroll:U,panOnScrollSpeed:k,panOnScrollMode:R,panOnDrag:J,defaultViewport:V,translateExtent:T,minZoom:X,maxZoom:H,onSelectionContextMenu:d,preventScrolling:N,noDragClassName:be,noWheelClassName:ve,noPanClassName:De,disableKeyboardA11y:Pe,onViewportChange:Ue,isControlledViewport:!!Le,children:l[Ie(584)](J5,{children:[l.jsx(Z5,{edgeTypes:n,onEdgeClick:x,onEdgeDoubleClick:i,onReconnect:te,onReconnectStart:W,onReconnectEnd:re,onlyRenderVisibleElements:q,onEdgeContextMenu:de,onEdgeMouseEnter:Y,onEdgeMouseMove:I,onEdgeMouseLeave:Z,reconnectRadius:ee,defaultMarkerColor:B,noPanClassName:De,disableKeyboardA11y:Pe,rfId:Be}),l[Ie(1791)](xg,{style:g,type:v,component:w,containerStyle:M}),l.jsx(Ie(1517),{className:Ie(1116)}),l[Ie(1791)](S5,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:r,onNodeMouseEnter:a,onNodeMouseMove:f,onNodeMouseLeave:s,onNodeContextMenu:u,nodeClickDistance:le,onlyRenderVisibleElements:q,noPanClassName:De,noDragClassName:be,disableKeyboardA11y:Pe,nodeExtent:Ae,rfId:Be}),l[Ie(1791)](Ie(1517),{className:"react-flow__viewport-portal"})]})})}Tc[c(1014)]=c(1086);const ig=L[c(1050)](Tc),Vc=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:f=.5,maxZoom:s=2,nodeOrigin:u,nodeExtent:d,zIndexMode:h="basic"}={})=>{const y=c,v=new Map,g=new Map,w=new Map,M=new Map,b=o??n??[],m=t??e??[],z=u??[0,0],p=d??Fn;za(w,M,b);const{nodesInitialized:S}=yo(m,v,g,{nodeOrigin:z,nodeExtent:p,zIndexMode:h});let O=[0,0,1];if(i&&x&&r){const G=et(v,{filter:T=>!!((T.width||T.initialWidth)&&(T[y(522)]||T.initialHeight))}),{x:q,y:E,zoom:V}=co(G,x,r,f,s,a?.[y(1077)]??.1);O=[q,E,V]}return{rfId:"1",width:x??0,height:r??0,transform:O,nodes:m,nodesInitialized:S,nodeLookup:v,parentLookup:g,edges:b,edgeLookup:M,connectionLookup:w,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:t!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:f,maxZoom:s,translateExtent:Fn,nodeExtent:p,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:pn.Strict,domNode:null,paneDragging:!1,noPanClassName:y(965),nodeOrigin:z,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:{...Wi},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:ea,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:y(1843),debug:!1,ariaLabelConfig:qi,zIndexMode:h,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},ag=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:f,maxZoom:s,nodeOrigin:u,nodeExtent:d,zIndexMode:h})=>Dh((y,v)=>{async function g(){const w=_0x1d61,{nodeLookup:M,panZoom:b,fitViewOptions:m,fitViewResolver:z,width:p,height:S,minZoom:O,maxZoom:G}=v();b&&(await p2({nodes:M,width:p,height:S,panZoom:b,minZoom:O,maxZoom:G},m),z?.[w(943)](!0),y({fitViewResolver:null}))}return{...Vc({nodes:e,edges:n,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:f,maxZoom:s,nodeOrigin:u,nodeExtent:d,defaultNodes:t,defaultEdges:o,zIndexMode:h}),setNodes:w=>{const{nodeLookup:M,parentLookup:b,nodeOrigin:m,elevateNodesOnSelect:z,fitViewQueued:p,zIndexMode:S,nodesSelectionActive:O}=v(),{nodesInitialized:G,hasSelectedNodes:q}=yo(w,M,b,{nodeOrigin:m,nodeExtent:d,elevateNodesOnSelect:z,checkEquality:!0,zIndexMode:S}),E=O&&q;p&&G?(g(),y({nodes:w,nodesInitialized:G,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:E})):y({nodes:w,nodesInitialized:G,nodesSelectionActive:E})},setEdges:w=>{const{connectionLookup:M,edgeLookup:b}=v();za(M,b,w),y({edges:w})},setDefaultNodesAndEdges:(w,M)=>{if(w){const{setNodes:b}=v();b(w),y({hasDefaultNodes:!0})}if(M){const{setEdges:b}=v();b(M),y({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const M=_0x1d61,{triggerNodeChanges:b,nodeLookup:m,parentLookup:z,domNode:p,nodeOrigin:S,nodeExtent:O,debug:G,fitViewQueued:q,zIndexMode:E}=v(),{changes:V,updatedInternals:T}=q2(w,m,z,p,S,O,E);T&&(G2(m,z,{nodeOrigin:S,nodeExtent:O,zIndexMode:E}),q?(g(),y({fitViewQueued:!1,fitViewOptions:void 0})):y({}),V?.[M(461)]>0&&(G&&console[M(922)](M(185),V),b?.(V)))},updateNodePositions:(w,M=!1)=>{const b=_0x1d61,m=[];let z=[];const{nodeLookup:p,triggerNodeChanges:S,connection:O,updateConnection:G,onNodesChangeMiddlewareMap:q}=v();for(const[E,V]of w){const T=p[b(1280)](E),X=!!(T?.[b(1889)]&&T?.[b(1085)]&&V?.[b(1137)]),H={id:E,type:b(1137),position:X?{x:Math[b(630)](0,V[b(1137)].x),y:Math[b(630)](0,V[b(1137)].y)}:V[b(1137)],dragging:M};if(T&&O[b(1101)]&&O[b(1138)].id===T.id){const N=xn(T,O.fromHandle,pe[b(771)],!0);G({...O,from:N})}X&&T[b(1085)]&&m[b(1955)]({id:E,parentId:T[b(1085)],rect:{...V[b(620)][b(745)],width:V.measured.width??0,height:V.measured[b(522)]??0}}),z[b(1955)](H)}if(m[b(461)]>0){const{parentLookup:E,nodeOrigin:V}=v(),T=bo(m,p,E,V);z.push(...T)}for(const E of q.values())z=E(z);S(z)},triggerNodeChanges:w=>{const M=_0x1d61,{onNodesChange:b,setNodes:m,nodes:z,hasDefaultNodes:p,debug:S}=v();if(w?.[M(461)]){if(p){const O=tc(w,z);m(O)}S&&console[M(922)](M(185),w),b?.(w)}},triggerEdgeChanges:w=>{const M=_0x1d61,{onEdgesChange:b,setEdges:m,edges:z,hasDefaultEdges:p,debug:S}=v();if(w?.[M(461)]){if(p){const O=xc(w,z);m(O)}S&&console.log(M(1144),w),b?.(w)}},addSelectedNodes:w=>{const M=_0x1d61,{multiSelectionActive:b,edgeLookup:m,nodeLookup:z,triggerNodeChanges:p,triggerEdgeChanges:S}=v();if(b){const O=w[M(1186)](G=>on(G,!0));p(O);return}p(Nn(z,new Set([...w]),!0)),S(Nn(m))},addSelectedEdges:w=>{const M=_0x1d61,{multiSelectionActive:b,edgeLookup:m,nodeLookup:z,triggerNodeChanges:p,triggerEdgeChanges:S}=v();if(b){const O=w[M(1186)](G=>on(G,!0));S(O);return}S(Nn(m,new Set([...w]))),p(Nn(z,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:M}={})=>{const b=_0x1d61,{edges:m,nodes:z,nodeLookup:p,triggerNodeChanges:S,triggerEdgeChanges:O}=v(),G=w||z,q=M||m,E=[];for(const T of G){if(!T[b(1477)])continue;const X=p[b(1280)](T.id);X&&(X[b(1477)]=!1),E[b(1955)](on(T.id,!1))}const V=[];for(const T of q)T[b(1477)]&&V.push(on(T.id,!1));S(E),O(V)},setMinZoom:w=>{const M=_0x1d61,{panZoom:b,maxZoom:m}=v();b?.[M(871)]([w,m]),y({minZoom:w})},setMaxZoom:w=>{const M=_0x1d61,{panZoom:b,minZoom:m}=v();b?.[M(871)]([m,w]),y({maxZoom:w})},setTranslateExtent:w=>{const M=_0x1d61;v()[M(420)]?.[M(816)](w),y({translateExtent:w})},resetSelectedElements:()=>{const w=_0x1d61,{edges:M,nodes:b,triggerNodeChanges:m,triggerEdgeChanges:z,elementsSelectable:p}=v();if(!p)return;const S=b[w(1906)]((G,q)=>q[w(1477)]?[...G,on(q.id,!1)]:G,[]),O=M[w(1906)]((G,q)=>q[w(1477)]?[...G,on(q.id,!1)]:G,[]);m(S),z(O)},setNodeExtent:w=>{const{nodes:M,nodeLookup:b,parentLookup:m,nodeOrigin:z,elevateNodesOnSelect:p,nodeExtent:S,zIndexMode:O}=v();w[0][0]===S[0][0]&&w[0][1]===S[0][1]&&w[1][0]===S[1][0]&&w[1][1]===S[1][1]||(yo(M,b,m,{nodeOrigin:z,nodeExtent:w,elevateNodesOnSelect:p,checkEquality:!1,zIndexMode:O}),y({nodeExtent:w}))},panBy:w=>{const{transform:M,width:b,height:m,panZoom:z,translateExtent:p}=v();return W2({delta:w,panZoom:z,transform:M,translateExtent:p,width:b,height:m})},setCenter:async(w,M,b)=>{const m=_0x1d61,{width:z,height:p,maxZoom:S,panZoom:O}=v();if(!O)return Promise[m(943)](!1);const G=typeof b?.zoom!==m(1482)?b[m(441)]:S;return await O[m(758)]({x:z/2-w*G,y:p/2-M*G,zoom:G},{duration:b?.[m(238)],ease:b?.[m(1832)],interpolate:b?.interpolate}),Promise[m(943)](!0)},cancelConnection:()=>{y({connection:{...Wi}})},updateConnection:w=>{y({connection:w})},reset:()=>y({...Vc()})}},Object.is);function cg({initialNodes:e,initialEdges:n,defaultNodes:t,defaultEdges:o,initialWidth:x,initialHeight:r,initialMinZoom:i,initialMaxZoom:a,initialFitViewOptions:f,fitView:s,nodeOrigin:u,nodeExtent:d,zIndexMode:h,children:y}){const v=c,[g]=L[v(1326)](()=>ag({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:s,minZoom:i,maxZoom:a,fitViewOptions:f,nodeOrigin:u,nodeExtent:d,zIndexMode:h}));return l.jsx(Lh,{value:g,children:l[v(1791)](Jh,{children:y})})}function sg({children:e,nodes:n,edges:t,defaultNodes:o,defaultEdges:x,width:r,height:i,fitView:a,fitViewOptions:f,minZoom:s,maxZoom:u,nodeOrigin:d,nodeExtent:h,zIndexMode:y}){const v=c;return L[v(1372)](ox)?l[v(1791)](l[v(611)],{children:e}):l.jsx(cg,{initialNodes:n,initialEdges:t,defaultNodes:o,defaultEdges:x,initialWidth:r,initialHeight:i,fitView:a,initialFitViewOptions:f,initialMinZoom:s,initialMaxZoom:u,nodeOrigin:d,nodeExtent:h,zIndexMode:y,children:e})}const lg={width:c(1888),height:c(1888),overflow:c(556),position:c(348),zIndex:0};function fg({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,className:x,nodeTypes:r,edgeTypes:i,onNodeClick:a,onEdgeClick:f,onInit:s,onMove:u,onMoveStart:d,onMoveEnd:h,onConnect:y,onConnectStart:v,onConnectEnd:g,onClickConnectStart:w,onClickConnectEnd:M,onNodeMouseEnter:b,onNodeMouseMove:m,onNodeMouseLeave:z,onNodeContextMenu:p,onNodeDoubleClick:S,onNodeDragStart:O,onNodeDrag:G,onNodeDragStop:q,onNodesDelete:E,onEdgesDelete:V,onDelete:T,onSelectionChange:X,onSelectionDragStart:H,onSelectionDrag:N,onSelectionDragStop:B,onSelectionContextMenu:D,onSelectionStart:j,onSelectionEnd:U,onBeforeDelete:k,connectionMode:R,connectionLineType:_=O0[c(463)],connectionLineStyle:J,connectionLineComponent:xe,connectionLineContainerStyle:oe,deleteKeyCode:ce=c(1536),selectionKeyCode:ue=c(1203),selectionOnDrag:me=!1,selectionMode:se=Qn[c(592)],panActivationKeyCode:F="Space",multiSelectionKeyCode:le=ot()?c(1534):"Control",zoomActivationKeyCode:de=ot()?c(1534):c(938),snapToGrid:Y,snapGrid:I,onlyRenderVisibleElements:Z=!1,selectNodesOnDrag:ee,nodesDraggable:te,autoPanOnNodeFocus:W,nodesConnectable:re,nodesFocusable:be,nodeOrigin:ve=Ra,edgesFocusable:De,edgesReconnectable:Pe,elementsSelectable:Ae=!0,defaultViewport:Be=Hh,minZoom:Le=.5,maxZoom:Ue=2,translateExtent:Ie=Fn,preventScrolling:Ge=!0,nodeExtent:He,defaultMarkerColor:Ze=c(1933),zoomOnScroll:l0=!0,zoomOnPinch:b0=!0,panOnScroll:Fe=!1,panOnScrollSpeed:n0=.5,panOnScrollMode:Qe=nn[c(819)],zoomOnDoubleClick:t0=!0,panOnDrag:c0=!0,onPaneClick:A0,onPaneMouseEnter:q0,onPaneMouseMove:E0,onPaneMouseLeave:qe,onPaneScroll:rn,onPaneContextMenu:Re,paneClickDistance:B0=1,nodeClickDistance:v0=0,children:W0,onReconnect:Ao,onReconnectStart:Eo,onReconnectEnd:jo,onEdgeContextMenu:Yo,onEdgeDoubleClick:Uo,onEdgeMouseEnter:Oo,onEdgeMouseMove:Go,onEdgeMouseLeave:dx,reconnectRadius:hx=10,onNodesChange:gx,onEdgesChange:yx,noDragClassName:mx="nodrag",noWheelClassName:at=c(487),noPanClassName:X0="nopan",fitView:K0,fitViewOptions:bx,connectOnClick:j0,attributionPosition:vx,proOptions:wx,defaultEdgeOptions:ct,elevateNodesOnSelect:Ho=!0,elevateEdgesOnSelect:st=!1,disableKeyboardA11y:px=!1,autoPanOnConnect:To,autoPanOnNodeDrag:Vo,autoPanSpeed:zx,connectionRadius:Cx,isValidConnection:lt,onError:Mx,style:ft,id:P,nodeDragThreshold:A,connectionDragThreshold:$,viewport:Q,onViewportChange:ie,width:K,height:ne,colorMode:ge=c(1726),debug:we,onScroll:ye,ariaLabelConfig:ze,zIndexMode:Ce=c(1010),...Se},We){const Ee=c,Je=P||"1",Te=Wh(ge),ae=L[Ee(130)](he=>{const _e=Ee;he[_e(1441)].scrollTo({top:0,left:0,behavior:_e(684)}),ye?.(he)},[ye]);return l[Ee(1791)]("div",{"data-testid":Ee(1463),...Se,onScroll:ae,style:{...ft,...lg},ref:We,className:Ve([Ee(709),x,Te]),id:P,role:Ee(756),children:l[Ee(584)](sg,{nodes:e,edges:n,width:K,height:ne,fitView:K0,fitViewOptions:bx,minZoom:Le,maxZoom:Ue,nodeOrigin:ve,nodeExtent:He,zIndexMode:Ce,children:[l[Ee(1791)](qh,{nodes:e,edges:n,defaultNodes:t,defaultEdges:o,onConnect:y,onConnectStart:v,onConnectEnd:g,onClickConnectStart:w,onClickConnectEnd:M,nodesDraggable:te,autoPanOnNodeFocus:W,nodesConnectable:re,nodesFocusable:be,edgesFocusable:De,edgesReconnectable:Pe,elementsSelectable:Ae,elevateNodesOnSelect:Ho,elevateEdgesOnSelect:st,minZoom:Le,maxZoom:Ue,nodeExtent:He,onNodesChange:gx,onEdgesChange:yx,snapToGrid:Y,snapGrid:I,connectionMode:R,translateExtent:Ie,connectOnClick:j0,defaultEdgeOptions:ct,fitView:K0,fitViewOptions:bx,onNodesDelete:E,onEdgesDelete:V,onDelete:T,onNodeDragStart:O,onNodeDrag:G,onNodeDragStop:q,onSelectionDrag:N,onSelectionDragStart:H,onSelectionDragStop:B,onMove:u,onMoveStart:d,onMoveEnd:h,noPanClassName:X0,nodeOrigin:ve,rfId:Je,autoPanOnConnect:To,autoPanOnNodeDrag:Vo,autoPanSpeed:zx,onError:Mx,connectionRadius:Cx,isValidConnection:lt,selectNodesOnDrag:ee,nodeDragThreshold:A,connectionDragThreshold:$,onBeforeDelete:k,debug:we,ariaLabelConfig:ze,zIndexMode:Ce}),l[Ee(1791)](ig,{onInit:s,onNodeClick:a,onEdgeClick:f,onNodeMouseEnter:b,onNodeMouseMove:m,onNodeMouseLeave:z,onNodeContextMenu:p,onNodeDoubleClick:S,nodeTypes:r,edgeTypes:i,connectionLineType:_,connectionLineStyle:J,connectionLineComponent:xe,connectionLineContainerStyle:oe,selectionKeyCode:ue,selectionOnDrag:me,selectionMode:se,deleteKeyCode:ce,multiSelectionKeyCode:le,panActivationKeyCode:F,zoomActivationKeyCode:de,onlyRenderVisibleElements:Z,defaultViewport:Be,translateExtent:Ie,minZoom:Le,maxZoom:Ue,preventScrolling:Ge,zoomOnScroll:l0,zoomOnPinch:b0,zoomOnDoubleClick:t0,panOnScroll:Fe,panOnScrollSpeed:n0,panOnScrollMode:Qe,panOnDrag:c0,onPaneClick:A0,onPaneMouseEnter:q0,onPaneMouseMove:E0,onPaneMouseLeave:qe,onPaneScroll:rn,onPaneContextMenu:Re,paneClickDistance:B0,nodeClickDistance:v0,onSelectionContextMenu:D,onSelectionStart:j,onSelectionEnd:U,onReconnect:Ao,onReconnectStart:Eo,onReconnectEnd:jo,onEdgeContextMenu:Yo,onEdgeDoubleClick:Uo,onEdgeMouseEnter:Oo,onEdgeMouseMove:Go,onEdgeMouseLeave:dx,reconnectRadius:hx,defaultMarkerColor:Ze,noDragClassName:mx,noWheelClassName:at,noPanClassName:X0,rfId:Je,disableKeyboardA11y:px,nodeExtent:He,viewport:Q,onViewportChange:ie}),l[Ee(1791)](Gh,{onSelectionChange:X}),W0,l.jsx(Eh,{proOptions:wx,position:vx}),l[Ee(1791)](Ah,{rfId:Je,disableKeyboardA11y:px})]})})}var ug=ac(fg);function dg(e){const n=c,[t,o]=L[n(1326)](e),x=L[n(130)](r=>o(i=>tc(r,i)),[]);return[t,o,x]}function hg(e){const n=c,[t,o]=L.useState(e),x=L[n(130)](r=>o(i=>xc(r,i)),[]);return[t,o,x]}function gg({dimensions:e,lineWidth:n,variant:t,className:o}){const x=c;return l[x(1791)](x(755),{strokeWidth:n,d:"M"+e[0]/2+x(1717)+e[1]+" M0 "+e[1]/2+" H"+e[0],className:Ve(["react-flow__background-pattern",t,o])})}function yg({radius:e,className:n}){const t=c;return l[t(1791)](t(947),{cx:e,cy:e,r:e,className:Ve(["react-flow__background-pattern",t(392),n])})}var T0;(function(e){const n=c;e.Lines=n(1090),e[n(1943)]="dots",e[n(855)]=n(1770)})(T0||(T0={}));const mg={[T0[c(1943)]]:1,[T0[c(1892)]]:1,[T0[c(855)]]:6},bg=e=>({transform:e[c(1225)],patternId:c(147)+e[c(1685)]});function qc({id:e,variant:n=T0[c(1943)],gap:t=20,size:o,lineWidth:x=1,offset:r=0,color:i,bgColor:a,style:f,className:s,patternClassName:u}){const d=c,h=L[d(619)](null),{transform:y,patternId:v}=ke(bg,je),g=o||mg[n],w=n===T0[d(1943)],M=n===T0[d(855)],b=Array[d(1021)](t)?t:[t,t],m=[b[0]*y[2]||1,b[1]*y[2]||1],z=g*y[2],p=Array[d(1021)](r)?r:[r,r],S=M?[z,z]:m,O=[p[0]*y[2]||1+S[0]/2,p[1]*y[2]||1+S[1]/2],G=""+v+(e||"");return l[d(584)](d(1563),{className:Ve(["react-flow__background",s]),style:{...f,...ax,"--xy-background-color-props":a,"--xy-background-pattern-color-props":i},ref:h,"data-testid":"rf__background",children:[l[d(1791)](d(1109),{id:G,x:y[0]%m[0],y:y[1]%m[1],width:m[0],height:m[1],patternUnits:d(485),patternTransform:"translate(-"+O[0]+",-"+O[1]+")",children:w?l[d(1791)](yg,{radius:z/2,className:u}):l[d(1791)](gg,{dimensions:S,lineWidth:x,variant:n,className:u})}),l.jsx(d(1761),{x:"0",y:"0",width:"100%",height:"100%",fill:d(1190)+G+")"})]})}qc[c(1014)]=c(1236);const vg=L[c(1050)](qc);function wg(){const e=c;return l[e(1791)](e(1563),{xmlns:e(1250),viewBox:e(1708),children:l[e(1791)]("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function pg(){const e=c;return l.jsx(e(1563),{xmlns:"http://www.w3.org/2000/svg",viewBox:e(243),children:l[e(1791)]("path",{d:e(1007)})})}function zg(){const e=c;return l[e(1791)](e(1563),{xmlns:"http://www.w3.org/2000/svg",viewBox:e(832),children:l.jsx(e(755),{d:e(773)})})}function Cg(){const e=c;return l[e(1791)](e(1563),{xmlns:e(1250),viewBox:"0 0 25 32",children:l[e(1791)](e(755),{d:e(1478)})})}function Mg(){const e=c;return l.jsx("svg",{xmlns:e(1250),viewBox:e(1013),children:l.jsx(e(755),{d:e(1047)})})}function lx({children:e,className:n,...t}){const o=c;return l[o(1791)](o(1729),{type:o(1729),className:Ve([o(1803),n]),...t,children:e})}const Bg=e=>({isInteractive:e.nodesDraggable||e[c(301)]||e[c(1069)],minZoomReached:e[c(1225)][2]<=e[c(1160)],maxZoomReached:e[c(1225)][2]>=e[c(653)],ariaLabelConfig:e[c(510)]});function Wc({style:e,showZoom:n=!0,showFitView:t=!0,showInteractive:o=!0,fitViewOptions:x,onZoomIn:r,onZoomOut:i,onFitView:a,onInteractiveChange:f,className:s,children:u,position:d="bottom-left",orientation:h=c(486),"aria-label":y}){const v=c,g=Ye(),{isInteractive:w,minZoomReached:M,maxZoomReached:b,ariaLabelConfig:m}=ke(Bg,je),{zoomIn:z,zoomOut:p,fitView:S}=No(),O=()=>{z(),r?.()},G=()=>{p(),i?.()},q=()=>{S(x),a?.()},E=()=>{g[_0x1d61(1299)]({nodesDraggable:!w,nodesConnectable:!w,elementsSelectable:!w}),f?.(!w)},V=h===v(1130)?v(1130):v(486);return l[v(584)](rx,{className:Ve([v(1657),V,s]),position:d,style:e,"data-testid":v(1295),"aria-label":y??m[v(926)],children:[n&&l[v(584)](l.Fragment,{children:[l[v(1791)](lx,{onClick:O,className:v(1886),title:m[v(1590)],"aria-label":m[v(1590)],disabled:b,children:l.jsx(wg,{})}),l[v(1791)](lx,{onClick:G,className:v(1413),title:m["controls.zoomOut.ariaLabel"],"aria-label":m[v(1881)],disabled:M,children:l[v(1791)](pg,{})})]}),t&&l.jsx(lx,{className:"react-flow__controls-fitview",onClick:q,title:m["controls.fitView.ariaLabel"],"aria-label":m["controls.fitView.ariaLabel"],children:l.jsx(zg,{})}),o&&l[v(1791)](lx,{className:v(634),onClick:E,title:m[v(200)],"aria-label":m[v(200)],children:w?l.jsx(Mg,{}):l[v(1791)](Cg,{})}),u]})}Wc.displayName="Controls";const Dg=L[c(1050)](Wc);function Lg({id:e,x:n,y:t,width:o,height:x,style:r,color:i,strokeColor:a,strokeWidth:f,className:s,borderRadius:u,shapeRendering:d,selected:h,onClick:y}){const v=c,{background:g,backgroundColor:w}=r||{},M=i||g||w;return l[v(1791)]("rect",{className:Ve([v(596),{selected:h},s]),x:n,y:t,rx:u,ry:u,width:o,height:x,style:{fill:M,stroke:a,strokeWidth:f},shapeRendering:d,onClick:y?b=>y(b,e):void 0})}const Ng=L[c(1050)](Lg),Sg=e=>e.nodes[c(1186)](n=>n.id),Io=e=>e instanceof Function?e:()=>e;function kg({nodeStrokeColor:e,nodeColor:n,nodeClassName:t="",nodeBorderRadius:o=5,nodeStrokeWidth:x,nodeComponent:r=Ng,onClick:i}){const a=c,f=ke(Sg,je),s=Io(n),u=Io(e),d=Io(t),h=typeof window===a(1482)||window[a(155)]?a(516):a(207);return l.jsx(l[a(611)],{children:f[a(1186)](y=>l[a(1791)](Ig,{id:y,nodeColorFunc:s,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:x,NodeComponent:r,onClick:i,shapeRendering:h},y))})}function Pg({id:e,nodeColorFunc:n,nodeStrokeColorFunc:t,nodeClassNameFunc:o,nodeBorderRadius:x,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:a,onClick:f}){const s=c,{node:u,x:d,y:h,width:y,height:v}=ke(g=>{const w=_0x1d61,M=g[w(1067)][w(1280)](e);if(!M)return{node:void 0,x:0,y:0,width:0,height:0};const b=M[w(620)][w(1580)],{x:m,y:z}=M[w(620)][w(745)],{width:p,height:S}=I0(b);return{node:b,x:m,y:z,width:p,height:S}},je);return!u||u[s(556)]||!na(u)?null:l.jsx(a,{x:d,y:h,width:y,height:v,style:u[s(1022)],selected:!!u[s(1477)],className:o(u),color:n(u),borderRadius:x,strokeColor:t(u),strokeWidth:r,shapeRendering:i,onClick:f,id:u.id})}const Ig=L[c(1050)](Pg);var Ag=L[c(1050)](kg);const Eg=200,jg=150,Yg=e=>!e.hidden,Ug=e=>{const n=c,t={x:-e[n(1225)][0]/e[n(1225)][2],y:-e.transform[1]/e.transform[2],width:e[n(737)]/e.transform[2],height:e[n(522)]/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup[n(613)]>0?Qi(et(e[n(1067)],{filter:Yg}),t):t,rfId:e[n(1685)],panZoom:e[n(420)],translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},Og=c(1775);function Xc({style:e,className:n,nodeStrokeColor:t,nodeColor:o,nodeClassName:x="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a,bgColor:f,maskColor:s,maskStrokeColor:u,maskStrokeWidth:d,position:h=c(973),onClick:y,onNodeClick:v,pannable:g=!1,zoomable:w=!1,ariaLabel:M,inversePan:b,zoomStep:m=1,offsetScale:z=5}){const p=c,S=Ye(),O=L[p(619)](null),{boundingRect:G,viewBB:q,rfId:E,panZoom:V,translateExtent:T,flowWidth:X,flowHeight:H,ariaLabelConfig:N}=ke(Ug,je),B=e?.[p(737)]??Eg,D=e?.height??jg,j=G[p(737)]/B,U=G[p(522)]/D,k=Math.max(j,U),R=k*B,_=k*D,J=z*k,xe=G.x-(R-G[p(737)])/2-J,oe=G.y-(_-G[p(522)])/2-J,ce=R+J*2,ue=_+J*2,me=Og+"-"+E,se=L[p(619)](0),F=L.useRef();se.current=k,L.useEffect(()=>{const I=p;if(O[I(1890)]&&V)return F[I(1890)]=$2({domNode:O.current,panZoom:V,getTransform:()=>S[I(1772)]()[I(1225)],getViewScale:()=>se[I(1890)]}),()=>{const Z=I;F[Z(1890)]?.[Z(892)]()}},[V]),L[p(553)](()=>{const I=p;F[I(1890)]?.[I(1249)]({translateExtent:T,width:X,height:H,inversePan:b,pannable:g,zoomStep:m,zoomable:w})},[g,w,b,m,T,X,H]);const le=y?I=>{const Z=p,[ee,te]=F[Z(1890)]?.pointer(I)||[0,0];y(I,{x:ee,y:te})}:void 0,de=v?L[p(130)]((I,Z)=>{const ee=p,te=S[ee(1772)]()[ee(1067)][ee(1280)](Z).internals[ee(1580)];v(I,te)},[]):void 0,Y=M??N["minimap.ariaLabel"];return l[p(1791)](rx,{position:h,style:{...e,"--xy-minimap-background-color-props":typeof f===p(1516)?f:void 0,"--xy-minimap-mask-background-color-props":typeof s===p(1516)?s:void 0,"--xy-minimap-mask-stroke-color-props":typeof u===p(1516)?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof d===p(663)?d*k:void 0,"--xy-minimap-node-background-color-props":typeof o===p(1516)?o:void 0,"--xy-minimap-node-stroke-color-props":typeof t===p(1516)?t:void 0,"--xy-minimap-node-stroke-width-props":typeof i===p(663)?i:void 0},className:Ve([p(1694),n]),"data-testid":p(1538),children:l[p(584)](p(1563),{width:B,height:D,viewBox:xe+" "+oe+" "+ce+" "+ue,className:p(282),role:"img","aria-labelledby":me,ref:O,onClick:le,children:[Y&&l.jsx(p(212),{id:me,children:Y}),l.jsx(Ag,{onClick:de,nodeColor:o,nodeStrokeColor:t,nodeBorderRadius:r,nodeClassName:x,nodeStrokeWidth:i,nodeComponent:a}),l[p(1791)](p(755),{className:p(1765),d:"M"+(xe-J)+","+(oe-J)+"h"+(ce+J*2)+"v"+(ue+J*2)+"h"+(-ce-J*2)+p(656)+q.x+","+q.y+"h"+q.width+"v"+q.height+"h"+-q[p(737)]+"z",fillRule:p(1033),pointerEvents:p(245)})]})})}Xc[c(1014)]=c(246);const Gg=L[c(1050)](Xc),Hg=e=>n=>e?""+Math[c(630)](1/n[c(1225)][2],1):void 0,Tg={[Ln.Line]:c(1470),[Ln[c(460)]]:c(973)};function Vg({nodeId:e,position:n,variant:t=Ln[c(460)],className:o,style:x=void 0,children:r,color:i,minWidth:a=10,minHeight:f=10,maxWidth:s=Number[c(1495)],maxHeight:u=Number[c(1495)],keepAspectRatio:d=!1,resizeDirection:h,autoScale:y=!0,shouldResize:v,onResizeStart:g,onResize:w,onResizeEnd:M}){const b=c,m=dc(),z=typeof e===b(1516)?e:m,p=Ye(),S=L[b(619)](null),O=t===Ln[b(460)],G=ke(L[b(130)](Hg(O&&y),[O,y]),je),q=L[b(619)](null),E=n??Tg[t];L[b(553)](()=>{const T=b;if(!(!S.current||!z))return!q.current&&(q.current=dh({domNode:S[T(1890)],nodeId:z,getStoreItems:()=>{const X=T,{nodeLookup:H,transform:N,snapGrid:B,snapToGrid:D,nodeOrigin:j,domNode:U}=p[X(1772)]();return{nodeLookup:H,transform:N,snapGrid:B,snapToGrid:D,nodeOrigin:j,paneDomNode:U}},onChange:(X,H)=>{const N=T,{triggerNodeChanges:B,nodeLookup:D,parentLookup:j,nodeOrigin:U}=p[N(1772)](),k=[],R={x:X.x,y:X.y},_=D[N(1280)](z);if(_&&_[N(1889)]&&_[N(1085)]){const J=_[N(1233)]??U,xe=X.width??_[N(701)].width??0,oe=X[N(522)]??_.measured[N(522)]??0,ce={id:_.id,parentId:_[N(1085)],rect:{width:xe,height:oe,...ta({x:X.x??_[N(1137)].x,y:X.y??_[N(1137)].y},{width:xe,height:oe},_[N(1085)],D,J)}},ue=bo([ce],D,j,U);k[N(1955)](...ue),R.x=X.x?Math.max(J[0]*xe,X.x):void 0,R.y=X.y?Math[N(630)](J[1]*oe,X.y):void 0}if(R.x!==void 0&&R.y!==void 0){const J={id:z,type:N(1137),position:{...R}};k[N(1955)](J)}if(X[N(737)]!==void 0&&X[N(522)]!==void 0){const J=h?h===N(1130)?N(737):N(522):!0,xe={id:z,type:"dimensions",resizing:!0,setAttributes:J,dimensions:{width:X.width,height:X[N(522)]}};k[N(1955)](xe)}for(const J of H){const xe={...J,type:"position"};k[N(1955)](xe)}B(k)},onEnd:({width:X,height:H})=>{const N=T,B={id:z,type:N(275),resizing:!1,dimensions:{width:X,height:H}};p[N(1772)]()[N(1670)]([B])}})),q[T(1890)][T(1249)]({controlPosition:E,boundaries:{minWidth:a,minHeight:f,maxWidth:s,maxHeight:u},keepAspectRatio:d,resizeDirection:h,onResizeStart:g,onResize:w,onResizeEnd:M,shouldResize:v}),()=>{const X=T;q[X(1890)]?.[X(892)]()}},[E,a,f,s,u,d,g,w,M,v]);const V=E.split("-");return l[b(1791)](b(1517),{className:Ve(["react-flow__resize-control",b(1380),...V,t,o]),ref:S,style:{...x,scale:G,...i&&{[b(O?910:267)]:i}},children:r})}L[c(1050)](Vg);const Kc=e=>Symbol[c(217)]in e,Zc=e=>"entries"in e,Rc=(e,n)=>{const t=c,o=e instanceof Map?e:new Map(e[t(1399)]()),x=n instanceof Map?n:new Map(n.entries());if(o[t(613)]!==x[t(613)])return!1;for(const[r,i]of o)if(!x[t(806)](r)||!Object.is(i,x[t(1280)](r)))return!1;return!0},qg=(e,n)=>{const t=c,o=e[Symbol[t(217)]](),x=n[Symbol[t(217)]]();let r=o[t(597)](),i=x[t(597)]();for(;!r.done&&!i.done;){if(!Object.is(r[t(699)],i.value))return!1;r=o[t(597)](),i=x[t(597)]()}return!!r[t(688)]&&!!i[t(688)]};function Wg(e,n){const t=c;return Object.is(e,n)?!0:typeof e!="object"||e===null||typeof n!==t(448)||n===null||Object[t(1081)](e)!==Object.getPrototypeOf(n)?!1:Kc(e)&&Kc(n)?Zc(e)&&Zc(n)?Rc(e,n):qg(e,n):Rc({entries:()=>Object[t(1399)](e)},{entries:()=>Object[t(1399)](n)})}const Jc={inlineScript:c(692),dataRequest:c(760),external:c(438),builtin:c(418)},Xg=[{label:c(1882),value:c(1175)},{label:"跳转画布",value:"switchCanvas"}],Kg=[{label:c(1579),value:c(1579)},{label:"success",value:"success"},{label:c(1215),value:c(1215)},{label:"error",value:c(1842)},{label:c(1581),value:c(1581)}];function _c(e,n,t){const o=c,x=t[o(1027)](i=>i[o(1385)]===e),r=x[o(461)];return x[o(1186)]((i,a)=>{const f=o,s=n[f(1682)](d=>d.id===i[f(1630)]),u=s?.[f(762)];return{sourceId:i[f(1630)],sourceLabel:u?.[f(772)]??i[f(1630)],edgeIndex:a,totalIncoming:r}})}const Zg=({data:e,id:n})=>{const t=c,{root:o}=Xe(),x=ke(L[t(130)](a=>_c(n,a[t(425)],a[t(365)])[t(1186)](({sourceId:f,sourceLabel:s})=>({sourceId:f,label:s})),[n]),Wg),r=e[t(1537)].executorType??t(972),i=r===t(1950)?e[t(1537)][t(963)]:r===t(1647)?e.eventBlock.externalHandlerKey:r===t(142)?e[t(1537)][t(1162)]===t(1175)?e.eventBlock[t(1162)]+": "+String(e[t(1537)][t(714)]?.[t(912)]??"")[t(1337)](0,24):e[t(1537)][t(1162)]==="switchCanvas"?"跳转: "+(o[t(1279)][t(1682)](a=>a.id===e.eventBlock[t(714)]?.[t(1234)])?.[t(1123)]??t(1367)):e[t(1537)][t(1162)]:null;return l[t(584)](t(1517),{className:t(489),children:[l[t(1791)](Sn,{type:t(1385),position:pe[t(1880)],className:"!bg-blue-500"}),l[t(584)]("div",{className:t(1227),children:[l[t(1791)](t(158),{className:t(1306),children:e[t(772)]}),l[t(584)](C[t(642)],{size:"small",children:[l[t(1791)](C[t(1804)],{type:t(513),size:"small",icon:l[t(1791)](fe[t(1009)],{}),onClick:()=>e[t(1303)](n)}),l[t(1791)](C.Button,{type:t(513),size:t(1171),danger:!0,icon:l.jsx(fe[t(371)],{}),onClick:()=>e.onDelete(n)})]})]}),l.jsx("div",{className:t(765),children:l.jsxs(C[t(389)],{color:r==="inlineScript"?t(1409):r===t(142)?"cyan":"purple",className:t(482),children:[Jc[r],i?t(261)+i:""]})}),l.jsxs("div",{className:t(1597),children:[e.eventBlock.inputs?.[t(461)]>0&&l[t(584)]("div",{children:[t(1381),e[t(1537)][t(331)][t(1186)](a=>a[t(1123)])[t(1339)](", ")]}),x[t(461)]>0&&l[t(584)](t(1517),{className:t(1287),children:[t(1298),x[t(1186)](a=>l[t(584)](t(1517),{className:t(240),children:["←「",a[t(772)],t(1602)]},a[t(1334)]))]})]}),l[t(1791)](Sn,{type:"source",position:pe[t(905)],className:t(1697)})]})},Rg={eventBlock:Zg},Jg=Object[c(1399)](Jc)[c(1186)](([e,n])=>({label:n,value:e})),Fc=[{label:"点击",value:"click"},{label:c(1924),value:c(298)},{label:c(1591),value:"mouseUp"},{label:"双击",value:c(1329)},{label:c(1853),value:"mouseOver"},{label:"鼠标移出",value:c(1912)},{label:c(1113),value:c(1314)},{label:"右键菜单",value:c(272)},{label:c(807),value:c(1950)},{label:"外部事件",value:"external"}];function _g(e,n){const t=c,o={},x=[...e];return x[t(1956)]((r,i)=>{const a=t,f=n.inputs[i]?.[a(1123)]??(x[a(461)]===1?"prev":a(242)+i);o[f]="$prev."+r.source}),o}function Fg(e,n,t){const o=c;return t[e]?.[o(1123)]??(n===1?o(242):o(242)+e)}const Qg=[{label:c(1516),value:c(1516)},{label:"number",value:c(663)},{label:c(1106),value:c(1106)},{label:c(448),value:"object"},{label:"any",value:c(730)}];function Qc(e){const n=c,t=Fc[n(1682)](x=>x[n(699)]===e[n(1271)]),o=t?.[n(772)]??e.eventType;if(e.eventType===n(1647)){const x=(e[n(1844)]||"")[n(1431)]();return x?o+" · "+x:o}return o}const $g=({open:e,onClose:n,bindNodeId:t,editingRoot:o})=>{const x=c,{nodes:r,eventFlow:i,externalHandlerCatalog:a,addEventBlock:f,upsertEventBlock:s,removeEventBlock:u,addEventRoot:d,updateEventRoot:h,root:y}=Xe(),[v,g,w]=dg([]),[M,b,m]=hg([]),z=L.useRef(v);z.current=v;const[p,S]=L[x(1326)](()=>o??null),[O,G]=L.useState(!1),[q]=C[x(1510)][x(1893)](),E=C.Form[x(1119)](x(1271),q),[V,T]=L[x(1326)](null),[X,H]=L[x(1326)](!1),[N]=C[x(1510)][x(1893)](),B=C.Form[x(1119)](x(1862),N),D=C[x(1510)][x(1119)](x(1162),N),j=C.Form[x(1119)](x(331),N),U=L[x(1356)](()=>!X||!V?[]:_c(V.id,v,M),[X,V,v,M]),k=L[x(619)](()=>{}),R=L[x(619)](()=>{});L[x(553)](()=>{const Y=x;if(X&&V){const I=V.builtinConfig??{},{outputs:Z,...ee}=V;N[Y(636)]({...ee,executorType:V.executorType??Y(972),builtinId:V[Y(1162)],inputs:V[Y(331)]??[],builtinConfig:{content:String(I[Y(912)]??""),level:String(I[Y(1891)]??Y(1579)),duration:I[Y(238)]===void 0||I[Y(238)]===null?void 0:Number(I[Y(238)])}})}},[X,V,N]);const _=L.useCallback(Y=>{b(I=>ua(Y,I))},[b]),J=Y=>{const I=x,Z={bindNodeId:Y.bindNodeId,eventType:Y[I(1271)],externalEventKey:Y[I(1271)]===I(1647)?(Y[I(1844)]||"")[I(1431)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0},ee=d(Z);S({...Z,id:ee}),q[I(791)](),G(!1),C[I(208)][I(454)](I(768))},xe=L.useCallback(Y=>{const I=x;u(Y),g(Z=>Z.filter(ee=>ee.id!==Y)),b(Z=>Z[I(1027)](ee=>ee[I(1630)]!==Y&&ee.target!==Y))},[u,g,b]),oe=L.useCallback(Y=>{const I=x,Z=z.current.find(W=>W.id===Y)?.data?.[I(1537)],ee=i[I(676)][I(1682)](W=>W.id===Y),te=Z??ee;te?(T({...te,id:Y}),H(!0)):C[I(208)][I(1215)](I(1258))},[i[x(676)]]);k[x(1890)]=oe,R[x(1890)]=xe,L[x(553)](()=>{const Y=x;if(e&&p){const I=p[Y(1619)][Y(425)][Y(1186)](ee=>({id:ee.id,type:"eventBlock",position:ee.position,data:{label:ee[Y(762)][Y(772)],eventBlock:ee[Y(762)][Y(1537)],onEdit:te=>k[Y(1890)](te),onDelete:te=>R[Y(1890)](te)}})),Z=p[Y(1619)][Y(365)][Y(1186)](ee=>({id:ee.id,source:ee[Y(1630)],target:ee.target}));g(I),b(Z)}},[e,p,g,b]);const ce=()=>{const Y=x,I={name:"新事件块",executorType:Y(972),callback:"return args;",inputs:[],outputs:[]},Z=f(I),ee={...I,id:Z},te={id:Z,type:Y(1537),position:{x:100+v[Y(461)]*50,y:100+v[Y(461)]*30},data:{label:ee.name,eventBlock:ee,onEdit:W=>k[Y(1890)](W),onDelete:W=>R[Y(1890)](W)}};g(W=>[...W,te])},ue=()=>{const Y=x,I={name:Y(1154),executorType:Y(142),builtinId:Y(1175),builtinConfig:{content:Y(1582),level:Y(1579)},callback:Y(1156),inputs:[],outputs:[]},Z=f(I),ee={...I,id:Z},te={id:Z,type:Y(1537),position:{x:120+v[Y(461)]*50,y:140+v.length*30},data:{label:ee[Y(1123)],eventBlock:ee,onEdit:W=>k.current(W),onDelete:W=>R[Y(1890)](W)}};g(W=>[...W,te])},me=()=>{const Y=x,I={name:"跳转画布",executorType:Y(142),builtinId:"switchCanvas",builtinConfig:{targetCanvasId:y[Y(1279)][0]?.id||""},callback:Y(1156),inputs:[],outputs:[]},Z=f(I),ee={...I,id:Z},te={id:Z,type:"eventBlock",position:{x:120+v[Y(461)]*50,y:140+v[Y(461)]*30},data:{label:ee.name,eventBlock:ee,onEdit:W=>k[Y(1890)](W),onDelete:W=>R.current(W)}};g(W=>[...W,te])},se=Y=>{const I=x;if(!V)return;const Z=Y[I(1862)]??V[I(1862)]??I(972),ee={name:Y[I(1123)],callback:Y[I(415)]??V[I(415)],executorType:Z,dataRequestKey:Z==="dataRequest"?(Y.dataRequestKey||"").trim():void 0,externalHandlerKey:Z===I(1647)?(Y.externalHandlerKey||"")[I(1431)]():void 0,builtinId:Z===I(142)?Y[I(1162)]:void 0,builtinConfig:Z===I(142)&&Y[I(1162)]==="antdMessage"?{content:String(Y[I(714)]?.[I(912)]??"")[I(1431)](),level:Y[I(714)]?.[I(1891)]||I(1579),duration:Y.builtinConfig?.[I(238)]===null||Y[I(714)]?.[I(238)]===void 0?void 0:Number(Y[I(714)].duration)}:Z==="builtin"&&Y[I(1162)]==="switchCanvas"?{targetCanvasId:String(Y[I(714)]?.[I(1234)]??"")[I(1431)]()}:void 0},te=Y.inputs??[],W=te.filter(be=>be?.name&&String(be[I(1123)])[I(1431)]()),re={...V,...ee,inputs:W,outputs:[]};s(re),g(be=>be[I(1186)](ve=>ve.id===V.id?{...ve,data:{...ve.data,label:re.name||ve[I(762)][I(772)],eventBlock:re}}:ve)),H(!1),T(null),C[I(208)][I(454)]("事件块已更新")},F=()=>{const Y=x;if(!p)return;const I=v[Y(1186)](ee=>{const te=Y,W=M[te(1027)](ve=>ve[te(1385)]===ee.id),re=ee.data[te(1537)],be={...re,outputs:[]};return{id:ee.id,eventBlockId:ee.id,position:ee[te(1137)],inputs:W[te(1186)](ve=>ve[te(1630)]),outputs:M[te(1027)](ve=>ve.source===ee.id)[te(1186)](ve=>ve[te(1385)]),data:{label:ee[te(762)][te(772)],eventBlock:be,inputMapping:_g(W,be)}}}),Z=M[Y(1186)](ee=>({id:ee.id,source:ee[Y(1630)],target:ee[Y(1385)]}));h(p.id,{flowData:{nodes:I,edges:Z}}),gn[Y(550)]({...p,flowData:{nodes:I,edges:Z}}),C.message[Y(454)](Y(1834)),n()},le=L.useMemo(()=>r[x(1186)](Y=>({label:Y[x(1123)],value:Y.id})),[r]),de=L.useMemo(()=>t?i[x(869)][x(1027)](Y=>Y[x(1575)]===t):i.eventRoots,[i.eventRoots,t]);return e?l[x(584)](C[x(324)],{title:x(1794),open:e,onCancel:n,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[p?l.jsxs(x(1517),{className:"h-full flex flex-col",style:{height:700},children:[l[x(584)](x(1517),{className:x(1072),children:[l[x(1791)](C.Space,{children:l[x(584)](x(158),{className:x(858),children:[x(471),Qc(p)," →"," ",r[x(1682)](Y=>Y.id===p.bindNodeId)?.[x(1123)]]})}),l.jsxs(C[x(642)],{children:[l[x(1791)](C[x(1804)],{icon:l[x(1791)](fe[x(1569)],{}),onClick:ce,children:x(1752)}),l[x(1791)](C.Button,{icon:l[x(1791)](fe[x(1569)],{}),onClick:ue,children:x(1154)}),l[x(1791)](C[x(1804)],{icon:l[x(1791)](fe[x(1569)],{}),onClick:me,children:x(1903)}),l[x(1791)](C.Button,{type:x(974),icon:l[x(1791)](fe[x(303)],{}),onClick:F,children:"保存"}),l.jsx(C.Button,{icon:l[x(1791)](fe.CloseOutlined,{}),onClick:()=>S(null),children:"返回列表"})]})]}),l.jsx("div",{className:"flex-1",children:l[x(584)](ug,{nodes:v,edges:M,onNodesChange:w,onEdgesChange:m,onConnect:_,nodeTypes:Rg,fitView:!0,children:[l[x(1791)](vg,{}),l.jsx(Dg,{}),l.jsx(Gg,{})]})})]}):l[x(584)](x(1517),{className:x(666),children:[l[x(584)](x(1517),{className:x(1012),children:[l.jsx("h3",{className:"text-lg font-medium",children:"选择或创建事件流"}),l[x(1791)](C.Button,{type:"primary",icon:l.jsx(fe[x(1569)],{}),onClick:()=>G(!0),children:"新建事件流"})]}),l[x(1791)](C.List,{dataSource:de,renderItem:Y=>l[x(1791)](C[x(1492)][x(1403)],{actions:[l[x(1791)](C.Button,{type:"primary",icon:l.jsx(fe[x(1009)],{}),onClick:()=>S(Y),children:"编辑"},"edit")],children:l[x(1791)](C[x(1492)][x(1403)][x(1534)],{title:l[x(584)](C[x(642)],{children:[l[x(584)](x(158),{children:["触发: ",Qc(Y)]}),l.jsx(C[x(389)],{color:x(297),children:r[x(1682)](I=>I.id===Y[x(1575)])?.name||Y.bindNodeId})]}),description:x(1453)+Y[x(1619)][x(425)][x(461)]+", 连接数: "+Y.flowData[x(365)][x(461)]})}),locale:{emptyText:l.jsx(C[x(1821)],{description:"暂无事件流"})}}),l[x(1791)](C[x(324)],{title:x(1745),open:O,onCancel:()=>{q[x(791)](),G(!1)},footer:null,afterOpenChange:Y=>{const I=x;Y&&(q.resetFields(),t&&q[I(636)]({bindNodeId:t}))},children:l[x(584)](C[x(1510)],{form:q,onFinish:J,layout:"vertical",children:[l.jsx(C[x(1510)][x(1403)],{name:"bindNodeId",label:x(751),rules:[{required:!0,message:x(511)}],initialValue:t,children:l.jsx(C[x(1436)],{options:le,placeholder:x(1652),disabled:!!t})}),l.jsx(C.Form[x(1403)],{name:x(1271),label:x(211),rules:[{required:!0,message:x(1063)}],children:l.jsx(C[x(1436)],{options:Fc,placeholder:x(1124)})}),E===x(1647)&&l[x(1791)](C[x(1510)].Item,{name:"externalEventKey",label:"外部事件标识",rules:[{required:!0,message:x(1443)},{validator:(Y,I)=>(I||"")[x(1431)]()?Promise[x(943)]():Promise.reject(new Error(x(1083)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:l[x(1791)](C[x(703)],{placeholder:x(1655)})}),l[x(1791)](C.Form[x(1403)],{className:x(1687),children:l[x(584)](C[x(642)],{className:x(1479),children:[l[x(1791)](C.Button,{onClick:()=>{q[x(791)](),G(!1)},children:"取消"}),l.jsx(C[x(1804)],{type:x(974),htmlType:x(232),children:"创建"})]})})]})})]}),l[x(1791)](C[x(324)],{title:x(1152),open:X,onCancel:()=>{H(!1),T(null)},footer:null,destroyOnClose:!0,children:l[x(584)](C[x(1510)],{form:N,onFinish:se,layout:x(486),children:[l[x(1791)](C[x(1510)].Item,{name:x(1123),label:"名称",rules:[{required:!0,message:x(1929)}],children:l.jsx(C[x(703)],{})}),l[x(1791)](C[x(1510)][x(1403)],{name:x(1862),label:x(374),rules:[{required:!0,message:x(1730)}],children:l[x(1791)](C.Select,{options:Jg,placeholder:x(697)})}),B===x(142)&&l.jsx(C[x(1510)][x(1403)],{name:x(1162),label:x(418),rules:[{required:!0,message:x(1363)}],children:l[x(1791)](C[x(1436)],{options:Xg,placeholder:x(1480)})}),B===x(142)&&D==="antdMessage"&&l[x(584)](l[x(611)],{children:[l[x(1791)](C[x(1510)][x(1403)],{name:["builtinConfig",x(912)],label:"提示内容",rules:[{required:!0,message:x(1325)}],extra:x(1150),children:l[x(1791)](C[x(703)].TextArea,{rows:3,placeholder:x(708)})}),l.jsx(C[x(1510)].Item,{name:[x(714),x(1891)],label:x(618),children:l[x(1791)](C.Select,{options:Kg})}),l[x(1791)](C[x(1510)][x(1403)],{name:[x(714),x(238)],label:x(1301),extra:x(940),children:l.jsx(C[x(985)],{min:0,step:.5,style:{width:x(1888)},placeholder:"默认"})})]}),B===x(142)&&D==="switchCanvas"&&l[x(1791)](C[x(1510)].Item,{name:[x(714),"targetCanvasId"],label:x(1768),rules:[{required:!0,message:x(358)}],children:l[x(1791)](C[x(1436)],{placeholder:"选择要跳转的画布",options:y[x(1279)][x(1186)](Y=>({value:Y.id,label:Y[x(1123)]}))})}),B===x(1950)&&l[x(1791)](C[x(1510)].Item,{name:"dataRequestKey",label:x(563),rules:[{required:!0,message:x(1066)},{validator:(Y,I)=>(I||"")[x(1431)]()?Promise[x(943)]():Promise[x(1165)](new Error(x(1083)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:l[x(1791)](C[x(703)],{placeholder:x(1755)})}),B==="external"&&l[x(1791)](C[x(1510)][x(1403)],{name:"externalHandlerKey",label:x(328),rules:[{required:!0,message:"请填写外部方法标识"},{validator:(Y,I)=>(I||"")[x(1431)]()?Promise.resolve():Promise[x(1165)](new Error(x(1083)))}],extra:a.length>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:a[x(461)]>0?l[x(1791)](C[x(1436)],{showSearch:!0,optionFilterProp:x(772),allowClear:!0,placeholder:"选择已注册的外部方法",options:a[x(1186)](Y=>({value:Y[x(387)],label:Y[x(772)],title:Y[x(1344)]?Y.label+x(1560)+Y.description:Y.label+" ("+Y[x(387)]+")"})),onInputKeyDown:Y=>{const I=x;Y.key===" "&&Y[I(1223)]()}}):l[x(1791)](C[x(703)],{placeholder:x(1195)})}),B===x(972)&&l.jsx(C[x(1510)].Item,{name:x(415),label:"执行代码",rules:[{validator:(Y,I)=>{const Z=x;return typeof I===Z(1516)&&I[Z(1431)]()?Promise.resolve():Promise[Z(1165)](new Error(Z(300)))}}],children:l[x(1791)](C[x(703)][x(1870)],{rows:6,placeholder:x(1265)})}),U[x(461)]>0&&l[x(584)](x(1517),{className:x(280),children:[l[x(1791)](x(1517),{className:x(629),children:x(1954)}),l[x(1791)]("ul",{className:x(1172),children:U.map(Y=>{const I=x,Z=j??V?.inputs??[],ee=Fg(Y[I(1471)],Y[I(1429)],Z);return l[I(584)]("li",{className:I(1714),children:[l[I(584)](I(1517),{className:I(1425),children:["第 ",Y[I(1471)]+1,I(430),Y.sourceLabel,I(286),l.jsx(I(1384),{children:"整块返回值"})," →"," ",l[I(584)](I(1958),{className:"bg-white px-1 rounded",children:["args.",ee]})]}),l[I(584)]("div",{className:I(1256),children:[I(798),Y[I(1471)]+1,I(1346)]})]},Y[I(1334)])})})]}),l[x(1791)]("div",{className:"font-medium text-gray-800 mb-2",children:"入参名称(按连线顺序)"}),l[x(584)]("div",{className:x(562),children:[x(854)," ",l.jsx("code",{children:x(696)}),x(1064),l[x(1791)](x(1958),{children:x(474)}),"、",l.jsx(x(1958),{children:x(843)}),"…"]}),l[x(1791)](C.Form[x(1492)],{name:x(331),children:(Y,{add:I,remove:Z})=>l[x(584)](l[x(611)],{children:[Y.map(({key:ee,name:te,...W})=>l[x(584)](C[x(642)],{align:x(1808),wrap:!0,className:x(1948),children:[l.jsx(C[x(1510)][x(1403)],{...W,name:[te,x(1123)],rules:[{required:!0,message:"名称"}],children:l[x(1791)](C.Input,{placeholder:x(883),style:{width:140}})}),l[x(1791)](C[x(1510)][x(1403)],{...W,name:[te,x(893)],initialValue:x(730),children:l[x(1791)](C[x(1436)],{options:Qg,style:{width:100}})}),l.jsx(fe.MinusCircleOutlined,{className:x(673),onClick:()=>Z(te)})]},ee)),l[x(1791)](C[x(1804)],{type:x(1733),onClick:()=>I({type:x(730)}),block:!0,icon:l[x(1791)](fe.PlusOutlined,{}),children:"添加入参行(第几个参数)"})]})}),l[x(1791)](C[x(1510)].Item,{className:"mb-0 mt-4",children:l.jsxs(C[x(642)],{className:x(1479),children:[l[x(1791)](C[x(1804)],{onClick:()=>{H(!1),T(null)},children:"取消"}),l[x(1791)](C[x(1804)],{type:x(974),htmlType:"submit",children:"保存"})]})})]})})]}):null},fx={click:"点击",mouseDown:c(1924),mouseUp:c(1591),doubleClick:"双击",mouseOver:"鼠标移入",mouseLeave:c(1005),mouseEnter:c(1113),contextMenu:"右键菜单",dataRequest:"数据请求",external:"外部事件"};function e1(e){const n=c;if(e[n(1271)]===n(1647)){const t=(e[n(1844)]||"")[n(1431)]();return t?fx[n(1647)]+n(261)+t:fx[n(1647)]}return fx[e[n(1271)]]}const n1=Object[c(1399)](fx)[c(1186)](([e,n])=>({label:n,value:e})),t1=({nodeId:e})=>{const n=c,{eventFlow:t,addEventRoot:o,updateEventRoot:x,removeEventRoot:r}=Xe(),[i,a]=L[n(1326)](!1),[f,s]=L[n(1326)](null),[u,d]=L[n(1326)](!1),[h]=C[n(1510)][n(1893)](),y=C.Form[n(1119)](n(1271),h),v=L[n(1356)](()=>{const m=n;return t[m(869)][m(1027)](z=>z[m(1575)]===e)},[t[n(869)],e]),g=m=>{const z=n,p={bindNodeId:e,eventType:m.eventType,externalEventKey:m.eventType===z(1647)?(m[z(1844)]||"")[z(1431)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0};o(p),h[z(791)](),d(!1)},w=m=>{s(m),a(!0)},M=(m,z)=>{x(m.id,{enabled:z})},b=m=>{r(m)};return l[n(584)](n(1517),{children:[l.jsxs(n(1517),{className:n(1012),children:[l[n(1791)]("h4",{className:"text-sm font-medium",children:"事件流绑定"}),l[n(1791)](C[n(1804)],{type:n(974),size:n(1171),icon:l.jsx(fe[n(1569)],{}),onClick:()=>d(!0),children:"添加事件流"})]}),l[n(1791)](C[n(1492)],{dataSource:v,renderItem:m=>l[n(1791)](C[n(1492)][n(1403)],{actions:[l.jsx(C[n(1019)],{checked:m[n(957)],size:n(1171),onChange:z=>M(m,z)},n(468)),l[n(1791)](C.Button,{type:"text",size:n(1171),icon:l[n(1791)](fe.EditOutlined,{}),onClick:()=>w(m)},"edit"),l[n(1791)](C[n(1566)],{title:"确认删除",description:n(740),onConfirm:()=>b(m.id),children:l[n(1791)](C.Button,{type:n(513),danger:!0,size:n(1171),icon:l.jsx(fe[n(371)],{})})},"delete")],children:l[n(1791)](C[n(1492)].Item[n(1534)],{title:l.jsxs(C[n(642)],{children:[l[n(1791)](C[n(389)],{color:m[n(957)]?n(297):n(1409),children:e1(m)}),l[n(584)](n(158),{className:n(1585),children:[m.flowData[n(425)][n(461)],n(1414)]})]}),description:m.enabled?l[n(1791)]("span",{className:n(1613),children:n(1030)}):l.jsx(n(158),{className:n(1585),children:n(664)})})}),locale:{emptyText:l[n(1791)](C[n(1821)],{image:C.Empty[n(1451)],description:"暂无事件流绑定"})}}),l[n(1791)](C[n(324)],{title:n(377),open:u,onCancel:()=>{h[n(791)](),d(!1)},footer:null,afterOpenChange:m=>{m&&h.resetFields()},children:l[n(584)](C[n(1510)],{form:h,onFinish:g,layout:n(486),children:[l[n(1791)](C[n(1510)][n(1403)],{name:n(1271),label:n(211),rules:[{required:!0,message:n(1063)}],children:l[n(1791)](C.Select,{options:n1,placeholder:n(390)})}),y===n(1647)&&l[n(1791)](C[n(1510)].Item,{name:n(1844),label:n(294),rules:[{required:!0,message:n(1443)},{validator:(m,z)=>(z||"")[n(1431)]()?Promise.resolve():Promise.reject(new Error(n(1083)))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:l[n(1791)](C[n(703)],{placeholder:n(289)})}),l.jsx(C[n(1510)].Item,{className:n(1687),children:l[n(584)](C.Space,{className:n(1479),children:[l[n(1791)](C.Button,{onClick:()=>d(!1),children:"取消"}),l[n(1791)](C[n(1804)],{type:"primary",htmlType:n(232),children:"创建"})]})})]})}),l.jsx($g,{open:i,onClose:()=>{a(!1),s(null)},bindNodeId:e,editingRoot:f},f?.id??n(174)+e)]})},{Panel:V0}=C[c(706)],{TabPane:ux}=C[c(559)],{TextArea:x1}=C[c(703)],$c=({defaultTestData:e})=>{const n=c,{nodes:t,selectedNodeId:o,updateNode:x,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:a,materials:f,selectedStatusId:s,selectStatus:u}=Xe(),[d]=C[n(1510)][n(1893)](),[h,y]=L.useState(n(1010)),[v,g]=L[n(1326)](!1),[w,M]=L[n(1326)](null),[b,m]=L[n(1326)]({}),z=L[n(1356)](()=>t[n(1682)](D=>D.id===o),[t,o]),p=z?.[n(1345)][n(273)]||[],S=B=>{const D=n;o&&(B[D(307)]&&r(o,B.normalStyle),B[D(1123)]!==void 0&&x(o,{name:B.name}),B[D(1396)]&&i(o,B[D(1396)]))};console[n(922)](o,n(1669),z),L[n(553)](()=>{const B=n;z&&z&&(d[B(636)]({name:z[B(1123)],normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:B(1437),borderRadius:0,opacity:1,...z.normalStyle},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...z[B(1396)]}}),u(null))},[z,u,d]);const O=()=>{!o||!z||(M("new"),g(!0))},G=B=>{const D=n;if(!o||!z)return;const j={id:Me[D(467)](),name:B[D(1123)]+D(354)+(p[D(461)]+1),expression:p[D(461)]===0?D(528):"return false;",material:{...B,id:Me[D(467)]()},boundDatasetId:null};if(w==="new"){const U=[...p,j];a(o,{statusList:U})}else if(w){const U=p[D(1186)](k=>{const R=D;return k.id===w?{...k,material:{...B,id:Me[R(467)]()}}:k});a(o,{statusList:U})}g(!1),M(null)},q=B=>{const D=n;if(!o||!z)return;const j=z.contentInfo[D(273)]?.[D(1027)](U=>U.id!==B)||[];a(o,{statusList:j}),s===B&&u(null)},E=(B,D)=>{const j=n;if(!o||!z)return;const U=z[j(1345)][j(273)]?.[j(1186)](k=>k.id===B?{...k,...D}:k)||[];a(o,{statusList:U})},V=B=>{const D=n;if(!o||!z)return;const j={...B,id:Me.nanoid(),name:B[D(1123)]+D(989),expression:D(1107)},U=[...p,j];a(o,{statusList:U})},T=(B,D)=>{const j=n;if(!o||!z)return;const U=p.findIndex(R=>R.id===B);if(U===-1)return;const k=[...p];D==="up"&&U>0?[k[U],k[U-1]]=[k[U-1],k[U]]:D===j(557)&&U<k[j(461)]-1&&([k[U],k[U+1]]=[k[U+1],k[U]]),a(o,{statusList:k})},X=B=>{M(B),g(!0)},H=(B,D)=>{const j=n,U=D.config||{},k=U[j(470)]??0,R=U[j(481)]??0,_=U[j(1391)]??100,J=U[j(1783)]??0,xe=Math.max((U[j(551)]||U[j(1128)]||2)*2,4),oe=Math.min(k,_),ce=Math[j(407)](R,J),ue=Math[j(630)](k,_),me=Math.max(R,J),se=Math[j(630)](ue-oe,xe),F=Math.max(me-ce,xe),le=B[j(307)].x||0,de=B[j(307)].y||0;return{material:{...D,config:{...U,startX:k-oe,startY:R-ce,endX:_-oe,endY:J-ce}},box:{x:le+oe,y:de+ce,width:se,height:F}}},N=(B,D)=>{const j=n;if(!o||!z)return;const{list:U,lineBox:k}=p[j(1906)]((R,_)=>{const J=j;if(_.id!==B)return R[J(1394)][J(1955)](_),R;let xe;if(_[J(277)].type===J(1743)&&J(141)in D&&D[J(141)]!==void 0){const oe=_[J(277)],ce=D[J(141)];xe={...oe,...D,config:{...oe[J(141)]||{},...ce}}}else xe={..._[J(277)],...D};if(xe.type===J(1743)){const{material:oe,box:ce}=H(z,xe);return R[J(1394)][J(1955)]({..._,material:oe}),R.lineBox=ce,R}return R[J(1394)].push({..._,material:xe}),R},{list:[],lineBox:null});k!==null?x(o,{normalStyle:{...z[j(307)],x:k.x,y:k.y,width:k[j(737)],height:k.height},contentInfo:{...z[j(1345)],statusList:U}}):a(o,{statusList:U})};return z?l[n(584)](n(1517),{className:n(156),children:[l[n(584)](n(1517),{className:"p-4 border-b border-gray-200",children:[l[n(1791)]("h3",{className:n(1824),children:n(1629)}),l[n(1791)]("p",{className:n(878),children:n(1390)})]}),l[n(1791)](n(1517),{className:n(1860),children:l[n(584)](C[n(559)],{activeKey:h,onChange:y,children:[l[n(1791)](ux,{tab:"基础",children:l[n(584)](C[n(1510)],{form:d,layout:n(486),onValuesChange:S,initialValues:{name:z.name},children:[l.jsx(C[n(1510)][n(1403)],{label:n(908),name:n(1123),children:l[n(1791)](C[n(703)],{placeholder:"输入节点名称"})}),l[n(584)](C.Collapse,{ghost:!0,defaultActiveKey:[n(1137),n(613),n(1022)],children:[l[n(1791)](V0,{header:"位置",children:l[n(584)](C[n(642)],{children:[l[n(1791)](C[n(1510)][n(1403)],{label:"X",name:[n(307),"x"],children:l[n(1791)](C.InputNumber,{})}),l[n(1791)](C[n(1510)][n(1403)],{label:"Y",name:[n(307),"y"],children:l[n(1791)](C[n(985)],{})})]})},"position"),l[n(1791)](V0,{header:"尺寸",children:l.jsxs(C[n(642)],{children:[l[n(1791)](C.Form.Item,{label:"宽度",name:[n(307),"width"],children:l[n(1791)](C[n(985)],{min:10})}),l[n(1791)](C[n(1510)].Item,{label:"高度",name:[n(307),n(522)],children:l[n(1791)](C[n(985)],{min:10})})]})},n(613)),l[n(584)](V0,{header:"样式",children:[l[n(1791)](C[n(1510)][n(1403)],{label:n(1961),name:[n(307),n(386)],children:l[n(1791)](C.Input,{placeholder:n(924)})}),l[n(1791)](C[n(1510)][n(1403)],{label:n(1751),name:[n(307),n(1077)],children:l[n(1791)](C[n(985)],{min:0})}),l[n(1791)](C[n(1510)][n(1403)],{label:"圆角",name:["normalStyle","borderRadius"],children:l[n(1791)](C[n(985)],{min:0})}),l[n(1791)](C[n(1510)][n(1403)],{label:n(1769),name:[n(307),n(442)],help:n(1941),children:l.jsx(C[n(985)],{min:.1,max:5,step:.1})}),!z[n(1345)][n(273)][n(540)](B=>B[n(277)][n(893)]===n(1743))&&l[n(1791)](C[n(1510)][n(1403)],{label:"旋转角度",name:["normalStyle",n(794)],help:n(308),children:l[n(1791)](C[n(985)],{min:0,max:360,step:1})}),l[n(1791)](C[n(1510)][n(1403)],{label:n(814),name:[n(307),"opacity"],children:l.jsx(C[n(985)],{min:0,max:1,step:.1})}),l[n(1791)](C[n(1510)][n(1403)],{label:"层级",name:[n(307),"zIndex"],children:l[n(1791)](C[n(985)],{})})]},n(1022))]})]})},n(1010)),l[n(1791)](ux,{tab:"状态",children:z[n(893)]===n(889)&&z[n(1377)]?l[n(1791)](Yl,{node:z,updateNode:x,materials:f}):l.jsxs("div",{className:n(795),children:[l[n(584)](n(1517),{className:"flex items-center justify-between mb-2",children:[l[n(584)](n(158),{className:"font-medium",children:[n(1221),l.jsx(C[n(389)],{color:"blue",className:n(1059),children:p[n(461)]})]}),l[n(1791)](C.Button,{type:n(974),size:"small",icon:l[n(1791)](fe[n(1569)],{}),onClick:O,children:n(523)})]}),l.jsx("p",{className:"text-xs text-gray-500 mb-3",children:n(1773)}),p[n(461)]>0&&l[n(1791)](n(1517),{className:n(966),children:l[n(1791)](n(1517),{className:n(1266),children:l[n(584)]("div",{children:[l[n(1791)](n(158),{className:"text-sm text-gray-600",children:n(936)}),l[n(1791)]("span",{className:"ml-2 text-sm font-medium text-blue-600",children:n(1784)})]})})}),p[n(461)]===0?l.jsx(n(1517),{className:"text-center text-gray-400 py-4 bg-gray-50 rounded-lg",children:n(239)}):l.jsx(C[n(706)],{ghost:!0,defaultActiveKey:p[0]?.id+o,children:p[n(1186)]((B,D)=>l[n(1791)](V0,{header:l[n(584)](n(1517),{className:n(439),children:[l[n(1791)](n(158),{className:"text-xs text-gray-400 w-5",children:D+1}),l[n(1791)](n(158),{className:"font-medium",children:B[n(1123)]}),l.jsx(C[n(389)],{color:n(1409),className:n(341),children:B[n(277)].type})]}),extra:l[n(584)](C[n(642)],{size:n(1171),onClick:j=>j[n(1223)](),children:[l.jsx(C[n(1804)],{type:"text",size:n(1171),icon:l[n(1791)](fe[n(1835)],{}),disabled:D===0,onClick:j=>{j[n(1223)](),T(B.id,"up")}}),l[n(1791)](C[n(1804)],{type:n(513),size:n(1171),icon:l[n(1791)](fe[n(161)],{}),disabled:D===p[n(461)]-1,onClick:j=>{const U=n;j[U(1223)](),T(B.id,U(557))}}),l.jsx(C[n(1804)],{type:n(513),size:n(1171),icon:l[n(1791)](fe[n(398)],{}),onClick:j=>{j[n(1223)](),V(B)}}),l[n(1791)](C.Button,{type:n(513),size:n(1171),danger:!0,icon:l.jsx(fe.DeleteOutlined,{}),onClick:j=>{j.stopPropagation(),q(B.id)}})]}),children:l[n(584)](C.Form,{layout:n(486),children:[l.jsx(C[n(1510)][n(1403)],{label:n(292),children:l[n(1791)](C[n(703)],{value:B[n(1123)],onChange:j=>E(B.id,{name:j.target[n(699)]}),placeholder:"输入状态名称"})}),l[n(1791)](Kr,{status:B,onUpdate:j=>E(B.id,j),onAppendToExpression:j=>{const U=n;m(k=>({...k,[B.id]:(k[B.id]??B[U(1238)])+j}))}}),l[n(1791)](C[n(1510)][n(1403)],{label:"执行表达式",help:n(527),children:l[n(1791)](x1,{value:b[B.id]??B[n(1238)],onChange:j=>m(U=>({...U,[B.id]:j.target[n(699)]})),onBlur:j=>{const U=n;E(B.id,{expression:j[U(1385)].value}),m(k=>{const R={...k};return delete R[B.id],R})},rows:3,placeholder:n(528)})}),l[n(1791)](C.Form[n(1403)],{label:n(1836),children:l[n(584)]("div",{className:"flex items-center gap-2",children:[l[n(1791)](C.Tag,{color:n(297),children:B.material[n(1123)]}),l.jsx(C[n(389)],{color:n(1409),children:B[n(277)].type}),l[n(1791)](C.Button,{type:n(1565),size:n(1171),icon:l[n(1791)](fe[n(1009)],{}),onClick:()=>X(B.id),children:n(1838)})]})}),l[n(1791)](C[n(591)],{style:{margin:n(162)}}),l.jsxs(n(1517),{className:n(1963),children:[l[n(584)]("div",{className:n(1227),children:[l.jsx(n(158),{className:n(270),children:n(588)}),l[n(1791)](C[n(389)],{children:B[n(277)][n(1123)]})]}),l.jsx(Zr,{material:B[n(277)],onSave:j=>N(B.id,j)})]})]})},B.id+o))})]})},n(1935)),l[n(1791)](ux,{tab:"控制",children:l[n(584)](C.Form,{form:d,layout:n(486),onValuesChange:S,children:[l[n(1791)](C[n(1510)][n(1403)],{label:n(1518),name:["controlInfo","isDraggable"],valuePropName:n(333),children:l.jsx(C[n(1019)],{})}),l[n(1791)](C.Form[n(1403)],{label:n(1308),name:["controlInfo","isClickable"],valuePropName:"checked",children:l[n(1791)](C[n(1019)],{})}),l.jsx(C[n(1510)][n(1403)],{label:n(1913),name:[n(1396),n(433)],valuePropName:n(333),children:l[n(1791)](C[n(1019)],{})}),l[n(1791)](C[n(1510)][n(1403)],{label:"可选中",name:[n(1396),n(499)],valuePropName:"checked",children:l[n(1791)](C[n(1019)],{})})]})},"control"),l[n(1791)](ux,{tab:n(135),children:l[n(1791)](t1,{nodeId:z.id})},n(818))]})}),l.jsx(n(1517),{className:"p-3 border-t border-gray-200 bg-gray-50",children:l.jsxs("div",{className:n(1597),children:[l[n(584)]("div",{children:["节点 ID: ",z.id[n(1337)](0,8),n(979)]}),l[n(584)](n(1517),{children:["状态数: ",p[n(461)]]})]})}),l[n(1791)](C[n(324)],{title:"选择物料",open:v,onCancel:()=>{g(!1),M(null)},footer:null,width:600,children:l[n(1791)](n(1517),{className:n(1444),children:l[n(584)](C[n(706)],{ghost:!0,defaultActiveKey:[n(1010),n(428),"text",n(1036)],children:[l.jsx(V0,{header:n(372),children:l[n(1791)]("div",{className:n(610),children:f.filter(B=>["矩形","圆形",n(1297)][n(1486)](B[n(1123)]))[n(1186)](B=>l[n(1791)](es,{material:B,onClick:()=>G(B)},B.id))})},"basic"),l[n(1791)](V0,{header:n(1686),children:l[n(1791)](n(1517),{className:n(610),children:f[n(1027)](B=>["阀门","泵","罐体"].includes(B[n(1123)])||B[n(893)]===n(873)&&!["矩形","圆形",n(1297)][n(1486)](B.name))[n(1186)](B=>l[n(1791)](es,{material:B,onClick:()=>G(B)},B.id))})},"device"),l.jsx(V0,{header:"文本",children:l[n(1791)](n(1517),{className:"grid grid-cols-4 gap-2",children:f.filter(B=>B[n(893)]===n(668))[n(1186)](B=>l[n(584)](n(1517),{className:n(1241),onClick:()=>G(B),children:[l.jsx(n(1517),{className:n(1352),children:l.jsx(n(158),{className:n(1328),children:"T"})}),l[n(1791)](n(158),{className:"text-xs",children:B[n(1123)]})]},B.id))})},n(513)),l[n(1791)](V0,{header:"线条",children:l.jsx("div",{className:n(610),children:f[n(1027)](B=>B[n(893)]===n(1743)).map(B=>l[n(584)](n(1517),{className:n(1241),onClick:()=>G(B),children:[l[n(1791)]("div",{className:"w-12 h-12 mx-auto mb-1 flex items-center justify-center bg-gray-100 rounded",children:l.jsx(n(1517),{className:n(1666)})}),l[n(1791)](n(158),{className:n(341),children:B[n(1123)]})]},B.id))})},n(1036))]})})})]}):l[n(1791)](n(1517),{className:n(632),children:l[n(1791)](C[n(1821)],{description:n(1446)})})},es=({material:e,onClick:n})=>{const t=c,o=e.type===t(873)?e.src:void 0;return l[t(584)](t(1517),{className:t(1241),onClick:n,children:[l[t(1791)](t(1517),{className:t(1136),children:o?l.jsx(t(1917),{src:o,alt:e.name,className:t(1078)}):l[t(1791)]("span",{className:t(341),children:e.name[0]})}),l[t(1791)](t(158),{className:t(341),children:e[t(1123)]})]})},o1="ConfigEditor-module__configEditor__dinNG",r1={configEditor:o1},i1=`// 支持对象或数组格式
14
- // 对象格式:
15
- {
16
- "speed": 0,
17
- "temp": 25,
18
- "nested": { "x": 1 }
19
- }
20
-
21
- // 数组格式(每项需包含 name 字段用于选择):
22
- [
23
- { "name": "测点1", "value": 100, "unit": "mm" },
24
- { "name": "测点2", "value": 200, "unit": "mm" }
25
- ]`;function ns(e){return Array.isArray(e)}const ts=({open:e,onClose:n})=>{const t=c,{dataPool:o,addDataPoolItem:x,updateDataPoolItem:r,removeDataPoolItem:i}=Xe(),[a]=C.Form[t(1893)](),[f,s]=L[t(1326)](null);L.useEffect(()=>{const g=t;!e&&(s(null),a[g(791)]())},[e,a]);const u=()=>{const g=t;s(g(502)),a[g(636)]({name:"数据集 "+(o[g(461)]+1),sampleJson:""})},d=g=>{const w=t;s(g.id),a.setFieldsValue({name:g[w(1123)],sampleJson:JSON[w(595)](g[w(741)]??{},null,2)})},h=g=>{const w=t,M=g[w(1431)]();if(!M)return{};const b=JSON[w(1028)](M);if(b===null||typeof b!==w(448))throw new Error(w(148));if(Array[w(1021)](b)){for(let m=0;m<b.length;m++)if(typeof b[m]!="object"||b[m]===null)throw new Error("数组第 "+(m+1)+" 项必须是对象");return b}return b},y=()=>{const g=t;a[g(1049)]().then(w=>{const M=g;let b;try{b=h(w[M(1199)])}catch(z){C.message[M(1842)](z instanceof Error?z[M(208)]:M(1457));return}const m=w[M(1123)][M(1431)]();if(!m){C[M(208)][M(1842)](M(1929));return}f==="__new__"?(x({name:m,sample:b}),C[M(208)][M(454)](M(1610))):f&&(r(f,{name:m,sample:b}),C[M(208)][M(454)]("已保存")),s(null),a.resetFields()})[g(886)](()=>{})},v=[{title:"名称",dataIndex:t(1123),key:t(1123)},{title:"类型",key:t(893),width:100,render:(g,w)=>ns(w[t(741)])?l[t(584)](C[t(389)],{color:t(297),children:[t(1008),w.sample[t(461)]," 项)"]}):l[t(1791)](C[t(389)],{children:"对象"})},{title:t(231),key:"keys",width:90,render:(g,w)=>{const M=t;if(ns(w.sample)){const b=w[M(741)][0];return b?Object[M(859)](b).length:0}return Object[M(859)](w.sample||{})[M(461)]}},{title:"操作",key:t(1638),width:160,render:(g,w)=>l[t(584)](C[t(642)],{children:[l[t(1791)](C.Button,{type:"link",size:t(1171),icon:l[t(1791)](fe.EditOutlined,{}),onClick:()=>d(w),children:"编辑"}),l[t(1791)](C[t(1566)],{title:t(891),description:t(580),onConfirm:()=>{const M=t;i(w.id),C.message[M(454)]("已删除,相关状态已解除数据集绑定")},children:l[t(1791)](C[t(1804)],{type:t(1565),size:t(1171),danger:!0,icon:l[t(1791)](fe.DeleteOutlined,{}),children:"删除"})})]})}];return l[t(584)](C[t(324)],{title:t(1122),open:e,onCancel:n,width:760,footer:null,destroyOnClose:!0,children:[l[t(584)]("p",{className:"text-sm text-gray-500 mb-3",children:[t(1825)," ",l[t(1791)](t(1958),{className:t(565),children:t(944)}),t(1100)]}),l[t(1791)](t(1517),{className:t(182),children:l.jsx(C.Button,{type:"primary",icon:l[t(1791)](fe.PlusOutlined,{}),onClick:u,children:t(504)})}),f&&l.jsxs(t(1517),{className:"mb-4 p-3 border border-blue-200 rounded bg-blue-50/50",children:[l[t(584)]("div",{className:"font-medium mb-2",children:[f===t(502)?"新建":"编辑",t(976)]}),l.jsxs(C[t(1510)],{form:a,layout:t(486),children:[l[t(1791)](C[t(1510)][t(1403)],{name:t(1123),label:"名称",rules:[{required:!0,message:"必填"}],children:l.jsx(C[t(703)],{placeholder:t(561)})}),l[t(1791)](C[t(1510)].Item,{name:"sampleJson",label:"示例数据(JSON 对象或数组)",rules:[{required:!0,message:"必填"}],children:l[t(1791)](C.Input[t(1870)],{rows:12,className:t(1792),placeholder:i1})}),l[t(584)](C.Space,{children:[l[t(1791)](C[t(1804)],{type:t(974),onClick:y,children:"保存"}),l[t(1791)](C[t(1804)],{onClick:()=>{const g=t;s(null),a[g(791)]()},children:"取消"})]})]})]}),l[t(1791)](C[t(421)],{size:t(1171),rowKey:"id",dataSource:o,columns:v,pagination:!1,locale:{emptyText:t(876)}})]})},{Header:a1,Sider:xs,Content:c1}=C[c(1785)],s1=({initialScheme:e,onChange:n,readonly:t=!1,headerExtra:o,className:x="",style:r,showHeader:i=!0,showMaterialPanel:a=!0,showPropertyPanel:f=!0,customMaterials:s,initialDataPool:u,initialEventFlow:d,externalEventActions:h,onUploadSvg:y,defaultTestData:v,backgroundImageUrl:g,initialViewportWidth:w,initialViewportHeight:M})=>{const b=c,[m,z]=L[b(1326)](!1),[p,S]=L.useState(!1),[O,G]=L[b(1326)](""),[q]=L[b(1326)](()=>[{paramsCode:b(163),paramsName:b(1771),value:25,paramsUnit:b(514)},{paramsCode:"002",paramsName:b(1044),value:1.5,paramsUnit:"m/s²"}]),E=v!==void 0?v:q,V=i&&!t,{exportScheme:T,importScheme:X,nodes:H,materials:N,dataPool:B,eventFlow:D,root:j,canvas:U,viewport:k,addMaterial:R,setDataPool:_,setEventFlow:J,setExternalHandlerCatalog:xe}=Xe();L.useRef(null);const oe=L[b(619)](!1);L[b(553)](()=>{const F=b;if(!oe[F(1890)]&&(oe.current=!0,lr.forEach(le=>R(le)),e&&X(e),d!==void 0&&J(d),h&&h[F(461)]>0)){xe(h);const le={};for(const de of h){const Y=String(de.key??"")[F(1431)]();Y&&de[F(1340)]&&(le[Y]=de.handler)}Object[F(859)](le)[F(461)]>0&&gn[F(1268)]({external:le})}},[]),L.useEffect(()=>{const F=b;s&&s[F(461)]>0&&s[F(1956)](le=>R(le))},[]),L[b(553)](()=>{u!==void 0&&_(u)},[u,_]),L[b(553)](()=>{if(n){const F=T();n(F)}},[H,N,B,D,j,n,T]);const ce=L.useCallback(()=>{const F=b,le=T(),de=JSON.stringify(le,null,2),Y=F(1815)+encodeURIComponent(de),I=F(1739)+Date[F(590)]()+F(1728),Z=document[F(1830)]("a");Z[F(526)]("href",Y),Z[F(526)](F(1404),I),Z[F(652)](),C[F(208)].success("导出成功!")},[T]),ue=L[b(130)](()=>{const F=b;try{const le=JSON[F(1028)](O);X(le),z(!1),G(""),C[F(208)][F(454)](F(478))}catch{C[F(208)][F(1842)]("JSON 格式错误,请检查输入")}},[O,X]),me=L[b(130)](F=>{const le=b,de=new FileReader;return de.onload=Y=>{const I=_0x1d61;try{const Z=Y[I(1385)]?.[I(1559)],ee=JSON[I(1028)](Z);X(ee),C[I(208)][I(454)](I(478)),z(!1)}catch{C.message[I(1842)](I(623))}},de[le(955)](F),!1},[X]),se=L[b(130)](()=>T(),[T]);return L.useImperativeHandle(L.useRef?.(),()=>({getScheme:se,exportScheme:T,importScheme:X}),[se,T,X]),l[b(1791)](C[b(1856)],{locale:ws,children:l.jsx(b(1517),{className:r1[b(405)],style:{height:b(t?1937:1888),...r},children:l.jsxs(C[b(1785)],{className:b(413)+(t?"":"h-full")+" "+(t?"":"overflow-hidden")+" "+x,children:[V&&l.jsxs(a1,{className:b(1336),children:[l[b(584)](b(1517),{className:b(1055),children:[l[b(1791)]("div",{className:b(1839),children:b(472)}),l.jsxs(b(1517),{className:b(878),children:[H.length," 个节点"]})]}),l[b(584)](C[b(642)],{children:[o,!t&&l.jsxs(l.Fragment,{children:[l[b(1791)](C[b(1499)],{title:b(1884),children:l[b(1791)](C.Button,{icon:l[b(1791)](fe.DownloadOutlined,{}),onClick:ce,children:"导出"})}),l[b(1791)](C.Tooltip,{title:b(1057),children:l[b(1791)](C[b(1804)],{icon:l.jsx(fe.UploadOutlined,{}),onClick:()=>z(!0),children:"导入"})}),l[b(1791)](C[b(1499)],{title:b(170),children:l.jsx(C[b(1804)],{icon:l[b(1791)](fe[b(531)],{}),onClick:()=>S(!0),children:b(1851)})})]})]})]}),l[b(584)](C[b(1785)],{children:[a&&!t&&l[b(1791)](xs,{width:280,className:b(1304),theme:b(1726),children:l[b(1791)](ur,{onUploadSvg:y})}),l[b(1791)](c1,{className:"relative "+(t?"":b(1908)),style:t?{backgroundColor:U?.background,backgroundImage:U?.[b(1177)]!==!1?b(1226):void 0,backgroundSize:20*(k?.[b(442)]||1)+b(1411)+20*(k?.scale||1)+"px"}:void 0,children:l[b(1791)](Vr,{defaultTestData:E,readonly:t,backgroundImageUrl:g,initialViewportWidth:w,initialViewportHeight:M})}),f&&!t&&l[b(1791)](xs,{width:360,className:b(1304),theme:b(1726),children:l.jsx($c,{defaultTestData:Array.isArray(E)?E:void 0})})]}),l[b(1791)](ts,{open:p,onClose:()=>S(!1)}),l[b(1791)](C[b(324)],{title:"导入组态方案",open:m,onOk:ue,onCancel:()=>{z(!1),G("")},width:600,children:l[b(584)](b(1517),{className:"space-y-4",children:[l[b(584)]("div",{children:[l[b(1791)]("p",{className:b(1948),children:"选择 JSON 文件导入:"}),l[b(1791)](b(1338),{type:b(1472),accept:".json",onChange:F=>{const le=b,de=F[le(1385)].files?.[0];de&&me(de)},className:`block w-full text-sm text-gray-500
26
- file:mr-4 file:py-2 file:px-4
27
- file:rounded-full file:border-0
28
- file:text-sm file:font-semibold
29
- file:bg-blue-50 file:text-blue-700
30
- hover:file:bg-blue-100`})]}),l[b(1791)](b(1517),{className:b(600),children:"或"}),l.jsxs(b(1517),{children:[l[b(1791)]("p",{className:b(1948),children:b(1232)}),l[b(1791)](b(1222),{value:O,onChange:F=>G(F[b(1385)][b(699)]),placeholder:b(1505),className:b(476)})]})]})})]})})})};Ne[c(1544)]=Vr,Ne[c(1034)]=s1,Ne.DataPoolModal=ts,Ne.EventFlowBinding=Gr,Ne[c(1737)]=ur,Ne[c(424)]=Gx,Ne.PropertyPanel=$c,Ne[c(338)]=ir,Ne[c(1091)]=rr,Ne[c(1646)]=fr,Ne[c(1159)]=kx,Ne[c(1833)]=Lx,Ne[c(543)]=gn,Ne[c(1896)]=ar,Ne[c(366)]=lr,Ne.useEditorStore=Xe,Object[c(1709)](Ne,Symbol[c(710)],{value:c(657)})});
7
+ +`)[a(897)](`
8
+ `)),b=f[a(1106)]((g,w)=>g[a(758)](...w),[]);return[f,b]}return[[],[]]},[e]);return B[t(2005)](()=>{const a=t,u=n?.[a(500)]??ba,f=n?.[a(2008)]??!0;if(e!==null){const b=h=>{const v=a;if(r[v(523)]=h[v(1679)]||h.metaKey||h[v(1139)]||h.altKey,(!r.current||r[v(523)]&&!f)&&Cc(h))return!1;const m=ma(h[v(519)],d);if(i[v(523)].add(h[m]),ya(c,i[v(523)],!1)){const y=h[v(891)]?.()?.[0]||h[v(500)],p=y?.[v(1213)]==="BUTTON"||y?.nodeName==="A";n[v(810)]!==!1&&(r.current||!p)&&h[v(810)](),x(!0)}},g=h=>{const v=a,M=ma(h[v(519)],d);ya(c,i[v(523)],!0)?(x(!1),i.current[v(1390)]()):i.current[v(1234)](h[M]),h[v(844)]==="Meta"&&i[v(523)][v(1390)](),r.current=!1},w=()=>{const h=a;i[h(523)][h(1390)](),x(!1)};return u?.[a(1892)](a(1920),b),u?.[a(1892)]("keyup",g),window[a(1892)](a(549),w),window[a(1892)](a(1683),w),()=>{const h=a;u?.[h(1665)](h(1920),b),u?.[h(1665)]("keyup",g),window.removeEventListener(h(549),w),window[h(1665)](h(1683),w)}}},[e,x]),o}function ya(e,n,t){const o=s;return e[o(815)](x=>t||x[o(2179)]===n[o(1046)])[o(1496)](x=>x[o(1865)](r=>n[o(1147)](r)))}function ma(e,n){const t=s;return n.includes(e)?t(519):t(844)}const nh=()=>{const e=s,n=Ge();return B[e(1581)](()=>{const t=e;return{zoomIn:o=>{const x=_0x5590,{panZoom:r}=n.getState();return r?r.scaleBy(1.2,o):Promise[x(1952)](!1)},zoomOut:o=>{const x=_0x5590,{panZoom:r}=n[x(1305)]();return r?r[x(1175)](1/1.2,o):Promise[x(1952)](!1)},zoomTo:(o,x)=>{const r=_0x5590,{panZoom:i}=n[r(1305)]();return i?i[r(407)](o,x):Promise[r(1952)](!1)},getZoom:()=>n[t(1305)]()[t(1121)][2],setViewport:async(o,x)=>{const r=t,{transform:[i,c,d],panZoom:a}=n[r(1305)]();return a?(await a.setViewport({x:o.x??i,y:o.y??c,zoom:o[r(1675)]??d},x),Promise[r(1952)](!0)):Promise[r(1952)](!1)},getViewport:()=>{const o=t,[x,r,i]=n[o(1305)]()[o(1121)];return{x,y:r,zoom:i}},setCenter:async(o,x,r)=>n[t(1305)]().setCenter(o,x,r),fitBounds:async(o,x)=>{const r=t,{width:i,height:c,minZoom:d,maxZoom:a,panZoom:u}=n[r(1305)](),f=So(o,i,c,d,a,x?.[r(448)]??.1);return u?(await u[r(1758)](f,{duration:x?.[r(850)],ease:x?.[r(1834)],interpolate:x?.[r(1939)]}),Promise[r(1952)](!0)):Promise[r(1952)](!1)},screenToFlowPosition:(o,x={})=>{const r=t,{transform:i,snapGrid:c,snapToGrid:d,domNode:a}=n[r(1305)]();if(!a)return o;const{x:u,y:f}=a.getBoundingClientRect(),b={x:o.x-u,y:o.y-f},g=x.snapGrid??c,w=x.snapToGrid??d;return ht(b,i,w,g)},flowToScreenPosition:o=>{const x=t,{transform:r,domNode:i}=n[x(1305)]();if(!i)return o;const{x:c,y:d}=i[x(1821)](),a=ux(o,r);return{x:a.x+c,y:a.y+d}}}},[])};function wa(e,n){const t=s,o=[],x=new Map,r=[];for(const i of e)if(i.type===t(729)){r[t(1759)](i);continue}else if(i[t(1912)]==="remove"||i[t(1912)]===t(830))x[t(721)](i.id,[i]);else{const c=x[t(1861)](i.id);c?c.push(i):x.set(i.id,[i])}for(const i of n){const c=x[t(1861)](i.id);if(!c){o[t(1759)](i);continue}if(c[0][t(1912)]===t(928))continue;if(c[0][t(1912)]===t(830)){o[t(1759)]({...c[0][t(1160)]});continue}const d={...i};for(const a of c)th(a,d);o[t(1759)](d)}return r[t(2179)]&&r[t(1322)](i=>{const c=t;i[c(461)]!==void 0?o.splice(i[c(461)],0,{...i.item}):o[c(1759)]({...i[c(1160)]})}),o}function th(e,n){const t=s;switch(e[t(1912)]){case t(787):{n[t(1274)]=e[t(1274)];break}case"position":{typeof e[t(835)]!==t(383)&&(n.position=e[t(835)]),typeof e[t(1941)]!==t(383)&&(n.dragging=e[t(1941)]);break}case t(497):{typeof e[t(497)]!==t(383)&&(n[t(510)]={...e.dimensions},e.setAttributes&&((e[t(1329)]===!0||e[t(1329)]===t(1710))&&(n[t(1710)]=e[t(497)][t(1710)]),(e[t(1329)]===!0||e.setAttributes===t(1355))&&(n[t(1355)]=e[t(497)].height))),typeof e[t(1503)]===t(743)&&(n[t(1503)]=e[t(1503)]);break}}}function va(e,n){return wa(e,n)}function pa(e,n){return wa(e,n)}function fn(e,n){return{id:e,type:s(787),selected:n}}function En(e,n=new Set,t=!1){const o=s,x=[];for(const[r,i]of e){const c=n[o(1147)](r);!(i[o(1274)]===void 0&&!c)&&i[o(1274)]!==c&&(t&&(i.selected=c),x.push(fn(i.id,c)))}return x}function za({items:e=[],lookup:n}){const t=s,o=[],x=new Map(e[t(474)](r=>[r.id,r]));for(const[r,i]of e[t(1615)]()){const c=n.get(i.id),d=c?.[t(1157)]?.userNode??c;d!==void 0&&d!==i&&o[t(1759)]({id:i.id,item:i,type:t(830)}),d===void 0&&o[t(1759)]({item:i,type:t(729),index:r})}for(const[r]of n)x.get(r)===void 0&&o[t(1759)]({id:r,type:t(928)});return o}function Ca(e){const n=s;return{id:e.id,type:n(928)}}const Ma=e=>L2(e),xh=e=>dc(e);function Ba(e){return B[s(426)](e)}function Da(e){const n=s,[t,o]=B[n(883)](BigInt(0)),[x]=B.useState(()=>oh(()=>o(r=>r+BigInt(1))));return Zo(()=>{const r=n,i=x[r(1861)]();i[r(2179)]&&(e(i),x[r(1775)]())},[t]),x}function oh(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:t=>{n[_0x5590(1759)](t),e()}}}const La=B.createContext(null);function rh({children:e}){const n=s,t=Ge(),o=B[n(1318)](d=>{const a=n,{nodes:u=[],setNodes:f,hasDefaultNodes:b,onNodesChange:g,nodeLookup:w,fitViewQueued:h,onNodesChangeMiddlewareMap:v}=t[a(1305)]();let M=u;for(const y of d)M=typeof y===a(1347)?y(M):y;let m=za({items:M,lookup:w});for(const y of v[a(1982)]())m=y(m);b&&f(M),m[a(2179)]>0?g?.(m):h&&window.requestAnimationFrame(()=>{const{fitViewQueued:y,nodes:p,setNodes:z}=t.getState();y&&z(p)})},[]),x=Da(o),r=B.useCallback(d=>{const a=n,{edges:u=[],setEdges:f,hasDefaultEdges:b,onEdgesChange:g,edgeLookup:w}=t[a(1305)]();let h=u;for(const v of d)h=typeof v===a(1347)?v(h):v;b?f(h):g&&g(za({items:h,lookup:w}))},[]),i=Da(r),c=B[n(1581)](()=>({nodeQueue:x,edgeQueue:i}),[]);return l[n(1375)](La.Provider,{value:c,children:e})}function ih(){const e=s,n=B[e(1773)](La);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const ch=e=>!!e[s(686)];function Ro(){const e=s,n=nh(),t=Ge(),o=ih(),x=Pe(ch),r=B.useMemo(()=>{const i=_0x5590,c=g=>t[i(1305)]()[i(717)][i(1861)](g),d=g=>{const w=i;o.nodeQueue[w(1759)](g)},a=g=>{const w=i;o.edgeQueue[w(1759)](g)},u=g=>{const w=i,{nodeLookup:h,nodeOrigin:v}=t[w(1305)](),M=Ma(g)?g:h[w(1861)](g.id),m=M[w(1907)]?vc(M[w(835)],M.measured,M[w(1907)],h,v):M[w(835)],y={...M,position:m,width:M[w(510)]?.[w(1710)]??M[w(1710)],height:M[w(510)]?.[w(1355)]??M[w(1355)]};return In(y)},f=(g,w,h={replace:!1})=>{const v=i;d(M=>M[v(474)](m=>{if(m.id===g){const y=typeof w=="function"?w(m):w;return h.replace&&Ma(y)?y:{...m,...y}}return m}))},b=(g,w,h={replace:!1})=>{const v=i;a(M=>M[v(474)](m=>{const y=v;if(m.id===g){const p=typeof w===y(1347)?w(m):w;return h[y(830)]&&xh(p)?p:{...m,...p}}return m}))};return{getNodes:()=>t[i(1305)]()[i(960)][i(474)](g=>({...g})),getNode:g=>c(g)?.[i(1157)][i(1275)],getInternalNode:c,getEdges:()=>{const g=i,{edges:w=[]}=t[g(1305)]();return w[g(474)](h=>({...h}))},getEdge:g=>t[i(1305)]()[i(2052)][i(1861)](g),setNodes:d,setEdges:a,addNodes:g=>{const w=i,h=Array.isArray(g)?g:[g];o[w(492)][w(1759)](v=>[...v,...h])},addEdges:g=>{const w=i,h=Array.isArray(g)?g:[g];o.edgeQueue[w(1759)](v=>[...v,...h])},toObject:()=>{const g=i,{nodes:w=[],edges:h=[],transform:v}=t[g(1305)](),[M,m,y]=v;return{nodes:w.map(p=>({...p})),edges:h[g(474)](p=>({...p})),viewport:{x:M,y:m,zoom:y}}},deleteElements:async({nodes:g=[],edges:w=[]})=>{const h=i,{nodes:v,edges:M,onNodesDelete:m,onEdgesDelete:y,triggerNodeChanges:p,triggerEdgeChanges:z,onDelete:P,onBeforeDelete:G}=t[h(1305)](),{nodes:O,edges:V}=await P2({nodesToRemove:g,edgesToRemove:w,nodes:v,edges:M,onBeforeDelete:G}),j=V[h(2179)]>0,q=O[h(2179)]>0;if(j){const H=V[h(474)](Ca);y?.(V),z(H)}if(q){const H=O[h(474)](Ca);m?.(O),p(H)}return(q||j)&&P?.({nodes:O,edges:V}),{deletedNodes:O,deletedEdges:V}},getIntersectingNodes:(g,w=!0,h)=>{const v=i,M=yc(g),m=M?g:u(g),y=h!==void 0;return m?(h||t.getState()[v(960)])[v(815)](p=>{const z=v,P=t.getState()[z(717)][z(1861)](p.id);if(P&&!M&&(p.id===g.id||!P[z(1157)].positionAbsolute))return!1;const G=In(y?p:P),O=ut(G,m);return w&&O>0||O>=G[z(1710)]*G[z(1355)]||O>=m[z(1710)]*m[z(1355)]}):[]},isNodeIntersecting:(g,w,h=!0)=>{const v=i,M=yc(g),m=M?g:u(g);if(!m)return!1;const y=ut(m,w);return h&&y>0||y>=w[v(1710)]*w.height||y>=m.width*m[v(1355)]},updateNode:f,updateNodeData:(g,w,h={replace:!1})=>{f(g,v=>{const M=_0x5590,m=typeof w=="function"?w(v):w;return h[M(830)]?{...v,data:m}:{...v,data:{...v[M(1551)],...m}}},h)},updateEdge:b,updateEdgeData:(g,w,h={replace:!1})=>{b(g,v=>{const M=_0x5590,m=typeof w===M(1347)?w(v):w;return h[M(830)]?{...v,data:m}:{...v,data:{...v[M(1551)],...m}}},h)},getNodesBounds:g=>{const w=i,{nodeLookup:h,nodeOrigin:v}=t[w(1305)]();return N2(g,{nodeLookup:h,nodeOrigin:v})},getHandleConnections:({type:g,id:w,nodeId:h})=>Array[i(1365)](t[i(1305)]()[i(799)][i(1861)](h+"-"+g+(w?"-"+w:""))?.[i(1982)]()??[]),getNodeConnections:({type:g,handleId:w,nodeId:h})=>Array[i(1365)](t[i(1305)]()[i(799)][i(1861)](""+h+(g?w?"-"+g+"-"+w:"-"+g:""))?.[i(1982)]()??[]),fitView:async g=>{const w=i,h=t[w(1305)]()[w(1789)]??Y2();return t[w(1770)]({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:h}),o[w(492)][w(1759)](v=>[...v]),h[w(1915)]}}},[]);return B[e(1581)](()=>({...r,...n,viewportInitialized:x}),[x])}const Na=e=>e[s(1274)],ah=typeof window!==s(383)?window:void 0;function sh({deleteKeyCode:e,multiSelectionKeyCode:n}){const t=s,o=Ge(),{deleteElements:x}=Ro(),r=yt(e,{actInsideInputWithModifier:!1}),i=yt(n,{target:ah});B.useEffect(()=>{const c=_0x5590;if(r){const{edges:d,nodes:a}=o[c(1305)]();x({nodes:a.filter(Na),edges:d.filter(Na)}),o.setState({nodesSelectionActive:!1})}},[r]),B[t(2005)](()=>{o[t(1770)]({multiSelectionActive:i})},[i])}function lh(e){const n=s,t=Ge();B[n(2005)](()=>{const o=n,x=()=>{const r=_0x5590;if(!e[r(523)]||!(e[r(523)][r(731)]?.()??!0))return!1;const i=ko(e[r(523)]);(i[r(1355)]===0||i[r(1710)]===0)&&t[r(1305)]()[r(581)]?.("004",f0[r(1198)]()),t[r(1770)]({width:i[r(1710)]||500,height:i.height||500})};if(e[o(523)]){x(),window[o(1892)]("resize",x);const r=new ResizeObserver(()=>x());return r[o(2100)](e[o(523)]),()=>{const i=o;window[i(1665)](i(1816),x),r&&e[i(523)]&&r[i(1643)](e[i(523)])}}},[])}const px={position:s(2122),width:s(1575),height:"100%",top:0,left:0},dh=e=>({userSelectionActive:e.userSelectionActive,lib:e[s(1061)],connectionInProgress:e[s(1561)][s(1829)]});function uh({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:t=!0,panOnScroll:o=!1,panOnScrollSpeed:x=.5,panOnScrollMode:r=ln[s(699)],zoomOnDoubleClick:i=!0,panOnDrag:c=!0,defaultViewport:d,translateExtent:a,minZoom:u,maxZoom:f,zoomActivationKeyCode:b,preventScrolling:g=!0,children:w,noWheelClassName:h,noPanClassName:v,onViewportChange:M,isControlledViewport:m,paneClickDistance:y,selectionOnDrag:p}){const z=s,P=Ge(),G=B[z(780)](null),{userSelectionActive:O,lib:V,connectionInProgress:j}=Pe(dh,Ue),q=yt(b),H=B.useRef();lh(G);const W=B[z(1318)](T=>{const N=z;M?.({x:T[0],y:T[1],zoom:T[2]}),!m&&P[N(1770)]({transform:T})},[M,m]);return B[z(2005)](()=>{const T=z;if(G[T(523)]){H.current=y5({domNode:G[T(523)],minZoom:u,maxZoom:f,translateExtent:a,viewport:d,onDraggingChange:Y=>P[T(1770)](U=>U[T(1321)]===Y?U:{paneDragging:Y}),onPanZoomStart:(Y,U)=>{const I=T,{onViewportChangeStart:J,onMoveStart:$}=P[I(1305)]();$?.(Y,U),J?.(U)},onPanZoom:(Y,U)=>{const{onViewportChange:I,onMove:J}=P.getState();J?.(Y,U),I?.(U)},onPanZoomEnd:(Y,U)=>{const I=T,{onViewportChangeEnd:J,onMoveEnd:$}=P[I(1305)]();$?.(Y,U),J?.(U)}});const{x:N,y:L,zoom:D}=H.current[T(1641)]();return P[T(1770)]({panZoom:H[T(523)],transform:[N,L,D],domNode:G[T(523)][T(1720)](T(1778))}),()=>{const Y=T;H[Y(523)]?.[Y(1544)]()}}},[]),B.useEffect(()=>{H.current?.update({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:t,panOnScroll:o,panOnScrollSpeed:x,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:c,zoomActivationKeyPressed:q,preventScrolling:g,noPanClassName:v,userSelectionActive:O,noWheelClassName:h,lib:V,onTransformChange:W,connectionInProgress:j,selectionOnDrag:p,paneClickDistance:y})},[e,n,t,o,x,r,i,c,q,g,v,O,h,V,W,j,p,y]),l.jsx(z(1037),{className:z(1948),ref:G,style:px,children:w})}const fh=e=>({userSelectionActive:e[s(2176)],userSelectionRect:e[s(2027)]});function hh(){const e=s,{userSelectionActive:n,userSelectionRect:t}=Pe(fh,Ue);return n&&t?l[e(1375)]("div",{className:"react-flow__selection react-flow__container",style:{width:t[e(1710)],height:t[e(1355)],transform:e(1848)+t.x+e(1057)+t.y+e(604)}}):null}const Jo=(e,n)=>t=>{const o=_0x5590;t[o(500)]===n[o(523)]&&e?.(t)},gh=e=>({userSelectionActive:e[s(2176)],elementsSelectable:e[s(760)],connectionInProgress:e.connection.inProgress,dragging:e[s(1321)]});function bh({isSelecting:e,selectionKeyPressed:n,selectionMode:t=st[s(452)],panOnDrag:o,paneClickDistance:x,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:c,onPaneClick:d,onPaneContextMenu:a,onPaneScroll:u,onPaneMouseEnter:f,onPaneMouseMove:b,onPaneMouseLeave:g,children:w}){const h=s,v=Ge(),{userSelectionActive:M,elementsSelectable:m,dragging:y,connectionInProgress:p}=Pe(gh,Ue),z=m&&(e||M),P=B[h(780)](null),G=B[h(780)](),O=B.useRef(new Set),V=B[h(780)](new Set),j=B[h(780)](!1),q=U=>{const I=h;if(j[I(523)]||p){j[I(523)]=!1;return}d?.(U),v.getState()[I(637)](),v[I(1770)]({nodesSelectionActive:!1})},H=U=>{const I=h;if(Array[I(565)](o)&&o?.[I(1419)](2)){U.preventDefault();return}a?.(U)},W=u?U=>u(U):void 0,T=U=>{const I=h;j[I(523)]&&(U[I(1313)](),j[I(523)]=!1)},N=U=>{const I=h,{domNode:J}=v[I(1305)]();if(G[I(523)]=J?.[I(1821)](),!G.current)return;const $=U.target===P[I(523)];if(!$&&!!U.target[I(1720)](".nokey")||!e||!(r&&$||n)||U[I(752)]!==0||!U[I(1326)])return;U[I(500)]?.[I(2146)]?.(U.pointerId),j[I(523)]=!1;const{x:re,y:ae}=M0(U.nativeEvent,G.current);v[I(1770)]({userSelectionRect:{width:0,height:0,startX:re,startY:ae,x:re,y:ae}}),!$&&(U[I(1313)](),U.preventDefault())},L=U=>{const I=h,{userSelectionRect:J,transform:$,nodeLookup:F,edgeLookup:xe,connectionLookup:re,triggerNodeChanges:ae,triggerEdgeChanges:ue,defaultEdgeOptions:me,resetSelectedElements:se}=v[I(1305)]();if(!G.current||!J)return;const{x:ee,y:le}=M0(U.nativeEvent,G[I(523)]),{startX:be,startY:E}=J;if(!j[I(523)]){const X=n?0:x;if(Math[I(783)](ee-be,le-E)<=X)return;se(),i?.(U)}j[I(523)]=!0;const A={startX:be,startY:E,x:ee<be?ee:be,y:le<E?le:E,width:Math[I(1537)](ee-be),height:Math[I(1537)](le-E)},Z=O[I(523)],ne=V.current;O[I(523)]=new Set(Lo(F,A,$,t===st[I(1098)],!0).map(X=>X.id)),V[I(523)]=new Set;const te=me?.[I(1546)]??!0;for(const X of O[I(523)]){const oe=re[I(1861)](X);if(oe)for(const{edgeId:ve}of oe[I(1982)]()){const pe=xe[I(1861)](ve);pe&&(pe[I(1546)]??te)&&V[I(523)][I(729)](ve)}}if(!pc(Z,O.current)){const X=En(F,O[I(523)],!0);ae(X)}if(!pc(ne,V.current)){const X=En(xe,V[I(523)]);ue(X)}v[I(1770)]({userSelectionRect:A,userSelectionActive:!0,nodesSelectionActive:!1})},D=U=>{const I=h;U.button===0&&(U[I(500)]?.[I(683)]?.(U[I(976)]),!M&&U[I(500)]===P.current&&v[I(1305)]()[I(2027)]&&q?.(U),v.setState({userSelectionActive:!1,userSelectionRect:null}),j[I(523)]&&(c?.(U),v[I(1770)]({nodesSelectionActive:O[I(523)][I(1046)]>0})))},Y=o===!0||Array[h(565)](o)&&o[h(1419)](0);return l[h(884)](h(1037),{className:Xe([h(805),{draggable:Y,dragging:y,selection:e}]),onClick:z?void 0:Jo(q,P),onContextMenu:Jo(H,P),onWheel:Jo(W,P),onPointerEnter:z?void 0:f,onPointerMove:z?L:b,onPointerUp:z?D:void 0,onPointerDownCapture:z?N:void 0,onClickCapture:z?T:void 0,onPointerLeave:g,ref:P,style:px,children:[w,l[h(1375)](hh,{})]})}function _o({id:e,store:n,unselect:t=!1,nodeRef:o}){const x=s,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:c,nodeLookup:d,onError:a}=n[x(1305)](),u=d.get(e);if(!u){a?.(x(2019),f0.error012(e));return}n.setState({nodesSelectionActive:!1}),u[x(1274)]?(t||u[x(1274)]&&c)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.[x(549)]())):r([e])}function Sa({nodeRef:e,disabled:n=!1,noDragClassName:t,handleSelector:o,nodeId:x,isSelectable:r,nodeClickDistance:i}){const c=s,d=Ge(),[a,u]=B.useState(!1),f=B[c(780)]();return B[c(2005)](()=>{const b=c;f[b(523)]=x5({getStoreItems:()=>d[b(1305)](),onNodeMouseDown:g=>{_o({id:g,store:d,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),B.useEffect(()=>{const b=c;if(!(n||!e[b(523)]||!f.current))return f[b(523)][b(905)]({noDragClassName:t,handleSelector:o,domNode:e[b(523)],isSelectable:r,nodeId:x,nodeClickDistance:i}),()=>{const g=b;f[g(523)]?.[g(1544)]()}},[t,o,n,r,e,x,i]),a}const yh=e=>n=>n.selected&&(n[s(1533)]||e&&typeof n[s(1533)]===s(383));function ka(){const e=s,n=Ge();return B[e(1318)](o=>{const x=e,{nodeExtent:r,snapToGrid:i,snapGrid:c,nodesDraggable:d,onError:a,updateNodePositions:u,nodeLookup:f,nodeOrigin:b}=n[x(1305)](),g=new Map,w=yh(d),h=i?c[0]:5,v=i?c[1]:5,M=o[x(1917)].x*h*o[x(833)],m=o[x(1917)].y*v*o[x(833)];for(const[,y]of f){if(!w(y))continue;let p={x:y.internals[x(1443)].x+M,y:y[x(1157)][x(1443)].y+m};i&&(p=ft(p,c));const{position:z,positionAbsolute:P}=uc({nodeId:y.id,nextPosition:p,nodeLookup:f,nodeExtent:r,nodeOrigin:b,onError:a});y[x(835)]=z,y[x(1157)][x(1443)]=P,g.set(y.id,y)}u(g)},[])}const Qo=B[s(531)](null),mh=Qo[s(431)];Qo[s(1721)];const Ia=()=>B.useContext(Qo),wh=e=>({connectOnClick:e[s(1937)],noPanClassName:e[s(1059)],rfId:e.rfId}),vh=(e,n,t)=>o=>{const x=s,{connectionClickStartHandle:r,connectionMode:i,connection:c}=o,{fromHandle:d,toHandle:a,isValid:u}=c,f=a?.[x(1632)]===e&&a?.id===n&&a?.[x(1912)]===t;return{connectingFrom:d?.nodeId===e&&d?.id===n&&d?.[x(1912)]===t,connectingTo:f,clickConnecting:r?.nodeId===e&&r?.id===n&&r?.type===t,isPossibleEndHandle:i===Sn[x(600)]?d?.[x(1912)]!==t:e!==d?.[x(1632)]||n!==d?.id,connectionInProcess:!!d,clickConnectionInProcess:!!r,valid:f&&u}};function ph({type:e=s(766),position:n=ze[s(1962)],isValidConnection:t,isConnectable:o=!0,isConnectableStart:x=!0,isConnectableEnd:r=!0,id:i,onConnect:c,children:d,className:a,onMouseDown:u,onTouchStart:f,...b},g){const w=s,h=i||null,v=e===w(500),M=Ge(),m=Ia(),{connectOnClick:y,noPanClassName:p,rfId:z}=Pe(wh,Ue),{connectingFrom:P,connectingTo:G,clickConnecting:O,isPossibleEndHandle:V,connectionInProcess:j,clickConnectionInProcess:q,valid:H}=Pe(vh(m,h,e),Ue);!m&&M[w(1305)]()[w(581)]?.(w(1809),f0.error010());const W=L=>{const D=w,{defaultEdgeOptions:Y,onConnect:U,hasDefaultEdges:I}=M.getState(),J={...Y,...L};if(I){const{edges:$,setEdges:F}=M[D(1305)]();F(kc(J,$))}U?.(J),c?.(J)},T=L=>{const D=w;if(!m)return;const Y=Mc(L[D(939)]);if(x&&(Y&&L[D(752)]===0||!Y)){const U=M.getState();Ho[D(1409)](L[D(939)],{handleDomNode:L[D(1630)],autoPanOnConnect:U.autoPanOnConnect,connectionMode:U.connectionMode,connectionRadius:U[D(2050)],domNode:U.domNode,nodeLookup:U[D(717)],lib:U.lib,isTarget:v,handleId:h,nodeId:m,flowId:U[D(638)],panBy:U.panBy,cancelConnection:U[D(2076)],onConnectStart:U[D(2061)],onConnectEnd:(...I)=>M.getState()[D(2108)]?.(...I),updateConnection:U.updateConnection,onConnect:W,isValidConnection:t||((...I)=>M[D(1305)]()[D(1100)]?.(...I)??!0),getTransform:()=>M[D(1305)]().transform,getFromHandle:()=>M[D(1305)]()[D(1561)][D(2118)],autoPanSpeed:U[D(768)],dragThreshold:U.connectionDragThreshold})}Y?u?.(L):f?.(L)},N=L=>{const D=w,{onClickConnectStart:Y,onClickConnectEnd:U,connectionClickStartHandle:I,connectionMode:J,isValidConnection:$,lib:F,rfId:xe,nodeLookup:re,connection:ae}=M[D(1305)]();if(!m||!I&&!x)return;if(!I){Y?.(L.nativeEvent,{nodeId:m,handleId:h,handleType:e}),M[D(1770)]({connectionClickStartHandle:{nodeId:m,type:e,id:h}});return}const ue=zc(L[D(500)]),me=t||$,{connection:se,isValid:ee}=Ho[D(706)](L[D(939)],{handle:{nodeId:m,id:h,type:e},connectionMode:J,fromNodeId:I[D(1632)],fromHandleId:I.id||null,fromType:I[D(1912)],isValidConnection:me,flowId:xe,doc:ue,lib:F,nodeLookup:re});ee&&se&&W(se);const le=structuredClone(ae);delete le[D(1829)],le.toPosition=le[D(824)]?le[D(824)].position:null,U?.(L,le),M.setState({connectionClickStartHandle:null})};return l.jsx(w(1037),{"data-handleid":h,"data-nodeid":m,"data-handlepos":n,"data-id":z+"-"+m+"-"+h+"-"+e,className:Xe([w(1541),"react-flow__handle-"+n,"nodrag",p,a,{source:!v,target:v,connectable:o,connectablestart:x,connectableend:r,clickconnecting:O,connectingfrom:P,connectingto:G,valid:H,connectionindicator:o&&(!j||V)&&(j||q?r:x)}]),onMouseDown:T,onTouchStart:T,onClick:y?N:void 0,ref:g,...b,children:d})}const Un=B[s(2002)](Ba(ph));function zh({data:e,isConnectable:n,sourcePosition:t=ze[s(2110)]}){const o=s;return l.jsxs(l[o(1465)],{children:[e?.[o(663)],l.jsx(Un,{type:o(766),position:t,isConnectable:n})]})}function Ch({data:e,isConnectable:n,targetPosition:t=ze[s(1962)],sourcePosition:o=ze.Bottom}){const x=s;return l[x(884)](l[x(1465)],{children:[l[x(1375)](Un,{type:x(500),position:t,isConnectable:n}),e?.label,l[x(1375)](Un,{type:"source",position:o,isConnectable:n})]})}function Mh(){return null}function Bh({data:e,isConnectable:n,targetPosition:t=ze[s(1962)]}){const o=s;return l[o(884)](l[o(1465)],{children:[l.jsx(Un,{type:o(500),position:t,isConnectable:n}),e?.[o(663)]]})}const zx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Pa={input:zh,default:Ch,output:Bh,group:Mh};function Dh(e){const n=s;return e.internals.handleBounds===void 0?{width:e.width??e[n(2175)]??e[n(1476)]?.[n(1710)],height:e[n(1355)]??e.initialHeight??e[n(1476)]?.height}:{width:e[n(1710)]??e.style?.[n(1710)],height:e[n(1355)]??e[n(1476)]?.[n(1355)]}}const Lh=e=>{const n=s,{width:t,height:o,x,y:r}=dt(e.nodeLookup,{filter:i=>!!i[n(1274)]});return{width:C0(t)?t:null,height:C0(o)?o:null,userSelectionActive:e.userSelectionActive,transformString:n(1848)+e[n(1121)][0]+n(1619)+e[n(1121)][1]+n(1366)+e[n(1121)][2]+n(1696)+x+n(1619)+r+n(604)}};function Nh({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:t}){const o=s,x=Ge(),{width:r,height:i,transformString:c,userSelectionActive:d}=Pe(Lh,Ue),a=ka(),u=B.useRef(null);B[o(2005)](()=>{!t&&u.current?.focus({preventScroll:!0})},[t]);const f=!d&&r!==null&&i!==null;if(Sa({nodeRef:u,disabled:!f}),!f)return null;const b=e?w=>{const h=o,v=x[h(1305)]().nodes[h(815)](M=>M.selected);e(w,v)}:void 0,g=w=>{const h=o;Object[h(2107)][h(911)][h(414)](zx,w[h(844)])&&(w[h(810)](),a({direction:zx[w.key],factor:w[h(1139)]?4:1}))};return l[o(1375)](o(1037),{className:Xe([o(900),o(595),n]),style:{transform:c},children:l[o(1375)]("div",{ref:u,className:o(1433),onContextMenu:b,tabIndex:t?void 0:-1,onKeyDown:t?void 0:g,style:{width:r,height:i}})})}const Aa=typeof window!==s(383)?window:void 0,Sh=e=>({nodesSelectionActive:e[s(1005)],userSelectionActive:e.userSelectionActive});function ja({children:e,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:c,deleteKeyCode:d,selectionKeyCode:a,selectionOnDrag:u,selectionMode:f,onSelectionStart:b,onSelectionEnd:g,multiSelectionKeyCode:w,panActivationKeyCode:h,zoomActivationKeyCode:v,elementsSelectable:M,zoomOnScroll:m,zoomOnPinch:y,panOnScroll:p,panOnScrollSpeed:z,panOnScrollMode:P,zoomOnDoubleClick:G,panOnDrag:O,defaultViewport:V,translateExtent:j,minZoom:q,maxZoom:H,preventScrolling:W,onSelectionContextMenu:T,noWheelClassName:N,noPanClassName:L,disableKeyboardA11y:D,onViewportChange:Y,isControlledViewport:U}){const I=s,{nodesSelectionActive:J,userSelectionActive:$}=Pe(Sh,Ue),F=yt(a,{target:Aa}),xe=yt(h,{target:Aa}),re=xe||O,ae=xe||p,ue=u&&re!==!0,me=F||$||ue;return sh({deleteKeyCode:d,multiSelectionKeyCode:w}),l[I(1375)](uh,{onPaneContextMenu:r,elementsSelectable:M,zoomOnScroll:m,zoomOnPinch:y,panOnScroll:ae,panOnScrollSpeed:z,panOnScrollMode:P,zoomOnDoubleClick:G,panOnDrag:!F&&re,defaultViewport:V,translateExtent:j,minZoom:q,maxZoom:H,zoomActivationKeyCode:v,preventScrolling:W,noWheelClassName:N,noPanClassName:L,onViewportChange:Y,isControlledViewport:U,paneClickDistance:c,selectionOnDrag:ue,children:l.jsxs(bh,{onSelectionStart:b,onSelectionEnd:g,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:re,isSelecting:!!me,selectionMode:f,selectionKeyPressed:F,paneClickDistance:c,selectionOnDrag:ue,children:[e,J&&l[I(1375)](Nh,{onSelectionContextMenu:T,noPanClassName:L,disableKeyboardA11y:D})]})})}ja[s(1293)]=s(1201);const kh=B.memo(ja),Ih=e=>n=>{const t=s;return e?Lo(n[t(717)],{x:0,y:0,width:n[t(1710)],height:n[t(1355)]},n.transform,!0)[t(474)](o=>o.id):Array[t(1365)](n[t(717)][t(999)]())};function Ph(e){return Pe(B[s(1318)](Ih(e),[e]),Ue)}const Ah=e=>e.updateNodeInternals;function jh(){const e=s,n=Pe(Ah),[t]=B[e(883)](()=>typeof ResizeObserver===e(383)?null:new ResizeObserver(x=>{const r=new Map;x.forEach(i=>{const c=_0x5590,d=i[c(500)].getAttribute(c(395));r[c(721)](d,{id:d,nodeElement:i.target,force:!0})}),n(r)}));return B[e(2005)](()=>()=>{t?.[_0x5590(1714)]()},[t]),t}function Yh({node:e,nodeType:n,hasDimensions:t,resizeObserver:o}){const x=s,r=Ge(),i=B.useRef(null),c=B[x(780)](null),d=B[x(780)](e[x(885)]),a=B[x(780)](e[x(1558)]),u=B[x(780)](n),f=t&&!!e[x(1157)].handleBounds;return B.useEffect(()=>{const b=x;i[b(523)]&&!e[b(1771)]&&(!f||c[b(523)]!==i.current)&&(c[b(523)]&&o?.[b(1643)](c.current),o?.[b(2100)](i[b(523)]),c.current=i.current)},[f,e[x(1771)]]),B.useEffect(()=>()=>{const b=_0x5590;c.current&&(o?.unobserve(c.current),c[b(523)]=null)},[]),B[x(2005)](()=>{const b=x;if(i.current){const g=u.current!==n,w=d.current!==e[b(885)],h=a.current!==e[b(1558)];(g||w||h)&&(u[b(523)]=n,d.current=e.sourcePosition,a[b(523)]=e[b(1558)],r[b(1305)]().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,n,e.sourcePosition,e[x(1558)]]),i}function Eh({id:e,onClick:n,onMouseEnter:t,onMouseMove:o,onMouseLeave:x,onContextMenu:r,onDoubleClick:i,nodesDraggable:c,elementsSelectable:d,nodesConnectable:a,nodesFocusable:u,resizeObserver:f,noDragClassName:b,noPanClassName:g,disableKeyboardA11y:w,rfId:h,nodeTypes:v,nodeClickDistance:M,onError:m}){const y=s,{node:p,internals:z,isParent:P}=Pe(se=>{const ee=_0x5590,le=se[ee(717)][ee(1861)](e),be=se.parentLookup.has(e);return{node:le,internals:le.internals,isParent:be}},Ue);let G=p[y(1912)]||y(384),O=v?.[G]||Pa[G];O===void 0&&(m?.("003",f0[y(1883)](G)),G="default",O=v?.default||Pa[y(384)]);const V=!!(p[y(1533)]||c&&typeof p.draggable===y(383)),j=!!(p[y(1546)]||d&&typeof p[y(1546)]===y(383)),q=!!(p[y(1424)]||a&&typeof p[y(1424)]===y(383)),H=!!(p.focusable||u&&typeof p.focusable===y(383)),W=Ge(),T=wc(p),N=Yh({node:p,nodeType:G,hasDimensions:T,resizeObserver:f}),L=Sa({nodeRef:N,disabled:p[y(1771)]||!V,noDragClassName:b,handleSelector:p[y(1970)],nodeId:e,isSelectable:j,nodeClickDistance:M}),D=ka();if(p[y(1771)])return null;const Y=T0(p),U=Dh(p),I=j||V||n||t||o||x,J=t?se=>t(se,{...z.userNode}):void 0,$=o?se=>o(se,{...z[y(1275)]}):void 0,F=x?se=>x(se,{...z[y(1275)]}):void 0,xe=r?se=>r(se,{...z[y(1275)]}):void 0,re=i?se=>i(se,{...z[y(1275)]}):void 0,ae=se=>{const ee=y,{selectNodesOnDrag:le,nodeDragThreshold:be}=W[ee(1305)]();j&&(!le||!V||be>0)&&_o({id:e,store:W,nodeRef:N}),n&&n(se,{...z.userNode})},ue=se=>{const ee=y;if(!(Cc(se[ee(939)])||w)){if(ic.includes(se[ee(844)])&&j){const le=se.key===ee(1286);_o({id:e,store:W,unselect:le,nodeRef:N})}else if(V&&p[ee(1274)]&&Object[ee(2107)][ee(911)][ee(414)](zx,se[ee(844)])){se[ee(810)]();const{ariaLabelConfig:le}=W[ee(1305)]();W[ee(1770)]({ariaLiveMessage:le[ee(1141)]({direction:se.key[ee(830)](ee(877),"")[ee(1239)](),x:~~z.positionAbsolute.x,y:~~z[ee(1443)].y})}),D({direction:zx[se[ee(844)]],factor:se.shiftKey?4:1})}}},me=()=>{const se=y;if(w||!N[se(523)]?.[se(1844)](se(1895)))return;const{transform:ee,width:le,height:be,autoPanOnNodeFocus:E,setCenter:A}=W[se(1305)]();if(!E)return;!(Lo(new Map([[e,p]]),{x:0,y:0,width:le,height:be},ee,!0)[se(2179)]>0)&&A(p[se(835)].x+Y[se(1710)]/2,p[se(835)].y+Y.height/2,{zoom:ee[2]})};return l[y(1375)](y(1037),{className:Xe([y(1344),"react-flow__node-"+G,{[g]:V},p[y(1320)],{selected:p[y(1274)],selectable:j,parent:P,draggable:V,dragging:L}]),ref:N,style:{zIndex:z.z,transform:y(1848)+z[y(1443)].x+y(1619)+z[y(1443)].y+y(604),pointerEvents:y(I?906:988),visibility:y(T?963:1771),...p[y(1476)],...U},"data-id":e,"data-testid":y(1490)+e,onMouseEnter:J,onMouseMove:$,onMouseLeave:F,onContextMenu:xe,onClick:ae,onDoubleClick:re,onKeyDown:H?ue:void 0,tabIndex:H?0:void 0,onFocus:H?me:void 0,role:p[y(1001)]??(H?y(744):void 0),"aria-roledescription":y(1504),"aria-describedby":w?void 0:la+"-"+h,"aria-label":p[y(353)],...p[y(1566)],children:l[y(1375)](mh,{value:e,children:l[y(1375)](O,{id:e,data:p[y(1551)],type:G,positionAbsoluteX:z[y(1443)].x,positionAbsoluteY:z[y(1443)].y,selected:p[y(1274)]??!1,selectable:j,draggable:V,deletable:p[y(1092)]??!0,isConnectable:q,sourcePosition:p[y(885)],targetPosition:p[y(1558)],dragging:L,dragHandle:p.dragHandle,zIndex:z.z,parentId:p[y(1907)],...Y})})})}var Uh=B[s(2002)](Eh);const Gh=e=>({nodesDraggable:e[s(1309)],nodesConnectable:e[s(563)],nodesFocusable:e[s(555)],elementsSelectable:e.elementsSelectable,onError:e[s(581)]});function Ya(e){const n=s,{nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,onError:i}=Pe(Gh,Ue),c=Ph(e.onlyRenderVisibleElements),d=jh();return l.jsx(n(1037),{className:"react-flow__nodes",style:px,children:c.map(a=>{const u=n;return l[u(1375)](Uh,{id:a,nodeTypes:e.nodeTypes,nodeExtent:e[u(790)],onClick:e[u(1820)],onMouseEnter:e[u(1535)],onMouseMove:e[u(1822)],onMouseLeave:e[u(1905)],onContextMenu:e[u(521)],onDoubleClick:e[u(1357)],noDragClassName:e[u(970)],noPanClassName:e[u(1059)],rfId:e[u(638)],disableKeyboardA11y:e[u(1116)],resizeObserver:d,nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,nodeClickDistance:e[u(1961)],onError:i},a)})})}Ya.displayName="NodeRenderer";const Oh=B.memo(Ya);function Hh(e){const n=s;return Pe(B[n(1318)](o=>{const x=n;if(!e)return o[x(2083)].map(i=>i.id);const r=[];if(o[x(1710)]&&o[x(1355)])for(const i of o[x(2083)]){const c=o[x(717)][x(1861)](i[x(766)]),d=o[x(717)].get(i[x(500)]);c&&d&&O2({sourceNode:c,targetNode:d,width:o[x(1710)],height:o.height,transform:o[x(1121)]})&&r.push(i.id)}return r},[e]),Ue)}const Th=({color:e="none",strokeWidth:n=1})=>{const t=s,o={strokeWidth:n,...e&&{stroke:e}};return l.jsx("polyline",{className:t(1713),style:o,strokeLinecap:t(381),fill:t(988),strokeLinejoin:"round",points:t(2128)})},Vh=({color:e=s(988),strokeWidth:n=1})=>{const t=s,o={strokeWidth:n,...e&&{stroke:e,fill:e}};return l[t(1375)](t(674),{className:t(1362),style:o,strokeLinecap:t(381),strokeLinejoin:t(381),points:t(1664)})},Ea={[ax[s(877)]]:Th,[ax[s(842)]]:Vh};function qh(e){const n=s,t=Ge();return B[n(1581)](()=>{const x=n;return Object[x(2107)][x(911)][x(414)](Ea,e)?Ea[e]:(t[x(1305)]()[x(581)]?.(x(1236),f0.error009(e)),null)},[e])}const Wh=({id:e,type:n,color:t,width:o=12.5,height:x=12.5,markerUnits:r=s(1473),strokeWidth:i,orient:c=s(417)})=>{const d=s,a=qh(n);return a?l.jsx(d(1360),{className:d(629),id:e,markerWidth:""+o,markerHeight:""+x,viewBox:d(1999),markerUnits:r,orient:c,refX:"0",refY:"0",children:l[d(1375)](a,{color:t,strokeWidth:i})}):null},Ua=({defaultColor:e,rfId:n})=>{const t=s,o=Pe(i=>i[t(2083)]),x=Pe(i=>i[t(1555)]),r=B[t(1581)](()=>{const i=t;return K2(o,{id:n,defaultColor:e,defaultMarkerStart:x?.[i(622)],defaultMarkerEnd:x?.[i(1977)]})},[o,x,n,e]);return r.length?l[t(1375)](t(1350),{className:t(450),"aria-hidden":t(1981),children:l[t(1375)](t(1876),{children:r[t(474)](i=>l[t(1375)](Wh,{id:i.id,type:i.type,color:i[t(1176)],width:i.width,height:i[t(1355)],markerUnits:i.markerUnits,strokeWidth:i[t(1473)],orient:i[t(1250)]},i.id))})}):null};Ua[s(1293)]=s(1413);var Xh=B.memo(Ua);function Ga({x:e,y:n,label:t,labelStyle:o,labelShowBg:x=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:c=2,children:d,className:a,...u}){const f=s,[b,g]=B[f(883)]({x:1,y:0,width:0,height:0}),w=Xe([f(486),a]),h=B.useRef(null);return B[f(2005)](()=>{const v=f;if(h[v(523)]){const M=h[v(523)][v(1383)]();g({x:M.x,y:M.y,width:M[v(1710)],height:M[v(1355)]})}},[t]),t?l.jsxs("g",{transform:f(1848)+(e-b[f(1710)]/2)+" "+(n-b[f(1355)]/2)+")",className:w,visibility:b.width?f(963):f(1771),...u,children:[x&&l[f(1375)](f(1389),{width:b[f(1710)]+2*i[0],x:-i[0],y:-i[1],height:b[f(1355)]+2*i[1],className:f(1740),style:r,rx:c,ry:c}),l.jsx("text",{className:f(2062),y:b.height/2,dy:"0.3em",ref:h,style:o,children:t}),d]}):null}Ga[s(1293)]=s(1550);const Kh=B[s(2002)](Ga);function Cx({path:e,labelX:n,labelY:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:c,labelBgBorderRadius:d,interactionWidth:a=20,...u}){const f=s;return l[f(884)](l[f(1465)],{children:[l[f(1375)](f(1850),{...u,d:e,fill:"none",className:Xe([f(746),u[f(1320)]])}),a?l[f(1375)](f(1850),{d:e,fill:f(988),strokeOpacity:0,strokeWidth:a,className:f(839)}):null,o&&C0(n)&&C0(t)?l.jsx(Kh,{x:n,y:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:c,labelBgBorderRadius:d}):null]})}function Oa({pos:e,x1:n,y1:t,x2:o,y2:x}){return e===ze[s(1029)]||e===ze.Right?[.5*(n+o),t]:[n,.5*(t+x)]}function Ha({sourceX:e,sourceY:n,sourcePosition:t=ze[s(2110)],targetX:o,targetY:x,targetPosition:r=ze[s(1962)]}){const[i,c]=Oa({pos:t,x1:e,y1:n,x2:o,y2:x}),[d,a]=Oa({pos:r,x1:o,y1:x,x2:e,y2:n}),[u,f,b,g]=Dc({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:i,sourceControlY:c,targetControlX:d,targetControlY:a});return["M"+e+","+n+" C"+i+","+c+" "+d+","+a+" "+o+","+x,u,f,b,g]}function Ta(e){const n=s;return B[n(2002)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c,targetPosition:d,label:a,labelStyle:u,labelShowBg:f,labelBgStyle:b,labelBgPadding:g,labelBgBorderRadius:w,style:h,markerEnd:v,markerStart:M,interactionWidth:m})=>{const y=n,[p,z,P]=Ha({sourceX:o,sourceY:x,sourcePosition:c,targetX:r,targetY:i,targetPosition:d}),G=e[y(1353)]?void 0:t;return l[y(1375)](Cx,{id:G,path:p,labelX:z,labelY:P,label:a,labelStyle:u,labelShowBg:f,labelBgStyle:b,labelBgPadding:g,labelBgBorderRadius:w,style:h,markerEnd:v,markerStart:M,interactionWidth:m})})}const Zh=Ta({isInternal:!1}),Va=Ta({isInternal:!0});Zh.displayName="SimpleBezierEdge",Va[s(1293)]=s(1898);function qa(e){const n=s;return B[n(2002)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:c,labelStyle:d,labelShowBg:a,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:b,style:g,sourcePosition:w=ze[n(2110)],targetPosition:h=ze[n(1962)],markerEnd:v,markerStart:M,pathOptions:m,interactionWidth:y})=>{const p=n,[z,P,G]=Io({sourceX:o,sourceY:x,sourcePosition:w,targetX:r,targetY:i,targetPosition:h,borderRadius:m?.[p(681)],offset:m?.[p(1709)],stepPosition:m?.[p(1161)]}),O=e.isInternal?void 0:t;return l[p(1375)](Cx,{id:O,path:z,labelX:P,labelY:G,label:c,labelStyle:d,labelShowBg:a,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:b,style:g,markerEnd:v,markerStart:M,interactionWidth:y})})}const Wa=qa({isInternal:!1}),Xa=qa({isInternal:!0});Wa.displayName=s(405),Xa[s(1293)]=s(1405);function Ka(e){const n=s;return B[n(2002)](({id:t,...o})=>{const x=n,r=e[x(1353)]?void 0:t;return l[x(1375)](Wa,{...o,id:r,pathOptions:B.useMemo(()=>({borderRadius:0,offset:o[x(1857)]?.[x(1709)]}),[o.pathOptions?.[x(1709)]])})})}const Rh=Ka({isInternal:!1}),Za=Ka({isInternal:!0});Rh[s(1293)]="StepEdge",Za.displayName="StepEdgeInternal";function Ra(e){const n=s;return B[n(2002)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:c,labelStyle:d,labelShowBg:a,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:b,style:g,markerEnd:w,markerStart:h,interactionWidth:v})=>{const M=n,[m,y,p]=Ic({sourceX:o,sourceY:x,targetX:r,targetY:i}),z=e[M(1353)]?void 0:t;return l.jsx(Cx,{id:z,path:m,labelX:y,labelY:p,label:c,labelStyle:d,labelShowBg:a,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:b,style:g,markerEnd:w,markerStart:h,interactionWidth:v})})}const Jh=Ra({isInternal:!1}),Ja=Ra({isInternal:!0});Jh[s(1293)]=s(2073),Ja[s(1293)]=s(950);function _a(e){const n=s;return B[n(2002)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c=ze[n(2110)],targetPosition:d=ze[n(1962)],label:a,labelStyle:u,labelShowBg:f,labelBgStyle:b,labelBgPadding:g,labelBgBorderRadius:w,style:h,markerEnd:v,markerStart:M,pathOptions:m,interactionWidth:y})=>{const p=n,[z,P,G]=Nc({sourceX:o,sourceY:x,sourcePosition:c,targetX:r,targetY:i,targetPosition:d,curvature:m?.[p(1467)]}),O=e[p(1353)]?void 0:t;return l.jsx(Cx,{id:O,path:z,labelX:P,labelY:G,label:a,labelStyle:u,labelShowBg:f,labelBgStyle:b,labelBgPadding:g,labelBgBorderRadius:w,style:h,markerEnd:v,markerStart:M,interactionWidth:y})})}const _h=_a({isInternal:!1}),Qa=_a({isInternal:!0});_h[s(1293)]=s(930),Qa.displayName=s(538);const Fa={default:Qa,straight:Ja,step:Za,smoothstep:Xa,simplebezier:Va},$a={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Qh=(e,n,t)=>t===ze[s(1029)]?e-n:t===ze.Right?e+n:e,Fh=(e,n,t)=>t===ze[s(1962)]?e-n:t===ze.Bottom?e+n:e,es=s(918);function ns({position:e,centerX:n,centerY:t,radius:o=10,onMouseDown:x,onMouseEnter:r,onMouseOut:i,type:c}){const d=s;return l[d(1375)](d(1602),{onMouseDown:x,onMouseEnter:r,onMouseOut:i,className:Xe([es,es+"-"+c]),cx:Qh(n,o,e),cy:Fh(t,o,e),r:o,stroke:d(1911),fill:d(1911)})}function $h({isReconnectable:e,reconnectRadius:n,edge:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c,targetPosition:d,onReconnect:a,onReconnectStart:u,onReconnectEnd:f,setReconnecting:b,setUpdateHover:g}){const w=s,h=Ge(),v=(z,P)=>{const G=_0x5590;if(z[G(752)]!==0)return;const{autoPanOnConnect:O,domNode:V,connectionMode:j,connectionRadius:q,lib:H,onConnectStart:W,cancelConnection:T,nodeLookup:N,rfId:L,panBy:D,updateConnection:Y}=h[G(1305)](),U=P[G(1912)]===G(500),I=(F,xe)=>{b(!1),f?.(F,t,P.type,xe)},J=F=>a?.(t,F),$=(F,xe)=>{const re=G;b(!0),u?.(z,t,P[re(1912)]),W?.(F,xe)};Ho.onPointerDown(z[G(939)],{autoPanOnConnect:O,connectionMode:j,connectionRadius:q,domNode:V,handleId:P.id,nodeId:P.nodeId,nodeLookup:N,isTarget:U,edgeUpdaterType:P.type,lib:H,flowId:L,cancelConnection:T,panBy:D,isValidConnection:(...F)=>h[G(1305)]().isValidConnection?.(...F)??!0,onConnect:J,onConnectStart:$,onConnectEnd:(...F)=>h[G(1305)]()[G(2108)]?.(...F),onReconnectEnd:I,updateConnection:Y,getTransform:()=>h.getState().transform,getFromHandle:()=>h[G(1305)]().connection[G(2118)],dragThreshold:h[G(1305)]()[G(822)],handleDomNode:z[G(1630)]})},M=z=>v(z,{nodeId:t[w(500)],id:t[w(1924)]??null,type:w(500)}),m=z=>v(z,{nodeId:t[w(766)],id:t[w(837)]??null,type:w(766)}),y=()=>g(!0),p=()=>g(!1);return l[w(884)](l[w(1465)],{children:[(e===!0||e===w(766))&&l.jsx(ns,{position:c,centerX:o,centerY:x,radius:n,onMouseDown:M,onMouseEnter:y,onMouseOut:p,type:w(766)}),(e===!0||e===w(500))&&l[w(1375)](ns,{position:d,centerX:r,centerY:i,radius:n,onMouseDown:m,onMouseEnter:y,onMouseOut:p,type:"target"})]})}function e3({id:e,edgesFocusable:n,edgesReconnectable:t,elementsSelectable:o,onClick:x,onDoubleClick:r,onContextMenu:i,onMouseEnter:c,onMouseMove:d,onMouseLeave:a,reconnectRadius:u,onReconnect:f,onReconnectStart:b,onReconnectEnd:g,rfId:w,edgeTypes:h,noPanClassName:v,onError:M,disableKeyboardA11y:m}){const y=s;let p=Pe(E=>E[y(2052)][y(1861)](e));const z=Pe(E=>E[y(1555)]);p=z?{...z,...p}:p;let P=p[y(1912)]||"default",G=h?.[P]||Fa[P];G===void 0&&(M?.(y(1292),f0.error011(P)),P=y(384),G=h?.default||Fa[y(384)]);const O=!!(p[y(722)]||n&&typeof p[y(722)]===y(383)),V=typeof f<"u"&&(p[y(1086)]||t&&typeof p[y(1086)]===y(383)),j=!!(p[y(1546)]||o&&typeof p[y(1546)]>"u"),q=B.useRef(null),[H,W]=B.useState(!1),[T,N]=B[y(883)](!1),L=Ge(),{zIndex:D,sourceX:Y,sourceY:U,targetX:I,targetY:J,sourcePosition:$,targetPosition:F}=Pe(B.useCallback(E=>{const A=y,Z=E[A(717)][A(1861)](p.source),ne=E[A(717)][A(1861)](p[A(500)]);if(!Z||!ne)return{zIndex:p.zIndex,...$a};const te=X2({id:e,sourceNode:Z,targetNode:ne,sourceHandle:p[A(837)]||null,targetHandle:p.targetHandle||null,connectionMode:E[A(1579)],onError:M});return{zIndex:G2({selected:p[A(1274)],zIndex:p.zIndex,sourceNode:Z,targetNode:ne,elevateOnSelect:E[A(1532)],zIndexMode:E[A(1316)]}),...te||$a}},[p[y(766)],p[y(500)],p[y(837)],p[y(1924)],p[y(1274)],p[y(741)]]),Ue),xe=B[y(1581)](()=>p[y(622)]?"url('#"+Po(p.markerStart,w)+"')":void 0,[p[y(622)],w]),re=B[y(1581)](()=>p[y(1977)]?y(2152)+Po(p.markerEnd,w)+"')":void 0,[p[y(1977)],w]);if(p[y(1771)]||Y===null||U===null||I===null||J===null)return null;const ae=E=>{const A=y,{addSelectedEdges:Z,unselectNodesAndEdges:ne,multiSelectionActive:te}=L[A(1305)]();j&&(L[A(1770)]({nodesSelectionActive:!1}),p[A(1274)]&&te?(ne({nodes:[],edges:[p]}),q[A(523)]?.[A(549)]()):Z([e])),x&&x(E,p)},ue=r?E=>{r(E,{...p})}:void 0,me=i?E=>{i(E,{...p})}:void 0,se=c?E=>{c(E,{...p})}:void 0,ee=d?E=>{d(E,{...p})}:void 0,le=a?E=>{a(E,{...p})}:void 0,be=E=>{const A=y;if(!m&&ic[A(1419)](E[A(844)])&&j){const{unselectNodesAndEdges:Z,addSelectedEdges:ne}=L[A(1305)]();E[A(844)]===A(1286)?(q[A(523)]?.[A(549)](),Z({edges:[p]})):ne([e])}};return l[y(1375)]("svg",{style:{zIndex:D},children:l.jsxs("g",{className:Xe([y(1649),"react-flow__edge-"+P,p[y(1320)],v,{selected:p[y(1274)],animated:p[y(624)],inactive:!j&&!x,updating:H,selectable:j}]),onClick:ae,onDoubleClick:ue,onContextMenu:me,onMouseEnter:se,onMouseMove:ee,onMouseLeave:le,onKeyDown:O?be:void 0,tabIndex:O?0:void 0,role:p[y(1001)]??y(O?744:1663),"aria-roledescription":"edge","data-id":e,"data-testid":"rf__edge-"+e,"aria-label":p.ariaLabel===null?void 0:p.ariaLabel||y(589)+p[y(766)]+y(1989)+p.target,"aria-describedby":O?da+"-"+w:void 0,ref:q,...p[y(1566)],children:[!T&&l[y(1375)](G,{id:e,source:p[y(766)],target:p[y(500)],type:p.type,selected:p[y(1274)],animated:p[y(624)],selectable:j,deletable:p.deletable??!0,label:p.label,labelStyle:p.labelStyle,labelShowBg:p[y(1123)],labelBgStyle:p[y(694)],labelBgPadding:p[y(379)],labelBgBorderRadius:p[y(1154)],sourceX:Y,sourceY:U,targetX:I,targetY:J,sourcePosition:$,targetPosition:F,data:p.data,style:p[y(1476)],sourceHandleId:p[y(837)],targetHandleId:p[y(1924)],markerStart:xe,markerEnd:re,pathOptions:y(1857)in p?p[y(1857)]:void 0,interactionWidth:p.interactionWidth}),V&&l[y(1375)]($h,{edge:p,isReconnectable:V,reconnectRadius:u,onReconnect:f,onReconnectStart:b,onReconnectEnd:g,sourceX:Y,sourceY:U,targetX:I,targetY:J,sourcePosition:$,targetPosition:F,setUpdateHover:W,setReconnecting:N})]})})}var n3=B[s(2002)](e3);const t3=e=>({edgesFocusable:e[s(909)],edgesReconnectable:e[s(679)],elementsSelectable:e[s(760)],connectionMode:e.connectionMode,onError:e[s(581)]});function ts({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:t,edgeTypes:o,noPanClassName:x,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:c,onEdgeMouseMove:d,onEdgeMouseLeave:a,onEdgeClick:u,reconnectRadius:f,onEdgeDoubleClick:b,onReconnectStart:g,onReconnectEnd:w,disableKeyboardA11y:h}){const v=s,{edgesFocusable:M,edgesReconnectable:m,elementsSelectable:y,onError:p}=Pe(t3,Ue),z=Hh(n);return l[v(884)](v(1037),{className:"react-flow__edges",children:[l[v(1375)](Xh,{defaultColor:e,rfId:t}),z[v(474)](P=>l[v(1375)](n3,{id:P,edgesFocusable:M,edgesReconnectable:m,elementsSelectable:y,noPanClassName:x,onReconnect:r,onContextMenu:i,onMouseEnter:c,onMouseMove:d,onMouseLeave:a,onClick:u,reconnectRadius:f,onDoubleClick:b,onReconnectStart:g,onReconnectEnd:w,rfId:t,onError:p,edgeTypes:o,disableKeyboardA11y:h},P))]})}ts[s(1293)]=s(1684);const x3=B[s(2002)](ts),o3=e=>"translate("+e[s(1121)][0]+"px,"+e[s(1121)][1]+s(1366)+e[s(1121)][2]+")";function r3({children:e}){const n=s,t=Pe(o3);return l[n(1375)](n(1037),{className:n(1291),style:{transform:t},children:e})}function i3(e){const n=s,t=Ro(),o=B[n(780)](!1);B[n(2005)](()=>{const x=n;!o.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),o[x(523)]=!0)},[e,t[n(1145)]])}const c3=e=>e.panZoom?.[s(730)];function a3(e){const n=s,t=Pe(c3),o=Ge();return B[n(2005)](()=>{const x=n;e&&(t?.(e),o[x(1770)]({transform:[e.x,e.y,e[x(1675)]]}))},[e,t]),null}function s3(e){const n=s;return e[n(1561)][n(1829)]?{...e.connection,to:ht(e[n(1561)].to,e.transform)}:{...e[n(1561)]}}function l3(e){return s3}function d3(e){const n=l3();return Pe(n,Ue)}const u3=e=>({nodesConnectable:e[s(563)],isValid:e[s(1561)][s(706)],inProgress:e.connection.inProgress,width:e[s(1710)],height:e[s(1355)]});function f3({containerStyle:e,style:n,type:t,component:o}){const x=s,{nodesConnectable:r,width:i,height:c,isValid:d,inProgress:a}=Pe(u3,Ue);return!(i&&r&&a)?null:l[x(1375)](x(1350),{style:e,width:i,height:c,className:x(929),children:l[x(1375)]("g",{className:Xe([x(1090),lc(d)]),children:l[x(1375)](xs,{style:n,type:t,CustomComponent:o,isValid:d})})})}const xs=({style:e,type:n=R0.Bezier,CustomComponent:t,isValid:o})=>{const x=s,{inProgress:r,from:i,fromNode:c,fromHandle:d,fromPosition:a,to:u,toNode:f,toHandle:b,toPosition:g,pointer:w}=d3();if(!r)return;if(t)return l[x(1375)](t,{connectionLineType:n,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:a,toPosition:g,connectionStatus:lc(o),toNode:f,toHandle:b,pointer:w});let h="";const v={sourceX:i.x,sourceY:i.y,sourcePosition:a,targetX:u.x,targetY:u.y,targetPosition:g};switch(n){case R0.Bezier:[h]=Nc(v);break;case R0[x(1538)]:[h]=Ha(v);break;case R0[x(1508)]:[h]=Io({...v,borderRadius:0});break;case R0[x(2092)]:[h]=Io(v);break;default:[h]=Ic(v)}return l.jsx(x(1850),{d:h,fill:x(988),className:"react-flow__connection-path",style:e})};xs[s(1293)]=s(1921);const h3={};function os(e=h3){const n=B.useRef(e),t=Ge();B.useEffect(()=>{const o=_0x5590;if(process.env.NODE_ENV===o(1549)){const x=new Set([...Object.keys(n.current),...Object.keys(e)]);for(const r of x)if(n.current[r]!==e[r]){t[o(1305)]()[o(581)]?.(o(615),f0[o(1426)]());break}n[o(523)]=e}},[e])}function g3(){const e=s,n=Ge(),t=B.useRef(!1);B[e(2005)](()=>{const o=e;if(process.env.NODE_ENV===o(1549)&&!t[o(523)]){const x=document[o(1525)](".react-flow__pane");x&&window[o(704)](x)[o(741)]!=="1"&&n[o(1305)]()[o(581)]?.(o(1657),f0.error013(o(1530))),t.current=!0}},[])}function rs({nodeTypes:e,edgeTypes:n,onInit:t,onNodeClick:o,onEdgeClick:x,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:c,onNodeMouseMove:d,onNodeMouseLeave:a,onNodeContextMenu:u,onSelectionContextMenu:f,onSelectionStart:b,onSelectionEnd:g,connectionLineType:w,connectionLineStyle:h,connectionLineComponent:v,connectionLineContainerStyle:M,selectionKeyCode:m,selectionOnDrag:y,selectionMode:p,multiSelectionKeyCode:z,panActivationKeyCode:P,zoomActivationKeyCode:G,deleteKeyCode:O,onlyRenderVisibleElements:V,elementsSelectable:j,defaultViewport:q,translateExtent:H,minZoom:W,maxZoom:T,preventScrolling:N,defaultMarkerColor:L,zoomOnScroll:D,zoomOnPinch:Y,panOnScroll:U,panOnScrollSpeed:I,panOnScrollMode:J,zoomOnDoubleClick:$,panOnDrag:F,onPaneClick:xe,onPaneMouseEnter:re,onPaneMouseMove:ae,onPaneMouseLeave:ue,onPaneScroll:me,onPaneContextMenu:se,paneClickDistance:ee,nodeClickDistance:le,onEdgeContextMenu:be,onEdgeMouseEnter:E,onEdgeMouseMove:A,onEdgeMouseLeave:Z,reconnectRadius:ne,onReconnect:te,onReconnectStart:X,onReconnectEnd:oe,noDragClassName:ve,noWheelClassName:pe,noPanClassName:Ie,disableKeyboardA11y:Ae,nodeExtent:Ee,rfId:Ne,viewport:ke,onViewportChange:Oe}){const je=s;return os(e),os(n),g3(),i3(t),a3(ke),l.jsx(kh,{onPaneClick:xe,onPaneMouseEnter:re,onPaneMouseMove:ae,onPaneMouseLeave:ue,onPaneContextMenu:se,onPaneScroll:me,paneClickDistance:ee,deleteKeyCode:O,selectionKeyCode:m,selectionOnDrag:y,selectionMode:p,onSelectionStart:b,onSelectionEnd:g,multiSelectionKeyCode:z,panActivationKeyCode:P,zoomActivationKeyCode:G,elementsSelectable:j,zoomOnScroll:D,zoomOnPinch:Y,zoomOnDoubleClick:$,panOnScroll:U,panOnScrollSpeed:I,panOnScrollMode:J,panOnDrag:F,defaultViewport:q,translateExtent:H,minZoom:W,maxZoom:T,onSelectionContextMenu:f,preventScrolling:N,noDragClassName:ve,noWheelClassName:pe,noPanClassName:Ie,disableKeyboardA11y:Ae,onViewportChange:Oe,isControlledViewport:!!ke,children:l[je(884)](r3,{children:[l.jsx(x3,{edgeTypes:n,onEdgeClick:x,onEdgeDoubleClick:i,onReconnect:te,onReconnectStart:X,onReconnectEnd:oe,onlyRenderVisibleElements:V,onEdgeContextMenu:be,onEdgeMouseEnter:E,onEdgeMouseMove:A,onEdgeMouseLeave:Z,reconnectRadius:ne,defaultMarkerColor:L,noPanClassName:Ie,disableKeyboardA11y:Ae,rfId:Ne}),l[je(1375)](f3,{style:h,type:w,component:v,containerStyle:M}),l[je(1375)](je(1037),{className:je(2145)}),l[je(1375)](Oh,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:r,onNodeMouseEnter:c,onNodeMouseMove:d,onNodeMouseLeave:a,onNodeContextMenu:u,nodeClickDistance:le,onlyRenderVisibleElements:V,noPanClassName:Ie,noDragClassName:ve,disableKeyboardA11y:Ae,nodeExtent:Ee,rfId:Ne}),l[je(1375)](je(1037),{className:je(587)})]})})}rs.displayName=s(1545);const b3=B[s(2002)](rs),is=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:d=.5,maxZoom:a=2,nodeOrigin:u,nodeExtent:f,zIndexMode:b="basic"}={})=>{const g=s,w=new Map,h=new Map,v=new Map,M=new Map,m=o??n??[],y=t??e??[],p=u??[0,0],z=f??at;Hc(v,M,m);const{nodesInitialized:P}=Eo(y,w,h,{nodeOrigin:p,nodeExtent:z,zIndexMode:b});let G=[0,0,1];if(i&&x&&r){const O=dt(w,{filter:H=>!!((H.width||H.initialWidth)&&(H[g(1355)]||H[g(586)]))}),{x:V,y:j,zoom:q}=So(O,x,r,d,a,c?.[g(448)]??.1);G=[V,j,q]}return{rfId:"1",width:x??0,height:r??0,transform:G,nodes:y,nodesInitialized:P,nodeLookup:w,parentLookup:h,edges:m,edgeLookup:M,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:t!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:d,maxZoom:a,translateExtent:at,nodeExtent:z,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Sn[g(600)],domNode:null,paneDragging:!1,noPanClassName:g(1856),nodeOrigin:p,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:{...ac},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:mc,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:g(1530),debug:!1,ariaLabelConfig:cc,zIndexMode:b,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},y3=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:d,maxZoom:a,nodeOrigin:u,nodeExtent:f,zIndexMode:b})=>E5((g,w)=>{async function h(){const v=_0x5590,{nodeLookup:M,panZoom:m,fitViewOptions:y,fitViewResolver:p,width:z,height:P,minZoom:G,maxZoom:O}=w();m&&(await I2({nodes:M,width:z,height:P,panZoom:m,minZoom:G,maxZoom:O},y),p?.[v(1952)](!0),g({fitViewResolver:null}))}return{...is({nodes:e,edges:n,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:d,maxZoom:a,nodeOrigin:u,nodeExtent:f,defaultNodes:t,defaultEdges:o,zIndexMode:b}),setNodes:v=>{const{nodeLookup:M,parentLookup:m,nodeOrigin:y,elevateNodesOnSelect:p,fitViewQueued:z,zIndexMode:P,nodesSelectionActive:G}=w(),{nodesInitialized:O,hasSelectedNodes:V}=Eo(v,M,m,{nodeOrigin:y,nodeExtent:f,elevateNodesOnSelect:p,checkEquality:!0,zIndexMode:P}),j=G&&V;z&&O?(h(),g({nodes:v,nodesInitialized:O,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:j})):g({nodes:v,nodesInitialized:O,nodesSelectionActive:j})},setEdges:v=>{const{connectionLookup:M,edgeLookup:m}=w();Hc(M,m,v),g({edges:v})},setDefaultNodesAndEdges:(v,M)=>{if(v){const{setNodes:m}=w();m(v),g({hasDefaultNodes:!0})}if(M){const{setEdges:m}=w();m(M),g({hasDefaultEdges:!0})}},updateNodeInternals:v=>{const M=_0x5590,{triggerNodeChanges:m,nodeLookup:y,parentLookup:p,domNode:z,nodeOrigin:P,nodeExtent:G,debug:O,fitViewQueued:V,zIndexMode:j}=w(),{changes:q,updatedInternals:H}=$2(v,y,p,z,P,G,j);H&&(J2(y,p,{nodeOrigin:P,nodeExtent:G,zIndexMode:j}),V?(h(),g({fitViewQueued:!1,fitViewOptions:void 0})):g({}),q?.[M(2179)]>0&&(O&&console[M(1672)](M(631),q),m?.(q)))},updateNodePositions:(v,M=!1)=>{const m=_0x5590,y=[];let p=[];const{nodeLookup:z,triggerNodeChanges:P,connection:G,updateConnection:O,onNodesChangeMiddlewareMap:V}=w();for(const[j,q]of v){const H=z[m(1861)](j),W=!!(H?.[m(1935)]&&H?.[m(1907)]&&q?.[m(835)]),T={id:j,type:m(835),position:W?{x:Math[m(2172)](0,q[m(835)].x),y:Math[m(2172)](0,q.position.y)}:q[m(835)],dragging:M};if(H&&G[m(1829)]&&G[m(1445)].id===H.id){const N=un(H,G[m(2118)],ze.Left,!0);O({...G,from:N})}W&&H.parentId&&y[m(1759)]({id:j,parentId:H[m(1907)],rect:{...q.internals.positionAbsolute,width:q[m(510)].width??0,height:q[m(510)][m(1355)]??0}}),p[m(1759)](T)}if(y[m(2179)]>0){const{parentLookup:j,nodeOrigin:q}=w(),H=Go(y,z,j,q);p[m(1759)](...H)}for(const j of V[m(1982)]())p=j(p);P(p)},triggerNodeChanges:v=>{const M=_0x5590,{onNodesChange:m,setNodes:y,nodes:p,hasDefaultNodes:z,debug:P}=w();if(v?.[M(2179)]){if(z){const G=va(v,p);y(G)}P&&console.log(M(631),v),m?.(v)}},triggerEdgeChanges:v=>{const M=_0x5590,{onEdgesChange:m,setEdges:y,edges:p,hasDefaultEdges:z,debug:P}=w();if(v?.length){if(z){const G=pa(v,p);y(G)}P&&console[M(1672)]("React Flow: trigger edge changes",v),m?.(v)}},addSelectedNodes:v=>{const M=_0x5590,{multiSelectionActive:m,edgeLookup:y,nodeLookup:p,triggerNodeChanges:z,triggerEdgeChanges:P}=w();if(m){const G=v[M(474)](O=>fn(O,!0));z(G);return}z(En(p,new Set([...v]),!0)),P(En(y))},addSelectedEdges:v=>{const M=_0x5590,{multiSelectionActive:m,edgeLookup:y,nodeLookup:p,triggerNodeChanges:z,triggerEdgeChanges:P}=w();if(m){const G=v[M(474)](O=>fn(O,!0));P(G);return}P(En(y,new Set([...v]))),z(En(p,new Set,!0))},unselectNodesAndEdges:({nodes:v,edges:M}={})=>{const m=_0x5590,{edges:y,nodes:p,nodeLookup:z,triggerNodeChanges:P,triggerEdgeChanges:G}=w(),O=v||p,V=M||y,j=[];for(const H of O){if(!H[m(1274)])continue;const W=z[m(1861)](H.id);W&&(W[m(1274)]=!1),j[m(1759)](fn(H.id,!1))}const q=[];for(const H of V)H.selected&&q[m(1759)](fn(H.id,!1));P(j),G(q)},setMinZoom:v=>{const M=_0x5590,{panZoom:m,maxZoom:y}=w();m?.[M(889)]([v,y]),g({minZoom:v})},setMaxZoom:v=>{const{panZoom:M,minZoom:m}=w();M?.setScaleExtent([m,v]),g({maxZoom:v})},setTranslateExtent:v=>{const M=_0x5590;w()[M(686)]?.setTranslateExtent(v),g({translateExtent:v})},resetSelectedElements:()=>{const v=_0x5590,{edges:M,nodes:m,triggerNodeChanges:y,triggerEdgeChanges:p,elementsSelectable:z}=w();if(!z)return;const P=m[v(1106)]((O,V)=>V[v(1274)]?[...O,fn(V.id,!1)]:O,[]),G=M.reduce((O,V)=>V[v(1274)]?[...O,fn(V.id,!1)]:O,[]);y(P),p(G)},setNodeExtent:v=>{const{nodes:M,nodeLookup:m,parentLookup:y,nodeOrigin:p,elevateNodesOnSelect:z,nodeExtent:P,zIndexMode:G}=w();v[0][0]===P[0][0]&&v[0][1]===P[0][1]&&v[1][0]===P[1][0]&&v[1][1]===P[1][1]||(Eo(M,m,y,{nodeOrigin:p,nodeExtent:v,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:G}),g({nodeExtent:v}))},panBy:v=>{const{transform:M,width:m,height:y,panZoom:p,translateExtent:z}=w();return e5({delta:v,panZoom:p,transform:M,translateExtent:z,width:m,height:y})},setCenter:async(v,M,m)=>{const y=_0x5590,{width:p,height:z,maxZoom:P,panZoom:G}=w();if(!G)return Promise[y(1952)](!1);const O=typeof m?.[y(1675)]<"u"?m.zoom:P;return await G.setViewport({x:p/2-v*O,y:z/2-M*O,zoom:O},{duration:m?.[y(850)],ease:m?.[y(1834)],interpolate:m?.[y(1939)]}),Promise[y(1952)](!0)},cancelConnection:()=>{g({connection:{...ac}})},updateConnection:v=>{g({connection:v})},reset:()=>g({...is()})}},Object.is);function m3({initialNodes:e,initialEdges:n,defaultNodes:t,defaultEdges:o,initialWidth:x,initialHeight:r,initialMinZoom:i,initialMaxZoom:c,initialFitViewOptions:d,fitView:a,nodeOrigin:u,nodeExtent:f,zIndexMode:b,children:g}){const w=s,[h]=B[w(883)](()=>y3({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:a,minZoom:i,maxZoom:c,fitViewOptions:d,nodeOrigin:u,nodeExtent:f,zIndexMode:b}));return l[w(1375)](U5,{value:h,children:l.jsx(rh,{children:g})})}function w3({children:e,nodes:n,edges:t,defaultNodes:o,defaultEdges:x,width:r,height:i,fitView:c,fitViewOptions:d,minZoom:a,maxZoom:u,nodeOrigin:f,nodeExtent:b,zIndexMode:g}){const w=s;return B[w(1773)](mx)?l[w(1375)](l[w(1465)],{children:e}):l[w(1375)](m3,{initialNodes:n,initialEdges:t,defaultNodes:o,defaultEdges:x,initialWidth:r,initialHeight:i,fitView:c,initialFitViewOptions:d,initialMinZoom:a,initialMaxZoom:u,nodeOrigin:f,nodeExtent:b,zIndexMode:g,children:e})}const v3={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function p3({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,className:x,nodeTypes:r,edgeTypes:i,onNodeClick:c,onEdgeClick:d,onInit:a,onMove:u,onMoveStart:f,onMoveEnd:b,onConnect:g,onConnectStart:w,onConnectEnd:h,onClickConnectStart:v,onClickConnectEnd:M,onNodeMouseEnter:m,onNodeMouseMove:y,onNodeMouseLeave:p,onNodeContextMenu:z,onNodeDoubleClick:P,onNodeDragStart:G,onNodeDrag:O,onNodeDragStop:V,onNodesDelete:j,onEdgesDelete:q,onDelete:H,onSelectionChange:W,onSelectionDragStart:T,onSelectionDrag:N,onSelectionDragStop:L,onSelectionContextMenu:D,onSelectionStart:Y,onSelectionEnd:U,onBeforeDelete:I,connectionMode:J,connectionLineType:$=R0.Bezier,connectionLineStyle:F,connectionLineComponent:xe,connectionLineContainerStyle:re,deleteKeyCode:ae=s(1003),selectionKeyCode:ue=s(1330),selectionOnDrag:me=!1,selectionMode:se=st[s(452)],panActivationKeyCode:ee=s(1450),multiSelectionKeyCode:le=gt()?s(1453):s(1725),zoomActivationKeyCode:be=gt()?s(1453):s(1725),snapToGrid:E,snapGrid:A,onlyRenderVisibleElements:Z=!1,selectNodesOnDrag:ne,nodesDraggable:te,autoPanOnNodeFocus:X,nodesConnectable:oe,nodesFocusable:ve,nodeOrigin:pe=ua,edgesFocusable:Ie,edgesReconnectable:Ae,elementsSelectable:Ee=!0,defaultViewport:Ne=_5,minZoom:ke=.5,maxZoom:Oe=2,translateExtent:je=at,preventScrolling:qe=!0,nodeExtent:We,defaultMarkerColor:$e=s(2169),zoomOnScroll:b0=!0,zoomOnPinch:B0=!0,panOnScroll:t0=!1,panOnScrollSpeed:a0=.5,panOnScrollMode:x0=ln[s(699)],zoomOnDoubleClick:s0=!0,panOnDrag:h0=!0,onPaneClick:V0,onPaneMouseEnter:$0,onPaneMouseMove:q0,onPaneMouseLeave:Ke,onPaneScroll:hn,onPaneContextMenu:e0,paneClickDistance:A0=1,nodeClickDistance:D0=0,children:gn,onReconnect:$o,onReconnectStart:er,onReconnectEnd:nr,onEdgeContextMenu:tr,onEdgeDoubleClick:xr,onEdgeMouseEnter:or,onEdgeMouseMove:rr,onEdgeMouseLeave:Lx,reconnectRadius:Nx=10,onNodesChange:Sx,onEdgesChange:kx,noDragClassName:Ix=s(820),noWheelClassName:Px=s(1668),noPanClassName:mt=s(1856),fitView:Gn,fitViewOptions:en,connectOnClick:bn,attributionPosition:ir,proOptions:W0,defaultEdgeOptions:Ax,elevateNodesOnSelect:jx=!0,elevateEdgesOnSelect:wt=!1,disableKeyboardA11y:Yx=!1,autoPanOnConnect:vt,autoPanOnNodeDrag:cr,autoPanSpeed:ar,connectionRadius:sr,isValidConnection:Ex,onError:Ux,style:pt,id:zt,nodeDragThreshold:Ct,connectionDragThreshold:k,viewport:S,onViewportChange:_,width:R,height:ie,colorMode:K=s(1592),debug:Q,onScroll:fe,ariaLabelConfig:ye,zIndexMode:he=s(1212),...we},Me){const De=s,Be=zt||"1",Ce=eh(K),He=B[De(1318)](Ye=>{const ce=De;Ye[ce(1630)][ce(402)]({top:0,left:0,behavior:"instant"}),fe?.(Ye)},[fe]);return l[De(1375)]("div",{"data-testid":De(2003),...we,onScroll:He,style:{...pt,...v3},ref:Me,className:Xe([De(726),x,Ce]),id:zt,role:"application",children:l.jsxs(w3,{nodes:e,edges:n,width:R,height:ie,fitView:Gn,fitViewOptions:en,minZoom:ke,maxZoom:Oe,nodeOrigin:pe,nodeExtent:We,zIndexMode:he,children:[l.jsx($5,{nodes:e,edges:n,defaultNodes:t,defaultEdges:o,onConnect:g,onConnectStart:w,onConnectEnd:h,onClickConnectStart:v,onClickConnectEnd:M,nodesDraggable:te,autoPanOnNodeFocus:X,nodesConnectable:oe,nodesFocusable:ve,edgesFocusable:Ie,edgesReconnectable:Ae,elementsSelectable:Ee,elevateNodesOnSelect:jx,elevateEdgesOnSelect:wt,minZoom:ke,maxZoom:Oe,nodeExtent:We,onNodesChange:Sx,onEdgesChange:kx,snapToGrid:E,snapGrid:A,connectionMode:J,translateExtent:je,connectOnClick:bn,defaultEdgeOptions:Ax,fitView:Gn,fitViewOptions:en,onNodesDelete:j,onEdgesDelete:q,onDelete:H,onNodeDragStart:G,onNodeDrag:O,onNodeDragStop:V,onSelectionDrag:N,onSelectionDragStart:T,onSelectionDragStop:L,onMove:u,onMoveStart:f,onMoveEnd:b,noPanClassName:mt,nodeOrigin:pe,rfId:Be,autoPanOnConnect:vt,autoPanOnNodeDrag:cr,autoPanSpeed:ar,onError:Ux,connectionRadius:sr,isValidConnection:Ex,selectNodesOnDrag:ne,nodeDragThreshold:Ct,connectionDragThreshold:k,onBeforeDelete:I,debug:Q,ariaLabelConfig:ye,zIndexMode:he}),l[De(1375)](b3,{onInit:a,onNodeClick:c,onEdgeClick:d,onNodeMouseEnter:m,onNodeMouseMove:y,onNodeMouseLeave:p,onNodeContextMenu:z,onNodeDoubleClick:P,nodeTypes:r,edgeTypes:i,connectionLineType:$,connectionLineStyle:F,connectionLineComponent:xe,connectionLineContainerStyle:re,selectionKeyCode:ue,selectionOnDrag:me,selectionMode:se,deleteKeyCode:ae,multiSelectionKeyCode:le,panActivationKeyCode:ee,zoomActivationKeyCode:be,onlyRenderVisibleElements:Z,defaultViewport:Ne,translateExtent:je,minZoom:ke,maxZoom:Oe,preventScrolling:qe,zoomOnScroll:b0,zoomOnPinch:B0,zoomOnDoubleClick:s0,panOnScroll:t0,panOnScrollSpeed:a0,panOnScrollMode:x0,panOnDrag:h0,onPaneClick:V0,onPaneMouseEnter:$0,onPaneMouseMove:q0,onPaneMouseLeave:Ke,onPaneScroll:hn,onPaneContextMenu:e0,paneClickDistance:A0,nodeClickDistance:D0,onSelectionContextMenu:D,onSelectionStart:Y,onSelectionEnd:U,onReconnect:$o,onReconnectStart:er,onReconnectEnd:nr,onEdgeContextMenu:tr,onEdgeDoubleClick:xr,onEdgeMouseEnter:or,onEdgeMouseMove:rr,onEdgeMouseLeave:Lx,reconnectRadius:Nx,defaultMarkerColor:$e,noDragClassName:Ix,noWheelClassName:Px,noPanClassName:mt,rfId:Be,disableKeyboardA11y:Yx,nodeExtent:We,viewport:S,onViewportChange:_}),l.jsx(J5,{onSelectionChange:W}),gn,l[De(1375)](W5,{proOptions:W0,position:ir}),l[De(1375)](q5,{rfId:Be,disableKeyboardA11y:Yx})]})})}var z3=Ba(p3);function C3(e){const n=s,[t,o]=B.useState(e),x=B[n(1318)](r=>o(i=>va(r,i)),[]);return[t,o,x]}function M3(e){const n=s,[t,o]=B[n(883)](e),x=B[n(1318)](r=>o(i=>pa(r,i)),[]);return[t,o,x]}function B3({dimensions:e,lineWidth:n,variant:t,className:o}){const x=s;return l[x(1375)]("path",{strokeWidth:n,d:"M"+e[0]/2+x(562)+e[1]+x(468)+e[1]/2+" H"+e[0],className:Xe([x(363),t,o])})}function D3({radius:e,className:n}){const t=s;return l[t(1375)](t(1602),{cx:e,cy:e,r:e,className:Xe(["react-flow__background-pattern",t(1712),n])})}var Q0;(function(e){const n=s;e[n(701)]=n(676),e[n(2081)]=n(1712),e[n(1304)]="cross"})(Q0||(Q0={}));const L3={[Q0[s(2081)]]:1,[Q0.Lines]:1,[Q0[s(1304)]]:6},N3=e=>({transform:e[s(1121)],patternId:"pattern-"+e[s(638)]});function cs({id:e,variant:n=Q0[s(2081)],gap:t=20,size:o,lineWidth:x=1,offset:r=0,color:i,bgColor:c,style:d,className:a,patternClassName:u}){const f=s,b=B[f(780)](null),{transform:g,patternId:w}=Pe(N3,Ue),h=o||L3[n],v=n===Q0[f(2081)],M=n===Q0.Cross,m=Array[f(565)](t)?t:[t,t],y=[m[0]*g[2]||1,m[1]*g[2]||1],p=h*g[2],z=Array[f(565)](r)?r:[r,r],P=M?[p,p]:y,G=[z[0]*g[2]||1+P[0]/2,z[1]*g[2]||1+P[1]/2],O=""+w+(e||"");return l[f(884)]("svg",{className:Xe([f(1087),a]),style:{...d,...px,"--xy-background-color-props":c,"--xy-background-pattern-color-props":i},ref:b,"data-testid":f(1644),children:[l[f(1375)](f(505),{id:O,x:g[0]%y[0],y:g[1]%y[1],width:y[0],height:y[1],patternUnits:f(1470),patternTransform:f(973)+G[0]+",-"+G[1]+")",children:v?l.jsx(D3,{radius:p/2,className:u}):l.jsx(B3,{dimensions:P,lineWidth:x,variant:n,className:u})}),l[f(1375)](f(1389),{x:"0",y:"0",width:f(1575),height:f(1575),fill:f(1076)+O+")"})]})}cs[s(1293)]=s(1514);const S3=B.memo(cs);function k3(){const e=s;return l[e(1375)](e(1350),{xmlns:e(413),viewBox:e(1567),children:l.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function I3(){const e=s;return l.jsx(e(1350),{xmlns:e(413),viewBox:"0 0 32 5",children:l.jsx(e(1850),{d:"M0 0h32v4.2H0z"})})}function P3(){const e=s;return l[e(1375)](e(1350),{xmlns:e(413),viewBox:"0 0 32 30",children:l[e(1375)]("path",{d:e(809)})})}function A3(){const e=s;return l[e(1375)](e(1350),{xmlns:"http://www.w3.org/2000/svg",viewBox:e(1053),children:l[e(1375)](e(1850),{d:e(786)})})}function j3(){const e=s;return l[e(1375)](e(1350),{xmlns:"http://www.w3.org/2000/svg",viewBox:e(1053),children:l[e(1375)](e(1850),{d:e(1018)})})}function Mx({children:e,className:n,...t}){const o=s;return l[o(1375)](o(752),{type:o(752),className:Xe([o(1479),n]),...t,children:e})}const Y3=e=>({isInteractive:e[s(1309)]||e[s(563)]||e[s(760)],minZoomReached:e.transform[2]<=e[s(1132)],maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e[s(347)]});function as({style:e,showZoom:n=!0,showFitView:t=!0,showInteractive:o=!0,fitViewOptions:x,onZoomIn:r,onZoomOut:i,onFitView:c,onInteractiveChange:d,className:a,children:u,position:f=s(528),orientation:b=s(1323),"aria-label":g}){const w=s,h=Ge(),{isInteractive:v,minZoomReached:M,maxZoomReached:m,ariaLabelConfig:y}=Pe(Y3,Ue),{zoomIn:p,zoomOut:z,fitView:P}=Ro(),G=()=>{p(),r?.()},O=()=>{z(),i?.()},V=()=>{P(x),c?.()},j=()=>{h.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),d?.(!v)},q=b===w(1240)?w(1240):w(1323);return l[w(884)](wx,{className:Xe([w(772),q,a]),position:f,style:e,"data-testid":w(1324),"aria-label":g??y["controls.ariaLabel"],children:[n&&l.jsxs(l.Fragment,{children:[l[w(1375)](Mx,{onClick:G,className:w(1889),title:y[w(1677)],"aria-label":y[w(1677)],disabled:m,children:l.jsx(k3,{})}),l[w(1375)](Mx,{onClick:O,className:w(1513),title:y[w(1399)],"aria-label":y[w(1399)],disabled:M,children:l.jsx(I3,{})})]}),t&&l[w(1375)](Mx,{className:w(1128),onClick:V,title:y[w(649)],"aria-label":y[w(649)],children:l[w(1375)](P3,{})}),o&&l[w(1375)](Mx,{className:w(636),onClick:j,title:y["controls.interactive.ariaLabel"],"aria-label":y[w(938)],children:v?l.jsx(j3,{}):l[w(1375)](A3,{})}),u]})}as.displayName="Controls";const E3=B[s(2002)](as);function U3({id:e,x:n,y:t,width:o,height:x,style:r,color:i,strokeColor:c,strokeWidth:d,className:a,borderRadius:u,shapeRendering:f,selected:b,onClick:g}){const w=s,{background:h,backgroundColor:v}=r||{},M=i||h||v;return l.jsx(w(1389),{className:Xe(["react-flow__minimap-node",{selected:b},a]),x:n,y:t,rx:u,ry:u,width:o,height:x,style:{fill:M,stroke:c,strokeWidth:d},shapeRendering:f,onClick:g?m=>g(m,e):void 0})}const G3=B[s(2002)](U3),O3=e=>e[s(960)][s(474)](n=>n.id),Fo=e=>e instanceof Function?e:()=>e;function H3({nodeStrokeColor:e,nodeColor:n,nodeClassName:t="",nodeBorderRadius:o=5,nodeStrokeWidth:x,nodeComponent:r=G3,onClick:i}){const c=s,d=Pe(O3,Ue),a=Fo(n),u=Fo(e),f=Fo(t),b=typeof window===c(383)||window[c(375)]?c(902):"geometricPrecision";return l[c(1375)](l[c(1465)],{children:d[c(474)](g=>l[c(1375)](V3,{id:g,nodeColorFunc:a,nodeStrokeColorFunc:u,nodeClassNameFunc:f,nodeBorderRadius:o,nodeStrokeWidth:x,NodeComponent:r,onClick:i,shapeRendering:b},g))})}function T3({id:e,nodeColorFunc:n,nodeStrokeColorFunc:t,nodeClassNameFunc:o,nodeBorderRadius:x,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:c,onClick:d}){const a=s,{node:u,x:f,y:b,width:g,height:w}=Pe(h=>{const v=_0x5590,M=h[v(717)].get(e);if(!M)return{node:void 0,x:0,y:0,width:0,height:0};const m=M.internals[v(1275)],{x:y,y:p}=M[v(1157)][v(1443)],{width:z,height:P}=T0(m);return{node:m,x:y,y:p,width:z,height:P}},Ue);return!u||u[a(1771)]||!wc(u)?null:l[a(1375)](c,{x:f,y:b,width:g,height:w,style:u[a(1476)],selected:!!u[a(1274)],className:o(u),color:n(u),borderRadius:x,strokeColor:t(u),strokeWidth:r,shapeRendering:i,onClick:d,id:u.id})}const V3=B.memo(T3);var q3=B[s(2002)](H3);const W3=200,X3=150,K3=e=>!e[s(1771)],Z3=e=>{const n=s,t={x:-e.transform[0]/e[n(1121)][2],y:-e[n(1121)][1]/e[n(1121)][2],width:e[n(1710)]/e[n(1121)][2],height:e[n(1355)]/e[n(1121)][2]};return{viewBB:t,boundingRect:e[n(717)][n(1046)]>0?bc(dt(e[n(717)],{filter:K3}),t):t,rfId:e.rfId,panZoom:e[n(686)],translateExtent:e[n(1723)],flowWidth:e[n(1710)],flowHeight:e[n(1355)],ariaLabelConfig:e[n(347)]}},R3=s(1737);function ss({style:e,className:n,nodeStrokeColor:t,nodeColor:o,nodeClassName:x="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:c,bgColor:d,maskColor:a,maskStrokeColor:u,maskStrokeWidth:f,position:b=s(1241),onClick:g,onNodeClick:w,pannable:h=!1,zoomable:v=!1,ariaLabel:M,inversePan:m,zoomStep:y=1,offsetScale:p=5}){const z=s,P=Ge(),G=B.useRef(null),{boundingRect:O,viewBB:V,rfId:j,panZoom:q,translateExtent:H,flowWidth:W,flowHeight:T,ariaLabelConfig:N}=Pe(Z3,Ue),L=e?.[z(1710)]??W3,D=e?.height??X3,Y=O[z(1710)]/L,U=O.height/D,I=Math[z(2172)](Y,U),J=I*L,$=I*D,F=p*I,xe=O.x-(J-O[z(1710)])/2-F,re=O.y-($-O[z(1355)])/2-F,ae=J+F*2,ue=$+F*2,me=R3+"-"+j,se=B[z(780)](0),ee=B[z(780)]();se[z(523)]=I,B[z(2005)](()=>{const A=z;if(G[A(523)]&&q)return ee[A(523)]=s5({domNode:G.current,panZoom:q,getTransform:()=>P[A(1305)]()[A(1121)],getViewScale:()=>se[A(523)]}),()=>{ee.current?.destroy()}},[q]),B.useEffect(()=>{const A=z;ee.current?.[A(905)]({translateExtent:H,width:W,height:T,inversePan:m,pannable:h,zoomStep:y,zoomable:v})},[h,v,m,y,H,W,T]);const le=g?A=>{const Z=z,[ne,te]=ee[Z(523)]?.[Z(619)](A)||[0,0];g(A,{x:ne,y:te})}:void 0,be=w?B.useCallback((A,Z)=>{const ne=z,te=P[ne(1305)]().nodeLookup[ne(1861)](Z).internals[ne(1275)];w(A,te)},[]):void 0,E=M??N[z(1793)];return l[z(1375)](wx,{position:b,style:{...e,"--xy-minimap-background-color-props":typeof d===z(1705)?d:void 0,"--xy-minimap-mask-background-color-props":typeof a===z(1705)?a:void 0,"--xy-minimap-mask-stroke-color-props":typeof u===z(1705)?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof f===z(2059)?f*I:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof t===z(1705)?t:void 0,"--xy-minimap-node-stroke-width-props":typeof i===z(2059)?i:void 0},className:Xe([z(469),n]),"data-testid":z(1259),children:l[z(884)]("svg",{width:L,height:D,viewBox:xe+" "+re+" "+ae+" "+ue,className:z(1629),role:z(1663),"aria-labelledby":me,ref:G,onClick:le,children:[E&&l[z(1375)](z(1528),{id:me,children:E}),l[z(1375)](q3,{onClick:be,nodeColor:o,nodeStrokeColor:t,nodeBorderRadius:r,nodeClassName:x,nodeStrokeWidth:i,nodeComponent:c}),l[z(1375)](z(1850),{className:z(1919),d:"M"+(xe-F)+","+(re-F)+"h"+(ae+F*2)+"v"+(ue+F*2)+"h"+(-ae-F*2)+`z
9
+ M`+V.x+","+V.y+"h"+V.width+"v"+V[z(1355)]+"h"+-V[z(1710)]+"z",fillRule:z(710),pointerEvents:z(988)})]})})}ss[s(1293)]=s(1152);const J3=B[s(2002)](ss),_3=e=>n=>e?""+Math[s(2172)](1/n[s(1121)][2],1):void 0,Q3={[Yn[s(828)]]:s(1790),[Yn[s(1877)]]:s(1241)};function F3({nodeId:e,position:n,variant:t=Yn[s(1877)],className:o,style:x=void 0,children:r,color:i,minWidth:c=10,minHeight:d=10,maxWidth:a=Number[s(896)],maxHeight:u=Number.MAX_VALUE,keepAspectRatio:f=!1,resizeDirection:b,autoScale:g=!0,shouldResize:w,onResizeStart:h,onResize:v,onResizeEnd:M}){const m=s,y=Ia(),p=typeof e===m(1705)?e:y,z=Ge(),P=B[m(780)](null),G=t===Yn[m(1877)],O=Pe(B.useCallback(_3(G&&g),[G,g]),Ue),V=B[m(780)](null),j=n??Q3[t];B[m(2005)](()=>{const H=m;if(!(!P.current||!p))return!V[H(523)]&&(V[H(523)]=C5({domNode:P[H(523)],nodeId:p,getStoreItems:()=>{const{nodeLookup:W,transform:T,snapGrid:N,snapToGrid:L,nodeOrigin:D,domNode:Y}=z.getState();return{nodeLookup:W,transform:T,snapGrid:N,snapToGrid:L,nodeOrigin:D,paneDomNode:Y}},onChange:(W,T)=>{const N=H,{triggerNodeChanges:L,nodeLookup:D,parentLookup:Y,nodeOrigin:U}=z[N(1305)](),I=[],J={x:W.x,y:W.y},$=D[N(1861)](p);if($&&$.expandParent&&$[N(1907)]){const F=$[N(1639)]??U,xe=W.width??$.measured[N(1710)]??0,re=W[N(1355)]??$.measured[N(1355)]??0,ae={id:$.id,parentId:$[N(1907)],rect:{width:xe,height:re,...vc({x:W.x??$[N(835)].x,y:W.y??$[N(835)].y},{width:xe,height:re},$[N(1907)],D,F)}},ue=Go([ae],D,Y,U);I.push(...ue),J.x=W.x?Math[N(2172)](F[0]*xe,W.x):void 0,J.y=W.y?Math[N(2172)](F[1]*re,W.y):void 0}if(J.x!==void 0&&J.y!==void 0){const F={id:p,type:N(835),position:{...J}};I.push(F)}if(W[N(1710)]!==void 0&&W[N(1355)]!==void 0){const F=b?N(b==="horizontal"?1710:1355):!0,xe={id:p,type:N(497),resizing:!0,setAttributes:F,dimensions:{width:W[N(1710)],height:W.height}};I[N(1759)](xe)}for(const F of T){const xe={...F,type:"position"};I[N(1759)](xe)}L(I)},onEnd:({width:W,height:T})=>{const N=H,L={id:p,type:N(497),resizing:!1,dimensions:{width:W,height:T}};z[N(1305)]().triggerNodeChanges([L])}})),V.current[H(905)]({controlPosition:j,boundaries:{minWidth:c,minHeight:d,maxWidth:a,maxHeight:u},keepAspectRatio:f,resizeDirection:b,onResizeStart:h,onResize:v,onResizeEnd:M,shouldResize:w}),()=>{V[H(523)]?.destroy()}},[j,c,d,a,u,f,h,v,M,w]);const q=j[m(897)]("-");return l[m(1375)](m(1037),{className:Xe([m(651),m(820),...q,t,o]),ref:P,style:{...x,scale:O,...i&&{[G?m(1812):"borderColor"]:i}},children:r})}B.memo(F3);const ls=e=>Symbol.iterator in e,ds=e=>"entries"in e,us=(e,n)=>{const t=s,o=e instanceof Map?e:new Map(e.entries()),x=n instanceof Map?n:new Map(n[t(1615)]());if(o[t(1046)]!==x.size)return!1;for(const[r,i]of o)if(!x[t(1147)](r)||!Object.is(i,x[t(1861)](r)))return!1;return!0},$3=(e,n)=>{const t=s,o=e[Symbol.iterator](),x=n[Symbol.iterator]();let r=o[t(1026)](),i=x.next();for(;!r[t(1998)]&&!i.done;){if(!Object.is(r[t(1044)],i[t(1044)]))return!1;r=o[t(1026)](),i=x[t(1026)]()}return!!r.done&&!!i[t(1998)]};function eg(e,n){const t=s;return Object.is(e,n)?!0:typeof e!==t(878)||e===null||typeof n!==t(878)||n===null||Object.getPrototypeOf(e)!==Object[t(1733)](n)?!1:ls(e)&&ls(n)?ds(e)&&ds(n)?us(e,n):$3(e,n):us({entries:()=>Object[t(1615)](e)},{entries:()=>Object[t(1615)](n)})}const fs={inlineScript:s(564),dataRequest:s(1548),external:s(1077),builtin:s(1295)},ng=[{label:s(1540),value:"antdMessage"},{label:s(967),value:"switchCanvas"}],tg=[{label:"info",value:"info"},{label:s(1093),value:"success"},{label:s(1517),value:s(1517)},{label:"error",value:s(1036)},{label:s(997),value:s(997)}];function hs(e,n,t){const o=s,x=t[o(815)](i=>i.target===e),r=x[o(2179)];return x[o(474)]((i,c)=>{const d=o,a=n.find(f=>f.id===i[d(766)]),u=a?.data;return{sourceId:i.source,sourceLabel:u?.label??i.source,edgeIndex:c,totalIncoming:r}})}const xg=({data:e,id:n})=>{const t=s,{root:o}=Qe(),x=Pe(B.useCallback(c=>hs(n,c[t(960)],c[t(2083)])[t(474)](({sourceId:d,sourceLabel:a})=>({sourceId:d,label:a})),[n]),eg),r=e[t(1418)].executorType??"inlineScript",i=r===t(874)?e[t(1418)][t(439)]:r===t(1925)?e[t(1418)].externalHandlerKey:r==="builtin"?e[t(1418)][t(747)]===t(1974)?e[t(1418)][t(747)]+": "+String(e[t(1418)][t(1554)]?.[t(592)]??"").slice(0,24):e.eventBlock[t(747)]==="switchCanvas"?t(1704)+(o[t(974)].find(c=>c.id===e[t(1418)].builtinConfig?.[t(1587)])?.name??t(1505)):e[t(1418)].builtinId:null;return l[t(884)](t(1037),{className:t(1416),children:[l[t(1375)](Un,{type:t(500),position:ze[t(1962)],className:t(506)}),l[t(884)](t(1037),{className:t(2009),children:[l[t(1375)](t(2163),{className:"font-medium text-sm truncate",children:e[t(663)]}),l.jsxs(C[t(1450)],{size:t(1400),children:[l[t(1375)](C.Button,{type:t(1918),size:"small",icon:l.jsx(de[t(2165)],{}),onClick:()=>e.onEdit(n)}),l[t(1375)](C.Button,{type:"text",size:t(1400),danger:!0,icon:l[t(1375)](de[t(635)],{}),onClick:()=>e[t(680)](n)})]})]}),l[t(1375)](t(1037),{className:t(1296),children:l[t(884)](C.Tag,{color:r===t(608)?"default":r===t(434)?t(1992):t(1363),className:t(552),children:[fs[r],i?t(1890)+i:""]})}),l.jsxs(t(1037),{className:t(1959),children:[e.eventBlock[t(1439)]?.[t(2179)]>0&&l.jsxs("div",{children:[t(1058),e[t(1418)][t(1439)][t(474)](c=>c[t(863)]).join(", ")]}),x[t(2179)]>0&&l.jsxs(t(1037),{className:t(1402),children:[t(1248),x[t(474)](c=>l[t(884)](t(1037),{className:t(1893),children:["←「",c[t(663)],"」(整块返回值)"]},c.sourceId))]})]}),l.jsx(Un,{type:t(766),position:ze.Bottom,className:t(506)})]})},og={eventBlock:xg},rg=Object[s(1615)](fs)[s(474)](([e,n])=>({label:n,value:e})),gs=[{label:"点击",value:s(1164)},{label:s(2124),value:s(1899)},{label:"鼠标释放",value:s(1760)},{label:"双击",value:s(536)},{label:s(1484),value:s(2168)},{label:s(913),value:s(1678)},{label:s(1879),value:s(1340)},{label:s(888),value:s(1133)},{label:s(961),value:s(874)},{label:"外部事件",value:s(1925)}];function ig(e,n){const t={},o=[...e];return o.forEach((x,r)=>{const i=_0x5590,c=n[i(1439)][r]?.[i(863)]??(o[i(2179)]===1?"prev":i(1527)+r);t[c]="$prev."+x[i(766)]}),t}function cg(e,n,t){const o=s;return t[e]?.[o(863)]??(n===1?o(1527):o(1527)+e)}const ag=[{label:"string",value:"string"},{label:s(2059),value:s(2059)},{label:s(743),value:s(743)},{label:s(878),value:"object"},{label:s(1255),value:s(1255)}];function bs(e){const n=s,t=gs[n(990)](x=>x[n(1044)]===e[n(1354)]),o=t?.label??e[n(1354)];if(e[n(1354)]==="external"){const x=(e[n(858)]||"")[n(349)]();return x?o+n(1890)+x:o}return o}const sg=({open:e,onClose:n,bindNodeId:t,editingRoot:o})=>{const x=s,{nodes:r,eventFlow:i,externalHandlerCatalog:c,addEventBlock:d,upsertEventBlock:a,removeEventBlock:u,addEventRoot:f,updateEventRoot:b,root:g}=Qe(),[w,h,v]=C3([]),[M,m,y]=M3([]),p=B[x(780)](w);p.current=w;const[z,P]=B.useState(()=>o??null),[G,O]=B[x(883)](!1),[V]=C[x(1249)][x(403)](),j=C[x(1249)][x(1042)]("eventType",V),[q,H]=B[x(883)](null),[W,T]=B[x(883)](!1),[N]=C.Form[x(403)](),L=C[x(1249)][x(1042)](x(1205),N),D=C[x(1249)][x(1042)](x(747),N),Y=C[x(1249)].useWatch(x(1439),N),U=B[x(1581)](()=>!W||!q?[]:hs(q.id,w,M),[W,q,w,M]),I=B[x(780)](()=>{}),J=B[x(780)](()=>{});B[x(2005)](()=>{const E=x;if(W&&q){const A=q[E(1554)]??{},{outputs:Z,...ne}=q;N[E(985)]({...ne,executorType:q[E(1205)]??E(608),builtinId:q[E(747)],inputs:q[E(1439)]??[],builtinConfig:{content:String(A[E(592)]??""),level:String(A[E(1763)]??"info"),duration:A[E(850)]===void 0||A[E(850)]===null?void 0:Number(A[E(850)])}})}},[W,q,N]);const $=B.useCallback(E=>{m(A=>kc(E,A))},[m]),F=E=>{const A=x,Z={bindNodeId:E[A(458)],eventType:E[A(1354)],externalEventKey:E[A(1354)]===A(1925)?(E[A(858)]||"")[A(349)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0},ne=f(Z);P({...Z,id:ne}),V.resetFields(),O(!1),C[A(1109)][A(1093)](A(580))},xe=B[x(1318)](E=>{const A=x;u(E),h(Z=>Z.filter(ne=>ne.id!==E)),m(Z=>Z[A(815)](ne=>ne[A(766)]!==E&&ne.target!==E))},[u,h,m]),re=B[x(1318)](E=>{const A=x,Z=p[A(523)][A(990)](X=>X.id===E)?.[A(1551)]?.[A(1418)],ne=i[A(1507)].find(X=>X.id===E),te=Z??ne;te?(H({...te,id:E}),T(!0)):C[A(1109)][A(1517)](A(371))},[i.eventBlocks]);I.current=re,J[x(523)]=xe,B[x(2005)](()=>{const E=x;if(e&&z){const A=z[E(1492)][E(960)][E(474)](ne=>({id:ne.id,type:E(1418),position:ne.position,data:{label:ne.data[E(663)],eventBlock:ne[E(1551)].eventBlock,onEdit:te=>I.current(te),onDelete:te=>J[E(523)](te)}})),Z=z[E(1492)].edges[E(474)](ne=>({id:ne.id,source:ne[E(766)],target:ne[E(500)]}));h(A),m(Z)}},[e,z,h,m]);const ae=()=>{const E=x,A={name:E(1634),executorType:E(608),callback:"return args;",inputs:[],outputs:[]},Z=d(A),ne={...A,id:Z},te={id:Z,type:E(1418),position:{x:100+w[E(2179)]*50,y:100+w.length*30},data:{label:ne[E(863)],eventBlock:ne,onEdit:X=>I[E(523)](X),onDelete:X=>J.current(X)}};h(X=>[...X,te])},ue=()=>{const E=x,A={name:E(1392),executorType:"builtin",builtinId:E(1974),builtinConfig:{content:E(377),level:E(658)},callback:E(1802),inputs:[],outputs:[]},Z=d(A),ne={...A,id:Z},te={id:Z,type:E(1418),position:{x:120+w.length*50,y:140+w[E(2179)]*30},data:{label:ne[E(863)],eventBlock:ne,onEdit:X=>I.current(X),onDelete:X=>J[E(523)](X)}};h(X=>[...X,te])},me=()=>{const E=x,A={name:E(967),executorType:E(434),builtinId:"switchCanvas",builtinConfig:{targetCanvasId:g[E(974)][0]?.id||""},callback:E(1802),inputs:[],outputs:[]},Z=d(A),ne={...A,id:Z},te={id:Z,type:E(1418),position:{x:120+w[E(2179)]*50,y:140+w[E(2179)]*30},data:{label:ne.name,eventBlock:ne,onEdit:X=>I[E(523)](X),onDelete:X=>J[E(523)](X)}};h(X=>[...X,te])},se=E=>{const A=x;if(!q)return;const Z=E[A(1205)]??q.executorType??A(608),ne={name:E[A(863)],callback:E[A(745)]??q[A(745)],executorType:Z,dataRequestKey:Z===A(874)?(E[A(439)]||"")[A(349)]():void 0,externalHandlerKey:Z==="external"?(E.externalHandlerKey||"").trim():void 0,builtinId:Z===A(434)?E.builtinId:void 0,builtinConfig:Z===A(434)&&E[A(747)]===A(1974)?{content:String(E[A(1554)]?.content??"")[A(349)](),level:E.builtinConfig?.[A(1763)]||A(658),duration:E[A(1554)]?.[A(850)]===null||E[A(1554)]?.duration===void 0?void 0:Number(E.builtinConfig[A(850)])}:Z===A(434)&&E[A(747)]==="switchCanvas"?{targetCanvasId:String(E.builtinConfig?.[A(1587)]??"")[A(349)]()}:void 0},te=E[A(1439)]??[],X=te[A(815)](ve=>ve?.[A(863)]&&String(ve[A(863)])[A(349)]()),oe={...q,...ne,inputs:X,outputs:[]};a(oe),h(ve=>ve[A(474)](pe=>pe.id===q.id?{...pe,data:{...pe[A(1551)],label:oe[A(863)]||pe[A(1551)][A(663)],eventBlock:oe}}:pe)),T(!1),H(null),C.message[A(1093)](A(1420))},ee=()=>{const E=x;if(!z)return;const A=w[E(474)](ne=>{const te=E,X=M[te(815)](pe=>pe[te(500)]===ne.id),oe=ne.data[te(1418)],ve={...oe,outputs:[]};return{id:ne.id,eventBlockId:ne.id,position:ne[te(835)],inputs:X.map(pe=>pe[te(766)]),outputs:M[te(815)](pe=>pe[te(766)]===ne.id)[te(474)](pe=>pe[te(500)]),data:{label:ne[te(1551)].label,eventBlock:ve,inputMapping:ig(X,ve)}}}),Z=M[E(474)](ne=>({id:ne.id,source:ne[E(766)],target:ne.target}));b(z.id,{flowData:{nodes:A,edges:Z}}),Cn[E(1480)]({...z,flowData:{nodes:A,edges:Z}}),C[E(1109)][E(1093)](E(620)),n()},le=B[x(1581)](()=>r[x(474)](E=>({label:E[x(863)],value:E.id})),[r]),be=B[x(1581)](()=>t?i[x(1271)][x(815)](E=>E.bindNodeId===t):i.eventRoots,[i.eventRoots,t]);return e?l.jsxs(C[x(1767)],{title:x(1404),open:e,onCancel:n,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[z?l.jsxs(x(1037),{className:x(1908),style:{height:700},children:[l[x(884)](x(1037),{className:x(355),children:[l.jsx(C.Space,{children:l[x(884)](x(2163),{className:x(1430),children:[x(1048),bs(z)," →"," ",r[x(990)](E=>E.id===z.bindNodeId)?.name]})}),l[x(884)](C[x(1450)],{children:[l[x(1375)](C.Button,{icon:l[x(1375)](de[x(952)],{}),onClick:ae,children:x(436)}),l[x(1375)](C[x(1105)],{icon:l[x(1375)](de[x(952)],{}),onClick:ue,children:"Message 提示"}),l[x(1375)](C[x(1105)],{icon:l[x(1375)](de[x(952)],{}),onClick:me,children:"跳转画布"}),l[x(1375)](C.Button,{type:x(2085),icon:l[x(1375)](de.SaveOutlined,{}),onClick:ee,children:"保存"}),l[x(1375)](C[x(1105)],{icon:l[x(1375)](de[x(818)],{}),onClick:()=>P(null),children:"返回列表"})]})]}),l[x(1375)]("div",{className:x(785),children:l[x(884)](z3,{nodes:w,edges:M,onNodesChange:v,onEdgesChange:y,onConnect:$,nodeTypes:og,fitView:!0,children:[l[x(1375)](S3,{}),l.jsx(E3,{}),l[x(1375)](J3,{})]})})]}):l[x(884)](x(1037),{className:x(627),children:[l[x(884)](x(1037),{className:x(1010),children:[l[x(1375)]("h3",{className:"text-lg font-medium",children:x(1736)}),l[x(1375)](C[x(1105)],{type:"primary",icon:l.jsx(de[x(952)],{}),onClick:()=>O(!0),children:x(557)})]}),l[x(1375)](C[x(853)],{dataSource:be,renderItem:E=>l[x(1375)](C[x(853)][x(1254)],{actions:[l[x(1375)](C[x(1105)],{type:"primary",icon:l[x(1375)](de[x(2165)],{}),onClick:()=>P(E),children:"编辑"},x(1841))],children:l[x(1375)](C[x(853)][x(1254)][x(1453)],{title:l[x(884)](C[x(1450)],{children:[l[x(884)]("span",{children:[x(998),bs(E)]}),l[x(1375)](C[x(2158)],{color:x(547),children:r[x(990)](A=>A.id===E[x(458)])?.[x(863)]||E[x(458)]})]}),description:x(1724)+E[x(1492)][x(960)][x(2179)]+", 连接数: "+E.flowData.edges[x(2179)]})}),locale:{emptyText:l[x(1375)](C.Empty,{description:x(940)})}}),l[x(1375)](C[x(1767)],{title:"新建事件流",open:G,onCancel:()=>{V.resetFields(),O(!1)},footer:null,afterOpenChange:E=>{E&&(V[x(527)](),t&&V.setFieldsValue({bindNodeId:t}))},children:l.jsxs(C.Form,{form:V,onFinish:F,layout:x(1323),children:[l[x(1375)](C[x(1249)][x(1254)],{name:x(458),label:"绑定节点",rules:[{required:!0,message:x(847)}],initialValue:t,children:l[x(1375)](C[x(1125)],{options:le,placeholder:x(650),disabled:!!t})}),l[x(1375)](C[x(1249)][x(1254)],{name:x(1354),label:x(1102),rules:[{required:!0,message:"请选择触发方式"}],children:l.jsx(C[x(1125)],{options:gs,placeholder:x(1768)})}),j==="external"&&l[x(1375)](C[x(1249)][x(1254)],{name:"externalEventKey",label:x(1940),rules:[{required:!0,message:x(1131)},{validator:(E,A)=>(A||"")[x(349)]()?Promise[x(1952)]():Promise[x(522)](new Error(x(751)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:l[x(1375)](C[x(465)],{placeholder:"例如:refresh"})}),l.jsx(C.Form[x(1254)],{className:"mb-0",children:l.jsxs(C.Space,{className:x(1519),children:[l[x(1375)](C[x(1105)],{onClick:()=>{V[x(527)](),O(!1)},children:"取消"}),l[x(1375)](C[x(1105)],{type:x(2085),htmlType:x(1993),children:"创建"})]})})]})})]}),l[x(1375)](C[x(1767)],{title:x(440),open:W,onCancel:()=>{T(!1),H(null)},footer:null,destroyOnClose:!0,children:l.jsxs(C.Form,{form:N,onFinish:se,layout:x(1323),children:[l[x(1375)](C[x(1249)].Item,{name:x(863),label:"名称",rules:[{required:!0,message:x(1273)}],children:l[x(1375)](C.Input,{})}),l[x(1375)](C[x(1249)][x(1254)],{name:x(1205),label:x(854),rules:[{required:!0,message:x(447)}],children:l.jsx(C[x(1125)],{options:rg,placeholder:x(404)})}),L==="builtin"&&l[x(1375)](C[x(1249)][x(1254)],{name:x(747),label:x(1295),rules:[{required:!0,message:x(1343)}],children:l[x(1375)](C.Select,{options:ng,placeholder:x(1695)})}),L==="builtin"&&D===x(1974)&&l[x(884)](l[x(1465)],{children:[l.jsx(C[x(1249)].Item,{name:[x(1554),x(592)],label:x(2077),rules:[{required:!0,message:x(1616)}],extra:"占位符:{{prev}}、{{入参名}} 引用上游连线入参;{{$data.xxx}} 取事件上下文 data",children:l[x(1375)](C.Input[x(1529)],{rows:3,placeholder:x(987)})}),l[x(1375)](C[x(1249)][x(1254)],{name:["builtinConfig",x(1763)],label:x(947),children:l[x(1375)](C[x(1125)],{options:tg})}),l[x(1375)](C[x(1249)][x(1254)],{name:["builtinConfig",x(850)],label:"持续时间(秒)",extra:x(1118),children:l[x(1375)](C[x(715)],{min:0,step:.5,style:{width:"100%"},placeholder:"默认"})})]}),L===x(434)&&D==="switchCanvas"&&l[x(1375)](C[x(1249)].Item,{name:[x(1554),"targetCanvasId"],label:x(1486),rules:[{required:!0,message:x(1786)}],children:l[x(1375)](C[x(1125)],{placeholder:"选择要跳转的画布",options:g[x(974)][x(474)](E=>({value:E.id,label:E[x(863)]}))})}),L==="dataRequest"&&l[x(1375)](C[x(1249)][x(1254)],{name:"dataRequestKey",label:x(352),rules:[{required:!0,message:x(419)},{validator:(E,A)=>(A||"")[x(349)]()?Promise.resolve():Promise[x(522)](new Error(x(751)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:l[x(1375)](C.Input,{placeholder:x(1578)})}),L===x(1925)&&l.jsx(C[x(1249)][x(1254)],{name:x(357),label:x(1186),rules:[{required:!0,message:x(2026)},{validator:(E,A)=>(A||"")[x(349)]()?Promise[x(1952)]():Promise.reject(new Error(x(751)))}],extra:c[x(2179)]>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:c[x(2179)]>0?l[x(1375)](C[x(1125)],{showSearch:!0,optionFilterProp:x(663),allowClear:!0,placeholder:x(1388),options:c[x(474)](E=>({value:E[x(844)],label:E.label,title:E[x(994)]?E[x(663)]+" — "+E[x(994)]:E.label+" ("+E[x(844)]+")"})),onInputKeyDown:E=>{const A=x;E[A(844)]===" "&&E[A(1313)]()}}):l[x(1375)](C.Input,{placeholder:x(2144)})}),L===x(608)&&l.jsx(C[x(1249)][x(1254)],{name:x(745),label:"执行代码",rules:[{validator:(E,A)=>{const Z=x;return typeof A===Z(1705)&&A[Z(349)]()?Promise[Z(1952)]():Promise[Z(522)](new Error(Z(2029)))}}],children:l[x(1375)](C.Input[x(1529)],{rows:6,placeholder:x(1345)})}),U[x(2179)]>0&&l.jsxs(x(1037),{className:x(369),children:[l[x(1375)](x(1037),{className:"font-medium text-amber-950 mb-2",children:x(856)}),l.jsx("ul",{className:"list-none space-y-2 m-0 p-0",children:U[x(474)](E=>{const A=x,Z=Y??q?.[A(1439)]??[],ne=cg(E[A(1666)],E.totalIncoming,Z);return l[A(884)]("li",{className:A(2126),children:[l.jsxs(A(1037),{className:A(354),children:["第 ",E[A(1666)]+1,A(430),E[A(1119)],A(765),l[A(1375)](A(645),{children:A(1004)})," →"," ",l[A(884)]("code",{className:"bg-white px-1 rounded",children:["args.",ne]})]}),l.jsxs("div",{className:A(2066),children:["在下方第 ",E[A(1666)]+1,A(1452)]})]},E[A(795)])})})]}),l[x(1375)]("div",{className:"font-medium text-gray-800 mb-2",children:x(443)}),l[x(884)](x(1037),{className:x(1787),children:[x(1408)," ",l[x(1375)](x(519),{children:x(862)}),x(1261),l[x(1375)](x(519),{children:x(871)}),"、",l[x(1375)]("code",{children:x(971)}),"…"]}),l.jsx(C[x(1249)][x(853)],{name:x(1439),children:(E,{add:A,remove:Z})=>l[x(884)](l.Fragment,{children:[E.map(({key:ne,name:te,...X})=>l.jsxs(C[x(1450)],{align:x(1741),wrap:!0,className:x(373),children:[l[x(1375)](C[x(1249)][x(1254)],{...X,name:[te,"name"],rules:[{required:!0,message:"名称"}],children:l[x(1375)](C[x(465)],{placeholder:x(1805),style:{width:140}})}),l.jsx(C[x(1249)][x(1254)],{...X,name:[te,"type"],initialValue:x(1255),children:l[x(1375)](C[x(1125)],{options:ag,style:{width:100}})}),l[x(1375)](de[x(1968)],{className:"text-gray-400 hover:text-red-500 cursor-pointer",onClick:()=>Z(te)})]},ne)),l[x(1375)](C[x(1105)],{type:x(444),onClick:()=>A({type:x(1255)}),block:!0,icon:l[x(1375)](de[x(952)],{}),children:x(914)})]})}),l[x(1375)](C[x(1249)][x(1254)],{className:x(550),children:l[x(884)](C[x(1450)],{className:x(1519),children:[l[x(1375)](C[x(1105)],{onClick:()=>{T(!1),H(null)},children:"取消"}),l.jsx(C[x(1105)],{type:"primary",htmlType:"submit",children:"保存"})]})})]})})]}):null},Bx={click:"点击",mouseDown:s(2124),mouseUp:"鼠标释放",doubleClick:"双击",mouseOver:s(1484),mouseLeave:s(913),mouseEnter:s(1879),contextMenu:"右键菜单",dataRequest:s(961),external:"外部事件"};function lg(e){const n=s;if(e[n(1354)]===n(1925)){const t=(e[n(858)]||"")[n(349)]();return t?Bx[n(1925)]+n(1890)+t:Bx[n(1925)]}return Bx[e[n(1354)]]}const dg=Object[s(1615)](Bx).map(([e,n])=>({label:n,value:e})),ug=({nodeId:e})=>{const n=s,{eventFlow:t,addEventRoot:o,updateEventRoot:x,removeEventRoot:r}=Qe(),[i,c]=B[n(883)](!1),[d,a]=B[n(883)](null),[u,f]=B[n(883)](!1),[b]=C.Form[n(403)](),g=C[n(1249)].useWatch(n(1354),b),w=B[n(1581)](()=>{const y=n;return t.eventRoots[y(815)](p=>p[y(458)]===e)},[t[n(1271)],e]),h=y=>{const p=n,z={bindNodeId:e,eventType:y[p(1354)],externalEventKey:y[p(1354)]===p(1925)?(y[p(858)]||"")[p(349)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0};o(z),b[p(527)](),f(!1)},v=y=>{a(y),c(!0)},M=(y,p)=>{x(y.id,{enabled:p})},m=y=>{r(y)};return l[n(884)](n(1037),{children:[l[n(884)]("div",{className:n(1010),children:[l[n(1375)]("h4",{className:n(951),children:n(1851)}),l.jsx(C[n(1105)],{type:n(2085),size:"small",icon:l[n(1375)](de[n(952)],{}),onClick:()=>f(!0),children:n(880)})]}),l.jsx(C[n(853)],{dataSource:w,renderItem:y=>l[n(1375)](C[n(853)][n(1254)],{actions:[l.jsx(C[n(1025)],{checked:y.enabled,size:n(1400),onChange:p=>M(y,p)},"enable"),l[n(1375)](C[n(1105)],{type:n(1918),size:"small",icon:l.jsx(de.EditOutlined,{}),onClick:()=>v(y)},n(1841)),l[n(1375)](C[n(1708)],{title:"确认删除",description:n(1063),onConfirm:()=>m(y.id),children:l[n(1375)](C.Button,{type:n(1918),danger:!0,size:n(1400),icon:l[n(1375)](de[n(635)],{})})},n(1234))],children:l[n(1375)](C.List[n(1254)][n(1453)],{title:l[n(884)](C[n(1450)],{children:[l[n(1375)](C[n(2158)],{color:y[n(1306)]?"blue":"default",children:lg(y)}),l[n(884)](n(2163),{className:n(1460),children:[y[n(1492)][n(960)][n(2179)]," 个节点"]})]}),description:y[n(1306)]?l[n(1375)](n(2163),{className:"text-xs text-green-600",children:n(1828)}):l[n(1375)](n(2163),{className:n(1460),children:n(544)})})}),locale:{emptyText:l[n(1375)](C[n(1491)],{image:C.Empty[n(1462)],description:n(1858)})}}),l[n(1375)](C.Modal,{title:n(880),open:u,onCancel:()=>{b.resetFields(),f(!1)},footer:null,afterOpenChange:y=>{y&&b[n(527)]()},children:l[n(884)](C.Form,{form:b,onFinish:h,layout:n(1323),children:[l[n(1375)](C[n(1249)][n(1254)],{name:n(1354),label:"触发方式",rules:[{required:!0,message:n(948)}],children:l[n(1375)](C.Select,{options:dg,placeholder:"选择触发方式(DOM / 数据请求 / 外部)"})}),g===n(1925)&&l[n(1375)](C.Form[n(1254)],{name:"externalEventKey",label:n(1940),rules:[{required:!0,message:"请填写外部事件标识"},{validator:(y,p)=>(p||"")[n(349)]()?Promise[n(1952)]():Promise[n(522)](new Error(n(751)))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:l[n(1375)](C[n(465)],{placeholder:n(1438)})}),l[n(1375)](C[n(1249)][n(1254)],{className:n(1928),children:l[n(884)](C[n(1450)],{className:n(1519),children:[l[n(1375)](C[n(1105)],{onClick:()=>f(!1),children:"取消"}),l.jsx(C.Button,{type:n(2085),htmlType:n(1993),children:"创建"})]})})]})}),l[n(1375)](sg,{open:i,onClose:()=>{c(!1),a(null)},bindNodeId:e,editingRoot:d},d?.id??n(1933)+e)]})},{Panel:F0}=C[s(860)],{TabPane:Dx}=C.Tabs,{TextArea:fg}=C[s(465)],ys=({defaultTestData:e})=>{const n=s,{nodes:t,selectedNodeId:o,updateNode:x,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:c,materials:d,selectedStatusId:a,selectStatus:u}=Qe(),[f]=C.Form[n(403)](),[b,g]=B[n(883)](n(1212)),[w,h]=B[n(883)](!1),[v,M]=B[n(883)](null),[m,y]=B.useState({}),p=B[n(1581)](()=>t[n(990)](D=>D.id===o),[t,o]),z=p?.[n(742)][n(1833)]||[],P=L=>{const D=n;o&&(L[D(1379)]&&r(o,L[D(1379)]),L[D(863)]!==void 0&&x(o,{name:L[D(863)]}),L[D(908)]&&i(o,L[D(908)]))};console[n(1672)](o,n(1469),p),B[n(2005)](()=>{const L=n;p&&p&&(f[L(985)]({name:p.name,normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:L(1911),borderRadius:0,opacity:1,...p[L(1379)]},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...p[L(908)]}}),u(null))},[p,u,f]);const G=()=>{const L=n;!o||!p||(M(L(1206)),h(!0))},O=L=>{const D=n;if(!o||!p)return;const Y={id:Le[D(1335)](),name:L[D(863)]+D(1735)+(z.length+1),expression:z[D(2179)]===0?D(2069):D(2032),material:{...L,id:Le[D(1335)]()},boundDatasetId:null};if(v==="new"){const U=[...z,Y];c(o,{statusList:U})}else if(v){const U=z[D(474)](I=>{const J=D;return I.id===v?{...I,material:{...L,id:Le[J(1335)]()}}:I});c(o,{statusList:U})}h(!1),M(null)},V=L=>{const D=n;if(!o||!p)return;const Y=p.contentInfo[D(1833)]?.[D(815)](U=>U.id!==L)||[];c(o,{statusList:Y}),a===L&&u(null)},j=(L,D)=>{const Y=n;if(!o||!p)return;const U=p[Y(742)][Y(1833)]?.[Y(474)](I=>I.id===L?{...I,...D}:I)||[];c(o,{statusList:U})},q=L=>{const D=n;if(!o||!p)return;const Y={...L,id:Le[D(1335)](),name:L.name+D(870),expression:"return false;"},U=[...z,Y];c(o,{statusList:U})},H=(L,D)=>{const Y=n;if(!o||!p)return;const U=z[Y(424)](J=>J.id===L);if(U===-1)return;const I=[...z];D==="up"&&U>0?[I[U],I[U-1]]=[I[U-1],I[U]]:D==="down"&&U<I[Y(2179)]-1&&([I[U],I[U+1]]=[I[U+1],I[U]]),c(o,{statusList:I})},W=L=>{M(L),h(!0)},T=(L,D)=>{const Y=n,U=D[Y(1936)]||{},I=U.startX??0,J=U[Y(504)]??0,$=U.endX??100,F=U[Y(1945)]??0,xe=Math[Y(2172)]((U.lineWeight||U[Y(1531)]||2)*2,4),re=Math[Y(775)](I,$),ae=Math[Y(775)](J,F),ue=Math[Y(2172)](I,$),me=Math[Y(2172)](J,F),se=Math[Y(2172)](ue-re,xe),ee=Math[Y(2172)](me-ae,xe),le=L[Y(1379)].x||0,be=L.normalStyle.y||0;return{material:{...D,config:{...U,startX:I-re,startY:J-ae,endX:$-re,endY:F-ae}},box:{x:le+re,y:be+ae,width:se,height:ee}}},N=(L,D)=>{const Y=n;if(!o||!p)return;const{list:U,lineBox:I}=z[Y(1106)]((J,$)=>{const F=Y;if($.id!==L)return J[F(1797)].push($),J;let xe;if($[F(956)][F(1912)]===F(1701)&&F(1936)in D&&D[F(1936)]!==void 0){const re=$[F(956)],ae=D.config;xe={...re,...D,config:{...re[F(1936)]||{},...ae}}}else xe={...$.material,...D};if(xe.type===F(1701)){const{material:re,box:ae}=T(p,xe);return J[F(1797)][F(1759)]({...$,material:re}),J.lineBox=ae,J}return J[F(1797)].push({...$,material:xe}),J},{list:[],lineBox:null});I!==null?x(o,{normalStyle:{...p[Y(1379)],x:I.x,y:I.y,width:I.width,height:I[Y(1355)]},contentInfo:{...p[Y(742)],statusList:U}}):c(o,{statusList:U})};return p?l[n(884)](n(1037),{className:n(1226),children:[l.jsxs(n(1037),{className:n(591),children:[l[n(1375)]("h3",{className:n(1410),children:n(2063)}),l[n(1375)]("p",{className:"text-sm text-gray-500",children:"编辑选中节点的属性"})]}),l.jsx(n(1037),{className:"flex-1 overflow-y-auto p-4",children:l[n(884)](C[n(1417)],{activeKey:b,onChange:g,children:[l[n(1375)](Dx,{tab:"基础",children:l.jsxs(C[n(1249)],{form:f,layout:n(1323),onValuesChange:P,initialValues:{name:p[n(863)]},children:[l[n(1375)](C[n(1249)][n(1254)],{label:n(1415),name:n(863),children:l.jsx(C.Input,{placeholder:n(361)})}),l[n(884)](C.Collapse,{ghost:!0,defaultActiveKey:[n(835),"size",n(1476)],children:[l[n(1375)](F0,{header:"位置",children:l[n(884)](C[n(1450)],{children:[l.jsx(C[n(1249)][n(1254)],{label:"X",name:[n(1379),"x"],children:l[n(1375)](C[n(715)],{})}),l[n(1375)](C[n(1249)][n(1254)],{label:"Y",name:[n(1379),"y"],children:l[n(1375)](C[n(715)],{})})]})},n(835)),l.jsx(F0,{header:"尺寸",children:l.jsxs(C[n(1450)],{children:[l[n(1375)](C.Form[n(1254)],{label:"宽度",name:[n(1379),n(1710)],children:l[n(1375)](C[n(715)],{min:10})}),l.jsx(C.Form[n(1254)],{label:"高度",name:[n(1379),n(1355)],children:l[n(1375)](C[n(715)],{min:10})})]})},"size"),l[n(884)](F0,{header:"样式",children:[l[n(1375)](C[n(1249)][n(1254)],{label:n(2021),name:[n(1379),n(2043)],children:l[n(1375)](C.Input,{placeholder:n(1685)})}),l[n(1375)](C.Form.Item,{label:n(1108),name:[n(1379),"padding"],children:l[n(1375)](C[n(715)],{min:0})}),l.jsx(C[n(1249)].Item,{label:"圆角",name:["normalStyle",n(681)],children:l[n(1375)](C.InputNumber,{min:0})}),l.jsx(C[n(1249)].Item,{label:"缩放比例",name:[n(1379),n(690)],help:n(2141),children:l.jsx(C.InputNumber,{min:.1,max:5,step:.1})}),!p[n(742)][n(1833)][n(1496)](L=>L[n(956)][n(1912)]===n(1701))&&l.jsx(C[n(1249)][n(1254)],{label:n(981),name:[n(1379),n(1442)],help:n(1020),children:l.jsx(C[n(715)],{min:0,max:360,step:1})}),l[n(1375)](C[n(1249)][n(1254)],{label:"透明度",name:[n(1379),n(1028)],children:l.jsx(C[n(715)],{min:0,max:1,step:.1})}),l[n(1375)](C[n(1249)][n(1254)],{label:"层级",name:["normalStyle",n(741)],children:l[n(1375)](C[n(715)],{})})]},"style")]})]})},n(1212)),l[n(1375)](Dx,{tab:"状态",children:p.type==="group"&&p.children?l.jsx(Kl,{node:p,updateNode:x,materials:d}):l[n(884)](n(1037),{className:n(546),children:[l[n(884)]("div",{className:n(2009),children:[l[n(884)]("span",{className:n(1430),children:[n(632),l[n(1375)](C.Tag,{color:"blue",className:n(1594),children:z.length})]}),l[n(1375)](C[n(1105)],{type:"primary",size:n(1400),icon:l[n(1375)](de[n(952)],{}),onClick:G,children:"添加状态"})]}),l[n(1375)]("p",{className:"text-xs text-gray-500 mb-3",children:"节点根据状态表达式计算结果显示对应物料,第一个返回 true 的状态为当前状态"}),z[n(2179)]>0&&l[n(1375)](n(1037),{className:"mb-4 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:l[n(1375)](n(1037),{className:n(817),children:l[n(884)]("div",{children:[l[n(1375)](n(2163),{className:n(2080),children:n(1171)}),l.jsx(n(2163),{className:"ml-2 text-sm font-medium text-blue-600",children:n(1926)})]})})}),z[n(2179)]===0?l[n(1375)](n(1037),{className:n(1990),children:n(735)}):l.jsx(C.Collapse,{ghost:!0,defaultActiveKey:z[0]?.id+o,children:z[n(474)]((L,D)=>l[n(1375)](F0,{header:l.jsxs(n(1037),{className:n(1965),children:[l.jsx(n(2163),{className:n(2130),children:D+1}),l[n(1375)](n(2163),{className:n(1430),children:L[n(863)]}),l[n(1375)](C[n(2158)],{color:"default",className:n(1468),children:L[n(956)][n(1912)]})]}),extra:l[n(884)](C[n(1450)],{size:n(1400),onClick:Y=>Y[n(1313)](),children:[l[n(1375)](C.Button,{type:"text",size:n(1400),icon:l[n(1375)](de.ArrowUpOutlined,{}),disabled:D===0,onClick:Y=>{Y[n(1313)](),H(L.id,"up")}}),l.jsx(C.Button,{type:n(1918),size:"small",icon:l.jsx(de.ArrowDownOutlined,{}),disabled:D===z.length-1,onClick:Y=>{const U=n;Y.stopPropagation(),H(L.id,U(1221))}}),l[n(1375)](C[n(1105)],{type:"text",size:n(1400),icon:l.jsx(de[n(364)],{}),onClick:Y=>{Y[n(1313)](),q(L)}}),l.jsx(C[n(1105)],{type:n(1918),size:"small",danger:!0,icon:l[n(1375)](de[n(635)],{}),onClick:Y=>{Y.stopPropagation(),V(L.id)}})]}),children:l.jsxs(C[n(1249)],{layout:"vertical",children:[l[n(1375)](C[n(1249)][n(1254)],{label:n(1839),children:l.jsx(C[n(465)],{value:L[n(863)],onChange:Y=>j(L.id,{name:Y[n(500)][n(1044)]}),placeholder:"输入状态名称"})}),l[n(1375)](li,{status:L,onUpdate:Y=>j(L.id,Y),onAppendToExpression:Y=>{y(U=>({...U,[L.id]:(U[L.id]??L.expression)+Y}))}}),l.jsx(C[n(1249)][n(1254)],{label:n(1817),help:"单参数 data(对象):由数据池 sample(若已绑定)与画布运行时数据合并;测点数组会按 paramsCode 写入 data。须 return true/false。",children:l[n(1375)](fg,{value:m[L.id]??L[n(572)],onChange:Y=>y(U=>({...U,[L.id]:Y[n(500)][n(1044)]})),onBlur:Y=>{const U=n;j(L.id,{expression:Y[U(500)].value}),y(I=>{const J={...I};return delete J[L.id],J})},rows:3,placeholder:n(2069)})}),l.jsx(C[n(1249)].Item,{label:n(1373),children:l[n(884)](n(1037),{className:n(1965),children:[l[n(1375)](C[n(2158)],{color:n(547),children:L[n(956)][n(863)]}),l.jsx(C[n(2158)],{color:n(384),children:L[n(956)][n(1912)]}),l[n(1375)](C[n(1105)],{type:n(1088),size:"small",icon:l[n(1375)](de.EditOutlined,{}),onClick:()=>W(L.id),children:n(2060)})]})}),l[n(1375)](C[n(1867)],{style:{margin:n(1625)}}),l[n(884)](n(1037),{className:n(1885),children:[l[n(884)](n(1037),{className:"flex items-center justify-between mb-2",children:[l[n(1375)]("span",{className:n(951),children:n(1252)}),l[n(1375)](C[n(2158)],{children:L[n(956)].name})]}),l[n(1375)](di,{material:L[n(956)],onSave:Y=>N(L.id,Y)})]})]})},L.id+o))})]})},"status"),l[n(1375)](Dx,{tab:"控制",children:l.jsxs(C[n(1249)],{form:f,layout:n(1323),onValuesChange:P,children:[l[n(1375)](C[n(1249)][n(1254)],{label:n(2028),name:["controlInfo",n(698)],valuePropName:n(893),children:l[n(1375)](C.Switch,{})}),l.jsx(C[n(1249)][n(1254)],{label:n(702),name:[n(908),"isClickable"],valuePropName:"checked",children:l[n(1375)](C.Switch,{})}),l[n(1375)](C.Form[n(1254)],{label:n(771),name:["controlInfo",n(2102)],valuePropName:n(893),children:l[n(1375)](C[n(1025)],{})}),l[n(1375)](C[n(1249)][n(1254)],{label:n(1631),name:[n(908),n(2143)],valuePropName:n(893),children:l[n(1375)](C[n(1025)],{})})]})},n(931)),l[n(1375)](Dx,{tab:n(1752),children:l[n(1375)](ug,{nodeId:p.id})},"eventflow")]})}),l[n(1375)](n(1037),{className:"p-3 border-t border-gray-200 bg-gray-50",children:l[n(884)](n(1037),{className:"text-xs text-gray-500",children:[l[n(884)](n(1037),{children:[n(972),p.id[n(852)](0,8),n(396)]}),l[n(884)](n(1037),{children:[n(346),z.length]})]})}),l[n(1375)](C[n(1767)],{title:n(360),open:w,onCancel:()=>{h(!1),M(null)},footer:null,width:600,children:l[n(1375)]("div",{className:"max-h-[400px] overflow-y-auto",children:l[n(884)](C[n(860)],{ghost:!0,defaultActiveKey:[n(1212),n(420),n(1918),n(1190)],children:[l[n(1375)](F0,{header:n(1777),children:l[n(1375)](n(1037),{className:n(712),children:d[n(815)](L=>["矩形","圆形",n(605)][n(1419)](L.name))[n(474)](L=>l[n(1375)](ms,{material:L,onClick:()=>O(L)},L.id))})},n(1212)),l[n(1375)](F0,{header:n(1050),children:l[n(1375)](n(1037),{className:n(712),children:d[n(815)](L=>["阀门","泵","罐体"][n(1419)](L[n(863)])||L[n(1912)]===n(1054)&&!["矩形","圆形",n(605)][n(1419)](L[n(863)]))[n(474)](L=>l[n(1375)](ms,{material:L,onClick:()=>O(L)},L.id))})},n(420)),l[n(1375)](F0,{header:"文本",children:l[n(1375)](n(1037),{className:n(712),children:d.filter(L=>L[n(1912)]===n(1509)).map(L=>l[n(884)](n(1037),{className:n(1027),onClick:()=>O(L),children:[l[n(1375)](n(1037),{className:n(1582),children:l[n(1375)](n(2163),{className:n(1698),children:"T"})}),l[n(1375)](n(2163),{className:"text-xs",children:L[n(863)]})]},L.id))})},n(1918)),l[n(1375)](F0,{header:"线条",children:l[n(1375)](n(1037),{className:n(712),children:d.filter(L=>L.type===n(1701))[n(474)](L=>l.jsxs("div",{className:n(1027),onClick:()=>O(L),children:[l[n(1375)](n(1037),{className:n(1582),children:l[n(1375)](n(1037),{className:"w-8 h-0.5 bg-gray-400"})}),l.jsx("span",{className:"text-xs",children:L[n(863)]})]},L.id))})},n(1190))]})})})]}):l[n(1375)](n(1037),{className:n(1832),children:l[n(1375)](C.Empty,{description:"请选择一个节点"})})},ms=({material:e,onClick:n})=>{const t=s,o=e[t(1912)]===t(1054)?e[t(1950)]:void 0;return l.jsxs("div",{className:t(1027),onClick:n,children:[l[t(1375)](t(1037),{className:t(1300),children:o?l[t(1375)]("img",{src:o,alt:e[t(863)],className:t(1080)}):l[t(1375)](t(2163),{className:t(1468),children:e[t(863)][0]})}),l[t(1375)]("span",{className:"text-xs",children:e[t(863)]})]})},hg="ConfigEditor-module__configEditor__dinNG",gg={configEditor:hg},bg=s(2167);function ws(e){return Array[s(565)](e)}const vs=({open:e,onClose:n})=>{const t=s,{dataPool:o,addDataPoolItem:x,updateDataPoolItem:r,removeDataPoolItem:i}=Qe(),[c]=C[t(1249)][t(403)](),[d,a]=B[t(883)](null);B[t(2005)](()=>{const h=t;!e&&(a(null),c[h(527)]())},[e,c]);const u=()=>{const h=t;a(h(1766)),c[h(985)]({name:h(1973)+(o.length+1),sampleJson:""})},f=h=>{const v=t;a(h.id),c[v(985)]({name:h[v(863)],sampleJson:JSON[v(922)](h[v(2133)]??{},null,2)})},b=h=>{const v=t,M=h.trim();if(!M)return{};const m=JSON[v(1387)](M);if(m===null||typeof m!="object")throw new Error(v(2055));if(Array[v(565)](m)){for(let y=0;y<m[v(2179)];y++)if(typeof m[y]!="object"||m[y]===null)throw new Error("数组第 "+(y+1)+v(518));return m}return m},g=()=>{const h=t;c[h(1034)]()[h(688)](v=>{const M=h;let m;try{m=b(v[M(910)])}catch(p){C[M(1109)][M(1036)](p instanceof Error?p[M(1109)]:M(1235));return}const y=v[M(863)][M(349)]();if(!y){C[M(1109)][M(1036)](M(1273));return}d==="__new__"?(x({name:y,sample:m}),C.message[M(1093)](M(2149))):d&&(r(d,{name:y,sample:m}),C.message.success("已保存")),a(null),c[M(527)]()})[h(714)](()=>{})},w=[{title:"名称",dataIndex:t(863),key:t(863)},{title:"类型",key:t(1912),width:100,render:(h,v)=>ws(v[t(2133)])?l[t(884)](C.Tag,{color:t(547),children:[t(693),v[t(2133)][t(2179)],t(1586)]}):l[t(1375)](C[t(2158)],{children:"对象"})},{title:t(1401),key:t(999),width:90,render:(h,v)=>{const M=t;if(ws(v[M(2133)])){const m=v.sample[0];return m?Object[M(999)](m)[M(2179)]:0}return Object[M(999)](v[M(2133)]||{})[M(2179)]}},{title:"操作",key:t(2047),width:160,render:(h,v)=>l.jsxs(C[t(1450)],{children:[l[t(1375)](C[t(1105)],{type:t(1088),size:"small",icon:l.jsx(de[t(2165)],{}),onClick:()=>f(v),children:"编辑"}),l[t(1375)](C[t(1708)],{title:t(1280),description:t(1384),onConfirm:()=>{const M=t;i(v.id),C.message[M(1093)](M(1097))},children:l[t(1375)](C[t(1105)],{type:t(1088),size:t(1400),danger:!0,icon:l.jsx(de[t(635)],{}),children:"删除"})})]})}];return l[t(884)](C[t(1767)],{title:t(526),open:e,onCancel:n,width:760,footer:null,destroyOnClose:!0,children:[l[t(884)]("p",{className:"text-sm text-gray-500 mb-3",children:[t(1183)," ",l[t(1375)](t(519),{className:t(996),children:t(1574)}),t(1120)]}),l[t(1375)](t(1037),{className:t(1976),children:l[t(1375)](C[t(1105)],{type:t(2085),icon:l.jsx(de[t(952)],{}),onClick:u,children:t(1257)})}),d&&l[t(884)](t(1037),{className:t(1799),children:[l[t(884)](t(1037),{className:"font-medium mb-2",children:[d==="__new__"?"新建":"编辑",t(980)]}),l[t(884)](C.Form,{form:c,layout:"vertical",children:[l[t(1375)](C.Form.Item,{name:t(863),label:"名称",rules:[{required:!0,message:"必填"}],children:l.jsx(C.Input,{placeholder:t(394)})}),l[t(1375)](C[t(1249)].Item,{name:t(910),label:t(1209),rules:[{required:!0,message:"必填"}],children:l[t(1375)](C.Input[t(1529)],{rows:12,className:t(1225),placeholder:bg})}),l[t(884)](C.Space,{children:[l[t(1375)](C[t(1105)],{type:t(2085),onClick:g,children:"保存"}),l.jsx(C[t(1105)],{onClick:()=>{const h=t;a(null),c[h(527)]()},children:"取消"})]})]})]}),l[t(1375)](C[t(1217)],{size:t(1400),rowKey:"id",dataSource:o,columns:w,pagination:!1,locale:{emptyText:t(1501)}})]})},{Header:yg,Sider:ps,Content:mg}=C[s(489)],wg=({initialScheme:e,onChange:n,readonly:t=!1,headerExtra:o,className:x="",style:r,showHeader:i=!0,showMaterialPanel:c=!0,showPropertyPanel:d=!0,customMaterials:a,initialDataPool:u,initialEventFlow:f,externalEventActions:b,onUploadSvg:g,defaultTestData:w,backgroundImageUrl:h,initialViewportWidth:v,initialViewportHeight:M})=>{const m=s,[y,p]=B.useState(!1),[z,P]=B[m(883)](!1),[G,O]=B[m(883)](""),[V]=B[m(883)](()=>[{paramsCode:m(1811),paramsName:"通频速度有效值",value:25,paramsUnit:m(807)},{paramsCode:m(615),paramsName:m(1703),value:1.5,paramsUnit:m(1423)}]),j=w!==void 0?w:V,q=i&&!t,{exportScheme:H,importScheme:W,nodes:T,materials:N,dataPool:L,eventFlow:D,root:Y,canvas:U,viewport:I,addMaterial:J,setDataPool:$,setEventFlow:F,setExternalHandlerCatalog:xe}=Qe();B.useRef(null);const re=B[m(780)](!1);B[m(2005)](()=>{const ee=m;if(!re[ee(523)]&&(re.current=!0,Nr[ee(1322)](le=>J(le)),e&&W(e),f!==void 0&&F(f),b&&b[ee(2179)]>0)){xe(b);const le={};for(const be of b){const E=String(be[ee(844)]??"")[ee(349)]();E&&be[ee(493)]&&(le[E]=be.handler)}Object[ee(999)](le)[ee(2179)]>0&&Cn.mergeDefaultRuntimeHandlers({external:le})}},[]),B[m(2005)](()=>{const ee=m;a&&a[ee(2179)]>0&&a[ee(1322)](le=>J(le))},[]),B[m(2005)](()=>{u!==void 0&&$(u)},[u,$]),B[m(2005)](()=>{if(n){const ee=H();n(ee)}},[T,N,L,D,Y,n,H]);const ae=B.useCallback(()=>{const ee=m,le=H(),be=JSON[ee(922)](le,null,2),E=ee(669)+encodeURIComponent(be),A="scheme_"+Date[ee(1700)]()+ee(1115),Z=document[ee(2142)]("a");Z.setAttribute(ee(1692),E),Z[ee(1051)](ee(1398),A),Z[ee(1164)](),C[ee(1109)].success("导出成功!")},[H]),ue=B.useCallback(()=>{const ee=m;try{const le=JSON[ee(1387)](G);W(le),p(!1),O(""),C[ee(1109)][ee(1093)]("导入成功!")}catch{C.message[ee(1036)]("JSON 格式错误,请检查输入")}},[G,W]),me=B[m(1318)](ee=>{const le=m,be=new FileReader;return be[le(695)]=E=>{const A=le;try{const Z=E[A(500)]?.[A(933)],ne=JSON[A(1387)](Z);W(ne),C.message.success(A(1497)),p(!1)}catch{C[A(1109)][A(1036)](A(2065))}},be[le(2162)](ee),!1},[W]),se=B[m(1318)](()=>H(),[H]);return B.useImperativeHandle(B[m(780)]?.(),()=>({getScheme:se,exportScheme:H,importScheme:W}),[se,H,W]),l[m(1375)](C.ConfigProvider,{locale:ks,children:l.jsx(m(1037),{className:gg.configEditor,style:{height:t?"auto":m(1575),...r},children:l[m(884)](C[m(489)],{className:"w-full "+(t?"":m(1748))+" "+(t?"":"overflow-hidden")+" "+x,children:[q&&l.jsxs(yg,{className:m(925),children:[l[m(884)](m(1037),{className:m(1801),children:[l[m(1375)]("div",{className:m(1886),children:m(2148)}),l[m(884)](m(1037),{className:m(700),children:[T[m(2179)],m(2098)]})]}),l[m(884)](C[m(1450)],{children:[o,!t&&l[m(884)](l[m(1465)],{children:[l[m(1375)](C[m(879)],{title:"导出 JSON",children:l.jsx(C[m(1105)],{icon:l.jsx(de[m(801)],{}),onClick:ae,children:"导出"})}),l.jsx(C[m(879)],{title:m(2068),children:l[m(1375)](C[m(1105)],{icon:l[m(1375)](de.UploadOutlined,{}),onClick:()=>p(!0),children:"导入"})}),l.jsx(C[m(879)],{title:m(728),children:l[m(1375)](C[m(1105)],{icon:l.jsx(de[m(992)],{}),onClick:()=>P(!0),children:m(1436)})})]})]})]}),l[m(884)](C[m(489)],{children:[c&&!t&&l[m(1375)](ps,{width:280,className:m(1946),theme:m(1592),children:l[m(1375)](kr,{onUploadSvg:g})}),l.jsx(mg,{className:m(1903)+(t?"":m(1189)),style:t?{backgroundColor:U?.[m(2043)],backgroundImage:U?.[m(1372)]!==!1?m(596):void 0,backgroundSize:20*(I?.[m(690)]||1)+m(1900)+20*(I?.scale||1)+"px"}:void 0,children:l[m(1375)](ii,{defaultTestData:j,readonly:t,backgroundImageUrl:h,initialViewportWidth:v,initialViewportHeight:M})}),d&&!t&&l[m(1375)](ps,{width:360,className:m(1946),theme:"light",children:l[m(1375)](ys,{defaultTestData:Array[m(565)](j)?j:void 0})})]}),l.jsx(vs,{open:z,onClose:()=>P(!1)}),l.jsx(C[m(1767)],{title:m(2137),open:y,onOk:ue,onCancel:()=>{p(!1),O("")},width:600,children:l[m(884)](m(1037),{className:m(1888),children:[l[m(884)](m(1037),{children:[l.jsx("p",{className:m(373),children:m(797)}),l.jsx(m(614),{type:m(2161),accept:m(1115),onChange:ee=>{const le=ee.target.files?.[0];le&&me(le)},className:m(1988)})]}),l[m(1375)]("div",{className:m(1192),children:"或"}),l[m(884)](m(1037),{children:[l[m(1375)]("p",{className:m(373),children:m(953)}),l.jsx(m(1008),{value:G,onChange:ee=>O(ee[m(500)][m(1044)]),placeholder:m(748),className:m(1332)})]})]})})]})})})};Se[s(2078)]=ii,Se[s(1081)]=wg,Se.DataPoolModal=vs,Se[s(1371)]=xi,Se[s(1547)]=kr,Se[s(509)]=ro,Se[s(1242)]=ys,Se.buildMergedDataRecord=Mr,Se[s(397)]=Cr,Se[s(1297)]=Sr,Se.createDefaultStatus=_x,Se[s(1245)]=Zx,Se.eventBus=Cn,Se.findActiveStatus=Br,Se[s(551)]=Nr,Se[s(515)]=Qe,Object[s(593)](Se,Symbol[s(867)],{value:s(1613)})});