comp-hub 0.29.7 → 0.29.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 (154) hide show
  1. package/README.md +132 -132
  2. package/bin/cli.js +53 -53
  3. package/bin/lib/commands.js +173 -173
  4. package/bin/lib/constants.js +22 -22
  5. package/bin/lib/http.js +62 -62
  6. package/bin/lib/startup.js +183 -183
  7. package/bin/lib/utils.js +112 -112
  8. package/dist/index.js +1 -1
  9. package/dist/website/container/assets/{index-CfBoiGrX.css → index-BlSriQ8o.css} +1 -1
  10. package/dist/website/container/assets/{index-BeeqGiFl.js → index-rRWp31us.js} +1 -1
  11. package/dist/website/container/index.html +32 -32
  12. package/dist/website/container/js/vue2-sfc-loader.js +260 -260
  13. package/dist/website/container/js/vue3-sfc-loader.js +289 -289
  14. package/dist/website/item/assets/index-CDQboxOq.css +1 -0
  15. package/dist/website/item/assets/{index-D3VEpySe.js → index-DIJTHUc5.js} +3 -3
  16. package/dist/website/item/index.html +30 -30
  17. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CSa_pS0b.js +1 -0
  18. package/dist/website/main/assets/BaseDialog.vue_vue_type_script_setup_true_lang-BCEeHWp0.js +1 -0
  19. package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-B9sbaztP.js +1 -0
  20. package/dist/website/main/assets/CanvasAnimation.vue_vue_type_script_setup_true_lang-I_B9sBtb.js +1 -0
  21. package/dist/website/main/assets/EmptyStatusContainer.vue_vue_type_script_setup_true_lang-vaWJXLBi.js +1 -0
  22. package/dist/website/main/assets/LoadingWrapper.vue_vue_type_script_setup_true_lang-Brp0esZx.js +1 -0
  23. package/dist/website/main/assets/PanelBackground.vue_vue_type_script_setup_true_lang-Dp5z6Iw1.js +1 -0
  24. package/dist/website/main/assets/cloud-upload-DRSmr6Qo.js +1 -0
  25. package/dist/website/main/assets/core-YKf42450.js +3 -0
  26. package/dist/website/main/assets/{el-table-column-BaabKDRF.js → el-table-column-B36K2Har.js} +1 -1
  27. package/dist/website/main/assets/home-rounded--9AAXiZb.js +1 -0
  28. package/dist/website/main/assets/index-BHVQkNA2.js +1 -0
  29. package/dist/website/main/assets/index-BV4gqPW9.js +1 -0
  30. package/dist/website/main/assets/{index-9ejOpPXc.js → index-BW8vDkye.js} +3 -3
  31. package/dist/website/main/assets/index-BXjslBXB.js +1 -0
  32. package/dist/website/main/assets/index-BmnVYsjU.js +1 -0
  33. package/dist/website/main/assets/index-C-RbFIGY.js +1 -0
  34. package/dist/website/main/assets/index-C-elMysi.js +1 -0
  35. package/dist/website/main/assets/index-CCE8UKEc.js +1 -0
  36. package/dist/website/main/assets/index-CJu9086M.js +2 -0
  37. package/dist/website/main/assets/index-CN4epH6N.js +1 -0
  38. package/dist/website/main/assets/{index-CyPExloz.css → index-CRFJskzu.css} +1 -1
  39. package/dist/website/main/assets/index-CTk2LB3W.js +1 -0
  40. package/dist/website/main/assets/index-CWZwdzIK.js +1 -0
  41. package/dist/website/main/assets/index-CYRE55Ch.js +1 -0
  42. package/dist/website/main/assets/index-CYvMpsAk.js +1 -0
  43. package/dist/website/main/assets/index-CdGhZYup.js +1 -0
  44. package/dist/website/main/assets/index-CfYP0TVV.js +1 -0
  45. package/dist/website/main/assets/index-D-zBzPPy.css +1 -0
  46. package/dist/website/main/assets/index-D2HIFwH2.js +1 -0
  47. package/dist/website/main/assets/index-D8FvfjtO.js +1 -0
  48. package/dist/website/main/assets/index-DGeSXL3t.js +1 -0
  49. package/dist/website/main/assets/index-DW1TR3IW.js +1 -0
  50. package/dist/website/main/assets/index-DhAkucE9.js +1 -0
  51. package/dist/website/main/assets/index-Dl_h7vrN.js +2 -0
  52. package/dist/website/main/assets/index-DpHwEP_B.js +1 -0
  53. package/dist/website/main/assets/{index-CpXbVBP2.js → index-Ds4AosT0.js} +5 -5
  54. package/dist/website/main/assets/index-DwBDz4RR.js +1 -0
  55. package/dist/website/main/assets/{index-Cl0SK7oa.css → index-DxyEzkir.css} +1 -1
  56. package/dist/website/main/assets/index-EHIrsqSu.js +1 -0
  57. package/dist/website/main/assets/index-FFTkVbVX.css +1 -0
  58. package/dist/website/main/assets/index-M80Ed-Pb.js +1 -0
  59. package/dist/website/main/assets/index-Mryq8zw5.js +5 -0
  60. package/dist/website/main/assets/index-PeLBbpUx.js +1 -0
  61. package/dist/website/main/assets/index-QX7WDOzk.js +1 -0
  62. package/dist/website/main/assets/{index-C8unIZll.css → index-WO9Mrc8w.css} +1 -1
  63. package/dist/website/main/assets/index-qAhDQceU.js +1 -0
  64. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-BfK34NCv.js +1 -0
  65. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DjS3Q9-g.js +1 -0
  66. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DtekInbn.js +1 -0
  67. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-RkEocesH.js +1 -0
  68. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-XpLtazGO.js +2 -0
  69. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-m8-lu9dQ.js +1 -0
  70. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-t5Qr3Cck.js +1 -0
  71. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-D39LYnj3.js → index.vue_vue_type_style_index_0_lang-B-Okzh4k.js} +1 -1
  72. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-BCmjNfvt.js +6 -0
  73. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-CTWQlkPh.js +1 -0
  74. package/dist/website/main/assets/kid-star-DWSbAoDk.js +1 -0
  75. package/dist/website/main/assets/md5-BVscxO09.js +1 -0
  76. package/dist/website/main/assets/settings-DyQPsIIk.js +1 -0
  77. package/dist/website/main/assets/supervised-user-circle-BzCVjgAw.js +1 -0
  78. package/dist/website/main/assets/sync-saved-locally-rounded-Dm232VG8.js +1 -0
  79. package/dist/website/main/assets/terminal-Cpm-3gfc.js +1 -0
  80. package/dist/website/main/assets/useCacheOssStore-BUYcRp33.js +1 -0
  81. package/dist/website/main/assets/{useCompEditStore-DCFM66C4.js → useCompEditStore-CCV6awON.js} +2 -2
  82. package/dist/website/main/assets/{useCompEditStore-DfjsDbzX.css → useCompEditStore-CxnuC31d.css} +1 -1
  83. package/dist/website/main/assets/useCompMetaLocalStore-ke8aERqo.js +1 -0
  84. package/dist/website/main/assets/useKeyword-BWlKaVGC.js +1 -0
  85. package/dist/website/main/assets/useMessage-DGNISOif.js +1 -0
  86. package/dist/website/main/assets/{useTeamHeaders-kxuE8Q8s.js → useTeamHeaders-CXV6avPM.js} +1 -1
  87. package/dist/website/main/assets/useVscodeOpen-W9IOZ_u_.js +1 -0
  88. package/dist/website/main/assets/{vendor-core-B1hRUZR_.js → vendor-core-BHu_Iam8.js} +1 -1
  89. package/dist/website/main/assets/{vendor-ui-CMQTpMsc.js → vendor-ui-Lm7VJSSH.js} +2 -2
  90. package/dist/website/main/assets/{vendor-xterm-mNFjEaKn.js → vendor-xterm-DbWxaMay.js} +1 -1
  91. package/dist/website/main/index.html +4 -4
  92. package/package.json +45 -45
  93. package/dist/website/item/assets/index-BZnlGnqP.css +0 -1
  94. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-sJqw3hBL.js +0 -1
  95. package/dist/website/main/assets/BaseDialog.vue_vue_type_script_setup_true_lang-C89AreA-.js +0 -1
  96. package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-DLPiWvzo.js +0 -1
  97. package/dist/website/main/assets/CanvasAnimation.vue_vue_type_script_setup_true_lang-CPSb3doF.js +0 -1
  98. package/dist/website/main/assets/EmptyStatusContainer.vue_vue_type_script_setup_true_lang-1uLX4usT.js +0 -1
  99. package/dist/website/main/assets/LoadingWrapper.vue_vue_type_script_setup_true_lang-D2kQQ7qs.js +0 -1
  100. package/dist/website/main/assets/PanelBackground.vue_vue_type_script_setup_true_lang-BbH9Ke8c.js +0 -1
  101. package/dist/website/main/assets/cloud-upload-BZUdgCdI.js +0 -1
  102. package/dist/website/main/assets/core-CduF1cve.js +0 -3
  103. package/dist/website/main/assets/home-rounded-CAKszmlU.js +0 -1
  104. package/dist/website/main/assets/index-B2G95uaY.js +0 -1
  105. package/dist/website/main/assets/index-BI1iHj1p.js +0 -2
  106. package/dist/website/main/assets/index-BerOWbR5.js +0 -1
  107. package/dist/website/main/assets/index-Bg2Ll1MS.js +0 -1
  108. package/dist/website/main/assets/index-Bk2GHNDj.js +0 -1
  109. package/dist/website/main/assets/index-Bn9djJ1D.js +0 -1
  110. package/dist/website/main/assets/index-BoBZsqw_.js +0 -1
  111. package/dist/website/main/assets/index-Bth_SWAt.css +0 -1
  112. package/dist/website/main/assets/index-BvkOcMzw.js +0 -1
  113. package/dist/website/main/assets/index-BzJsbiup.js +0 -1
  114. package/dist/website/main/assets/index-C-ssDsWy.js +0 -1
  115. package/dist/website/main/assets/index-C4QJD9AO.js +0 -1
  116. package/dist/website/main/assets/index-CSqRH-KQ.js +0 -1
  117. package/dist/website/main/assets/index-CUiK2qn1.js +0 -1
  118. package/dist/website/main/assets/index-CZwZuk3-.js +0 -1
  119. package/dist/website/main/assets/index-ChEH9AoP.js +0 -1
  120. package/dist/website/main/assets/index-D4G87Mom.js +0 -1
  121. package/dist/website/main/assets/index-D6J3GPPV.js +0 -1
  122. package/dist/website/main/assets/index-DDnVu2nK.js +0 -1
  123. package/dist/website/main/assets/index-DJ4AvgpT.css +0 -1
  124. package/dist/website/main/assets/index-DL5xk_C7.js +0 -1
  125. package/dist/website/main/assets/index-DLWhyZSM.js +0 -2
  126. package/dist/website/main/assets/index-DO0i9je3.js +0 -5
  127. package/dist/website/main/assets/index-DYjUv_9s.js +0 -1
  128. package/dist/website/main/assets/index-De1XOjmk.js +0 -1
  129. package/dist/website/main/assets/index-DmCMPHi-.js +0 -1
  130. package/dist/website/main/assets/index-Dmk2WbAD.js +0 -1
  131. package/dist/website/main/assets/index-DryBDQGT.js +0 -1
  132. package/dist/website/main/assets/index-Dy_awGYi.js +0 -1
  133. package/dist/website/main/assets/index-QDcOlnTv.js +0 -1
  134. package/dist/website/main/assets/index-evWJEs_J.js +0 -1
  135. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-BCWiMLjz.js +0 -1
  136. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-BHRL6G5S.js +0 -1
  137. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CKf4glow.js +0 -1
  138. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-CVAkHJvA.js +0 -1
  139. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Cnaq7WZP.js +0 -1
  140. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-IxBKq7Py.js +0 -2
  141. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-qqOG6j-E.js +0 -1
  142. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-Cm4wH59u.js +0 -6
  143. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-D2h7hdt0.js +0 -1
  144. package/dist/website/main/assets/kid-star-FcmIH9T1.js +0 -1
  145. package/dist/website/main/assets/md5-DEHaPvGx.js +0 -1
  146. package/dist/website/main/assets/settings-DST6rYZI.js +0 -1
  147. package/dist/website/main/assets/supervised-user-circle-5toxzbuX.js +0 -1
  148. package/dist/website/main/assets/sync-saved-locally-rounded-ekj1nT7F.js +0 -1
  149. package/dist/website/main/assets/terminal-CiPichiX.js +0 -1
  150. package/dist/website/main/assets/useCacheOssStore-D1ihuvZi.js +0 -1
  151. package/dist/website/main/assets/useCompMetaLocalStore-CnMRn13T.js +0 -1
  152. package/dist/website/main/assets/useKeyword-2O8Qbig-.js +0 -1
  153. package/dist/website/main/assets/useMessage-C_SU5QaN.js +0 -1
  154. package/dist/website/main/assets/useVscodeOpen-CA_im4Vj.js +0 -1
@@ -1,34 +1,34 @@
1
- <!doctype html>
2
- <html lang="" name="item">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" href="/item/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
1
+ <!doctype html>
2
+ <html lang="" name="item">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" href="/item/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <style>
8
8
  html.dark {
9
9
  color-scheme: dark;
10
10
  }
