comp-hub 0.42.7 → 0.42.8

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.
Files changed (95) hide show
  1. package/dist/index.js +81 -81
  2. package/dist/master.js +19 -19
  3. package/dist/website/container/assets/{index-BIcqvqGy.js → index-E15UfKFM.js} +8 -8
  4. package/dist/website/container/index.html +1 -1
  5. package/dist/website/item/assets/{index-DDuyXuC_.js → index-CwtVkGPL.js} +29 -29
  6. package/dist/website/item/index.html +1 -1
  7. package/dist/website/main/assets/{BaseBadge-Dwav8-_V.js → BaseBadge-BReHrAqs.js} +1 -1
  8. package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-Br1ZlT-C.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-T5vn0JFD.js} +1 -1
  9. package/dist/website/main/assets/{CodeMirrorEditor-Cqow8ROO-D5a3bJrn.js → CodeMirrorEditor-Cqow8ROO-DYjlZgX9.js} +3 -3
  10. package/dist/website/main/assets/{GithubCallback-DRfvlj0J.js → GithubCallback-UUNSnoh7.js} +1 -1
  11. package/dist/website/main/assets/{ReplyForm.vue_vue_type_script_setup_true_lang-DztoCP65.js → ReplyForm.vue_vue_type_script_setup_true_lang-CEqkWYsv.js} +1 -1
  12. package/dist/website/main/assets/{SiteLogo-BK2LmBdP.js → SiteLogo-Bpm2Ah9F.js} +1 -1
  13. package/dist/website/main/assets/{index-BIIfOsTM.js → index-4S2NYemE.js} +1 -1
  14. package/dist/website/main/assets/{index--Gl7kxRA.js → index-6zg8j_nT.js} +1 -1
  15. package/dist/website/main/assets/{index-72rReQ2I-DT4t3yv7.js → index-72rReQ2I-C_aIAupr.js} +1 -1
  16. package/dist/website/main/assets/{index-DShvoWo5.js → index-B1K6cAvN.js} +1 -1
  17. package/dist/website/main/assets/{index-CwoRYDBS.js → index-B2qulmRp.js} +1 -1
  18. package/dist/website/main/assets/{index-BGAAZcsT.js → index-B5rd6Qgm.js} +1 -1
  19. package/dist/website/main/assets/index-B6JeEo9g.js +1 -0
  20. package/dist/website/main/assets/{index-GF-tJPqO.js → index-B6Oo99Ej.js} +1 -1
  21. package/dist/website/main/assets/{index-CRerG_jj.js → index-BA02DjBI.js} +1 -1
  22. package/dist/website/main/assets/{index-CmDlT9OG.js → index-BD8DwKlG.js} +1 -1
  23. package/dist/website/main/assets/{index-DOR-FWWa.js → index-BF2ETnQh.js} +1 -1
  24. package/dist/website/main/assets/{index-BYr_uRik.js → index-BNwWVTCF.js} +1 -1
  25. package/dist/website/main/assets/{index-D2YpsmLA.js → index-BPdEkCOx.js} +1 -1
  26. package/dist/website/main/assets/{index-DKrCvuOe.js → index-BTmh_pkn.js} +1 -1
  27. package/dist/website/main/assets/{index-3thCh3qq.js → index-BWh3R1jI.js} +3 -3
  28. package/dist/website/main/assets/{index-CAhGpcw0.js → index-BX3Tl9jb.js} +1 -1
  29. package/dist/website/main/assets/index-By_sRNiP.js +1 -0
  30. package/dist/website/main/assets/{index-B4Denke_.js → index-C1zFaUVE.js} +1 -1
  31. package/dist/website/main/assets/index-CCJiyDal.js +1 -0
  32. package/dist/website/main/assets/{index-DCw86ogq.js → index-CMiBqyhH.js} +1 -1
  33. package/dist/website/main/assets/{index-ruR13HOB.js → index-CaoAcCMA.js} +2 -2
  34. package/dist/website/main/assets/index-CbOKlsZn.js +2 -0
  35. package/dist/website/main/assets/{index-BDXFoym_.js → index-CeiBBtdW.js} +1 -1
  36. package/dist/website/main/assets/{index-bwN_igRO.js → index-CtNrOkJr.js} +1 -1
  37. package/dist/website/main/assets/{index-B_R6um8d.js → index-CuCbuNEj.js} +1 -1
  38. package/dist/website/main/assets/{index-CGL710hV.js → index-D-25wqLa.js} +1 -1
  39. package/dist/website/main/assets/{index-4DalWgib.js → index-D-HOLV6Z.js} +1 -1
  40. package/dist/website/main/assets/{index-D76eWsZ1-_nyu7eQb.js → index-D76eWsZ1-a1NwqrGS.js} +1 -1
  41. package/dist/website/main/assets/{index-C1XabFrJ.js → index-DR4j8Ql1.js} +1 -1
  42. package/dist/website/main/assets/{index-C0QhLzHP.js → index-DRsSRfwD.js} +1 -1
  43. package/dist/website/main/assets/{index-CkHWSI2b.js → index-DS44gjNL.js} +1 -1
  44. package/dist/website/main/assets/index-D_NvG8ob.js +1 -0
  45. package/dist/website/main/assets/{index-B0gjb0CJ.js → index-Dblv7zZt.js} +1 -1
  46. package/dist/website/main/assets/index-Dcp6qLr1.js +1 -0
  47. package/dist/website/main/assets/{index-B_rFxdlu.js → index-DdIWt0oE.js} +1 -1
  48. package/dist/website/main/assets/{index-CKtWjh5B.js → index-DdqWCLvd.js} +1 -1
  49. package/dist/website/main/assets/{index-BZrH5MtZ.js → index-DgQa2ZqK.js} +3 -3
  50. package/dist/website/main/assets/index-DgrizPPB.js +50 -0
  51. package/dist/website/main/assets/{index-Dms7ZQ2h-CXFhQfmI.js → index-Dms7ZQ2h-DZe32-4Q.js} +1 -1
  52. package/dist/website/main/assets/{index-DqiFCfGx-BdEBAtzU.js → index-DqiFCfGx-Be_VzFT8.js} +1 -1
  53. package/dist/website/main/assets/{index-K6SUsq-d.js → index-DvFQxOj2.js} +1 -1
  54. package/dist/website/main/assets/{index-DxypSQ0K-wm4wOntm.js → index-DxypSQ0K-DZ74HfZS.js} +1 -1
  55. package/dist/website/main/assets/{index-DvXl2xci.js → index-Dy0c-ddP.js} +1 -1
  56. package/dist/website/main/assets/{index-C7kbImye.js → index-DyFpWAJM.js} +1 -1
  57. package/dist/website/main/assets/{index-DRLluzuR.js → index-RrkKKQjp.js} +1 -1
  58. package/dist/website/main/assets/{index-DFFxrR-b.js → index-S0EB9acK.js} +1 -1
  59. package/dist/website/main/assets/{index-T76vWLBU-C0PuuEJA.js → index-T76vWLBU-iHnxnk3E.js} +1 -1
  60. package/dist/website/main/assets/index-VpAGAhRh.js +1 -0
  61. package/dist/website/main/assets/{index-CQTH6cXs.js → index-VyPJ3PyN.js} +1 -1
  62. package/dist/website/main/assets/{index-DXwxbpG5.js → index-Zt46lwNk.js} +1 -1
  63. package/dist/website/main/assets/{index-F2VTlbBR.js → index-ex5YI_gC.js} +1 -1
  64. package/dist/website/main/assets/{index-fZBcgzqR-CRYn0SF1.js → index-fZBcgzqR-CqMOhDrG.js} +1 -1
  65. package/dist/website/main/assets/{index-mqeGrL6B-BF63ossB.js → index-mqeGrL6B-C5oP0065.js} +1 -1
  66. package/dist/website/main/assets/index-wd7ZswFD.js +1 -0
  67. package/dist/website/main/assets/index-z8BnmFXm.js +1 -0
  68. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Ap8wTvsB.js +2 -0
  69. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-CJ6uny7o.js → index.vue_vue_type_script_setup_true_lang-B05SHLQS.js} +1 -1
  70. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-D1Yenn0_.js → index.vue_vue_type_script_setup_true_lang-BOkD4Vs3.js} +1 -1
  71. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-DVDnFtUl.js → index.vue_vue_type_script_setup_true_lang-Bs4fbZK8.js} +1 -1
  72. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-CsPwDCDo.js → index.vue_vue_type_script_setup_true_lang-ByHasmxS.js} +1 -1
  73. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Do3aUu26.js → index.vue_vue_type_script_setup_true_lang-Dsu1eY0B.js} +1 -1
  74. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-CMD4VvG4.js → index.vue_vue_type_style_index_0_lang-66fUtqSq.js} +1 -1
  75. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C7Y8qEDg.js → index.vue_vue_type_style_index_0_lang-CUQ5yd-1.js} +1 -1
  76. package/dist/website/main/assets/{useCacheOssStore-BovkXuwo.js → useCacheOssStore-C6-kY3lP.js} +1 -1
  77. package/dist/website/main/assets/{useCompEditStore-C47KFq3s.js → useCompEditStore-B7__tBPJ.js} +3 -3
  78. package/dist/website/main/assets/{useKeyword-C0diQZGk.js → useKeyword-O-wdQuD_.js} +1 -1
  79. package/dist/website/main/assets/{useMessage-Dxhw28ry.js → useMessage-yR4W8KDP.js} +1 -1
  80. package/dist/website/main/assets/{useTeamHeaders-BuIG232Y.js → useTeamHeaders-BbJQSrjN.js} +1 -1
  81. package/dist/website/main/assets/{useUnreadStore-CmdbW-yt.js → useUnreadStore-COt1XJEP.js} +1 -1
  82. package/dist/website/main/assets/{useVscodeOpen-0AeELCuF.js → useVscodeOpen-CCvngYEV.js} +1 -1
  83. package/dist/website/main/index.html +1 -1
  84. package/package.json +1 -1
  85. package/dist/website/main/assets/index-APbKgJd9.js +0 -1
  86. package/dist/website/main/assets/index-BLCWm3Fn.js +0 -1
  87. package/dist/website/main/assets/index-BU8KZHUA.js +0 -1
  88. package/dist/website/main/assets/index-BiXGgf9p.js +0 -1
  89. package/dist/website/main/assets/index-BkWR9AZK.js +0 -50
  90. package/dist/website/main/assets/index-Cey7IuDj.js +0 -1
  91. package/dist/website/main/assets/index-Cp8ViCIR.js +0 -1
  92. package/dist/website/main/assets/index-DGc9WQeN.js +0 -2
  93. package/dist/website/main/assets/index-_FSb4t-p.js +0 -1
  94. package/dist/website/main/assets/index-sFKst8yj.js +0 -1
  95. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C9gk_QQc.js +0 -2
