comp-hub 0.27.18 → 0.27.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -147
- package/bin/cli.js +85 -84
- package/dist/index.js +1 -1
- package/dist/website/container/assets/index-BE50zrUP.css +1 -0
- package/dist/website/container/assets/{index-CdaB9oWd.js → index-Cmi2NYAU.js} +1 -1
- package/dist/website/container/index.html +34 -34
- package/dist/website/container/js/vue2-sfc-loader.js +260 -260
- package/dist/website/container/js/vue3-sfc-loader.js +289 -289
- package/dist/website/item/assets/{index-B0s1uwsa.js → index-D1z-Gulp.js} +3 -3
- package/dist/website/item/assets/index-DMrYn9mD.css +1 -0
- package/dist/website/item/index.html +32 -32
- package/dist/website/main/assets/{AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CfufrKbA.js → AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-bvKbrkpk.js} +1 -1
- package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-B6WkXWm7.js → BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js} +1 -1
- package/dist/website/main/assets/{BaseSegmented.vue_vue_type_script_setup_true_lang-D5yw_wF0.js → BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js} +1 -1
- package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-BwtYEYU5.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-Z_wBEKCl.js} +1 -1
- package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-DIgE9MGd.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js} +1 -1
- package/dist/website/main/assets/{core-DE5-zGKf.js → core-DCZ-eL8G.js} +1 -1
- package/dist/website/main/assets/{el-table-column-BiqynxkD.js → el-table-column-Cx9gMgrN.js} +1 -1
- package/dist/website/main/assets/{index-BIGvC1SM.js → index-4acODfuo.js} +1 -1
- package/dist/website/main/assets/index-B2BmYIO5.js +1 -0
- package/dist/website/main/assets/index-B37e-H6y.js +1 -0
- package/dist/website/main/assets/index-B63tZaB2.css +1 -0
- package/dist/website/main/assets/{index-gOTpUrNM.js → index-BGTVNDSV.js} +1 -1
- package/dist/website/main/assets/{index-DvyE3TrH.js → index-BaX-1N8K.js} +2 -2
- package/dist/website/main/assets/{index-BGLjC3BV.js → index-BngP265n.js} +1 -1
- package/dist/website/main/assets/index-BnpZ3Duk.js +25 -0
- package/dist/website/main/assets/{index-BQWeT5qu.js → index-Bw7t67yK.js} +1 -1
- package/dist/website/main/assets/{index-CGgS1tZ0.js → index-C7kV7E5j.js} +1 -1
- package/dist/website/main/assets/index-C9r8rR8o.js +1 -0
- package/dist/website/main/assets/index-CfMcBFhz.js +1 -0
- package/dist/website/main/assets/{index-Dl-mwEbG.js → index-CqcYb_O4.js} +1 -1
- package/dist/website/main/assets/{index-BfPdLll-.js → index-CvRT9IhX.js} +1 -1
- package/dist/website/main/assets/{index-D7eOWAPr.js → index-Cy6hrNNt.js} +1 -1
- package/dist/website/main/assets/index-Czj4Va_p.js +1 -0
- package/dist/website/main/assets/{index-DBM1x91X.js → index-D4mf-9oL.js} +1 -1
- package/dist/website/main/assets/index-DBDOcdx3.js +2 -0
- package/dist/website/main/assets/{index-D8WDrGkh.js → index-DGdf8eP2.js} +1 -1
- package/dist/website/main/assets/{index-ctwb4cB7.js → index-DMAX-M2Q.js} +1 -1
- package/dist/website/main/assets/{index-CFH_ugiT.js → index-DNszuV9Y.js} +1 -1
- package/dist/website/main/assets/index-DlO1wWqO.js +1 -0
- package/dist/website/main/assets/{index-q4Z3Q7p4.js → index-DsYCIdsq.js} +1 -1
- package/dist/website/main/assets/{index-Cu1YAWdz.js → index-DxYo8MHB.js} +1 -1
- package/dist/website/main/assets/{index-Cl0SK7oa.css → index-DxyEzkir.css} +1 -1
- package/dist/website/main/assets/{index-Oo11MKfd.js → index-Dz7Dj_1u.js} +1 -1
- package/dist/website/main/assets/index-FHO37hxp.css +1 -0
- package/dist/website/main/assets/{index-uu5oSUvx.js → index-GnkbPU1i.js} +1 -1
- package/dist/website/main/assets/{index-C9t3Yhe9.js → index-IUKgsvZv.js} +1 -1
- package/dist/website/main/assets/{index-DmO0JQ56.css → index-JFePecD_.css} +1 -1
- package/dist/website/main/assets/{index-CTLlcQoM.js → index-O6EResxn.js} +1 -1
- package/dist/website/main/assets/index-Pry-PAul.css +1 -0
- package/dist/website/main/assets/{index-vnzmxexj.js → index-WuHE7xfi.js} +1 -1
- package/dist/website/main/assets/index-ZwxrucVt.js +1 -0
- package/dist/website/main/assets/{index-cFhtMyBi.js → index-x3kqy62K.js} +2 -2
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BDhf8t5D.js → index.vue_vue_type_script_setup_true_lang-C5L_ugEm.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-aO0L9Tak.js → index.vue_vue_type_script_setup_true_lang-CmisVeEC.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-D_7jZ1zo.js → index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js} +2 -2
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-B4echric.js → index.vue_vue_type_script_setup_true_lang-DRlqnxVM.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-COryHg9c.js → index.vue_vue_type_script_setup_true_lang-SLaqY8P4.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Dtuk2wrA.js → index.vue_vue_type_script_setup_true_lang-Y8sQYcwy.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C4fELX8m.js → index.vue_vue_type_style_index_0_lang-BygWE3Ob.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-D_eT-tA_.js → index.vue_vue_type_style_index_0_lang-TY8hdvSG.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C3U7f9Ma.js → index.vue_vue_type_style_index_0_lang-vmUTBf-P.js} +1 -1
- package/dist/website/main/assets/{md5-BZr8xhBN.js → md5-CDR0X4F9.js} +1 -1
- package/dist/website/main/assets/{useCompEditStore-B7KaUbOi.js → useCompEditStore-BaMFNGpl.js} +2 -2
- package/dist/website/main/assets/{useCompEditStore-Du_-rNtX.css → useCompEditStore-DdbvUh5w.css} +1 -1
- package/dist/website/main/assets/{useKeyword-D1qu8Tz-.js → useKeyword-BMG9y3e4.js} +1 -1
- package/dist/website/main/assets/{useMessage-D7WAp245.js → useMessage-CNq7TVBk.js} +1 -1
- package/dist/website/main/assets/{useVscodeOpen-DIYbcP1e.js → useVscodeOpen-B7qurnVy.js} +1 -1
- package/dist/website/main/assets/{vendor-ui-D6wVBlls.js → vendor-ui-CmoKJ_4A.js} +3 -3
- package/dist/website/main/index.html +3 -3
- package/package.json +39 -39
- package/dist/website/container/assets/index-BnbvpvZL.css +0 -1
- package/dist/website/item/assets/index-BIcNxYiU.css +0 -1
- package/dist/website/main/assets/index-B6f_06zP.js +0 -1
- package/dist/website/main/assets/index-BkUBwon5.css +0 -1
- package/dist/website/main/assets/index-CCFHORqg.js +0 -1
- package/dist/website/main/assets/index-CWW1M_cy.js +0 -1
- package/dist/website/main/assets/index-Cf69_nzt.js +0 -23
- package/dist/website/main/assets/index-CuHNNhtE.js +0 -1
- package/dist/website/main/assets/index-D6Fz5rH9.css +0 -1
- package/dist/website/main/assets/index-DC94GyXj.js +0 -1
- package/dist/website/main/assets/index-DrUAgWBX.js +0 -1
- package/dist/website/main/assets/index-YUZjR2Eq.js +0 -2
- package/dist/website/main/assets/index-tEU6GnSH.js +0 -1
- package/dist/website/main/assets/index-y8GEzH-z.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ge,A as Qe,J as P,a9 as lt,ai as ot,x as at,y as ut,r as ct,f as Ft,a0 as ft}from"./vendor-ui-D6wVBlls.js";import{z as ue,v as H,O as Ce,M as De,o as dt,m as Nt}from"./index-Cf69_nzt.js";/* empty css */import{v as ee,ab as j,l as ie,F as St,ah as pt,i as W,ap as $,$ as ht,j as Y,aO as T,q as oe,k as Et,g as J,aA as re,aj as le,r as b,ax as k,af as I,aF as xe,ay as At,aE as Ct,al as mt,B as Bt,y as Mt,X as gt,a7 as Dt}from"./vendor-core-B-Si3WEf.js";import{_ as me}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CfufrKbA.js";import{_ as ce}from"./BaseDialog.vue_vue_type_script_setup_true_lang-B6WkXWm7.js";import{m as ye}from"./md5-BZr8xhBN.js";import{_ as Ye}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";import{h as Lt}from"./moment-B-YVwB4U.js";import{_ as vt}from"./index.vue_vue_type_script_setup_true_lang-aO0L9Tak.js";import"./useCacheOssStore-CU4a8b24.js";const Ot=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],_e=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function kt(e){if(e<=255)return Ot[e];let t=0,n=_e.length-1;for(;t<=n;){const r=t+n>>1,x=_e[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function wt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const p=kt(F);(p==="R"||p==="AL"||p==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=p;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,p=F!=="L"?"R":"L";if(p===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=p;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function bt(e,t){const n=wt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,_t=/[\t\n\r\f]| {2,}|^ | $/;function Wt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Rt(e){if(!_t.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Tt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
|
|
1
|
+
import{e as ge,A as Qe,H as P,a5 as lt,ae as ot,x as at,y as ut,r as ct,f as Ft,_ as ft}from"./vendor-ui-CmoKJ_4A.js";import{z as ue,v as H,O as Ce,M as De,o as dt,m as Nt}from"./index-BnpZ3Duk.js";/* empty css */import{v as ee,ab as j,l as ie,F as St,ah as pt,i as W,ap as $,$ as ht,j as Y,aO as T,q as oe,k as Et,g as J,aA as re,aj as le,r as b,ax as k,af as I,aF as xe,ay as At,aE as Ct,al as mt,B as Bt,y as Mt,X as gt,a7 as Dt}from"./vendor-core-B-Si3WEf.js";import{_ as me}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-bvKbrkpk.js";import{_ as ce}from"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import{m as ye}from"./md5-CDR0X4F9.js";import{_ as Ye}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";import{h as Lt}from"./moment-B-YVwB4U.js";import{_ as vt}from"./index.vue_vue_type_script_setup_true_lang-CmisVeEC.js";import"./useCacheOssStore-CU4a8b24.js";const Ot=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],_e=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function kt(e){if(e<=255)return Ot[e];let t=0,n=_e.length-1;for(;t<=n;){const r=t+n>>1,x=_e[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function wt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const p=kt(F);(p==="R"||p==="AL"||p==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=p;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,p=F!=="L"?"R":"L";if(p===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=p;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function bt(e,t){const n=wt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,_t=/[\t\n\r\f]| {2,}|^ | $/;function Wt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Rt(e){if(!_t.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Tt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/[\r\f]/g,`
|
|
3
3
|
`):e}let pe=null,Pt;function It(){return pe===null&&(pe=new Intl.Segmenter(Pt,{granularity:"word"})),pe}const Ut=new RegExp("\\p{Script=Arabic}","u"),Fe=new RegExp("\\p{M}","u"),Xe=new RegExp("\\p{Nd}","u");function We(e){return Ut.test(e)}function Re(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function X(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){const r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){const x=(n-55296<<10)+(r-56320)+65536;if(Re(x))return!0;t++;continue}}if(Re(n))return!0}}return!1}function zt(e){const t=de(e);return t!==null&&(Le.has(t)||Z.has(t))}const $t=new Set([" "," ","","\uFEFF"]);function jt(e){return X(e)}function Vt(e){const t=de(e);return t!==null&&$t.has(t)}function Gt(e){return!zt(e)&&!Vt(e)}const Le=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),fe=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),ve=new Set(["'","’"]),Z=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Kt=new Set([":",".","،","؛"]),Ht=new Set(["၏"]),Jt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function qt(e){if(Oe(e))return!0;let t=!1;for(const n of e){if(Z.has(n)){t=!0;continue}if(!(t&&Fe.test(n)))return!1}return t}function Qt(e){for(const t of e)if(!Le.has(t)&&!Z.has(t))return!1;return e.length>0}function Yt(e){if(Oe(e))return!0;for(const t of e)if(!fe.has(t)&&!ve.has(t)&&!Fe.test(t))return!1;return e.length>0}function Oe(e){let t=!1;for(const n of e)if(!(n==="\\"||Fe.test(n))){if(fe.has(n)||Z.has(n)||ve.has(n)){t=!0;continue}return!1}return t}function Ze(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const r=e.charCodeAt(n);if(r<56320||r>57343)return n;const x=n-1;if(x<0)return n;const s=e.charCodeAt(x);return s>=55296&&s<=56319?x:n}function de(e){if(e.length===0)return null;const t=Ze(e,e.length);return e.slice(t)}function Xt(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(Fe.test(r)){n--;continue}if(fe.has(r)||ve.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function Zt(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Te(e,t,n,r){const x=t[r],s=e[r];if(x==null)return s;const i=n[r];if(s.length===i)return s;const a=x.repeat(i);return e[r]=a,a}function Pe(e,t){return e&&t!==null&&Kt.has(t)}function e0(e){const t=de(e);return t!==null&&Ht.has(t)}function t0(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function Be(e){let t=e.length;for(;t>0;){const n=Ze(e,t),r=e.slice(n,t);if(Jt.has(r))return!0;if(!Z.has(r))return!1;t=n}return!1}function n0(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
|
|
4
4
|
`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e===""||e==="\uFEFF"?"glue":e===""?"zero-width-break":e===""?"soft-hyphen":"text"}const s0=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function V(e){return e.length===1?e[0]:e.join("")}function x0(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),V(n)}function r0(e,t,n,r){if(!s0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const x=[];let s=null,i=[],a=n,u=!1,l=0;for(const o of e){const F=n0(o,r),c=F==="text"&&t;if(s!==null&&F===s&&c===u){i.push(o),l+=o.length;continue}s!==null&&x.push({text:V(i),isWordLike:u,kind:s,start:a}),s=F,i=[o],a=n+l,u=c,l+=o.length}return s!==null&&x.push({text:V(i),isWordLike:u,kind:s,start:a}),x}function Me(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const i0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function l0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:i0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function o0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function a0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!l0(e,i))continue;const a=[t[i]];let u=i+1;for(;u<e.len&&!Me(r[u]);){a.push(t[u]),n[i]=!0;const l=t[u].includes("?");if(r[u]="text",t[u]="",u++,l)break}t[i]=V(a)}let s=0;for(let i=0;i<t.length;i++){const a=t[i];a.length!==0&&(s!==i&&(t[s]=a,n[s]=n[i],r[s]=r[i],x[s]=x[i]),s++)}return t.length=s,n.length=s,r.length=s,x.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:x}}function u0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s]),!o0(i))continue;const a=s+1;if(a>=e.len||Me(e.kinds[a]))continue;const u=[],l=e.starts[a];let o=a;for(;o<e.len&&!Me(e.kinds[o]);)u.push(e.texts[o]),o++;u.length>0&&(t.push(V(u)),n.push(!0),r.push("text"),x.push(l),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}const c0=new Set([":","-","/","×",",",".","+","–","—"]),Ie=/^[A-Za-z0-9_]+[,:;]*$/,Ue=/[,:;]+$/;function et(e){for(const t of e)if(Xe.test(t))return!0;return!1}function ae(e){if(e.length===0)return!1;for(const t of e)if(!(Xe.test(t)||c0.has(t)))return!1;return!0}function F0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&ae(i)&&et(i)){const u=[i];let l=s+1;for(;l<e.len&&e.kinds[l]==="text"&&ae(e.texts[l]);)u.push(e.texts[l]),l++;t.push(V(u)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=l-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function f0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(i)){const l=[i];let o=Ue.test(i),F=s+1;for(;o&&F<e.len&&e.kinds[F]==="text"&&e.isWordLike[F]&&Ie.test(e.texts[F]);){const c=e.texts[F];l.push(c),o=Ue.test(c),F++}t.push(V(l)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=F-1;continue}t.push(i),n.push(u),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function d0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(e.kinds[s]==="text"&&i.includes("-")){const a=i.split("-");let u=a.length>1;for(let l=0;l<a.length;l++){const o=a[l];if(!u)break;(o.length===0||!et(o)||!ae(o))&&(u=!1)}if(u){let l=0;for(let o=0;o<a.length;o++){const F=a[o],c=o<a.length-1?`${F}-`:F;t.push(c),n.push(!0),r.push("text"),x.push(e.starts[s]+l),l+=c.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function N0(e){const t=[],n=[],r=[],x=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],l=e.starts[s];if(u==="glue"){const o=[i[0]],F=l;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=V(o);if(s<e.len&&e.kinds[s]==="text")i[0]=c,i.push(e.texts[s]),a=e.isWordLike[s],u="text",l=F,s++;else{t.push(c),n.push(!1),r.push("glue"),x.push(F);continue}}else s++;if(u==="text")for(;s<e.len&&e.kinds[s]==="glue";){const o=[];for(;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const F=V(o);if(s<e.len&&e.kinds[s]==="text"){i.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}i.push(F)}t.push(V(i)),n.push(a),r.push(u),x.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function S0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!X(t[s])||!X(t[s+1]))continue;const i=Xt(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],x[s+1]=x[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function ze(e,t,n){const r=It();let x=0;const s=[],i=[],a=[],u=[],l=[],o=[],F=[],c=[],p=[],m=[],S=[],d=[];for(const f of r.segment(e))for(const h of r0(f.segment,f.isWordLike??!1,f.index,n)){let M=function(){o[N]!==null&&(i[N]=[Te(s,o,F,N)],o[N]=null),i[N].push(h.text),a[N]=a[N]||h.isWordLike,c[N]=c[N]||D,p[N]=p[N]||y,m[N]=R,S[N]=G,d[N]=Pe(p[N],_)};const g=h.kind==="text",C=Zt(h.text,h.isWordLike,h.kind),D=X(h.text),y=We(h.text),_=de(h.text),R=Be(h.text),G=e0(h.text),N=x-1;t.carryCJKAfterClosingQuote&&g&&x>0&&u[N]==="text"&&D&&c[N]&&m[N]||g&&x>0&&u[N]==="text"&&Qt(h.text)&&c[N]||g&&x>0&&u[N]==="text"&&S[N]?M():g&&x>0&&u[N]==="text"&&h.isWordLike&&y&&d[N]?(M(),a[N]=!0):C!==null&&x>0&&u[N]==="text"&&o[N]===C?F[N]=(F[N]??1)+1:g&&!h.isWordLike&&x>0&&u[N]==="text"&&!c[N]&&(qt(h.text)||h.text==="-"&&a[N])?M():(s[x]=h.text,i[x]=[h.text],a[x]=h.isWordLike,u[x]=h.kind,l[x]=h.start,o[x]=C,F[x]=C===null?0:1,c[x]=D,p[x]=y,m[x]=R,S[x]=G,d[x]=Pe(y,_),x++)}for(let f=0;f<x;f++){if(o[f]!==null){s[f]=Te(s,o,F,f);continue}s[f]=V(i[f])}for(let f=1;f<x;f++)u[f]==="text"&&!a[f]&&Oe(s[f])&&u[f-1]==="text"&&!c[f-1]&&(s[f-1]+=s[f],a[f-1]=a[f-1]||a[f],s[f]="");const E=Array.from({length:x},()=>null);let L=-1;for(let f=x-1;f>=0;f--){const h=s[f];if(h.length!==0){if(u[f]==="text"&&!a[f]&&Yt(h)&&L>=0&&u[L]==="text"){const g=E[L]??[];g.push(h),E[L]=g,l[L]=l[f],s[f]="";continue}L=f}}for(let f=0;f<x;f++){const h=E[f];h!=null&&(s[f]=x0(h,s[f]))}let A=0;for(let f=0;f<x;f++){const h=s[f];h.length!==0&&(A!==f&&(s[A]=h,a[A]=a[f],u[A]=u[f],l[A]=l[f]),A++)}s.length=A,a.length=A,u.length=A,l.length=A;const O=N0({len:A,texts:s,isWordLike:a,kinds:u,starts:l}),v=S0(f0(d0(F0(u0(a0(O))))));for(let f=0;f<v.len-1;f++){const h=t0(v.texts[f]);h!==null&&(v.kinds[f]!=="space"&&v.kinds[f]!=="preserved-space"||v.kinds[f+1]!=="text"||!We(v.texts[f+1])||(v.texts[f]=h.space,v.isWordLike[f]=!1,v.kinds[f]=v.kinds[f]==="preserved-space"?"preserved-space":"space",v.texts[f+1]=h.marks+v.texts[f+1],v.starts[f+1]=v.starts[f]+h.space.length))}return v}function p0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let r=0;for(let x=0;x<e.len;x++)e.kinds[x]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:x,consumedEndSegmentIndex:x+1}),r=x+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function h0(e){if(e.len<=1)return e;const t=[],n=[],r=[],x=[];let s=null,i=!1,a=0,u=!1,l=!1;function o(){s!==null&&(t.push(V(s)),n.push(i),r.push("text"),x.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],p=e.kinds[F],m=e.isWordLike[F],S=e.starts[F];if(p==="text"){const d=jt(c),E=Gt(c);if(s!==null&&u&&l){s.push(c),i=i||m,u=u||d,l=E;continue}o(),s=[c],i=m,a=S,u=d,l=E;continue}o(),t.push(c),n.push(m),r.push(p),x.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function E0(e,t,n="normal",r="normal"){const x=Wt(n),s=x.mode==="pre-wrap"?Tt(e):Rt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?h0(ze(s,t,x)):ze(s,t,x);return{normalized:s,chunks:p0(i,x),...i}}let ne=null;const $e=new Map;let se=null;const A0=96,C0=new RegExp("\\p{Emoji_Presentation}","u"),m0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let he=null;const je=new Map;function ke(){if(ne!==null)return ne;if(typeof OffscreenCanvas<"u")return ne=new OffscreenCanvas(1,1).getContext("2d"),ne;if(typeof document<"u")return ne=document.createElement("canvas").getContext("2d"),ne;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function B0(e){let t=$e.get(e);return t||(t=new Map,$e.set(e,t)),t}function q(e,t){let n=t.get(e);return n===void 0&&(n={width:ke().measureText(e).width,containsCJK:X(e)},t.set(e,n)),n}function Ne(){if(se!==null)return se;if(typeof navigator>"u")return se={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},se;const e=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),r=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return se={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},se}function M0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function tt(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function g0(e){return C0.test(e)||e.includes("️")}function D0(e){return m0.test(e)}function L0(e,t){let n=je.get(e);if(n!==void 0)return n;const r=ke();r.font=e;const x=r.measureText("😀").width;if(n=0,x>t+.5&&typeof document<"u"&&document.body!==null){const s=document.createElement("span");s.style.font=e,s.style.display="inline-block",s.style.visibility="hidden",s.style.position="absolute",s.textContent="😀",document.body.appendChild(s);const i=s.getBoundingClientRect().width;document.body.removeChild(s),x-i>.5&&(n=x-i)}return je.set(e,n),n}function v0(e){let t=0;const n=tt();for(const r of n.segment(e))g0(r.segment)&&t++;return t}function O0(e,t){return t.emojiCount===void 0&&(t.emojiCount=v0(e)),t.emojiCount}function Q(e,t,n){return n===0?t.width:t.width-O0(e,t)*n}function k0(e,t,n,r,x){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===x)return t.breakableFitAdvances;t.breakableFitMode=x;const s=tt(),i=[];for(const o of s.segment(e))i.push(o.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(x==="sum-graphemes"){const o=[];for(const F of i){const c=q(F,n);o.push(Q(F,c,r))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(x==="pair-context"||i.length>A0){const o=[];let F=null,c=0;for(const p of i){const m=q(p,n),S=Q(p,m,r);if(F===null)o.push(S);else{const d=F+p,E=q(d,n);o.push(Q(d,E,r)-c)}F=p,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",l=0;for(const o of i){u+=o;const F=q(u,n),c=Q(u,F,r);a.push(c-l),l=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function w0(e,t){const n=ke();n.font=e;const r=B0(e),x=M0(e),s=t?L0(e,x):0;return{cache:r,fontSize:x,emojiCorrection:s}}function b0(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function nt(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function st(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!b0(r))break;t++}return t}function y0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function _0(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function we(e,t){return t===0?0:e+t}function W0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function R0(e,t,n,r,x){const s=t==="tab"?x+W0(e,n):e.lineEndFitAdvances[n];return we(r,s)}function Ve(e,t,n,r){const x=t==="tab"?0:e.lineEndFitAdvances[n];return we(r,x)}function Ge(e,t,n,r,x){const s=t==="tab"?x:e.lineEndPaintAdvances[n];return we(r,s)}function T0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function P0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function I0(e,t,n,r,x,s){let i=0,a=t;for(;i<e.length;){const u=a+e[i]+s;if((i+1<e.length?u+x:u)>n+r)break;a=u,i++}return{fitCount:i,fittedWidth:a}}function U0(e,t,n){const{widths:r,kinds:x,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Ne().lineFitEpsilon,u=t+a;let l=0,o=0,F=!1,c=0,p=0,m=0,S=0,d=-1,E=0;function L(){d=-1,E=0}function A(C=m,D=S,y=o){l++,n?.(y,c,p,C,D),o=0,F=!1,L()}function O(C,D){F=!0,c=C,p=0,m=C+1,S=0,o=D}function v(C,D,y){F=!0,c=C,p=D,m=C,S=D+1,o=y}function f(C,D){if(!F){O(C,D);return}o+=D,m=C+1,S=0}function h(C,D){const y=s[C];for(let _=D;_<y.length;_++){const R=y[_];F?o+R>u?(A(),v(C,_,R)):(o+=R,m=C,S=_+1):v(C,_,R)}F&&m===C&&S===y.length&&(m=C+1,S=0)}let g=0;for(;g<r.length&&!(!F&&(g=st(e,g),g>=r.length));){const C=r[g],D=x[g],y=nt(D);if(!F){C>u&&s[g]!==null?h(g,0):O(g,C),y&&(d=g+1,E=o-C),g++;continue}if(o+C>u){if(y){f(g,C),A(g+1,0,o-C),g++;continue}if(d>=0){if(m>d||m===d&&S>0){A();continue}A(d,0,E);continue}if(C>u&&s[g]!==null){A(),h(g,0),g++;continue}A();continue}f(g,C),y&&(d=g+1,E=o-C),g++}return F&&A(),l}function z0(e,t,n){if(e.simpleLineWalkFastPath)return U0(e,t,n);const{widths:r,kinds:x,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const u=Ne(),l=u.lineFitEpsilon,o=t+l;let F=0,c=0,p=!1,m=0,S=0,d=0,E=0,L=-1,A=0,O=0,v=null;function f(){L=-1,A=0,O=0,v=null}function h(N=d,M=E,B=c){F++,n?.(B,m,S,N,M),c=0,p=!1,f()}function g(N,M){p=!0,m=N,S=0,d=N+1,E=0,c=M}function C(N,M,B){p=!0,m=N,S=M,d=N,E=M+1,c=B}function D(N,M){if(!p){g(N,M);return}c+=M,d=N+1,E=0}function y(N,M,B,w,U,z){if(!M)return;const K=Ve(e,N,B,U),te=Ge(e,N,B,U,w);L=B+1,A=c-z+K,O=c-z+te,v=N}function _(N,M){const B=s[N];for(let w=M;w<B.length;w++){const U=B[w];if(!p)C(N,w,U);else{const z=T0(e,!0,U),K=c+z;P0(e,K)>o?(h(),C(N,w,U)):(c=K,d=N,E=w+1)}}p&&d===N&&E===B.length&&(d=N+1,E=0)}function R(N){if(v!=="soft-hyphen")return!1;const M=s[N];if(M==null)return!1;const{fitCount:B,fittedWidth:w}=I0(M,c,t,l,i,e.letterSpacing);return B===0?!1:(c=w,d=N,E=B,f(),B===M.length?(d=N+1,E=0,!0):(h(N,B,w+i),_(N,B),!0))}function G(N){F++,n?.(0,N.startSegmentIndex,0,N.consumedEndSegmentIndex,0),f()}for(let N=0;N<a.length;N++){const M=a[N];if(M.startSegmentIndex===M.endSegmentIndex){G(M);continue}p=!1,c=0,m=M.startSegmentIndex,S=0,d=M.startSegmentIndex,E=0,f();let B=M.startSegmentIndex;for(;B<M.endSegmentIndex&&!(!p&&(B=st(e,B,M.endSegmentIndex),B>=M.endSegmentIndex));){const w=x[B],U=nt(w),z=_0(e,p,B),K=w==="tab"?y0(c+z,e.tabStopAdvance):r[B],te=z+K,Se=R0(e,w,B,z,K);if(w==="soft-hyphen"){p&&(d=B+1,E=0,L=B+1,A=c+i,O=c+i,v=w),B++;continue}if(!p){Se>o&&s[B]!==null?_(B,0):g(B,K),y(w,U,B,K,z,te),B++;continue}if(c+Se>o){const rt=c+Ve(e,w,B,z),it=c+Ge(e,w,B,z,K);if(v==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&A<=o){h(L,0,O);continue}if(v==="soft-hyphen"&&R(B)){B++;continue}if(U&&rt<=o){D(B,te),h(B+1,0,it),B++;continue}if(L>=0&&A<=o){if(d>L||d===L&&E>0){h();continue}const be=L;h(be,0,O),B=be;continue}if(Se>o&&s[B]!==null){h(),_(B,0),B++;continue}h();continue}D(B,te),y(w,U,B,K,z,te),B++}if(p){const w=L===M.consumedEndSegmentIndex?O:c;h(M.consumedEndSegmentIndex,0,w)}}return F}let Ee=null,Ke=new WeakMap;function $0(){return Ee===null&&(Ee=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ee}function He(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const x=$0();for(const s of x.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function j0(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function Je(e,t,n,r){for(let x=n;x<r;x++)e+=t[x];return e}function V0(e){let t=Ke.get(e);return t!==void 0||(t=new Map,Ke.set(e,t)),t}function G0(e,t,n,r,x,s){let i="";const a=j0(e.kinds,n,r,x);for(let u=n;u<x;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&r>0){const l=He(u,e.segments,t);i=Je(i,l,r,l.length)}else i+=e.segments[u];if(s>0){a&&(i+="-");const u=He(x,e.segments,t);i=Je(i,u,n===x?r:0,s)}else a&&(i+="-");return i}let Ae=null;function K0(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function H0(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function J0(e,t){const n=[];let r=[],x=0,s=!1,i=!1,a=!1;function u(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:x}),r=[],s=!1,i=!1,a=!1)}function l(F,c,p){r=[F],x=c,s=p,i=Be(F),a=fe.has(F)}function o(F,c){r.push(F),s=s||c;const p=Be(F);F.length===1&&Z.has(F)?i=i||p:i=p,a=!1}for(const F of K0().segment(e)){const c=F.segment,p=X(c);if(r.length===0){l(c,F.index,p);continue}if(a||Le.has(c)||Z.has(c)||t.carryCJKAfterClosingQuote&&p&&i){o(c,p);continue}if(!s&&!p){o(c,p);continue}u(),l(c,F.index,p)}return u(),n}function q0(e,t,n){return e}function Q0(e,t,n,r,x){const s=Ne(),{cache:i,emojiCorrection:a}=w0(t,D0(e.normalized)),u=Q("-",q("-",i),a)+0,o=Q(" ",q(" ",i),a)*8;if(e.len===0)return H0();const F=[],c=[],p=[],m=[];let S=e.chunks.length<=1&&!0;const d=[],E=[],L=[],A=n?[]:null,O=Array.from({length:e.len});function v(C,D,y,_,R,G,N,M){R!=="text"&&R!=="space"&&R!=="zero-width-break"&&(S=!1),F.push(D),c.push(y),p.push(_),m.push(R),d?.push(G),E.push(N),A!==null&&A.push(C)}function f(C,D,y,_,R){const G=q(C,i),N=q0(Q(C,G,a)),M=D==="space"||D==="preserved-space"||D==="zero-width-break"?0:N,B=M===0?0:M+0,w=D==="space"||D==="zero-width-break"?0:N;if(R&&_&&C.length>1){let U="sum-graphemes";ae(C)?U="pair-context":s.preferPrefixWidthsForBreakableRuns&&(U="segment-prefixes");const z=k0(C,G,i,a,U);v(C,N,B,w,D,y,z);return}v(C,N,B,w,D,y,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const D=e.texts[C],y=e.isWordLike[C],_=e.kinds[C],R=e.starts[C];if(_==="soft-hyphen"){v(D,0,u,u,_,R,null);continue}if(_==="hard-break"){v(D,0,0,0,_,R,null);continue}if(_==="tab"){v(D,0,0,0,_,R,null);continue}const G=q(D,i);if(_==="text"&&G.containsCJK){const M=J0(D,s);for(let B=0;B<M.length;B++){const w=M[B];f(w.text,"text",R+w.start,y,!X(w.text))}continue}f(D,_,R,y,!0)}const h=Y0(e.chunks,O,F.length),g=d===null?null:bt(e.normalized,d);return A!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:p,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:E,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:h,segments:A}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:p,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:E,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:h}}function Y0(e,t,n){const r=[];for(let x=0;x<e.length;x++){const s=e[x],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,u=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:u})}return r}function X0(e,t,n,r){const x="normal",i=E0(e,Ne(),r?.whiteSpace,x);return Q0(i,t,n,x,0)}function Z0(e,t,n){return X0(e,t,!0,n)}function en(e,t,n,r,x,s,i){return{text:G0(e,t,r,x,s,i),width:n,start:{segmentIndex:r,graphemeIndex:x},end:{segmentIndex:s,graphemeIndex:i}}}function tn(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const x=V0(e),s=z0(e,t,(i,a,u,l,o)=>{r.push(en(e,x,i,a,u,l,o))});return{lineCount:s,height:s*n,lines:r}}const nn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},sn="14px Inter",xn=ee({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=J(()=>{if(!t.infoList||t.infoList.length===0)return 80;let r=0;for(const x of t.infoList){const s=Z0(x.label,sn),{lines:i}=tn(s,1e3,20);i.length>0&&(r=Math.max(r,i[0].width))}return Math.ceil(r+16)});return(r,x)=>{const s=ge;return j(),ie("div",null,[(j(!0),ie(St,null,pt(e.infoList,i=>(j(),ie("div",{key:i.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[W("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:ht({width:n.value+"px"})},$(i.label),5),W("span",nn,$(i.value||i.defaultValue),1),i.handlerText?(j(),Y(s,{key:0,link:"",type:"primary",onClick:a=>i.onHandler?.()},{default:T(()=>[oe($(i.handlerText),1)]),_:2},1032,["onClick"])):Et("",!0)]))),128))])}}});function rn(e){const n=new DOMParser().parseFromString(e,"text/xml");return{code:n.querySelector("Code")?.textContent||"",message:n.querySelector("Message")?.textContent||"",maxSize:n.querySelector("MaxSizeAllowed")?.textContent||"",proposedSize:n.querySelector("ProposedSize")?.textContent||""}}const ln={class:"p-2"},on={class:"flex gap-2 flex-1"},an={class:"flex gap-2 flex-1"},un=ee({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=re(),r=ue(),x={OLD:"old",NEW:"new"},s=I(!1),i=I({}),a=I({}),u=I({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=J(()=>[{type:"input",field:"email",title:n("user.oldEmail"),value:r?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(S,d,E)=>{Ce.isEmail(d)?E():E(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}},{type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]},{type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(S,d,E)=>{Ce.isEmail(d)?E():E(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}},{type:"slotAuthCodeNew",field:"newAuthCode",title:n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}]);async function o(){u.value.submitBtn.loading=!0,H.v1User.usercontrollerUpdateemail(a.value).then(()=>{P.success(n("user.emailModified")),r.setEmail(a.value.newEmail),m()}).finally(()=>{u.value.submitBtn.loading=!1})}function F(S,{end:d,startCountdown:E}){S===x.OLD?i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),E()})}).finally(()=>{d()}):S===x.NEW&&i.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),E()})}).finally(()=>{d()})}function c(S){return n(`formCreate.${S}`)}function p(){s.value=!0}function m(){s.value=!1}return t({open:p,close:m}),(S,d)=>{const E=Qe,L=le("form-create");return j(),Y(k(ce),{modelValue:s.value,"onUpdate:modelValue":d[4]||(d[4]=A=>s.value=A),"show-close":!0,width:"500px","destroy-on-close":!0},{default:T(()=>[W("div",ln,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=A=>a.value=A),api:i.value,"onUpdate:api":d[3]||(d[3]=A=>i.value=A),rule:l.value,option:u.value,t:c},{"type-slotAuthCodeOld":T(A=>[W("div",on,[b(E,{"model-value":String(A.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>A.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(me),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[0]||(d[0]=O=>F(x.OLD,O))},null,8,["text"])])]),"type-slotAuthCodeNew":T(A=>[W("div",an,[b(E,{"model-value":String(A.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:O=>A.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(me),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[1]||(d[1]=O=>F(x.NEW,O))},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),cn={class:"p-2"},Fn={class:"flex gap-2 flex-1"},fn=ee({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=re(),r=ue(),x=xe("baseForm"),s=I(!1),i=I({}),a=I({}),u=I({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=J(()=>[{type:"input",field:"newPassword",title:r.isPasswordSet?n("user.newPassword"):n("user.setPassword"),value:"",props:{placeholder:n("user.pleaseInputNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseInputNewPassword"),trigger:"blur"}]},{type:"input",field:"confirmNewPassword",title:r.isPasswordSet?n("user.confirmNewPassword"):n("user.confirmPassword"),value:"",props:{placeholder:n("user.pleaseConfirmNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseConfirmNewPassword"),trigger:"blur"}]},{type:"input",field:"email",title:n("user.email"),value:r?.userInfo?.email,props:{disabled:!0},validate:[{required:!0,message:n("user.pleaseInputEmail"),trigger:"blur"}]},{type:"slotAuthCode",field:"emailAuthCode",title:n("user.authCode"),value:""}]);async function o(){u.value.submitBtn.loading=!0;const S={newPassword:ye(a.value.newPassword),confirmNewPassword:ye(a.value.confirmNewPassword),email:a.value.email,emailAuthCode:a.value.emailAuthCode};H.v1User.usercontrollerChangepassword(S).then(()=>{P.success(n("user.passwordModified")),x.value?.resetFields(),r.setIsPasswordSet(!0),m()}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:d}){i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),d()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function p(){s.value=!0}function m(){s.value=!1}return t({open:p,close:m}),(S,d)=>{const E=Qe,L=le("form-create");return j(),Y(k(ce),{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=A=>s.value=A),"show-close":!0,width:"500px","destroy-on-close":!0},{default:T(()=>[W("div",cn,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=A=>a.value=A),api:i.value,"onUpdate:api":d[1]||(d[1]=A=>i.value=A),rule:l.value,option:u.value,t:c},{"type-slotAuthCode":T(A=>[W("div",Fn,[b(E,{"model-value":String(A.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>A.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(me),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:F},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),dn={class:"p-2"},Nn=ee({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=re(),r=ue(),x=De(),s=I(!1),i=I({onSubmit:()=>{l()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=I({}),u=J(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:r.userInfo.nickname,props:{placeholder:n("user.pleaseInputNickname")},validate:[{required:!0,message:n("user.pleaseInputNickname"),trigger:"blur"},{min:3,max:10,message:n("team.charLength",{min:2,max:10}),trigger:"blur"}]}]);async function l(){if(i.value.submitBtn.loading=!0,a.value.nickname===r.userInfo.nickname){P.success(n("message.success.update")),i.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{r.setNickname(a.value.nickname),x.updateNickname(a.value.nickname),P.success(n("message.success.update")),c()}).finally(()=>{i.value.submitBtn.loading=!1})}function o(p){return n(`formCreate.${p}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(p,m)=>{const S=le("form-create");return j(),Y(k(ce),{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=d=>s.value=d),width:"400px","destroy-on-close":!0},{default:T(()=>[W("div",dn,[b(S,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=d=>a.value=d),rule:u.value,option:i.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),Sn=ee({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=re(),n=e,r=Mt(),x=At(),s=Ct(),i=(S,d)=>{c.value.fileList&&(c.value.fileList=d),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},l={autoUpload:!1,cover:!1,onChange:i,onExceed:(S,d)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const E=S[0];E.uid=ot(),F.value.handleStart(E);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+d.length}))},beforeUpload:xt(),onError:a},o=I(null),F=I(),c=J(()=>({...l,...Ce.convertKeysToCamelCase(x),...n})),p=J(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function m(S){F.value=S,r&&(r.exposed=S||{},r.exposeProxy=S||{})}return(S,d)=>(j(),Y(mt(Bt(k(lt),{...c.value,ref:m},p.value))))}}),{i18n:pn}=dt,qe=e=>e.size/1024/1024>20?(P.error(pn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function xt(e={}){const{mode:t="extend",custom:n}=e;return r=>t==="override"&&n?n(r):t==="extend"?qe(r)?n?n(r):!0:!1:qe(r)}function hn(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),r=e.dir+e.key+"."+n,x=new FormData;return x.append("success_action_status","200"),x.append("policy",e.policy),x.append("x-oss-signature",e.signature),x.append("x-oss-signature-version",e.x_oss_signature_version),x.append("x-oss-credential",e.x_oss_credential),x.append("x-oss-date",e.x_oss_date),x.append("key",r),x.append("x-oss-security-token",e.security_token),x.append("Cache-Control","public, max-age=31536000"),x.append("file",t),{host:e.host,filePath:r,formData:x}}async function En(e,t){return fetch(e,{method:"POST",body:t})}const An=["src"],Cn=ee({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=re(),r=De(),x=I([]),s=I(!1),i=xe("avatarUpload"),a=I(),u=J(()=>({limit:1,cover:!0,onError:o,beforeUpload:l,showFileList:!1,httpRequest:m})),l=xt({custom(E){return E.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(E){a.value?.(),P.error(E.message)}async function F(E){if(E.start(),a.value=E.end,!x.value||x.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}i.value?.submit()}function c(E){H.v1User.usercontrollerChangeavatar({avatar:E}).then(()=>{r.updateAvatar(E),d(),P.success(n("user.avatarModified"))}).finally(()=>{a.value?.()})}function p(){i.value?.clearFiles()}async function m(E){const L=await H.v1Oss.osscontrollerCompossdir(),{imageDir:A}=L.data,O=await H.v1Oss.osscontrollerPutpolicy({type:A});if(O.code!==0||!O.data)return P.error(O.message);const{host:v,filePath:f,formData:h}=hn(O.data,E.file),g=await En(v,h);if(g.ok)c(f);else{const C=await g.text(),D=rn(C);P.error(D.message),a.value?.()}}function S(){s.value=!0}function d(){s.value=!1,p()}return t({open:S,close:d}),(E,L)=>{const A=le("Icon"),O=ut,v=ge,f=at;return j(),Y(k(ce),{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=h=>s.value=h),width:"400px","destroy-on-close":!0,onClose:p},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(Sn),gt({ref:"avatarUpload","file-list":x.value,"onUpdate:fileList":L[0]||(L[0]=h=>x.value=h),class:"size-[70px] border border-gray-300 rounded-sm flex justify-center items-center upload-container"},u.value),{default:T(({fileUrl:h})=>[h?(j(),ie("img",{key:0,src:h,class:"size-full"},null,8,An)):(j(),Y(A,{key:1,icon:"material-symbols:add-2-rounded","font-size":"2rem"}))]),_:1},16,["file-list"])]),_:1},8,["label"]),b(O,null,{default:T(()=>[b(k(Ye),null,{default:T(({instance:h,loading:g})=>[b(v,{type:"primary",loading:g,onClick:C=>F(h)},{default:T(()=>[oe($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),mn=Nt(Cn,[["__scopeId","data-v-fa6268ad"]]),Bn={class:"h-full p-[10px]"},Mn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},gn={class:"text-center flex flex-col items-center gap-2 h-[120px]"},Dn={class:"flex flex-col gap-10"},Ln={class:"flex items-center"},vn={class:"size-[48px] flex items-center justify-center"},On={class:"flex-1"},kn={class:"text-sm text-gray-500"},wn={class:"flex items-center"},bn={class:"size-[48px] flex items-center justify-center"},yn={class:"flex-1"},_n={class:"text-sm text-gray-500"},Hn=ee({__name:"index",setup(e){const{t}=re(),n=ue(),r=De(),x=J(()=>n.userInfo),s=xe("emailDialog"),i=xe("passwordDialog"),a=xe("nicknameDialog"),u=xe("avatarDialog"),l=F=>{if(!n.isPasswordSet){P.error(t("user.pleaseSetPasswordFirst"));return}F.start(),n.setAllowEmailLogin(!n.isAllowEmailLogin).then(()=>{P.success(n.isAllowEmailLogin?t("user.emailLoginEnabled"):t("user.emailLoginDisabled"))}).finally(()=>{F.end()})},o=J(()=>[{key:"account",label:t("user.account"),value:x.value?.account},{key:"nickname",label:t("user.nickname"),value:x.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:x.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:x.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:x.value?.createdAt?Lt(x.value.createdAt).format("YYYY-MM-DD"):"--"}]);return Dt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const p=ct,m=Ft,S=le("Icon"),d=ge,E=ft;return j(),ie("div",Bn,[W("div",Mn,[b(m,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[W("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[W("div",gn,[b(vt,{size:80,shape:"square",src:k(r).avatar,text:k(r).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=L=>u.value?.open())},{default:T(()=>[oe($(x.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),W("h3",null,$(x.value?.account),1)]),b(p),b(k(xn),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(m,{class:"col-start-2"},{header:T(()=>[W("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[W("div",Dn,[W("div",Ln,[W("div",vn,[b(S,{icon:"material-symbols:lock"})]),W("div",On,[W("h4",null,$(k(t)("user.loginPassword")),1),W("p",kn,$(k(t)("user.passwordTip")),1)]),b(d,{type:"primary",onClick:c[1]||(c[1]=L=>i.value?.open())},{default:T(()=>[oe($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),W("div",wn,[W("div",bn,[b(S,{icon:"material-symbols:mark-email-unread"})]),W("div",yn,[W("h4",null,$(k(t)("user.emailLogin")),1),W("p",_n,$(k(t)("user.emailLoginTip")),1)]),b(k(Ye),null,{default:T(({instance:L,loading:A})=>[b(E,{loading:A,"model-value":k(n).isAllowEmailLogin,onChange:O=>l(L)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(un,{ref:"emailDialog"},null,512),b(fn,{ref:"passwordDialog"},null,512),b(Nn,{ref:"nicknameDialog"},null,512),b(mn,{ref:"avatarDialog"},null,512)])}}});export{Hn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a0 as N,e as O,U as R,J as P,I as F,H as k,b as q}from"./vendor-ui-CmoKJ_4A.js";import{B as z,v as d}from"./index-BnpZ3Duk.js";import"./el-table-column-Cx9gMgrN.js";import{v as Q,aA as j,aD as J,a7 as K,ab as _,l as C,r as s,aO as l,_ as T,A,q as w,ap as g,ax as p,F as L,ah as W,j as G,i as X,af as x,g as t,ao as Z}from"./vendor-core-B-Si3WEf.js";import{b as ee}from"./index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js";import{h as B}from"./moment-B-YVwB4U.js";import{u as ae}from"./useTeamHeaders-DELMIzHt.js";import{_ as te}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";import"./index-DGdf8eP2.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";/* empty css */import"./useVscodeOpen-B7qurnVy.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import"./useCacheOssStore-CU4a8b24.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./useMessage-CNq7TVBk.js";const oe={class:"size-full"},ne={class:"text-gray-300"},Ce=Q({__name:"index",setup(le){const{t:a}=j(),D=J(),{headers:i,teamId:v}=ae(),f=ee(v)(),b=x([]),u=x({data:[],column:[{prop:"name",label:t(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:t(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:t(()=>a("comp.version")),align:"center"},{prop:"desc",label:t(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{prop:"createdAt",label:t(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?B(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:t(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?B(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:t(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:t(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:Z(q),label:t(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:t(()=>a("comp.keywordPlaceholder")),fetchSuggestions:E,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,fetchData:M}),I=t(()=>b.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function E(e,o){if(e.length<=1)return o([]);d.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:i}).then(c=>{const{keywords:r=[]}=c.data||{};o(r)})}async function M(e){const o=await d.v1Team.teamcontrollerTeamcomps({...e,scene:"management"},{headers:i}),{rows:c,total:r}=o.data||{};u.value.data=c||[],u.value.pagination.total=r||0}async function Y(e,o){o.start();try{if(await F.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await d.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:i}).then(()=>{k.success(a("message.success.delete")),u.value.data=u.value.data.filter(r=>r._id!==e._id),f.setTeamDetail({...f.teamDetail,compCount:f.teamDetail.compCount-1})})}finally{o.end()}}function V(e){D.push({path:`/previewTeam/${v}/${e._id}`})}function S(){d.v1Team.teamcontrollerAllmember({headers:i}).then(e=>{b.value=e.data?.rows||[]})}function $(e){const o={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};d.v1Team.teamcontrollerUpdatecompcanupdateusers(o,{headers:i}).then(()=>{k.success(a("message.success.update"))})}return K(()=>{S()}),(e,o)=>{const c=P,r=R,y=N,U=O;return _(),C("div",oe,[s(p(z),{tableConfig:u.value,border:""},{canUpdateUsers:l(({col:h})=>[s(y,T(A(h)),{default:l(({row:m})=>[s(r,{modelValue:m.canUpdateUsers,"onUpdate:modelValue":n=>m.canUpdateUsers=n,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:p(a)("team.selectCanUpdateUser"),onChange:n=>$(m)},{header:l(()=>[X("span",ne,g(p(a)("team.authorAutoAuth")),1)]),default:l(()=>[(_(!0),C(L,null,W(I.value,n=>(_(),G(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:1},16)]),operation:l(({col:h})=>[s(y,T(A(h)),{default:l(({row:m})=>[s(U,{type:"primary",onClick:n=>V(m)},{default:l(()=>[w(g(p(a)("common.preview")),1)]),_:1},8,["onClick"]),s(p(te),null,{default:l(({instance:n,loading:H})=>[s(U,{type:"danger",loading:H,onClick:re=>Y(m,n)},{default:l(()=>[w(g(p(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Ce as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aC as T,S as L,b}from"./vendor-ui-CmoKJ_4A.js";import{_ as a,B as P,v as c}from"./index-BnpZ3Duk.js";import{c as k,a as M}from"./index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js";import{_ as A}from"./index.vue_vue_type_style_index_0_lang-BygWE3Ob.js";import{c as U}from"./useCompEditStore-BaMFNGpl.js";import{v as x,aA as K,y as B,aC as Y,aD as F,ac as l,aF as _,a9 as N,aP as V,ax as i,ab as $,l as H,r as p,aO as E,af as z,g as m,ao as Q}from"./vendor-core-B-Si3WEf.js";import{u as q}from"./useKeyword-BMG9y3e4.js";import"./index-DGdf8eP2.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";/* empty css */import"./useVscodeOpen-B7qurnVy.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import"./useCacheOssStore-CU4a8b24.js";import"./useTeamHeaders-DELMIzHt.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./useMessage-CNq7TVBk.js";import"./v4-EwEgHOG0.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-vmUTBf-P.js";import"./core-DCZ-eL8G.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-CM6wkI5V.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";const G={class:"size-full p-[10px]"},he=x({__name:"index",setup(W){const{t:u}=K(),C=B()?.uid,d=Y(),g=F(),o=k(d.path)();l(a.PROVIDE_KEY_COMP_LIST_STORE,o);const h=U(d.path,a.DIALOG_TYPE_EDIT)();l(a.PROVIDE_KEY_COMP_EDIT_STORE,h);const f=new Map;l(a.PROVIDE_KEY_CALLBACKS,f);const y=_("compUpdateDialog"),v=_("compIframeContainer"),s=z({data:[],search:{column:[{prop:"keyword",component:Q(b),label:m(()=>u("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:m(()=>u("comp.keywordPlaceholder")),fetchSuggestions:I,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:S}),w=m(()=>s.value?.search?.column[0]?.value??"");q(w,v);function I(e,t){if(e.length<=1)return t([]);c.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compMy"}).then(r=>{const{keywords:n=[]}=r.data||{};t(n)})}async function S(e){o.setLoading(!0);const t=await c.v1Comp.compcontrollerMycomps(e),{rows:r,total:n}=t.data??{};o.renderList(r??[]),s.value.pagination.total=n??0,o.setLoading(!1)}function O(e){g.push({path:`/preview/${e}`})}async function R(e){y.value?.open(e)}function D(e){c.v1Comp.compcontrollerCompdetail({compId:e}).then(t=>{o.updateCompListItemById(e,t.data)})}return f.set(a.COMP_METHOD_KEY_AFTER_COMP_DEL,()=>{s.value.pagination.total--}),N(()=>{o.$reset()}),(e,t)=>{const r=L,n=T;return V(($(),H("div",G,[p(i(P),{tableConfig:s.value},{table:E(()=>[p(r,null,{default:E(()=>[p(M,{ref:"compIframeContainer",iuid:i(C),compType:i(a).IFRAME_ROUTES.CONTAINER.MINE,onPreview:O,onUpdate:R},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"]),p(A,{ref:"compUpdateDialog",onUpdateSuccess:D},null,512)])),[[n,i(o).loading]])}}});export{he as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aA as I,aC as k,S as x,b as D,U as P}from"./vendor-ui-CmoKJ_4A.js";import{A as U,_ as p,T as B,v as m,B as F,r as d}from"./index-BnpZ3Duk.js";import{c as G,a as K}from"./index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js";import{v as N,aA as $,y as M,aC as V,aD as z,ac as f,aF as H,af as J,g as r,ao as _,a9 as Q,aP as Y,ax as l,ab as q,l as W,r as u,aO as g}from"./vendor-core-B-Si3WEf.js";import{u as X}from"./useKeyword-BMG9y3e4.js";import"./index-DGdf8eP2.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";/* empty css */import"./useVscodeOpen-B7qurnVy.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import"./useCacheOssStore-CU4a8b24.js";import"./useTeamHeaders-DELMIzHt.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./useMessage-CNq7TVBk.js";const j={class:"size-full p-[10px]"},fe=N({__name:"index",setup(Z){const{t:n}=$(),v=M()?.uid,h=V(),w=z(),y=U(),t=G(h.path)();f(p.PROVIDE_KEY_COMP_LIST_STORE,t);const C=new Map;f(p.PROVIDE_KEY_CALLBACKS,C);const c=I(`${B}`,"XTTJ"),E=H("compIframeContainer"),S=r(()=>d.DEFAULT_TAG_GROUP.map(e=>({label:n(e.label),value:e.value}))),i=J({data:[],search:{column:[{prop:"keyword",component:_(D),label:r(()=>n("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:r(()=>n("comp.keywordPlaceholder")),fetchSuggestions:A,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}},{prop:"tag",component:_(P),label:r(()=>n("common.filter")),value:c.value,attributes:{options:S,style:"width: 200px",onChange:e=>c.value=e}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:L}),T=r(()=>i.value?.search?.column[0]?.value??"");X(T,E);function b(e){return e===d.DEFAULT_TAG_GROUP[0].value?JSON.stringify(y?.deps||[]):"[]"}function A(e,o){if(e.length<=1)return o([]);m.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compShare"}).then(s=>{const{keywords:a=[]}=s.data||{};o(a)})}async function L(e){t.setLoading(!0);const o={...e,deps:b(c.value)},s=await m.v1Comp.compcontrollerComps({...o}),{rows:a,total:O}=s.data??{};t.renderList(a??[]),i.value.pagination.total=O??0,i.value.data=a??[],t.setLoading(!1)}function R(e){w.push({path:`/preview/${e}`})}return Q(()=>{t.$reset()}),(e,o)=>{const s=x,a=k;return Y((q(),W("div",j,[u(l(F),{tableConfig:i.value},{table:g(()=>[u(s,{class:"flex-1"},{default:g(()=>[u(K,{ref:"compIframeContainer",iuid:l(v),compType:l(p).IFRAME_ROUTES.CONTAINER.SHARE,onPreview:R},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[a,l(t).loading]])}}});export{fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as t}from"./index-
|
|
1
|
+
import{m as t}from"./index-BnpZ3Duk.js";import{ab as s,l as o,i as r,ap as c}from"./vendor-core-B-Si3WEf.js";import"./vendor-ui-CmoKJ_4A.js";const a={},n={class:"size-full flex items-center justify-center"},i={class:"text-2xl font-bold"};function l(e,f){return s(),o("div",n,[r("div",i,c(e.$t("route.404")),1)])}const p=t(a,[["render",l]]);export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aC as S,b as R}from"./vendor-ui-CmoKJ_4A.js";import{_ as t,B as L,v as c}from"./index-BnpZ3Duk.js";import{v as A,aA as b,aD as k,aC as U,ac as p,aF as E,a9 as $,aP as x,ax as n,ab as K,l as Y,r as m,aO as B,y as F,af as N,g as l,ao as V}from"./vendor-core-B-Si3WEf.js";import{u as H}from"./useTeamHeaders-DELMIzHt.js";import{c as Q,a as q}from"./index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js";import{c as z}from"./useCompEditStore-BaMFNGpl.js";import{_ as G}from"./index.vue_vue_type_style_index_0_lang-BygWE3Ob.js";import{u as W}from"./useKeyword-BMG9y3e4.js";import"./index-DGdf8eP2.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";/* empty css */import"./useVscodeOpen-B7qurnVy.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import"./useCacheOssStore-CU4a8b24.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./useMessage-CNq7TVBk.js";/* empty css */import"./v4-EwEgHOG0.js";import"./index.vue_vue_type_style_index_0_lang-vmUTBf-P.js";import"./core-DCZ-eL8G.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-CM6wkI5V.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";const j={class:"size-full"},ye=A({__name:"index",setup(J){const{t:u}=b(),C=F(),h=k(),d=U(),{headers:_,teamId:g}=H(),o=Q(`${d.path}_${t.SCOPE_ID_TEAM_MY_COMP_LIST}`)();p(t.PROVIDE_KEY_COMP_LIST_STORE,o);const T=z(`${d.path}_${t.SCOPE_ID_TEAM_MY_COMP_UPDATE}`,t.DIALOG_TYPE_EDIT)();p(t.PROVIDE_KEY_COMP_EDIT_STORE,T);const f=new Map;p(t.PROVIDE_KEY_CALLBACKS,f);const y=E("compUpdateDialog"),I=E("compIframeContainer"),s=N({data:[],search:{column:[{prop:"keyword",component:V(R),label:l(()=>u("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:l(()=>u("comp.keywordPlaceholder")),fetchSuggestions:w,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,autoLoading:!1,fetchData:O}),v=l(()=>s.value?.search?.column[0]?.value??"");W(v,I);function w(e,a){if(e.length<=1)return a([]);c.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeamMy"},{headers:_}).then(r=>{const{keywords:i=[]}=r.data||{};a(i)})}async function O(e){o.setLoading(!0);const a=await c.v1Team.teamcontrollerMyteamcomps({...e},{headers:_}),{rows:r,total:i}=a.data??{};o.renderList(r??[]),s.value.pagination.total=i??0,o.setLoading(!1)}function D(e){h.push({path:`/previewTeam/${g}/${e}`})}async function M(e){y.value?.open(e)}function P(e){c.v1Comp.compcontrollerCompdetail({compId:e}).then(a=>{o.updateCompListItemById(e,a.data)})}return f.set(t.COMP_METHOD_KEY_AFTER_COMP_DEL,()=>{s.value.pagination.total--}),$(()=>{o.$reset()}),(e,a)=>{const r=S;return x((K(),Y("div",j,[m(n(L),{tableConfig:s.value,border:""},{table:B(()=>[m(q,{ref:"compIframeContainer",iuid:n(C)?.uid,compType:n(t).IFRAME_ROUTES.CONTAINER.TEAM_MINE,onPreview:D,onUpdate:M},null,8,["iuid","compType"])]),_:1},8,["tableConfig"]),m(G,{ref:"compUpdateDialog",onUpdateSuccess:P},null,512)])),[[r,n(o).loading]])}}});export{ye as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{U as me,J as ue,a1 as pe,D as de,I as F,H as ve,C as fe,a0 as _e,aA as ge,e as we,f as Ce,d as he,S as be}from"./vendor-ui-CmoKJ_4A.js";import{v as K,g as ye,s as B,B as Ve,_ as L,C as xe,A as Ee,E as De,k as Se}from"./index-BnpZ3Duk.js";import{_ as Te}from"./el-table-column-Cx9gMgrN.js";/* empty css */import{v as $,aB as ke,a7 as X,ab as p,l as D,r as a,aO as i,F as j,ah as Z,W as $e,af as E,j as S,aN as Be,i as k,g as c,ax as _,aA as q,aF as Ie,ai as Pe,q as O,ap as U,aC as ee,_ as z,A as H,ac as Ae,aD as Re,aM as Ne,aj as Me,k as G,Q as Fe,K as Le,al as Oe}from"./vendor-core-B-Si3WEf.js";import{_ as Ue}from"./index.vue_vue_type_style_index_0_lang-TY8hdvSG.js";/* empty css */import{_ as ze}from"./index.vue_vue_type_script_setup_true_lang-C5L_ugEm.js";import{_ as He}from"./index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js";import{u as Ke}from"./useTeamHeaders-DELMIzHt.js";import{B as je,_ as qe}from"./index.vue_vue_type_script_setup_true_lang-DRlqnxVM.js";import{c as We,p as Ye}from"./index-DGdf8eP2.js";import{_ as Je}from"./index.vue_vue_type_script_setup_true_lang-Y8sQYcwy.js";import{_ as Qe}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js";import{_ as Ge}from"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import"./vendor-xterm-DbWxaMay.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";import"./useVscodeOpen-B7qurnVy.js";import"./useCacheOssStore-CU4a8b24.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./useMessage-CNq7TVBk.js";import"./index.vue_vue_type_style_index_0_lang-vmUTBf-P.js";import"./core-DCZ-eL8G.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-CM6wkI5V.js";const Xe={class:"w-[100px]"},Ze=$({__name:"index",props:$e({id:{type:String,default:""},version:{type:String,default:""}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(w){const t=w,e=ke(w,"modelValue"),s=E([]),d=E(!1);function o(n){e.value=n}async function m(){if(d.value)return;const n=await K.v1Comp.compcontrollerVersions({compId:t.id});d.value=!0,s.value=n.data.rows.map(u=>({value:u.version,label:u.version}))}function C(){s.value=[{value:t.version,label:t.version}],e.value=t.version}return X(()=>{C()}),(n,u)=>{const v=ue,l=me;return p(),D("div",Xe,[a(l,{"model-value":e.value,onChange:o,onVisibleChange:m},{default:i(()=>[(p(!0),D(j,null,Z(s.value,g=>(p(),S(v,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])])}}}),eo={class:"size-full flex flex-col gap-5"},oo={class:"p-2"},ao={class:"flex flex-wrap gap-2"},to={class:"flex-1 border border-(--el-border-color-light) rounded-md overflow-hidden"},no=$({__name:"index",props:{compId:{},getCompDetail:{type:Function}},setup(w){const t=w,e=E(),s=c(()=>ye.handleDepData(e.value?.dep??[])),d=(o,m)=>`npm install ${o}@${m}`;return Be(async()=>{const o=await t.getCompDetail(t.compId);o&&(e.value=o)}),(o,m)=>{const C=pe;return p(),D("div",eo,[k("div",oo,[k("div",ao,[(p(!0),D(j,null,Z(s.value,n=>(p(),S(C,{key:n.name,type:"info","disable-transitions":!0},{default:i(()=>[a(_(Te),{class:"text-sm",text:d(n.name,n.version)},null,8,["text"])]),_:2},1024))),128))])]),k("div",to,[a(Ue)])])}}}),oe=$({__name:"index",props:{id:{type:String,default:""},name:{type:String,default:""},version:{type:String,default:""}},emits:["downloadSuccess"],setup(w,{emit:t}){const{t:e}=q(),s=w,d=t,o=Ie("dialogVueFinder");async function m(n){!n()||await F.confirm(e("comp.downloadVersionConfirm",{version:s.version}),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"||o.value?.open(C)}async function C(n){const u=de.service({lock:!0,text:e("comp.downloading")});try{if(await F.confirm(e("comp.downloadPathConfirm",{path:n.path}),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;const l=await B.v1Comp.compcontrollerDownload({compId:s.id,savePath:n.path,compName:s.name,version:s.version}),{isRepeat:g=!1}=l.data;if(g){if(await F.confirm(e("comp.downloadCoverConfirm",{name:s.name}),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"){u.close();return}await B.v1Comp.compcontrollerDownload({compId:s.id,savePath:n.path,compName:s.name,isCover:!0,version:s.version})}ve.success(e("message.success.download")),d("downloadSuccess"),o.value?.close()}finally{u.close()}}return(n,u)=>{const v=fe;return p(),D(j,null,[a(ze,null,{default:i(({isLogin:l})=>[Pe(n.$slots,"default",{downloadHandler:m,isLogin:l},()=>[a(v,{type:"primary",link:"",onClick:g=>m(l)},{default:i(()=>[O(U(_(e)("common.download")),1)]),_:1},8,["onClick"])])]),_:3}),a(He,{ref:"dialogVueFinder",onDownload:C},null,512)],64)}}}),so=$({__name:"index",props:{compName:{type:String,default:""}},setup(w){const{t}=q(),e=w,s=ee(),{compId:d}=s.params,o=E({data:[],column:[{prop:"prevVersion",label:c(()=>t("team.prevVersion")),align:"center"},{prop:"newVersion",label:c(()=>t("team.newVersion")),align:"center"},{prop:"upgradeDesc",label:c(()=>t("team.upgradeDesc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{slot:"operation",prop:"operation",label:c(()=>t("common.operation")),align:"center"}],pagination:{total:0},fixedHeight:!1,fetchData:C}),m=c(()=>({id:d,name:e.compName}));async function C(n){if(!d)return;const u=await K.v1Comp.compcontrollerUpgraderecords({compId:d,...n}),{rows:v,total:l}=u.data||{};o.value.data=v||[],o.value.pagination.total=l||0}return(n,u)=>{const v=_e;return p(),S(_(Ve),{tableConfig:o.value,border:"",stripe:""},{operation:i(({col:l})=>[a(v,z(H(l)),{default:i(({row:g})=>[a(oe,z(H({version:g.newVersion,...m.value})),null,16)]),_:1},16)]),_:1},8,["tableConfig"])}}}),lo={class:"size-full p-[10px]"},ro={key:0,class:"h-[50vh]"},io={class:"flex-1"},co={class:"mt-2"},Ro=$({__name:"index",props:{isTeamPreview:{type:Boolean,default:!1}},setup(w){const{t}=q(),e=w,s=ee(),d=s.query[L.ROUTE_STATE_KEY_VERSION]!==void 0,{compId:o}=s.params,m=c(()=>[{label:t("common.doc"),value:"doc",component:qe,visible:()=>!0},{label:t("common.upgradeRecord"),value:"upgradeRecord",component:so,visible:()=>!0}]),C=new Map;Ae(L.PROVIDE_KEY_CALLBACKS,C);const n=Re(),{teamId:u}=Ke(),v=E(!1),l=ge(xe,m.value[0]?.value),g=Ee(),I=De(),x=We(o)(),h=E(x.latestVersion),W=E(!1),r=c(()=>x.detail[h.value]),ae=c(()=>r.value?.desc??""),te=c(()=>Object.keys(r.value??{}).length>0),Y=c(()=>x.versionToFileAccessPath[h.value]??[]),ne=c(()=>Y.value.length?m.value.find(f=>f.value===l.value)?.component:void 0),se=c(()=>l.value==="doc"?{mdSrc:le.value,compDesc:ae.value,scrollContainer:".preview-container"}:l.value==="upgradeRecord"?{compName:r.value?.name||""}:{}),le=c(()=>Y.value.find(b=>b.path.endsWith(`/${L.COMP_README_FILENAME}`))?.signedUrl??"");async function J(){if(await g.initSetting(),!o)throw new Error("compId is required");const b=await K.v1Comp.compcontrollerCompdetail({compId:o,version:h.value}),{objectId:f,version:V,files:T,dep:P}=b.data,A={objectId:f,version:V,files:T.map(M=>M.path)},R=await B.v1Comp.compcontrollerCompfilesosssignedurl(A),y=Ye(P,g.deps).map(M=>M.name),N=await B.v1Module.modulecontrollerPrebuild({deps:y}),{entryNameToFile:Q={}}=N.data;x.setDepEntryNameToFile(V,Q),x.setVersionToFileAccessPath(V,R.data.signedUrls),x.setDetail(V,{...b.data,_id:o}),h.value||(x.setLatestVersion(V),h.value=V)}function re(){return Promise.resolve(r.value)}function ie(){e.isTeamPreview?I.addPayLoad(`/previewTeam/${u}/${o}`,{name:r.value?.name??""}):I.addPayLoad(`/preview/${o}`,{name:r.value?.name??""})}function ce(){const{href:b}=n.resolve({name:"previewBlank",params:{compId:o,version:h.value}});window.open(b,"_blank")}return Ne(h,async b=>{b!==r.value?.version&&await J()}),X(async()=>{(!te.value||d)&&await J(),ie(),W.value=!0}),(b,f)=>{const V=Me("Icon"),T=we,P=Ce,A=he,R=be;return p(),D("div",lo,[a(R,{"wrap-class":"preview-container",class:"size-full pr-[10px]"},{default:i(()=>[W.value?(p(),D("div",ro,[a(_(je),{title:r.value?.name,actions:["maximize"]},{beforeActions:i(()=>[a(T,{type:"primary",circle:"",title:_(t)("common.openInNewPage"),onClick:ce},{default:i(()=>[a(V,{icon:"material-symbols:screen-share-rounded"})]),_:1},8,["title"])]),default:i(()=>[a(Je,{compAttrs:r.value,version:h.value},null,8,["compAttrs","version"])]),_:1},8,["title"])])):G("",!0),a(P,{"body-class":"!p-0 flex items-center gap-1",class:"sticky top-0 mt-1 w-full z-10"},{default:i(()=>[k("div",io,[a(_(Qe),{modelValue:_(l),"onUpdate:modelValue":f[0]||(f[0]=y=>Fe(l)?l.value=y:null),options:m.value},null,8,["modelValue","options"])]),a(T,{color:"#414141",onClick:f[1]||(f[1]=y=>v.value=!0)},{default:i(()=>[O(U(_(t)("common.terminal")),1)]),_:1}),a(Ze,{id:r.value?._id,modelValue:h.value,"onUpdate:modelValue":f[2]||(f[2]=y=>h.value=y),version:r.value?.version},null,8,["id","modelValue","version"]),a(oe,{id:r.value?._id,name:r.value?.name,version:r.value?.version},{default:i(({downloadHandler:y,isLogin:N})=>[a(T,{type:"primary",onClick:Q=>y(N)},{default:i(()=>[O(U(_(t)("common.download")),1)]),_:1},8,["onClick"])]),_:1},8,["id","name","version"])]),_:1}),k("div",co,[a(_(Se),null,{default:i(()=>[(p(),S(Le,null,[(p(),S(Oe(ne.value),z(H(se.value)),null,16))],1024))]),_:1})]),a(A,{right:100,bottom:100,target:".preview-container"})]),_:1}),a(_(Ge),{modelValue:v.value,"onUpdate:modelValue":f[3]||(f[3]=y=>v.value=y),title:_(t)("common.depInstall"),width:"70%",top:"5vh","destroy-on-close":""},{default:i(()=>[r.value?._id?(p(),S(no,{key:0,class:"h-[70vh]",compId:r.value?._id,getCompDetail:re},null,8,["compId"])):G("",!0)]),_:1},8,["modelValue","title"])])}}});export{Ro as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aw as S,_ as V,aB as L,v as b,u as v,t as C,C as j,e as N}from"./vendor-ui-CmoKJ_4A.js";import{f as O,u as T,M as U,x as z}from"./index-BnpZ3Duk.js";/* empty css *//* empty css */import{ab as m,j as h,ax as e,v as f,l as I,r as t,Q as P,aA as k,aO as s,i as _,ap as u,q as d,g as x,aD as $,af as A,aj as q}from"./vendor-core-B-Si3WEf.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang-CmisVeEC.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang-qhJpeu7a.js";import{S as R}from"./index-IUKgsvZv.js";import{u as F}from"./useVscodeOpen-B7qurnVy.js";import{I as E}from"./index-CMvx8gm3.js";import"./useCacheOssStore-CU4a8b24.js";const K='<path class="enk28pe8k"/>',Q={__name:"sunny-rounded",props:["width","height"],setup(l){const o={width:24,height:24};return(n,i)=>(m(),h(e(E),{width:l.width,height:l.height,viewBox:o,content:K,fallback:"material-symbols:sunny-rounded"},null,8,["width","height"]))}},Y='<path class="o17qx8_el"/>',H={__name:"moon-stars-rounded",props:["width","height"],setup(l){const o={width:24,height:24};return(n,i)=>(m(),h(e(E),{width:l.width,height:l.height,viewBox:o,content:Y,fallback:"material-symbols:moon-stars-rounded"},null,8,["width","height"]))}},J=f({__name:"ThemeSwitch",setup(l){const o=S(),n=L(o);return(i,r)=>(m(),I("div",null,[t(e(V),{modelValue:e(o),"onUpdate:modelValue":r[0]||(r[0]=a=>P(o)?o.value=a:null),"inline-prompt":"","active-icon":e(H),"inactive-icon":e(Q),onChange:r[1]||(r[1]=a=>e(n)(a))},null,8,["modelValue","active-icon","inactive-icon"])]))}}),W={class:"flex items-center cursor-pointer"},X={class:"mx-1"},Z=f({__name:"I18nDropdown",setup(l){const{locale:o}=k(),n=x(()=>o.value),i=x(()=>n.value==="zh"?"简体中文":"English"),r=a=>{o.value=a,localStorage.setItem(T.LOCALE_KEY,a)};return(a,c)=>(m(),h(e(C),{trigger:"click",onCommand:r},{dropdown:s(()=>[t(e(b),null,{default:s(()=>[t(e(v),{command:"zh",disabled:n.value==="zh"},{default:s(()=>[...c[0]||(c[0]=[d(" 简体中文 ",-1)])]),_:1},8,["disabled"]),t(e(v),{command:"en",disabled:n.value==="en"},{default:s(()=>[...c[1]||(c[1]=[d(" English ",-1)])]),_:1},8,["disabled"])]),_:1})]),default:s(()=>[_("span",W,[_("span",X,u(i.value),1),t(e(O),{icon:"material-symbols:keyboard-arrow-down-rounded"})])]),_:1}))}}),ee={class:"flex items-center outline-none cursor-pointer gap-2"},te={class:"truncate"},oe=f({__name:"index",setup(l){const{t:o}=k(),n=U(),i=$(),r=a=>{a==="logout"?n.logout():a==="info"&&i.push({name:"userInfo"})};return(a,c)=>{const p=v,g=b,w=C;return m(),h(w,{onCommand:r},{dropdown:s(()=>[t(g,null,{default:s(()=>[t(p,{command:"info"},{default:s(()=>[d(u(e(o)("user.userInfo")),1)]),_:1}),t(p,{command:"logout"},{default:s(()=>[d(u(e(o)("user.logout")),1)]),_:1})]),_:1})]),default:s(()=>[_("div",ee,[_("span",te,u(e(n).displayName),1),t(G,{size:32,src:e(n).avatar,text:e(n).avatarStr},null,8,["src","text"])])]),_:1})}}}),ne={class:"h-full px-[20px] flex items-center relative justify-between gap-10"},ae={class:"flex items-center gap-10 flex-1"},we=f({__name:"index",setup(l){const o=$(),{t:n}=k(),{openCompPathInVscode:i,handlePath:r}=F(),a=z(),c=A(window.__GLOBAL_CONFIG__.cwd),p=x(()=>r(c.value));function g(){i(c.value,"./package.json")}function w(){o.push({name:"upload"})}return(se,re)=>{const y=j,B=q("Icon"),D=N;return m(),I("div",ne,[_("div",ae,[t(M,{logoClass:"h-[30px]"}),t(R),t(y,{href:e(a),type:"primary",underline:"always",target:"_blank",class:"truncate"},{default:s(()=>[d(u(e(n)("common.docsTutorial")),1)]),_:1},8,["href"]),t(y,{href:"javascript:void(0)",type:"primary",underline:"always",title:c.value,class:"truncate",onClick:g},{default:s(()=>[d(u(p.value),1)]),_:1},8,["title"]),t(D,{class:"ml-auto",round:"",type:"primary",onClick:w},{default:s(()=>[t(B,{icon:"material-symbols:upload",height:22}),d(" "+u(e(n)("route.upload")),1)]),_:1}),t(e(J)),t(e(Z))]),t(oe)])}}});export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aA as k,aw as w,H as c}from"./vendor-ui-CmoKJ_4A.js";import{S as x,d as L,_ as u,q as y,y as D,G as R}from"./index-BnpZ3Duk.js";import{v as N,aA as S,aC as B,af as o,a7 as G,aj as I,ab as f,l as z,j as T,X as V,k as $,g as d,Y as b}from"./vendor-core-B-Si3WEf.js";const j={class:"size-full"},Y=N({__name:"index",emits:["select"],setup(q,{emit:v}){const{locale:m,t:l}=S(),h={zh:"zhCN",en:"en"},_=d(()=>h[m.value]),t=o(null),n=o(!0),p=B(),r=k(`${x}_${p.path}`,""),g=v,E=w(),F=`${D()}/api/v1/vuefinder`,P=new L({baseURL:F,url:{list:"/list"}}),i=o(r.value||u.FILE_MANAGER_DIRNAME),A=d(()=>({selectionMode:"single",driver:P,features:{search:!1,upload:!1,delete:!1,rename:!1,preview:!1,edit:!1,archive:!1,unarchive:!1,newfile:!1,newfolder:!1,fullscreen:!1,download:!1,language:!0,move:!1,copy:!1,history:!1,theme:!1,pinned:!1},contextMenuItems:[...R,{id:"select-folder",title:()=>l("file.select"),action:(a,e)=>{if(e.length>1){c.error(l("file.multiSelect"));return}const{type:s="dir"}=e[0];if(s!=="dir"){c.error(l("file.onlyDir"));return}g("select",e[0])},show:(a,e)=>{const{target:s,items:M}=e;return M.length>1?!1:s?.type==="dir"}}],config:{initialPath:i.value,theme:E.value?"valorite":"silver"}}));function C(a){r.value=a,!a&&t.value&&(n.value=!1,b(()=>{n.value=!0,i.value=u.FILE_MANAGER_DIRNAME,t.value?.refresh()}))}return G(()=>{t.value=y("vueFinder")}),(a,e)=>{const s=I("VueFinder");return f(),z("div",j,[n.value?(f(),T(s,V({key:0,id:"vueFinder",locale:_.value},A.value,{onPathChange:C}),null,16,["locale"])):$("",!0)])}}});export{Y as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D4mf-9oL.js","assets/vendor-ui-CmoKJ_4A.js","assets/vendor-core-B-Si3WEf.js","assets/index-BnpZ3Duk.js","assets/index-JFePecD_.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as Q,_ as g,c as Z,s as E,l as W,v as ee}from"./index-BnpZ3Duk.js";import{e as te,aA as L,Y as oe,w as ae,X as se,D as ne,I as le,H as U}from"./vendor-ui-CmoKJ_4A.js";/* empty css */import{u as re,c as ce,C as ie,_ as me}from"./useCompEditStore-BaMFNGpl.js";import{v as z,aA as X,aj as j,ab as v,j as b,aO as n,i as m,r as a,ax as p,ap as C,l as A,F as pe,ah as de,q as V,af as F,aD as ue,aC as _e,ac as fe,aF as M,a9 as Ee,Q as ve,u as he,g as ye,Y as B}from"./vendor-core-B-Si3WEf.js";import{_ as ge}from"./index.vue_vue_type_script_setup_true_lang-C5L_ugEm.js";import{_ as Ce}from"./index.vue_vue_type_style_index_0_lang-vmUTBf-P.js";import{_ as Te}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";import{_ as Se}from"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import{u as xe}from"./useTeamHeaders-DELMIzHt.js";/* empty css *//* empty css */import"./index-DGdf8eP2.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./v4-EwEgHOG0.js";import"./useMessage-CNq7TVBk.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-CM6wkI5V.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js";import"./core-DCZ-eL8G.js";const Pe={class:"flex flex-col items-center"},we={class:"flex-1 overflow-hidden"},Ie={class:"text-center"},Re={class:"text-blue-600 hover:text-blue-800 hover:underline cursor-pointer transition-colors"},De={class:"flex justify-end gap-[10px]"},Oe=z({__name:"index",setup(Y,{expose:D}){const{t:l}=X(),u=F(!1),T=F([]);let r;const{src:S}=re("COMP_REPEAT.md");function e(c,_){T.value=c,u.value=!0,r=_}function x(){u.value=!1}function P(c){c.start(),r?.({end:c.end})}return D({open:e,close:x}),(c,_)=>{const w=j("router-link"),I=te;return v(),b(p(Se),{modelValue:u.value,"onUpdate:modelValue":_[0]||(_[0]=i=>u.value=i),title:"",width:"660px"},{footer:n(()=>[m("div",De,[a(I,{onClick:x},{default:n(()=>[V(C(p(l)("common.cancel")),1)]),_:1}),a(p(Te),null,{default:n(({instance:i,loading:h})=>[a(I,{loading:h,type:"primary",onClick:$=>P(i)},{default:n(()=>[V(C(p(l)("comp.uploadAnyway")),1)]),_:1},8,["loading","onClick"])]),_:1})])]),default:n(()=>[m("div",Pe,[m("div",we,[a(Ce,{src:p(S)},null,8,["src"])]),m("div",Ie,[m("span",null,C(p(l)("comp.similar"))+":",1),(v(!0),A(pe,null,de(T.value,i=>(v(),b(w,{key:i._id,class:"inline-block ml-[5px] mr-[5px]",to:`/similarPreview/${i._id}`,target:"_blank"},{default:n(()=>[m("span",Re,C(i.name),1)]),_:2},1032,["to"]))),128))])])]),_:1},8,["modelValue"])}}}),ke={class:"size-full p-[10px]"},be={class:"overflow-hidden size-full"},Ae={key:0,class:"cursor-not-allowed bg-gray-100 dark:bg-gray-800 absolute inset-0 flex items-center justify-center"},Fe={class:"text-gray-500"},tt=z({__name:"index",setup(Y){const D=he(()=>W(()=>import("./index-D4mf-9oL.js"),__vite__mapDeps([0,1,2,3,4]))),{t:l}=X(),u=ue(),T=_e(),{teamId:r}=xe(),S=L(Q,!1),e=ce(T.path,g.DIALOG_TYPE_ADD)();fe(g.PROVIDE_KEY_COMP_EDIT_STORE,e);const x=M("dialogPutTreaty"),P=M("dialogCompRepeat"),c=L(Z,330),_=F(""),w=ye(()=>e.selectedFolder?.path);async function I(t){const o=await E.v1Comp.compcontrollerDir({compPath:t}),{tree:s,files:d}=o.data;e.setOriginalDirectory(s),e.setOriginalDirectoryList(d);const f=s?.children||[];if(f?.length){const R=f.find(J=>J.name===g.COMP_CONFIG_FILENAME);if(!R)return"NOT_EXIST";const y=await E.v1Comp.compcontrollerFile({filePath:R.path}),{content:O}=y.data,k=JSON.parse(O).__id__;if(!k)return"NOT_EXIST";const G=await ee.v1Comp.compcontrollerCheckcompexistbyid({compId:k}),{exist:K}=G.data;if(K)return _.value=k,"EXIST"}return"NOT_EXIST"}const i=async(t,o)=>{if(o()){if(e.$reset(),!S.value){x.value?.open(s=>{s&&(S.value=!0,h(t))});return}h(t)}};async function h(t){const o=ne.service({fullscreen:!0}),s=await I(t.path);if(s==="NOT_EXIST"){const d=await E.v1Comp.compcontrollerDep({compPath:t.path}),{thirdParty:f}=d.data;e.setSelectedFolder(t),B(()=>{e.initPreviewCompList(),e.setCompDep(f),o.close()})}else s==="EXIST"&&le.confirm(l("comp.compAlreadyUploaded"),l("common.warning"),{confirmButtonText:l("common.confirm"),cancelButtonText:l("common.cancel"),type:"warning"}).catch(()=>{}).finally(()=>{o.close()})}async function $({end:t}){try{const o=e.getCompSubmitParams(),s=await E.v1Comp.compcontrollerCheckcomprepeat({compPath:w.value,...r?{teamId:r}:{}}),{similarList:d=[]}=s.data;if(d.length){P.value?.open(d,H),t();return}await E.v1Comp.compcontrollerSubmit({...o,...r?{teamId:r}:{}}),U.success(l("message.success.upload")),await N(),e.$reset()}catch(o){console.error("上传失败:",o)}finally{t()}}function H({end:t}){const o=e.getCompSubmitParams();E.v1Comp.compcontrollerSubmit({...o,...r?{teamId:r}:{}}).then(async()=>{P.value?.close(),await N(),e.$reset(),U.success(l("message.success.upload"))}).finally(()=>{t()})}async function N(){r?await u.push({name:"team",params:{teamId:r},query:{[g.ROUTE_STATE_KEY_VERSION]:Date.now()}}):await u.push({name:"mine",query:{[g.ROUTE_STATE_KEY_VERSION]:Date.now()}})}async function q(){const t=e.selectedFolder;e.$reset(),await B(),h(t)}return Ee(()=>{e.$reset()}),(t,o)=>{const s=oe,d=j("Icon"),f=ae,R=se;return v(),A("div",ke,[a(R,null,{default:n(()=>[a(s,{size:p(c),"onUpdate:size":o[0]||(o[0]=y=>ve(c)?c.value=y:null),collapsible:"",max:"40%"},{default:n(()=>[m("div",be,[a(ge,null,{default:n(({isLogin:y})=>[a(p(D),{onSelect:O=>i(O,y)},null,8,["onSelect"])]),_:1})])]),_:1},8,["size"]),a(s,{class:"size-full rounded-sm relative"},{default:n(()=>[w.value?(v(),b(ie,{key:1,onConfirmUpload:$,onReload:q})):(v(),A("div",Ae,[a(f,null,{image:n(()=>[m("div",null,[a(d,{icon:"material-symbols:folder-info"})])]),description:n(()=>[m("span",Fe,C(p(l)("comp.pleaseSelectFolderFirst")),1)]),_:1})]))]),_:1})]),_:1}),a(me,{ref:"dialogPutTreaty"},null,512),a(Oe,{ref:"dialogCompRepeat"},null,512)])}}});export{tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as T}from"./vendor-core-B-Si3WEf.js";import{p,_ as s}from"./index-
|
|
1
|
+
import{w as T}from"./vendor-core-B-Si3WEf.js";import{p,_ as s}from"./index-BnpZ3Duk.js";const P=(a="")=>{if(!a)throw new Error("createCompMetaStore scopeId is required");return T(`compMeta_${a}`,{state:()=>({detail:{},depEntryNameToFile:{},versionToFileAccessPath:{},localCompInfo:[],latestVersion:""}),getters:{isLocalExist:e=>e.localCompInfo.length!==0,latestVersionToFileAccessPath:e=>e.versionToFileAccessPath[e.latestVersion]??[]},actions:{setLatestVersion(e){this.$patch(t=>{t.latestVersion=e})},setLocalCompInfo(e){this.$patch(t=>{t.localCompInfo=e})},setDetail(e,t){this.$patch(r=>{r.detail[e]={...r.detail[e],...t}})},setDepEntryNameToFile(e,t){this.$patch(r=>{r.depEntryNameToFile[e]=t})},setVersionToFileAccessPath(e,t){this.$patch(r=>{r.versionToFileAccessPath[e]=t})}}})};function E(a,e){return a.filter(t=>{const r=e.find(l=>l.name===t.name||l.name===t.parent?.name);if(!r)return!1;const{match:h}=r,{major:o,minor:n,patch:m}=p.parseVersion(t.version),{major:i,minor:c,patch:_}=p.parseVersion(r.version);switch(h){case s.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case s.COMP_MATCH_TYPE_MAJOR_VERSION:return o===i;case s.COMP_MATCH_TYPE_MINOR_VERSION:return o===i&&n===c;case s.COMP_MATCH_TYPE_EXACT_VERSION:return o===i&&n===c&&m===_}})}export{P as c,E as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as re,P as le,aE as Z,ab as I,x as q,f as ee,e as te,U as ce,y as ne,K as ie,J as de}from"./vendor-ui-D6wVBlls.js";import{_ as x,m as ue,A as me,D as fe,s as K,h as _e,k as pe}from"./index-Cf69_nzt.js";/* empty css */import{v as M,aA as C,aB as he,ab as h,j as w,aO as u,r as m,ax as c,i as l,q as y,ap as f,a7 as ve,aN as be,l as N,F as W,ah as Y,af as E,w as ge,a0 as xe,Q as ye,K as we,al as De,g as T}from"./vendor-core-B-Si3WEf.js";import{_ as Ee}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-D5yw_wF0.js";const Ie=M({__name:"RadioMatch",props:{modelValue:{default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const{t:e}=C(),n=he(t,"modelValue");function s(r){n.value=String(r??"")}return(r,o)=>{const a=le,d=re;return h(),w(d,{"model-value":n.value,class:"flex flex-wrap gap-2",onChange:s},{default:u(()=>[m(a,{value:c(x).COMP_MATCH_TYPE_ONLY_INSTALL,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[0]||(o[0]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-green-500 shadow-[0_0_4px_rgba(103,194,58,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.onlyInstall")),1)]),_:1},8,["value"]),m(a,{value:c(x).COMP_MATCH_TYPE_MAJOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[1]||(o[1]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-blue-500 shadow-[0_0_4px_rgba(64,158,255,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.majorVersion")),1)]),_:1},8,["value"]),m(a,{value:c(x).COMP_MATCH_TYPE_MINOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[2]||(o[2]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-orange-500 shadow-[0_0_4px_rgba(230,162,60,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.minorVersion")),1)]),_:1},8,["value"]),m(a,{value:c(x).COMP_MATCH_TYPE_EXACT_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[3]||(o[3]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-red-500 shadow-[0_0_4px_rgba(245,108,108,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.exactVersion")),1)]),_:1},8,["value"])]),_:1},8,["model-value"])}}}),B=ue(Ie,[["__scopeId","data-v-f57509b3"]]),Be={class:"flex gap-2"},Me={class:"text-xl font-medium"},Ce={class:"flex items-center gap-[10px] mb-[15px] pb-[10px] border-b border-solid border-gray-200"},Ve={class:"text-[14px] font-medium"},Se={class:"border-b border-solid border-gray-300"},Te={class:"flex"},Ae={class:"w-[100px]"},Pe={class:"text-xl font-medium"},Ne={class:"flex items-center gap-[10px] mb-[15px] pb-[10px] border-b border-solid border-gray-200"},Le={class:"text-[14px] font-medium"},ke={class:"border-b border-solid border-gray-300"},Oe={class:"flex"},Re={class:"w-[100px]"},je=M({__name:"index",setup(t){const{t:e}=C(),n=me(),s=Z(fe,{dependencies:[],devDependencies:[]}),r=E([]),o=E([]),a=E(""),d=E("");function i(){r.value.forEach(v=>{v.match=a.value})}function _(){o.value.forEach(v=>{v.match=d.value})}return ve(async()=>{r.value=I(n.dependencies),o.value=I(n.devDependencies)}),be(()=>{r.value.length&&n.setDependencies(I(r.value)),o.value.length&&n.setDevDependencies(I(o.value)),s.value={dependencies:r.value.length?r.value:s.value.dependencies,devDependencies:o.value.length?o.value:s.value.devDependencies}}),(v,b)=>{const F=te,$=ne,z=ee,U=q,se=ce;return h(),w(se,{"wrap-class":"size-full"},{default:u(()=>[l("div",Be,[m(U,{"label-position":"left","label-width":"auto"},{default:u(()=>[m(z,{class:"rounded-sm"},{default:u(()=>[l("h1",Me,f(c(e)("deps.dependencies")),1),l("div",Ce,[l("span",Ve,f(c(e)("deps.batchSetting"))+":",1),m(c(B),{modelValue:a.value,"onUpdate:modelValue":b[0]||(b[0]=p=>a.value=p)},null,8,["modelValue"]),m(F,{type:"primary",size:"small",onClick:i},{default:u(()=>[y(f(c(e)("common.apply")),1)]),_:1})]),(h(!0),N(W,null,Y(r.value,p=>(h(),w($,{key:p.name,class:"!mb-10"},{label:u(()=>[l("div",Se,[l("span",null,f(p.name),1)])]),default:u(()=>[l("div",Te,[l("span",Ae,f(p.version),1)]),l("div",null,[m(c(B),{modelValue:p.match,"onUpdate:modelValue":S=>p.match=S},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1024))),128))]),_:1})]),_:1}),m(U,{"label-position":"left","label-width":"auto"},{default:u(()=>[m(z,{class:"rounded-sm"},{default:u(()=>[l("h1",Pe,f(c(e)("deps.devDependencies")),1),l("div",Ne,[l("span",Le,f(c(e)("deps.batchSetting"))+":",1),m(c(B),{modelValue:d.value,"onUpdate:modelValue":b[1]||(b[1]=p=>d.value=p)},null,8,["modelValue"]),m(F,{type:"primary",size:"small",onClick:_},{default:u(()=>[y(f(c(e)("common.apply")),1)]),_:1})]),(h(!0),N(W,null,Y(o.value,p=>(h(),w($,{key:p.name,class:"!mb-10"},{label:u(()=>[l("div",ke,[l("span",null,f(p.name),1)])]),default:u(()=>[l("div",Oe,[l("span",Re,f(p.version),1)]),l("div",null,[m(c(B),{modelValue:p.match,"onUpdate:modelValue":S=>p.match=S},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1024))),128))]),_:1})]),_:1})])]),_:1})}}}),L=(t,e)=>e.some(n=>t instanceof n);let H,X;function Fe(){return H||(H=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $e(){return X||(X=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const k=new WeakMap,A=new WeakMap,V=new WeakMap;function ze(t){const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(D(t.result)),r()},a=()=>{s(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",a)});return V.set(e,t),e}function Ue(t){if(k.has(t))return;const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),r()},a=()=>{s(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});k.set(t,e)}let O={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return k.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return D(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function oe(t){O=t(O)}function Ke(t){return $e().includes(t)?function(...e){return t.apply(R(this),e),D(this.request)}:function(...e){return D(t.apply(R(this),e))}}function We(t){return typeof t=="function"?Ke(t):(t instanceof IDBTransaction&&Ue(t),L(t,Fe())?new Proxy(t,O):t)}function D(t){if(t instanceof IDBRequest)return ze(t);if(A.has(t))return A.get(t);const e=We(t);return e!==t&&(A.set(t,e),V.set(e,t)),e}const R=t=>V.get(t);function Ye(t,e,{blocked:n,upgrade:s,blocking:r,terminated:o}={}){const a=indexedDB.open(t,e),d=D(a);return s&&a.addEventListener("upgradeneeded",i=>{s(D(a.result),i.oldVersion,i.newVersion,D(a.transaction),i)}),n&&a.addEventListener("blocked",i=>n(i.oldVersion,i.newVersion,i)),d.then(i=>{o&&i.addEventListener("close",()=>o()),r&&i.addEventListener("versionchange",_=>r(_.oldVersion,_.newVersion,_))}).catch(()=>{}),d}const He=["get","getKey","getAll","getAllKeys","count"],Xe=["put","add","delete","clear"],P=new Map;function G(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(P.get(e))return P.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,r=Xe.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(r||He.includes(n)))return;const o=async function(a,...d){const i=this.transaction(a,r?"readwrite":"readonly");let _=i.store;return s&&(_=_.index(d.shift())),(await Promise.all([_[n](...d),r&&i.done]))[0]};return P.set(e,o),o}oe(t=>({...t,get:(e,n,s)=>G(e,n)||t.get(e,n,s),has:(e,n)=>!!G(e,n)||t.has(e,n)}));const Ge=["continue","continuePrimaryKey","advance"],J={},j=new WeakMap,ae=new WeakMap,Je={get(t,e){if(!Ge.includes(e))return t[e];let n=J[e];return n||(n=J[e]=function(...s){j.set(this,ae.get(this)[e](...s))}),n}};async function*Qe(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Je);for(ae.set(n,e),V.set(n,R(e));e;)yield n,e=await(j.get(n)||e.continue()),j.delete(n)}function Q(t,e){return e===Symbol.asyncIterator&&L(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&L(t,[IDBIndex,IDBObjectStore])}oe(t=>({...t,get(e,n,s){return Q(e,n)?Qe:t.get(e,n,s)},has(e,n){return Q(e,n)||t.has(e,n)}}));let g=null;const Ze=ge("indexedDB",{actions:{async open(t=1){return g||(g=await Ye(x.INDEX_DB_NAME,t,{upgrade(e){e.objectStoreNames.contains(x.INDEX_DB_TABLE_NAME)||e.createObjectStore(x.INDEX_DB_TABLE_NAME,{keyPath:"hash",autoIncrement:!1}).createIndex("by-hash","hash")},blocked(){console.warn("IndexedDB 被其它标签页占用")}}),g)},async get(t,e){return(await this.open()).get(t,e)},async put(t,e){return(await this.open()).put(t,e)},async remove(t,e){return(await this.open()).delete(t,e)},close(){g?.close(),g=null},async deleteDatabase(){if(g){const t=g.name;this.close(),indexedDB.deleteDatabase(t)}}}}),qe={class:"flex items-center"},et={class:"ml-2"},tt=M({__name:"index",setup(t){const{t:e}=C(),n=Ze(),s=E("");async function r(){try{if(!navigator.storage||!navigator.storage.estimate)throw new Error(e("message.error.storageNotSupported"));return await navigator.storage.estimate()}catch(d){return console.error("获取存储统计失败:",d.message),null}}function o(){ie.confirm(e("common.clearCacheConfirm"),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning",beforeClose:async(d,i,_)=>{d==="confirm"&&(i.confirmButtonLoading=!0,await K.v1Module.modulecontrollerClearprebuild(),await n.deleteDatabase(),i.confirmButtonLoading=!1,await a(),de.success(e("common.cacheCleared"))),_()}}).catch(()=>{})}async function a(){const d=await r(),i=await K.v1Module.modulecontrollerPrebuildsize(),{size:_=0}=i.data??{},{usage:v=0}=d??{},b=(v+_)/(1024*1024);s.value=`${b.toFixed(2)} MB`}return xe(async()=>{await a()}),(d,i)=>{const _=te,v=ne,b=q;return h(),w(b,null,{default:u(()=>[m(v,{label:c(e)("common.cache")+":"},{default:u(()=>[l("div",qe,[m(_,{onClick:o},{default:u(()=>[y(f(c(e)("common.clearCache")),1)]),_:1}),l("span",et,f(c(e)("common.cacheSize"))+":"+f(s.value),1)])]),_:1},8,["label"])]),_:1})}}}),nt={class:"size-full overflow-hidden flex flex-col rounded-sm"},ot={class:"flex-1 overflow-auto overflow-x-hidden p-1"},it=M({__name:"index",setup(t){const{t:e}=C(),n=Z(_e,"previewRule"),s=[{label:T(()=>e("setting.previewRule")),value:"previewRule",component:je},{label:T(()=>e("setting.other")),value:"otherSetting",component:tt}],r=T(()=>s.find(a=>a.value===n.value)?.component||{render:()=>null});return(o,a)=>{const d=ee;return h(),N("div",nt,[m(d,{"body-class":"!p-0",class:"sticky top-0 w-full"},{default:u(()=>[m(c(Ee),{modelValue:c(n),"onUpdate:modelValue":a[0]||(a[0]=i=>ye(n)?n.value=i:null),options:s},null,8,["modelValue"])]),_:1}),l("div",ot,[m(c(pe),null,{default:u(()=>[(h(),w(we,null,[(h(),w(De(r.value)))],1024))]),_:1})])])}}});export{it as default};
|
|
1
|
+
import{P as re,N as le,aA as Z,a7 as I,x as q,f as ee,e as te,S as ce,y as ne,I as ie,H as de}from"./vendor-ui-CmoKJ_4A.js";import{_ as x,m as ue,A as me,D as fe,s as H,h as _e,k as pe}from"./index-BnpZ3Duk.js";/* empty css */import{v as M,aA as C,aB as he,ab as h,j as w,aO as u,r as m,ax as c,i as l,q as y,ap as f,a7 as ve,aN as be,l as N,F as K,ah as W,af as E,w as ge,a0 as xe,Q as ye,K as we,al as De,g as A}from"./vendor-core-B-Si3WEf.js";import{_ as Ee}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js";const Ie=M({__name:"RadioMatch",props:{modelValue:{default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const{t:e}=C(),n=he(t,"modelValue");function s(r){n.value=String(r??"")}return(r,o)=>{const a=le,d=re;return h(),w(d,{"model-value":n.value,class:"flex flex-wrap gap-2",onChange:s},{default:u(()=>[m(a,{value:c(x).COMP_MATCH_TYPE_ONLY_INSTALL,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[0]||(o[0]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-green-500 shadow-[0_0_4px_rgba(103,194,58,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.onlyInstall")),1)]),_:1},8,["value"]),m(a,{value:c(x).COMP_MATCH_TYPE_MAJOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[1]||(o[1]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-blue-500 shadow-[0_0_4px_rgba(64,158,255,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.majorVersion")),1)]),_:1},8,["value"]),m(a,{value:c(x).COMP_MATCH_TYPE_MINOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[2]||(o[2]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-orange-500 shadow-[0_0_4px_rgba(230,162,60,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.minorVersion")),1)]),_:1},8,["value"]),m(a,{value:c(x).COMP_MATCH_TYPE_EXACT_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:u(()=>[o[3]||(o[3]=l("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-red-500 shadow-[0_0_4px_rgba(245,108,108,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.exactVersion")),1)]),_:1},8,["value"])]),_:1},8,["model-value"])}}}),B=ue(Ie,[["__scopeId","data-v-6d4a0cf5"]]),Be={class:"flex gap-2"},Me={class:"text-xl font-medium"},Ce={class:"flex items-center gap-[10px] mb-[15px] pb-[10px] border-b border-solid border-gray-200"},Ve={class:"text-[14px] font-medium"},Se={class:"border-b border-solid border-gray-300"},Ae={class:"flex"},Te={class:"w-[100px]"},Pe={class:"text-xl font-medium"},Ne={class:"flex items-center gap-[10px] mb-[15px] pb-[10px] border-b border-solid border-gray-200"},Le={class:"text-[14px] font-medium"},ke={class:"border-b border-solid border-gray-300"},Oe={class:"flex"},Re={class:"w-[100px]"},je=M({__name:"index",setup(t){const{t:e}=C(),n=me(),s=Z(fe,{dependencies:[],devDependencies:[]}),r=E([]),o=E([]),a=E(""),d=E("");function i(){r.value.forEach(v=>{v.match=a.value})}function _(){o.value.forEach(v=>{v.match=d.value})}return ve(async()=>{r.value=I(n.dependencies),o.value=I(n.devDependencies)}),be(()=>{r.value.length&&n.setDependencies(I(r.value)),o.value.length&&n.setDevDependencies(I(o.value)),s.value={dependencies:r.value.length?r.value:s.value.dependencies,devDependencies:o.value.length?o.value:s.value.devDependencies}}),(v,b)=>{const F=te,$=ne,z=ee,U=q,se=ce;return h(),w(se,{"wrap-class":"size-full"},{default:u(()=>[l("div",Be,[m(U,{"label-position":"left","label-width":"auto"},{default:u(()=>[m(z,{class:"rounded-sm"},{default:u(()=>[l("h1",Me,f(c(e)("deps.dependencies")),1),l("div",Ce,[l("span",Ve,f(c(e)("deps.batchSetting"))+":",1),m(c(B),{modelValue:a.value,"onUpdate:modelValue":b[0]||(b[0]=p=>a.value=p)},null,8,["modelValue"]),m(F,{type:"primary",size:"small",onClick:i},{default:u(()=>[y(f(c(e)("common.apply")),1)]),_:1})]),(h(!0),N(K,null,W(r.value,p=>(h(),w($,{key:p.name,class:"!mb-10"},{label:u(()=>[l("div",Se,[l("span",null,f(p.name),1)])]),default:u(()=>[l("div",Ae,[l("span",Te,f(p.version),1)]),l("div",null,[m(c(B),{modelValue:p.match,"onUpdate:modelValue":S=>p.match=S},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1024))),128))]),_:1})]),_:1}),m(U,{"label-position":"left","label-width":"auto"},{default:u(()=>[m(z,{class:"rounded-sm"},{default:u(()=>[l("h1",Pe,f(c(e)("deps.devDependencies")),1),l("div",Ne,[l("span",Le,f(c(e)("deps.batchSetting"))+":",1),m(c(B),{modelValue:d.value,"onUpdate:modelValue":b[1]||(b[1]=p=>d.value=p)},null,8,["modelValue"]),m(F,{type:"primary",size:"small",onClick:_},{default:u(()=>[y(f(c(e)("common.apply")),1)]),_:1})]),(h(!0),N(K,null,W(o.value,p=>(h(),w($,{key:p.name,class:"!mb-10"},{label:u(()=>[l("div",ke,[l("span",null,f(p.name),1)])]),default:u(()=>[l("div",Oe,[l("span",Re,f(p.version),1)]),l("div",null,[m(c(B),{modelValue:p.match,"onUpdate:modelValue":S=>p.match=S},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1024))),128))]),_:1})]),_:1})])]),_:1})}}}),L=(t,e)=>e.some(n=>t instanceof n);let Y,X;function Fe(){return Y||(Y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $e(){return X||(X=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const k=new WeakMap,T=new WeakMap,V=new WeakMap;function ze(t){const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(D(t.result)),r()},a=()=>{s(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",a)});return V.set(e,t),e}function Ue(t){if(k.has(t))return;const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),r()},a=()=>{s(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});k.set(t,e)}let O={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return k.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return D(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function oe(t){O=t(O)}function He(t){return $e().includes(t)?function(...e){return t.apply(R(this),e),D(this.request)}:function(...e){return D(t.apply(R(this),e))}}function Ke(t){return typeof t=="function"?He(t):(t instanceof IDBTransaction&&Ue(t),L(t,Fe())?new Proxy(t,O):t)}function D(t){if(t instanceof IDBRequest)return ze(t);if(T.has(t))return T.get(t);const e=Ke(t);return e!==t&&(T.set(t,e),V.set(e,t)),e}const R=t=>V.get(t);function We(t,e,{blocked:n,upgrade:s,blocking:r,terminated:o}={}){const a=indexedDB.open(t,e),d=D(a);return s&&a.addEventListener("upgradeneeded",i=>{s(D(a.result),i.oldVersion,i.newVersion,D(a.transaction),i)}),n&&a.addEventListener("blocked",i=>n(i.oldVersion,i.newVersion,i)),d.then(i=>{o&&i.addEventListener("close",()=>o()),r&&i.addEventListener("versionchange",_=>r(_.oldVersion,_.newVersion,_))}).catch(()=>{}),d}const Ye=["get","getKey","getAll","getAllKeys","count"],Xe=["put","add","delete","clear"],P=new Map;function G(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(P.get(e))return P.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,r=Xe.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(r||Ye.includes(n)))return;const o=async function(a,...d){const i=this.transaction(a,r?"readwrite":"readonly");let _=i.store;return s&&(_=_.index(d.shift())),(await Promise.all([_[n](...d),r&&i.done]))[0]};return P.set(e,o),o}oe(t=>({...t,get:(e,n,s)=>G(e,n)||t.get(e,n,s),has:(e,n)=>!!G(e,n)||t.has(e,n)}));const Ge=["continue","continuePrimaryKey","advance"],J={},j=new WeakMap,ae=new WeakMap,Je={get(t,e){if(!Ge.includes(e))return t[e];let n=J[e];return n||(n=J[e]=function(...s){j.set(this,ae.get(this)[e](...s))}),n}};async function*Qe(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Je);for(ae.set(n,e),V.set(n,R(e));e;)yield n,e=await(j.get(n)||e.continue()),j.delete(n)}function Q(t,e){return e===Symbol.asyncIterator&&L(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&L(t,[IDBIndex,IDBObjectStore])}oe(t=>({...t,get(e,n,s){return Q(e,n)?Qe:t.get(e,n,s)},has(e,n){return Q(e,n)||t.has(e,n)}}));let g=null;const Ze=ge("indexedDB",{actions:{async open(t=1){return g||(g=await We(x.INDEX_DB_NAME,t,{upgrade(e){e.objectStoreNames.contains(x.INDEX_DB_TABLE_NAME)||e.createObjectStore(x.INDEX_DB_TABLE_NAME,{keyPath:"hash",autoIncrement:!1}).createIndex("by-hash","hash")},blocked(){console.warn("IndexedDB 被其它标签页占用")}}),g)},async get(t,e){return(await this.open()).get(t,e)},async put(t,e){return(await this.open()).put(t,e)},async remove(t,e){return(await this.open()).delete(t,e)},close(){g?.close(),g=null},async deleteDatabase(){if(g){const t=g.name;this.close(),indexedDB.deleteDatabase(t)}}}}),qe={class:"flex items-center"},et={class:"ml-2"},tt=M({__name:"index",setup(t){const{t:e}=C(),n=Ze(),s=E("");async function r(){try{if(!navigator.storage||!navigator.storage.estimate)throw new Error(e("message.error.storageNotSupported"));return await navigator.storage.estimate()}catch(d){return console.error("获取存储统计失败:",d.message),null}}function o(){ie.confirm(e("common.clearCacheConfirm"),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning",beforeClose:async(d,i,_)=>{d==="confirm"&&(i.confirmButtonLoading=!0,await H.v1Module.modulecontrollerClearprebuild(),await n.deleteDatabase(),i.confirmButtonLoading=!1,await a(),de.success(e("common.cacheCleared"))),_()}}).catch(()=>{})}async function a(){const d=await r(),i=await H.v1Module.modulecontrollerPrebuildsize(),{size:_=0}=i.data??{},{usage:v=0}=d??{},b=(v+_)/(1024*1024);s.value=`${b.toFixed(2)} MB`}return xe(async()=>{await a()}),(d,i)=>{const _=te,v=ne,b=q;return h(),w(b,null,{default:u(()=>[m(v,{label:c(e)("common.cache")+":"},{default:u(()=>[l("div",qe,[m(_,{onClick:o},{default:u(()=>[y(f(c(e)("common.clearCache")),1)]),_:1}),l("span",et,f(c(e)("common.cacheSize"))+":"+f(s.value),1)])]),_:1},8,["label"])]),_:1})}}}),nt={class:"size-full overflow-hidden flex flex-col rounded-sm"},ot={class:"flex-1 overflow-auto overflow-x-hidden p-1"},it=M({__name:"index",setup(t){const{t:e}=C(),n=Z(_e,"previewRule"),s=[{label:A(()=>e("setting.previewRule")),value:"previewRule",component:je},{label:A(()=>e("setting.other")),value:"otherSetting",component:tt}],r=A(()=>s.find(a=>a.value===n.value)?.component||{render:()=>null});return(o,a)=>{const d=ee;return h(),N("div",nt,[m(d,{"body-class":"!p-0",class:"sticky top-0 w-full"},{default:u(()=>[m(c(Ee),{modelValue:c(n),"onUpdate:modelValue":a[0]||(a[0]=i=>ye(n)?n.value=i:null),options:s},null,8,["modelValue"])]),_:1}),l("div",ot,[m(c(pe),null,{default:u(()=>[(h(),w(we,null,[(h(),w(De(r.value)))],1024))]),_:1})])])}}});export{it as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as D,aC as S,ac as b,a7 as h,ab as k,l as x,r as m,aO as M,ax as l,k as P,af as I,g as N}from"./vendor-core-B-Si3WEf.js";import{c as V,p as B}from"./index-
|
|
1
|
+
import{v as D,aC as S,ac as b,a7 as h,ab as k,l as x,r as m,aO as M,ax as l,k as P,af as I,g as N}from"./vendor-core-B-Si3WEf.js";import{c as V,p as B}from"./index-DGdf8eP2.js";import{A as F,_ as L,v as R,s as d}from"./index-BnpZ3Duk.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_lang-Y8sQYcwy.js";import{_ as z}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./vendor-ui-CmoKJ_4A.js";/* empty css */import"./useMessage-CNq7TVBk.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-CM6wkI5V.js";const K={key:0,class:"size-full"},W=D({__name:"index",setup(O){const u=S(),i=F(),f=new Map;b(L.PROVIDE_KEY_CALLBACKS,f);const{compId:e,version:s=""}=u.params,n=I(!1),t=V(e)(),c=N(()=>t.detail[s]);async function _(){if(await i.initSetting(),!e)throw new Error("compId is required");const a=await R.v1Comp.compcontrollerCompdetail({compId:e,version:s}),{objectId:p,version:o,files:v,dep:C}=a.data,w={objectId:p,version:o,files:v.map(r=>r.path)},E=await d.v1Comp.compcontrollerCompfilesosssignedurl(w),g=B(C,i.deps).map(r=>r.name),y=await d.v1Module.modulecontrollerPrebuild({deps:g}),{entryNameToFile:A={}}=y.data;t.setDetail(o,{...a.data,_id:e}),t.setDepEntryNameToFile(o,A),t.setVersionToFileAccessPath(o,E.data.signedUrls)}return h(async()=>{await _(),n.value=!0}),(a,p)=>n.value?(k(),x("div",K,[m(l(z),{isEmpty:!c.value,class:"size-full"},{default:M(()=>[m(T,{compAttrs:c.value,version:l(s)},null,8,["compAttrs","version"])]),_:1},8,["isEmpty"])])):P("",!0)}});export{W as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as a}from"./vendor-ui-CmoKJ_4A.js";import"./index-BnpZ3Duk.js";import{_ as s}from"./index.vue_vue_type_style_index_0_lang-vmUTBf-P.js";import{v as c,aC as n,ab as l,j as m,aO as u,r as i,g as p}from"./vendor-core-B-Si3WEf.js";import"./core-DCZ-eL8G.js";const h=c({__name:"index",setup(_){const o=n(),t=p(()=>{const{markdownSrc:r}=o.query;return r||""});return(r,f)=>{const e=a;return l(),m(e,{"wrap-class":"md-container",class:"size-full w-[1300px] mx-auto"},{default:u(()=>[i(s,{src:t.value,"show-toc":!0,scrollContainer:".md-container"},null,8,["src"])]),_:1})}}});export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aC as L,S as O,b}from"./vendor-ui-CmoKJ_4A.js";import{_ as r,B as I,v as u}from"./index-BnpZ3Duk.js";import{c as R,a as T}from"./index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js";import{v as S,aA as k,y as P,aC as A,aD as x,ac as d,aF as M,a9 as B,aP as D,ax as n,ab as K,l as F,r as c,aO as f,af as N,g as l,ao as z}from"./vendor-core-B-Si3WEf.js";import{u as V}from"./useKeyword-BMG9y3e4.js";import"./index-DGdf8eP2.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";/* empty css */import"./useVscodeOpen-B7qurnVy.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js";import"./useCacheOssStore-CU4a8b24.js";import"./useTeamHeaders-DELMIzHt.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js";import"./useMessage-CNq7TVBk.js";const Y={class:"size-full p-[10px]"},se=S({__name:"index",setup($){const{t:p}=k(),_=P()?.uid,C=A(),h=x(),o=R(C.path)();d(r.PROVIDE_KEY_COMP_LIST_STORE,o);const m=new Map;d(r.PROVIDE_KEY_CALLBACKS,m);const y=M("compIframeContainer"),i=N({data:[],search:{column:[{prop:"keyword",component:z(b),label:l(()=>p("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:l(()=>p("comp.keywordPlaceholder")),fetchSuggestions:w,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:E}),g=l(()=>i.value?.search?.column[0]?.value??"");V(g,y);function w(e,t){if(e.length<=1)return t([]);u.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compMyCollect"}).then(a=>{const{keywords:s=[]}=a.data||{};t(s)})}async function E(e){o.setLoading(!0);const t=await u.v1Comp.compcontrollerCollectedcomps(e),{rows:a,total:s}=t.data??{};o.renderList(a??[]),i.value.pagination.total=s??0,o.setLoading(!1)}function v(e){h.push({path:`/preview/${e}`})}return m.set(r.COMP_METHOD_KEY_AFTER_COMP_CANCEL_COLLECT,e=>{o.delCompListById(e)}),B(()=>{o.$reset()}),(e,t)=>{const a=O,s=L;return D((K(),F("div",Y,[c(n(I),{tableConfig:i.value},{table:f(()=>[c(a,{class:"size-full"},{default:f(()=>[c(T,{ref:"compIframeContainer",iuid:n(_),compType:n(r).IFRAME_ROUTES.CONTAINER.COLLECT,onPreview:v},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[s,n(o).loading]])}}});export{se as default};
|