11
- </style>
12
- <script>
13
- try {
14
- const urlParams = new URLSearchParams(window.location.search);
15
- const isDark = urlParams.get("isDark") === "true";
16
- if (isDark) {
17
- document.documentElement.classList.add("dark");
18
- }
19
- } catch (error) {
20
- console.error("解析 URL 参数失败", error);
21
- }
22
- </script>
23
- <script type="module" crossorigin src="/item/assets/index-D3VEpySe.js"></script>
24
- <link rel="stylesheet" crossorigin href="/item/assets/index-BZnlGnqP.css">
25
- </head>
26
-
27
- <body>
28
- <div id="app"></div>
29
-
30
-
31
- <!-- 勿要删除,全局配置替换字符串 -->
32
- <!--GLOBAL_CONFIG-->
33
- </body>
34
- </html>
11
+ </style>
12
+ <script>
13
+ try {
14
+ const urlParams = new URLSearchParams(window.location.search);
15
+ const isDark = urlParams.get("isDark") === "true";
16
+ if (isDark) {
17
+ document.documentElement.classList.add("dark");
18
+ }
19
+ } catch (error) {
20
+ console.error("解析 URL 参数失败", error);
21
+ }
22
+ </script>
23
+ <script type="module" crossorigin src="/item/assets/index-DIJTHUc5.js"></script>
24
+ <link rel="stylesheet" crossorigin href="/item/assets/index-CDQboxOq.css">
25
+ </head>
26
+
27
+ <body>
28
+ <div id="app"></div>
29
+
30
+
31
+ <!-- 勿要删除,全局配置替换字符串 -->
32
+ <!--GLOBAL_CONFIG-->
33
+ </body>
34
+ </html>
@@ -0,0 +1 @@
1
+ import{e as w}from"./vendor-ui-Lm7VJSSH.js";import{v as x,aA as h,a4 as y,ab as C,j as b,aO as r,r as _,ax as u,X as g,q as B,ap as k,af as I,g as S}from"./vendor-core-BHu_Iam8.js";import{_ as T}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-Brp0esZx.js";const q=x({inheritAttrs:!1,__name:"AuthCodeSendBtn",props:{type:{default:"primary"},disabled:{type:Boolean,default:!1},text:{default:""},countdownText:{default:""},duration:{default:60}},emits:["send","finish"],setup(o,{expose:d,emit:i}){const{t:c}=h(),a=o,s=i,e=I(0);let t=null;const f=S(()=>e.value>0?c(a.countdownText,{n:e.value.toString()}):a.text),l=()=>{e.value=a.duration,t=window.setInterval(()=>{e.value--,e.value<=0&&(clearInterval(t),t=null,s("finish"))},1e3)},p=async n=>{a.disabled||e.value>0||(n.start(),s("send",{end:n.end,startCountdown:l}))};return y(()=>{t&&(clearInterval(t),t=null)}),d({startCountdown:l,getCountdown:()=>e.value}),(n,A)=>(C(),b(u(T),null,{default:r(({instance:m,loading:v})=>[_(u(w),g(n.$attrs,{type:o.type??"default",loading:v,disabled:o.disabled||e.value>0,class:"whitespace-nowrap",onClick:$=>p(m)}),{default:r(()=>[B(k(f.value),1)]),_:1},16,["type","loading","disabled","onClick"])]),_:1}))}});export{q as _};
@@ -0,0 +1 @@
1
+ import{aC as n,q as c}from"./vendor-ui-Lm7VJSSH.js";import{v as p,ab as m,j as u,al as l,B as f,ax as d,g,y as i}from"./vendor-core-BHu_Iam8.js";const y=p({__name:"BaseDialog",setup(_){const a=i(),t=n(),o={modal:!0,appendToBody:!0,draggable:!0},s=g(()=>({...o,...t}));function r(e){a&&(a.exposed=e||{},a.exposeProxy=e||{})}return(e,x)=>(m(),u(l(f(d(c),{...s.value,ref:r},e.$slots))))}});export{y as _};
@@ -0,0 +1 @@
1
+ import{V as d}from"./vendor-ui-Lm7VJSSH.js";import{v as p,aB as i,ay as c,aE as f,ab as V,j as _,p as g,ah as v,aO as S,ai as B,_ as k,A as x,X as A,ax as t,g as P}from"./vendor-core-BHu_Iam8.js";const j=p({inheritAttrs:!1,__name:"BaseSegmented",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(o){const s=i(o,"modelValue"),r=c(),l=f(),n=P(()=>Object.keys(l));return(m,a)=>(V(),_(t(d),A({modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e)},t(r)),g({_:2},[v(n.value,e=>({name:e,fn:S(u=>[B(m.$slots,e,k(x(u)))])}))]),1040,["modelValue"]))}});export{j as _};
@@ -0,0 +1 @@
1
+ import{e as w}from"./index-Ds4AosT0.js";import{ag as S,aF as m,aA as n}from"./vendor-ui-Lm7VJSSH.js";import{v as g,aF as y,a7 as M,a9 as b,ab as T,l as D,i as _,af as R}from"./vendor-core-BHu_Iam8.js";const A={class:"w-full h-full"},P={ref:"canvas",class:"w-full h-full bg-[#333436]"},B=g({__name:"CanvasAnimation",setup(C){const d=y("canvas"),o=R(!1);let h=null;class x{rangeR;r;rSpeed;cvs;ctx;x;y;xSpeed;ySpeed;lastMoveTime;fillStyle;maxTimeDiff=100;constructor({cvs:t,ctx:i}){this.rangeR=[3,7],this.r=n(this.rangeR[0],this.rangeR[1]),this.rSpeed=n(-1,1),this.cvs=t,this.ctx=i,this.x=n(0+this.r,this.cvs.width-this.r),this.y=n(0+this.r,this.cvs.height-this.r),this.xSpeed=n(-10,10),this.ySpeed=n(-10,10),this.lastMoveTime=null,this.fillStyle=w.randomColor()}setLastMoveTime(t){this.lastMoveTime=t}draw(){if(this.lastMoveTime){const s=Date.now()-this.lastMoveTime,e=Math.min(s,this.maxTimeDiff)/1e3;let a=this.x+e*this.xSpeed,c=this.y+e*this.ySpeed,l=this.r+e*this.rSpeed;l<=this.rangeR[0]?(l=this.rangeR[0],this.rSpeed=Math.abs(this.rSpeed)):l>=this.rangeR[1]&&(l=this.rangeR[1],this.rSpeed=-Math.abs(this.rSpeed)),a-this.r<0?(a=this.r,this.xSpeed=Math.abs(this.xSpeed)):a+this.r>this.cvs.width&&(a=this.cvs.width-this.r,this.xSpeed=-Math.abs(this.xSpeed)),c-this.r<0?(c=this.r,this.ySpeed=Math.abs(this.ySpeed)):c+this.r>this.cvs.height&&(c=this.cvs.height-this.r,this.ySpeed=-Math.abs(this.ySpeed)),this.x=a,this.y=c,this.r=l}const t=Math.max(0,this.r);this.ctx.beginPath(),this.ctx.arc(this.x,this.y,t,0,2*Math.PI),this.ctx.fillStyle=this.fillStyle,this.ctx.fill(),this.lastMoveTime=Date.now()}}class u{points;maxDis;cvs;ctx;constructor({pointNumber:t=30,maxDis:i=100,cvs:s,ctx:e}){this.points=Array(t).fill(0).map(()=>new x({cvs:s,ctx:e})),this.maxDis=i,this.cvs=s,this.ctx=e}resetPointsTime(){const t=Date.now();this.points.forEach(i=>{i.setLastMoveTime(t)})}draw(){if(o.value){if(document.hidden){setTimeout(()=>this.draw(),100);return}requestAnimationFrame(()=>this.draw()),this.ctx.clearRect(0,0,this.cvs.width,this.cvs.height);for(const[t,i]of this.points.entries()){i.draw();for(const s of this.points.slice(t+1)){const e=Math.sqrt((i.x-s.x)**2+(i.y-s.y)**2);isNaN(e)||e>this.maxDis||(this.ctx.beginPath(),this.ctx.moveTo(i.x,i.y),this.ctx.lineTo(s.x,s.y),this.ctx.strokeStyle=`rgba(200,200,200,${Math.max(0,Math.min(1,1-e/this.maxDis))})`,this.ctx.stroke(),this.ctx.closePath())}}}}}function p(){if(!d.value)return;console.log("渲染动画"),o.value=!0;const r=window.innerWidth,t=110*window.innerWidth/r,i=80*window.innerWidth/r,s=d.value,e=s.getContext("2d");if(!e)return;const a=window.devicePixelRatio||1;s.width=window.innerWidth*a,s.height=window.innerHeight*a,h&&(h=null),h=new u({pointNumber:Math.floor(t),maxDis:Math.floor(i),cvs:s,ctx:e}),h.draw()}const f=S(p,200);function v(){document.hidden?o.value=!1:d.value&&h&&(o.value=!0,h.resetPointsTime(),h.draw())}return m(window,"resize",f),m(document,"visibilitychange",v),M(()=>{f()}),b(()=>{o.value=!1,h=null}),(r,t)=>(T(),D("div",A,[_("canvas",P,null,512)]))}});export{B as _};
@@ -0,0 +1 @@
1
+ import{w as r}from"./vendor-ui-Lm7VJSSH.js";import{v as i,aA as p,ab as n,l as c,ai as s,j as m,ax as u,k as y,g as d}from"./vendor-core-BHu_Iam8.js";const B=i({__name:"EmptyStatusContainer",props:{isEmpty:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyDescription:{type:String,default:""}},setup(e){const a=e,{t:o}=p(),l=d(()=>a.emptyDescription||o("common.empty"));return(t,f)=>(n(),c("div",null,[e.isEmpty?s(t.$slots,"empty-content",{key:0},()=>[e.loading?y("",!0):(n(),m(u(r),{key:0,class:"flex justify-center items-center",description:l.value},null,8,["description"]))]):s(t.$slots,"default",{key:1})]))}});export{B as _};
@@ -0,0 +1 @@
1
+ import{v as o,ai as r,af as s}from"./vendor-core-BHu_Iam8.js";const u=o({__name:"LoadingWrapper",setup(f){const e=s(!1);function a(){e.value=!0}function n(){e.value=!1}return(t,i)=>r(t.$slots,"default",{instance:{start:a,end:n},loading:e.value})}});export{u as _};
@@ -0,0 +1 @@
1
+ import{v as s,af as n,aN as l,ab as c,l as p,_ as u,A as f,ai as d}from"./vendor-core-BHu_Iam8.js";const m=s({__name:"PanelBackground",props:{bg:{type:String,default:""}},setup(t){const o=t,e=n(o.bg),r=a=>{e.value=a??""};return l(()=>{e.value=o.bg}),(a,i)=>(c(),p("div",u(f(a.$attrs)),[d(a.$slots,"default",{bg:e.value,updateColor:r})],16))}});export{m as _};
@@ -0,0 +1 @@
1
+ import{I as o}from"./index-CWZwdzIK.js";import{ab as a,j as c,ax as h}from"./vendor-core-BHu_Iam8.js";const i='<path class="n-b8vgsez"/>',d={__name:"cloud-upload",props:["width","height"],setup(t){const e={width:24,height:24};return(n,s)=>(a(),c(h(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:cloud-upload"},null,8,["width","height"]))}};export{d as default};
@@ -0,0 +1,3 @@
1
+ import{am as Kt}from"./vendor-ui-Lm7VJSSH.js";var re,ve;function Ft(){if(ve)return re;ve=1;function ce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&ce(i)}),e}class oe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ae(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function T(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Ce="</span>",le=e=>!!e.scope,Le=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class He{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=ae(t)}openNode(t){if(!le(t))return;const i=Le(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){le(t)&&(this.buffer+=Ce)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Z{constructor(){this.rootNode=ue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=ue({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{Z._collapse(i)}))}}class je extends Z{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new He(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function j(e){return e?typeof e=="string"?e:e.source:null}function fe(e){return D("(?=",e,")")}function Pe(e){return D("(?:",e,")*")}function Ue(e){return D("(?:",e,")?")}function D(...e){return e.map(i=>j(i)).join("")}function $e(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function J(...e){return"("+($e(e).capture?"":"?:")+e.map(u=>j(u)).join("|")+")"}function ge(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ge(e,t){const i=e&&e.exec(t);return i&&i.index===0}const We=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=j(u),c="";for(;_.length>0;){const r=We.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ke=/\b\B/,he="[a-zA-Z]\\w*",V="[a-zA-Z_]\\w*",pe="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",Fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ze=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=D(t,/.*\b/,e.binary,/\b.*/)),T({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},Xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},Ye={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},Ze={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,i={}){const u=T({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=J("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:D(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Je=$("//","$"),qe=$("/\\*","\\*/"),Ve=$("#","$"),Qe={scope:"number",begin:pe,relevance:0},me={scope:"number",begin:de,relevance:0},et={scope:"number",begin:Ee,relevance:0},tt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]},nt={scope:"title",begin:he,relevance:0},it={scope:"title",begin:V,relevance:0},st={begin:"\\.\\s*"+V,relevance:0};var G=Object.freeze({__proto__:null,APOS_STRING_MODE:Xe,BACKSLASH_ESCAPE:P,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:Ee,COMMENT:$,C_BLOCK_COMMENT_MODE:qe,C_LINE_COMMENT_MODE:Je,C_NUMBER_MODE:me,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:Ve,IDENT_RE:he,MATCH_NOTHING_RE:Ke,METHOD_GUARD:st,NUMBER_MODE:Qe,NUMBER_RE:pe,PHRASAL_WORDS_MODE:Ze,QUOTE_STRING_MODE:Ye,REGEXP_MODE:tt,RE_STARTERS_RE:Fe,SHEBANG:ze,TITLE_MODE:nt,UNDERSCORE_IDENT_RE:V,UNDERSCORE_TITLE_MODE:it});function rt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ct(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=rt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function at(e,t){Array.isArray(e.illegal)&&(e.illegal=J(...e.illegal))}function lt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ut(e,t){e.relevance===void 0&&(e.relevance=1)}const ft=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=D(i.beforeMatch,fe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],ht="keyword";function be(e,t,i=ht){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,be(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,pt(l[0],l[1])]})}}function pt(e,t){return t?Number(t):dt(e)?0:1}function dt(e){return gt.includes(e.toLowerCase())}const _e={},v=e=>{console.error(e)},Me=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},W=new Error;function xe(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=ge(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Et(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),W;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),W;xe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function bt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),W;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),W;xe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Mt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Et(e),bt(e)}function xt(e){function t(c,r){return new RegExp(j(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=ge(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const w=l.findIndex((U,m)=>m>0&&U!==void 0),M=this.matchIndexes[w];return l.splice(0,w),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([w,M])=>l.addRule(w,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let w=l.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ct,lt,Mt,ft].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[ot,at,ut].forEach(M=>M(c,r)),c.isCompiled=!0;let w=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),w=c.keywords.$pattern,delete c.keywords.$pattern),w=w||/\w+/,c.keywords&&(c.keywords=be(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(w,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=j(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return wt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=T(e.classNameAliases||{}),_(e)}function we(e){return e?e.endsWithParent||we(e.starts):!1}function wt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return T(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?T(e,{starts:e.starts?T(e.starts):null}):Object.isFrozen(e)?T(e):e}var Ot="11.11.1";class Rt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const Q=ae,Oe=T,Re=Symbol("nomatch"),yt=7,ye=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:je};function l(n){return r.noHighlightRe.test(n)}function w(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=I(h[1]);return d||(Me(_.replace("{}",h[1])),Me("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||I(d))}function M(n,a,h){let d="",x="";typeof a=="object"?(d=n,h=a.ignoreIllegals,x=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),x=n,d=a),h===void 0&&(h=!0);const S={code:d,language:x};F("before:highlight",S);const B=S.result?S.result:U(S.language,S.code,h);return B.code=S.code,F("after:highlight",B),B}function U(n,a,h,d){const x=Object.create(null);function S(s,o){return s.keywords[o]}function B(){if(!f.keywords){O.addText(E);return}let s=0;f.keywordPatternRe.lastIndex=0;let o=f.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(s,o.index);const p=A.case_insensitive?o[0].toLowerCase():o[0],R=S(f,p);if(R){const[k,Gt]=R;if(O.addText(g),g="",x[p]=(x[p]||0)+1,x[p]<=yt&&(Y+=Gt),k.startsWith("_"))g+=o[0];else{const Wt=A.classNameAliases[k]||k;N(o[0],Wt)}}else g+=o[0];s=f.keywordPatternRe.lastIndex,o=f.keywordPatternRe.exec(E)}g+=E.substring(s),O.addText(g)}function z(){if(E==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){O.addText(E);return}s=U(f.subLanguage,E,!0,De[f.subLanguage]),De[f.subLanguage]=s._top}else s=ee(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(Y+=s.relevance),O.__addSublanguage(s._emitter,s.language)}function y(){f.subLanguage!=null?z():B(),E=""}function N(s,o){s!==""&&(O.startScope(o),O.addText(s),O.endScope())}function ke(s,o){let g=1;const p=o.length-1;for(;g<=p;){if(!s._emit[g]){g++;continue}const R=A.classNameAliases[s[g]]||s[g],k=o[g];R?N(k,R):(E=k,B(),E=""),g++}}function Te(s,o){return s.scope&&typeof s.scope=="string"&&O.openNode(A.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(N(E,A.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),E=""):s.beginScope._multi&&(ke(s.beginScope,o),E="")),f=Object.create(s,{parent:{value:f}}),f}function Ie(s,o,g){let p=Ge(s.endRe,g);if(p){if(s["on:end"]){const R=new oe(s);s["on:end"](o,R),R.isMatchIgnored&&(p=!1)}if(p){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return Ie(s.parent,o,g)}function Ht(s){return f.matcher.regexIndex===0?(E+=s[0],1):(se=!0,0)}function jt(s){const o=s[0],g=s.rule,p=new oe(g),R=[g.__beforeBegin,g["on:begin"]];for(const k of R)if(k&&(k(s,p),p.isMatchIgnored))return Ht(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),y(),!g.returnBegin&&!g.excludeBegin&&(E=o)),Te(g,s),g.returnBegin?0:o.length}function Pt(s){const o=s[0],g=a.substring(s.index),p=Ie(f,s,g);if(!p)return Re;const R=f;f.endScope&&f.endScope._wrap?(y(),N(o,f.endScope._wrap)):f.endScope&&f.endScope._multi?(y(),ke(f.endScope,s)):R.skip?E+=o:(R.returnEnd||R.excludeEnd||(E+=o),y(),R.excludeEnd&&(E=o));do f.scope&&O.closeNode(),!f.skip&&!f.subLanguage&&(Y+=f.relevance),f=f.parent;while(f!==p.parent);return p.starts&&Te(p.starts,s),R.returnEnd?0:o.length}function Ut(){const s=[];for(let o=f;o!==A;o=o.parent)o.scope&&s.unshift(o.scope);s.forEach(o=>O.openNode(o))}let X={};function Be(s,o){const g=o&&o[0];if(E+=s,g==null)return y(),0;if(X.type==="begin"&&o.type==="end"&&X.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const p=new Error(`0 width match regex (${n})`);throw p.languageName=n,p.badRule=X.rule,p}return 1}if(X=o,o.type==="begin")return jt(o);if(o.type==="illegal"&&!h){const p=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw p.mode=f,p}else if(o.type==="end"){const p=Pt(o);if(p!==Re)return p}if(o.type==="illegal"&&g==="")return E+=`
3
+ `,1;if(ie>1e5&&ie>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const A=I(n);if(!A)throw v(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const $t=xt(A);let ne="",f=d||$t;const De={},O=new r.__emitter(r);Ut();let E="",Y=0,C=0,ie=0,se=!1;try{if(A.__emitTokens)A.__emitTokens(a,O);else{for(f.matcher.considerAll();;){ie++,se?se=!1:f.matcher.considerAll(),f.matcher.lastIndex=C;const s=f.matcher.exec(a);if(!s)break;const o=a.substring(C,s.index),g=Be(o,s);C=s.index+g}Be(a.substring(C))}return O.finalize(),ne=O.toHTML(),{language:n,value:ne,relevance:Y,illegal:!1,_emitter:O,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:Q(a),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:C,context:a.slice(C-100,C+100),mode:s.mode,resultSoFar:ne},_emitter:O};if(b)return{language:n,value:Q(a),illegal:!1,relevance:0,errorRaised:s,_emitter:O,_top:f};throw s}}function m(n){const a={value:Q(n),illegal:!1,relevance:0,_top:c,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function ee(n,a){a=a||r.languages||Object.keys(t);const h=m(n),d=a.filter(I).filter(Ae).map(y=>U(y,n,!1));d.unshift(h);const x=d.sort((y,N)=>{if(y.relevance!==N.relevance)return N.relevance-y.relevance;if(y.language&&N.language){if(I(y.language).supersetOf===N.language)return 1;if(I(N.language).supersetOf===y.language)return-1}return 0}),[S,B]=x,z=S;return z.secondBest=B,z}function St(n,a,h){const d=a&&i[a]||h;n.classList.add("hljs"),n.classList.add(`language-${d}`)}function te(n){let a=null;const h=w(n);if(l(h))return;if(F("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new Rt("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const d=a.textContent,x=h?M(d,{language:h,ignoreIllegals:!0}):ee(d);n.innerHTML=x.value,n.dataset.highlighted="yes",St(n,h,x.language),n.result={language:x.language,re:x.relevance,relevance:x.relevance},x.secondBest&&(n.secondBest={language:x.secondBest.language,relevance:x.secondBest.relevance}),F("after:highlightElement",{el:n,result:x,text:d})}function Nt(n){r=Oe(r,n)}const At=()=>{K(),L("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function kt(){K(),L("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Se=!1;function K(){function n(){K()}if(document.readyState==="loading"){Se||window.addEventListener("DOMContentLoaded",n,!1),Se=!0;return}document.querySelectorAll(r.cssSelector).forEach(te)}function Tt(n,a){let h=null;try{h=a(e)}catch(d){if(v("Language definition for '{}' could not be registered.".replace("{}",n)),b)v(d);else throw d;h=c}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&Ne(h.aliases,{languageName:n})}function It(n){delete t[n];for(const a of Object.keys(i))i[a]===n&&delete i[a]}function Bt(){return Object.keys(t)}function I(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function Ne(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=a})}function Ae(n){const a=I(n);return a&&!a.disableAutodetect}function Dt(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function vt(n){Dt(n),u.push(n)}function Ct(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function F(n,a){const h=n;u.forEach(function(d){d[h]&&d[h](a)})}function Lt(n){return L("10.7.0","highlightBlock will be removed entirely in v12.0"),L("10.7.0","Please use highlightElement now."),te(n)}Object.assign(e,{highlight:M,highlightAuto:ee,highlightAll:K,highlightElement:te,highlightBlock:Lt,configure:Nt,initHighlighting:At,initHighlightingOnLoad:kt,registerLanguage:Tt,unregisterLanguage:It,listLanguages:Bt,getLanguage:I,registerAliases:Ne,autoDetection:Ae,inherit:Oe,addPlugin:vt,removePlugin:Ct}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=Ot,e.regex={concat:D,lookahead:fe,either:J,optional:Ue,anyNumberOfTimes:Pe};for(const n in G)typeof G[n]=="object"&&ce(G[n]);return Object.assign(e,G),e},H=ye({});return H.newInstance=()=>ye({}),re=H,H.HighlightJS=H,H.default=H,re}var zt=Ft();const Zt=Kt(zt);export{Zt as H};
@@ -1 +1 @@
1
- import{al as n,aj as i}from"./vendor-ui-CMQTpMsc.js";import{I as p,aA as l,O as d,P as m,S as u,R as f,a1 as a,a2 as y,u as o,Y as x,a0 as w}from"./vendor-core-B1hRUZR_.js";const h=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{await navigator.clipboard.writeText(e)}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},_={class:"flex items-center gap-[10px]"},E=p({__name:"CopyText",props:{text:{type:String,default:""}},setup(e){const{t}=l(),r=e;async function s(){await h(r.text),i.success(t("common.copySuccess"))}return(c,g)=>(d(),m("div",_,[u(c.$slots,"default",{},()=>[f("span",null,a(e.text),1)]),y(o(n),{type:"primary",href:"javascript:void(0)",onClick:s},{default:x(()=>[w(a(o(t)("common.copy")),1)]),_:1})]))}});export{E as _};
1
+ import{D as n,J as i}from"./vendor-ui-Lm7VJSSH.js";import{v as p,aA as l,ab as d,l as m,ai as f,i as u,ap as a,r as x,ax as o,aO as y,q as w}from"./vendor-core-BHu_Iam8.js";const h=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{await navigator.clipboard.writeText(e)}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},_={class:"flex items-center gap-[10px]"},E=p({__name:"CopyText",props:{text:{type:String,default:""}},setup(e){const{t}=l(),r=e;async function s(){await h(r.text),i.success(t("common.copySuccess"))}return(c,g)=>(d(),m("div",_,[f(c.$slots,"default",{},()=>[u("span",null,a(e.text),1)]),x(o(n),{type:"primary",href:"javascript:void(0)",onClick:s},{default:y(()=>[w(a(o(t)("common.copy")),1)]),_:1})]))}});export{E as _};
@@ -0,0 +1 @@
1
+ import{I as o}from"./index-CWZwdzIK.js";import{ab as h,j as a,ax as n}from"./vendor-core-BHu_Iam8.js";const i='<path class="ox_sfhbjq"/>',l={__name:"home-rounded",props:["width","height"],setup(t){const e={width:24,height:24};return(c,s)=>(h(),a(n(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:home-rounded"},null,8,["width","height"]))}};export{l as default};
@@ -0,0 +1 @@
1
+ import{a2 as Q,e as W,a3 as G,W as E,L as J,b as X,K as Z,J as I}from"./vendor-ui-Lm7VJSSH.js";import{B as q,n as u,O as M}from"./index-Ds4AosT0.js";import"./el-table-column-B36K2Har.js";import{v as ee,aA as ae,aD as te,a7 as oe,ab as p,l as _,r as m,aO as l,_ as T,A as C,q as U,ap as v,ax as i,F as O,ah as B,j as D,i as ne,af as b,g as t,ao as S}from"./vendor-core-BHu_Iam8.js";import{b as se}from"./index.vue_vue_type_script_setup_true_lang-XpLtazGO.js";import{h as N}from"./moment-B-YVwB4U.js";import{u as le}from"./useTeamHeaders-CXV6avPM.js";import{_ as re}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-Brp0esZx.js";import"./index-BXjslBXB.js";import"./useCompMetaLocalStore-ke8aERqo.js";import"./useCacheOssStore-BUYcRp33.js";import"./useVscodeOpen-W9IOZ_u_.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BCEeHWp0.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-vaWJXLBi.js";import"./useMessage-DGNISOif.js";const ce={class:"size-full"},me={class:"text-gray-300"},pe={key:0,class:"flex flex-wrap gap-1"},ie={key:1},Me=ee({__name:"index",setup(ue){const{t:a}=ae(),V=te(),{headers:d,teamId:h}=le(),y=se(h)(),w=b([]),A=b([]),k=b(!1);async function Y(e){k.value=!0;const c=(await u.v1Comp.compcontrollerTags({keyword:e})).data?.rows??[];A.value=c.map(n=>({value:n,label:n})),k.value=!1}const f=b({data:[],column:[{prop:"name",label:t(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:t(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:t(()=>a("comp.version")),align:"center"},{prop:"desc",label:t(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{slot:"tags",prop:"tags",label:t(()=>a("comp.tags")),align:"center"},{prop:"createdAt",label:t(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?N(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:t(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?N(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:t(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:t(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:S(X),label:t(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:t(()=>a("comp.keywordPlaceholder")),fetchSuggestions:R,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"tags",component:S(E),label:t(()=>a("comp.tags")),value:[],attributes:{multiple:!0,filterable:!0,remote:!0,clearable:!0,reserveKeyword:!1,defaultFirstOption:!0,placeholder:t(()=>a("comp.pleaseInputTags")),remoteMethod:Y,loading:k,options:A,style:"width: 240px"}}]},pagination:{total:0},fixedHeight:!1,fetchData:$}),P=t(()=>w.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function R(e,o){if(e.length<=1)return o([]);u.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:d}).then(c=>{const{keywords:n=[]}=c.data||{};o(n)})}async function $(e){const o=await u.v1Team.teamcontrollerTeamcomps({...e,tags:Array.isArray(e.tags)?e.tags.join(","):e.tags||"",scene:"management"},{headers:d}),{rows:c,total:n}=o.data||{};f.value.data=c||[],f.value.pagination.total=n||0}async function H(e,o){o.start();try{if(await Z.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await u.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:d}).then(()=>{I.success(a("message.success.delete")),f.value.data=f.value.data.filter(n=>n._id!==e._id),y.setTeamDetail({...y.teamDetail,compCount:y.teamDetail.compCount-1}),window?.umami?.track(M.TEAM_COMP_REMOVE,{teamId:h,compId:e._id,compName:e.name})})}finally{o.end()}}function F(e){V.push({path:`/previewTeam/${h}/${e._id}`})}function z(){u.v1Team.teamcontrollerAllmember({headers:d}).then(e=>{w.value=e.data?.rows||[]})}function K(e){const o={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};u.v1Team.teamcontrollerUpdatecompcanupdateusers(o,{headers:d}).then(()=>{I.success(a("message.success.update")),window?.umami?.track(M.TEAM_COMP_PERMISSION_CHANGE,{teamId:h,compId:e._id,userIds:o.canUpdateUserIds})})}return oe(()=>{z()}),(e,o)=>{const c=J,n=Q,L=G,x=W;return p(),_("div",ce,[m(i(q),{tableConfig:f.value,border:""},{canUpdateUsers:l(({col:g})=>[m(n,T(C(g)),{default:l(({row:r})=>[m(i(E),{modelValue:r.canUpdateUsers,"onUpdate:modelValue":s=>r.canUpdateUsers=s,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:i(a)("team.selectCanUpdateUser"),onChange:s=>K(r)},{header:l(()=>[ne("span",me,v(i(a)("team.authorAutoAuth")),1)]),default:l(()=>[(p(!0),_(O,null,B(P.value,s=>(p(),D(c,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:1},16)]),tags:l(({col:g})=>[m(n,T(C(g)),{default:l(({row:r})=>[r.tags?.length?(p(),_("div",pe,[(p(!0),_(O,null,B(r.tags,s=>(p(),D(L,{key:s,size:"small","disable-transitions":!0},{default:l(()=>[U(v(s),1)]),_:2},1024))),128))])):(p(),_("span",ie,"--"))]),_:1},16)]),operation:l(({col:g})=>[m(n,T(C(g)),{default:l(({row:r})=>[m(x,{type:"primary",onClick:s=>F(r)},{default:l(()=>[U(v(i(a)("common.preview")),1)]),_:1},8,["onClick"]),m(i(re),null,{default:l(({instance:s,loading:j})=>[m(x,{type:"danger",loading:j,onClick:de=>H(r,s)},{default:l(()=>[U(v(i(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Me as default};
@@ -0,0 +1 @@
1
+ import{aJ as P,U as A,b as x,W as U}from"./vendor-ui-Lm7VJSSH.js";import{o as s,B as K,n as c,O as B}from"./index-Ds4AosT0.js";import{c as N,a as Y}from"./index.vue_vue_type_script_setup_true_lang-XpLtazGO.js";import{_ as F}from"./index.vue_vue_type_style_index_0_lang-CTWQlkPh.js";import{c as H}from"./useCompEditStore-CCV6awON.js";import{v as V,aA as $,y as z,aC as Q,aD as W,ac as d,aF as y,a9 as j,aP as G,ax as l,ab as J,l as X,r as m,aO as C,af as f,g as n,ao as E,Y as Z}from"./vendor-core-BHu_Iam8.js";import{u as q}from"./useKeyword-BWlKaVGC.js";import"./index-BXjslBXB.js";import"./useCompMetaLocalStore-ke8aERqo.js";import"./useCacheOssStore-BUYcRp33.js";import"./useVscodeOpen-W9IOZ_u_.js";import"./useTeamHeaders-CXV6avPM.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BCEeHWp0.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-vaWJXLBi.js";import"./useMessage-DGNISOif.js";import"./v4-EwEgHOG0.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-B-Okzh4k.js";import"./core-YKf42450.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-Dp5z6Iw1.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-B9sbaztP.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-Brp0esZx.js";const ee={class:"size-full p-[10px] pr-0"},Ie=V({__name:"index",setup(te){const{t:i}=$(),h=z()?.uid,_=Q(),v=W(),o=N(_.path)();d(s.PROVIDE_KEY_COMP_LIST_STORE,o);const O=H(_.path,s.DIALOG_TYPE_EDIT)();d(s.PROVIDE_KEY_COMP_EDIT_STORE,O);const g=new Map;d(s.PROVIDE_KEY_CALLBACKS,g);const T=y("compUpdateDialog"),I=y("compIframeContainer"),w=f([]),u=f(!1);async function S(e){u.value=!0;const r=(await c.v1Comp.compcontrollerTags({keyword:e})).data?.rows??[];w.value=r.map(a=>({value:a,label:a})),u.value=!1}const p=f({data:[],search:{column:[{prop:"keyword",component:E(x),label:n(()=>i("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:n(()=>i("comp.keywordPlaceholder")),fetchSuggestions:k,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"tags",component:E(U),label:n(()=>i("comp.tags")),value:[],attributes:{multiple:!0,filterable:!0,remote:!0,clearable:!0,reserveKeyword:!1,defaultFirstOption:!0,placeholder:n(()=>i("comp.pleaseInputTags")),remoteMethod:S,loading:u,options:w,style:"width: 240px"}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:R}),b=n(()=>p.value?.search?.column[0]?.value??"");q(b,I);function k(e,t){if(e.length<=1)return t([]);c.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compMy"}).then(r=>{const{keywords:a=[]}=r.data||{};t(a)})}async function R(e){o.renderList([]),await Z(),o.setLoading(!0),e.keyword&&window?.umami?.track(B.SEARCH_COMPONENT,{keyword:e.keyword,page:"mine"});const t=await c.v1Comp.compcontrollerMycomps({...e,tags:Array.isArray(e.tags)?e.tags.join(","):e.tags||""}),{rows:r,total:a}=t.data??{};o.renderList(r??[]),p.value.pagination.total=a??0}function D(e){v.push({path:`/preview/${e}`})}async function L(e){T.value?.open(e)}function M(e){c.v1Comp.compcontrollerCompdetail({compId:e}).then(t=>{o.updateCompListItemById(e,t.data)})}return g.set(s.COMP_METHOD_KEY_AFTER_COMP_DEL,()=>{p.value.pagination.total--}),j(()=>{o.$reset()}),(e,t)=>{const r=A,a=P;return G((J(),X("div",ee,[m(l(K),{tableConfig:p.value},{table:C(()=>[m(r,{always:"",wrapClass:"pr-[10px]"},{default:C(()=>[m(Y,{ref:"compIframeContainer",iuid:l(h),compType:l(s).IFRAME_ROUTES.CONTAINER.MINE,onPreview:D,onUpdate:L},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"]),m(F,{ref:"compUpdateDialog",onUpdateSuccess:M},null,512)])),[[a,l(o).loading]])}}});export{Ie as default};
@@ -1,4 +1,4 @@
1
- import{s as De,Q as Ye,aj as P,a1 as ot,at,t as ut,q as ct,N as Ft,ao as ft,a5 as dt}from"./vendor-ui-CMQTpMsc.js";import{l as ce,I as me,b as H,O as J,a as Le,m as Nt,_ as St}from"./index-CpXbVBP2.js";/* empty css */import{I as te,O as j,P as le,H as Et,af as pt,R as W,T as At,a1 as $,Q as X,Y as T,a0 as ae,$ as ht,m as q,aA as ie,ak as oe,a2 as b,u as k,a as I,aC as re,ac as Ct,X as mt,_ as Bt,J as Mt,h as gt,W as Dt,f as Lt}from"./vendor-core-B1hRUZR_.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-sJqw3hBL.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-C89AreA-.js";import{m as ye}from"./md5-DEHaPvGx.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-D2kQQ7qs.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-BCWiMLjz.js";import"./useCacheOssStore-D1ihuvZi.js";const kt=["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"],We=[[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 wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
1
+ import{e as De,A as Ye,J as P,a9 as ot,al as at,x as ut,y as ct,r as Ft,f as ft,a0 as dt}from"./vendor-ui-Lm7VJSSH.js";import{y as ce,e as me,n as H,O as J,J as Le,p as Nt,l as St}from"./index-Ds4AosT0.js";/* empty css */import{v as te,ab as j,l as le,F as Et,ah as pt,i as W,$ as At,ap as $,j as X,aO as T,q as ae,k as ht,g as q,aA as ie,aj as oe,r as b,ax as k,af as U,aF as re,ay as Ct,aE as mt,al as Bt,B as Mt,y as gt,X as Dt,a7 as Lt}from"./vendor-core-BHu_Iam8.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CSa_pS0b.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BCEeHWp0.js";import{m as ye}from"./md5-BVscxO09.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-Brp0esZx.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-DjS3Q9-g.js";import"./useCacheOssStore-BUYcRp33.js";const kt=["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"],We=[[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 wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
2
2
  `).replace(/[\r\f]/g,`
3
- `):e}let pe=null,It;function Ut(){return pe===null&&(pe=new Intl.Segmenter(It,{granularity:"word"})),pe}const zt=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function Re(e){return zt.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 r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){const x=(n-55296<<10)+(r-56320)+65536;if(Te(x))return!0;t++;continue}}if(Te(n))return!0}}return!1}function $t(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const jt=new Set([" "," ","⁠","\uFEFF"]);function Gt(e){return Z(e)}function Vt(e){const t=Ne(e);return t!==null&&jt.has(t)}function Kt(e){return!$t(e)&&!Vt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Ht=new Set([":",".","،","؛"]),Jt=new Set(["၏"]),qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Qt(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 Yt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Xt(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 r=e.charCodeAt(n);if(r<56320||r>57343)return n;const x=n-1;if(x<0)return n;const s=e.charCodeAt(x);return s>=55296&&s<=56319?x:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function Zt(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(fe.test(r)){n--;continue}if(de.has(r)||Oe.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function e0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,r){const x=t[r],s=e[r];if(x==null)return s;const i=n[r];if(s.length===i)return s;const a=x.repeat(i);return e[r]=a,a}function Ie(e,t){return e&&t!==null&&Ht.has(t)}function t0(e){const t=Ne(e);return t!==null&&Jt.has(t)}function n0(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),r=e.slice(n,t);if(qt.has(r))return!0;if(!ee.has(r))return!1;t=n}return!1}function s0(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 r0(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),G(n)}function i0(e,t,n,r){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const x=[];let s=null,i=[],a=n,u=!1,l=0;for(const o of e){const F=s0(o,r),c=F==="text"&&t;if(s!==null&&F===s&&c===u){i.push(o),l+=o.length;continue}s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),s=F,i=[o],a=n+l,u=c,l+=o.length}return s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),x}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const l0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function o0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:l0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function a0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function u0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!o0(e,i))continue;const a=[t[i]];let u=i+1;for(;u<e.len&&!ge(r[u]);){a.push(t[u]),n[i]=!0;const l=t[u].includes("?");if(r[u]="text",t[u]="",u++,l)break}t[i]=G(a)}let s=0;for(let i=0;i<t.length;i++){const a=t[i];a.length!==0&&(s!==i&&(t[s]=a,n[s]=n[i],r[s]=r[i],x[s]=x[i]),s++)}return t.length=s,n.length=s,r.length=s,x.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:x}}function c0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s]),!a0(i))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],l=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),r.push("text"),x.push(l),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}const F0=new Set([":","-","/","×",",",".","+","–","—"]),Ue=/^[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 f0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(i)&&tt(i)){const u=[i];let l=s+1;for(;l<e.len&&e.kinds[l]==="text"&&ue(e.texts[l]);)u.push(e.texts[l]),l++;t.push(G(u)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=l-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function d0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ue.test(i)){const l=[i];let o=ze.test(i),F=s+1;for(;o&&F<e.len&&e.kinds[F]==="text"&&e.isWordLike[F]&&Ue.test(e.texts[F]);){const c=e.texts[F];l.push(c),o=ze.test(c),F++}t.push(G(l)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=F-1;continue}t.push(i),n.push(u),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function N0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(e.kinds[s]==="text"&&i.includes("-")){const a=i.split("-");let u=a.length>1;for(let l=0;l<a.length;l++){const o=a[l];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let l=0;for(let o=0;o<a.length;o++){const F=a[o],c=o<a.length-1?`${F}-`:F;t.push(c),n.push(!0),r.push("text"),x.push(e.starts[s]+l),l+=c.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function S0(e){const t=[],n=[],r=[],x=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],l=e.starts[s];if(u==="glue"){const o=[i[0]],F=l;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")i[0]=c,i.push(e.texts[s]),a=e.isWordLike[s],u="text",l=F,s++;else{t.push(c),n.push(!1),r.push("glue"),x.push(F);continue}}else s++;if(u==="text")for(;s<e.len&&e.kinds[s]==="glue";){const o=[];for(;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const F=G(o);if(s<e.len&&e.kinds[s]==="text"){i.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}i.push(F)}t.push(G(i)),n.push(a),r.push(u),x.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function E0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const i=Zt(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],x[s+1]=x[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function $e(e,t,n){const r=Ut();let x=0;const s=[],i=[],a=[],u=[],l=[],o=[],F=[],c=[],E=[],m=[],S=[],d=[];for(const f of r.segment(e))for(const p of i0(f.segment,f.isWordLike??!1,f.index,n)){let M=function(){o[N]!==null&&(i[N]=[Pe(s,o,F,N)],o[N]=null),i[N].push(p.text),a[N]=a[N]||p.isWordLike,c[N]=c[N]||D,E[N]=E[N]||_,m[N]=R,S[N]=V,d[N]=Ie(E[N],y)};const g=p.kind==="text",C=e0(p.text,p.isWordLike,p.kind),D=Z(p.text),_=Re(p.text),y=Ne(p.text),R=Me(p.text),V=t0(p.text),N=x-1;t.carryCJKAfterClosingQuote&&g&&x>0&&u[N]==="text"&&D&&c[N]&&m[N]||g&&x>0&&u[N]==="text"&&Yt(p.text)&&c[N]||g&&x>0&&u[N]==="text"&&S[N]?M():g&&x>0&&u[N]==="text"&&p.isWordLike&&_&&d[N]?(M(),a[N]=!0):C!==null&&x>0&&u[N]==="text"&&o[N]===C?F[N]=(F[N]??1)+1:g&&!p.isWordLike&&x>0&&u[N]==="text"&&!c[N]&&(Qt(p.text)||p.text==="-"&&a[N])?M():(s[x]=p.text,i[x]=[p.text],a[x]=p.isWordLike,u[x]=p.kind,l[x]=p.start,o[x]=C,F[x]=C===null?0:1,c[x]=D,E[x]=_,m[x]=R,S[x]=V,d[x]=Ie(_,y),x++)}for(let f=0;f<x;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(i[f])}for(let f=1;f<x;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 A=Array.from({length:x},()=>null);let L=-1;for(let f=x-1;f>=0;f--){const p=s[f];if(p.length!==0){if(u[f]==="text"&&!a[f]&&Xt(p)&&L>=0&&u[L]==="text"){const g=A[L]??[];g.push(p),A[L]=g,l[L]=l[f],s[f]="";continue}L=f}}for(let f=0;f<x;f++){const p=A[f];p!=null&&(s[f]=r0(p,s[f]))}let h=0;for(let f=0;f<x;f++){const p=s[f];p.length!==0&&(h!==f&&(s[h]=p,a[h]=a[f],u[h]=u[f],l[h]=l[f]),h++)}s.length=h,a.length=h,u.length=h,l.length=h;const O=S0({len:h,texts:s,isWordLike:a,kinds:u,starts:l}),v=E0(d0(N0(f0(c0(u0(O))))));for(let f=0;f<v.len-1;f++){const p=n0(v.texts[f]);p!==null&&(v.kinds[f]!=="space"&&v.kinds[f]!=="preserved-space"||v.kinds[f+1]!=="text"||!Re(v.texts[f+1])||(v.texts[f]=p.space,v.isWordLike[f]=!1,v.kinds[f]=v.kinds[f]==="preserved-space"?"preserved-space":"space",v.texts[f+1]=p.marks+v.texts[f+1],v.starts[f+1]=v.starts[f]+p.space.length))}return v}function p0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let r=0;for(let x=0;x<e.len;x++)e.kinds[x]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:x,consumedEndSegmentIndex:x+1}),r=x+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],r=[],x=[];let s=null,i=!1,a=0,u=!1,l=!1;function o(){s!==null&&(t.push(G(s)),n.push(i),r.push("text"),x.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],E=e.kinds[F],m=e.isWordLike[F],S=e.starts[F];if(E==="text"){const d=Gt(c),A=Kt(c);if(s!==null&&u&&l){s.push(c),i=i||m,u=u||d,l=A;continue}o(),s=[c],i=m,a=S,u=d,l=A;continue}o(),t.push(c),n.push(m),r.push(E),x.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function h0(e,t,n="normal",r="normal"){const x=Rt(n),s=x.mode==="pre-wrap"?Pt(e):Tt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?A0($e(s,t,x)):$e(s,t,x);return{normalized:s,chunks:p0(i,x),...i}}let se=null;const je=new Map;let xe=null;const C0=96,m0=new RegExp("\\p{Emoji_Presentation}","u"),B0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Ae=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 M0(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(xe!==null)return xe;if(typeof navigator>"u")return xe={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},xe;const e=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),r=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return xe={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},xe}function g0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function D0(e){return m0.test(e)||e.includes("️")}function L0(e){return B0.test(e)}function v0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const r=we();r.font=e;const x=r.measureText("😀").width;if(n=0,x>t+.5&&typeof document<"u"&&document.body!==null){const s=document.createElement("span");s.style.font=e,s.style.display="inline-block",s.style.visibility="hidden",s.style.position="absolute",s.textContent="😀",document.body.appendChild(s);const i=s.getBoundingClientRect().width;document.body.removeChild(s),x-i>.5&&(n=x-i)}return Ge.set(e,n),n}function O0(e){let t=0;const n=nt();for(const r of n.segment(e))D0(r.segment)&&t++;return t}function k0(e,t){return t.emojiCount===void 0&&(t.emojiCount=O0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-k0(e,t)*n}function w0(e,t,n,r,x){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===x)return t.breakableFitAdvances;t.breakableFitMode=x;const s=nt(),i=[];for(const o of s.segment(e))i.push(o.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(x==="sum-graphemes"){const o=[];for(const F of i){const c=Q(F,n);o.push(Y(F,c,r))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(x==="pair-context"||i.length>C0){const o=[];let F=null,c=0;for(const E of i){const m=Q(E,n),S=Y(E,m,r);if(F===null)o.push(S);else{const d=F+E,A=Q(d,n);o.push(Y(d,A,r)-c)}F=E,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",l=0;for(const o of i){u+=o;const F=Q(u,n),c=Y(u,F,r);a.push(c-l),l=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function b0(e,t){const n=we();n.font=e;const r=M0(e),x=g0(e),s=t?v0(e,x):0;return{cache:r,fontSize:x,emojiCorrection:s}}function _0(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 xt(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!_0(r))break;t++}return t}function y0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function 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 R0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function T0(e,t,n,r,x){const s=t==="tab"?x+R0(e,n):e.lineEndFitAdvances[n];return be(r,s)}function Ve(e,t,n,r){const x=t==="tab"?0:e.lineEndFitAdvances[n];return be(r,x)}function Ke(e,t,n,r,x){const s=t==="tab"?x:e.lineEndPaintAdvances[n];return be(r,s)}function P0(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 U0(e,t,n,r,x,s){let i=0,a=t;for(;i<e.length;){const u=a+e[i]+s;if((i+1<e.length?u+x:u)>n+r)break;a=u,i++}return{fitCount:i,fittedWidth:a}}function z0(e,t,n){const{widths:r,kinds:x,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let l=0,o=0,F=!1,c=0,E=0,m=0,S=0,d=-1,A=0;function L(){d=-1,A=0}function h(C=m,D=S,_=o){l++,n?.(_,c,E,C,D),o=0,F=!1,L()}function O(C,D){F=!0,c=C,E=0,m=C+1,S=0,o=D}function v(C,D,_){F=!0,c=C,E=D,m=C,S=D+1,o=_}function f(C,D){if(!F){O(C,D);return}o+=D,m=C+1,S=0}function p(C,D){const _=s[C];for(let y=D;y<_.length;y++){const R=_[y];F?o+R>u?(h(),v(C,y,R)):(o+=R,m=C,S=y+1):v(C,y,R)}F&&m===C&&S===_.length&&(m=C+1,S=0)}let g=0;for(;g<r.length&&!(!F&&(g=xt(e,g),g>=r.length));){const C=r[g],D=x[g],_=st(D);if(!F){C>u&&s[g]!==null?p(g,0):O(g,C),_&&(d=g+1,A=o-C),g++;continue}if(o+C>u){if(_){f(g,C),h(g+1,0,o-C),g++;continue}if(d>=0){if(m>d||m===d&&S>0){h();continue}h(d,0,A);continue}if(C>u&&s[g]!==null){h(),p(g,0),g++;continue}h();continue}f(g,C),_&&(d=g+1,A=o-C),g++}return F&&h(),l}function $0(e,t,n){if(e.simpleLineWalkFastPath)return z0(e,t,n);const{widths:r,kinds:x,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const u=Se(),l=u.lineFitEpsilon,o=t+l;let F=0,c=0,E=!1,m=0,S=0,d=0,A=0,L=-1,h=0,O=0,v=null;function f(){L=-1,h=0,O=0,v=null}function p(N=d,M=A,B=c){F++,n?.(B,m,S,N,M),c=0,E=!1,f()}function g(N,M){E=!0,m=N,S=0,d=N+1,A=0,c=M}function C(N,M,B){E=!0,m=N,S=M,d=N,A=M+1,c=B}function D(N,M){if(!E){g(N,M);return}c+=M,d=N+1,A=0}function _(N,M,B,w,U,z){if(!M)return;const K=Ve(e,N,B,U),ne=Ke(e,N,B,U,w);L=B+1,h=c-z+K,O=c-z+ne,v=N}function y(N,M){const B=s[N];for(let w=M;w<B.length;w++){const U=B[w];if(!E)C(N,w,U);else{const z=P0(e,!0,U),K=c+z;I0(e,K)>o?(p(),C(N,w,U)):(c=K,d=N,A=w+1)}}E&&d===N&&A===B.length&&(d=N+1,A=0)}function R(N){if(v!=="soft-hyphen")return!1;const M=s[N];if(M==null)return!1;const{fitCount:B,fittedWidth:w}=U0(M,c,t,l,i,e.letterSpacing);return B===0?!1:(c=w,d=N,A=B,f(),B===M.length?(d=N+1,A=0,!0):(p(N,B,w+i),y(N,B),!0))}function V(N){F++,n?.(0,N.startSegmentIndex,0,N.consumedEndSegmentIndex,0),f()}for(let N=0;N<a.length;N++){const M=a[N];if(M.startSegmentIndex===M.endSegmentIndex){V(M);continue}E=!1,c=0,m=M.startSegmentIndex,S=0,d=M.startSegmentIndex,A=0,f();let B=M.startSegmentIndex;for(;B<M.endSegmentIndex&&!(!E&&(B=xt(e,B,M.endSegmentIndex),B>=M.endSegmentIndex));){const w=x[B],U=st(w),z=W0(e,E,B),K=w==="tab"?y0(c+z,e.tabStopAdvance):r[B],ne=z+K,Ee=T0(e,w,B,z,K);if(w==="soft-hyphen"){E&&(d=B+1,A=0,L=B+1,h=c+i,O=c+i,v=w),B++;continue}if(!E){Ee>o&&s[B]!==null?y(B,0):g(B,K),_(w,U,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(v==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&h<=o){p(L,0,O);continue}if(v==="soft-hyphen"&&R(B)){B++;continue}if(U&&it<=o){D(B,ne),p(B+1,0,lt),B++;continue}if(L>=0&&h<=o){if(d>L||d===L&&A>0){p();continue}const _e=L;p(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){p(),y(B,0),B++;continue}p();continue}D(B,ne),_(w,U,B,K,z,ne),B++}if(E){const w=L===M.consumedEndSegmentIndex?O:c;p(M.consumedEndSegmentIndex,0,w)}}return F}let he=null,He=new WeakMap;function j0(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function Je(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const x=j0();for(const s of x.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function G0(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function qe(e,t,n,r){for(let x=n;x<r;x++)e+=t[x];return e}function V0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function K0(e,t,n,r,x,s){let i="";const a=G0(e.kinds,n,r,x);for(let u=n;u<x;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&r>0){const l=Je(u,e.segments,t);i=qe(i,l,r,l.length)}else i+=e.segments[u];if(s>0){a&&(i+="-");const u=Je(x,e.segments,t);i=qe(i,u,n===x?r:0,s)}else a&&(i+="-");return i}let Ce=null;function H0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function J0(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 r=[],x=0,s=!1,i=!1,a=!1;function u(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:x}),r=[],s=!1,i=!1,a=!1)}function l(F,c,E){r=[F],x=c,s=E,i=Me(F),a=de.has(F)}function o(F,c){r.push(F),s=s||c;const E=Me(F);F.length===1&&ee.has(F)?i=i||E:i=E,a=!1}for(const F of H0().segment(e)){const c=F.segment,E=Z(c);if(r.length===0){l(c,F.index,E);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&E&&i){o(c,E);continue}if(!s&&!E){o(c,E);continue}u(),l(c,F.index,E)}return u(),n}function Q0(e,t,n){return e}function Y0(e,t,n,r,x){const s=Se(),{cache:i,emojiCorrection:a}=b0(t,L0(e.normalized)),u=Y("-",Q("-",i),a)+0,o=Y(" ",Q(" ",i),a)*8;if(e.len===0)return J0();const F=[],c=[],E=[],m=[];let S=e.chunks.length<=1&&!0;const d=n?[]:null,A=[],L=[],h=n?[]:null,O=Array.from({length:e.len});function v(C,D,_,y,R,V,N,M){R!=="text"&&R!=="space"&&R!=="zero-width-break"&&(S=!1),F.push(D),c.push(_),E.push(y),m.push(R),d?.push(V),A.push(N),h!==null&&h.push(C)}function f(C,D,_,y,R){const V=Q(C,i),N=Q0(Y(C,V,a)),M=D==="space"||D==="preserved-space"||D==="zero-width-break"?0:N,B=M===0?0:M+0,w=D==="space"||D==="zero-width-break"?0:N;if(R&&y&&C.length>1){let U="sum-graphemes";ue(C)?U="pair-context":s.preferPrefixWidthsForBreakableRuns&&(U="segment-prefixes");const z=w0(C,V,i,a,U);v(C,N,B,w,D,_,z);return}v(C,N,B,w,D,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const D=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],R=e.starts[C];if(y==="soft-hyphen"){v(D,0,u,u,y,R,null);continue}if(y==="hard-break"){v(D,0,0,0,y,R,null);continue}if(y==="tab"){v(D,0,0,0,y,R,null);continue}const V=Q(D,i);if(y==="text"&&V.containsCJK){const M=q0(D,s);for(let B=0;B<M.length;B++){const w=M[B];f(w.text,"text",R+w.start,_,!Z(w.text))}continue}f(D,y,R,_,!0)}const p=X0(e.chunks,O,F.length),g=d===null?null:_t(e.normalized,d);return h!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p,segments:h}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p}}function X0(e,t,n){const r=[];for(let x=0;x<e.length;x++){const s=e[x],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,u=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:u})}return r}function Z0(e,t,n,r){const x="normal",i=h0(e,Se(),r?.whiteSpace,x);return Y0(i,t,n,x,0)}function en(e,t,n){return Z0(e,t,!0,n)}function tn(e,t,n,r,x,s,i){return{text:K0(e,t,r,x,s,i),width:n,start:{segmentIndex:r,graphemeIndex:x},end:{segmentIndex:s,graphemeIndex:i}}}function nn(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const x=V0(e),s=$0(e,t,(i,a,u,l,o)=>{r.push(tn(e,x,i,a,u,l,o))});return{lineCount:s,height:s*n,lines:r}}const sn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",rn=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=q(()=>{if(!t.infoList||t.infoList.length===0)return 80;let r=0;for(const x of t.infoList){const s=en(x.label,xn),{lines:i}=nn(s,1e3,20);i.length>0&&(r=Math.max(r,i[0].width))}return Math.ceil(r+16)});return(r,x)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,i=>(j(),le("div",{key:i.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[W("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:At({width:n.value+"px"})},$(i.label),5),W("span",sn,$(i.value||i.defaultValue),1),i.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>i.onHandler?.()},{default:T(()=>[ae($(i.handlerText),1)]),_:2},1032,["onClick"])):ht("",!0)]))),128))])}}});function ln(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 on={class:"p-2"},an={class:"flex gap-2 flex-1"},un={class:"flex gap-2 flex-1"},cn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x={OLD:"old",NEW:"new"},s=I(!1),i=I({}),a=I({}),u=I({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"email",title:n("user.oldEmail"),value:r?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}},{type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]},{type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}},{type:"slotAuthCodeNew",field:"newAuthCode",title:n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}]);async function o(){u.value.submitBtn.loading=!0,H.v1User.usercontrollerUpdateemail(a.value).then(()=>{P.success(n("user.emailModified")),window?.umami?.track(J.USER_UPDATE_EMAIL_SUCCESS),r.setEmail(a.value.newEmail),m()}).catch(S=>{window?.umami?.track(J.USER_UPDATE_EMAIL_FAILED,{error:String(S)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F(S,{end:d,startCountdown:A}){S===x.OLD?i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),A()})}).finally(()=>{d()}):S===x.NEW&&i.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),A()})}).finally(()=>{d()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[4]||(d[4]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",on,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h),api:i.value,"onUpdate:api":d[3]||(d[3]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCodeOld":T(h=>[W("div",an,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[0]||(d[0]=O=>F(x.OLD,O))},null,8,["text"])])]),"type-slotAuthCodeNew":T(h=>[W("div",un,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[1]||(d[1]=O=>F(x.NEW,O))},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Fn={class:"p-2"},fn={class:"flex gap-2 flex-1"},dn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=re("baseForm"),s=I(!1),i=I({}),a=I({}),u=I({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"newPassword",title:r.isPasswordSet?n("user.newPassword"):n("user.setPassword"),value:"",props:{placeholder:n("user.pleaseInputNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseInputNewPassword"),trigger:"blur"}]},{type:"input",field:"confirmNewPassword",title:r.isPasswordSet?n("user.confirmNewPassword"):n("user.confirmPassword"),value:"",props:{placeholder:n("user.pleaseConfirmNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseConfirmNewPassword"),trigger:"blur"}]},{type:"input",field:"email",title:n("user.email"),value:r?.userInfo?.email,props:{disabled:!0},validate:[{required:!0,message:n("user.pleaseInputEmail"),trigger:"blur"}]},{type:"slotAuthCode",field:"emailAuthCode",title:n("user.authCode"),value:""}]);async function o(){u.value.submitBtn.loading=!0;const S={newPassword:ye(a.value.newPassword),confirmNewPassword:ye(a.value.confirmNewPassword),email:a.value.email,emailAuthCode:a.value.emailAuthCode};H.v1User.usercontrollerChangepassword(S).then(()=>{P.success(n("user.passwordModified")),window?.umami?.track(J.USER_UPDATE_PASSWORD_SUCCESS),x.value?.resetFields(),r.setIsPasswordSet(!0),m()}).catch(d=>{window?.umami?.track(J.USER_UPDATE_PASSWORD_FAILED,{error:String(d)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:d}){i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),d()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",Fn,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),api:i.value,"onUpdate:api":d[1]||(d[1]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCode":T(h=>[W("div",fn,[b(A,{"model-value":String(h.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.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"])}}}),Nn={class:"p-2"},Sn=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=Le(),s=I(!1),i=I({onSubmit:()=>{l()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=I({}),u=q(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:r.userInfo.nickname,props:{placeholder:n("user.pleaseInputNickname")},validate:[{required:!0,message:n("user.pleaseInputNickname"),trigger:"blur"},{min:3,max:10,message:n("team.charLength",{min:2,max:10}),trigger:"blur"}]}]);async function l(){if(i.value.submitBtn.loading=!0,a.value.nickname===r.userInfo.nickname){P.success(n("message.success.update")),i.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{r.setNickname(a.value.nickname),x.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(J.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(E=>{window?.umami?.track(J.USER_UPDATE_NICKNAME_FAILED,{error:String(E)})}).finally(()=>{i.value.submitBtn.loading=!1})}function o(E){return n(`formCreate.${E}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(E,m)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=d=>s.value=d),width:"400px"},{default:T(()=>[W("div",Nn,[b(S,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=d=>a.value=d),rule:u.value,option:i.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),En=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,r=gt(),x=Ct(),s=mt(),i=(S,d)=>{c.value.fileList&&(c.value.fileList=d),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},l={autoUpload:!1,cover:!1,onChange:i,onExceed:(S,d)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const A=S[0];A.uid=at(),F.value.handleStart(A);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+d.length}))},beforeUpload:rt(),onError:a},o=I(null),F=I(),c=q(()=>({...l,...me.convertKeysToCamelCase(x),...n})),E=q(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function m(S){F.value=S,r&&(r.exposed=S||{},r.exposeProxy=S||{})}return(S,d)=>(j(),X(Bt(Mt(k(ot),{...c.value,ref:m},E.value))))}}),{i18n:pn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(pn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function rt(e={}){const{mode:t="extend",custom:n}=e;return r=>t==="override"&&n?n(r):t==="extend"?Qe(r)?n?n(r):!0:!1:Qe(r)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),r=e.dir+e.key+"."+n,x=new FormData;return x.append("success_action_status","200"),x.append("policy",e.policy),x.append("x-oss-signature",e.signature),x.append("x-oss-signature-version",e.x_oss_signature_version),x.append("x-oss-credential",e.x_oss_credential),x.append("x-oss-date",e.x_oss_date),x.append("key",r),x.append("x-oss-security-token",e.security_token),x.append("Cache-Control","public, max-age=31536000"),x.append("file",t),{host:e.host,filePath:r,formData:x}}async function hn(e,t){return fetch(e,{method:"POST",body:t})}const Cn=["src"],mn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),r=Le(),x=I([]),s=I(!1),i=re("avatarUpload"),a=I(),u=q(()=>({limit:1,cover:!0,onError:o,beforeUpload:l,showFileList:!1,httpRequest:m})),l=rt({custom(A){return A.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(A){a.value?.(),P.error(A.message)}async function F(A){if(A.start(),a.value=A.end,!x.value||x.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}i.value?.submit()}function c(A){H.v1User.usercontrollerChangeavatar({avatar:A}).then(()=>{r.updateAvatar(A),d(),P.success(n("user.avatarModified")),window?.umami?.track(J.USER_UPDATE_AVATAR_SUCCESS)}).catch(L=>{window?.umami?.track(J.USER_UPDATE_AVATAR_FAILED,{error:String(L)})}).finally(()=>{a.value?.()})}function E(){i.value?.clearFiles()}async function m(A){const L=await H.v1Oss.osscontrollerCompossdir(),{imageDir:h}=L.data,O=await H.v1Oss.osscontrollerPutpolicy({type:h});if(O.code!==0||!O.data)return P.error(O.message);const{host:v,filePath:f,formData:p}=An(O.data,A.file),g=await hn(v,p);if(g.ok)c(f);else{const C=await g.text(),D=ln(C);P.error(D.message),a.value?.()}}function S(){s.value=!0}function d(){s.value=!1,E()}return t({open:S,close:d}),(A,L)=>{const h=oe("Icon"),O=ct,v=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=p=>s.value=p),width:"400px",onClose:E},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(En),Dt({ref:"avatarUpload","file-list":x.value,"onUpdate:fileList":L[0]||(L[0]=p=>x.value=p),class:"size-[70px] border border-gray-300 rounded-sm flex justify-center items-center upload-container"},u.value),{default:T(({fileUrl:p})=>[p?(j(),le("img",{key:0,src:p,class:"size-full"},null,8,Cn)):(j(),X(h,{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:p,loading:g})=>[b(v,{type:"primary",loading:g,onClick:C=>F(p)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Bn=St(mn,[["__scopeId","data-v-6ea47d01"]]),Mn={class:"h-full p-[10px]"},gn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Dn={class:"text-center flex flex-col items-center gap-2 h-[120px]"},Ln={class:"flex flex-col gap-10"},vn={class:"flex items-center"},On={class:"size-[48px] flex items-center justify-center"},kn={class:"flex-1"},wn={class:"text-sm text-gray-500"},bn={class:"flex items-center"},_n={class:"size-[48px] flex items-center justify-center"},yn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},Jn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),r=Le(),x=q(()=>n.userInfo),s=re("emailDialog"),i=re("passwordDialog"),a=re("nicknameDialog"),u=re("avatarDialog"),l=F=>{if(!n.isPasswordSet){P.error(t("user.pleaseSetPasswordFirst"));return}F.start(),n.setAllowEmailLogin(!n.isAllowEmailLogin).then(()=>{P.success(n.isAllowEmailLogin?t("user.emailLoginEnabled"):t("user.emailLoginDisabled")),window?.umami?.track(J.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=q(()=>[{key:"account",label:t("user.account"),value:x.value?.account},{key:"nickname",label:t("user.nickname"),value:x.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:x.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:x.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:x.value?.createdAt?vt(x.value.createdAt).format("YYYY-MM-DD"):"--"}]);return Lt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const E=Ft,m=ft,S=oe("Icon"),d=De,A=dt;return j(),le("div",Mn,[W("div",gn,[b(m,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[W("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[W("div",Dn,[b(Ot,{size:80,shape:"square",src:k(r).avatar,text:k(r).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=L=>u.value?.open())},{default:T(()=>[ae($(x.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),W("h3",null,$(x.value?.account),1)]),b(E),b(k(rn),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(m,{class:"col-start-2"},{header:T(()=>[W("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[W("div",Ln,[W("div",vn,[W("div",On,[b(S,{icon:"material-symbols:lock"})]),W("div",kn,[W("h4",null,$(k(t)("user.loginPassword")),1),W("p",wn,$(k(t)("user.passwordTip")),1)]),b(d,{type:"primary",onClick:c[1]||(c[1]=L=>i.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),W("div",bn,[W("div",_n,[b(S,{icon:"material-symbols:mark-email-unread"})]),W("div",yn,[W("h4",null,$(k(t)("user.emailLogin")),1),W("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:L,loading:h})=>[b(A,{loading:h,"model-value":k(n).isAllowEmailLogin,onChange:O=>l(L)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(cn,{ref:"emailDialog"},null,512),b(dn,{ref:"passwordDialog"},null,512),b(Sn,{ref:"nicknameDialog"},null,512),b(Bn,{ref:"avatarDialog"},null,512)])}}});export{Jn as default};
3
+ `):e}let pe=null,Ut;function It(){return pe===null&&(pe=new Intl.Segmenter(Ut,{granularity:"word"})),pe}const zt=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function Re(e){return zt.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 r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){const x=(n-55296<<10)+(r-56320)+65536;if(Te(x))return!0;t++;continue}}if(Te(n))return!0}}return!1}function $t(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const jt=new Set([" "," ","⁠","\uFEFF"]);function Gt(e){return Z(e)}function Vt(e){const t=Ne(e);return t!==null&&jt.has(t)}function Kt(e){return!$t(e)&&!Vt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Ht=new Set([":",".","،","؛"]),Jt=new Set(["၏"]),qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Qt(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 Yt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Xt(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 r=e.charCodeAt(n);if(r<56320||r>57343)return n;const x=n-1;if(x<0)return n;const s=e.charCodeAt(x);return s>=55296&&s<=56319?x:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function Zt(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(fe.test(r)){n--;continue}if(de.has(r)||Oe.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function e0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,r){const x=t[r],s=e[r];if(x==null)return s;const i=n[r];if(s.length===i)return s;const a=x.repeat(i);return e[r]=a,a}function Ue(e,t){return e&&t!==null&&Ht.has(t)}function t0(e){const t=Ne(e);return t!==null&&Jt.has(t)}function n0(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),r=e.slice(n,t);if(qt.has(r))return!0;if(!ee.has(r))return!1;t=n}return!1}function s0(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 r0(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),G(n)}function i0(e,t,n,r){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const x=[];let s=null,i=[],a=n,u=!1,l=0;for(const o of e){const F=s0(o,r),c=F==="text"&&t;if(s!==null&&F===s&&c===u){i.push(o),l+=o.length;continue}s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),s=F,i=[o],a=n+l,u=c,l+=o.length}return s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),x}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const l0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function o0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:l0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function a0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function u0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!o0(e,i))continue;const a=[t[i]];let u=i+1;for(;u<e.len&&!ge(r[u]);){a.push(t[u]),n[i]=!0;const l=t[u].includes("?");if(r[u]="text",t[u]="",u++,l)break}t[i]=G(a)}let s=0;for(let i=0;i<t.length;i++){const a=t[i];a.length!==0&&(s!==i&&(t[s]=a,n[s]=n[i],r[s]=r[i],x[s]=x[i]),s++)}return t.length=s,n.length=s,r.length=s,x.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:x}}function c0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s]),!a0(i))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],l=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),r.push("text"),x.push(l),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}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 f0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(i)&&tt(i)){const u=[i];let l=s+1;for(;l<e.len&&e.kinds[l]==="text"&&ue(e.texts[l]);)u.push(e.texts[l]),l++;t.push(G(u)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=l-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function d0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(i)){const l=[i];let o=ze.test(i),F=s+1;for(;o&&F<e.len&&e.kinds[F]==="text"&&e.isWordLike[F]&&Ie.test(e.texts[F]);){const c=e.texts[F];l.push(c),o=ze.test(c),F++}t.push(G(l)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=F-1;continue}t.push(i),n.push(u),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function N0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(e.kinds[s]==="text"&&i.includes("-")){const a=i.split("-");let u=a.length>1;for(let l=0;l<a.length;l++){const o=a[l];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let l=0;for(let o=0;o<a.length;o++){const F=a[o],c=o<a.length-1?`${F}-`:F;t.push(c),n.push(!0),r.push("text"),x.push(e.starts[s]+l),l+=c.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function S0(e){const t=[],n=[],r=[],x=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],l=e.starts[s];if(u==="glue"){const o=[i[0]],F=l;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")i[0]=c,i.push(e.texts[s]),a=e.isWordLike[s],u="text",l=F,s++;else{t.push(c),n.push(!1),r.push("glue"),x.push(F);continue}}else s++;if(u==="text")for(;s<e.len&&e.kinds[s]==="glue";){const o=[];for(;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const F=G(o);if(s<e.len&&e.kinds[s]==="text"){i.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}i.push(F)}t.push(G(i)),n.push(a),r.push(u),x.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function E0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const i=Zt(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],x[s+1]=x[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function $e(e,t,n){const r=It();let x=0;const s=[],i=[],a=[],u=[],l=[],o=[],F=[],c=[],E=[],m=[],S=[],d=[];for(const f of r.segment(e))for(const p of i0(f.segment,f.isWordLike??!1,f.index,n)){let M=function(){o[N]!==null&&(i[N]=[Pe(s,o,F,N)],o[N]=null),i[N].push(p.text),a[N]=a[N]||p.isWordLike,c[N]=c[N]||D,E[N]=E[N]||_,m[N]=R,S[N]=V,d[N]=Ue(E[N],y)};const g=p.kind==="text",C=e0(p.text,p.isWordLike,p.kind),D=Z(p.text),_=Re(p.text),y=Ne(p.text),R=Me(p.text),V=t0(p.text),N=x-1;t.carryCJKAfterClosingQuote&&g&&x>0&&u[N]==="text"&&D&&c[N]&&m[N]||g&&x>0&&u[N]==="text"&&Yt(p.text)&&c[N]||g&&x>0&&u[N]==="text"&&S[N]?M():g&&x>0&&u[N]==="text"&&p.isWordLike&&_&&d[N]?(M(),a[N]=!0):C!==null&&x>0&&u[N]==="text"&&o[N]===C?F[N]=(F[N]??1)+1:g&&!p.isWordLike&&x>0&&u[N]==="text"&&!c[N]&&(Qt(p.text)||p.text==="-"&&a[N])?M():(s[x]=p.text,i[x]=[p.text],a[x]=p.isWordLike,u[x]=p.kind,l[x]=p.start,o[x]=C,F[x]=C===null?0:1,c[x]=D,E[x]=_,m[x]=R,S[x]=V,d[x]=Ue(_,y),x++)}for(let f=0;f<x;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(i[f])}for(let f=1;f<x;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 A=Array.from({length:x},()=>null);let L=-1;for(let f=x-1;f>=0;f--){const p=s[f];if(p.length!==0){if(u[f]==="text"&&!a[f]&&Xt(p)&&L>=0&&u[L]==="text"){const g=A[L]??[];g.push(p),A[L]=g,l[L]=l[f],s[f]="";continue}L=f}}for(let f=0;f<x;f++){const p=A[f];p!=null&&(s[f]=r0(p,s[f]))}let h=0;for(let f=0;f<x;f++){const p=s[f];p.length!==0&&(h!==f&&(s[h]=p,a[h]=a[f],u[h]=u[f],l[h]=l[f]),h++)}s.length=h,a.length=h,u.length=h,l.length=h;const O=S0({len:h,texts:s,isWordLike:a,kinds:u,starts:l}),v=E0(d0(N0(f0(c0(u0(O))))));for(let f=0;f<v.len-1;f++){const p=n0(v.texts[f]);p!==null&&(v.kinds[f]!=="space"&&v.kinds[f]!=="preserved-space"||v.kinds[f+1]!=="text"||!Re(v.texts[f+1])||(v.texts[f]=p.space,v.isWordLike[f]=!1,v.kinds[f]=v.kinds[f]==="preserved-space"?"preserved-space":"space",v.texts[f+1]=p.marks+v.texts[f+1],v.starts[f+1]=v.starts[f]+p.space.length))}return v}function p0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let r=0;for(let x=0;x<e.len;x++)e.kinds[x]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:x,consumedEndSegmentIndex:x+1}),r=x+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],r=[],x=[];let s=null,i=!1,a=0,u=!1,l=!1;function o(){s!==null&&(t.push(G(s)),n.push(i),r.push("text"),x.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],E=e.kinds[F],m=e.isWordLike[F],S=e.starts[F];if(E==="text"){const d=Gt(c),A=Kt(c);if(s!==null&&u&&l){s.push(c),i=i||m,u=u||d,l=A;continue}o(),s=[c],i=m,a=S,u=d,l=A;continue}o(),t.push(c),n.push(m),r.push(E),x.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function h0(e,t,n="normal",r="normal"){const x=Rt(n),s=x.mode==="pre-wrap"?Pt(e):Tt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?A0($e(s,t,x)):$e(s,t,x);return{normalized:s,chunks:p0(i,x),...i}}let se=null;const je=new Map;let xe=null;const C0=96,m0=new RegExp("\\p{Emoji_Presentation}","u"),B0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Ae=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 M0(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(xe!==null)return xe;if(typeof navigator>"u")return xe={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},xe;const e=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),r=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return xe={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},xe}function g0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function D0(e){return m0.test(e)||e.includes("️")}function L0(e){return B0.test(e)}function v0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const r=we();r.font=e;const x=r.measureText("😀").width;if(n=0,x>t+.5&&typeof document<"u"&&document.body!==null){const s=document.createElement("span");s.style.font=e,s.style.display="inline-block",s.style.visibility="hidden",s.style.position="absolute",s.textContent="😀",document.body.appendChild(s);const i=s.getBoundingClientRect().width;document.body.removeChild(s),x-i>.5&&(n=x-i)}return Ge.set(e,n),n}function O0(e){let t=0;const n=nt();for(const r of n.segment(e))D0(r.segment)&&t++;return t}function k0(e,t){return t.emojiCount===void 0&&(t.emojiCount=O0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-k0(e,t)*n}function w0(e,t,n,r,x){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===x)return t.breakableFitAdvances;t.breakableFitMode=x;const s=nt(),i=[];for(const o of s.segment(e))i.push(o.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(x==="sum-graphemes"){const o=[];for(const F of i){const c=Q(F,n);o.push(Y(F,c,r))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(x==="pair-context"||i.length>C0){const o=[];let F=null,c=0;for(const E of i){const m=Q(E,n),S=Y(E,m,r);if(F===null)o.push(S);else{const d=F+E,A=Q(d,n);o.push(Y(d,A,r)-c)}F=E,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",l=0;for(const o of i){u+=o;const F=Q(u,n),c=Y(u,F,r);a.push(c-l),l=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function b0(e,t){const n=we();n.font=e;const r=M0(e),x=g0(e),s=t?v0(e,x):0;return{cache:r,fontSize:x,emojiCorrection:s}}function _0(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 xt(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!_0(r))break;t++}return t}function y0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function 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 R0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function T0(e,t,n,r,x){const s=t==="tab"?x+R0(e,n):e.lineEndFitAdvances[n];return be(r,s)}function Ve(e,t,n,r){const x=t==="tab"?0:e.lineEndFitAdvances[n];return be(r,x)}function Ke(e,t,n,r,x){const s=t==="tab"?x:e.lineEndPaintAdvances[n];return be(r,s)}function P0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function U0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function I0(e,t,n,r,x,s){let i=0,a=t;for(;i<e.length;){const u=a+e[i]+s;if((i+1<e.length?u+x:u)>n+r)break;a=u,i++}return{fitCount:i,fittedWidth:a}}function z0(e,t,n){const{widths:r,kinds:x,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let l=0,o=0,F=!1,c=0,E=0,m=0,S=0,d=-1,A=0;function L(){d=-1,A=0}function h(C=m,D=S,_=o){l++,n?.(_,c,E,C,D),o=0,F=!1,L()}function O(C,D){F=!0,c=C,E=0,m=C+1,S=0,o=D}function v(C,D,_){F=!0,c=C,E=D,m=C,S=D+1,o=_}function f(C,D){if(!F){O(C,D);return}o+=D,m=C+1,S=0}function p(C,D){const _=s[C];for(let y=D;y<_.length;y++){const R=_[y];F?o+R>u?(h(),v(C,y,R)):(o+=R,m=C,S=y+1):v(C,y,R)}F&&m===C&&S===_.length&&(m=C+1,S=0)}let g=0;for(;g<r.length&&!(!F&&(g=xt(e,g),g>=r.length));){const C=r[g],D=x[g],_=st(D);if(!F){C>u&&s[g]!==null?p(g,0):O(g,C),_&&(d=g+1,A=o-C),g++;continue}if(o+C>u){if(_){f(g,C),h(g+1,0,o-C),g++;continue}if(d>=0){if(m>d||m===d&&S>0){h();continue}h(d,0,A);continue}if(C>u&&s[g]!==null){h(),p(g,0),g++;continue}h();continue}f(g,C),_&&(d=g+1,A=o-C),g++}return F&&h(),l}function $0(e,t,n){if(e.simpleLineWalkFastPath)return z0(e,t,n);const{widths:r,kinds:x,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const u=Se(),l=u.lineFitEpsilon,o=t+l;let F=0,c=0,E=!1,m=0,S=0,d=0,A=0,L=-1,h=0,O=0,v=null;function f(){L=-1,h=0,O=0,v=null}function p(N=d,M=A,B=c){F++,n?.(B,m,S,N,M),c=0,E=!1,f()}function g(N,M){E=!0,m=N,S=0,d=N+1,A=0,c=M}function C(N,M,B){E=!0,m=N,S=M,d=N,A=M+1,c=B}function D(N,M){if(!E){g(N,M);return}c+=M,d=N+1,A=0}function _(N,M,B,w,I,z){if(!M)return;const K=Ve(e,N,B,I),ne=Ke(e,N,B,I,w);L=B+1,h=c-z+K,O=c-z+ne,v=N}function y(N,M){const B=s[N];for(let w=M;w<B.length;w++){const I=B[w];if(!E)C(N,w,I);else{const z=P0(e,!0,I),K=c+z;U0(e,K)>o?(p(),C(N,w,I)):(c=K,d=N,A=w+1)}}E&&d===N&&A===B.length&&(d=N+1,A=0)}function R(N){if(v!=="soft-hyphen")return!1;const M=s[N];if(M==null)return!1;const{fitCount:B,fittedWidth:w}=I0(M,c,t,l,i,e.letterSpacing);return B===0?!1:(c=w,d=N,A=B,f(),B===M.length?(d=N+1,A=0,!0):(p(N,B,w+i),y(N,B),!0))}function V(N){F++,n?.(0,N.startSegmentIndex,0,N.consumedEndSegmentIndex,0),f()}for(let N=0;N<a.length;N++){const M=a[N];if(M.startSegmentIndex===M.endSegmentIndex){V(M);continue}E=!1,c=0,m=M.startSegmentIndex,S=0,d=M.startSegmentIndex,A=0,f();let B=M.startSegmentIndex;for(;B<M.endSegmentIndex&&!(!E&&(B=xt(e,B,M.endSegmentIndex),B>=M.endSegmentIndex));){const w=x[B],I=st(w),z=W0(e,E,B),K=w==="tab"?y0(c+z,e.tabStopAdvance):r[B],ne=z+K,Ee=T0(e,w,B,z,K);if(w==="soft-hyphen"){E&&(d=B+1,A=0,L=B+1,h=c+i,O=c+i,v=w),B++;continue}if(!E){Ee>o&&s[B]!==null?y(B,0):g(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(v==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&h<=o){p(L,0,O);continue}if(v==="soft-hyphen"&&R(B)){B++;continue}if(I&&it<=o){D(B,ne),p(B+1,0,lt),B++;continue}if(L>=0&&h<=o){if(d>L||d===L&&A>0){p();continue}const _e=L;p(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){p(),y(B,0),B++;continue}p();continue}D(B,ne),_(w,I,B,K,z,ne),B++}if(E){const w=L===M.consumedEndSegmentIndex?O:c;p(M.consumedEndSegmentIndex,0,w)}}return F}let he=null,He=new WeakMap;function j0(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function Je(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const x=j0();for(const s of x.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function G0(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function qe(e,t,n,r){for(let x=n;x<r;x++)e+=t[x];return e}function V0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function K0(e,t,n,r,x,s){let i="";const a=G0(e.kinds,n,r,x);for(let u=n;u<x;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&r>0){const l=Je(u,e.segments,t);i=qe(i,l,r,l.length)}else i+=e.segments[u];if(s>0){a&&(i+="-");const u=Je(x,e.segments,t);i=qe(i,u,n===x?r:0,s)}else a&&(i+="-");return i}let Ce=null;function H0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function J0(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 r=[],x=0,s=!1,i=!1,a=!1;function u(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:x}),r=[],s=!1,i=!1,a=!1)}function l(F,c,E){r=[F],x=c,s=E,i=Me(F),a=de.has(F)}function o(F,c){r.push(F),s=s||c;const E=Me(F);F.length===1&&ee.has(F)?i=i||E:i=E,a=!1}for(const F of H0().segment(e)){const c=F.segment,E=Z(c);if(r.length===0){l(c,F.index,E);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&E&&i){o(c,E);continue}if(!s&&!E){o(c,E);continue}u(),l(c,F.index,E)}return u(),n}function Q0(e,t,n){return e}function Y0(e,t,n,r,x){const s=Se(),{cache:i,emojiCorrection:a}=b0(t,L0(e.normalized)),u=Y("-",Q("-",i),a)+0,o=Y(" ",Q(" ",i),a)*8;if(e.len===0)return J0();const F=[],c=[],E=[],m=[];let S=e.chunks.length<=1&&!0;const d=n?[]:null,A=[],L=[],h=n?[]:null,O=Array.from({length:e.len});function v(C,D,_,y,R,V,N,M){R!=="text"&&R!=="space"&&R!=="zero-width-break"&&(S=!1),F.push(D),c.push(_),E.push(y),m.push(R),d?.push(V),A.push(N),h!==null&&h.push(C)}function f(C,D,_,y,R){const V=Q(C,i),N=Q0(Y(C,V,a)),M=D==="space"||D==="preserved-space"||D==="zero-width-break"?0:N,B=M===0?0:M+0,w=D==="space"||D==="zero-width-break"?0:N;if(R&&y&&C.length>1){let I="sum-graphemes";ue(C)?I="pair-context":s.preferPrefixWidthsForBreakableRuns&&(I="segment-prefixes");const z=w0(C,V,i,a,I);v(C,N,B,w,D,_,z);return}v(C,N,B,w,D,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const D=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],R=e.starts[C];if(y==="soft-hyphen"){v(D,0,u,u,y,R,null);continue}if(y==="hard-break"){v(D,0,0,0,y,R,null);continue}if(y==="tab"){v(D,0,0,0,y,R,null);continue}const V=Q(D,i);if(y==="text"&&V.containsCJK){const M=q0(D,s);for(let B=0;B<M.length;B++){const w=M[B];f(w.text,"text",R+w.start,_,!Z(w.text))}continue}f(D,y,R,_,!0)}const p=X0(e.chunks,O,F.length),g=d===null?null:_t(e.normalized,d);return h!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p,segments:h}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p}}function X0(e,t,n){const r=[];for(let x=0;x<e.length;x++){const s=e[x],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,u=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:u})}return r}function Z0(e,t,n,r){const x="normal",i=h0(e,Se(),r?.whiteSpace,x);return Y0(i,t,n,x,0)}function en(e,t,n){return Z0(e,t,!0,n)}function tn(e,t,n,r,x,s,i){return{text:K0(e,t,r,x,s,i),width:n,start:{segmentIndex:r,graphemeIndex:x},end:{segmentIndex:s,graphemeIndex:i}}}function nn(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const x=V0(e),s=$0(e,t,(i,a,u,l,o)=>{r.push(tn(e,x,i,a,u,l,o))});return{lineCount:s,height:s*n,lines:r}}const sn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",rn=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=q(()=>{if(!t.infoList||t.infoList.length===0)return 80;let r=0;for(const x of t.infoList){const s=en(x.label,xn),{lines:i}=nn(s,1e3,20);i.length>0&&(r=Math.max(r,i[0].width))}return Math.ceil(r+16)});return(r,x)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,i=>(j(),le("div",{key:i.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[W("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:At({width:n.value+"px"})},$(i.label),5),W("span",sn,$(i.value||i.defaultValue),1),i.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>i.onHandler?.()},{default:T(()=>[ae($(i.handlerText),1)]),_:2},1032,["onClick"])):ht("",!0)]))),128))])}}});function ln(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 on={class:"p-2"},an={class:"flex gap-2 flex-1"},un={class:"flex gap-2 flex-1"},cn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x={OLD:"old",NEW:"new"},s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"email",title:n("user.oldEmail"),value:r?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}},{type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]},{type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}},{type:"slotAuthCodeNew",field:"newAuthCode",title:n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}]);async function o(){u.value.submitBtn.loading=!0,H.v1User.usercontrollerUpdateemail(a.value).then(()=>{P.success(n("user.emailModified")),window?.umami?.track(J.USER_UPDATE_EMAIL_SUCCESS),r.setEmail(a.value.newEmail),m()}).catch(S=>{window?.umami?.track(J.USER_UPDATE_EMAIL_FAILED,{error:String(S)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F(S,{end:d,startCountdown:A}){S===x.OLD?i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),A()})}).finally(()=>{d()}):S===x.NEW&&i.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),A()})}).finally(()=>{d()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[4]||(d[4]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",on,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h),api:i.value,"onUpdate:api":d[3]||(d[3]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCodeOld":T(h=>[W("div",an,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[0]||(d[0]=O=>F(x.OLD,O))},null,8,["text"])])]),"type-slotAuthCodeNew":T(h=>[W("div",un,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[1]||(d[1]=O=>F(x.NEW,O))},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Fn={class:"p-2"},fn={class:"flex gap-2 flex-1"},dn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=re("baseForm"),s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"newPassword",title:r.isPasswordSet?n("user.newPassword"):n("user.setPassword"),value:"",props:{placeholder:n("user.pleaseInputNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseInputNewPassword"),trigger:"blur"}]},{type:"input",field:"confirmNewPassword",title:r.isPasswordSet?n("user.confirmNewPassword"):n("user.confirmPassword"),value:"",props:{placeholder:n("user.pleaseConfirmNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseConfirmNewPassword"),trigger:"blur"}]},{type:"input",field:"email",title:n("user.email"),value:r?.userInfo?.email,props:{disabled:!0},validate:[{required:!0,message:n("user.pleaseInputEmail"),trigger:"blur"}]},{type:"slotAuthCode",field:"emailAuthCode",title:n("user.authCode"),value:""}]);async function o(){u.value.submitBtn.loading=!0;const S={newPassword:ye(a.value.newPassword),confirmNewPassword:ye(a.value.confirmNewPassword),email:a.value.email,emailAuthCode:a.value.emailAuthCode};H.v1User.usercontrollerChangepassword(S).then(()=>{P.success(n("user.passwordModified")),window?.umami?.track(J.USER_UPDATE_PASSWORD_SUCCESS),x.value?.resetFields(),r.setIsPasswordSet(!0),m()}).catch(d=>{window?.umami?.track(J.USER_UPDATE_PASSWORD_FAILED,{error:String(d)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:d}){i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),d()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",Fn,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),api:i.value,"onUpdate:api":d[1]||(d[1]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCode":T(h=>[W("div",fn,[b(A,{"model-value":String(h.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.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"])}}}),Nn={class:"p-2"},Sn=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=Le(),s=U(!1),i=U({onSubmit:()=>{l()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=U({}),u=q(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:r.userInfo.nickname,props:{placeholder:n("user.pleaseInputNickname")},validate:[{required:!0,message:n("user.pleaseInputNickname"),trigger:"blur"},{min:3,max:10,message:n("team.charLength",{min:2,max:10}),trigger:"blur"}]}]);async function l(){if(i.value.submitBtn.loading=!0,a.value.nickname===r.userInfo.nickname){P.success(n("message.success.update")),i.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{r.setNickname(a.value.nickname),x.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(J.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(E=>{window?.umami?.track(J.USER_UPDATE_NICKNAME_FAILED,{error:String(E)})}).finally(()=>{i.value.submitBtn.loading=!1})}function o(E){return n(`formCreate.${E}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(E,m)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=d=>s.value=d),width:"400px"},{default:T(()=>[W("div",Nn,[b(S,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=d=>a.value=d),rule:u.value,option:i.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),En=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,r=gt(),x=Ct(),s=mt(),i=(S,d)=>{c.value.fileList&&(c.value.fileList=d),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},l={autoUpload:!1,cover:!1,onChange:i,onExceed:(S,d)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const A=S[0];A.uid=at(),F.value.handleStart(A);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+d.length}))},beforeUpload:rt(),onError:a},o=U(null),F=U(),c=q(()=>({...l,...me.convertKeysToCamelCase(x),...n})),E=q(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function m(S){F.value=S,r&&(r.exposed=S||{},r.exposeProxy=S||{})}return(S,d)=>(j(),X(Bt(Mt(k(ot),{...c.value,ref:m},E.value))))}}),{i18n:pn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(pn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function rt(e={}){const{mode:t="extend",custom:n}=e;return r=>t==="override"&&n?n(r):t==="extend"?Qe(r)?n?n(r):!0:!1:Qe(r)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),r=e.dir+e.key+"."+n,x=new FormData;return x.append("success_action_status","200"),x.append("policy",e.policy),x.append("x-oss-signature",e.signature),x.append("x-oss-signature-version",e.x_oss_signature_version),x.append("x-oss-credential",e.x_oss_credential),x.append("x-oss-date",e.x_oss_date),x.append("key",r),x.append("x-oss-security-token",e.security_token),x.append("Cache-Control","public, max-age=31536000"),x.append("file",t),{host:e.host,filePath:r,formData:x}}async function hn(e,t){return fetch(e,{method:"POST",body:t})}const Cn=["src"],mn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),r=Le(),x=U([]),s=U(!1),i=re("avatarUpload"),a=U(),u=q(()=>({limit:1,cover:!0,onError:o,beforeUpload:l,showFileList:!1,httpRequest:m})),l=rt({custom(A){return A.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(A){a.value?.(),P.error(A.message)}async function F(A){if(A.start(),a.value=A.end,!x.value||x.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}i.value?.submit()}function c(A){H.v1User.usercontrollerChangeavatar({avatar:A}).then(()=>{r.updateAvatar(A),d(),P.success(n("user.avatarModified")),window?.umami?.track(J.USER_UPDATE_AVATAR_SUCCESS)}).catch(L=>{window?.umami?.track(J.USER_UPDATE_AVATAR_FAILED,{error:String(L)})}).finally(()=>{a.value?.()})}function E(){i.value?.clearFiles()}async function m(A){const L=await H.v1Oss.osscontrollerCompossdir(),{imageDir:h}=L.data,O=await H.v1Oss.osscontrollerPutpolicy({type:h});if(O.code!==0||!O.data)return P.error(O.message);const{host:v,filePath:f,formData:p}=An(O.data,A.file),g=await hn(v,p);if(g.ok)c(f);else{const C=await g.text(),D=ln(C);P.error(D.message),a.value?.()}}function S(){s.value=!0}function d(){s.value=!1,E()}return t({open:S,close:d}),(A,L)=>{const h=oe("Icon"),O=ct,v=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=p=>s.value=p),width:"400px",onClose:E},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(En),Dt({ref:"avatarUpload","file-list":x.value,"onUpdate:fileList":L[0]||(L[0]=p=>x.value=p),class:"size-[70px] border border-gray-300 rounded-sm flex justify-center items-center upload-container"},u.value),{default:T(({fileUrl:p})=>[p?(j(),le("img",{key:0,src:p,class:"size-full"},null,8,Cn)):(j(),X(h,{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:p,loading:g})=>[b(v,{type:"primary",loading:g,onClick:C=>F(p)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Bn=St(mn,[["__scopeId","data-v-6ea47d01"]]),Mn={class:"h-full p-[10px]"},gn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Dn={class:"text-center flex flex-col items-center gap-2 h-[120px]"},Ln={class:"flex flex-col gap-10"},vn={class:"flex items-center"},On={class:"size-[48px] flex items-center justify-center"},kn={class:"flex-1"},wn={class:"text-sm text-gray-500"},bn={class:"flex items-center"},_n={class:"size-[48px] flex items-center justify-center"},yn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},Jn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),r=Le(),x=q(()=>n.userInfo),s=re("emailDialog"),i=re("passwordDialog"),a=re("nicknameDialog"),u=re("avatarDialog"),l=F=>{if(!n.isPasswordSet){P.error(t("user.pleaseSetPasswordFirst"));return}F.start(),n.setAllowEmailLogin(!n.isAllowEmailLogin).then(()=>{P.success(n.isAllowEmailLogin?t("user.emailLoginEnabled"):t("user.emailLoginDisabled")),window?.umami?.track(J.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=q(()=>[{key:"account",label:t("user.account"),value:x.value?.account},{key:"nickname",label:t("user.nickname"),value:x.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:x.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:x.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:x.value?.createdAt?vt(x.value.createdAt).format("YYYY-MM-DD"):"--"}]);return Lt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const E=Ft,m=ft,S=oe("Icon"),d=De,A=dt;return j(),le("div",Mn,[W("div",gn,[b(m,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[W("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[W("div",Dn,[b(Ot,{size:80,shape:"square",src:k(r).avatar,text:k(r).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=L=>u.value?.open())},{default:T(()=>[ae($(x.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),W("h3",null,$(x.value?.account),1)]),b(E),b(k(rn),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(m,{class:"col-start-2"},{header:T(()=>[W("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[W("div",Ln,[W("div",vn,[W("div",On,[b(S,{icon:"material-symbols:lock"})]),W("div",kn,[W("h4",null,$(k(t)("user.loginPassword")),1),W("p",wn,$(k(t)("user.passwordTip")),1)]),b(d,{type:"primary",onClick:c[1]||(c[1]=L=>i.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),W("div",bn,[W("div",_n,[b(S,{icon:"material-symbols:mark-email-unread"})]),W("div",yn,[W("h4",null,$(k(t)("user.emailLogin")),1),W("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:L,loading:h})=>[b(A,{loading:h,"model-value":k(n).isAllowEmailLogin,onChange:O=>l(L)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(cn,{ref:"emailDialog"},null,512),b(dn,{ref:"passwordDialog"},null,512),b(Sn,{ref:"nicknameDialog"},null,512),b(Bn,{ref:"avatarDialog"},null,512)])}}});export{Jn as default};
@@ -0,0 +1 @@
1
+ import{w as _}from"./vendor-core-BHu_Iam8.js";import{Z as p,o as a}from"./index-Ds4AosT0.js";const P=(o="")=>{if(!o)throw new Error("createCompMetaStore scopeId is required");return _(`compMeta_${o}`,{state:()=>({detail:{},depEntryNameToFile:{},versionToFileAccessPath:{},localCompInfo:[],latestVersion:""}),getters:{isLocalExist:e=>e.localCompInfo.length!==0,latestVersionToFileAccessPath:e=>e.versionToFileAccessPath[e.latestVersion]??[]},actions:{setLatestVersion(e){this.$patch(t=>{t.latestVersion=e})},setLocalCompInfo(e){this.$patch(t=>{t.localCompInfo=e})},setDetail(e,t){this.$patch(r=>{r.detail[e]={...r.detail[e],...t}})},setDepEntryNameToFile(e,t){this.$patch(r=>{r.depEntryNameToFile[e]=t})},setVersionToFileAccessPath(e,t){this.$patch(r=>{r.versionToFileAccessPath[e]=t})}}})};function u(o,e){return o.filter(t=>{const r=e.find(l=>l.name===t.name||l.name===t.parent?.name);if(!r)return!1;const{match:h}=r,{major:s,minor:n,patch:m}=p.parseVersion(t.version),{major:i,minor:c,patch:T}=p.parseVersion(r.version);switch(h){case a.COMP_MATCH_TYPE_AUTO:return!0;case a.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case a.COMP_MATCH_TYPE_MAJOR_VERSION:return s===i;case a.COMP_MATCH_TYPE_MINOR_VERSION:return s===i&&n===c;case a.COMP_MATCH_TYPE_EXACT_VERSION:return s===i&&n===c&&m===T}})}export{P as c,u as p};