comp-hub 0.27.18 → 0.27.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -147
- package/bin/cli.js +85 -84
- package/dist/index.js +1 -1
- package/dist/website/container/assets/index-BE50zrUP.css +1 -0
- package/dist/website/container/assets/{index-CdaB9oWd.js → index-Cmi2NYAU.js} +1 -1
- package/dist/website/container/index.html +34 -34
- package/dist/website/container/js/vue2-sfc-loader.js +260 -260
- package/dist/website/container/js/vue3-sfc-loader.js +289 -289
- package/dist/website/item/assets/{index-B0s1uwsa.js → index-D1z-Gulp.js} +3 -3
- package/dist/website/item/assets/index-DMrYn9mD.css +1 -0
- package/dist/website/item/index.html +32 -32
- package/dist/website/main/assets/{AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CfufrKbA.js → AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-bvKbrkpk.js} +1 -1
- package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-B6WkXWm7.js → BaseDialog.vue_vue_type_script_setup_true_lang-CPKWysZj.js} +1 -1
- package/dist/website/main/assets/{BaseSegmented.vue_vue_type_script_setup_true_lang-D5yw_wF0.js → BaseSegmented.vue_vue_type_script_setup_true_lang-CIcujGT8.js} +1 -1
- package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-BwtYEYU5.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-Z_wBEKCl.js} +1 -1
- package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-DIgE9MGd.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-C8xBMnWg.js} +1 -1
- package/dist/website/main/assets/{core-DE5-zGKf.js → core-DCZ-eL8G.js} +1 -1
- package/dist/website/main/assets/{el-table-column-BiqynxkD.js → el-table-column-Cx9gMgrN.js} +1 -1
- package/dist/website/main/assets/{index-BIGvC1SM.js → index-4acODfuo.js} +1 -1
- package/dist/website/main/assets/index-B2BmYIO5.js +1 -0
- package/dist/website/main/assets/index-B37e-H6y.js +1 -0
- package/dist/website/main/assets/index-B63tZaB2.css +1 -0
- package/dist/website/main/assets/{index-gOTpUrNM.js → index-BGTVNDSV.js} +1 -1
- package/dist/website/main/assets/{index-DvyE3TrH.js → index-BaX-1N8K.js} +2 -2
- package/dist/website/main/assets/{index-BGLjC3BV.js → index-BngP265n.js} +1 -1
- package/dist/website/main/assets/index-BnpZ3Duk.js +25 -0
- package/dist/website/main/assets/{index-BQWeT5qu.js → index-Bw7t67yK.js} +1 -1
- package/dist/website/main/assets/{index-CGgS1tZ0.js → index-C7kV7E5j.js} +1 -1
- package/dist/website/main/assets/index-C9r8rR8o.js +1 -0
- package/dist/website/main/assets/index-CfMcBFhz.js +1 -0
- package/dist/website/main/assets/{index-Dl-mwEbG.js → index-CqcYb_O4.js} +1 -1
- package/dist/website/main/assets/{index-BfPdLll-.js → index-CvRT9IhX.js} +1 -1
- package/dist/website/main/assets/{index-D7eOWAPr.js → index-Cy6hrNNt.js} +1 -1
- package/dist/website/main/assets/index-Czj4Va_p.js +1 -0
- package/dist/website/main/assets/{index-DBM1x91X.js → index-D4mf-9oL.js} +1 -1
- package/dist/website/main/assets/index-DBDOcdx3.js +2 -0
- package/dist/website/main/assets/{index-D8WDrGkh.js → index-DGdf8eP2.js} +1 -1
- package/dist/website/main/assets/{index-ctwb4cB7.js → index-DMAX-M2Q.js} +1 -1
- package/dist/website/main/assets/{index-CFH_ugiT.js → index-DNszuV9Y.js} +1 -1
- package/dist/website/main/assets/index-DlO1wWqO.js +1 -0
- package/dist/website/main/assets/{index-q4Z3Q7p4.js → index-DsYCIdsq.js} +1 -1
- package/dist/website/main/assets/{index-Cu1YAWdz.js → index-DxYo8MHB.js} +1 -1
- package/dist/website/main/assets/{index-Cl0SK7oa.css → index-DxyEzkir.css} +1 -1
- package/dist/website/main/assets/{index-Oo11MKfd.js → index-Dz7Dj_1u.js} +1 -1
- package/dist/website/main/assets/index-FHO37hxp.css +1 -0
- package/dist/website/main/assets/{index-uu5oSUvx.js → index-GnkbPU1i.js} +1 -1
- package/dist/website/main/assets/{index-C9t3Yhe9.js → index-IUKgsvZv.js} +1 -1
- package/dist/website/main/assets/{index-DmO0JQ56.css → index-JFePecD_.css} +1 -1
- package/dist/website/main/assets/{index-CTLlcQoM.js → index-O6EResxn.js} +1 -1
- package/dist/website/main/assets/index-Pry-PAul.css +1 -0
- package/dist/website/main/assets/{index-vnzmxexj.js → index-WuHE7xfi.js} +1 -1
- package/dist/website/main/assets/index-ZwxrucVt.js +1 -0
- package/dist/website/main/assets/{index-cFhtMyBi.js → index-x3kqy62K.js} +2 -2
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BDhf8t5D.js → index.vue_vue_type_script_setup_true_lang-C5L_ugEm.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-aO0L9Tak.js → index.vue_vue_type_script_setup_true_lang-CmisVeEC.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-D_7jZ1zo.js → index.vue_vue_type_script_setup_true_lang-CwhJTB8k.js} +2 -2
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-B4echric.js → index.vue_vue_type_script_setup_true_lang-DRlqnxVM.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-COryHg9c.js → index.vue_vue_type_script_setup_true_lang-SLaqY8P4.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Dtuk2wrA.js → index.vue_vue_type_script_setup_true_lang-Y8sQYcwy.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C4fELX8m.js → index.vue_vue_type_style_index_0_lang-BygWE3Ob.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-D_eT-tA_.js → index.vue_vue_type_style_index_0_lang-TY8hdvSG.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C3U7f9Ma.js → index.vue_vue_type_style_index_0_lang-vmUTBf-P.js} +1 -1
- package/dist/website/main/assets/{md5-BZr8xhBN.js → md5-CDR0X4F9.js} +1 -1
- package/dist/website/main/assets/{useCompEditStore-B7KaUbOi.js → useCompEditStore-BaMFNGpl.js} +2 -2
- package/dist/website/main/assets/{useCompEditStore-Du_-rNtX.css → useCompEditStore-DdbvUh5w.css} +1 -1
- package/dist/website/main/assets/{useKeyword-D1qu8Tz-.js → useKeyword-BMG9y3e4.js} +1 -1
- package/dist/website/main/assets/{useMessage-D7WAp245.js → useMessage-CNq7TVBk.js} +1 -1
- package/dist/website/main/assets/{useVscodeOpen-DIYbcP1e.js → useVscodeOpen-B7qurnVy.js} +1 -1
- package/dist/website/main/assets/{vendor-ui-D6wVBlls.js → vendor-ui-CmoKJ_4A.js} +3 -3
- package/dist/website/main/index.html +3 -3
- package/package.json +39 -39
- package/dist/website/container/assets/index-BnbvpvZL.css +0 -1
- package/dist/website/item/assets/index-BIcNxYiU.css +0 -1
- package/dist/website/main/assets/index-B6f_06zP.js +0 -1
- package/dist/website/main/assets/index-BkUBwon5.css +0 -1
- package/dist/website/main/assets/index-CCFHORqg.js +0 -1
- package/dist/website/main/assets/index-CWW1M_cy.js +0 -1
- package/dist/website/main/assets/index-Cf69_nzt.js +0 -23
- package/dist/website/main/assets/index-CuHNNhtE.js +0 -1
- package/dist/website/main/assets/index-D6Fz5rH9.css +0 -1
- package/dist/website/main/assets/index-DC94GyXj.js +0 -1
- package/dist/website/main/assets/index-DrUAgWBX.js +0 -1
- package/dist/website/main/assets/index-YUZjR2Eq.js +0 -2
- package/dist/website/main/assets/index-tEU6GnSH.js +0 -1
- package/dist/website/main/assets/index-y8GEzH-z.css +0 -1
|
@@ -11,4 +11,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,curr
|
|
|
11
11
|
`).replace(/[\r\f]/g,`
|
|
12
12
|
`):e}let lc=null,d8;function p8(){return lc===null&&(lc=new Intl.Segmenter(d8,{granularity:"word"})),lc}const h8=new RegExp("\\p{Script=Arabic}","u"),Cl=new RegExp("\\p{M}","u"),i_=new RegExp("\\p{Nd}","u");function th(e){return h8.test(e)}function nh(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 xo(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 o=(n-55296<<10)+(r-56320)+65536;if(nh(o))return!0;t++;continue}}if(nh(n))return!0}}return!1}function m8(e){const t=wl(e);return t!==null&&(Of.has(t)||bo.has(t))}const g8=new Set([" "," ","","\uFEFF"]);function v8(e){return xo(e)}function _8(e){const t=wl(e);return t!==null&&g8.has(t)}function x8(e){return!m8(e)&&!_8(e)}const Of=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),Sl=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Nf=new Set(["'","’"]),bo=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),b8=new Set([":",".","،","؛"]),y8=new Set(["၏"]),E8=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function C8(e){if(Ff(e))return!0;let t=!1;for(const n of e){if(bo.has(n)){t=!0;continue}if(!(t&&Cl.test(n)))return!1}return t}function S8(e){for(const t of e)if(!Of.has(t)&&!bo.has(t))return!1;return e.length>0}function w8(e){if(Ff(e))return!0;for(const t of e)if(!Sl.has(t)&&!Nf.has(t)&&!Cl.test(t))return!1;return e.length>0}function Ff(e){let t=!1;for(const n of e)if(!(n==="\\"||Cl.test(n))){if(Sl.has(n)||bo.has(n)||Nf.has(n)){t=!0;continue}return!1}return t}function a_(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 o=n-1;if(o<0)return n;const s=e.charCodeAt(o);return s>=55296&&s<=56319?o:n}function wl(e){if(e.length===0)return null;const t=a_(e,e.length);return e.slice(t)}function A8(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(Cl.test(r)){n--;continue}if(Sl.has(r)||Nf.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function T8(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function rh(e,t,n,r){const o=t[r],s=e[r];if(o==null)return s;const i=n[r];if(s.length===i)return s;const a=o.repeat(i);return e[r]=a,a}function oh(e,t){return e&&t!==null&&b8.has(t)}function O8(e){const t=wl(e);return t!==null&&y8.has(t)}function N8(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 lu(e){let t=e.length;for(;t>0;){const n=a_(e,t),r=e.slice(n,t);if(E8.has(r))return!0;if(!bo.has(r))return!1;t=n}return!1}function F8(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
|
|
13
13
|
`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e===""||e==="\uFEFF"?"glue":e===""?"zero-width-break":e===""?"soft-hyphen":"text"}const M8=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function bn(e){return e.length===1?e[0]:e.join("")}function L8(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),bn(n)}function I8(e,t,n,r){if(!M8.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const o=[];let s=null,i=[],a=n,l=!1,c=0;for(const u of e){const f=F8(u,r),d=f==="text"&&t;if(s!==null&&f===s&&d===l){i.push(u),c+=u.length;continue}s!==null&&o.push({text:bn(i),isWordLike:l,kind:s,start:a}),s=f,i=[u],a=n+c,l=d,c+=u.length}return s!==null&&o.push({text:bn(i),isWordLike:l,kind:s,start:a}),o}function cu(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const P8=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function D8(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:P8.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function k8(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function R8(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),o=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!D8(e,i))continue;const a=[t[i]];let l=i+1;for(;l<e.len&&!cu(r[l]);){a.push(t[l]),n[i]=!0;const c=t[l].includes("?");if(r[l]="text",t[l]="",l++,c)break}t[i]=bn(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],o[s]=o[i]),s++)}return t.length=s,n.length=s,r.length=s,o.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:o}}function $8(e){const t=[],n=[],r=[],o=[];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]),o.push(e.starts[s]),!k8(i))continue;const a=s+1;if(a>=e.len||cu(e.kinds[a]))continue;const l=[],c=e.starts[a];let u=a;for(;u<e.len&&!cu(e.kinds[u]);)l.push(e.texts[u]),u++;l.length>0&&(t.push(bn(l)),n.push(!0),r.push("text"),o.push(c),s=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}const B8=new Set([":","-","/","×",",",".","+","–","—"]),sh=/^[A-Za-z0-9_]+[,:;]*$/,ih=/[,:;]+$/;function l_(e){for(const t of e)if(i_.test(t))return!0;return!1}function Pa(e){if(e.length===0)return!1;for(const t of e)if(!(i_.test(t)||B8.has(t)))return!1;return!0}function V8(e){const t=[],n=[],r=[],o=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&Pa(i)&&l_(i)){const l=[i];let c=s+1;for(;c<e.len&&e.kinds[c]==="text"&&Pa(e.texts[c]);)l.push(e.texts[c]),c++;t.push(bn(l)),n.push(!0),r.push("text"),o.push(e.starts[s]),s=c-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),o.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}function H8(e){const t=[],n=[],r=[],o=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],l=e.isWordLike[s];if(a==="text"&&l&&sh.test(i)){const c=[i];let u=ih.test(i),f=s+1;for(;u&&f<e.len&&e.kinds[f]==="text"&&e.isWordLike[f]&&sh.test(e.texts[f]);){const d=e.texts[f];c.push(d),u=ih.test(d),f++}t.push(bn(c)),n.push(!0),r.push("text"),o.push(e.starts[s]),s=f-1;continue}t.push(i),n.push(l),r.push(a),o.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}function U8(e){const t=[],n=[],r=[],o=[];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 l=a.length>1;for(let c=0;c<a.length;c++){const u=a[c];if(!l)break;(u.length===0||!l_(u)||!Pa(u))&&(l=!1)}if(l){let c=0;for(let u=0;u<a.length;u++){const f=a[u],d=u<a.length-1?`${f}-`:f;t.push(d),n.push(!0),r.push("text"),o.push(e.starts[s]+c),c+=d.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),o.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}function j8(e){const t=[],n=[],r=[],o=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],l=e.kinds[s],c=e.starts[s];if(l==="glue"){const u=[i[0]],f=c;for(s++;s<e.len&&e.kinds[s]==="glue";)u.push(e.texts[s]),s++;const d=bn(u);if(s<e.len&&e.kinds[s]==="text")i[0]=d,i.push(e.texts[s]),a=e.isWordLike[s],l="text",c=f,s++;else{t.push(d),n.push(!1),r.push("glue"),o.push(f);continue}}else s++;if(l==="text")for(;s<e.len&&e.kinds[s]==="glue";){const u=[];for(;s<e.len&&e.kinds[s]==="glue";)u.push(e.texts[s]),s++;const f=bn(u);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(bn(i)),n.push(a),r.push(l),o.push(c)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}function W8(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),o=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!xo(t[s])||!xo(t[s+1]))continue;const i=A8(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],o[s+1]=o[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}function ah(e,t,n){const r=p8();let o=0;const s=[],i=[],a=[],l=[],c=[],u=[],f=[],d=[],p=[],h=[],m=[],v=[];for(const b of r.segment(e))for(const O of I8(b.segment,b.isWordLike??!1,b.index,n)){let R=function(){u[M]!==null&&(i[M]=[rh(s,u,f,M)],u[M]=null),i[M].push(O.text),a[M]=a[M]||O.isWordLike,d[M]=d[M]||W,p[M]=p[M]||I,h[M]=H,m[M]=D,v[M]=oh(p[M],Y)};var E=R;const F=O.kind==="text",V=T8(O.text,O.isWordLike,O.kind),W=xo(O.text),I=th(O.text),Y=wl(O.text),H=lu(O.text),D=O8(O.text),M=o-1;t.carryCJKAfterClosingQuote&&F&&o>0&&l[M]==="text"&&W&&d[M]&&h[M]||F&&o>0&&l[M]==="text"&&S8(O.text)&&d[M]||F&&o>0&&l[M]==="text"&&m[M]?R():F&&o>0&&l[M]==="text"&&O.isWordLike&&I&&v[M]?(R(),a[M]=!0):V!==null&&o>0&&l[M]==="text"&&u[M]===V?f[M]=(f[M]??1)+1:F&&!O.isWordLike&&o>0&&l[M]==="text"&&!d[M]&&(C8(O.text)||O.text==="-"&&a[M])?R():(s[o]=O.text,i[o]=[O.text],a[o]=O.isWordLike,l[o]=O.kind,c[o]=O.start,u[o]=V,f[o]=V===null?0:1,d[o]=W,p[o]=I,h[o]=H,m[o]=D,v[o]=oh(I,Y),o++)}for(let b=0;b<o;b++){if(u[b]!==null){s[b]=rh(s,u,f,b);continue}s[b]=bn(i[b])}for(let b=1;b<o;b++)l[b]==="text"&&!a[b]&&Ff(s[b])&&l[b-1]==="text"&&!d[b-1]&&(s[b-1]+=s[b],a[b-1]=a[b-1]||a[b],s[b]="");const g=Array.from({length:o},()=>null);let _=-1;for(let b=o-1;b>=0;b--){const O=s[b];if(O.length!==0){if(l[b]==="text"&&!a[b]&&w8(O)&&_>=0&&l[_]==="text"){const F=g[_]??[];F.push(O),g[_]=F,c[_]=c[b],s[b]="";continue}_=b}}for(let b=0;b<o;b++){const O=g[b];O!=null&&(s[b]=L8(O,s[b]))}let y=0;for(let b=0;b<o;b++){const O=s[b];O.length!==0&&(y!==b&&(s[y]=O,a[y]=a[b],l[y]=l[b],c[y]=c[b]),y++)}s.length=y,a.length=y,l.length=y,c.length=y;const x=j8({len:y,texts:s,isWordLike:a,kinds:l,starts:c}),S=W8(H8(U8(V8($8(R8(x))))));for(let b=0;b<S.len-1;b++){const O=N8(S.texts[b]);O!==null&&(S.kinds[b]!=="space"&&S.kinds[b]!=="preserved-space"||S.kinds[b+1]!=="text"||!th(S.texts[b+1])||(S.texts[b]=O.space,S.isWordLike[b]=!1,S.kinds[b]=S.kinds[b]==="preserved-space"?"preserved-space":"space",S.texts[b+1]=O.marks+S.texts[b+1],S.starts[b+1]=S.starts[b]+O.space.length))}return S}function G8(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 o=0;o<e.len;o++)e.kinds[o]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:o,consumedEndSegmentIndex:o+1}),r=o+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function z8(e){if(e.len<=1)return e;const t=[],n=[],r=[],o=[];let s=null,i=!1,a=0,l=!1,c=!1;function u(){s!==null&&(t.push(bn(s)),n.push(i),r.push("text"),o.push(a),s=null)}for(let f=0;f<e.len;f++){const d=e.texts[f],p=e.kinds[f],h=e.isWordLike[f],m=e.starts[f];if(p==="text"){const v=v8(d),g=x8(d);if(s!==null&&l&&c){s.push(d),i=i||h,l=l||v,c=g;continue}u(),s=[d],i=h,a=m,l=v,c=g;continue}u(),t.push(d),n.push(h),r.push(p),o.push(m)}return u(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:o}}function K8(e,t,n="normal",r="normal"){const o=c8(n),s=o.mode==="pre-wrap"?f8(e):u8(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?z8(ah(s,t,o)):ah(s,t,o);return{normalized:s,chunks:G8(i,o),...i}}let Oo=null;const lh=new Map;let No=null;const Y8=96,q8=new RegExp("\\p{Emoji_Presentation}","u"),J8=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let cc=null;const ch=new Map;function Mf(){if(Oo!==null)return Oo;if(typeof OffscreenCanvas<"u")return Oo=new OffscreenCanvas(1,1).getContext("2d"),Oo;if(typeof document<"u")return Oo=document.createElement("canvas").getContext("2d"),Oo;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function X8(e){let t=lh.get(e);return t||(t=new Map,lh.set(e,t)),t}function Rr(e,t){let n=t.get(e);return n===void 0&&(n={width:Mf().measureText(e).width,containsCJK:xo(e)},t.set(e,n)),n}function Al(){if(No!==null)return No;if(typeof navigator>"u")return No={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},No;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 No={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},No}function Q8(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function c_(){return cc===null&&(cc=new Intl.Segmenter(void 0,{granularity:"grapheme"})),cc}function Z8(e){return q8.test(e)||e.includes("️")}function eD(e){return J8.test(e)}function tD(e,t){let n=ch.get(e);if(n!==void 0)return n;const r=Mf();r.font=e;const o=r.measureText("😀").width;if(n=0,o>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),o-i>.5&&(n=o-i)}return ch.set(e,n),n}function nD(e){let t=0;const n=c_();for(const r of n.segment(e))Z8(r.segment)&&t++;return t}function rD(e,t){return t.emojiCount===void 0&&(t.emojiCount=nD(e)),t.emojiCount}function ao(e,t,n){return n===0?t.width:t.width-rD(e,t)*n}function oD(e,t,n,r,o){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===o)return t.breakableFitAdvances;t.breakableFitMode=o;const s=c_(),i=[];for(const u of s.segment(e))i.push(u.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(o==="sum-graphemes"){const u=[];for(const f of i){const d=Rr(f,n);u.push(ao(f,d,r))}return t.breakableFitAdvances=u,t.breakableFitAdvances}if(o==="pair-context"||i.length>Y8){const u=[];let f=null,d=0;for(const p of i){const h=Rr(p,n),m=ao(p,h,r);if(f===null)u.push(m);else{const v=f+p,g=Rr(v,n);u.push(ao(v,g,r)-d)}f=p,d=m}return t.breakableFitAdvances=u,t.breakableFitAdvances}const a=[];let l="",c=0;for(const u of i){l+=u;const f=Rr(l,n),d=ao(l,f,r);a.push(d-c),c=d}return t.breakableFitAdvances=a,t.breakableFitAdvances}function sD(e,t){const n=Mf();n.font=e;const r=X8(e),o=Q8(e),s=t?tD(e,o):0;return{cache:r,fontSize:o,emojiCorrection:s}}function iD(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function u_(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function f_(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!iD(r))break;t++}return t}function aD(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function lD(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function Lf(e,t){return t===0?0:e+t}function cD(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function uD(e,t,n,r,o){const s=t==="tab"?o+cD(e,n):e.lineEndFitAdvances[n];return Lf(r,s)}function uh(e,t,n,r){const o=t==="tab"?0:e.lineEndFitAdvances[n];return Lf(r,o)}function fh(e,t,n,r,o){const s=t==="tab"?o:e.lineEndPaintAdvances[n];return Lf(r,s)}function fD(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function dD(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function pD(e,t,n,r,o,s){let i=0,a=t;for(;i<e.length;){const l=a+e[i]+s;if((i+1<e.length?l+o:l)>n+r)break;a=l,i++}return{fitCount:i,fittedWidth:a}}function hD(e,t,n){const{widths:r,kinds:o,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Al().lineFitEpsilon,l=t+a;let c=0,u=0,f=!1,d=0,p=0,h=0,m=0,v=-1,g=0;function _(){v=-1,g=0}function y(F=h,V=m,W=u){c++,n?.(W,d,p,F,V),u=0,f=!1,_()}function x(F,V){f=!0,d=F,p=0,h=F+1,m=0,u=V}function S(F,V,W){f=!0,d=F,p=V,h=F,m=V+1,u=W}function E(F,V){if(!f){x(F,V);return}u+=V,h=F+1,m=0}function b(F,V){const W=s[F];for(let I=V;I<W.length;I++){const Y=W[I];f?u+Y>l?(y(),S(F,I,Y)):(u+=Y,h=F,m=I+1):S(F,I,Y)}f&&h===F&&m===W.length&&(h=F+1,m=0)}let O=0;for(;O<r.length&&!(!f&&(O=f_(e,O),O>=r.length));){const F=r[O],V=o[O],W=u_(V);if(!f){F>l&&s[O]!==null?b(O,0):x(O,F),W&&(v=O+1,g=u-F),O++;continue}if(u+F>l){if(W){E(O,F),y(O+1,0,u-F),O++;continue}if(v>=0){if(h>v||h===v&&m>0){y();continue}y(v,0,g);continue}if(F>l&&s[O]!==null){y(),b(O,0),O++;continue}y();continue}E(O,F),W&&(v=O+1,g=u-F),O++}return f&&y(),c}function mD(e,t,n){if(e.simpleLineWalkFastPath)return hD(e,t,n);const{widths:r,kinds:o,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const l=Al(),c=l.lineFitEpsilon,u=t+c;let f=0,d=0,p=!1,h=0,m=0,v=0,g=0,_=-1,y=0,x=0,S=null;function E(){_=-1,y=0,x=0,S=null}function b(D=v,M=g,R=d){f++,n?.(R,h,m,D,M),d=0,p=!1,E()}function O(D,M){p=!0,h=D,m=0,v=D+1,g=0,d=M}function F(D,M,R){p=!0,h=D,m=M,v=D,g=M+1,d=R}function V(D,M){if(!p){O(D,M);return}d+=M,v=D+1,g=0}function W(D,M,R,j,ne,le){if(!M)return;const xe=uh(e,D,R,ne),Ee=fh(e,D,R,ne,j);_=R+1,y=d-le+xe,x=d-le+Ee,S=D}function I(D,M){const R=s[D];for(let j=M;j<R.length;j++){const ne=R[j];if(!p)F(D,j,ne);else{const le=fD(e,!0,ne),xe=d+le;dD(e,xe)>u?(b(),F(D,j,ne)):(d=xe,v=D,g=j+1)}}p&&v===D&&g===R.length&&(v=D+1,g=0)}function Y(D){if(S!=="soft-hyphen")return!1;const M=s[D];if(M==null)return!1;const{fitCount:R,fittedWidth:j}=pD(M,d,t,c,i,e.letterSpacing);return R===0?!1:(d=j,v=D,g=R,E(),R===M.length?(v=D+1,g=0,!0):(b(D,R,j+i),I(D,R),!0))}function H(D){f++,n?.(0,D.startSegmentIndex,0,D.consumedEndSegmentIndex,0),E()}for(let D=0;D<a.length;D++){const M=a[D];if(M.startSegmentIndex===M.endSegmentIndex){H(M);continue}p=!1,d=0,h=M.startSegmentIndex,m=0,v=M.startSegmentIndex,g=0,E();let R=M.startSegmentIndex;for(;R<M.endSegmentIndex&&!(!p&&(R=f_(e,R,M.endSegmentIndex),R>=M.endSegmentIndex));){const j=o[R],ne=u_(j),le=lD(e,p,R),xe=j==="tab"?aD(d+le,e.tabStopAdvance):r[R],Ee=le+xe,Ne=uD(e,j,R,le,xe);if(j==="soft-hyphen"){p&&(v=R+1,g=0,_=R+1,y=d+i,x=d+i,S=j),R++;continue}if(!p){Ne>u&&s[R]!==null?I(R,0):O(R,xe),W(j,ne,R,xe,le,Ee),R++;continue}if(d+Ne>u){const Le=d+uh(e,j,R,le),He=d+fh(e,j,R,le,xe);if(S==="soft-hyphen"&&l.preferEarlySoftHyphenBreak&&y<=u){b(_,0,x);continue}if(S==="soft-hyphen"&&Y(R)){R++;continue}if(ne&&Le<=u){V(R,Ee),b(R+1,0,He),R++;continue}if(_>=0&&y<=u){if(v>_||v===_&&g>0){b();continue}const K=_;b(K,0,x),R=K;continue}if(Ne>u&&s[R]!==null){b(),I(R,0),R++;continue}b();continue}V(R,Ee),W(j,ne,R,xe,le,Ee),R++}if(p){const j=_===M.consumedEndSegmentIndex?x:d;b(M.consumedEndSegmentIndex,0,j)}}return f}let uc=null,dh=new WeakMap;function gD(){return uc===null&&(uc=new Intl.Segmenter(void 0,{granularity:"grapheme"})),uc}function ph(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const o=gD();for(const s of o.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function vD(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function hh(e,t,n,r){for(let o=n;o<r;o++)e+=t[o];return e}function _D(e){let t=dh.get(e);return t!==void 0||(t=new Map,dh.set(e,t)),t}function xD(e,t,n,r,o,s){let i="";const a=vD(e.kinds,n,r,o);for(let l=n;l<o;l++)if(!(e.kinds[l]==="soft-hyphen"||e.kinds[l]==="hard-break"))if(l===n&&r>0){const c=ph(l,e.segments,t);i=hh(i,c,r,c.length)}else i+=e.segments[l];if(s>0){a&&(i+="-");const l=ph(o,e.segments,t);i=hh(i,l,n===o?r:0,s)}else a&&(i+="-");return i}let fc=null;function bD(){return fc===null&&(fc=new Intl.Segmenter(void 0,{granularity:"grapheme"})),fc}function yD(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function ED(e,t){const n=[];let r=[],o=0,s=!1,i=!1,a=!1;function l(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:o}),r=[],s=!1,i=!1,a=!1)}function c(f,d,p){r=[f],o=d,s=p,i=lu(f),a=Sl.has(f)}function u(f,d){r.push(f),s=s||d;const p=lu(f);f.length===1&&bo.has(f)?i=i||p:i=p,a=!1}for(const f of bD().segment(e)){const d=f.segment,p=xo(d);if(r.length===0){c(d,f.index,p);continue}if(a||Of.has(d)||bo.has(d)||t.carryCJKAfterClosingQuote&&p&&i){u(d,p);continue}if(!s&&!p){u(d,p);continue}l(),c(d,f.index,p)}return l(),n}function CD(e,t,n){return e}function SD(e,t,n,r,o){const s=Al(),{cache:i,emojiCorrection:a}=sD(t,eD(e.normalized)),l=ao("-",Rr("-",i),a)+0,u=ao(" ",Rr(" ",i),a)*8;if(e.len===0)return yD();const f=[],d=[],p=[],h=[];let m=e.chunks.length<=1&&!0;const v=[],g=[],_=[],y=n?[]:null,x=Array.from({length:e.len});function S(F,V,W,I,Y,H,D,M){Y!=="text"&&Y!=="space"&&Y!=="zero-width-break"&&(m=!1),f.push(V),d.push(W),p.push(I),h.push(Y),v?.push(H),g.push(D),y!==null&&y.push(F)}function E(F,V,W,I,Y){const H=Rr(F,i),D=CD(ao(F,H,a)),M=V==="space"||V==="preserved-space"||V==="zero-width-break"?0:D,R=M===0?0:M+0,j=V==="space"||V==="zero-width-break"?0:D;if(Y&&I&&F.length>1){let ne="sum-graphemes";Pa(F)?ne="pair-context":s.preferPrefixWidthsForBreakableRuns&&(ne="segment-prefixes");const le=oD(F,H,i,a,ne);S(F,D,R,j,V,W,le);return}S(F,D,R,j,V,W,null)}for(let F=0;F<e.len;F++){x[F]=f.length;const V=e.texts[F],W=e.isWordLike[F],I=e.kinds[F],Y=e.starts[F];if(I==="soft-hyphen"){S(V,0,l,l,I,Y,null);continue}if(I==="hard-break"){S(V,0,0,0,I,Y,null);continue}if(I==="tab"){S(V,0,0,0,I,Y,null);continue}const H=Rr(V,i);if(I==="text"&&H.containsCJK){const M=ED(V,s);for(let R=0;R<M.length;R++){const j=M[R];E(j.text,"text",Y+j.start,W,!xo(j.text))}continue}E(V,I,Y,W,!0)}const b=wD(e.chunks,x,f.length),O=v===null?null:i8(e.normalized,v);return y!==null?{widths:f,lineEndFitAdvances:d,lineEndPaintAdvances:p,kinds:h,simpleLineWalkFastPath:m,segLevels:O,breakableFitAdvances:g,letterSpacing:o,spacingGraphemeCounts:_,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:b,segments:y}:{widths:f,lineEndFitAdvances:d,lineEndPaintAdvances:p,kinds:h,simpleLineWalkFastPath:m,segLevels:O,breakableFitAdvances:g,letterSpacing:o,spacingGraphemeCounts:_,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:b}}function wD(e,t,n){const r=[];for(let o=0;o<e.length;o++){const s=e[o],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,l=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:l})}return r}function AD(e,t,n,r){const o="normal",i=K8(e,Al(),r?.whiteSpace,o);return SD(i,t,n,o,0)}function TD(e,t,n){return AD(e,t,!0,n)}function OD(e,t,n,r,o,s,i){return{text:xD(e,t,r,o,s,i),width:n,start:{segmentIndex:r,graphemeIndex:o},end:{segmentIndex:s,graphemeIndex:i}}}function ND(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const o=_D(e),s=mD(e,t,(i,a,l,c,u)=>{r.push(OD(e,o,i,a,l,c,u))});return{lineCount:s,height:s*n,lines:r}}function If(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function FD(e,t){if(!t?.trim())return[{text:e,isMatch:!1}];const n=new RegExp(`(${If(t)})`,"gi");return e.split(n).map(r=>({text:r,isMatch:n.test(r)&&r.toLowerCase()===t.toLowerCase()}))}function MD(e,t,n="hl"){if(!t?.trim())return e;const r=If(t.trim());return e.replace(new RegExp(`(${r})`,"gi"),`<mark class="${n}">$1</mark>`)}function LD(e,t){const n=t?.trim().toLowerCase();return n?e.findIndex(r=>r.toLowerCase().includes(n)):-1}const d_=e=>e.replace(/[/\\]/g,"/"),ID=(e,t="/")=>e.replace(/[\\/]+/g,t);function PD(){return"#"+gA(0,16777215).toString(16).padStart(6,"0")}const DD=e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),p_=e=>e.replace(/[-_]([a-z])/g,(t,n)=>n.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),uu=e=>{if(Array.isArray(e))return e.map(n=>uu(n));if(e===null||typeof e!="object")return e;const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=p_(n);t[r]=uu(e[n])}return t};function kD(e){return/(^[A-Z][a-z][a-zA-Z0-9]*$)|(^[a-z]+(-[a-z0-9]+)+$)/.test(e.trim())}function RD(e){if(e<=0)throw new Error("长度必须大于0");let t="";for(;t.length<e;){const n=Math.floor(Math.random()*10);t.length===0&&n===0||(t+=n)}return t}function h_(e){if(e==null)return{valid:!1,reason:"validateHash.empty"};if(typeof e!="string")return{valid:!1,reason:"validateHash.notString",reasonParams:{type:typeof e}};const t=e.startsWith("#")?e.slice(1):e;if(t.length===0)return{valid:!1,reason:"validateHash.contentEmpty"};if(/^\d/.test(t))return{valid:!1,reason:"validateHash.startsWithNumber",reasonParams:{char:t[0]}};const n=t.match(/[^\p{L}\p{N}_\-() ]/u);if(n){const r=n[0],o=r.charCodeAt(0);return r==="`"?{valid:!1,reason:"validateHash.invalidCharBacktick"}:r===`
|
|
14
|
-
`?{valid:!1,reason:"validateHash.invalidCharNewline"}:r==="\r"?{valid:!1,reason:"validateHash.invalidCharCarriageReturn"}:r===" "?{valid:!1,reason:"validateHash.invalidCharTab"}:r==="\f"?{valid:!1,reason:"validateHash.invalidCharFormFeed"}:r==="\v"?{valid:!1,reason:"validateHash.invalidCharVerticalTab"}:r==="#"?{valid:!1,reason:"validateHash.invalidCharHash"}:/[<>\\"'&]/.test(r)?{valid:!1,reason:"validateHash.invalidCharHtmlSpecial",reasonParams:{char:r}}:{valid:!1,reason:"validateHash.invalidCharUnknown",reasonParams:{char:r,code:o.toString(16).toUpperCase().padStart(4,"0")}}}return{valid:!0,normalized:t}}function $D(e){return h_(e).valid}const fu=Object.freeze(Object.defineProperty({__proto__:null,convertKeysToCamelCase:uu,escapeRegExp:If,findKeywordLineIndex:LD,generateNumberString:RD,highlightText:MD,isEmail:DD,isValidHash:$D,randomColor:PD,replaceBackslashWithSlash:d_,replaceSlashWithSpecifiedSeparator:ID,splitTextByKeyword:FD,toCamelCase:p_,validateCompName:kD,validateHash:h_},Symbol.toStringTag,{value:"Module"}));function BD(e,t){if(!e||!t.length)throw new Error("组件路径或入口路径为空");const[n]=t.slice(-1);if(!n)throw new Error("入口路径最后一项无效");const r=d_(n);return`${e.replace(at.FILE_MANAGER_DIRNAME,"")}${r}`}function VD(e){const t={};return e.forEach(n=>{n?.parent?t[n?.parent?.name]=n?.parent?.version:t[n.name]=n.version}),Object.entries(t).map(([n,r])=>({name:n,version:r}))}const HD=Object.freeze(Object.defineProperty({__proto__:null,getPreviewUrl:BD,handleDepData:VD},Symbol.toStringTag,{value:"Module"})),mh=/^[\^~>=<]+/,m_=/^(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9.]+))?(?:\+([a-zA-Z0-9.]+))?$/;function UD(e){return m_.test(e)}function er(e){if(!e||typeof e!="string")throw new Error(`Invalid version string: ${e}`);const t=e.match(mh),n=t?t[0]:"",r=e.replace(mh,"").match(m_);if(!r)throw new Error(`Invalid semver format: ${e}`);const[,o="0",s="0",i="0",a]=r,l=parseInt(o,10),c=parseInt(s,10),u=parseInt(i,10);return{raw:e,prefix:n,major:l,minor:c,patch:u,prerelease:a||null,majorVersion:o,version:`${l}.${c}.${u}`}}function jD(e,t){const n=er(e),r=er(t);return n.major===r.major&&n.minor===r.minor&&n.patch===r.patch}function WD(e){return er(e).majorVersion}function GD(e){const t={};for(const[n,r]of Object.entries(e))try{t[n]=er(r)}catch(o){console.warn(`Failed to parse version for ${n}: ${r}`,o)}return t}function Do(e,t){const n=er(e),r=er(t),{VERSION_COMPARE_SAME:o,VERSION_COMPARE_LESS:s,VERSION_COMPARE_GREATER:i}=at;return n.major!==r.major?n.major>r.major?i:s:n.minor!==r.minor?n.minor>r.minor?i:s:n.patch!==r.patch?n.patch>r.patch?i:s:o}function zD(e,t){const n=er(e),r=er(t);switch(r.prefix){case"^":return n.major===r.major;case"~":return n.major===r.major&&n.minor===r.minor;case">=":return Do(e,t.replace(">=",""))>=0;case">":return Do(e,t.replace(">",""))>0;case"<=":return Do(e,t.replace("<=",""))<=0;case"<":return Do(e,t.replace("<",""))<0;case"=":case"":return Do(e,t.replace("=",""))===0;default:return!1}}function KD(e){if(!e||typeof e!="string")throw new Error("版本号必须是非空字符串");const t=er(e),n=(a,l)=>{if(a<0||a>999)throw new Error(`版本号${l}位必须在 0-999 之间,当前值:${a}(原始输入:${e})`);return a},r=n(t.major,"主版本"),o=n(t.minor,"次版本"),s=n(t.patch,"补丁版本"),i=r*1e6+o*1e3+s;if(!Number.isSafeInteger(i))throw new Error(`版本号转换后超出 JavaScript 安全整数范围,结果:${i}(原始输入:${e})`);return i}const Fo=Object.freeze(Object.defineProperty({__proto__:null,compareVersions:Do,getMajorVersion:WD,isVersionEqual:jD,parseDependencies:GD,parseVersion:er,satisfiesRange:zD,validateVersion:UD,versionToNumber:KD},Symbol.toStringTag,{value:"Module"})),YD={ref:"content",class:"size-full"},qD={class:"block overflow-hidden size-full"},JD={key:0,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},XD={key:0,class:"shrink-0"},QD=["innerHTML"],ZD=["innerHTML"],e6={key:1,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},t6=["innerHTML"],n6={key:0,class:"shrink-0"},r6={key:2,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},o6={key:0,class:"shrink-0"},s6=["innerHTML"],i6={key:1,class:"shrink-0"},a6="12px Inter",gh=16,l6=18,c6=ue({__name:"TextEllipsisHighlight",props:{text:{},modelValue:{type:Boolean},keyword:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=da("content"),{width:r,height:o}=tl(n),s=e,i=t,a=Z([]),l=Z(-1),c=Z(-1),u=Z({});function f(x,S){const E=S.trim().toLowerCase();if(!E||x.length===0)return{startLine:-1,endLine:-1,parts:{}};const b=[];let O=0;for(const I of x)O+=I.length,b.push(O);const W=x.join("").toLowerCase().indexOf(E);if(W!==-1){const I=W+E.length;let Y=0;for(;Y<b.length&&W>=b[Y];)Y++;let H=Y;for(;H<b.length&&I>b[H];)H++;const D=S.trim();if(Y===H)return{startLine:Y,endLine:H,parts:{[Y]:D}};const M=b[Y]-W;return{startLine:Y,endLine:H,parts:{[Y]:D.slice(0,M),[H]:D.slice(M)}}}for(let I=0;I<x.length-1;I++){const Y=x[I].toLowerCase(),H=x[I+1].toLowerCase();for(let D=1;D<E.length;D++)if(Y.endsWith(E.slice(0,D))&&H.startsWith(E.slice(D)))return{startLine:I,endLine:I+1,parts:{[I]:E.slice(0,D),[I+1]:E.slice(D)}};for(let D=1;D<E.length-1;D++)if(E[D]===" "){const M=E.slice(0,D),R=E.slice(D+1);if(M&&R&&Y.endsWith(M)&&H.startsWith(R))return{startLine:I,endLine:I+1,parts:{[I]:M,[I+1]:R}}}}return{startLine:-1,endLine:-1,parts:{}}}const d=Pg((x,S,E)=>{if(!x||!S){a.value=[],l.value=-1,c.value=-1,u.value={};return}const b=TD(x,a6),O=Math.max(0,S-l6),{lines:F}=ND(b,O,gh);a.value=F.map(W=>W.text);const V=f(a.value,E);l.value=V.startLine,c.value=V.endLine,u.value=V.parts},100);_e([()=>s.text,r,()=>s.keyword],([x,S,E])=>{d(x,S,E)},{immediate:!0});const p=L(()=>o.value?Math.max(1,Math.floor(o.value/gh)):1),h=L(()=>{const x=a.value,S=p.value,E=l.value,b=c.value;if(x.length===0)return[];if(E===-1||b===-1||x.length<=S)return x.slice(0,S);const O=Math.max(0,Math.min(E,b-S+1));return x.slice(O,O+S)}),m=L(()=>{const x=a.value,S=p.value,E=l.value,b=c.value;return x.length===0||E===-1||b===-1||x.length<=S?0:Math.max(0,Math.min(E,b-S+1))}),v=L(()=>l.value!==-1&&h.value[0]!==a.value[0]),g=L(()=>l.value===-1?a.value.length>h.value.length:h.value.at(-1)!==a.value.at(-1)),_=L(()=>a.value.length>p.value);_e(_,x=>{i("update:modelValue",x)});const y=(x="",S)=>{if(S!==void 0){const E=u.value[S];if(E)return fu.highlightText(x,E,"hl")}return fu.highlightText(x,s.keyword||"","hl")};return(x,S)=>(U(),ae("div",YD,[te("div",qD,[h.value.length>=2?(U(),ae("div",JD,[v.value?(U(),ae("span",XD,"...")):Ae("",!0),te("span",{innerHTML:y(h.value[0],m.value)},null,8,QD)])):Ae("",!0),(U(!0),ae(ke,null,Nn(h.value.slice(1,-1),(E,b)=>(U(),ae("div",{key:m.value+b+1,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},[te("span",{innerHTML:y(E,m.value+b+1)},null,8,ZD)]))),128)),h.value.length>1?(U(),ae("div",e6,[te("span",{innerHTML:y(h.value[h.value.length-1],m.value+h.value.length-1)},null,8,t6),g.value?(U(),ae("span",n6,"...")):Ae("",!0)])):Ae("",!0),h.value.length===1?(U(),ae("div",r6,[v.value?(U(),ae("span",o6,"...")):Ae("",!0),te("span",{innerHTML:y(h.value[0],m.value)},null,8,s6),g.value?(U(),ae("span",i6,"...")):Ae("",!0)])):Ae("",!0)])],512))}}),u6=Oi(c6,[["__scopeId","data-v-361ff366"]]),f6={class:"flex items-center justify-center gap-[6px] leading-[15px]"},d6={class:"text-xs leading-3 align-middle"},p6={class:"inline-block align-middle shrink-0"},h6=ue({__name:"UserAvatar",props:{nickname:{type:String,default:""},teamUserNickname:{type:String,default:""}},setup(e){const t=e,n=L(()=>t.teamUserNickname||t.nickname||"--");return(r,o)=>(U(),ae("div",f6,[te("span",d6,De(n.value),1),te("div",p6,[Se(r.$slots,"avatar",{},void 0,!0)])]))}}),m6=Oi(h6,[["__scopeId","data-v-99cd7413"]]),g6={key:1,class:"grid-container"},v6=ue({__name:"GridContainer",props:{itemMinWidth:{type:Number,default:300},gap:{type:Number,default:20},useTransition:{type:Boolean,default:!0}},setup(e){Ub(o=>({v56c8ef5c:r.value,v1930c0b1:n.value}));const t=e,n=L(()=>t.gap+"px"),r=L(()=>t.itemMinWidth+"px");return(o,s)=>e.useTransition?(U(),he(sy,{key:0,class:"grid-container",name:"list",tag:"div"},{default:pe(()=>[Se(o.$slots,"default",{},void 0,!0)]),_:3})):(U(),ae("div",g6,[Se(o.$slots,"default",{},void 0,!0)]))}}),_6=Oi(v6,[["__scopeId","data-v-25e40c3e"]]);function x6(e){const t=document.createElement("canvas"),n=t.getContext("2d");if(!n)return"";t.width=100,t.height=100,n.fillStyle="#fff",n.font="60px serif";const r=n.measureText(e),o=r.width,s=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,i=(t.width-o)/2,a=(t.height+s)/2-r.actualBoundingBoxDescent;return n.fillText(e,i,a),t.toDataURL()}let $o=null;const g_="IS_REPLACE",v_="IS_ADD",__="IS_DELETE",x_="IS_CLEAR";function dc(){$o!==null&&(typeof cancelIdleCallback=="function"?cancelIdleCallback($o):typeof clearTimeout=="function"&&clearTimeout($o),$o=null)}const vh=(e,t)=>{if(typeof requestIdleCallback=="function")return requestIdleCallback(e,t);{const n=t?.timeout??50,r=Date.now();return setTimeout(()=>{const o=Date.now()-r>=n;e({timeRemaining:()=>Math.max(0,n-(Date.now()-r)),didTimeout:o})},1)}};function b6({list:e,oldList:t=[],render:n}){if(dc(),e.length===0)return n(x_,t),()=>{dc()};const r=t.filter(f=>!e.some(d=>d._id===f._id));r.length>0&&n(__,r);let o=0;const s=e.length,i=8;let a=i,l=0,c=0;const u=f=>{if(l>2&&(a=Math.max(0,a-1),l=0),c>1&&(a=Math.min(i,a+1)),o<s&&(f.timeRemaining()>a||f.didTimeout)){const d=e[o];if(!d)throw new Error("组件列表项无效");t.findIndex(h=>h._id===d._id)>-1?n(g_,[d]):n(v_,[d]),o++,l=0,c++,c>10&&(c=0)}else l++,c=0,l>5&&(a=Math.max(0,a-2));o<s&&($o=vh(u,{timeout:16.6*30}))};return s>0&&($o=vh(u,{timeout:16.6*30})),()=>{dc()}}const y6=ue({__name:"Collect",props:{isCollect:{type:Boolean,default:!1}},emits:["collect"],setup(e,{emit:t}){const n=_m(),r=e,o=t;function s(){o("collect",!r.isCollect)}return(i,a)=>(U(),he(A(cs),Dt(A(n),{icon:"material-symbols:kid-star",class:["cursor-pointer",{"is-collected":e.isCollect}],onClick:s}),null,16,["class"]))}}),E6=Oi(y6,[["__scopeId","data-v-e64b851f"]]),C6=ue({__name:"CompDepsTags",props:{compDeps:{},depsSetting:{}},setup(e){const{t}=tr(),n=e,r=L(()=>{const a=new Map;return n.depsSetting?.forEach(l=>{a.set(l.name,l)}),a});function o(a,l){const c=l.match;try{switch(c){case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:{const u=Fo.parseVersion(a),f=Fo.parseVersion(l.version);return u.major===f.major}case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:{const u=Fo.parseVersion(a),f=Fo.parseVersion(l.version);return u.major===f.major&&u.minor===f.minor}case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:{const u=Fo.parseVersion(a),f=Fo.parseVersion(l.version);return u.major===f.major&&u.minor===f.minor&&u.patch===f.patch}default:return!1}}catch(u){return console.warn(`Version parse failed: ${a} or ${l.version}`,u),!1}}function s(a){const l=r.value.get(a.name);return l?o(a.version,l):!1}function i(a){const l=r.value.get(a.name);if(!l||!o(a.version,l))return"";switch(l.match){case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return"match-dot-green";case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:return"match-dot-blue";case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:return"match-dot-orange";case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:return"match-dot-red";default:return""}}return(a,l)=>(U(),he(A(ZI),{list:e.compDeps,getKey:c=>c.name,class:"flex items-center gap-1"},{display:pe(({visibleList:c,overflow:u})=>[(U(!0),ae(ke,null,Nn(c,f=>(U(),he(A(Us),{key:f.name,type:"info","disable-transitions":"",size:"small",class:de({"not-matched":!s(f)})},{default:pe(()=>[i(f)?(U(),ae("span",{key:0,class:de(["inline-block w-2 h-2 rounded-full mr-1",i(f)])},null,2)):Ae("",!0),Tt(" "+De(f.name)+" "+De(f.version),1)]),_:2},1032,["class"]))),128)),u>0?(U(),he(A(Us),{key:0,type:"info",size:"small","disable-transitions":""},{default:pe(()=>[Tt("+"+De(u)+" "+De(A(t)("common.more")),1)]),_:2},1024)):Ae("",!0)]),measure:pe(({item:c})=>[ee(A(Us),{type:"info",size:"small","disable-transitions":"",class:de({"not-matched":!s(c)})},{default:pe(()=>[i(c)?(U(),ae("span",{key:0,class:de(["inline-block w-2 h-2 rounded-full mr-1",i(c)])},null,2)):Ae("",!0),Tt(" "+De(c.name)+" "+De(c.version),1)]),_:2},1032,["class"])]),_:1},8,["list","getKey"]))}}),S6=Oi(C6,[["__scopeId","data-v-76d00925"]]),w6={key:0,class:"bg-[#ffe600] rounded-[2px] px-[2px]"},A6=ue({__name:"HighlightText",props:{text:{},keyword:{}},setup(e){const t=e,n=L(()=>fu.splitTextByKeyword(t.text,t.keyword));return(r,o)=>(U(),ae("span",null,[(U(!0),ae(ke,null,Nn(n.value,(s,i)=>(U(),ae(ke,{key:i},[s.isMatch?(U(),ae("mark",w6,De(s.text),1)):(U(),ae(ke,{key:1},[Tt(De(s.text),1)],64))],64))),128))]))}}),Gr=ue({__name:"CompActionPreview",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""},isLocal:{type:Boolean,default:!1}},setup(e){const{sendMessageToTop:t}=un(),{params:{instanceUid:n}}=kt(),r=e,o=cn(r.isDev);function s(){r.isLocal?t(Ie.ACTION_PREVIEW_LOCAL,r.compId,o,n):t(Ie.ACTION_PREVIEW,r.compId,o,n)}return(i,a)=>(U(),he(A(Ti),{type:"primary",onClick:s},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:preview",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1}))}}),b_=ue({__name:"CompActionCollect",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""},isCollect:{type:Boolean,default:!1}},setup(e){const{sendMessageToTop:t}=un(),{params:{instanceUid:n}}=kt(),r=e,o=cn(r.isDev);function s(i){t(Ie.ACTION_COLLECT,{id:r.compId,isCollect:i},o,n)}return(i,a)=>(U(),he(A(E6),{width:A(at).COMP_ACTION_ICON_WIDTH,isCollect:e.isCollect,onCollect:s},null,8,["width","isCollect"]))}}),us=ue({__name:"CompActionDownload",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""},version:{type:String,default:""}},setup(e){const{sendMessageToTop:t}=un(),{params:{instanceUid:n}}=kt(),r=e,o=cn(r.isDev);function s(){t(Ie.ACTION_DOWNLOAD,{id:r.compId,version:r.version},o,n)}return(i,a)=>(U(),he(A(Ti),{type:"primary",onClick:s},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:cloud-download-outline",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1}))}}),T6={class:"size-full"},O6=ue({__name:"CompDesc",props:{desc:{type:String,default:""},keyword:{type:String,default:""}},setup(e){const t=Z(!1);return(n,r)=>(U(),ae("div",T6,[ee(A(h3),{disabled:!t.value,content:e.desc,placement:"bottom",width:"300","show-after":700},{reference:pe(()=>[ee(A(u6),{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=o=>t.value=o),text:e.desc,keyword:e.keyword,class:"text-[12px] leading-4"},null,8,["modelValue","text","keyword"])]),_:1},8,["disabled","content"])]))}}),N6=ue({__name:"OssAvatar",props:{isDev:{type:Boolean,default:!1},src:{type:String,default:""},text:{type:String,default:""}},setup(e){const t=e,n=cn(t.isDev),{messageListener:r,sendMessageToTop:o}=un(),{addListener:s}=r(),{params:{instanceUid:i}}=kt(),a=_m(),l=Z("");return s(Ie.OSS_FILE_SIGN_URL_SET,({objectId:c,signUrl:u})=>{c===t.src&&(l.value=u)}),_e(()=>t.text,c=>{!c||t.src||(l.value=x6(c))},{immediate:!0}),mi(async()=>{t.src&&o(Ie.OSS_FILE_SIGN_URL_GET,{objectId:t.src},n,i)}),(c,u)=>(U(),he(A(wN),Dt({class:"border border-gray-400"},A(a),{src:l.value}),null,16,["src"]))}}),F6=ue({__name:"CompVersionSelectListItem",props:{isDev:{type:Boolean,default:!1},id:{type:String,default:""},version:{type:String,default:""}},setup(e){const{t}=tr(),n=e,{sendMessageToTop:r,messageListener:o}=un(),s=cn(n.isDev),{addListener:i}=o(),{params:{instanceUid:a}}=kt(),l=Z(""),c=Z([]),u=L(()=>c.value.map(h=>({value:h.version,label:h.version})));function f(h){l.value=h}async function d(h){u.value.length||!h||r(Ie.ITEM_VERSION_LIST_GET,n.id,s,a)}function p(){l.value=n.version}return i(Ie.ITEM_VERSION_LIST_SET,h=>{h.compId===n.id&&(c.value=h.versionList)}),_e(()=>l.value,(h,m)=>{if(h===m||!m)return;const v={version:h,compId:n.id};r(Ie.ITEM_VERSION_CHANGE,v,s,a)}),gt(()=>{p()}),(h,m)=>(U(),he(A(IF),{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=v=>l.value=v),placeholder:A(t)("common.pleaseSelect"),onChange:f,onVisibleChange:d},{default:pe(()=>[(U(!0),ae(ke,null,Nn(u.value,v=>(U(),he(A(PF),{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]))}}),y_=ue({__name:"CompActionDel",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""}},setup(e){const t=e,n=cn(t.isDev),{sendMessageToTop:r}=un(),{params:{instanceUid:o}}=kt();function s(){r(Ie.ACTION_DELETE,t.compId,n,o)}return(i,a)=>(U(),he(A(Ti),{type:"danger",onClick:s},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:delete-forever-outline-rounded",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1}))}}),Pf=ue({__name:"CompActionUpdate",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""}},setup(e){const t=e,n=cn(t.isDev),{sendMessageToTop:r,messageListener:o}=un(),{addListener:s}=o(),{params:{instanceUid:i}}=kt(),a=Z(!1),l=L(()=>a.value?"primary":"info");function c(){r(Ie.ACTION_UPDATE,t.compId,n,i)}return s(Ie.LOCAL_EXIST_SET,u=>{u.compId===t.compId&&(a.value=u.exist??!1)}),r(Ie.LOCAL_EXIST_GET,t.compId,n,i),(u,f)=>(U(),he(A(Ti),{type:l.value,onClick:c},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:cloud-upload",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1},8,["type"]))}}),Sr=ue({__name:"index",props:{list:{}},setup(e){let t=()=>{};const n=e,r=Z([]),o=()=>b6({list:n.list,oldList:r.value,render:(i,a)=>{const l=a[0];if(i===v_&&l)r.value.push(l);else if(i===g_){const c=a[0];if(c){const u=r.value.findIndex(f=>f._id===c._id);if(u>-1){const f=r.value[u];mn(f,c)||(r.value[u]=c)}}}else i===__?r.value=r.value.filter(c=>!a.find(u=>u._id===c._id)):i===x_&&(r.value=[])}}),s=i=>{for(const a of i){const l=r.value.findIndex(c=>c._id===a._id);l>-1&&(mn(r.value[l],a)||(r.value[l]=a))}};return _e(()=>n.list,(i,a)=>{if(t(),a&&i.length===a.length){const l=new Set(a.map(u=>u._id));if(i.every(u=>l.has(u._id))){s(i);return}}t=o()}),Nt(()=>{t()}),(i,a)=>(U(),he(A(_6),{itemMinWidth:350,class:"overflow-x-hidden"},{default:pe(()=>[(U(!0),ae(ke,null,Nn(r.value,l=>(U(),he(A($F),{key:l._id,"body-class":"!p-[0px] flex flex-col !overflow-hidden relative",class:"overflow-hidden"},{default:pe(()=>[Se(i.$slots,"body",{item:l})]),_:2},1024))),128))]),_:3}))}});function wr(){const{params:{instanceUid:e}}=kt(),t=cn(!1),{sendMessageToTop:n,messageListener:r}=un(),{addListener:o}=r(),{depsSetting:s}=V4(!1),i=Z([]),a=Z("");return o(Ie.LIST_INIT,l=>{i.value=l}),o(Ie.SEARCH_KEYWORD_SET,l=>{a.value=l}),n(Ie.SEARCH_KEYWORD_GET,"",t,e),n(Ie.LIST_INIT_GET,"",t,e),{listInitData:i,depsSetting:s,keyword:a}}const M6={class:"text-left flex flex-col w-full overflow-hidden my-1 gap-[3px] h-[85px]"},L6={class:"flex justify-between items-center"},I6={class:"font-medium"},P6={class:"overflow-hidden relative flex-1"},D6={class:"h-[20px]"},zr=ue({__name:"index",props:{attrs:{type:Object,default:()=>({})},depsSetting:{type:Array,default:()=>[]},keyword:{type:String,default:""}},setup(e){const t=e,n=L(()=>HD.handleDepData(t.attrs.dep??[])),r=L(()=>!1);return(o,s)=>(U(),ae("div",M6,[te("div",L6,[te("h4",I6,[ee(A(A6),{text:e.attrs?.name,keyword:e.keyword},null,8,["text","keyword"])]),te("div",null,[ee(A(m6),Dt(e.attrs?.authorId,{teamUserNickname:e.attrs?.teamUserNickname}),{avatar:pe(()=>[ee(A(N6),{isDev:r.value,size:15,src:e.attrs?.authorId?.avatar},null,8,["isDev","src"])]),_:1},16,["teamUserNickname"])])]),te("div",P6,[ee(A(O6),{desc:e.attrs?.desc,keyword:e.keyword},null,8,["desc","keyword"])]),te("div",D6,[ee(A(S6),{compDeps:n.value,depsSetting:e.depsSetting,keyword:e.keyword},null,8,["compDeps","depsSetting","keyword"])])]))}});var pc,_h;function k6(){if(_h)return pc;_h=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,s){for(var i="",a=0,l=-1,c=0,u,f=0;f<=o.length;++f){if(f<o.length)u=o.charCodeAt(f);else{if(u===47)break;u=47}if(u===47){if(!(l===f-1||c===1))if(l!==f-1&&c===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){var d=i.lastIndexOf("/");if(d!==i.length-1){d===-1?(i="",a=0):(i=i.slice(0,d),a=i.length-1-i.lastIndexOf("/")),l=f,c=0;continue}}else if(i.length===2||i.length===1){i="",a=0,l=f,c=0;continue}}s&&(i.length>0?i+="/..":i="..",a=2)}else i.length>0?i+="/"+o.slice(l+1,f):i=o.slice(l+1,f),a=f-l-1;l=f,c=0}else u===46&&c!==-1?++c:c=-1}return i}function n(o,s){var i=s.dir||s.root,a=s.base||(s.name||"")+(s.ext||"");return i?i===s.root?i+a:i+o+a:a}var r={resolve:function(){for(var s="",i=!1,a,l=arguments.length-1;l>=-1&&!i;l--){var c;l>=0?c=arguments[l]:(a===void 0&&(a=process.cwd()),c=a),e(c),c.length!==0&&(s=c+"/"+s,i=c.charCodeAt(0)===47)}return s=t(s,!i),i?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(s){if(e(s),s.length===0)return".";var i=s.charCodeAt(0)===47,a=s.charCodeAt(s.length-1)===47;return s=t(s,!i),s.length===0&&!i&&(s="."),s.length>0&&a&&(s+="/"),i?"/"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,i=0;i<arguments.length;++i){var a=arguments[i];e(a),a.length>0&&(s===void 0?s=a:s+="/"+a)}return s===void 0?".":r.normalize(s)},relative:function(s,i){if(e(s),e(i),s===i||(s=r.resolve(s),i=r.resolve(i),s===i))return"";for(var a=1;a<s.length&&s.charCodeAt(a)===47;++a);for(var l=s.length,c=l-a,u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var f=i.length,d=f-u,p=c<d?c:d,h=-1,m=0;m<=p;++m){if(m===p){if(d>p){if(i.charCodeAt(u+m)===47)return i.slice(u+m+1);if(m===0)return i.slice(u+m)}else c>p&&(s.charCodeAt(a+m)===47?h=m:m===0&&(h=0));break}var v=s.charCodeAt(a+m),g=i.charCodeAt(u+m);if(v!==g)break;v===47&&(h=m)}var _="";for(m=a+h+1;m<=l;++m)(m===l||s.charCodeAt(m)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+i.slice(u+h):(u+=h,i.charCodeAt(u)===47&&++u,i.slice(u))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return".";for(var i=s.charCodeAt(0),a=i===47,l=-1,c=!0,u=s.length-1;u>=1;--u)if(i=s.charCodeAt(u),i===47){if(!c){l=u;break}}else c=!1;return l===-1?a?"/":".":a&&l===1?"//":s.slice(0,l)},basename:function(s,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');e(s);var a=0,l=-1,c=!0,u;if(i!==void 0&&i.length>0&&i.length<=s.length){if(i.length===s.length&&i===s)return"";var f=i.length-1,d=-1;for(u=s.length-1;u>=0;--u){var p=s.charCodeAt(u);if(p===47){if(!c){a=u+1;break}}else d===-1&&(c=!1,d=u+1),f>=0&&(p===i.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=d))}return a===l?l=d:l===-1&&(l=s.length),s.slice(a,l)}else{for(u=s.length-1;u>=0;--u)if(s.charCodeAt(u)===47){if(!c){a=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":s.slice(a,l)}},extname:function(s){e(s);for(var i=-1,a=0,l=-1,c=!0,u=0,f=s.length-1;f>=0;--f){var d=s.charCodeAt(f);if(d===47){if(!c){a=f+1;break}continue}l===-1&&(c=!1,l=f+1),d===46?i===-1?i=f:u!==1&&(u=1):i!==-1&&(u=-1)}return i===-1||l===-1||u===0||u===1&&i===l-1&&i===a+1?"":s.slice(i,l)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return n("/",s)},parse:function(s){e(s);var i={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return i;var a=s.charCodeAt(0),l=a===47,c;l?(i.root="/",c=1):c=0;for(var u=-1,f=0,d=-1,p=!0,h=s.length-1,m=0;h>=c;--h){if(a=s.charCodeAt(h),a===47){if(!p){f=h+1;break}continue}d===-1&&(p=!1,d=h+1),a===46?u===-1?u=h:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||d===-1||m===0||m===1&&u===d-1&&u===f+1?d!==-1&&(f===0&&l?i.base=i.name=s.slice(1,d):i.base=i.name=s.slice(f,d)):(f===0&&l?(i.name=s.slice(1,u),i.base=s.slice(1,d)):(i.name=s.slice(f,u),i.base=s.slice(f,d)),i.ext=s.slice(u,d)),f>0?i.dir=s.slice(0,f-1):l&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,pc=r,pc}var R6=k6();const $6=["bg"],B6={class:"flex-1 dark:border-gray-600 shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)] dark:shadow-[0_4px_6px_-1px_rgba(0,0,0,0.3)]"},V6=["name","src"],H6={class:"w-[100px] p-1"},U6={key:1},Ar=ue({__name:"index",props:{attrs:{type:Object,default:()=>({})},isSwitchVersion:{type:Boolean,default:!0},iframeType:{type:String,default:at.IFRAME_ROUTES.ITEM.CAROUSEL_REMOTE}},setup(e){const t=e,{uniteParams:n,getTheme:r}=kt(),o=$M(!1,window.__GLOBAL_CONFIG__?.subPort);function s(i){const a=n({compId:i}),l=new URLSearchParams({params:a,isDark:r()??"false"}).toString();return o+R6.join(`/${at.WEBSITE_PATH_ITEM}`,t.iframeType,`?${l}`)}return(i,a)=>(U(),ae("div",{class:"h-[280px] flex flex-col gap-1",bg:e.attrs?.bgColor},[te("div",B6,[te("iframe",{name:e.attrs._id,class:"size-full overflow-hidden border-none",src:s(e.attrs._id),loading:"lazy"},null,8,V6)]),te("div",H6,[e.isSwitchVersion?(U(),he(A(F6),{key:0,id:e.attrs?._id,version:e.attrs?.version},null,8,["id","version"])):(U(),ae("span",U6,De(e.attrs?.version),1))])],8,$6))}}),j6={class:"size-full flex flex-col"},W6={class:"p-1"},G6={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},z6={class:"flex gap-5"},K6={class:"flex-1 flex justify-end items-start gap-2"},Y6=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",j6,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",W6,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",G6,[te("div",z6,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"]),ee(A(Br),{icon:"material-symbols:star-outline-rounded",value:Math.max(a?.collectCount??0,0)},null,8,["value"])]),te("div",K6,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(b_),{compId:a._id,isCollect:a?.isCollect,isDev:o.value},null,8,["compId","isCollect","isDev"])])])])])]),_:1},8,["list"]))}}),q6={class:"size-full flex flex-col"},J6={class:"p-1"},X6={class:"text-xs mt-1 flex justify-between items-center"},Q6=ue({__name:"index",setup(e){const{t}=tr(),{listInitData:n}=wr(),{messageListener:r,sendMessageToTop:o}=un(),{addListener:s}=r(),i=cn(!1),{params:{instanceUid:a}}=kt(),l=Z([]),c=L(()=>!1);function u(d){o(Ie.ACTION_OPEN_VSCODE_LOCAL,d,i,a)}function f(d){return l.value.find(p=>p.compId===d)?.fullPath??""}return s(Ie.ITEM_SITE_PATH_SET,d=>{l.value=d}),o(Ie.ITEM_SITE_PATH_GET,"",i,a),(d,p)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:h})=>[te("div",q6,[ee(Ar,{attrs:h,iframeType:A(at).IFRAME_ROUTES.ITEM.CAROUSEL_LOCAL,isSwitchVersion:!1},null,8,["attrs","iframeType"]),te("div",J6,[te("span",null,De(h.name),1),te("div",X6,[te("div",null,[Tt(De(A(t)("comp.compLocation"))+": ",1),ee(A(Ti),{href:"javascript:void(0)",type:"primary",underline:"always",title:h.fullPath,onClick:m=>u(h._id)},{default:pe(()=>[Tt(De(f(h._id)||h.fullPath),1)]),_:2},1032,["title","onClick"])]),ee(A(Gr),{compId:h._id,isLocal:!0,isDev:c.value},null,8,["compId","isDev"])])])])]),_:1},8,["list"]))}}),Z6={class:"size-full flex flex-col"},ek={class:"p-1"},tk={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},nk={class:"flex gap-5"},rk={class:"flex-1 flex justify-end items-start gap-2"},ok=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",Z6,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",ek,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",tk,[te("div",nk,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"]),ee(A(Br),{icon:"material-symbols:star-outline-rounded",value:Math.max(a?.collectCount??0,0)},null,8,["value"])]),te("div",rk,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(Pf),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(y_),{compId:a._id,isDev:o.value},null,8,["compId","isDev"])])])])])]),_:1},8,["list"]))}}),sk={class:"size-full flex flex-col"},ik={class:"p-1"},ak={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},lk={class:"flex gap-5"},ck={class:"flex-1 flex justify-end items-start gap-2"},uk=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",sk,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",ik,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",ak,[te("div",lk,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"]),ee(A(Br),{icon:"material-symbols:star-outline-rounded",value:Math.max(a?.collectCount??0,0)},null,8,["value"])]),te("div",ck,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(b_),{compId:a._id,isCollect:a?.isCollect,isDev:o.value},null,8,["compId","isCollect","isDev"])])])])])]),_:1},8,["list"]))}}),fk={class:"size-full flex flex-col"},dk={class:"p-1"},pk={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},hk={class:"flex-1 flex justify-end items-start gap-2"},mk=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",fk,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",dk,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",pk,[te("div",hk,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"])])])])])]),_:1},8,["list"]))}}),gk={class:"size-full flex flex-col"},vk={class:"p-1"},_k={class:"mt-auto overflow-hidden w-full flex items-center justify-end"},xk=ue({__name:"index",setup(e){const{t}=tr(),{listInitData:n,depsSetting:r,keyword:o}=wr(),{messageListener:s,sendMessageToTop:i}=un(),a=cn(!1),{params:{instanceUid:l}}=kt(),{addListener:c}=s();let u=null;const f=p=>t(p?"team.added":"team.addComp"),d=(p,h)=>{u=h,u.start(),i(Ie.ACTION_ADD_COMP_START_LOADING,p._id,a,l)};return c(Ie.ACTION_ADD_COMP_FINISH_LOADING,()=>{u?.end()}),(p,h)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:m})=>[te("div",gk,[ee(Ar,{attrs:m},null,8,["attrs"]),te("div",vk,[ee(zr,{attrs:m,depsSetting:A(r),keyword:A(o)},null,8,["attrs","depsSetting","keyword"]),te("div",_k,[ee(A(n8),null,{default:pe(({instance:v,loading:g})=>[ee(A(eF),{type:"primary",loading:g,disabled:m.isAdd,onClick:_=>d(m,v)},{default:pe(()=>[te("span",null,De(f(m?.isAdd??!1)),1)]),_:2},1032,["loading","disabled","onClick"])]),_:2},1024)])])])]),_:1},8,["list"]))}}),bk={class:"size-full flex flex-col"},yk={class:"p-1"},Ek={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},Ck={class:"flex gap-5"},Sk={class:"flex-1 flex justify-end items-start gap-2"},wk=ue({__name:"index",setup(e){const{params:{userId:t}}=kt(),{listInitData:n,depsSetting:r,keyword:o}=wr(),s=L(()=>!1);function i(a){if(!t)return!1;const l=a?.canUpdateUsers?.includes(t),c=a?.authorId?._id===t;return l||c}return(a,l)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:c})=>[te("div",bk,[ee(Ar,{attrs:c},null,8,["attrs"]),te("div",yk,[ee(zr,{attrs:c,depsSetting:A(r),keyword:A(o)},null,8,["attrs","depsSetting","keyword"]),te("div",Ek,[te("div",Ck,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(c?.totalDownloadCount??0,0)},null,8,["value"])]),te("div",Sk,[ee(A(us),{compId:c._id,version:c.version,isDev:s.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:c._id,isDev:s.value},null,8,["compId","isDev"]),i(c)?(U(),he(A(Pf),{key:0,compId:c._id,isDev:s.value},null,8,["compId","isDev"])):Ae("",!0)])])])])]),_:1},8,["list"]))}}),Ak={class:"size-full flex flex-col"},Tk={class:"p-1"},Ok={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},Nk={class:"flex gap-[5px] h-[32px] items-center"},Fk={class:"flex-1 flex justify-end items-start gap-2"},Mk=ue({__name:"index",setup(e){const{t}=tr(),{listInitData:n,depsSetting:r,keyword:o}=wr(),s=cn(!1),{messageListener:i,sendMessageToTop:a}=un(),{params:{instanceUid:l}}=kt(),{addListener:c}=i(),u=Z({}),f=Z([]),d=Z({}),p=g=>!!u.value[g],h=g=>d.value[g]??"";function m(g){const _=tw(u.value);delete _[g],a(Ie.SELECTED_ROWS_TO_LEAF_NODE_MAP_SET,_,s,l)}function v(g,_){let y=[...f.value];g?y.push(_):y=y.filter(x=>x!==_),a(Ie.SELECTED_ROWS_SET,y,s,l)}return c(Ie.COMP_GROUP_PATH_SET,g=>{d.value=g}),c(Ie.SELECTED_ROWS_TO_LEAF_NODE_MAP_SET,g=>{u.value=g}),c(Ie.SELECTED_ROWS_SET,g=>{f.value=g}),a(Ie.SELECTED_ROWS_TO_LEAF_NODE_MAP_GET,"",s,l),a(Ie.SELECTED_ROWS_GET,"",s,l),_e(()=>u.value,g=>{const _=Object.keys(g);_.length>0&&a(Ie.COMP_GROUP_PATH_GET,_,s,l)}),(g,_)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:y})=>[te("div",Ak,[ee(Ar,{attrs:y},null,8,["attrs"]),te("div",Tk,[ee(zr,{attrs:y,depsSetting:A(r),keyword:A(o)},null,8,["attrs","depsSetting","keyword"]),te("div",Ok,[te("div",Nk,[p(y._id)?(U(),he(A(Us),{key:0,type:"info",closable:"","disable-transitions":!0,round:"",onClose:x=>m(y._id)},{default:pe(()=>[Tt(De(h(y._id)),1)]),_:2},1032,["onClose"])):(U(),he(A(JF),{key:1,label:A(t)("common.pleaseSelect"),"model-value":f.value.includes(y._id),onChange:x=>v(x,y._id)},null,8,["label","model-value","onChange"]))]),te("div",Fk,[ee(A(Gr),{compId:y._id},null,8,["compId"])])])])])]),_:1},8,["list"]))}}),Lk={class:"size-full flex flex-col"},Ik={class:"p-1"},Pk={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},Dk={class:"flex gap-5"},kk={class:"flex-1 flex justify-end items-start gap-2"},Rk=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",Lk,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",Ik,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",Pk,[te("div",Dk,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"])]),te("div",kk,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(Pf),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(y_),{compId:a._id,isDev:o.value},null,8,["compId","isDev"])])])])])]),_:1},8,["list"]))}}),$k={collect:Y6,local:Q6,mine:ok,share:uk,similar:mk,teamAdd:xk,teamAll:wk,teamGroup:Mk,teamMine:Rk};function Bk(){const e=[],t=at.IFRAME_ROUTES.CONTAINER;for(const n in t){const o=t[n],s=$k[o];if(!s)throw new Error(`未找到路由组件 ${o}`);e.push({path:`/${o}`,name:o,component:s})}return e}const Vk=YI({history:AI(`/${at.WEBSITE_PATH_CONTAINER}/`),routes:Bk()});function Hk(e){e.use(Vk)}const Uk={keyword:"关键词",confirm:"确定",cancel:"取消",close:"关闭",save:"保存",submit:"提交",delete:"删除",edit:"编辑",add:"添加",update:"更新",upload:"上传",download:"下载",refresh:"刷新",loading:"加载中",success:"成功",error:"错误",warning:"警告",info:"提示",copy:"复制",copied:"已复制",copySuccess:"复制成功",copyFailed:"复制失败",open:"打开",search:"搜索",reset:"重置",clear:"清空",back:"返回",next:"下一步",prev:"上一步",finish:"完成",operation:"操作",status:"状态",yes:"是",no:"否",name:"名称",description:"描述",version:"版本",time:"时间",date:"日期",author:"作者",type:"类型",category:"分类",tag:"标签",content:"内容",setting:"设置",cache:"缓存",cacheSize:"已使用",clearCache:"清空缓存",clearCacheConfirm:"将清空浏览器单文件编译结果以及模块预编译文件,确认清空缓存吗?",cacheCleared:"缓存已清空",newPage:"新页面打开",terminal:"终端",preview:"预览",doc:"文档",readme:"README.md",upgradeRecord:"更新记录",openInNewPage:"新页面打开",depInstall:"依赖安装",fullscreen:"全屏",exitFullscreen:"退出全屏",maximizeRestore:"最大化/还原",siteSlogan:"原子化组件社区,让组件流通更简单。",siteSubtitle:"Vue 组件共享平台",docsTutorial:"文档教程",empty:"暂无数据",noReadme:"组件没有配置README.md文件",dragSort:"拖拽排序",filter:"筛选",apply:"应用",person:"人",unit:"个",pleaseSelect:"请选择",pleaseInput:"请输入",me:"我",generate:"生成",regenerate:"重新生成",generateSuccess:"生成成功",moreOperations:"更多操作",more:"更多",maxTagCount:"最大标签数量"},jk={keywordPlaceholder:"请输入组件名称/描述",title:"组件",name:"组件名称",fieldId:"组件ID",fieldName:"组件名称",fieldVersion:"版本号",desc:"组件描述",remarksDesc:"备注说明",remarksDescRequired:"请输入备注说明",pleaseInputCompName:"请输入组件名称",pleaseInputRemarks:"请输入备注,有助于组件市场检索",compNameRequired:"组件名称不能为空",compNameNamingRule:"组件名只能是「大驼峰(PascalCase)」或「短横线(kebab-case)」命名法",lengthBetween:"长度在 {min} 到 {max} 个字符",version:"组件版本",detail:"组件详情",preview:"组件预览",previewConfig:"预览配置",previewList:"预览列表",uploadPreview:"组件上传预览",updatePreview:"组件更新预览",download:"下载组件",update:"更新组件",upload:"上传组件",submit:"提交组件",edit:"编辑组件",add:"添加组件",delete:"删除组件",local:"本地组件",remote:"远程组件",online:"在线组件",similar:"相似组件",similarTeam:"团队内相似组件",dir:"组件目录",file:"组件文件",entry:"入口文件",previewEntry:"预览入口地址",previewEntryFull:"预览入口地址(全屏窗口)",addPreviewEntry:"添加预览入口",maxPreviewEntry:"最多添加{n}个预览入口",pleaseAddPreviewEntry:"请添加预览入口",miniPreviewFile:"小窗预览文件",fullPreviewFile:"全屏预览文件",pleaseSelectPreviewFile:"请选择预览文件",remarkDesc:"备注说明",dep:"组件依赖",localDep:"组件依赖(本地)",onlineDep:"组件依赖(线上)",finalDep:"最终依赖",localVersion:"本地:",onlineVersion:"线上:",onlineDepEmpty:"线上依赖暂无数据!",versionConsistent:"版本一致",versionChange:"版本变化,请手动选择最终版本",versionChangeConfirmed:"已确认",newDep:"新增依赖",miniPanel:"小窗面板",fullPanel:"全屏面板",reload:"重新加载",uploadProtocol:"组件发布协议",bgPanel:"背景板",compLocation:"组件位置",pleaseSelectFolderFirst:"请先选择文件夹",compAlreadyUploaded:"组件已经上传,更新操作请前往我的组件或团队组件",affirmDep:"组件依赖(确认的版本)",checkConfig:"配置检查",checkError:"报错信息",extraInfo:"附加信息",baseInfo:"基础信息",upgradeLog:"更新说明",pleaseInputUpgradeLog:"请填写更新说明",config:"组件配置",configStatus:"组件配置检查状态",configError:"配置异常",configCheckError:"配置检查报错",needUpgrade:"需要升级",fileChanged:"组件文件有变化",versionChanged:"版本号变化",fileNoChange:"文件没有变化",markdownValid:"Markdown预览校验通过",noMarkdown:"没有md文件",hash:"文件哈希",localHash:"本地组件文件hash",remoteHash:"线上组件文件hash",remoteVersion:"线上组件版本号",remoteVersionPrefix:"线上:",localVersionPrefix:"本地:",versionCompare:"版本号比较结果",carouselIndex:"组件预览走马灯index",bgColor:"组件背景颜色",dialogType:"组件弹窗类型",repeat:"组件重复检查",existLocal:"组件在本地存在",scopeId:"作用域id",tempDir:"组件临时目录",submitLimit:"组件提交限制",maxSize:"总大小限制",maxCount:"文件数量限制",matchType:"匹配类型",updateType:"更新类型",updateOnline:"在线更新",updateOffline:"离线更新",compOfflineUpdate:"组件离线更新",compOnlineUpdate:"组件在线更新",folder:"文件夹",compNotInLocal:"组件不在本地,继续更新只能更新组件描述,预览配置等基础信息,是否继续?",selectUpdateFolder:"请选择要更新的文件夹",openInVscode:"在 VS Code 中打开",openingInEditor:"在编辑器中打开...",updateSuccess:"更新成功",downloadVersionConfirm:"当前选择的版本为:{version},确认下载吗?",downloading:"组件下载中...",downloadPathConfirm:"是否下载组件到【{path}】路径下",downloadCoverConfirm:"组件【{name}】已经下载或者有同名组件,是否覆盖?",uncollectConfirm:"是否取消收藏组件【{name}】,取消收藏后组件将不再显示在收藏列表中,是否继续?",deleteConfirm:"是否删除组件【{name}】,删除组件后会释放占用的组件名称,是否继续?",collect:"收藏",uncollect:"取消收藏",collected:"已收藏",uncollected:"未收藏",entryFile:"入口文件",configFile:"配置文件",fileChangedNeedVersion:"文件内容改变,请增加版本号",viewFileChanges:"查看文件变化",versionChangedButFileSame:"版本号改变,但文件内容未改变,请还原版本号",errorMsg:"错误信息",versionCannotBeLessThanLatest:"版本号不能小于最新版本{version}",uploadAnyway:"仍然上传",compileError:"组件编译失败",formatCode:"格式化代码:",formatCodeTooltip:"仅格式化对比时的文件,不会格式化原始文件",noChanges:"暂无变更",diff:{changed:"M 改变",unchanged:"U 未改变",added:"A 新增",deleted:"D 删除"}},Wk={title:"团队",name:"团队名称",code:"团队码",desc:"团队描述",create:"创建团队",join:"加入团队",exit:"退出团队",exitConfirm:"退出确认",manage:"团队管理",setting:"团队设置",member:"团队成员",memberCount:"成员数",maxMember:"最大成员数",compCount:"组件数量",maxCompCount:"最大组件数量",creator:"创建者",downloadCount:"下载量",collectCount:"收藏量",createTime:"创建时间",myTeam:"我的团队",joinedTeam:"已加入团队",space:"团队空间",noJoined:"暂无加入的团队",noCreated:"暂无创建的团队",createCountLimit:"最大允许创建的团队数量",joinCountLimit:"允许最多加入的团队数量",compList:"团队组件列表",myCompList:"我的组件",compGroup:"团队组件分组",compGroupList:"团队组件分组列表",addMyComp:"团队添加我的组件",compUpdate:"团队我的组件更新",addFromMine:"去我的组件添加",applyList:"申请列表",nickname:"团队昵称",noTeamInfo:"暂无团队信息",compLib:"组件库",groupConfig:"分组配置",compManage:"组件管理",unsavedDataLeave:"分组配置数据未保存,确定要离开吗?",leave:"离开",disbandTeam:"解散团队",applyAudit:"申请审核",teamName:"团队名称",fillTeamCode:"填写团队码",pleaseInputTeamCode:"请输入团队码",teamIdNotExist:"团队ID不存在",joinSuccess:"加入团队成功",applyJoinTeam:"申请加入团队",showRepeatComp:"展示重复组件",allowAuthorDelete:"作者删除组件权限",teamIntro:"团队介绍",fillTeamName:"填写团队名称",pleaseInputTeamName:"请输入团队名称",pleaseInputTeamDesc:"请输入团队介绍",createSuccess:"创建团队成功",charLength:"长度在 {min} 到 {max} 个字符",disbandConfirm:"确定解散团队吗,解散后所有成员和组件将被移除,并且无法恢复?",deleteConfirm:"删除确认",inputAuthCode:"请输入验证码",disbandSuccess:"解散团队成功",reject:"拒绝",agree:"同意",approved:"已同意",rejected:"已拒绝",kickOut:"踢出",teamUserNickname:"团队内昵称",pleaseInputTeamNickname:"请输入你在团队的昵称",normalUser:"普通用户",kickOutConfirm:"确定踢出用户【{name}】吗?",kickOutSuccess:"踢出成功",selectCanUpdateUser:"选择可更新用户",authorAutoAuth:"作者自带授权",updateAuth:"更新授权",updateTime:"更新时间",expandAll:"展开全部",createGroup:"创建分组",unsaved:"未保存",pleaseInputGroupName:"请输入分组名称",addComp:"添加组件",added:"已添加",notAdded:"未添加",defaultGroup:"默认分组",deleteGroupConfirm:"确认删除该分组吗?删除后该分组下的所有组件将被移除分组",addSuccess:"添加成功",isGrouped:"是否分组",grouped:"已分组",ungrouped:"未分组",group:"分组",prevVersion:"升级前版本",newVersion:"升级后版本",upgradeDesc:"升级描述",similarCompInTeam:"团队内相似组件",similarComp:"相似组件",deleteCompConfirm:"是否删除团队组件【{name}】,删除组件后团队成员将无法使用该组件,是否继续?",descTitle:"为业务团队打造专属组件空间",descItem1:"创建私密团队,组件仅对成员可见,保护核心资产",descItem2:"每个账号最多可创建 {count} 个团队",descItem3:"每个账号最多可加入 {count} 个团队",descItem4:"基础版团队支持最多 {count} 名成员",descItem5:"基础版团队可管理最多 {count} 个组件",descItem6:"支持创建分组菜单,灵活组织团队组件"},Gk={title:"用户",username:"用户名",account:"账号",password:"密码",newPassword:"新密码",confirmPassword:"确认密码",confirmNewPassword:"确认新密码",pleaseInputNewPassword:"请输入新密码",pleaseConfirmNewPassword:"请确认新密码",passwordModified:"密码修改成功",email:"邮箱",oldEmail:"旧邮箱",newEmail:"新邮箱",phone:"手机号",avatar:"头像",nickname:"昵称",login:"登录",logout:"退出登录",register:"注册",forgotPassword:"忘记密码",resetPassword:"重置密码",changePassword:"修改密码",changeNickname:"修改昵称",pleaseInputNickname:"请输入昵称",changeAvatar:"修改头像",avatarModified:"头像修改成功",changeEmail:"修改邮箱",basicInfo:"基本信息",securitySettings:"安全设置",loginPassword:"登录密码",passwordTip:"建议定期更换密码,确保账号安全",setPassword:"设置密码",emailLogin:"邮箱登录",emailLoginTip:"允许使用邮箱作为登录账号",pleaseSetPasswordFirst:"请先设置登录密码",emailLoginEnabled:"邮箱登录已开启",emailLoginDisabled:"邮箱登录已关闭",registerTime:"注册时间",notBound:"未绑定",change:"更换",bind:"绑定",authCode:"验证码",oldAuthCode:"旧验证码",newAuthCode:"新验证码",sendAuthCode:"发送验证码",resendAuthCode:"重新发送",getAuthCode:"获取验证码",pleaseInputAuthCode:"请输入验证码",pleaseInputNewAuthCode:"请输入新验证码",resendAfterSeconds:"{n}秒后重新获取",accountLogin:"账号登录",pleaseInputAccount:"请输入账号",pleaseInputUsername:"请输入用户名",pleaseInputPassword:"请输入密码",pleaseInputEmail:"请输入邮箱",pleaseInputOldEmail:"请输入旧邮箱",pleaseInputNewEmail:"请输入新邮箱",pleaseInputCorrectEmail:"请输入正确的邮箱",emailModified:"邮箱修改成功",newAuthCodeSent:"新验证码已发送",authCodeSent:"验证码已发送",guestLogin:"游客访问",loginSuccess:"登录成功",userInfo:"用户信息",personalCenter:"个人中心",myComp:"我的组件",guest:"游客",notLoggedIn:"未登录",goLogin:"去登录"},zk={title:"文件",name:"文件名",path:"文件路径",size:"文件大小",type:"文件类型",dir:"文件夹",selectDir:"选择文件夹",upload:"文件上传",download:"文件下载",select:"选择",multiSelect:"不支持多选",onlyDir:"只能选择文件夹",rootDir:"根目录",projectPath:"项目路径",currentDir:"当前目录",parentDir:"上级目录",refreshDir:"刷新文件夹列表"},Kk={success:{download:"下载成功",update:"更新成功",delete:"删除成功",collect:"收藏成功",uncollect:"取消收藏成功",save:"保存成功",submit:"提交成功",upload:"上传成功",copy:"复制成功",operation:"操作成功",sendAuthCode:"验证码已发送",exitTeam:"退出成功"},error:{download:"下载失败",update:"更新失败",delete:"删除失败",collect:"收藏失败",uncollect:"取消收藏失败",save:"保存失败",submit:"提交失败",upload:"上传失败",copy:"复制失败",operation:"操作失败",load:"加载失败",network:"网络错误",timeout:"请求超时",unknown:"未知错误",pleaseFixCompileError:"请先处理编译错误",loginExpired:"登录已过期,请重新登录",refreshFailed:"刷新失败",requestFailed:"请求失败,请联系管理员",storageNotSupported:"浏览器不支持 storage.estimate API"},noUpdatePermission:"当前组件您没有更新权限,请联系管理员获取权限",confirm:{delete:"确定删除吗?",submit:"确定提交吗?",update:"确定更新吗?",exit:"确定退出吗?",cancel:"确定取消吗?"},loginRequired:"请先登录",fileExceed:"最多只能选择 {limit} 个文件,本次已选择 {selected} 个,共将上传 {total} 个文件",validate:{required:"必填项",format:"格式不正确",min:"不能小于最小值",max:"不能超过最大值",length:"长度不正确",email:"邮箱格式不正确",phone:"手机号格式不正确",imageFormat:"上传文件只能是图片格式",pleaseSelectFile:"请先选择文件",fileMaxSize:"上传文件大小不能超过 {size}MB!"}},Yk={404:"页面不存在",share:"组件市场",collect:"收藏组件",collectSimple:"收藏",mine:"我的组件",mineSimple:"我的",local:"本地组件",localSimple:"本地",team:"团队",upload:"上传组件",uploadSimple:"上传",uploadTeam:"上传团队组件",setting:"设置",userInfo:"用户信息",upgrade:"更新",terminal:"终端",preview:"组件预览",previewLocal:"本地组件预览",previewTeam:"团队组件预览",previewBlank:"预览",similarPreview:"相似组件预览",login:"登录",mdPreview:"文档预览",unknownTag:"未知标签"},qk={parse:"解析 Markdown",loading:"加载 Markdown",error:"加载失败",toc:"目录",anchor:"锚点"},Jk={title:"终端",open:"打开终端",close:"关闭终端",execute:"执行命令",shutdown:"关闭进程",timeout:"超时时间",disconnected:"终端已断开连接"},Xk={title:"依赖",name:"依赖名称",version:"依赖版本",install:"安装依赖",installing:"安装中",installed:"已安装",prebuild:"预构建",prebuildSize:"预构建大小",clearPrebuild:"清空预构建",batchSetting:"批量设置",dependencies:"dependencies",devDependencies:"devDependencies",match:{onlyInstall:"仅安装",majorVersion:"主版本",minorVersion:"主次版本",exactVersion:"完全一致"}},Qk={title:"设置",previewRule:"预览规则",other:"其他设置",theme:"主题",language:"语言",darkMode:"暗黑模式",lightMode:"明亮模式"},Zk={title:"版本更新",current:"当前版本",latest:"最新版本",check:"检查更新",upgrading:"更新中",upgraded:"已更新",publish:"发布更新",record:"更新记录",log:"更新日志",hasUpdate:"有更新",betaVersion:"内测版",noUpdate:"暂无更新",updateMethod:"更新方式",openTerminalAndRun:"打开终端,执行以下命令:",cannotIgnoreUpdate:"不可忽略此次更新"},eR={systemRecommended:"系统推荐",all:"全部",latest:"最新",hottest:"最热"},tR={submit:"提交"},nR={empty:"不能为空",notString:"必须是字符串类型,当前类型为: {type}",contentEmpty:"内容不能为空",startsWithNumber:'内容不能以数字开头,当前以 "{char}" 开头',invalidCharBacktick:"内容包含反引号(Markdown 语法标记),特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharNewline:"内容包含换行符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharCarriageReturn:"内容包含回车符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharTab:"内容包含制表符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharFormFeed:"内容包含换页符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharVerticalTab:"内容包含垂直制表符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharHash:"内容包含 # 字符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharHtmlSpecial:'内容包含 HTML 特殊字符 "{char}",特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格',invalidCharUnknown:'内容包含非法字符 "{char}"(Unicode: U+{code}),特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格'},rR={common:Uk,comp:jk,team:Wk,user:Gk,file:zk,message:Kk,route:Yk,markdown:qk,terminal:Jk,deps:Xk,setting:Qk,upgrade:Zk,tag:eR,formCreate:tR,validateHash:nR},oR={keyword:"Keyword",confirm:"Confirm",cancel:"Cancel",close:"Close",save:"Save",submit:"Submit",delete:"Delete",edit:"Edit",add:"Add",update:"Update",upload:"Upload",download:"Download",refresh:"Refresh",loading:"Loading",success:"Success",error:"Error",warning:"Warning",info:"Info",copy:"Copy",copied:"Copied",copySuccess:"Copy successful",copyFailed:"Copy failed",open:"Open",search:"Search",reset:"Reset",clear:"Clear",back:"Back",next:"Next",prev:"Previous",finish:"Finish",operation:"Operation",status:"Status",yes:"Yes",no:"No",name:"Name",description:"Description",version:"Version",time:"Time",date:"Date",author:"Author",type:"Type",category:"Category",tag:"Tag",content:"Content",setting:"Setting",cache:"Cache",cacheSize:"Used",clearCache:"Clear Cache",clearCacheConfirm:"This will clear browser single-file compilation results and module pre-compilation files. Confirm to clear cache?",cacheCleared:"Cache cleared",newPage:"Open in new page",terminal:"Terminal",preview:"Preview",doc:"Documentation",readme:"README.md",upgradeRecord:"Update Record",openInNewPage:"Open in new page",depInstall:"Dependency Installation",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",maximizeRestore:"Maximize/Restore",siteSlogan:"Atomic Component Community, Making Component Sharing Easier.",siteSubtitle:"Vue Component Sharing Platform",docsTutorial:"Documentation",empty:"No data",noReadme:"Component has no README.md file configured",dragSort:"Drag to sort",filter:"Filter",apply:"Apply",person:"people",unit:"items",pleaseSelect:"Please select",pleaseInput:"Please input",me:"Me",generate:"Generate",regenerate:"Regenerate",generateSuccess:"Generated successfully",moreOperations:"More Operations",more:"More",maxTagCount:"Max Tag Count"},sR={keywordPlaceholder:"Please input component name or description",title:"Component",name:"Component Name",fieldId:"Component ID",fieldName:"Component Name",fieldVersion:"Version",desc:"Component Description",remarksDesc:"Remarks",remarksDescRequired:"Please enter remarks",pleaseInputCompName:"Please enter component name",pleaseInputRemarks:"Please enter remarks to help with component market search",compNameRequired:"Component name is required",compNameNamingRule:"Component name must be in PascalCase or kebab-case",lengthBetween:"Length must be between {min} and {max} characters",version:"Component Version",detail:"Component Detail",preview:"Component Preview",previewConfig:"Preview Config",previewList:"Preview List",uploadPreview:"Component Upload Preview",updatePreview:"Component Update Preview",download:"Download Component",update:"Update Component",upload:"Upload Component",submit:"Submit Component",edit:"Edit Component",add:"Add Component",delete:"Delete Component",local:"Local Component",remote:"Remote Component",online:"Online Component",similar:"Similar Components",similarTeam:"Similar Components in Team",dir:"Component Directory",file:"Component File",entry:"Entry File",previewEntry:"Preview Entry Address",previewEntryFull:"Preview Entry Address (Fullscreen)",addPreviewEntry:"Add Preview Entry",maxPreviewEntry:"Maximum {n} preview entries allowed",pleaseAddPreviewEntry:"Please add a preview entry",miniPreviewFile:"Mini Preview File",fullPreviewFile:"Full Preview File",pleaseSelectPreviewFile:"Please select preview file",remarkDesc:"Remarks",dep:"Component Dependencies",localDep:"Component Dependencies (Local)",onlineDep:"Component Dependencies (Online)",finalDep:"Final Dependencies",localVersion:"Local: ",onlineVersion:"Online: ",onlineDepEmpty:"No online dependency data!",versionConsistent:"Version Consistent",versionChange:"Version changed, please select final version",versionChangeConfirmed:"Confirmed",newDep:"New Dependency",miniPanel:"Mini Panel",fullPanel:"Full Panel",reload:"Reload",uploadProtocol:"Upload Protocol",bgPanel:"Background",compLocation:"Component Location",pleaseSelectFolderFirst:"Please select a folder first",compAlreadyUploaded:"Component already uploaded, please go to My Components or Team Components to update",affirmDep:"Component Dependencies (Confirmed Version)",checkConfig:"Config Check",checkError:"Error Info",extraInfo:"Extra Info",baseInfo:"Basic Info",upgradeLog:"Upgrade Log",pleaseInputUpgradeLog:"Please enter upgrade description",config:"Component Config",configStatus:"Component Config Check Status",configError:"Config Error",configCheckError:"Config Check Error",needUpgrade:"Needs Upgrade",fileChanged:"Component files changed",versionChanged:"Version changed",fileNoChange:"Files unchanged",markdownValid:"Markdown preview validation passed",noMarkdown:"No markdown file",hash:"File Hash",localHash:"Local Component File Hash",remoteHash:"Remote Component File Hash",remoteVersion:"Remote Component Version",remoteVersionPrefix:"Online: ",localVersionPrefix:"Local: ",versionCompare:"Version Comparison Result",carouselIndex:"Component Preview Carousel Index",bgColor:"Component Background Color",dialogType:"Component Dialog Type",repeat:"Component Repeat Check",existLocal:"Component exists locally",scopeId:"Scope ID",tempDir:"Component Temp Directory",submitLimit:"Component Submit Limit",maxSize:"Total Size Limit",maxCount:"File Count Limit",matchType:"Match Type",updateType:"Update Type",updateOnline:"Online Update",updateOffline:"Offline Update",compOfflineUpdate:"Component Offline Update",compOnlineUpdate:"Component Online Update",folder:"Folder",compNotInLocal:"Component is not local. Continuing will only update basic information like description and preview config. Continue?",selectUpdateFolder:"Please select folder to update",openInVscode:"Open in VS Code",openingInEditor:"Opening in editor...",updateSuccess:"Update successful",downloadVersionConfirm:"The currently selected version is: {version}, confirm download?",downloading:"Downloading component...",downloadPathConfirm:"Download component to path [{path}]?",downloadCoverConfirm:"Component [{name}] already exists or has a duplicate name, overwrite?",uncollectConfirm:"Are you sure you want to uncollect component [{name}]? It will no longer appear in your collection list.",deleteConfirm:"Are you sure you want to delete component [{name}]? This will free up the component name and cannot be undone.",collect:"Collect",uncollect:"Uncollect",collected:"Collected",uncollected:"Not Collected",entryFile:"Entry File",configFile:"Config File",fileChangedNeedVersion:"File content changed, please increment version",viewFileChanges:"View File Changes",versionChangedButFileSame:"Version changed but file content unchanged, please revert version",errorMsg:"Error Message",versionCannotBeLessThanLatest:"Version cannot be less than latest version {version}",uploadAnyway:"Upload Anyway",compileError:"Component compilation failed",formatCode:"Format Code:",formatCodeTooltip:"Only formats files during comparison, original files remain unchanged",noChanges:"No changes",diff:{changed:"M Changed",unchanged:"U Unchanged",added:"A Added",deleted:"D Deleted"}},iR={title:"Team",name:"Team Name",code:"Team Code",desc:"Team Description",create:"Create Team",join:"Join Team",exit:"Exit Team",exitConfirm:"Exit Confirmation",manage:"Team Management",setting:"Team Settings",member:"Team Members",memberCount:"Member Count",maxMember:"Max Members",compCount:"Component Count",maxCompCount:"Max Components",creator:"Creator",downloadCount:"Downloads",collectCount:"Collections",createTime:"Create Time",myTeam:"My Teams",joinedTeam:"Joined Teams",space:"Team Space",noJoined:"No joined teams",noCreated:"No created teams",createCountLimit:"Max teams allowed to create",joinCountLimit:"Max teams allowed to join",compList:"Team Component List",myCompList:"My Component List",compGroup:"Team Component Group",compGroupList:"Team Component Group List",addMyComp:"Team Add My Component",compUpdate:"Team My Component Update",addFromMine:"Add from My Components",applyList:"Apply List",nickname:"Team Nickname",noTeamInfo:"No team information",compLib:"Component Library",groupConfig:"Group Config",compManage:"Component Management",unsavedDataLeave:"Group configuration data is not saved, are you sure you want to leave?",leave:"Leave",disbandTeam:"Disband Team",applyAudit:"Apply Audit",teamName:"Team Name",fillTeamCode:"Fill in Team Code",pleaseInputTeamCode:"Please enter team code",teamIdNotExist:"Team ID does not exist",joinSuccess:"Joined team successfully",applyJoinTeam:"Apply to Join Team",showRepeatComp:"Show Duplicate Components",allowAuthorDelete:"Allow Author Delete",teamIntro:"Team Introduction",fillTeamName:"Fill in Team Name",pleaseInputTeamName:"Please enter team name",pleaseInputTeamDesc:"Please enter team description",createSuccess:"Team created successfully",charLength:"Length must be between {min} and {max} characters",disbandConfirm:"Are you sure you want to disband the team? All members and components will be removed and cannot be recovered.",deleteConfirm:"Delete Confirmation",inputAuthCode:"Please enter verification code",disbandSuccess:"Team disbanded successfully",reject:"Reject",agree:"Agree",approved:"Approved",rejected:"Rejected",kickOut:"Kick Out",teamUserNickname:"Team Nickname",pleaseInputTeamNickname:"Please enter your team nickname",normalUser:"Normal User",kickOutConfirm:"Are you sure you want to kick out user [{name}]?",kickOutSuccess:"Kicked out successfully",selectCanUpdateUser:"Select users who can update",authorAutoAuth:"Author has default authorization",updateAuth:"Update Authorization",updateTime:"Update Time",expandAll:"Expand All",createGroup:"Create Group",unsaved:"Unsaved",pleaseInputGroupName:"Please enter group name",addComp:"Add Component",added:"Added",notAdded:"Not Added",defaultGroup:"Default Group",deleteGroupConfirm:"Are you sure you want to delete this group? All components in this group will be removed from the group.",addSuccess:"Added successfully",isGrouped:"Is Grouped",grouped:"Grouped",ungrouped:"Ungrouped",group:"Group",prevVersion:"Previous Version",newVersion:"New Version",upgradeDesc:"Upgrade Description",similarCompInTeam:"Similar Components in Team",similarComp:"Similar Components",deleteCompConfirm:"Are you sure you want to delete team component [{name}]? Team members will no longer be able to use this component.",descTitle:"Create an Exclusive Component Space for Your Team",descItem1:"Create a private team where components are only visible to members, protecting core assets",descItem2:"Each account can create up to {count} teams",descItem3:"Each account can join up to {count} teams",descItem4:"Basic team supports up to {count} members",descItem5:"Basic team can manage up to {count} components",descItem6:"Support creating group menus to organize team components flexibly"},aR={title:"User",username:"Username",account:"Account",password:"Password",newPassword:"New Password",confirmPassword:"Confirm Password",confirmNewPassword:"Confirm New Password",pleaseInputNewPassword:"Please enter new password",pleaseConfirmNewPassword:"Please confirm new password",passwordModified:"Password modified successfully",email:"Email",oldEmail:"Old Email",newEmail:"New Email",phone:"Phone",avatar:"Avatar",nickname:"Nickname",login:"Login",logout:"Logout",register:"Register",forgotPassword:"Forgot Password",resetPassword:"Reset Password",changePassword:"Change Password",changeNickname:"Change Nickname",pleaseInputNickname:"Please enter nickname",changeAvatar:"Change Avatar",avatarModified:"Avatar updated successfully",changeEmail:"Change Email",basicInfo:"Basic Information",securitySettings:"Security Settings",loginPassword:"Login Password",passwordTip:"Regularly change your password to ensure account security",setPassword:"Set Password",emailLogin:"Email Login",emailLoginTip:"Allow using email as login account",pleaseSetPasswordFirst:"Please set login password first",emailLoginEnabled:"Email login enabled",emailLoginDisabled:"Email login disabled",registerTime:"Registration Time",notBound:"Not Bound",change:"Change",bind:"Bind",authCode:"Verification Code",oldAuthCode:"Old Verification Code",newAuthCode:"New Verification Code",sendAuthCode:"Send Auth Code",resendAuthCode:"Resend",getAuthCode:"Get Code",pleaseInputAuthCode:"Please enter code",pleaseInputNewAuthCode:"Please enter new code",resendAfterSeconds:"Resend in {n}s",accountLogin:"Account Login",pleaseInputAccount:"Please enter account",pleaseInputUsername:"Please enter username",pleaseInputPassword:"Please enter password",pleaseInputEmail:"Please enter email",pleaseInputOldEmail:"Please enter old email",pleaseInputNewEmail:"Please enter new email",pleaseInputCorrectEmail:"Please enter correct email",emailModified:"Email modified successfully",newAuthCodeSent:"New verification code sent",authCodeSent:"Verification code sent",guestLogin:"Guest Access",loginSuccess:"Login successful",userInfo:"User Info",personalCenter:"Personal Center",myComp:"My Components",guest:"Guest",notLoggedIn:"Not logged in",goLogin:"Go to Login"},lR={title:"File",name:"Filename",path:"File Path",size:"File Size",type:"File Type",dir:"Directory",selectDir:"Select Directory",upload:"File Upload",download:"File Download",select:"Select",multiSelect:"Multiple selection not supported",onlyDir:"Only directories can be selected",rootDir:"Root Directory",projectPath:"Project Path",currentDir:"Current Directory",parentDir:"Parent Directory",refreshDir:"Refresh Directory List"},cR={success:{download:"Download successful",update:"Update successful",delete:"Delete successful",collect:"Collect successful",uncollect:"Uncollect successful",save:"Save successful",submit:"Submit successful",upload:"Upload successful",copy:"Copy successful",operation:"Operation successful",sendAuthCode:"Verification code sent",exitTeam:"Exit successful"},error:{download:"Download failed",update:"Update failed",delete:"Delete failed",collect:"Collect failed",uncollect:"Uncollect failed",save:"Save failed",submit:"Submit failed",upload:"Upload failed",copy:"Copy failed",operation:"Operation failed",load:"Load failed",network:"Network error",timeout:"Request timeout",unknown:"Unknown error",pleaseFixCompileError:"Please fix compilation errors first",loginExpired:"Login expired, please log in again",refreshFailed:"Refresh failed",requestFailed:"Request failed, please contact administrator",storageNotSupported:"Browser does not support storage.estimate API"},noUpdatePermission:"You do not have permission to update this component. Please contact the administrator for access.",confirm:{delete:"Are you sure to delete?",submit:"Are you sure to submit?",update:"Are you sure to update?",exit:"Are you sure to exit?",cancel:"Are you sure to cancel?"},loginRequired:"Please login first",fileExceed:"You can select at most {limit} files, {selected} selected this time, {total} total to be uploaded",validate:{required:"Required field",format:"Invalid format",min:"Cannot be less than minimum value",max:"Cannot exceed maximum value",length:"Invalid length",email:"Invalid email format",phone:"Invalid phone format",imageFormat:"Only image files are allowed",pleaseSelectFile:"Please select a file first",fileMaxSize:"File size cannot exceed {size}MB!"}},uR={404:"Page Not Found",share:"Component Market",collect:"Collected Components",collectSimple:"Collection",mine:"My Components",mineSimple:"Mine",local:"Local Components",localSimple:"Local",team:"Team",upload:"Upload Component",uploadSimple:"Upload",uploadTeam:"Upload Team Component",setting:"Settings",userInfo:"User Info",upgrade:"Upgrade",terminal:"Terminal",preview:"Component Preview",previewLocal:"Local Component Preview",previewTeam:"Team Component Preview",previewBlank:"Preview",similarPreview:"Similar Component Preview",login:"Login",mdPreview:"Document Preview",unknownTag:"Unknown Tag"},fR={parse:"Parse Markdown",loading:"Loading Markdown",error:"Load failed",toc:"Table of Contents",anchor:"Anchor"},dR={title:"Terminal",open:"Open Terminal",close:"Close Terminal",execute:"Execute Command",shutdown:"Shutdown Process",timeout:"Timeout",disconnected:"Terminal disconnected"},pR={title:"Dependencies",name:"Dependency Name",version:"Dependency Version",install:"Install Dependencies",installing:"Installing",installed:"Installed",prebuild:"Prebuild",prebuildSize:"Prebuild Size",clearPrebuild:"Clear Prebuild",batchSetting:"Batch Setting",dependencies:"dependencies",devDependencies:"devDependencies",match:{onlyInstall:"Install Only",majorVersion:"Major Version",minorVersion:"Major + Minor",exactVersion:"Exact Match"}},hR={title:"Settings",previewRule:"Preview Rule",other:"Other Settings",theme:"Theme",language:"Language",darkMode:"Dark Mode",lightMode:"Light Mode"},mR={title:"Version Update",current:"Current Version",latest:"Latest Version",check:"Check for Updates",upgrading:"Updating",upgraded:"Updated",publish:"Publish Update",record:"Update Record",log:"Changelog",hasUpdate:"Update Available",betaVersion:"Beta",noUpdate:"No updates available",updateMethod:"Update Method",openTerminalAndRun:"Open terminal and run:",cannotIgnoreUpdate:"This update cannot be ignored"},gR={systemRecommended:"System Recommended",all:"All",latest:"Latest",hottest:"Hottest"},vR={submit:"Submit"},_R={empty:"Cannot be empty",notString:"Must be a string type, current type: {type}",contentEmpty:"Content cannot be empty",startsWithNumber:'Content cannot start with a number, currently starts with "{char}"',invalidCharBacktick:"Content contains backtick (Markdown syntax marker), only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharNewline:"Content contains newline character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharCarriageReturn:"Content contains carriage return, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharTab:"Content contains tab character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharFormFeed:"Content contains form feed character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharVerticalTab:"Content contains vertical tab character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharHash:"Content contains # character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharHtmlSpecial:'Content contains HTML special character "{char}", only hyphen(-), underscore(_), parentheses(), and spaces are allowed',invalidCharUnknown:'Content contains invalid character "{char}" (Unicode: U+{code}), only hyphen(-), underscore(_), parentheses(), and spaces are allowed'},xR={common:oR,comp:sR,team:iR,user:aR,file:lR,message:cR,route:uR,markdown:fR,terminal:dR,deps:pR,setting:hR,upgrade:mR,tag:gR,formCreate:vR,validateHash:_R},bR={zh:rR,en:xR},yR=localStorage.getItem(DM.LOCALE_KEY)||"zh",ER=O4({locale:yR,messages:bR,legacy:!1});function CR(e){e.use(ER)}function SR(e){e.directive("loading",hf)}function wR(e){Hk(e),SR(e),CR(e)}const E_=eg(U4);wR(E_);E_.mount("#app")});export default AR();
|
|
14
|
+
`?{valid:!1,reason:"validateHash.invalidCharNewline"}:r==="\r"?{valid:!1,reason:"validateHash.invalidCharCarriageReturn"}:r===" "?{valid:!1,reason:"validateHash.invalidCharTab"}:r==="\f"?{valid:!1,reason:"validateHash.invalidCharFormFeed"}:r==="\v"?{valid:!1,reason:"validateHash.invalidCharVerticalTab"}:r==="#"?{valid:!1,reason:"validateHash.invalidCharHash"}:/[<>\\"'&]/.test(r)?{valid:!1,reason:"validateHash.invalidCharHtmlSpecial",reasonParams:{char:r}}:{valid:!1,reason:"validateHash.invalidCharUnknown",reasonParams:{char:r,code:o.toString(16).toUpperCase().padStart(4,"0")}}}return{valid:!0,normalized:t}}function $D(e){return h_(e).valid}const fu=Object.freeze(Object.defineProperty({__proto__:null,convertKeysToCamelCase:uu,escapeRegExp:If,findKeywordLineIndex:LD,generateNumberString:RD,highlightText:MD,isEmail:DD,isValidHash:$D,randomColor:PD,replaceBackslashWithSlash:d_,replaceSlashWithSpecifiedSeparator:ID,splitTextByKeyword:FD,toCamelCase:p_,validateCompName:kD,validateHash:h_},Symbol.toStringTag,{value:"Module"}));function BD(e,t){if(!e||!t.length)throw new Error("组件路径或入口路径为空");const[n]=t.slice(-1);if(!n)throw new Error("入口路径最后一项无效");const r=d_(n);return`${e.replace(at.FILE_MANAGER_DIRNAME,"")}${r}`}function VD(e){const t={};return e.forEach(n=>{n?.parent?t[n?.parent?.name]=n?.parent?.version:t[n.name]=n.version}),Object.entries(t).map(([n,r])=>({name:n,version:r}))}const HD=Object.freeze(Object.defineProperty({__proto__:null,getPreviewUrl:BD,handleDepData:VD},Symbol.toStringTag,{value:"Module"})),mh=/^[\^~>=<]+/,m_=/^(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9.]+))?(?:\+([a-zA-Z0-9.]+))?$/;function UD(e){return m_.test(e)}function er(e){if(!e||typeof e!="string")throw new Error(`Invalid version string: ${e}`);const t=e.match(mh),n=t?t[0]:"",r=e.replace(mh,"").match(m_);if(!r)throw new Error(`Invalid semver format: ${e}`);const[,o="0",s="0",i="0",a]=r,l=parseInt(o,10),c=parseInt(s,10),u=parseInt(i,10);return{raw:e,prefix:n,major:l,minor:c,patch:u,prerelease:a||null,majorVersion:o,version:`${l}.${c}.${u}`}}function jD(e,t){const n=er(e),r=er(t);return n.major===r.major&&n.minor===r.minor&&n.patch===r.patch}function WD(e){return er(e).majorVersion}function GD(e){const t={};for(const[n,r]of Object.entries(e))try{t[n]=er(r)}catch(o){console.warn(`Failed to parse version for ${n}: ${r}`,o)}return t}function Do(e,t){const n=er(e),r=er(t),{VERSION_COMPARE_SAME:o,VERSION_COMPARE_LESS:s,VERSION_COMPARE_GREATER:i}=at;return n.major!==r.major?n.major>r.major?i:s:n.minor!==r.minor?n.minor>r.minor?i:s:n.patch!==r.patch?n.patch>r.patch?i:s:o}function zD(e,t){const n=er(e),r=er(t);switch(r.prefix){case"^":return n.major===r.major;case"~":return n.major===r.major&&n.minor===r.minor;case">=":return Do(e,t.replace(">=",""))>=0;case">":return Do(e,t.replace(">",""))>0;case"<=":return Do(e,t.replace("<=",""))<=0;case"<":return Do(e,t.replace("<",""))<0;case"=":case"":return Do(e,t.replace("=",""))===0;default:return!1}}function KD(e){if(!e||typeof e!="string")throw new Error("版本号必须是非空字符串");const t=er(e),n=(a,l)=>{if(a<0||a>999)throw new Error(`版本号${l}位必须在 0-999 之间,当前值:${a}(原始输入:${e})`);return a},r=n(t.major,"主版本"),o=n(t.minor,"次版本"),s=n(t.patch,"补丁版本"),i=r*1e6+o*1e3+s;if(!Number.isSafeInteger(i))throw new Error(`版本号转换后超出 JavaScript 安全整数范围,结果:${i}(原始输入:${e})`);return i}const Fo=Object.freeze(Object.defineProperty({__proto__:null,compareVersions:Do,getMajorVersion:WD,isVersionEqual:jD,parseDependencies:GD,parseVersion:er,satisfiesRange:zD,validateVersion:UD,versionToNumber:KD},Symbol.toStringTag,{value:"Module"})),YD={ref:"content",class:"size-full"},qD={class:"block overflow-hidden size-full"},JD={key:0,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},XD={key:0,class:"shrink-0"},QD=["innerHTML"],ZD=["innerHTML"],e6={key:1,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},t6=["innerHTML"],n6={key:0,class:"shrink-0"},r6={key:2,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},o6={key:0,class:"shrink-0"},s6=["innerHTML"],i6={key:1,class:"shrink-0"},a6="12px Inter",gh=16,l6=18,c6=ue({__name:"TextEllipsisHighlight",props:{text:{},modelValue:{type:Boolean},keyword:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=da("content"),{width:r,height:o}=tl(n),s=e,i=t,a=Z([]),l=Z(-1),c=Z(-1),u=Z({});function f(x,S){const E=S.trim().toLowerCase();if(!E||x.length===0)return{startLine:-1,endLine:-1,parts:{}};const b=[];let O=0;for(const I of x)O+=I.length,b.push(O);const W=x.join("").toLowerCase().indexOf(E);if(W!==-1){const I=W+E.length;let Y=0;for(;Y<b.length&&W>=b[Y];)Y++;let H=Y;for(;H<b.length&&I>b[H];)H++;const D=S.trim();if(Y===H)return{startLine:Y,endLine:H,parts:{[Y]:D}};const M=b[Y]-W;return{startLine:Y,endLine:H,parts:{[Y]:D.slice(0,M),[H]:D.slice(M)}}}for(let I=0;I<x.length-1;I++){const Y=x[I].toLowerCase(),H=x[I+1].toLowerCase();for(let D=1;D<E.length;D++)if(Y.endsWith(E.slice(0,D))&&H.startsWith(E.slice(D)))return{startLine:I,endLine:I+1,parts:{[I]:E.slice(0,D),[I+1]:E.slice(D)}};for(let D=1;D<E.length-1;D++)if(E[D]===" "){const M=E.slice(0,D),R=E.slice(D+1);if(M&&R&&Y.endsWith(M)&&H.startsWith(R))return{startLine:I,endLine:I+1,parts:{[I]:M,[I+1]:R}}}}return{startLine:-1,endLine:-1,parts:{}}}const d=Pg((x,S,E)=>{if(!x||!S){a.value=[],l.value=-1,c.value=-1,u.value={};return}const b=TD(x,a6),O=Math.max(0,S-l6),{lines:F}=ND(b,O,gh);a.value=F.map(W=>W.text);const V=f(a.value,E);l.value=V.startLine,c.value=V.endLine,u.value=V.parts},100);_e([()=>s.text,r,()=>s.keyword],([x,S,E])=>{d(x,S,E)},{immediate:!0});const p=L(()=>o.value?Math.max(1,Math.floor(o.value/gh)):1),h=L(()=>{const x=a.value,S=p.value,E=l.value,b=c.value;if(x.length===0)return[];if(E===-1||b===-1||x.length<=S)return x.slice(0,S);const O=Math.max(0,Math.min(E,b-S+1));return x.slice(O,O+S)}),m=L(()=>{const x=a.value,S=p.value,E=l.value,b=c.value;return x.length===0||E===-1||b===-1||x.length<=S?0:Math.max(0,Math.min(E,b-S+1))}),v=L(()=>l.value!==-1&&h.value[0]!==a.value[0]),g=L(()=>l.value===-1?a.value.length>h.value.length:h.value.at(-1)!==a.value.at(-1)),_=L(()=>a.value.length>p.value);_e(_,x=>{i("update:modelValue",x)});const y=(x="",S)=>{if(S!==void 0){const E=u.value[S];if(E)return fu.highlightText(x,E,"hl")}return fu.highlightText(x,s.keyword||"","hl")};return(x,S)=>(U(),ae("div",YD,[te("div",qD,[h.value.length>=2?(U(),ae("div",JD,[v.value?(U(),ae("span",XD,"...")):Ae("",!0),te("span",{innerHTML:y(h.value[0],m.value)},null,8,QD)])):Ae("",!0),(U(!0),ae(ke,null,Nn(h.value.slice(1,-1),(E,b)=>(U(),ae("div",{key:m.value+b+1,class:"m-0 p-0 flex items-center whitespace-nowrap overflow-hidden"},[te("span",{innerHTML:y(E,m.value+b+1)},null,8,ZD)]))),128)),h.value.length>1?(U(),ae("div",e6,[te("span",{innerHTML:y(h.value[h.value.length-1],m.value+h.value.length-1)},null,8,t6),g.value?(U(),ae("span",n6,"...")):Ae("",!0)])):Ae("",!0),h.value.length===1?(U(),ae("div",r6,[v.value?(U(),ae("span",o6,"...")):Ae("",!0),te("span",{innerHTML:y(h.value[0],m.value)},null,8,s6),g.value?(U(),ae("span",i6,"...")):Ae("",!0)])):Ae("",!0)])],512))}}),u6=Oi(c6,[["__scopeId","data-v-2be36f43"]]),f6={class:"flex items-center justify-center gap-[6px] leading-[15px]"},d6={class:"text-xs leading-3 align-middle"},p6={class:"inline-block align-middle shrink-0"},h6=ue({__name:"UserAvatar",props:{nickname:{type:String,default:""},teamUserNickname:{type:String,default:""}},setup(e){const t=e,n=L(()=>t.teamUserNickname||t.nickname||"--");return(r,o)=>(U(),ae("div",f6,[te("span",d6,De(n.value),1),te("div",p6,[Se(r.$slots,"avatar",{},void 0,!0)])]))}}),m6=Oi(h6,[["__scopeId","data-v-f90b87fa"]]),g6={key:1,class:"grid-container"},v6=ue({__name:"GridContainer",props:{itemMinWidth:{type:Number,default:300},gap:{type:Number,default:20},useTransition:{type:Boolean,default:!0}},setup(e){Ub(o=>({v58810582:r.value,v6c23f06a:n.value}));const t=e,n=L(()=>t.gap+"px"),r=L(()=>t.itemMinWidth+"px");return(o,s)=>e.useTransition?(U(),he(sy,{key:0,class:"grid-container",name:"list",tag:"div"},{default:pe(()=>[Se(o.$slots,"default",{},void 0,!0)]),_:3})):(U(),ae("div",g6,[Se(o.$slots,"default",{},void 0,!0)]))}}),_6=Oi(v6,[["__scopeId","data-v-404bcef7"]]);function x6(e){const t=document.createElement("canvas"),n=t.getContext("2d");if(!n)return"";t.width=100,t.height=100,n.fillStyle="#fff",n.font="60px serif";const r=n.measureText(e),o=r.width,s=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,i=(t.width-o)/2,a=(t.height+s)/2-r.actualBoundingBoxDescent;return n.fillText(e,i,a),t.toDataURL()}let $o=null;const g_="IS_REPLACE",v_="IS_ADD",__="IS_DELETE",x_="IS_CLEAR";function dc(){$o!==null&&(typeof cancelIdleCallback=="function"?cancelIdleCallback($o):typeof clearTimeout=="function"&&clearTimeout($o),$o=null)}const vh=(e,t)=>{if(typeof requestIdleCallback=="function")return requestIdleCallback(e,t);{const n=t?.timeout??50,r=Date.now();return setTimeout(()=>{const o=Date.now()-r>=n;e({timeRemaining:()=>Math.max(0,n-(Date.now()-r)),didTimeout:o})},1)}};function b6({list:e,oldList:t=[],render:n}){if(dc(),e.length===0)return n(x_,t),()=>{dc()};const r=t.filter(f=>!e.some(d=>d._id===f._id));r.length>0&&n(__,r);let o=0;const s=e.length,i=8;let a=i,l=0,c=0;const u=f=>{if(l>2&&(a=Math.max(0,a-1),l=0),c>1&&(a=Math.min(i,a+1)),o<s&&(f.timeRemaining()>a||f.didTimeout)){const d=e[o];if(!d)throw new Error("组件列表项无效");t.findIndex(h=>h._id===d._id)>-1?n(g_,[d]):n(v_,[d]),o++,l=0,c++,c>10&&(c=0)}else l++,c=0,l>5&&(a=Math.max(0,a-2));o<s&&($o=vh(u,{timeout:16.6*30}))};return s>0&&($o=vh(u,{timeout:16.6*30})),()=>{dc()}}const y6=ue({__name:"Collect",props:{isCollect:{type:Boolean,default:!1}},emits:["collect"],setup(e,{emit:t}){const n=_m(),r=e,o=t;function s(){o("collect",!r.isCollect)}return(i,a)=>(U(),he(A(cs),Dt(A(n),{icon:"material-symbols:kid-star",class:["cursor-pointer",{"is-collected":e.isCollect}],onClick:s}),null,16,["class"]))}}),E6=Oi(y6,[["__scopeId","data-v-484592c4"]]),C6=ue({__name:"CompDepsTags",props:{compDeps:{},depsSetting:{}},setup(e){const{t}=tr(),n=e,r=L(()=>{const a=new Map;return n.depsSetting?.forEach(l=>{a.set(l.name,l)}),a});function o(a,l){const c=l.match;try{switch(c){case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:{const u=Fo.parseVersion(a),f=Fo.parseVersion(l.version);return u.major===f.major}case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:{const u=Fo.parseVersion(a),f=Fo.parseVersion(l.version);return u.major===f.major&&u.minor===f.minor}case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:{const u=Fo.parseVersion(a),f=Fo.parseVersion(l.version);return u.major===f.major&&u.minor===f.minor&&u.patch===f.patch}default:return!1}}catch(u){return console.warn(`Version parse failed: ${a} or ${l.version}`,u),!1}}function s(a){const l=r.value.get(a.name);return l?o(a.version,l):!1}function i(a){const l=r.value.get(a.name);if(!l||!o(a.version,l))return"";switch(l.match){case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return"match-dot-green";case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:return"match-dot-blue";case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:return"match-dot-orange";case at.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:return"match-dot-red";default:return""}}return(a,l)=>(U(),he(A(ZI),{list:e.compDeps,getKey:c=>c.name,class:"flex items-center gap-1"},{display:pe(({visibleList:c,overflow:u})=>[(U(!0),ae(ke,null,Nn(c,f=>(U(),he(A(Us),{key:f.name,type:"info","disable-transitions":"",size:"small",class:de({"not-matched":!s(f)})},{default:pe(()=>[i(f)?(U(),ae("span",{key:0,class:de(["inline-block w-2 h-2 rounded-full mr-1",i(f)])},null,2)):Ae("",!0),Tt(" "+De(f.name)+" "+De(f.version),1)]),_:2},1032,["class"]))),128)),u>0?(U(),he(A(Us),{key:0,type:"info",size:"small","disable-transitions":""},{default:pe(()=>[Tt("+"+De(u)+" "+De(A(t)("common.more")),1)]),_:2},1024)):Ae("",!0)]),measure:pe(({item:c})=>[ee(A(Us),{type:"info",size:"small","disable-transitions":"",class:de({"not-matched":!s(c)})},{default:pe(()=>[i(c)?(U(),ae("span",{key:0,class:de(["inline-block w-2 h-2 rounded-full mr-1",i(c)])},null,2)):Ae("",!0),Tt(" "+De(c.name)+" "+De(c.version),1)]),_:2},1032,["class"])]),_:1},8,["list","getKey"]))}}),S6=Oi(C6,[["__scopeId","data-v-01610d58"]]),w6={key:0,class:"bg-[#ffe600] rounded-[2px] px-[2px]"},A6=ue({__name:"HighlightText",props:{text:{},keyword:{}},setup(e){const t=e,n=L(()=>fu.splitTextByKeyword(t.text,t.keyword));return(r,o)=>(U(),ae("span",null,[(U(!0),ae(ke,null,Nn(n.value,(s,i)=>(U(),ae(ke,{key:i},[s.isMatch?(U(),ae("mark",w6,De(s.text),1)):(U(),ae(ke,{key:1},[Tt(De(s.text),1)],64))],64))),128))]))}}),Gr=ue({__name:"CompActionPreview",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""},isLocal:{type:Boolean,default:!1}},setup(e){const{sendMessageToTop:t}=un(),{params:{instanceUid:n}}=kt(),r=e,o=cn(r.isDev);function s(){r.isLocal?t(Ie.ACTION_PREVIEW_LOCAL,r.compId,o,n):t(Ie.ACTION_PREVIEW,r.compId,o,n)}return(i,a)=>(U(),he(A(Ti),{type:"primary",onClick:s},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:preview",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1}))}}),b_=ue({__name:"CompActionCollect",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""},isCollect:{type:Boolean,default:!1}},setup(e){const{sendMessageToTop:t}=un(),{params:{instanceUid:n}}=kt(),r=e,o=cn(r.isDev);function s(i){t(Ie.ACTION_COLLECT,{id:r.compId,isCollect:i},o,n)}return(i,a)=>(U(),he(A(E6),{width:A(at).COMP_ACTION_ICON_WIDTH,isCollect:e.isCollect,onCollect:s},null,8,["width","isCollect"]))}}),us=ue({__name:"CompActionDownload",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""},version:{type:String,default:""}},setup(e){const{sendMessageToTop:t}=un(),{params:{instanceUid:n}}=kt(),r=e,o=cn(r.isDev);function s(){t(Ie.ACTION_DOWNLOAD,{id:r.compId,version:r.version},o,n)}return(i,a)=>(U(),he(A(Ti),{type:"primary",onClick:s},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:cloud-download-outline",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1}))}}),T6={class:"size-full"},O6=ue({__name:"CompDesc",props:{desc:{type:String,default:""},keyword:{type:String,default:""}},setup(e){const t=Z(!1);return(n,r)=>(U(),ae("div",T6,[ee(A(h3),{disabled:!t.value,content:e.desc,placement:"bottom",width:"300","show-after":700},{reference:pe(()=>[ee(A(u6),{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=o=>t.value=o),text:e.desc,keyword:e.keyword,class:"text-[12px] leading-4"},null,8,["modelValue","text","keyword"])]),_:1},8,["disabled","content"])]))}}),N6=ue({__name:"OssAvatar",props:{isDev:{type:Boolean,default:!1},src:{type:String,default:""},text:{type:String,default:""}},setup(e){const t=e,n=cn(t.isDev),{messageListener:r,sendMessageToTop:o}=un(),{addListener:s}=r(),{params:{instanceUid:i}}=kt(),a=_m(),l=Z("");return s(Ie.OSS_FILE_SIGN_URL_SET,({objectId:c,signUrl:u})=>{c===t.src&&(l.value=u)}),_e(()=>t.text,c=>{!c||t.src||(l.value=x6(c))},{immediate:!0}),mi(async()=>{t.src&&o(Ie.OSS_FILE_SIGN_URL_GET,{objectId:t.src},n,i)}),(c,u)=>(U(),he(A(wN),Dt({class:"border border-gray-400"},A(a),{src:l.value}),null,16,["src"]))}}),F6=ue({__name:"CompVersionSelectListItem",props:{isDev:{type:Boolean,default:!1},id:{type:String,default:""},version:{type:String,default:""}},setup(e){const{t}=tr(),n=e,{sendMessageToTop:r,messageListener:o}=un(),s=cn(n.isDev),{addListener:i}=o(),{params:{instanceUid:a}}=kt(),l=Z(""),c=Z([]),u=L(()=>c.value.map(h=>({value:h.version,label:h.version})));function f(h){l.value=h}async function d(h){u.value.length||!h||r(Ie.ITEM_VERSION_LIST_GET,n.id,s,a)}function p(){l.value=n.version}return i(Ie.ITEM_VERSION_LIST_SET,h=>{h.compId===n.id&&(c.value=h.versionList)}),_e(()=>l.value,(h,m)=>{if(h===m||!m)return;const v={version:h,compId:n.id};r(Ie.ITEM_VERSION_CHANGE,v,s,a)}),gt(()=>{p()}),(h,m)=>(U(),he(A(IF),{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=v=>l.value=v),placeholder:A(t)("common.pleaseSelect"),onChange:f,onVisibleChange:d},{default:pe(()=>[(U(!0),ae(ke,null,Nn(u.value,v=>(U(),he(A(PF),{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]))}}),y_=ue({__name:"CompActionDel",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""}},setup(e){const t=e,n=cn(t.isDev),{sendMessageToTop:r}=un(),{params:{instanceUid:o}}=kt();function s(){r(Ie.ACTION_DELETE,t.compId,n,o)}return(i,a)=>(U(),he(A(Ti),{type:"danger",onClick:s},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:delete-forever-outline-rounded",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1}))}}),Pf=ue({__name:"CompActionUpdate",props:{isDev:{type:Boolean,default:!1},compId:{type:String,default:""}},setup(e){const t=e,n=cn(t.isDev),{sendMessageToTop:r,messageListener:o}=un(),{addListener:s}=o(),{params:{instanceUid:i}}=kt(),a=Z(!1),l=L(()=>a.value?"primary":"info");function c(){r(Ie.ACTION_UPDATE,t.compId,n,i)}return s(Ie.LOCAL_EXIST_SET,u=>{u.compId===t.compId&&(a.value=u.exist??!1)}),r(Ie.LOCAL_EXIST_GET,t.compId,n,i),(u,f)=>(U(),he(A(Ti),{type:l.value,onClick:c},{default:pe(()=>[ee(A(cs),{icon:"material-symbols:cloud-upload",height:A(at).COMP_ACTION_ICON_HEIGHT},null,8,["height"])]),_:1},8,["type"]))}}),Sr=ue({__name:"index",props:{list:{}},setup(e){let t=()=>{};const n=e,r=Z([]),o=()=>b6({list:n.list,oldList:r.value,render:(i,a)=>{const l=a[0];if(i===v_&&l)r.value.push(l);else if(i===g_){const c=a[0];if(c){const u=r.value.findIndex(f=>f._id===c._id);if(u>-1){const f=r.value[u];mn(f,c)||(r.value[u]=c)}}}else i===__?r.value=r.value.filter(c=>!a.find(u=>u._id===c._id)):i===x_&&(r.value=[])}}),s=i=>{for(const a of i){const l=r.value.findIndex(c=>c._id===a._id);l>-1&&(mn(r.value[l],a)||(r.value[l]=a))}};return _e(()=>n.list,(i,a)=>{if(t(),a&&i.length===a.length){const l=new Set(a.map(u=>u._id));if(i.every(u=>l.has(u._id))){s(i);return}}t=o()}),Nt(()=>{t()}),(i,a)=>(U(),he(A(_6),{itemMinWidth:350,class:"overflow-x-hidden"},{default:pe(()=>[(U(!0),ae(ke,null,Nn(r.value,l=>(U(),he(A($F),{key:l._id,"body-class":"!p-[0px] flex flex-col !overflow-hidden relative",class:"overflow-hidden"},{default:pe(()=>[Se(i.$slots,"body",{item:l})]),_:2},1024))),128))]),_:3}))}});function wr(){const{params:{instanceUid:e}}=kt(),t=cn(!1),{sendMessageToTop:n,messageListener:r}=un(),{addListener:o}=r(),{depsSetting:s}=V4(!1),i=Z([]),a=Z("");return o(Ie.LIST_INIT,l=>{i.value=l}),o(Ie.SEARCH_KEYWORD_SET,l=>{a.value=l}),n(Ie.SEARCH_KEYWORD_GET,"",t,e),n(Ie.LIST_INIT_GET,"",t,e),{listInitData:i,depsSetting:s,keyword:a}}const M6={class:"text-left flex flex-col w-full overflow-hidden my-1 gap-[3px] h-[85px]"},L6={class:"flex justify-between items-center"},I6={class:"font-medium"},P6={class:"overflow-hidden relative flex-1"},D6={class:"h-[20px]"},zr=ue({__name:"index",props:{attrs:{type:Object,default:()=>({})},depsSetting:{type:Array,default:()=>[]},keyword:{type:String,default:""}},setup(e){const t=e,n=L(()=>HD.handleDepData(t.attrs.dep??[])),r=L(()=>!1);return(o,s)=>(U(),ae("div",M6,[te("div",L6,[te("h4",I6,[ee(A(A6),{text:e.attrs?.name,keyword:e.keyword},null,8,["text","keyword"])]),te("div",null,[ee(A(m6),Dt(e.attrs?.authorId,{teamUserNickname:e.attrs?.teamUserNickname}),{avatar:pe(()=>[ee(A(N6),{isDev:r.value,size:15,src:e.attrs?.authorId?.avatar},null,8,["isDev","src"])]),_:1},16,["teamUserNickname"])])]),te("div",P6,[ee(A(O6),{desc:e.attrs?.desc,keyword:e.keyword},null,8,["desc","keyword"])]),te("div",D6,[ee(A(S6),{compDeps:n.value,depsSetting:e.depsSetting,keyword:e.keyword},null,8,["compDeps","depsSetting","keyword"])])]))}});var pc,_h;function k6(){if(_h)return pc;_h=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,s){for(var i="",a=0,l=-1,c=0,u,f=0;f<=o.length;++f){if(f<o.length)u=o.charCodeAt(f);else{if(u===47)break;u=47}if(u===47){if(!(l===f-1||c===1))if(l!==f-1&&c===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){var d=i.lastIndexOf("/");if(d!==i.length-1){d===-1?(i="",a=0):(i=i.slice(0,d),a=i.length-1-i.lastIndexOf("/")),l=f,c=0;continue}}else if(i.length===2||i.length===1){i="",a=0,l=f,c=0;continue}}s&&(i.length>0?i+="/..":i="..",a=2)}else i.length>0?i+="/"+o.slice(l+1,f):i=o.slice(l+1,f),a=f-l-1;l=f,c=0}else u===46&&c!==-1?++c:c=-1}return i}function n(o,s){var i=s.dir||s.root,a=s.base||(s.name||"")+(s.ext||"");return i?i===s.root?i+a:i+o+a:a}var r={resolve:function(){for(var s="",i=!1,a,l=arguments.length-1;l>=-1&&!i;l--){var c;l>=0?c=arguments[l]:(a===void 0&&(a=process.cwd()),c=a),e(c),c.length!==0&&(s=c+"/"+s,i=c.charCodeAt(0)===47)}return s=t(s,!i),i?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(s){if(e(s),s.length===0)return".";var i=s.charCodeAt(0)===47,a=s.charCodeAt(s.length-1)===47;return s=t(s,!i),s.length===0&&!i&&(s="."),s.length>0&&a&&(s+="/"),i?"/"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,i=0;i<arguments.length;++i){var a=arguments[i];e(a),a.length>0&&(s===void 0?s=a:s+="/"+a)}return s===void 0?".":r.normalize(s)},relative:function(s,i){if(e(s),e(i),s===i||(s=r.resolve(s),i=r.resolve(i),s===i))return"";for(var a=1;a<s.length&&s.charCodeAt(a)===47;++a);for(var l=s.length,c=l-a,u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var f=i.length,d=f-u,p=c<d?c:d,h=-1,m=0;m<=p;++m){if(m===p){if(d>p){if(i.charCodeAt(u+m)===47)return i.slice(u+m+1);if(m===0)return i.slice(u+m)}else c>p&&(s.charCodeAt(a+m)===47?h=m:m===0&&(h=0));break}var v=s.charCodeAt(a+m),g=i.charCodeAt(u+m);if(v!==g)break;v===47&&(h=m)}var _="";for(m=a+h+1;m<=l;++m)(m===l||s.charCodeAt(m)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+i.slice(u+h):(u+=h,i.charCodeAt(u)===47&&++u,i.slice(u))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return".";for(var i=s.charCodeAt(0),a=i===47,l=-1,c=!0,u=s.length-1;u>=1;--u)if(i=s.charCodeAt(u),i===47){if(!c){l=u;break}}else c=!1;return l===-1?a?"/":".":a&&l===1?"//":s.slice(0,l)},basename:function(s,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');e(s);var a=0,l=-1,c=!0,u;if(i!==void 0&&i.length>0&&i.length<=s.length){if(i.length===s.length&&i===s)return"";var f=i.length-1,d=-1;for(u=s.length-1;u>=0;--u){var p=s.charCodeAt(u);if(p===47){if(!c){a=u+1;break}}else d===-1&&(c=!1,d=u+1),f>=0&&(p===i.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=d))}return a===l?l=d:l===-1&&(l=s.length),s.slice(a,l)}else{for(u=s.length-1;u>=0;--u)if(s.charCodeAt(u)===47){if(!c){a=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":s.slice(a,l)}},extname:function(s){e(s);for(var i=-1,a=0,l=-1,c=!0,u=0,f=s.length-1;f>=0;--f){var d=s.charCodeAt(f);if(d===47){if(!c){a=f+1;break}continue}l===-1&&(c=!1,l=f+1),d===46?i===-1?i=f:u!==1&&(u=1):i!==-1&&(u=-1)}return i===-1||l===-1||u===0||u===1&&i===l-1&&i===a+1?"":s.slice(i,l)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return n("/",s)},parse:function(s){e(s);var i={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return i;var a=s.charCodeAt(0),l=a===47,c;l?(i.root="/",c=1):c=0;for(var u=-1,f=0,d=-1,p=!0,h=s.length-1,m=0;h>=c;--h){if(a=s.charCodeAt(h),a===47){if(!p){f=h+1;break}continue}d===-1&&(p=!1,d=h+1),a===46?u===-1?u=h:m!==1&&(m=1):u!==-1&&(m=-1)}return u===-1||d===-1||m===0||m===1&&u===d-1&&u===f+1?d!==-1&&(f===0&&l?i.base=i.name=s.slice(1,d):i.base=i.name=s.slice(f,d)):(f===0&&l?(i.name=s.slice(1,u),i.base=s.slice(1,d)):(i.name=s.slice(f,u),i.base=s.slice(f,d)),i.ext=s.slice(u,d)),f>0?i.dir=s.slice(0,f-1):l&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,pc=r,pc}var R6=k6();const $6=["bg"],B6={class:"flex-1 dark:border-gray-600 shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)] dark:shadow-[0_4px_6px_-1px_rgba(0,0,0,0.3)]"},V6=["name","src"],H6={class:"w-[100px] p-1"},U6={key:1},Ar=ue({__name:"index",props:{attrs:{type:Object,default:()=>({})},isSwitchVersion:{type:Boolean,default:!0},iframeType:{type:String,default:at.IFRAME_ROUTES.ITEM.CAROUSEL_REMOTE}},setup(e){const t=e,{uniteParams:n,getTheme:r}=kt(),o=$M(!1,window.__GLOBAL_CONFIG__?.subPort);function s(i){const a=n({compId:i}),l=new URLSearchParams({params:a,isDark:r()??"false"}).toString();return o+R6.join(`/${at.WEBSITE_PATH_ITEM}`,t.iframeType,`?${l}`)}return(i,a)=>(U(),ae("div",{class:"h-[280px] flex flex-col gap-1",bg:e.attrs?.bgColor},[te("div",B6,[te("iframe",{name:e.attrs._id,class:"size-full overflow-hidden border-none",src:s(e.attrs._id),loading:"lazy"},null,8,V6)]),te("div",H6,[e.isSwitchVersion?(U(),he(A(F6),{key:0,id:e.attrs?._id,version:e.attrs?.version},null,8,["id","version"])):(U(),ae("span",U6,De(e.attrs?.version),1))])],8,$6))}}),j6={class:"size-full flex flex-col"},W6={class:"p-1"},G6={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},z6={class:"flex gap-5"},K6={class:"flex-1 flex justify-end items-start gap-2"},Y6=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",j6,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",W6,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",G6,[te("div",z6,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"]),ee(A(Br),{icon:"material-symbols:star-outline-rounded",value:Math.max(a?.collectCount??0,0)},null,8,["value"])]),te("div",K6,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(b_),{compId:a._id,isCollect:a?.isCollect,isDev:o.value},null,8,["compId","isCollect","isDev"])])])])])]),_:1},8,["list"]))}}),q6={class:"size-full flex flex-col"},J6={class:"p-1"},X6={class:"text-xs mt-1 flex justify-between items-center"},Q6=ue({__name:"index",setup(e){const{t}=tr(),{listInitData:n}=wr(),{messageListener:r,sendMessageToTop:o}=un(),{addListener:s}=r(),i=cn(!1),{params:{instanceUid:a}}=kt(),l=Z([]),c=L(()=>!1);function u(d){o(Ie.ACTION_OPEN_VSCODE_LOCAL,d,i,a)}function f(d){return l.value.find(p=>p.compId===d)?.fullPath??""}return s(Ie.ITEM_SITE_PATH_SET,d=>{l.value=d}),o(Ie.ITEM_SITE_PATH_GET,"",i,a),(d,p)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:h})=>[te("div",q6,[ee(Ar,{attrs:h,iframeType:A(at).IFRAME_ROUTES.ITEM.CAROUSEL_LOCAL,isSwitchVersion:!1},null,8,["attrs","iframeType"]),te("div",J6,[te("span",null,De(h.name),1),te("div",X6,[te("div",null,[Tt(De(A(t)("comp.compLocation"))+": ",1),ee(A(Ti),{href:"javascript:void(0)",type:"primary",underline:"always",title:h.fullPath,onClick:m=>u(h._id)},{default:pe(()=>[Tt(De(f(h._id)||h.fullPath),1)]),_:2},1032,["title","onClick"])]),ee(A(Gr),{compId:h._id,isLocal:!0,isDev:c.value},null,8,["compId","isDev"])])])])]),_:1},8,["list"]))}}),Z6={class:"size-full flex flex-col"},ek={class:"p-1"},tk={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},nk={class:"flex gap-5"},rk={class:"flex-1 flex justify-end items-start gap-2"},ok=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",Z6,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",ek,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",tk,[te("div",nk,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"]),ee(A(Br),{icon:"material-symbols:star-outline-rounded",value:Math.max(a?.collectCount??0,0)},null,8,["value"])]),te("div",rk,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(Pf),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(y_),{compId:a._id,isDev:o.value},null,8,["compId","isDev"])])])])])]),_:1},8,["list"]))}}),sk={class:"size-full flex flex-col"},ik={class:"p-1"},ak={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},lk={class:"flex gap-5"},ck={class:"flex-1 flex justify-end items-start gap-2"},uk=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",sk,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",ik,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",ak,[te("div",lk,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"]),ee(A(Br),{icon:"material-symbols:star-outline-rounded",value:Math.max(a?.collectCount??0,0)},null,8,["value"])]),te("div",ck,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(b_),{compId:a._id,isCollect:a?.isCollect,isDev:o.value},null,8,["compId","isCollect","isDev"])])])])])]),_:1},8,["list"]))}}),fk={class:"size-full flex flex-col"},dk={class:"p-1"},pk={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},hk={class:"flex-1 flex justify-end items-start gap-2"},mk=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",fk,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",dk,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",pk,[te("div",hk,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"])])])])])]),_:1},8,["list"]))}}),gk={class:"size-full flex flex-col"},vk={class:"p-1"},_k={class:"mt-auto overflow-hidden w-full flex items-center justify-end"},xk=ue({__name:"index",setup(e){const{t}=tr(),{listInitData:n,depsSetting:r,keyword:o}=wr(),{messageListener:s,sendMessageToTop:i}=un(),a=cn(!1),{params:{instanceUid:l}}=kt(),{addListener:c}=s();let u=null;const f=p=>t(p?"team.added":"team.addComp"),d=(p,h)=>{u=h,u.start(),i(Ie.ACTION_ADD_COMP_START_LOADING,p._id,a,l)};return c(Ie.ACTION_ADD_COMP_FINISH_LOADING,()=>{u?.end()}),(p,h)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:m})=>[te("div",gk,[ee(Ar,{attrs:m},null,8,["attrs"]),te("div",vk,[ee(zr,{attrs:m,depsSetting:A(r),keyword:A(o)},null,8,["attrs","depsSetting","keyword"]),te("div",_k,[ee(A(n8),null,{default:pe(({instance:v,loading:g})=>[ee(A(eF),{type:"primary",loading:g,disabled:m.isAdd,onClick:_=>d(m,v)},{default:pe(()=>[te("span",null,De(f(m?.isAdd??!1)),1)]),_:2},1032,["loading","disabled","onClick"])]),_:2},1024)])])])]),_:1},8,["list"]))}}),bk={class:"size-full flex flex-col"},yk={class:"p-1"},Ek={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},Ck={class:"flex gap-5"},Sk={class:"flex-1 flex justify-end items-start gap-2"},wk=ue({__name:"index",setup(e){const{params:{userId:t}}=kt(),{listInitData:n,depsSetting:r,keyword:o}=wr(),s=L(()=>!1);function i(a){if(!t)return!1;const l=a?.canUpdateUsers?.includes(t),c=a?.authorId?._id===t;return l||c}return(a,l)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:c})=>[te("div",bk,[ee(Ar,{attrs:c},null,8,["attrs"]),te("div",yk,[ee(zr,{attrs:c,depsSetting:A(r),keyword:A(o)},null,8,["attrs","depsSetting","keyword"]),te("div",Ek,[te("div",Ck,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(c?.totalDownloadCount??0,0)},null,8,["value"])]),te("div",Sk,[ee(A(us),{compId:c._id,version:c.version,isDev:s.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:c._id,isDev:s.value},null,8,["compId","isDev"]),i(c)?(U(),he(A(Pf),{key:0,compId:c._id,isDev:s.value},null,8,["compId","isDev"])):Ae("",!0)])])])])]),_:1},8,["list"]))}}),Ak={class:"size-full flex flex-col"},Tk={class:"p-1"},Ok={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},Nk={class:"flex gap-[5px] h-[32px] items-center"},Fk={class:"flex-1 flex justify-end items-start gap-2"},Mk=ue({__name:"index",setup(e){const{t}=tr(),{listInitData:n,depsSetting:r,keyword:o}=wr(),s=cn(!1),{messageListener:i,sendMessageToTop:a}=un(),{params:{instanceUid:l}}=kt(),{addListener:c}=i(),u=Z({}),f=Z([]),d=Z({}),p=g=>!!u.value[g],h=g=>d.value[g]??"";function m(g){const _=tw(u.value);delete _[g],a(Ie.SELECTED_ROWS_TO_LEAF_NODE_MAP_SET,_,s,l)}function v(g,_){let y=[...f.value];g?y.push(_):y=y.filter(x=>x!==_),a(Ie.SELECTED_ROWS_SET,y,s,l)}return c(Ie.COMP_GROUP_PATH_SET,g=>{d.value=g}),c(Ie.SELECTED_ROWS_TO_LEAF_NODE_MAP_SET,g=>{u.value=g}),c(Ie.SELECTED_ROWS_SET,g=>{f.value=g}),a(Ie.SELECTED_ROWS_TO_LEAF_NODE_MAP_GET,"",s,l),a(Ie.SELECTED_ROWS_GET,"",s,l),_e(()=>u.value,g=>{const _=Object.keys(g);_.length>0&&a(Ie.COMP_GROUP_PATH_GET,_,s,l)}),(g,_)=>(U(),he(Sr,{list:A(n)},{body:pe(({item:y})=>[te("div",Ak,[ee(Ar,{attrs:y},null,8,["attrs"]),te("div",Tk,[ee(zr,{attrs:y,depsSetting:A(r),keyword:A(o)},null,8,["attrs","depsSetting","keyword"]),te("div",Ok,[te("div",Nk,[p(y._id)?(U(),he(A(Us),{key:0,type:"info",closable:"","disable-transitions":!0,round:"",onClose:x=>m(y._id)},{default:pe(()=>[Tt(De(h(y._id)),1)]),_:2},1032,["onClose"])):(U(),he(A(JF),{key:1,label:A(t)("common.pleaseSelect"),"model-value":f.value.includes(y._id),onChange:x=>v(x,y._id)},null,8,["label","model-value","onChange"]))]),te("div",Fk,[ee(A(Gr),{compId:y._id},null,8,["compId"])])])])])]),_:1},8,["list"]))}}),Lk={class:"size-full flex flex-col"},Ik={class:"p-1"},Pk={class:"mt-auto overflow-hidden w-full flex items-center justify-between"},Dk={class:"flex gap-5"},kk={class:"flex-1 flex justify-end items-start gap-2"},Rk=ue({__name:"index",setup(e){const{listInitData:t,depsSetting:n,keyword:r}=wr(),o=L(()=>!1);return(s,i)=>(U(),he(Sr,{list:A(t)},{body:pe(({item:a})=>[te("div",Lk,[ee(Ar,{attrs:a},null,8,["attrs"]),te("div",Ik,[ee(zr,{attrs:a,depsSetting:A(n),keyword:A(r)},null,8,["attrs","depsSetting","keyword"]),te("div",Pk,[te("div",Dk,[ee(A(Br),{icon:"material-symbols:download-2",value:Math.max(a?.totalDownloadCount??0,0)},null,8,["value"])]),te("div",kk,[ee(A(us),{compId:a._id,version:a.version,isDev:o.value},null,8,["compId","version","isDev"]),ee(A(Gr),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(Pf),{compId:a._id,isDev:o.value},null,8,["compId","isDev"]),ee(A(y_),{compId:a._id,isDev:o.value},null,8,["compId","isDev"])])])])])]),_:1},8,["list"]))}}),$k={collect:Y6,local:Q6,mine:ok,share:uk,similar:mk,teamAdd:xk,teamAll:wk,teamGroup:Mk,teamMine:Rk};function Bk(){const e=[],t=at.IFRAME_ROUTES.CONTAINER;for(const n in t){const o=t[n],s=$k[o];if(!s)throw new Error(`未找到路由组件 ${o}`);e.push({path:`/${o}`,name:o,component:s})}return e}const Vk=YI({history:AI(`/${at.WEBSITE_PATH_CONTAINER}/`),routes:Bk()});function Hk(e){e.use(Vk)}const Uk={keyword:"关键词",confirm:"确定",cancel:"取消",close:"关闭",save:"保存",submit:"提交",delete:"删除",edit:"编辑",add:"添加",update:"更新",upload:"上传",download:"下载",refresh:"刷新",loading:"加载中",success:"成功",error:"错误",warning:"警告",info:"提示",copy:"复制",copied:"已复制",copySuccess:"复制成功",copyFailed:"复制失败",open:"打开",search:"搜索",reset:"重置",clear:"清空",back:"返回",next:"下一步",prev:"上一步",finish:"完成",operation:"操作",status:"状态",yes:"是",no:"否",name:"名称",description:"描述",version:"版本",time:"时间",date:"日期",author:"作者",type:"类型",category:"分类",tag:"标签",content:"内容",setting:"设置",cache:"缓存",cacheSize:"已使用",clearCache:"清空缓存",clearCacheConfirm:"将清空浏览器单文件编译结果以及模块预编译文件,确认清空缓存吗?",cacheCleared:"缓存已清空",newPage:"新页面打开",terminal:"终端",preview:"预览",doc:"文档",readme:"README.md",upgradeRecord:"更新记录",openInNewPage:"新页面打开",depInstall:"依赖安装",fullscreen:"全屏",exitFullscreen:"退出全屏",maximizeRestore:"最大化/还原",siteSlogan:"原子化组件社区,让组件流通更简单。",siteSubtitle:"Vue 组件共享平台",docsTutorial:"文档教程",empty:"暂无数据",noReadme:"组件没有配置README.md文件",dragSort:"拖拽排序",filter:"筛选",apply:"应用",person:"人",unit:"个",pleaseSelect:"请选择",pleaseInput:"请输入",me:"我",generate:"生成",regenerate:"重新生成",generateSuccess:"生成成功",moreOperations:"更多操作",more:"更多",maxTagCount:"最大标签数量"},jk={keywordPlaceholder:"请输入组件名称/描述",title:"组件",name:"组件名称",fieldId:"组件ID",fieldName:"组件名称",fieldVersion:"版本号",desc:"组件描述",remarksDesc:"备注说明",remarksDescRequired:"请输入备注说明",pleaseInputCompName:"请输入组件名称",pleaseInputRemarks:"请输入备注,有助于组件市场检索",compNameRequired:"组件名称不能为空",compNameNamingRule:"组件名只能是「大驼峰(PascalCase)」或「短横线(kebab-case)」命名法",lengthBetween:"长度在 {min} 到 {max} 个字符",version:"组件版本",detail:"组件详情",preview:"组件预览",previewConfig:"预览配置",previewList:"预览列表",uploadPreview:"组件上传预览",updatePreview:"组件更新预览",download:"下载组件",update:"更新组件",upload:"上传组件",submit:"提交组件",edit:"编辑组件",add:"添加组件",delete:"删除组件",local:"本地组件",remote:"远程组件",online:"在线组件",similar:"相似组件",similarTeam:"团队内相似组件",dir:"组件目录",file:"组件文件",entry:"入口文件",previewEntry:"预览入口地址",previewEntryFull:"预览入口地址(全屏窗口)",addPreviewEntry:"添加预览入口",maxPreviewEntry:"最多添加{n}个预览入口",pleaseAddPreviewEntry:"请添加预览入口",miniPreviewFile:"小窗预览文件",fullPreviewFile:"全屏预览文件",pleaseSelectPreviewFile:"请选择预览文件",remarkDesc:"备注说明",dep:"组件依赖",localDep:"组件依赖(本地)",onlineDep:"组件依赖(线上)",finalDep:"最终依赖",localVersion:"本地:",onlineVersion:"线上:",onlineDepEmpty:"线上依赖暂无数据!",versionConsistent:"版本一致",versionChange:"版本变化,请手动选择最终版本",versionChangeConfirmed:"已确认",newDep:"新增依赖",miniPanel:"小窗面板",fullPanel:"全屏面板",reload:"重新加载",uploadProtocol:"组件发布协议",bgPanel:"背景板",compLocation:"组件位置",pleaseSelectFolderFirst:"请先选择文件夹",compAlreadyUploaded:"组件已经上传,更新操作请前往我的组件或团队组件",affirmDep:"组件依赖(确认的版本)",checkConfig:"配置检查",checkError:"报错信息",extraInfo:"附加信息",baseInfo:"基础信息",upgradeLog:"更新说明",pleaseInputUpgradeLog:"请填写更新说明",config:"组件配置",configStatus:"组件配置检查状态",configError:"配置异常",configCheckError:"配置检查报错",needUpgrade:"需要升级",fileChanged:"组件文件有变化",versionChanged:"版本号变化",fileNoChange:"文件没有变化",markdownValid:"Markdown预览校验通过",noMarkdown:"没有md文件",hash:"文件哈希",localHash:"本地组件文件hash",remoteHash:"线上组件文件hash",remoteVersion:"线上组件版本号",remoteVersionPrefix:"线上:",localVersionPrefix:"本地:",versionCompare:"版本号比较结果",carouselIndex:"组件预览走马灯index",bgColor:"组件背景颜色",dialogType:"组件弹窗类型",repeat:"组件重复检查",existLocal:"组件在本地存在",scopeId:"作用域id",tempDir:"组件临时目录",submitLimit:"组件提交限制",maxSize:"总大小限制",maxCount:"文件数量限制",matchType:"匹配类型",updateType:"更新类型",updateOnline:"在线更新",updateOffline:"离线更新",compOfflineUpdate:"组件离线更新",compOnlineUpdate:"组件在线更新",folder:"文件夹",compNotInLocal:"组件不在本地,继续更新只能更新组件描述,预览配置等基础信息,是否继续?",selectUpdateFolder:"请选择要更新的文件夹",openInVscode:"在 VS Code 中打开",openingInEditor:"在编辑器中打开...",updateSuccess:"更新成功",downloadVersionConfirm:"当前选择的版本为:{version},确认下载吗?",downloading:"组件下载中...",downloadPathConfirm:"是否下载组件到【{path}】路径下",downloadCoverConfirm:"组件【{name}】已经下载或者有同名组件,是否覆盖?",uncollectConfirm:"是否取消收藏组件【{name}】,取消收藏后组件将不再显示在收藏列表中,是否继续?",deleteConfirm:"是否删除组件【{name}】,删除组件后会释放占用的组件名称,是否继续?",collect:"收藏",uncollect:"取消收藏",collected:"已收藏",uncollected:"未收藏",entryFile:"入口文件",configFile:"配置文件",fileChangedNeedVersion:"文件内容改变,请增加版本号",viewFileChanges:"查看文件变化",versionChangedButFileSame:"版本号改变,但文件内容未改变,请还原版本号",errorMsg:"错误信息",versionCannotBeLessThanLatest:"版本号不能小于最新版本{version}",uploadAnyway:"仍然上传",compileError:"组件编译失败",formatCode:"格式化代码:",formatCodeTooltip:"仅格式化对比时的文件,不会格式化原始文件",noChanges:"暂无变更",diff:{changed:"M 改变",unchanged:"U 未改变",added:"A 新增",deleted:"D 删除"}},Wk={title:"团队",name:"团队名称",code:"团队码",desc:"团队描述",create:"创建团队",join:"加入团队",exit:"退出团队",exitConfirm:"退出确认",manage:"团队管理",setting:"团队设置",member:"团队成员",memberCount:"成员数",maxMember:"最大成员数",compCount:"组件数量",maxCompCount:"最大组件数量",creator:"创建者",downloadCount:"下载量",collectCount:"收藏量",createTime:"创建时间",myTeam:"我的团队",joinedTeam:"已加入团队",space:"团队空间",noJoined:"暂无加入的团队",noCreated:"暂无创建的团队",createCountLimit:"最大允许创建的团队数量",joinCountLimit:"允许最多加入的团队数量",compList:"团队组件列表",myCompList:"我的组件",compGroup:"团队组件分组",compGroupList:"团队组件分组列表",addMyComp:"团队添加我的组件",compUpdate:"团队我的组件更新",addFromMine:"去我的组件添加",applyList:"申请列表",nickname:"团队昵称",noTeamInfo:"暂无团队信息",compLib:"组件库",groupConfig:"分组配置",compManage:"组件管理",unsavedDataLeave:"分组配置数据未保存,确定要离开吗?",leave:"离开",disbandTeam:"解散团队",applyAudit:"申请审核",teamName:"团队名称",fillTeamCode:"填写团队码",pleaseInputTeamCode:"请输入团队码",teamIdNotExist:"团队ID不存在",joinSuccess:"加入团队成功",applyJoinTeam:"申请加入团队",showRepeatComp:"展示重复组件",allowAuthorDelete:"作者删除组件权限",teamIntro:"团队介绍",fillTeamName:"填写团队名称",pleaseInputTeamName:"请输入团队名称",pleaseInputTeamDesc:"请输入团队介绍",createSuccess:"创建团队成功",charLength:"长度在 {min} 到 {max} 个字符",disbandConfirm:"确定解散团队吗,解散后所有成员和组件将被移除,并且无法恢复?",deleteConfirm:"删除确认",inputAuthCode:"请输入验证码",disbandSuccess:"解散团队成功",reject:"拒绝",agree:"同意",approved:"已同意",rejected:"已拒绝",kickOut:"踢出",teamUserNickname:"团队内昵称",pleaseInputTeamNickname:"请输入你在团队的昵称",normalUser:"普通用户",kickOutConfirm:"确定踢出用户【{name}】吗?",kickOutSuccess:"踢出成功",selectCanUpdateUser:"选择可更新用户",authorAutoAuth:"作者自带授权",updateAuth:"更新授权",updateTime:"更新时间",expandAll:"展开全部",createGroup:"创建分组",unsaved:"未保存",pleaseInputGroupName:"请输入分组名称",addComp:"添加组件",added:"已添加",notAdded:"未添加",defaultGroup:"默认分组",deleteGroupConfirm:"确认删除该分组吗?删除后该分组下的所有组件将被移除分组",addSuccess:"添加成功",isGrouped:"是否分组",grouped:"已分组",ungrouped:"未分组",group:"分组",prevVersion:"升级前版本",newVersion:"升级后版本",upgradeDesc:"升级描述",similarCompInTeam:"团队内相似组件",similarComp:"相似组件",deleteCompConfirm:"是否删除团队组件【{name}】,删除组件后团队成员将无法使用该组件,是否继续?",descTitle:"为业务团队打造专属组件空间",descItem1:"创建私密团队,组件仅对成员可见,保护核心资产",descItem2:"每个账号最多可创建 {count} 个团队",descItem3:"每个账号最多可加入 {count} 个团队",descItem4:"基础版团队支持最多 {count} 名成员",descItem5:"基础版团队可管理最多 {count} 个组件",descItem6:"支持创建分组菜单,灵活组织团队组件"},Gk={title:"用户",username:"用户名",account:"账号",password:"密码",newPassword:"新密码",confirmPassword:"确认密码",confirmNewPassword:"确认新密码",pleaseInputNewPassword:"请输入新密码",pleaseConfirmNewPassword:"请确认新密码",passwordModified:"密码修改成功",email:"邮箱",oldEmail:"旧邮箱",newEmail:"新邮箱",phone:"手机号",avatar:"头像",nickname:"昵称",login:"登录",logout:"退出登录",register:"注册",forgotPassword:"忘记密码",resetPassword:"重置密码",changePassword:"修改密码",changeNickname:"修改昵称",pleaseInputNickname:"请输入昵称",changeAvatar:"修改头像",avatarModified:"头像修改成功",changeEmail:"修改邮箱",basicInfo:"基本信息",securitySettings:"安全设置",loginPassword:"登录密码",passwordTip:"建议定期更换密码,确保账号安全",setPassword:"设置密码",emailLogin:"邮箱登录",emailLoginTip:"允许使用邮箱作为登录账号",pleaseSetPasswordFirst:"请先设置登录密码",emailLoginEnabled:"邮箱登录已开启",emailLoginDisabled:"邮箱登录已关闭",registerTime:"注册时间",notBound:"未绑定",change:"更换",bind:"绑定",authCode:"验证码",oldAuthCode:"旧验证码",newAuthCode:"新验证码",sendAuthCode:"发送验证码",resendAuthCode:"重新发送",getAuthCode:"获取验证码",pleaseInputAuthCode:"请输入验证码",pleaseInputNewAuthCode:"请输入新验证码",resendAfterSeconds:"{n}秒后重新获取",accountLogin:"账号登录",pleaseInputAccount:"请输入账号",pleaseInputUsername:"请输入用户名",pleaseInputPassword:"请输入密码",pleaseInputEmail:"请输入邮箱",pleaseInputOldEmail:"请输入旧邮箱",pleaseInputNewEmail:"请输入新邮箱",pleaseInputCorrectEmail:"请输入正确的邮箱",emailModified:"邮箱修改成功",newAuthCodeSent:"新验证码已发送",authCodeSent:"验证码已发送",guestLogin:"游客访问",loginSuccess:"登录成功",userInfo:"用户信息",personalCenter:"个人中心",myComp:"我的组件",guest:"游客",notLoggedIn:"未登录",goLogin:"去登录"},zk={title:"文件",name:"文件名",path:"文件路径",size:"文件大小",type:"文件类型",dir:"文件夹",selectDir:"选择文件夹",upload:"文件上传",download:"文件下载",select:"选择",multiSelect:"不支持多选",onlyDir:"只能选择文件夹",rootDir:"根目录",projectPath:"项目路径",currentDir:"当前目录",parentDir:"上级目录",refreshDir:"刷新文件夹列表"},Kk={success:{download:"下载成功",update:"更新成功",delete:"删除成功",collect:"收藏成功",uncollect:"取消收藏成功",save:"保存成功",submit:"提交成功",upload:"上传成功",copy:"复制成功",operation:"操作成功",sendAuthCode:"验证码已发送",exitTeam:"退出成功"},error:{download:"下载失败",update:"更新失败",delete:"删除失败",collect:"收藏失败",uncollect:"取消收藏失败",save:"保存失败",submit:"提交失败",upload:"上传失败",copy:"复制失败",operation:"操作失败",load:"加载失败",network:"网络错误",timeout:"请求超时",unknown:"未知错误",pleaseFixCompileError:"请先处理编译错误",loginExpired:"登录已过期,请重新登录",refreshFailed:"刷新失败",requestFailed:"请求失败,请联系管理员",storageNotSupported:"浏览器不支持 storage.estimate API"},noUpdatePermission:"当前组件您没有更新权限,请联系管理员获取权限",confirm:{delete:"确定删除吗?",submit:"确定提交吗?",update:"确定更新吗?",exit:"确定退出吗?",cancel:"确定取消吗?"},loginRequired:"请先登录",fileExceed:"最多只能选择 {limit} 个文件,本次已选择 {selected} 个,共将上传 {total} 个文件",validate:{required:"必填项",format:"格式不正确",min:"不能小于最小值",max:"不能超过最大值",length:"长度不正确",email:"邮箱格式不正确",phone:"手机号格式不正确",imageFormat:"上传文件只能是图片格式",pleaseSelectFile:"请先选择文件",fileMaxSize:"上传文件大小不能超过 {size}MB!"}},Yk={404:"页面不存在",share:"组件市场",collect:"收藏组件",collectSimple:"收藏",mine:"我的组件",mineSimple:"我的",local:"本地组件",localSimple:"本地",team:"团队",upload:"上传组件",uploadSimple:"上传",uploadTeam:"上传团队组件",setting:"设置",userInfo:"用户信息",upgrade:"更新",terminal:"终端",preview:"组件预览",previewLocal:"本地组件预览",previewTeam:"团队组件预览",previewBlank:"预览",similarPreview:"相似组件预览",login:"登录",mdPreview:"文档预览",unknownTag:"未知标签"},qk={parse:"解析 Markdown",loading:"加载 Markdown",error:"加载失败",toc:"目录",anchor:"锚点"},Jk={title:"终端",open:"打开终端",close:"关闭终端",execute:"执行命令",shutdown:"关闭进程",timeout:"超时时间",disconnected:"终端已断开连接"},Xk={title:"依赖",name:"依赖名称",version:"依赖版本",install:"安装依赖",installing:"安装中",installed:"已安装",prebuild:"预构建",prebuildSize:"预构建大小",clearPrebuild:"清空预构建",batchSetting:"批量设置",dependencies:"dependencies",devDependencies:"devDependencies",match:{onlyInstall:"仅安装",majorVersion:"主版本",minorVersion:"主次版本",exactVersion:"完全一致"}},Qk={title:"设置",previewRule:"预览规则",other:"其他设置",theme:"主题",language:"语言",darkMode:"暗黑模式",lightMode:"明亮模式"},Zk={title:"版本更新",current:"当前版本",latest:"最新版本",check:"检查更新",upgrading:"更新中",upgraded:"已更新",publish:"发布更新",record:"更新记录",log:"更新日志",hasUpdate:"有更新",betaVersion:"内测版",noUpdate:"暂无更新",updateMethod:"更新方式",openTerminalAndRun:"打开终端,执行以下命令:",cannotIgnoreUpdate:"不可忽略此次更新"},eR={systemRecommended:"系统推荐",all:"全部",latest:"最新",hottest:"最热"},tR={submit:"提交"},nR={empty:"不能为空",notString:"必须是字符串类型,当前类型为: {type}",contentEmpty:"内容不能为空",startsWithNumber:'内容不能以数字开头,当前以 "{char}" 开头',invalidCharBacktick:"内容包含反引号(Markdown 语法标记),特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharNewline:"内容包含换行符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharCarriageReturn:"内容包含回车符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharTab:"内容包含制表符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharFormFeed:"内容包含换页符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharVerticalTab:"内容包含垂直制表符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharHash:"内容包含 # 字符,特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格",invalidCharHtmlSpecial:'内容包含 HTML 特殊字符 "{char}",特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格',invalidCharUnknown:'内容包含非法字符 "{char}"(Unicode: U+{code}),特殊字符只允许连字符(-)、下划线(_)、中文括号()、空格'},rR={common:Uk,comp:jk,team:Wk,user:Gk,file:zk,message:Kk,route:Yk,markdown:qk,terminal:Jk,deps:Xk,setting:Qk,upgrade:Zk,tag:eR,formCreate:tR,validateHash:nR},oR={keyword:"Keyword",confirm:"Confirm",cancel:"Cancel",close:"Close",save:"Save",submit:"Submit",delete:"Delete",edit:"Edit",add:"Add",update:"Update",upload:"Upload",download:"Download",refresh:"Refresh",loading:"Loading",success:"Success",error:"Error",warning:"Warning",info:"Info",copy:"Copy",copied:"Copied",copySuccess:"Copy successful",copyFailed:"Copy failed",open:"Open",search:"Search",reset:"Reset",clear:"Clear",back:"Back",next:"Next",prev:"Previous",finish:"Finish",operation:"Operation",status:"Status",yes:"Yes",no:"No",name:"Name",description:"Description",version:"Version",time:"Time",date:"Date",author:"Author",type:"Type",category:"Category",tag:"Tag",content:"Content",setting:"Setting",cache:"Cache",cacheSize:"Used",clearCache:"Clear Cache",clearCacheConfirm:"This will clear browser single-file compilation results and module pre-compilation files. Confirm to clear cache?",cacheCleared:"Cache cleared",newPage:"Open in new page",terminal:"Terminal",preview:"Preview",doc:"Documentation",readme:"README.md",upgradeRecord:"Update Record",openInNewPage:"Open in new page",depInstall:"Dependency Installation",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",maximizeRestore:"Maximize/Restore",siteSlogan:"Atomic Component Community, Making Component Sharing Easier.",siteSubtitle:"Vue Component Sharing Platform",docsTutorial:"Documentation",empty:"No data",noReadme:"Component has no README.md file configured",dragSort:"Drag to sort",filter:"Filter",apply:"Apply",person:"people",unit:"items",pleaseSelect:"Please select",pleaseInput:"Please input",me:"Me",generate:"Generate",regenerate:"Regenerate",generateSuccess:"Generated successfully",moreOperations:"More Operations",more:"More",maxTagCount:"Max Tag Count"},sR={keywordPlaceholder:"Please input component name or description",title:"Component",name:"Component Name",fieldId:"Component ID",fieldName:"Component Name",fieldVersion:"Version",desc:"Component Description",remarksDesc:"Remarks",remarksDescRequired:"Please enter remarks",pleaseInputCompName:"Please enter component name",pleaseInputRemarks:"Please enter remarks to help with component market search",compNameRequired:"Component name is required",compNameNamingRule:"Component name must be in PascalCase or kebab-case",lengthBetween:"Length must be between {min} and {max} characters",version:"Component Version",detail:"Component Detail",preview:"Component Preview",previewConfig:"Preview Config",previewList:"Preview List",uploadPreview:"Component Upload Preview",updatePreview:"Component Update Preview",download:"Download Component",update:"Update Component",upload:"Upload Component",submit:"Submit Component",edit:"Edit Component",add:"Add Component",delete:"Delete Component",local:"Local Component",remote:"Remote Component",online:"Online Component",similar:"Similar Components",similarTeam:"Similar Components in Team",dir:"Component Directory",file:"Component File",entry:"Entry File",previewEntry:"Preview Entry Address",previewEntryFull:"Preview Entry Address (Fullscreen)",addPreviewEntry:"Add Preview Entry",maxPreviewEntry:"Maximum {n} preview entries allowed",pleaseAddPreviewEntry:"Please add a preview entry",miniPreviewFile:"Mini Preview File",fullPreviewFile:"Full Preview File",pleaseSelectPreviewFile:"Please select preview file",remarkDesc:"Remarks",dep:"Component Dependencies",localDep:"Component Dependencies (Local)",onlineDep:"Component Dependencies (Online)",finalDep:"Final Dependencies",localVersion:"Local: ",onlineVersion:"Online: ",onlineDepEmpty:"No online dependency data!",versionConsistent:"Version Consistent",versionChange:"Version changed, please select final version",versionChangeConfirmed:"Confirmed",newDep:"New Dependency",miniPanel:"Mini Panel",fullPanel:"Full Panel",reload:"Reload",uploadProtocol:"Upload Protocol",bgPanel:"Background",compLocation:"Component Location",pleaseSelectFolderFirst:"Please select a folder first",compAlreadyUploaded:"Component already uploaded, please go to My Components or Team Components to update",affirmDep:"Component Dependencies (Confirmed Version)",checkConfig:"Config Check",checkError:"Error Info",extraInfo:"Extra Info",baseInfo:"Basic Info",upgradeLog:"Upgrade Log",pleaseInputUpgradeLog:"Please enter upgrade description",config:"Component Config",configStatus:"Component Config Check Status",configError:"Config Error",configCheckError:"Config Check Error",needUpgrade:"Needs Upgrade",fileChanged:"Component files changed",versionChanged:"Version changed",fileNoChange:"Files unchanged",markdownValid:"Markdown preview validation passed",noMarkdown:"No markdown file",hash:"File Hash",localHash:"Local Component File Hash",remoteHash:"Remote Component File Hash",remoteVersion:"Remote Component Version",remoteVersionPrefix:"Online: ",localVersionPrefix:"Local: ",versionCompare:"Version Comparison Result",carouselIndex:"Component Preview Carousel Index",bgColor:"Component Background Color",dialogType:"Component Dialog Type",repeat:"Component Repeat Check",existLocal:"Component exists locally",scopeId:"Scope ID",tempDir:"Component Temp Directory",submitLimit:"Component Submit Limit",maxSize:"Total Size Limit",maxCount:"File Count Limit",matchType:"Match Type",updateType:"Update Type",updateOnline:"Online Update",updateOffline:"Offline Update",compOfflineUpdate:"Component Offline Update",compOnlineUpdate:"Component Online Update",folder:"Folder",compNotInLocal:"Component is not local. Continuing will only update basic information like description and preview config. Continue?",selectUpdateFolder:"Please select folder to update",openInVscode:"Open in VS Code",openingInEditor:"Opening in editor...",updateSuccess:"Update successful",downloadVersionConfirm:"The currently selected version is: {version}, confirm download?",downloading:"Downloading component...",downloadPathConfirm:"Download component to path [{path}]?",downloadCoverConfirm:"Component [{name}] already exists or has a duplicate name, overwrite?",uncollectConfirm:"Are you sure you want to uncollect component [{name}]? It will no longer appear in your collection list.",deleteConfirm:"Are you sure you want to delete component [{name}]? This will free up the component name and cannot be undone.",collect:"Collect",uncollect:"Uncollect",collected:"Collected",uncollected:"Not Collected",entryFile:"Entry File",configFile:"Config File",fileChangedNeedVersion:"File content changed, please increment version",viewFileChanges:"View File Changes",versionChangedButFileSame:"Version changed but file content unchanged, please revert version",errorMsg:"Error Message",versionCannotBeLessThanLatest:"Version cannot be less than latest version {version}",uploadAnyway:"Upload Anyway",compileError:"Component compilation failed",formatCode:"Format Code:",formatCodeTooltip:"Only formats files during comparison, original files remain unchanged",noChanges:"No changes",diff:{changed:"M Changed",unchanged:"U Unchanged",added:"A Added",deleted:"D Deleted"}},iR={title:"Team",name:"Team Name",code:"Team Code",desc:"Team Description",create:"Create Team",join:"Join Team",exit:"Exit Team",exitConfirm:"Exit Confirmation",manage:"Team Management",setting:"Team Settings",member:"Team Members",memberCount:"Member Count",maxMember:"Max Members",compCount:"Component Count",maxCompCount:"Max Components",creator:"Creator",downloadCount:"Downloads",collectCount:"Collections",createTime:"Create Time",myTeam:"My Teams",joinedTeam:"Joined Teams",space:"Team Space",noJoined:"No joined teams",noCreated:"No created teams",createCountLimit:"Max teams allowed to create",joinCountLimit:"Max teams allowed to join",compList:"Team Component List",myCompList:"My Component List",compGroup:"Team Component Group",compGroupList:"Team Component Group List",addMyComp:"Team Add My Component",compUpdate:"Team My Component Update",addFromMine:"Add from My Components",applyList:"Apply List",nickname:"Team Nickname",noTeamInfo:"No team information",compLib:"Component Library",groupConfig:"Group Config",compManage:"Component Management",unsavedDataLeave:"Group configuration data is not saved, are you sure you want to leave?",leave:"Leave",disbandTeam:"Disband Team",applyAudit:"Apply Audit",teamName:"Team Name",fillTeamCode:"Fill in Team Code",pleaseInputTeamCode:"Please enter team code",teamIdNotExist:"Team ID does not exist",joinSuccess:"Joined team successfully",applyJoinTeam:"Apply to Join Team",showRepeatComp:"Show Duplicate Components",allowAuthorDelete:"Allow Author Delete",teamIntro:"Team Introduction",fillTeamName:"Fill in Team Name",pleaseInputTeamName:"Please enter team name",pleaseInputTeamDesc:"Please enter team description",createSuccess:"Team created successfully",charLength:"Length must be between {min} and {max} characters",disbandConfirm:"Are you sure you want to disband the team? All members and components will be removed and cannot be recovered.",deleteConfirm:"Delete Confirmation",inputAuthCode:"Please enter verification code",disbandSuccess:"Team disbanded successfully",reject:"Reject",agree:"Agree",approved:"Approved",rejected:"Rejected",kickOut:"Kick Out",teamUserNickname:"Team Nickname",pleaseInputTeamNickname:"Please enter your team nickname",normalUser:"Normal User",kickOutConfirm:"Are you sure you want to kick out user [{name}]?",kickOutSuccess:"Kicked out successfully",selectCanUpdateUser:"Select users who can update",authorAutoAuth:"Author has default authorization",updateAuth:"Update Authorization",updateTime:"Update Time",expandAll:"Expand All",createGroup:"Create Group",unsaved:"Unsaved",pleaseInputGroupName:"Please enter group name",addComp:"Add Component",added:"Added",notAdded:"Not Added",defaultGroup:"Default Group",deleteGroupConfirm:"Are you sure you want to delete this group? All components in this group will be removed from the group.",addSuccess:"Added successfully",isGrouped:"Is Grouped",grouped:"Grouped",ungrouped:"Ungrouped",group:"Group",prevVersion:"Previous Version",newVersion:"New Version",upgradeDesc:"Upgrade Description",similarCompInTeam:"Similar Components in Team",similarComp:"Similar Components",deleteCompConfirm:"Are you sure you want to delete team component [{name}]? Team members will no longer be able to use this component.",descTitle:"Create an Exclusive Component Space for Your Team",descItem1:"Create a private team where components are only visible to members, protecting core assets",descItem2:"Each account can create up to {count} teams",descItem3:"Each account can join up to {count} teams",descItem4:"Basic team supports up to {count} members",descItem5:"Basic team can manage up to {count} components",descItem6:"Support creating group menus to organize team components flexibly"},aR={title:"User",username:"Username",account:"Account",password:"Password",newPassword:"New Password",confirmPassword:"Confirm Password",confirmNewPassword:"Confirm New Password",pleaseInputNewPassword:"Please enter new password",pleaseConfirmNewPassword:"Please confirm new password",passwordModified:"Password modified successfully",email:"Email",oldEmail:"Old Email",newEmail:"New Email",phone:"Phone",avatar:"Avatar",nickname:"Nickname",login:"Login",logout:"Logout",register:"Register",forgotPassword:"Forgot Password",resetPassword:"Reset Password",changePassword:"Change Password",changeNickname:"Change Nickname",pleaseInputNickname:"Please enter nickname",changeAvatar:"Change Avatar",avatarModified:"Avatar updated successfully",changeEmail:"Change Email",basicInfo:"Basic Information",securitySettings:"Security Settings",loginPassword:"Login Password",passwordTip:"Regularly change your password to ensure account security",setPassword:"Set Password",emailLogin:"Email Login",emailLoginTip:"Allow using email as login account",pleaseSetPasswordFirst:"Please set login password first",emailLoginEnabled:"Email login enabled",emailLoginDisabled:"Email login disabled",registerTime:"Registration Time",notBound:"Not Bound",change:"Change",bind:"Bind",authCode:"Verification Code",oldAuthCode:"Old Verification Code",newAuthCode:"New Verification Code",sendAuthCode:"Send Auth Code",resendAuthCode:"Resend",getAuthCode:"Get Code",pleaseInputAuthCode:"Please enter code",pleaseInputNewAuthCode:"Please enter new code",resendAfterSeconds:"Resend in {n}s",accountLogin:"Account Login",pleaseInputAccount:"Please enter account",pleaseInputUsername:"Please enter username",pleaseInputPassword:"Please enter password",pleaseInputEmail:"Please enter email",pleaseInputOldEmail:"Please enter old email",pleaseInputNewEmail:"Please enter new email",pleaseInputCorrectEmail:"Please enter correct email",emailModified:"Email modified successfully",newAuthCodeSent:"New verification code sent",authCodeSent:"Verification code sent",guestLogin:"Guest Access",loginSuccess:"Login successful",userInfo:"User Info",personalCenter:"Personal Center",myComp:"My Components",guest:"Guest",notLoggedIn:"Not logged in",goLogin:"Go to Login"},lR={title:"File",name:"Filename",path:"File Path",size:"File Size",type:"File Type",dir:"Directory",selectDir:"Select Directory",upload:"File Upload",download:"File Download",select:"Select",multiSelect:"Multiple selection not supported",onlyDir:"Only directories can be selected",rootDir:"Root Directory",projectPath:"Project Path",currentDir:"Current Directory",parentDir:"Parent Directory",refreshDir:"Refresh Directory List"},cR={success:{download:"Download successful",update:"Update successful",delete:"Delete successful",collect:"Collect successful",uncollect:"Uncollect successful",save:"Save successful",submit:"Submit successful",upload:"Upload successful",copy:"Copy successful",operation:"Operation successful",sendAuthCode:"Verification code sent",exitTeam:"Exit successful"},error:{download:"Download failed",update:"Update failed",delete:"Delete failed",collect:"Collect failed",uncollect:"Uncollect failed",save:"Save failed",submit:"Submit failed",upload:"Upload failed",copy:"Copy failed",operation:"Operation failed",load:"Load failed",network:"Network error",timeout:"Request timeout",unknown:"Unknown error",pleaseFixCompileError:"Please fix compilation errors first",loginExpired:"Login expired, please log in again",refreshFailed:"Refresh failed",requestFailed:"Request failed, please contact administrator",storageNotSupported:"Browser does not support storage.estimate API"},noUpdatePermission:"You do not have permission to update this component. Please contact the administrator for access.",confirm:{delete:"Are you sure to delete?",submit:"Are you sure to submit?",update:"Are you sure to update?",exit:"Are you sure to exit?",cancel:"Are you sure to cancel?"},loginRequired:"Please login first",fileExceed:"You can select at most {limit} files, {selected} selected this time, {total} total to be uploaded",validate:{required:"Required field",format:"Invalid format",min:"Cannot be less than minimum value",max:"Cannot exceed maximum value",length:"Invalid length",email:"Invalid email format",phone:"Invalid phone format",imageFormat:"Only image files are allowed",pleaseSelectFile:"Please select a file first",fileMaxSize:"File size cannot exceed {size}MB!"}},uR={404:"Page Not Found",share:"Component Market",collect:"Collected Components",collectSimple:"Collection",mine:"My Components",mineSimple:"Mine",local:"Local Components",localSimple:"Local",team:"Team",upload:"Upload Component",uploadSimple:"Upload",uploadTeam:"Upload Team Component",setting:"Settings",userInfo:"User Info",upgrade:"Upgrade",terminal:"Terminal",preview:"Component Preview",previewLocal:"Local Component Preview",previewTeam:"Team Component Preview",previewBlank:"Preview",similarPreview:"Similar Component Preview",login:"Login",mdPreview:"Document Preview",unknownTag:"Unknown Tag"},fR={parse:"Parse Markdown",loading:"Loading Markdown",error:"Load failed",toc:"Table of Contents",anchor:"Anchor"},dR={title:"Terminal",open:"Open Terminal",close:"Close Terminal",execute:"Execute Command",shutdown:"Shutdown Process",timeout:"Timeout",disconnected:"Terminal disconnected"},pR={title:"Dependencies",name:"Dependency Name",version:"Dependency Version",install:"Install Dependencies",installing:"Installing",installed:"Installed",prebuild:"Prebuild",prebuildSize:"Prebuild Size",clearPrebuild:"Clear Prebuild",batchSetting:"Batch Setting",dependencies:"dependencies",devDependencies:"devDependencies",match:{onlyInstall:"Install Only",majorVersion:"Major Version",minorVersion:"Major + Minor",exactVersion:"Exact Match"}},hR={title:"Settings",previewRule:"Preview Rule",other:"Other Settings",theme:"Theme",language:"Language",darkMode:"Dark Mode",lightMode:"Light Mode"},mR={title:"Version Update",current:"Current Version",latest:"Latest Version",check:"Check for Updates",upgrading:"Updating",upgraded:"Updated",publish:"Publish Update",record:"Update Record",log:"Changelog",hasUpdate:"Update Available",betaVersion:"Beta",noUpdate:"No updates available",updateMethod:"Update Method",openTerminalAndRun:"Open terminal and run:",cannotIgnoreUpdate:"This update cannot be ignored"},gR={systemRecommended:"System Recommended",all:"All",latest:"Latest",hottest:"Hottest"},vR={submit:"Submit"},_R={empty:"Cannot be empty",notString:"Must be a string type, current type: {type}",contentEmpty:"Content cannot be empty",startsWithNumber:'Content cannot start with a number, currently starts with "{char}"',invalidCharBacktick:"Content contains backtick (Markdown syntax marker), only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharNewline:"Content contains newline character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharCarriageReturn:"Content contains carriage return, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharTab:"Content contains tab character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharFormFeed:"Content contains form feed character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharVerticalTab:"Content contains vertical tab character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharHash:"Content contains # character, only hyphen(-), underscore(_), parentheses(), and spaces are allowed",invalidCharHtmlSpecial:'Content contains HTML special character "{char}", only hyphen(-), underscore(_), parentheses(), and spaces are allowed',invalidCharUnknown:'Content contains invalid character "{char}" (Unicode: U+{code}), only hyphen(-), underscore(_), parentheses(), and spaces are allowed'},xR={common:oR,comp:sR,team:iR,user:aR,file:lR,message:cR,route:uR,markdown:fR,terminal:dR,deps:pR,setting:hR,upgrade:mR,tag:gR,formCreate:vR,validateHash:_R},bR={zh:rR,en:xR},yR=localStorage.getItem(DM.LOCALE_KEY)||"zh",ER=O4({locale:yR,messages:bR,legacy:!1});function CR(e){e.use(ER)}function SR(e){e.directive("loading",hf)}function wR(e){Hk(e),SR(e),CR(e)}const E_=eg(U4);wR(E_);E_.mount("#app")});export default AR();
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="" name="container">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<link rel="icon" href="/container/favicon.ico">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="" name="container">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<link rel="icon" href="/container/favicon.ico">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
8
|
<style>
|
|
9
9
|
html.dark {
|
|
10
10
|
color-scheme: dark;
|
|
11
11
|
}
|
|
12
|
-
</style>
|
|
13
|
-
<script>
|
|
14
|
-
try {
|
|
15
|
-
const urlParams = new URLSearchParams(window.location.search)
|
|
16
|
-
const isDark = urlParams.get('isDark') === 'true'
|
|
17
|
-
if (isDark) {
|
|
18
|
-
document.documentElement.classList.add('dark')
|
|
19
|
-
}
|
|
20
|
-
} catch (error) {
|
|
21
|
-
console.error('解析window.name失败', error)
|
|
22
|
-
}
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<script src="/container/js/vue2-sfc-loader.js" async></script>
|
|
26
|
-
<script src="/container/js/vue3-sfc-loader.js" async></script>
|
|
27
|
-
|
|
28
|
-
<script type="module" crossorigin src="/container/assets/index-
|
|
29
|
-
<link rel="stylesheet" crossorigin href="/container/assets/index-
|
|
30
|
-
</head>
|
|
31
|
-
|
|
32
|
-
<body>
|
|
33
|
-
<div id="app"></div>
|
|
34
|
-
|
|
35
|
-
<!-- 勿要删除,全局配置替换字符串 -->
|
|
36
|
-
<!--GLOBAL_CONFIG-->
|
|
37
|
-
</body>
|
|
38
|
-
|
|
12
|
+
</style>
|
|
13
|
+
<script>
|
|
14
|
+
try {
|
|
15
|
+
const urlParams = new URLSearchParams(window.location.search)
|
|
16
|
+
const isDark = urlParams.get('isDark') === 'true'
|
|
17
|
+
if (isDark) {
|
|
18
|
+
document.documentElement.classList.add('dark')
|
|
19
|
+
}
|
|
20
|
+
} catch (error) {
|
|
21
|
+
console.error('解析window.name失败', error)
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<script src="/container/js/vue2-sfc-loader.js" async></script>
|
|
26
|
+
<script src="/container/js/vue3-sfc-loader.js" async></script>
|
|
27
|
+
|
|
28
|
+
<script type="module" crossorigin src="/container/assets/index-Cmi2NYAU.js"></script>
|
|
29
|
+
<link rel="stylesheet" crossorigin href="/container/assets/index-BE50zrUP.css">
|
|
30
|
+
</head>
|
|
31
|
+
|
|
32
|
+
<body>
|
|
33
|
+
<div id="app"></div>
|
|
34
|
+
|
|
35
|
+
<!-- 勿要删除,全局配置替换字符串 -->
|
|
36
|
+
<!--GLOBAL_CONFIG-->
|
|
37
|
+
</body>
|
|
38
|
+
|
|
39
39
|
</html>
|