@@ -1,4 +1,4 @@
1
- import{c as De,B as Ye,a5 as P,P as ot,ah as at,f as ut,b as ct,y as Ft,aa as ft,T as dt}from"./vendor-ui-Cvgmewma.js";import{r as ce,f as me,U as H,K as q,a as Le,s as Nt,_ as St}from"./index-BkWR9AZK.js";/* empty css */import{z as te,G as j,H as le,F as Et,a7 as pt,J as R,L as ht,V as $,I as X,P as T,U as ae,S as At,m as J,ao as ie,aa as oe,W as b,a6 as Ct,u as k,a as U,aq as xe,a4 as mt,O as Bt,R as Mt,A as gt,h as Dt,N as Lt,f as vt}from"./vendor-core-CNXB6kVe.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-D-jhE3yA.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BK7dbjCA.js";import{m as ye}from"./md5-Dkj6ZNQB.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-BYA4gUOI.js";import{h as Ot}from"./moment-B-YVwB4U.js";import{_ as kt}from"./index.vue_vue_type_script_setup_true_lang-CJ6uny7o.js";import"./useCacheOssStore-BovkXuwo.js";const wt=["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"],Re=[[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 bt(e){if(e<=255)return wt[e];let t=0,n=Re.length-1;for(;t<=n;){const x=t+n>>1,r=Re[x];if(e<r[0]){n=x-1;continue}if(e>r[1]){t=x+1;continue}return r[2]}return"L"}function _t(e){const t=e.length;if(t===0)return null;const n=new Array(t);let x=!1;for(let i=0;i<t;){const o=e.charCodeAt(i);let F=o,c=1;if(o>=55296&&o<=56319&&i+1<t){const M=e.charCodeAt(i+1);M>=56320&&M<=57343&&(F=(o-55296<<10)+(M-56320)+65536,c=2)}const N=bt(F);(N==="R"||N==="AL"||N==="AN")&&(x=!0);for(let M=0;M<c;M++)n[i+M]=N;i+=c}if(!x)return null;let r=0;for(let i=0;i<t;i++){const o=n[i];if(o==="L"){r=0;break}if(o==="R"||o==="AL"){r=1;break}}const s=new Int8Array(t);for(let i=0;i<t;i++)s[i]=r;const l=r&1?"R":"L",a=l;let u=a;for(let i=0;i<t;i++)n[i]==="NSM"?n[i]=u:u=n[i];u=a;for(let i=0;i<t;i++){const o=n[i];o==="EN"?n[i]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let i=0;i<t;i++)n[i]==="AL"&&(n[i]="R");for(let i=1;i<t-1;i++)n[i]==="ES"&&n[i-1]==="EN"&&n[i+1]==="EN"&&(n[i]="EN"),n[i]==="CS"&&(n[i-1]==="EN"||n[i-1]==="AN")&&n[i+1]===n[i-1]&&(n[i]=n[i-1]);for(let i=0;i<t;i++){if(n[i]!=="EN")continue;let o;for(o=i-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=i+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let i=0;i<t;i++){const o=n[i];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[i]="ON")}u=a;for(let i=0;i<t;i++){const o=n[i];o==="EN"?n[i]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let i=0;i<t;i++){if(n[i]!=="ON")continue;let o=i+1;for(;o<t&&n[o]==="ON";)o++;const F=i>0?n[i-1]:a,c=o<t?n[o]:a,N=F!=="L"?"R":"L";if(N===(c!=="L"?"R":"L"))for(let S=i;S<o;S++)n[S]=N;i=o-1}for(let i=0;i<t;i++)n[i]==="ON"&&(n[i]=l);for(let i=0;i<t;i++){const o=n[i];(s[i]&1)===0?o==="R"?s[i]++:(o==="AN"||o==="EN")&&(s[i]+=2):(o==="L"||o==="AN"||o==="EN")&&s[i]++}return s}function yt(e,t){const n=_t(e);if(n===null)return null;const x=new Int8Array(t.length);for(let r=0;r<t.length;r++)x[r]=n[t[r]];return x}const Rt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Tt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Pt(e){if(!Wt.test(e))return e;let t=e.replace(Rt," ");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 Ut(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
1
+ import{c as De,B as Ye,a5 as P,P as ot,ah as at,f as ut,b as ct,y as Ft,aa as ft,T as dt}from"./vendor-ui-Cvgmewma.js";import{s as ce,f as me,M as H,g as q,a as Le,t as Nt,_ as St}from"./index-DgrizPPB.js";/* empty css */import{z as te,G as j,H as le,F as Et,a7 as pt,J as R,L as ht,V as $,I as X,P as T,U as ae,S as At,m as J,ao as ie,aa as oe,W as b,a6 as Ct,u as k,a as U,aq as xe,a4 as mt,O as Bt,R as Mt,A as gt,h as Dt,N as Lt,f as vt}from"./vendor-core-CNXB6kVe.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-D-jhE3yA.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BK7dbjCA.js";import{m as ye}from"./md5-Dkj6ZNQB.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-BYA4gUOI.js";import{h as Ot}from"./moment-B-YVwB4U.js";import{_ as kt}from"./index.vue_vue_type_script_setup_true_lang-B05SHLQS.js";import"./useCacheOssStore-C6-kY3lP.js";const wt=["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"],Re=[[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 bt(e){if(e<=255)return wt[e];let t=0,n=Re.length-1;for(;t<=n;){const x=t+n>>1,r=Re[x];if(e<r[0]){n=x-1;continue}if(e>r[1]){t=x+1;continue}return r[2]}return"L"}function _t(e){const t=e.length;if(t===0)return null;const n=new Array(t);let x=!1;for(let i=0;i<t;){const o=e.charCodeAt(i);let F=o,c=1;if(o>=55296&&o<=56319&&i+1<t){const M=e.charCodeAt(i+1);M>=56320&&M<=57343&&(F=(o-55296<<10)+(M-56320)+65536,c=2)}const N=bt(F);(N==="R"||N==="AL"||N==="AN")&&(x=!0);for(let M=0;M<c;M++)n[i+M]=N;i+=c}if(!x)return null;let r=0;for(let i=0;i<t;i++){const o=n[i];if(o==="L"){r=0;break}if(o==="R"||o==="AL"){r=1;break}}const s=new Int8Array(t);for(let i=0;i<t;i++)s[i]=r;const l=r&1?"R":"L",a=l;let u=a;for(let i=0;i<t;i++)n[i]==="NSM"?n[i]=u:u=n[i];u=a;for(let i=0;i<t;i++){const o=n[i];o==="EN"?n[i]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let i=0;i<t;i++)n[i]==="AL"&&(n[i]="R");for(let i=1;i<t-1;i++)n[i]==="ES"&&n[i-1]==="EN"&&n[i+1]==="EN"&&(n[i]="EN"),n[i]==="CS"&&(n[i-1]==="EN"||n[i-1]==="AN")&&n[i+1]===n[i-1]&&(n[i]=n[i-1]);for(let i=0;i<t;i++){if(n[i]!=="EN")continue;let o;for(o=i-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=i+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let i=0;i<t;i++){const o=n[i];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[i]="ON")}u=a;for(let i=0;i<t;i++){const o=n[i];o==="EN"?n[i]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let i=0;i<t;i++){if(n[i]!=="ON")continue;let o=i+1;for(;o<t&&n[o]==="ON";)o++;const F=i>0?n[i-1]:a,c=o<t?n[o]:a,N=F!=="L"?"R":"L";if(N===(c!=="L"?"R":"L"))for(let S=i;S<o;S++)n[S]=N;i=o-1}for(let i=0;i<t;i++)n[i]==="ON"&&(n[i]=l);for(let i=0;i<t;i++){const o=n[i];(s[i]&1)===0?o==="R"?s[i]++:(o==="AN"||o==="EN")&&(s[i]+=2):(o==="L"||o==="AN"||o==="EN")&&s[i]++}return s}function yt(e,t){const n=_t(e);if(n===null)return null;const x=new Int8Array(t.length);for(let r=0;r<t.length;r++)x[r]=n[t[r]];return x}const Rt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Tt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Pt(e){if(!Wt.test(e))return e;let t=e.replace(Rt," ");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 Ut(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
2
2
  `).replace(/[\r\f]/g,`
3
- `):e}let pe=null,It;function zt(){return pe===null&&(pe=new Intl.Segmenter(It,{granularity:"word"})),pe}const $t=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function We(e){return $t.test(e)}function Te(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 Z(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 x=e.charCodeAt(t+1);if(x>=56320&&x<=57343){const r=(n-55296<<10)+(x-56320)+65536;if(Te(r))return!0;t++;continue}}if(Te(n))return!0}}return!1}function jt(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const Gt=new Set([" "," ","⁠","\uFEFF"]);function Kt(e){return Z(e)}function Vt(e){const t=Ne(e);return t!==null&&Gt.has(t)}function Ht(e){return!jt(e)&&!Vt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Jt=new Set([":",".","،","؛"]),qt=new Set(["၏"]),Qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Yt(e){if(ke(e))return!0;let t=!1;for(const n of e){if(ee.has(n)){t=!0;continue}if(!(t&&fe.test(n)))return!1}return t}function Xt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Zt(e){if(ke(e))return!0;for(const t of e)if(!de.has(t)&&!Oe.has(t)&&!fe.test(t))return!1;return e.length>0}function ke(e){let t=!1;for(const n of e)if(!(n==="\\"||fe.test(n))){if(de.has(n)||ee.has(n)||Oe.has(n)){t=!0;continue}return!1}return t}function et(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const x=e.charCodeAt(n);if(x<56320||x>57343)return n;const r=n-1;if(r<0)return n;const s=e.charCodeAt(r);return s>=55296&&s<=56319?r:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function e0(e){const t=Array.from(e);let n=t.length;for(;n>0;){const x=t[n-1];if(fe.test(x)){n--;continue}if(de.has(x)||Oe.has(x)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function t0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,x){const r=t[x],s=e[x];if(r==null)return s;const l=n[x];if(s.length===l)return s;const a=r.repeat(l);return e[x]=a,a}function Ue(e,t){return e&&t!==null&&Jt.has(t)}function n0(e){const t=Ne(e);return t!==null&&qt.has(t)}function s0(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 Me(e){let t=e.length;for(;t>0;){const n=et(e,t),x=e.slice(n,t);if(Qt.has(x))return!0;if(!ee.has(x))return!1;t=n}return!1}function r0(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
4
- `)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const x0=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function G(e){return e.length===1?e[0]:e.join("")}function i0(e,t){const n=[];for(let x=e.length-1;x>=0;x--)n.push(e[x]);return n.push(t),G(n)}function l0(e,t,n,x){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const r=[];let s=null,l=[],a=n,u=!1,i=0;for(const o of e){const F=r0(o,x),c=F==="text"&&t;if(s!==null&&F===s&&c===u){l.push(o),i+=o.length;continue}s!==null&&r.push({text:G(l),isWordLike:u,kind:s,start:a}),s=F,l=[o],a=n+i,u=c,i+=o.length}return s!==null&&r.push({text:G(l),isWordLike:u,kind:s,start:a}),r}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const o0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function a0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:o0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function u0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function c0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),x=e.kinds.slice(),r=e.starts.slice();for(let l=0;l<e.len;l++){if(x[l]!=="text"||!a0(e,l))continue;const a=[t[l]];let u=l+1;for(;u<e.len&&!ge(x[u]);){a.push(t[u]),n[l]=!0;const i=t[u].includes("?");if(x[u]="text",t[u]="",u++,i)break}t[l]=G(a)}let s=0;for(let l=0;l<t.length;l++){const a=t[l];a.length!==0&&(s!==l&&(t[s]=a,n[s]=n[l],x[s]=x[l],r[s]=r[l]),s++)}return t.length=s,n.length=s,x.length=s,r.length=s,{len:s,texts:t,isWordLike:n,kinds:x,starts:r}}function F0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s];if(t.push(l),n.push(e.isWordLike[s]),x.push(e.kinds[s]),r.push(e.starts[s]),!u0(l))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],i=e.starts[a];let o=a;for(;o<e.len&&!ge(e.kinds[o]);)u.push(e.texts[o]),o++;u.length>0&&(t.push(G(u)),n.push(!0),x.push("text"),r.push(i),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}const f0=new Set([":","-","/","×",",",".","+","–","—"]),Ie=/^[A-Za-z0-9_]+[,:;]*$/,ze=/[,:;]+$/;function tt(e){for(const t of e)if(Ze.test(t))return!0;return!1}function ue(e){if(e.length===0)return!1;for(const t of e)if(!(Ze.test(t)||f0.has(t)))return!1;return!0}function d0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(l)&&tt(l)){const u=[l];let i=s+1;for(;i<e.len&&e.kinds[i]==="text"&&ue(e.texts[i]);)u.push(e.texts[i]),i++;t.push(G(u)),n.push(!0),x.push("text"),r.push(e.starts[s]),s=i-1;continue}t.push(l),n.push(e.isWordLike[s]),x.push(a),r.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function N0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(l)){const i=[l];let o=ze.test(l),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];i.push(c),o=ze.test(c),F++}t.push(G(i)),n.push(!0),x.push("text"),r.push(e.starts[s]),s=F-1;continue}t.push(l),n.push(u),x.push(a),r.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function S0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s];if(e.kinds[s]==="text"&&l.includes("-")){const a=l.split("-");let u=a.length>1;for(let i=0;i<a.length;i++){const o=a[i];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let i=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),x.push("text"),r.push(e.starts[s]+i),i+=c.length}continue}}t.push(l),n.push(e.isWordLike[s]),x.push(e.kinds[s]),r.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function E0(e){const t=[],n=[],x=[],r=[];let s=0;for(;s<e.len;){const l=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],i=e.starts[s];if(u==="glue"){const o=[l[0]],F=i;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")l[0]=c,l.push(e.texts[s]),a=e.isWordLike[s],u="text",i=F,s++;else{t.push(c),n.push(!1),x.push("glue"),r.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=G(o);if(s<e.len&&e.kinds[s]==="text"){l.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}l.push(F)}t.push(G(l)),n.push(a),x.push(u),r.push(i)}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function p0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),x=e.kinds.slice(),r=e.starts.slice();for(let s=0;s<t.length-1;s++){if(x[s]!=="text"||x[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const l=e0(t[s]);l!==null&&(t[s]=l.head,t[s+1]=l.tail+t[s+1],r[s+1]=r[s]+l.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function $e(e,t,n){const x=zt();let r=0;const s=[],l=[],a=[],u=[],i=[],o=[],F=[],c=[],N=[],M=[],S=[],E=[];for(const f of x.segment(e))for(const h of l0(f.segment,f.isWordLike??!1,f.index,n)){let D=function(){o[d]!==null&&(l[d]=[Pe(s,o,F,d)],o[d]=null),l[d].push(h.text),a[d]=a[d]||h.isWordLike,c[d]=c[d]||v,N[d]=N[d]||_,M[d]=W,S[d]=K,E[d]=Ue(N[d],y)};const L=h.kind==="text",C=t0(h.text,h.isWordLike,h.kind),v=Z(h.text),_=We(h.text),y=Ne(h.text),W=Me(h.text),K=n0(h.text),d=r-1;t.carryCJKAfterClosingQuote&&L&&r>0&&u[d]==="text"&&v&&c[d]&&M[d]||L&&r>0&&u[d]==="text"&&Xt(h.text)&&c[d]||L&&r>0&&u[d]==="text"&&S[d]?D():L&&r>0&&u[d]==="text"&&h.isWordLike&&_&&E[d]?(D(),a[d]=!0):C!==null&&r>0&&u[d]==="text"&&o[d]===C?F[d]=(F[d]??1)+1:L&&!h.isWordLike&&r>0&&u[d]==="text"&&!c[d]&&(Yt(h.text)||h.text==="-"&&a[d])?D():(s[r]=h.text,l[r]=[h.text],a[r]=h.isWordLike,u[r]=h.kind,i[r]=h.start,o[r]=C,F[r]=C===null?0:1,c[r]=v,N[r]=_,M[r]=W,S[r]=K,E[r]=Ue(_,y),r++)}for(let f=0;f<r;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(l[f])}for(let f=1;f<r;f++)u[f]==="text"&&!a[f]&&ke(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 p=Array.from({length:r},()=>null);let A=-1;for(let f=r-1;f>=0;f--){const h=s[f];if(h.length!==0){if(u[f]==="text"&&!a[f]&&Zt(h)&&A>=0&&u[A]==="text"){const L=p[A]??[];L.push(h),p[A]=L,i[A]=i[f],s[f]="";continue}A=f}}for(let f=0;f<r;f++){const h=p[f];h!=null&&(s[f]=i0(h,s[f]))}let m=0;for(let f=0;f<r;f++){const h=s[f];h.length!==0&&(m!==f&&(s[m]=h,a[m]=a[f],u[m]=u[f],i[m]=i[f]),m++)}s.length=m,a.length=m,u.length=m,i.length=m;const O=E0({len:m,texts:s,isWordLike:a,kinds:u,starts:i}),g=p0(N0(S0(d0(F0(c0(O))))));for(let f=0;f<g.len-1;f++){const h=s0(g.texts[f]);h!==null&&(g.kinds[f]!=="space"&&g.kinds[f]!=="preserved-space"||g.kinds[f+1]!=="text"||!We(g.texts[f+1])||(g.texts[f]=h.space,g.isWordLike[f]=!1,g.kinds[f]=g.kinds[f]==="preserved-space"?"preserved-space":"space",g.texts[f+1]=h.marks+g.texts[f+1],g.starts[f+1]=g.starts[f]+h.space.length))}return g}function h0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let x=0;for(let r=0;r<e.len;r++)e.kinds[r]==="hard-break"&&(n.push({startSegmentIndex:x,endSegmentIndex:r,consumedEndSegmentIndex:r+1}),x=r+1);return x<e.len&&n.push({startSegmentIndex:x,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],x=[],r=[];let s=null,l=!1,a=0,u=!1,i=!1;function o(){s!==null&&(t.push(G(s)),n.push(l),x.push("text"),r.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],N=e.kinds[F],M=e.isWordLike[F],S=e.starts[F];if(N==="text"){const E=Kt(c),p=Ht(c);if(s!==null&&u&&i){s.push(c),l=l||M,u=u||E,i=p;continue}o(),s=[c],l=M,a=S,u=E,i=p;continue}o(),t.push(c),n.push(M),x.push(N),r.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function C0(e,t,n="normal",x="normal"){const r=Tt(n),s=r.mode==="pre-wrap"?Ut(e):Pt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const l=x==="keep-all"?A0($e(s,t,r)):$e(s,t,r);return{normalized:s,chunks:h0(l,r),...l}}let se=null;const je=new Map;let re=null;const m0=96,B0=new RegExp("\\p{Emoji_Presentation}","u"),M0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let he=null;const Ge=new Map;function we(){if(se!==null)return se;if(typeof OffscreenCanvas<"u")return se=new OffscreenCanvas(1,1).getContext("2d"),se;if(typeof document<"u")return se=document.createElement("canvas").getContext("2d"),se;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function g0(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:we().measureText(e).width,containsCJK:Z(e)},t.set(e,n)),n}function Se(){if(re!==null)return re;if(typeof navigator>"u")return re={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},re;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/"),x=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return re={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:x,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},re}function D0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function L0(e){return B0.test(e)||e.includes("️")}function v0(e){return M0.test(e)}function O0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const x=we();x.font=e;const r=x.measureText("😀").width;if(n=0,r>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 l=s.getBoundingClientRect().width;document.body.removeChild(s),r-l>.5&&(n=r-l)}return Ge.set(e,n),n}function k0(e){let t=0;const n=nt();for(const x of n.segment(e))L0(x.segment)&&t++;return t}function w0(e,t){return t.emojiCount===void 0&&(t.emojiCount=k0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-w0(e,t)*n}function b0(e,t,n,x,r){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===r)return t.breakableFitAdvances;t.breakableFitMode=r;const s=nt(),l=[];for(const o of s.segment(e))l.push(o.segment);if(l.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(r==="sum-graphemes"){const o=[];for(const F of l){const c=Q(F,n);o.push(Y(F,c,x))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(r==="pair-context"||l.length>m0){const o=[];let F=null,c=0;for(const N of l){const M=Q(N,n),S=Y(N,M,x);if(F===null)o.push(S);else{const E=F+N,p=Q(E,n);o.push(Y(E,p,x)-c)}F=N,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",i=0;for(const o of l){u+=o;const F=Q(u,n),c=Y(u,F,x);a.push(c-i),i=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function _0(e,t){const n=we();n.font=e;const x=g0(e),r=D0(e),s=t?O0(e,r):0;return{cache:x,fontSize:r,emojiCorrection:s}}function y0(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function st(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function rt(e,t,n=e.widths.length){for(;t<n;){const x=e.kinds[t];if(!y0(x))break;t++}return t}function R0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function W0(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function be(e,t){return t===0?0:e+t}function T0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function P0(e,t,n,x,r){const s=t==="tab"?r+T0(e,n):e.lineEndFitAdvances[n];return be(x,s)}function Ke(e,t,n,x){const r=t==="tab"?0:e.lineEndFitAdvances[n];return be(x,r)}function Ve(e,t,n,x,r){const s=t==="tab"?r:e.lineEndPaintAdvances[n];return be(x,s)}function U0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function I0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function z0(e,t,n,x,r,s){let l=0,a=t;for(;l<e.length;){const u=a+e[l]+s;if((l+1<e.length?u+r:u)>n+x)break;a=u,l++}return{fitCount:l,fittedWidth:a}}function $0(e,t,n){const{widths:x,kinds:r,breakableFitAdvances:s}=e;if(x.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let i=0,o=0,F=!1,c=0,N=0,M=0,S=0,E=-1,p=0;function A(){E=-1,p=0}function m(C=M,v=S,_=o){i++,n?.(_,c,N,C,v),o=0,F=!1,A()}function O(C,v){F=!0,c=C,N=0,M=C+1,S=0,o=v}function g(C,v,_){F=!0,c=C,N=v,M=C,S=v+1,o=_}function f(C,v){if(!F){O(C,v);return}o+=v,M=C+1,S=0}function h(C,v){const _=s[C];for(let y=v;y<_.length;y++){const W=_[y];F?o+W>u?(m(),g(C,y,W)):(o+=W,M=C,S=y+1):g(C,y,W)}F&&M===C&&S===_.length&&(M=C+1,S=0)}let L=0;for(;L<x.length&&!(!F&&(L=rt(e,L),L>=x.length));){const C=x[L],v=r[L],_=st(v);if(!F){C>u&&s[L]!==null?h(L,0):O(L,C),_&&(E=L+1,p=o-C),L++;continue}if(o+C>u){if(_){f(L,C),m(L+1,0,o-C),L++;continue}if(E>=0){if(M>E||M===E&&S>0){m();continue}m(E,0,p);continue}if(C>u&&s[L]!==null){m(),h(L,0),L++;continue}m();continue}f(L,C),_&&(E=L+1,p=o-C),L++}return F&&m(),i}function j0(e,t,n){if(e.simpleLineWalkFastPath)return $0(e,t,n);const{widths:x,kinds:r,breakableFitAdvances:s,discretionaryHyphenWidth:l,chunks:a}=e;if(x.length===0||a.length===0)return 0;const u=Se(),i=u.lineFitEpsilon,o=t+i;let F=0,c=0,N=!1,M=0,S=0,E=0,p=0,A=-1,m=0,O=0,g=null;function f(){A=-1,m=0,O=0,g=null}function h(d=E,D=p,B=c){F++,n?.(B,M,S,d,D),c=0,N=!1,f()}function L(d,D){N=!0,M=d,S=0,E=d+1,p=0,c=D}function C(d,D,B){N=!0,M=d,S=D,E=d,p=D+1,c=B}function v(d,D){if(!N){L(d,D);return}c+=D,E=d+1,p=0}function _(d,D,B,w,I,z){if(!D)return;const V=Ke(e,d,B,I),ne=Ve(e,d,B,I,w);A=B+1,m=c-z+V,O=c-z+ne,g=d}function y(d,D){const B=s[d];for(let w=D;w<B.length;w++){const I=B[w];if(!N)C(d,w,I);else{const z=U0(e,!0,I),V=c+z;I0(e,V)>o?(h(),C(d,w,I)):(c=V,E=d,p=w+1)}}N&&E===d&&p===B.length&&(E=d+1,p=0)}function W(d){if(g!=="soft-hyphen")return!1;const D=s[d];if(D==null)return!1;const{fitCount:B,fittedWidth:w}=z0(D,c,t,i,l,e.letterSpacing);return B===0?!1:(c=w,E=d,p=B,f(),B===D.length?(E=d+1,p=0,!0):(h(d,B,w+l),y(d,B),!0))}function K(d){F++,n?.(0,d.startSegmentIndex,0,d.consumedEndSegmentIndex,0),f()}for(let d=0;d<a.length;d++){const D=a[d];if(D.startSegmentIndex===D.endSegmentIndex){K(D);continue}N=!1,c=0,M=D.startSegmentIndex,S=0,E=D.startSegmentIndex,p=0,f();let B=D.startSegmentIndex;for(;B<D.endSegmentIndex&&!(!N&&(B=rt(e,B,D.endSegmentIndex),B>=D.endSegmentIndex));){const w=r[B],I=st(w),z=W0(e,N,B),V=w==="tab"?R0(c+z,e.tabStopAdvance):x[B],ne=z+V,Ee=P0(e,w,B,z,V);if(w==="soft-hyphen"){N&&(E=B+1,p=0,A=B+1,m=c+l,O=c+l,g=w),B++;continue}if(!N){Ee>o&&s[B]!==null?y(B,0):L(B,V),_(w,I,B,V,z,ne),B++;continue}if(c+Ee>o){const it=c+Ke(e,w,B,z),lt=c+Ve(e,w,B,z,V);if(g==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&m<=o){h(A,0,O);continue}if(g==="soft-hyphen"&&W(B)){B++;continue}if(I&&it<=o){v(B,ne),h(B+1,0,lt),B++;continue}if(A>=0&&m<=o){if(E>A||E===A&&p>0){h();continue}const _e=A;h(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){h(),y(B,0),B++;continue}h();continue}v(B,ne),_(w,I,B,V,z,ne),B++}if(N){const w=A===D.consumedEndSegmentIndex?O:c;h(D.consumedEndSegmentIndex,0,w)}}return F}let Ae=null,He=new WeakMap;function G0(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function Je(e,t,n){let x=n.get(e);if(x!==void 0)return x;x=[];const r=G0();for(const s of r.segment(t[e]))x.push(s.segment);return n.set(e,x),x}function K0(e,t,n,x){return x>0&&e[x-1]==="soft-hyphen"&&!(t===x&&n>0)}function qe(e,t,n,x){for(let r=n;r<x;r++)e+=t[r];return e}function V0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function H0(e,t,n,x,r,s){let l="";const a=K0(e.kinds,n,x,r);for(let u=n;u<r;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&x>0){const i=Je(u,e.segments,t);l=qe(l,i,x,i.length)}else l+=e.segments[u];if(s>0){a&&(l+="-");const u=Je(r,e.segments,t);l=qe(l,u,n===r?x:0,s)}else a&&(l+="-");return l}let Ce=null;function J0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function q0(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function Q0(e,t){const n=[];let x=[],r=0,s=!1,l=!1,a=!1;function u(){x.length!==0&&(n.push({text:x.length===1?x[0]:x.join(""),start:r}),x=[],s=!1,l=!1,a=!1)}function i(F,c,N){x=[F],r=c,s=N,l=Me(F),a=de.has(F)}function o(F,c){x.push(F),s=s||c;const N=Me(F);F.length===1&&ee.has(F)?l=l||N:l=N,a=!1}for(const F of J0().segment(e)){const c=F.segment,N=Z(c);if(x.length===0){i(c,F.index,N);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&N&&l){o(c,N);continue}if(!s&&!N){o(c,N);continue}u(),i(c,F.index,N)}return u(),n}function Y0(e,t,n){return e}function X0(e,t,n,x,r){const s=Se(),{cache:l,emojiCorrection:a}=_0(t,v0(e.normalized)),u=Y("-",Q("-",l),a)+0,o=Y(" ",Q(" ",l),a)*8;if(e.len===0)return q0();const F=[],c=[],N=[],M=[];let S=e.chunks.length<=1&&!0;const E=n?[]:null,p=[],A=[],m=n?[]:null,O=Array.from({length:e.len});function g(C,v,_,y,W,K,d,D){W!=="text"&&W!=="space"&&W!=="zero-width-break"&&(S=!1),F.push(v),c.push(_),N.push(y),M.push(W),E?.push(K),p.push(d),m!==null&&m.push(C)}function f(C,v,_,y,W){const K=Q(C,l),d=Y0(Y(C,K,a)),D=v==="space"||v==="preserved-space"||v==="zero-width-break"?0:d,B=D===0?0:D+0,w=v==="space"||v==="zero-width-break"?0:d;if(W&&y&&C.length>1){let I="sum-graphemes";ue(C)?I="pair-context":s.preferPrefixWidthsForBreakableRuns&&(I="segment-prefixes");const z=b0(C,K,l,a,I);g(C,d,B,w,v,_,z);return}g(C,d,B,w,v,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const v=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],W=e.starts[C];if(y==="soft-hyphen"){g(v,0,u,u,y,W,null);continue}if(y==="hard-break"){g(v,0,0,0,y,W,null);continue}if(y==="tab"){g(v,0,0,0,y,W,null);continue}const K=Q(v,l);if(y==="text"&&K.containsCJK){const D=Q0(v,s);for(let B=0;B<D.length;B++){const w=D[B];f(w.text,"text",W+w.start,_,!Z(w.text))}continue}f(v,y,W,_,!0)}const h=Z0(e.chunks,O,F.length),L=E===null?null:yt(e.normalized,E);return m!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:N,kinds:M,simpleLineWalkFastPath:S,segLevels:L,breakableFitAdvances:p,letterSpacing:r,spacingGraphemeCounts:A,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:h,segments:m}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:N,kinds:M,simpleLineWalkFastPath:S,segLevels:L,breakableFitAdvances:p,letterSpacing:r,spacingGraphemeCounts:A,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:h}}function Z0(e,t,n){const x=[];for(let r=0;r<e.length;r++){const s=e[r],l=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;x.push({startSegmentIndex:l,endSegmentIndex:a,consumedEndSegmentIndex:u})}return x}function en(e,t,n,x){const r="normal",l=C0(e,Se(),x?.whiteSpace,r);return X0(l,t,n,r,0)}function tn(e,t,n){return en(e,t,!0,n)}function nn(e,t,n,x,r,s,l){return{text:H0(e,t,x,r,s,l),width:n,start:{segmentIndex:x,graphemeIndex:r},end:{segmentIndex:s,graphemeIndex:l}}}function sn(e,t,n){const x=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:x};const r=V0(e),s=j0(e,t,(l,a,u,i,o)=>{x.push(nn(e,r,l,a,u,i,o))});return{lineCount:s,height:s*n,lines:x}}const rn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",ln=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=J(()=>{if(!t.infoList||t.infoList.length===0)return 80;let x=0;for(const r of t.infoList){const s=tn(r.label,xn),{lines:l}=sn(s,1e3,20);l.length>0&&(x=Math.max(x,l[0].width))}return Math.ceil(x+16)});return(x,r)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,l=>(j(),le("div",{key:l.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[R("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:ht({width:n.value+"px"})},$(l.label),5),R("span",rn,$(l.value||l.defaultValue),1),l.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>l.onHandler?.()},{default:T(()=>[ae($(l.handlerText),1)]),_:2},1032,["onClick"])):At("",!0)]))),128))])}}});function on(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 an={class:"p-2"},un={class:"flex gap-2 flex-1"},cn={class:"flex gap-2 flex-1"},Fn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),x=ce(),r={OLD:"old",NEW:"new"},s=J(()=>!x.email),l=J(()=>s.value?n("user.bindEmail"):n("user.changeEmail")),a=U(!1),u=U({}),i=U({}),o=U({onSubmit:()=>{c()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),F=J(()=>{const p=[];return s.value||(p.push({type:"input",field:"email",title:n("user.oldEmail"),value:x?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(A,m,O)=>{me.isEmail(m)?O():O(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}}),p.push({type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]})),p.push({type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(A,m,O)=>{me.isEmail(m)?O():O(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}}),p.push({type:"slotAuthCodeNew",field:"newAuthCode",title:s.value?n("user.authCode"):n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}),p});async function c(){o.value.submitBtn.loading=!0,(s.value?H.v1User.usercontrollerBindemail({newEmail:i.value.newEmail,newAuthCode:i.value.newAuthCode}):H.v1User.usercontrollerUpdateemail({email:i.value.email,authCode:i.value.authCode,newEmail:i.value.newEmail,newAuthCode:i.value.newAuthCode})).then(()=>{const A=s.value?n("user.emailBound"):n("user.emailModified");P.success(A),window?.umami?.track(s.value?q.USER_UPDATE_EMAIL_SUCCESS:q.USER_UPDATE_EMAIL_SUCCESS),x.setEmail(i.value.newEmail),E()}).catch(A=>{window?.umami?.track(q.USER_UPDATE_EMAIL_FAILED,{error:String(A)})}).finally(()=>{o.value.submitBtn.loading=!1})}function N(p,{end:A,startCountdown:m}){p===r.OLD?u.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:i.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),m()})}).finally(()=>{A()}):p===r.NEW&&u.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:i.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),m()})}).finally(()=>{A()})}function M(p){return n(`formCreate.${p}`)}function S(){a.value=!0}function E(){a.value=!1}return t({open:S,close:E}),(p,A)=>{const m=Ye,O=oe("form-create");return j(),X(k(Fe),{modelValue:a.value,"onUpdate:modelValue":A[4]||(A[4]=g=>a.value=g),"show-close":!0,width:"500px",title:l.value},{default:T(()=>[R("div",an,[b(O,{modelValue:i.value,"onUpdate:modelValue":A[2]||(A[2]=g=>i.value=g),api:u.value,"onUpdate:api":A[3]||(A[3]=g=>u.value=g),rule:F.value,option:o.value,t:M},Ct({"type-slotAuthCodeNew":T(g=>[R("div",cn,[b(m,{"model-value":String(g.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:f=>g.model.callback(f)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:A[1]||(A[1]=f=>N(r.NEW,f))},null,8,["text"])])]),_:2},[s.value?void 0:{name:"type-slotAuthCodeOld",fn:T(g=>[R("div",un,[b(m,{"model-value":String(g.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:f=>g.model.callback(f)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:A[0]||(A[0]=f=>N(r.OLD,f))},null,8,["text"])])]),key:"0"}]),1032,["modelValue","api","rule","option"])])]),_:1},8,["modelValue","title"])}}}),fn={class:"p-2"},dn={class:"flex gap-2 flex-1"},Nn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),x=ce(),r=xe("baseForm"),s=U(!1),l=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),i=J(()=>[{type:"input",field:"newPassword",title:x.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:x.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:x?.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")),window?.umami?.track(q.USER_UPDATE_PASSWORD_SUCCESS),r.value?.resetFields(),x.setIsPasswordSet(!0),M()}).catch(E=>{window?.umami?.track(q.USER_UPDATE_PASSWORD_FAILED,{error:String(E)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:E}){l.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),E()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function N(){s.value=!0}function M(){s.value=!1}return t({open:N,close:M}),(S,E)=>{const p=Ye,A=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":E[2]||(E[2]=m=>s.value=m),"show-close":!0,width:"500px"},{default:T(()=>[R("div",fn,[b(A,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=m=>a.value=m),api:l.value,"onUpdate:api":E[1]||(E[1]=m=>l.value=m),rule:i.value,option:u.value,t:c},{"type-slotAuthCode":T(m=>[R("div",dn,[b(p,{"model-value":String(m.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>m.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{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"])}}}),Sn={class:"p-2"},En=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),x=ce(),r=Le(),s=U(!1),l=U({onSubmit:()=>{i()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=U({}),u=J(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:x.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 i(){if(l.value.submitBtn.loading=!0,a.value.nickname===x.userInfo.nickname){P.success(n("message.success.update")),l.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{x.setNickname(a.value.nickname),r.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(q.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(N=>{window?.umami?.track(q.USER_UPDATE_NICKNAME_FAILED,{error:String(N)})}).finally(()=>{l.value.submitBtn.loading=!1})}function o(N){return n(`formCreate.${N}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(N,M)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":M[1]||(M[1]=E=>s.value=E),width:"400px"},{default:T(()=>[R("div",Sn,[b(S,{modelValue:a.value,"onUpdate:modelValue":M[0]||(M[0]=E=>a.value=E),rule:u.value,option:l.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),pn=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,x=Dt(),r=mt(),s=Bt(),l=(S,E)=>{c.value.fileList&&(c.value.fileList=E),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},i={autoUpload:!1,cover:!1,onChange:l,onExceed:(S,E)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const p=S[0];p.uid=at(),F.value.handleStart(p);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+E.length}))},beforeUpload:xt(),onError:a},o=U(null),F=U(),c=J(()=>({...i,...me.convertKeysToCamelCase(r),...n})),N=J(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function M(S){F.value=S,x&&(x.exposed=S||{},x.exposeProxy=S||{})}return(S,E)=>(j(),X(Mt(gt(k(ot),{...c.value,ref:M},N.value))))}}),{i18n:hn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(hn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function xt(e={}){const{mode:t="extend",custom:n}=e;return x=>t==="override"&&n?n(x):t==="extend"?Qe(x)?n?n(x):!0:!1:Qe(x)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),x=e.dir+e.key+"."+n,r=new FormData;return r.append("success_action_status","200"),r.append("policy",e.policy),r.append("x-oss-signature",e.signature),r.append("x-oss-signature-version",e.x_oss_signature_version),r.append("x-oss-credential",e.x_oss_credential),r.append("x-oss-date",e.x_oss_date),r.append("key",x),r.append("x-oss-security-token",e.security_token),r.append("Cache-Control","public, max-age=31536000"),r.append("file",t),{host:e.host,filePath:x,formData:r}}async function Cn(e,t){return fetch(e,{method:"POST",body:t})}const mn=["src"],Bn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),x=Le(),r=U([]),s=U(!1),l=xe("avatarUpload"),a=U(),u=J(()=>({limit:1,cover:!0,onError:o,beforeUpload:i,showFileList:!1,httpRequest:M})),i=xt({custom(p){return p.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(p){a.value?.(),P.error(p.message)}async function F(p){if(p.start(),a.value=p.end,!r.value||r.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}l.value?.submit()}function c(p){H.v1User.usercontrollerChangeavatar({avatar:p}).then(()=>{x.updateAvatar(p),E(),P.success(n("user.avatarModified")),window?.umami?.track(q.USER_UPDATE_AVATAR_SUCCESS)}).catch(A=>{window?.umami?.track(q.USER_UPDATE_AVATAR_FAILED,{error:String(A)})}).finally(()=>{a.value?.()})}function N(){l.value?.clearFiles()}async function M(p){const A=await H.v1Oss.osscontrollerCompossdir(),{imageDir:m}=A.data,O=await H.v1Oss.osscontrollerPutpolicy({type:m});if(O.code!==0||!O.data)return P.error(O.message);const{host:g,filePath:f,formData:h}=An(O.data,p.file),L=await Cn(g,h);if(L.ok)c(f);else{const C=await L.text(),v=on(C);P.error(v.message),a.value?.()}}function S(){s.value=!0}function E(){s.value=!1,N()}return t({open:S,close:E}),(p,A)=>{const m=oe("Icon"),O=ct,g=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":A[1]||(A[1]=h=>s.value=h),width:"400px",onClose:N},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(pn),Lt({ref:"avatarUpload","file-list":r.value,"onUpdate:fileList":A[0]||(A[0]=h=>r.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(),le("img",{key:0,src:h,class:"size-full"},null,8,mn)):(j(),X(m,{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(Xe),null,{default:T(({instance:h,loading:L})=>[b(g,{type:"primary",loading:L,onClick:C=>F(h)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Mn=St(Bn,[["__scopeId","data-v-5805bb87"]]),gn={class:"h-full p-[10px]"},Dn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Ln={class:"text-center flex flex-col items-center gap-2 h-[120px]"},vn={class:"flex flex-col gap-10"},On={class:"flex items-center"},kn={class:"size-[48px] flex items-center justify-center"},wn={class:"flex-1"},bn={class:"text-sm text-gray-500"},_n={class:"flex items-center"},yn={class:"size-[48px] flex items-center justify-center"},Rn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},qn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),x=Le(),r=J(()=>n.userInfo),s=xe("emailDialog"),l=xe("passwordDialog"),a=xe("nicknameDialog"),u=xe("avatarDialog"),i=F=>{if(!n.email){P.error(t("user.pleaseBindEmailFirst"));return}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")),window?.umami?.track(q.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=J(()=>[{key:"account",label:t("user.account"),value:r.value?.account},{key:"nickname",label:t("user.nickname"),value:r.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:r.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:r.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:r.value?.createdAt?Ot(r.value.createdAt).format("YYYY-MM-DD"):"--"}]);return vt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const N=Ft,M=ft,S=oe("Icon"),E=De,p=dt;return j(),le("div",gn,[R("div",Dn,[b(M,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[R("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[R("div",Ln,[b(kt,{size:80,shape:"square",src:k(x).avatar,text:k(x).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=A=>u.value?.open())},{default:T(()=>[ae($(r.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),R("h3",null,$(r.value?.account),1)]),b(N),b(k(ln),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(M,{class:"col-start-2"},{header:T(()=>[R("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[R("div",vn,[R("div",On,[R("div",kn,[b(S,{icon:"material-symbols:lock"})]),R("div",wn,[R("h4",null,$(k(t)("user.loginPassword")),1),R("p",bn,$(k(t)("user.passwordTip")),1)]),b(E,{type:"primary",onClick:c[1]||(c[1]=A=>l.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),R("div",_n,[R("div",yn,[b(S,{icon:"material-symbols:mark-email-unread"})]),R("div",Rn,[R("h4",null,$(k(t)("user.emailLogin")),1),R("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:A,loading:m})=>[b(p,{loading:m,"model-value":k(n).isAllowEmailLogin,onChange:O=>i(A)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(Fn,{ref:"emailDialog"},null,512),b(Nn,{ref:"passwordDialog"},null,512),b(En,{ref:"nicknameDialog"},null,512),b(Mn,{ref:"avatarDialog"},null,512)])}}});export{qn as default};
3
+ `):e}let pe=null,It;function zt(){return pe===null&&(pe=new Intl.Segmenter(It,{granularity:"word"})),pe}const $t=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function We(e){return $t.test(e)}function Te(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 Z(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 x=e.charCodeAt(t+1);if(x>=56320&&x<=57343){const r=(n-55296<<10)+(x-56320)+65536;if(Te(r))return!0;t++;continue}}if(Te(n))return!0}}return!1}function jt(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const Gt=new Set([" "," ","⁠","\uFEFF"]);function Vt(e){return Z(e)}function Kt(e){const t=Ne(e);return t!==null&&Gt.has(t)}function Ht(e){return!jt(e)&&!Kt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Jt=new Set([":",".","،","؛"]),qt=new Set(["၏"]),Qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Yt(e){if(ke(e))return!0;let t=!1;for(const n of e){if(ee.has(n)){t=!0;continue}if(!(t&&fe.test(n)))return!1}return t}function Xt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Zt(e){if(ke(e))return!0;for(const t of e)if(!de.has(t)&&!Oe.has(t)&&!fe.test(t))return!1;return e.length>0}function ke(e){let t=!1;for(const n of e)if(!(n==="\\"||fe.test(n))){if(de.has(n)||ee.has(n)||Oe.has(n)){t=!0;continue}return!1}return t}function et(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const x=e.charCodeAt(n);if(x<56320||x>57343)return n;const r=n-1;if(r<0)return n;const s=e.charCodeAt(r);return s>=55296&&s<=56319?r:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function e0(e){const t=Array.from(e);let n=t.length;for(;n>0;){const x=t[n-1];if(fe.test(x)){n--;continue}if(de.has(x)||Oe.has(x)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function t0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,x){const r=t[x],s=e[x];if(r==null)return s;const l=n[x];if(s.length===l)return s;const a=r.repeat(l);return e[x]=a,a}function Ue(e,t){return e&&t!==null&&Jt.has(t)}function n0(e){const t=Ne(e);return t!==null&&qt.has(t)}function s0(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 Me(e){let t=e.length;for(;t>0;){const n=et(e,t),x=e.slice(n,t);if(Qt.has(x))return!0;if(!ee.has(x))return!1;t=n}return!1}function r0(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
4
+ `)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const x0=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function G(e){return e.length===1?e[0]:e.join("")}function i0(e,t){const n=[];for(let x=e.length-1;x>=0;x--)n.push(e[x]);return n.push(t),G(n)}function l0(e,t,n,x){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const r=[];let s=null,l=[],a=n,u=!1,i=0;for(const o of e){const F=r0(o,x),c=F==="text"&&t;if(s!==null&&F===s&&c===u){l.push(o),i+=o.length;continue}s!==null&&r.push({text:G(l),isWordLike:u,kind:s,start:a}),s=F,l=[o],a=n+i,u=c,i+=o.length}return s!==null&&r.push({text:G(l),isWordLike:u,kind:s,start:a}),r}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const o0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function a0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:o0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function u0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function c0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),x=e.kinds.slice(),r=e.starts.slice();for(let l=0;l<e.len;l++){if(x[l]!=="text"||!a0(e,l))continue;const a=[t[l]];let u=l+1;for(;u<e.len&&!ge(x[u]);){a.push(t[u]),n[l]=!0;const i=t[u].includes("?");if(x[u]="text",t[u]="",u++,i)break}t[l]=G(a)}let s=0;for(let l=0;l<t.length;l++){const a=t[l];a.length!==0&&(s!==l&&(t[s]=a,n[s]=n[l],x[s]=x[l],r[s]=r[l]),s++)}return t.length=s,n.length=s,x.length=s,r.length=s,{len:s,texts:t,isWordLike:n,kinds:x,starts:r}}function F0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s];if(t.push(l),n.push(e.isWordLike[s]),x.push(e.kinds[s]),r.push(e.starts[s]),!u0(l))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],i=e.starts[a];let o=a;for(;o<e.len&&!ge(e.kinds[o]);)u.push(e.texts[o]),o++;u.length>0&&(t.push(G(u)),n.push(!0),x.push("text"),r.push(i),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}const f0=new Set([":","-","/","×",",",".","+","–","—"]),Ie=/^[A-Za-z0-9_]+[,:;]*$/,ze=/[,:;]+$/;function tt(e){for(const t of e)if(Ze.test(t))return!0;return!1}function ue(e){if(e.length===0)return!1;for(const t of e)if(!(Ze.test(t)||f0.has(t)))return!1;return!0}function d0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(l)&&tt(l)){const u=[l];let i=s+1;for(;i<e.len&&e.kinds[i]==="text"&&ue(e.texts[i]);)u.push(e.texts[i]),i++;t.push(G(u)),n.push(!0),x.push("text"),r.push(e.starts[s]),s=i-1;continue}t.push(l),n.push(e.isWordLike[s]),x.push(a),r.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function N0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(l)){const i=[l];let o=ze.test(l),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];i.push(c),o=ze.test(c),F++}t.push(G(i)),n.push(!0),x.push("text"),r.push(e.starts[s]),s=F-1;continue}t.push(l),n.push(u),x.push(a),r.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function S0(e){const t=[],n=[],x=[],r=[];for(let s=0;s<e.len;s++){const l=e.texts[s];if(e.kinds[s]==="text"&&l.includes("-")){const a=l.split("-");let u=a.length>1;for(let i=0;i<a.length;i++){const o=a[i];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let i=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),x.push("text"),r.push(e.starts[s]+i),i+=c.length}continue}}t.push(l),n.push(e.isWordLike[s]),x.push(e.kinds[s]),r.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function E0(e){const t=[],n=[],x=[],r=[];let s=0;for(;s<e.len;){const l=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],i=e.starts[s];if(u==="glue"){const o=[l[0]],F=i;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")l[0]=c,l.push(e.texts[s]),a=e.isWordLike[s],u="text",i=F,s++;else{t.push(c),n.push(!1),x.push("glue"),r.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=G(o);if(s<e.len&&e.kinds[s]==="text"){l.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}l.push(F)}t.push(G(l)),n.push(a),x.push(u),r.push(i)}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function p0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),x=e.kinds.slice(),r=e.starts.slice();for(let s=0;s<t.length-1;s++){if(x[s]!=="text"||x[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const l=e0(t[s]);l!==null&&(t[s]=l.head,t[s+1]=l.tail+t[s+1],r[s+1]=r[s]+l.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function $e(e,t,n){const x=zt();let r=0;const s=[],l=[],a=[],u=[],i=[],o=[],F=[],c=[],N=[],M=[],S=[],E=[];for(const f of x.segment(e))for(const h of l0(f.segment,f.isWordLike??!1,f.index,n)){let D=function(){o[d]!==null&&(l[d]=[Pe(s,o,F,d)],o[d]=null),l[d].push(h.text),a[d]=a[d]||h.isWordLike,c[d]=c[d]||v,N[d]=N[d]||_,M[d]=W,S[d]=V,E[d]=Ue(N[d],y)};const L=h.kind==="text",C=t0(h.text,h.isWordLike,h.kind),v=Z(h.text),_=We(h.text),y=Ne(h.text),W=Me(h.text),V=n0(h.text),d=r-1;t.carryCJKAfterClosingQuote&&L&&r>0&&u[d]==="text"&&v&&c[d]&&M[d]||L&&r>0&&u[d]==="text"&&Xt(h.text)&&c[d]||L&&r>0&&u[d]==="text"&&S[d]?D():L&&r>0&&u[d]==="text"&&h.isWordLike&&_&&E[d]?(D(),a[d]=!0):C!==null&&r>0&&u[d]==="text"&&o[d]===C?F[d]=(F[d]??1)+1:L&&!h.isWordLike&&r>0&&u[d]==="text"&&!c[d]&&(Yt(h.text)||h.text==="-"&&a[d])?D():(s[r]=h.text,l[r]=[h.text],a[r]=h.isWordLike,u[r]=h.kind,i[r]=h.start,o[r]=C,F[r]=C===null?0:1,c[r]=v,N[r]=_,M[r]=W,S[r]=V,E[r]=Ue(_,y),r++)}for(let f=0;f<r;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(l[f])}for(let f=1;f<r;f++)u[f]==="text"&&!a[f]&&ke(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 p=Array.from({length:r},()=>null);let A=-1;for(let f=r-1;f>=0;f--){const h=s[f];if(h.length!==0){if(u[f]==="text"&&!a[f]&&Zt(h)&&A>=0&&u[A]==="text"){const L=p[A]??[];L.push(h),p[A]=L,i[A]=i[f],s[f]="";continue}A=f}}for(let f=0;f<r;f++){const h=p[f];h!=null&&(s[f]=i0(h,s[f]))}let m=0;for(let f=0;f<r;f++){const h=s[f];h.length!==0&&(m!==f&&(s[m]=h,a[m]=a[f],u[m]=u[f],i[m]=i[f]),m++)}s.length=m,a.length=m,u.length=m,i.length=m;const O=E0({len:m,texts:s,isWordLike:a,kinds:u,starts:i}),g=p0(N0(S0(d0(F0(c0(O))))));for(let f=0;f<g.len-1;f++){const h=s0(g.texts[f]);h!==null&&(g.kinds[f]!=="space"&&g.kinds[f]!=="preserved-space"||g.kinds[f+1]!=="text"||!We(g.texts[f+1])||(g.texts[f]=h.space,g.isWordLike[f]=!1,g.kinds[f]=g.kinds[f]==="preserved-space"?"preserved-space":"space",g.texts[f+1]=h.marks+g.texts[f+1],g.starts[f+1]=g.starts[f]+h.space.length))}return g}function h0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let x=0;for(let r=0;r<e.len;r++)e.kinds[r]==="hard-break"&&(n.push({startSegmentIndex:x,endSegmentIndex:r,consumedEndSegmentIndex:r+1}),x=r+1);return x<e.len&&n.push({startSegmentIndex:x,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],x=[],r=[];let s=null,l=!1,a=0,u=!1,i=!1;function o(){s!==null&&(t.push(G(s)),n.push(l),x.push("text"),r.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],N=e.kinds[F],M=e.isWordLike[F],S=e.starts[F];if(N==="text"){const E=Vt(c),p=Ht(c);if(s!==null&&u&&i){s.push(c),l=l||M,u=u||E,i=p;continue}o(),s=[c],l=M,a=S,u=E,i=p;continue}o(),t.push(c),n.push(M),x.push(N),r.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:x,starts:r}}function C0(e,t,n="normal",x="normal"){const r=Tt(n),s=r.mode==="pre-wrap"?Ut(e):Pt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const l=x==="keep-all"?A0($e(s,t,r)):$e(s,t,r);return{normalized:s,chunks:h0(l,r),...l}}let se=null;const je=new Map;let re=null;const m0=96,B0=new RegExp("\\p{Emoji_Presentation}","u"),M0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let he=null;const Ge=new Map;function we(){if(se!==null)return se;if(typeof OffscreenCanvas<"u")return se=new OffscreenCanvas(1,1).getContext("2d"),se;if(typeof document<"u")return se=document.createElement("canvas").getContext("2d"),se;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function g0(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:we().measureText(e).width,containsCJK:Z(e)},t.set(e,n)),n}function Se(){if(re!==null)return re;if(typeof navigator>"u")return re={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},re;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/"),x=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return re={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:x,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},re}function D0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function L0(e){return B0.test(e)||e.includes("️")}function v0(e){return M0.test(e)}function O0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const x=we();x.font=e;const r=x.measureText("😀").width;if(n=0,r>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 l=s.getBoundingClientRect().width;document.body.removeChild(s),r-l>.5&&(n=r-l)}return Ge.set(e,n),n}function k0(e){let t=0;const n=nt();for(const x of n.segment(e))L0(x.segment)&&t++;return t}function w0(e,t){return t.emojiCount===void 0&&(t.emojiCount=k0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-w0(e,t)*n}function b0(e,t,n,x,r){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===r)return t.breakableFitAdvances;t.breakableFitMode=r;const s=nt(),l=[];for(const o of s.segment(e))l.push(o.segment);if(l.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(r==="sum-graphemes"){const o=[];for(const F of l){const c=Q(F,n);o.push(Y(F,c,x))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(r==="pair-context"||l.length>m0){const o=[];let F=null,c=0;for(const N of l){const M=Q(N,n),S=Y(N,M,x);if(F===null)o.push(S);else{const E=F+N,p=Q(E,n);o.push(Y(E,p,x)-c)}F=N,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",i=0;for(const o of l){u+=o;const F=Q(u,n),c=Y(u,F,x);a.push(c-i),i=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function _0(e,t){const n=we();n.font=e;const x=g0(e),r=D0(e),s=t?O0(e,r):0;return{cache:x,fontSize:r,emojiCorrection:s}}function y0(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function st(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function rt(e,t,n=e.widths.length){for(;t<n;){const x=e.kinds[t];if(!y0(x))break;t++}return t}function R0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function W0(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function be(e,t){return t===0?0:e+t}function T0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function P0(e,t,n,x,r){const s=t==="tab"?r+T0(e,n):e.lineEndFitAdvances[n];return be(x,s)}function Ve(e,t,n,x){const r=t==="tab"?0:e.lineEndFitAdvances[n];return be(x,r)}function Ke(e,t,n,x,r){const s=t==="tab"?r:e.lineEndPaintAdvances[n];return be(x,s)}function U0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function I0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function z0(e,t,n,x,r,s){let l=0,a=t;for(;l<e.length;){const u=a+e[l]+s;if((l+1<e.length?u+r:u)>n+x)break;a=u,l++}return{fitCount:l,fittedWidth:a}}function $0(e,t,n){const{widths:x,kinds:r,breakableFitAdvances:s}=e;if(x.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let i=0,o=0,F=!1,c=0,N=0,M=0,S=0,E=-1,p=0;function A(){E=-1,p=0}function m(C=M,v=S,_=o){i++,n?.(_,c,N,C,v),o=0,F=!1,A()}function O(C,v){F=!0,c=C,N=0,M=C+1,S=0,o=v}function g(C,v,_){F=!0,c=C,N=v,M=C,S=v+1,o=_}function f(C,v){if(!F){O(C,v);return}o+=v,M=C+1,S=0}function h(C,v){const _=s[C];for(let y=v;y<_.length;y++){const W=_[y];F?o+W>u?(m(),g(C,y,W)):(o+=W,M=C,S=y+1):g(C,y,W)}F&&M===C&&S===_.length&&(M=C+1,S=0)}let L=0;for(;L<x.length&&!(!F&&(L=rt(e,L),L>=x.length));){const C=x[L],v=r[L],_=st(v);if(!F){C>u&&s[L]!==null?h(L,0):O(L,C),_&&(E=L+1,p=o-C),L++;continue}if(o+C>u){if(_){f(L,C),m(L+1,0,o-C),L++;continue}if(E>=0){if(M>E||M===E&&S>0){m();continue}m(E,0,p);continue}if(C>u&&s[L]!==null){m(),h(L,0),L++;continue}m();continue}f(L,C),_&&(E=L+1,p=o-C),L++}return F&&m(),i}function j0(e,t,n){if(e.simpleLineWalkFastPath)return $0(e,t,n);const{widths:x,kinds:r,breakableFitAdvances:s,discretionaryHyphenWidth:l,chunks:a}=e;if(x.length===0||a.length===0)return 0;const u=Se(),i=u.lineFitEpsilon,o=t+i;let F=0,c=0,N=!1,M=0,S=0,E=0,p=0,A=-1,m=0,O=0,g=null;function f(){A=-1,m=0,O=0,g=null}function h(d=E,D=p,B=c){F++,n?.(B,M,S,d,D),c=0,N=!1,f()}function L(d,D){N=!0,M=d,S=0,E=d+1,p=0,c=D}function C(d,D,B){N=!0,M=d,S=D,E=d,p=D+1,c=B}function v(d,D){if(!N){L(d,D);return}c+=D,E=d+1,p=0}function _(d,D,B,w,I,z){if(!D)return;const K=Ve(e,d,B,I),ne=Ke(e,d,B,I,w);A=B+1,m=c-z+K,O=c-z+ne,g=d}function y(d,D){const B=s[d];for(let w=D;w<B.length;w++){const I=B[w];if(!N)C(d,w,I);else{const z=U0(e,!0,I),K=c+z;I0(e,K)>o?(h(),C(d,w,I)):(c=K,E=d,p=w+1)}}N&&E===d&&p===B.length&&(E=d+1,p=0)}function W(d){if(g!=="soft-hyphen")return!1;const D=s[d];if(D==null)return!1;const{fitCount:B,fittedWidth:w}=z0(D,c,t,i,l,e.letterSpacing);return B===0?!1:(c=w,E=d,p=B,f(),B===D.length?(E=d+1,p=0,!0):(h(d,B,w+l),y(d,B),!0))}function V(d){F++,n?.(0,d.startSegmentIndex,0,d.consumedEndSegmentIndex,0),f()}for(let d=0;d<a.length;d++){const D=a[d];if(D.startSegmentIndex===D.endSegmentIndex){V(D);continue}N=!1,c=0,M=D.startSegmentIndex,S=0,E=D.startSegmentIndex,p=0,f();let B=D.startSegmentIndex;for(;B<D.endSegmentIndex&&!(!N&&(B=rt(e,B,D.endSegmentIndex),B>=D.endSegmentIndex));){const w=r[B],I=st(w),z=W0(e,N,B),K=w==="tab"?R0(c+z,e.tabStopAdvance):x[B],ne=z+K,Ee=P0(e,w,B,z,K);if(w==="soft-hyphen"){N&&(E=B+1,p=0,A=B+1,m=c+l,O=c+l,g=w),B++;continue}if(!N){Ee>o&&s[B]!==null?y(B,0):L(B,K),_(w,I,B,K,z,ne),B++;continue}if(c+Ee>o){const it=c+Ve(e,w,B,z),lt=c+Ke(e,w,B,z,K);if(g==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&m<=o){h(A,0,O);continue}if(g==="soft-hyphen"&&W(B)){B++;continue}if(I&&it<=o){v(B,ne),h(B+1,0,lt),B++;continue}if(A>=0&&m<=o){if(E>A||E===A&&p>0){h();continue}const _e=A;h(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){h(),y(B,0),B++;continue}h();continue}v(B,ne),_(w,I,B,K,z,ne),B++}if(N){const w=A===D.consumedEndSegmentIndex?O:c;h(D.consumedEndSegmentIndex,0,w)}}return F}let Ae=null,He=new WeakMap;function G0(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function Je(e,t,n){let x=n.get(e);if(x!==void 0)return x;x=[];const r=G0();for(const s of r.segment(t[e]))x.push(s.segment);return n.set(e,x),x}function V0(e,t,n,x){return x>0&&e[x-1]==="soft-hyphen"&&!(t===x&&n>0)}function qe(e,t,n,x){for(let r=n;r<x;r++)e+=t[r];return e}function K0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function H0(e,t,n,x,r,s){let l="";const a=V0(e.kinds,n,x,r);for(let u=n;u<r;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&x>0){const i=Je(u,e.segments,t);l=qe(l,i,x,i.length)}else l+=e.segments[u];if(s>0){a&&(l+="-");const u=Je(r,e.segments,t);l=qe(l,u,n===r?x:0,s)}else a&&(l+="-");return l}let Ce=null;function J0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function q0(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function Q0(e,t){const n=[];let x=[],r=0,s=!1,l=!1,a=!1;function u(){x.length!==0&&(n.push({text:x.length===1?x[0]:x.join(""),start:r}),x=[],s=!1,l=!1,a=!1)}function i(F,c,N){x=[F],r=c,s=N,l=Me(F),a=de.has(F)}function o(F,c){x.push(F),s=s||c;const N=Me(F);F.length===1&&ee.has(F)?l=l||N:l=N,a=!1}for(const F of J0().segment(e)){const c=F.segment,N=Z(c);if(x.length===0){i(c,F.index,N);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&N&&l){o(c,N);continue}if(!s&&!N){o(c,N);continue}u(),i(c,F.index,N)}return u(),n}function Y0(e,t,n){return e}function X0(e,t,n,x,r){const s=Se(),{cache:l,emojiCorrection:a}=_0(t,v0(e.normalized)),u=Y("-",Q("-",l),a)+0,o=Y(" ",Q(" ",l),a)*8;if(e.len===0)return q0();const F=[],c=[],N=[],M=[];let S=e.chunks.length<=1&&!0;const E=n?[]:null,p=[],A=[],m=n?[]:null,O=Array.from({length:e.len});function g(C,v,_,y,W,V,d,D){W!=="text"&&W!=="space"&&W!=="zero-width-break"&&(S=!1),F.push(v),c.push(_),N.push(y),M.push(W),E?.push(V),p.push(d),m!==null&&m.push(C)}function f(C,v,_,y,W){const V=Q(C,l),d=Y0(Y(C,V,a)),D=v==="space"||v==="preserved-space"||v==="zero-width-break"?0:d,B=D===0?0:D+0,w=v==="space"||v==="zero-width-break"?0:d;if(W&&y&&C.length>1){let I="sum-graphemes";ue(C)?I="pair-context":s.preferPrefixWidthsForBreakableRuns&&(I="segment-prefixes");const z=b0(C,V,l,a,I);g(C,d,B,w,v,_,z);return}g(C,d,B,w,v,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const v=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],W=e.starts[C];if(y==="soft-hyphen"){g(v,0,u,u,y,W,null);continue}if(y==="hard-break"){g(v,0,0,0,y,W,null);continue}if(y==="tab"){g(v,0,0,0,y,W,null);continue}const V=Q(v,l);if(y==="text"&&V.containsCJK){const D=Q0(v,s);for(let B=0;B<D.length;B++){const w=D[B];f(w.text,"text",W+w.start,_,!Z(w.text))}continue}f(v,y,W,_,!0)}const h=Z0(e.chunks,O,F.length),L=E===null?null:yt(e.normalized,E);return m!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:N,kinds:M,simpleLineWalkFastPath:S,segLevels:L,breakableFitAdvances:p,letterSpacing:r,spacingGraphemeCounts:A,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:h,segments:m}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:N,kinds:M,simpleLineWalkFastPath:S,segLevels:L,breakableFitAdvances:p,letterSpacing:r,spacingGraphemeCounts:A,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:h}}function Z0(e,t,n){const x=[];for(let r=0;r<e.length;r++){const s=e[r],l=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;x.push({startSegmentIndex:l,endSegmentIndex:a,consumedEndSegmentIndex:u})}return x}function en(e,t,n,x){const r="normal",l=C0(e,Se(),x?.whiteSpace,r);return X0(l,t,n,r,0)}function tn(e,t,n){return en(e,t,!0,n)}function nn(e,t,n,x,r,s,l){return{text:H0(e,t,x,r,s,l),width:n,start:{segmentIndex:x,graphemeIndex:r},end:{segmentIndex:s,graphemeIndex:l}}}function sn(e,t,n){const x=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:x};const r=K0(e),s=j0(e,t,(l,a,u,i,o)=>{x.push(nn(e,r,l,a,u,i,o))});return{lineCount:s,height:s*n,lines:x}}const rn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",ln=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=J(()=>{if(!t.infoList||t.infoList.length===0)return 80;let x=0;for(const r of t.infoList){const s=tn(r.label,xn),{lines:l}=sn(s,1e3,20);l.length>0&&(x=Math.max(x,l[0].width))}return Math.ceil(x+16)});return(x,r)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,l=>(j(),le("div",{key:l.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[R("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:ht({width:n.value+"px"})},$(l.label),5),R("span",rn,$(l.value||l.defaultValue),1),l.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>l.onHandler?.()},{default:T(()=>[ae($(l.handlerText),1)]),_:2},1032,["onClick"])):At("",!0)]))),128))])}}});function on(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 an={class:"p-2"},un={class:"flex gap-2 flex-1"},cn={class:"flex gap-2 flex-1"},Fn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),x=ce(),r={OLD:"old",NEW:"new"},s=J(()=>!x.email),l=J(()=>s.value?n("user.bindEmail"):n("user.changeEmail")),a=U(!1),u=U({}),i=U({}),o=U({onSubmit:()=>{c()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),F=J(()=>{const p=[];return s.value||(p.push({type:"input",field:"email",title:n("user.oldEmail"),value:x?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(A,m,O)=>{me.isEmail(m)?O():O(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}}),p.push({type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]})),p.push({type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(A,m,O)=>{me.isEmail(m)?O():O(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}}),p.push({type:"slotAuthCodeNew",field:"newAuthCode",title:s.value?n("user.authCode"):n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}),p});async function c(){o.value.submitBtn.loading=!0,(s.value?H.v1User.usercontrollerBindemail({newEmail:i.value.newEmail,newAuthCode:i.value.newAuthCode}):H.v1User.usercontrollerUpdateemail({email:i.value.email,authCode:i.value.authCode,newEmail:i.value.newEmail,newAuthCode:i.value.newAuthCode})).then(()=>{const A=s.value?n("user.emailBound"):n("user.emailModified");P.success(A),window?.umami?.track(s.value?q.USER_UPDATE_EMAIL_SUCCESS:q.USER_UPDATE_EMAIL_SUCCESS),x.setEmail(i.value.newEmail),E()}).catch(A=>{window?.umami?.track(q.USER_UPDATE_EMAIL_FAILED,{error:String(A)})}).finally(()=>{o.value.submitBtn.loading=!1})}function N(p,{end:A,startCountdown:m}){p===r.OLD?u.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:i.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),m()})}).finally(()=>{A()}):p===r.NEW&&u.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:i.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),m()})}).finally(()=>{A()})}function M(p){return n(`formCreate.${p}`)}function S(){a.value=!0}function E(){a.value=!1}return t({open:S,close:E}),(p,A)=>{const m=Ye,O=oe("form-create");return j(),X(k(Fe),{modelValue:a.value,"onUpdate:modelValue":A[4]||(A[4]=g=>a.value=g),"show-close":!0,width:"500px",title:l.value},{default:T(()=>[R("div",an,[b(O,{modelValue:i.value,"onUpdate:modelValue":A[2]||(A[2]=g=>i.value=g),api:u.value,"onUpdate:api":A[3]||(A[3]=g=>u.value=g),rule:F.value,option:o.value,t:M},Ct({"type-slotAuthCodeNew":T(g=>[R("div",cn,[b(m,{"model-value":String(g.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:f=>g.model.callback(f)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:A[1]||(A[1]=f=>N(r.NEW,f))},null,8,["text"])])]),_:2},[s.value?void 0:{name:"type-slotAuthCodeOld",fn:T(g=>[R("div",un,[b(m,{"model-value":String(g.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:f=>g.model.callback(f)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:A[0]||(A[0]=f=>N(r.OLD,f))},null,8,["text"])])]),key:"0"}]),1032,["modelValue","api","rule","option"])])]),_:1},8,["modelValue","title"])}}}),fn={class:"p-2"},dn={class:"flex gap-2 flex-1"},Nn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),x=ce(),r=xe("baseForm"),s=U(!1),l=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),i=J(()=>[{type:"input",field:"newPassword",title:x.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:x.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:x?.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")),window?.umami?.track(q.USER_UPDATE_PASSWORD_SUCCESS),r.value?.resetFields(),x.setIsPasswordSet(!0),M()}).catch(E=>{window?.umami?.track(q.USER_UPDATE_PASSWORD_FAILED,{error:String(E)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:E}){l.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),E()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function N(){s.value=!0}function M(){s.value=!1}return t({open:N,close:M}),(S,E)=>{const p=Ye,A=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":E[2]||(E[2]=m=>s.value=m),"show-close":!0,width:"500px"},{default:T(()=>[R("div",fn,[b(A,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=m=>a.value=m),api:l.value,"onUpdate:api":E[1]||(E[1]=m=>l.value=m),rule:i.value,option:u.value,t:c},{"type-slotAuthCode":T(m=>[R("div",dn,[b(p,{"model-value":String(m.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>m.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{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"])}}}),Sn={class:"p-2"},En=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),x=ce(),r=Le(),s=U(!1),l=U({onSubmit:()=>{i()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=U({}),u=J(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:x.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 i(){if(l.value.submitBtn.loading=!0,a.value.nickname===x.userInfo.nickname){P.success(n("message.success.update")),l.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{x.setNickname(a.value.nickname),r.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(q.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(N=>{window?.umami?.track(q.USER_UPDATE_NICKNAME_FAILED,{error:String(N)})}).finally(()=>{l.value.submitBtn.loading=!1})}function o(N){return n(`formCreate.${N}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(N,M)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":M[1]||(M[1]=E=>s.value=E),width:"400px"},{default:T(()=>[R("div",Sn,[b(S,{modelValue:a.value,"onUpdate:modelValue":M[0]||(M[0]=E=>a.value=E),rule:u.value,option:l.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),pn=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,x=Dt(),r=mt(),s=Bt(),l=(S,E)=>{c.value.fileList&&(c.value.fileList=E),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},i={autoUpload:!1,cover:!1,onChange:l,onExceed:(S,E)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const p=S[0];p.uid=at(),F.value.handleStart(p);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+E.length}))},beforeUpload:xt(),onError:a},o=U(null),F=U(),c=J(()=>({...i,...me.convertKeysToCamelCase(r),...n})),N=J(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function M(S){F.value=S,x&&(x.exposed=S||{},x.exposeProxy=S||{})}return(S,E)=>(j(),X(Mt(gt(k(ot),{...c.value,ref:M},N.value))))}}),{i18n:hn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(hn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function xt(e={}){const{mode:t="extend",custom:n}=e;return x=>t==="override"&&n?n(x):t==="extend"?Qe(x)?n?n(x):!0:!1:Qe(x)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),x=e.dir+e.key+"."+n,r=new FormData;return r.append("success_action_status","200"),r.append("policy",e.policy),r.append("x-oss-signature",e.signature),r.append("x-oss-signature-version",e.x_oss_signature_version),r.append("x-oss-credential",e.x_oss_credential),r.append("x-oss-date",e.x_oss_date),r.append("key",x),r.append("x-oss-security-token",e.security_token),r.append("Cache-Control","public, max-age=31536000"),r.append("file",t),{host:e.host,filePath:x,formData:r}}async function Cn(e,t){return fetch(e,{method:"POST",body:t})}const mn=["src"],Bn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),x=Le(),r=U([]),s=U(!1),l=xe("avatarUpload"),a=U(),u=J(()=>({limit:1,cover:!0,onError:o,beforeUpload:i,showFileList:!1,httpRequest:M})),i=xt({custom(p){return p.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(p){a.value?.(),P.error(p.message)}async function F(p){if(p.start(),a.value=p.end,!r.value||r.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}l.value?.submit()}function c(p){H.v1User.usercontrollerChangeavatar({avatar:p}).then(()=>{x.updateAvatar(p),E(),P.success(n("user.avatarModified")),window?.umami?.track(q.USER_UPDATE_AVATAR_SUCCESS)}).catch(A=>{window?.umami?.track(q.USER_UPDATE_AVATAR_FAILED,{error:String(A)})}).finally(()=>{a.value?.()})}function N(){l.value?.clearFiles()}async function M(p){const A=await H.v1Oss.osscontrollerCompossdir(),{imageDir:m}=A.data,O=await H.v1Oss.osscontrollerPutpolicy({type:m});if(O.code!==0||!O.data)return P.error(O.message);const{host:g,filePath:f,formData:h}=An(O.data,p.file),L=await Cn(g,h);if(L.ok)c(f);else{const C=await L.text(),v=on(C);P.error(v.message),a.value?.()}}function S(){s.value=!0}function E(){s.value=!1,N()}return t({open:S,close:E}),(p,A)=>{const m=oe("Icon"),O=ct,g=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":A[1]||(A[1]=h=>s.value=h),width:"400px",onClose:N},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(pn),Lt({ref:"avatarUpload","file-list":r.value,"onUpdate:fileList":A[0]||(A[0]=h=>r.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(),le("img",{key:0,src:h,class:"size-full"},null,8,mn)):(j(),X(m,{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(Xe),null,{default:T(({instance:h,loading:L})=>[b(g,{type:"primary",loading:L,onClick:C=>F(h)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Mn=St(Bn,[["__scopeId","data-v-5805bb87"]]),gn={class:"h-full p-[10px]"},Dn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Ln={class:"text-center flex flex-col items-center gap-2 h-[120px]"},vn={class:"flex flex-col gap-10"},On={class:"flex items-center"},kn={class:"size-[48px] flex items-center justify-center"},wn={class:"flex-1"},bn={class:"text-sm text-gray-500"},_n={class:"flex items-center"},yn={class:"size-[48px] flex items-center justify-center"},Rn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},qn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),x=Le(),r=J(()=>n.userInfo),s=xe("emailDialog"),l=xe("passwordDialog"),a=xe("nicknameDialog"),u=xe("avatarDialog"),i=F=>{if(!n.email){P.error(t("user.pleaseBindEmailFirst"));return}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")),window?.umami?.track(q.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=J(()=>[{key:"account",label:t("user.account"),value:r.value?.account},{key:"nickname",label:t("user.nickname"),value:r.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:r.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:r.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:r.value?.createdAt?Ot(r.value.createdAt).format("YYYY-MM-DD"):"--"}]);return vt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const N=Ft,M=ft,S=oe("Icon"),E=De,p=dt;return j(),le("div",gn,[R("div",Dn,[b(M,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[R("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[R("div",Ln,[b(kt,{size:80,shape:"square",src:k(x).avatar,text:k(x).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=A=>u.value?.open())},{default:T(()=>[ae($(r.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),R("h3",null,$(r.value?.account),1)]),b(N),b(k(ln),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(M,{class:"col-start-2"},{header:T(()=>[R("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[R("div",vn,[R("div",On,[R("div",kn,[b(S,{icon:"material-symbols:lock"})]),R("div",wn,[R("h4",null,$(k(t)("user.loginPassword")),1),R("p",bn,$(k(t)("user.passwordTip")),1)]),b(E,{type:"primary",onClick:c[1]||(c[1]=A=>l.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),R("div",_n,[R("div",yn,[b(S,{icon:"material-symbols:mark-email-unread"})]),R("div",Rn,[R("h4",null,$(k(t)("user.emailLogin")),1),R("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:A,loading:m})=>[b(p,{loading:m,"model-value":k(n).isAllowEmailLogin,onChange:O=>i(A)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(Fn,{ref:"emailDialog"},null,512),b(Nn,{ref:"passwordDialog"},null,512),b(En,{ref:"nicknameDialog"},null,512),b(Mn,{ref:"avatarDialog"},null,512)])}}});export{qn as default};