ss-component-new 1.1.381 → 1.1.383
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/dist/{array-DA7a1zd0.cjs → array-Bf7asNP8.cjs} +1 -1
- package/dist/{array-DyGPp-dK.js → array-Wdj0MIIX.js} +2 -2
- package/dist/{cloneDeep-Drd7BC81.js → cloneDeep-5wimUhRj.js} +1 -1
- package/dist/{cloneDeep-DoMbCUmk.cjs → cloneDeep-CmZXpGNl.cjs} +1 -1
- package/dist/{index-BXdqQPiJ.js → index-AdPwewTm.js} +7 -7
- package/dist/{index-5fwiSStL.js → index-B0Cf01Xb.js} +7 -7
- package/dist/index-B343zpB9.cjs +1 -0
- package/dist/{index-DlyT4pwH.cjs → index-B7K8o691.cjs} +1 -1
- package/dist/{index-C41d5mEi.js → index-B7aTemCs.js} +9 -9
- package/dist/{index-BGRexsLO.js → index-B9ZHHhEc.js} +9 -9
- package/dist/{index-nJOVZ-d5.cjs → index-BAQj1yj-.cjs} +1 -1
- package/dist/{index-DtBrWR52.js → index-BEQLz5uJ.js} +4 -4
- package/dist/{index-DoODoXgF.cjs → index-BRv125my.cjs} +1 -1
- package/dist/{index-MpFzp8ni.cjs → index-BS8-IKut.cjs} +1 -1
- package/dist/{index-CIHzxyoh.js → index-BYFTXRlO.js} +3 -3
- package/dist/{index-s9e7UKYH.cjs → index-BdmC7Vhj.cjs} +1 -1
- package/dist/{index-XkoLK2n1.cjs → index-BfOhfder.cjs} +1 -1
- package/dist/{index-BQANBcIf.cjs → index-Bhi_RWMq.cjs} +1 -1
- package/dist/{index-B0YE7vI8.js → index-Bxkr1n25.js} +1 -1
- package/dist/{index-Dlq0Fmnc.js → index-By7DD7-d.js} +6 -6
- package/dist/{index-BxP2PdVy.js → index-BypUrsNx.js} +5 -5
- package/dist/{index-sZvY2QOO.cjs → index-C205l3wo.cjs} +1 -1
- package/dist/{index-Cwja4fA1.js → index-C83xo8PZ.js} +3 -3
- package/dist/{index-CTmpTOZ7.cjs → index-C8adk7wB.cjs} +1 -1
- package/dist/{index-BSWMrQSl.js → index-CANv_pXQ.js} +6 -6
- package/dist/{index-eZ5nBfAC.js → index-CG4swFDP.js} +1 -1
- package/dist/{index-Cu9W21CQ.js → index-CTtSjOU2.js} +3 -3
- package/dist/{index-CeL8Erwh.cjs → index-CUhfRaUd.cjs} +1 -1
- package/dist/{index-pLXjqFZ1.js → index-ClR6CDky.js} +5 -5
- package/dist/{index-BMrsxsc3.js → index-Cp7EL_zp.js} +1 -1
- package/dist/{index-yRujigkH.cjs → index-Cqs93uTy.cjs} +1 -1
- package/dist/{index-BNvb_jps.js → index-CsGcGYJx.js} +4 -4
- package/dist/{index-C-N_lE15.cjs → index-Cuh1_ci7.cjs} +1 -1
- package/dist/{index-BljqJHM3.js → index-CzAKRxzx.js} +6 -6
- package/dist/{index-dEQL9507.js → index-D2tNs4jF.js} +7 -7
- package/dist/{index-Do2cxZBH.js → index-D4W1BsHx.js} +4 -4
- package/dist/{index-_7ZBzffv.cjs → index-DA8ICHY5.cjs} +1 -1
- package/dist/{index-BjVoIRs6.js → index-DCeuXqFD.js} +6 -6
- package/dist/{index-CzyjgwIh.cjs → index-DDt1EgJC.cjs} +1 -1
- package/dist/{index-1WnQpJny.cjs → index-DGx7pjHt.cjs} +1 -1
- package/dist/{index-DF9OO9Uj.cjs → index-DLXw6woR.cjs} +1 -1
- package/dist/{index-D50jWSdx.js → index-DRiyGflM.js} +4 -4
- package/dist/{index-C8ngLRV7.js → index-DUoJt6IY.js} +6 -6
- package/dist/{index-BaEjhStM.cjs → index-DUpda0Kn.cjs} +1 -1
- package/dist/{index-Fyzco0Lu.cjs → index-Ddxsvs4r.cjs} +1 -1
- package/dist/{index-DgHw6cdB.cjs → index-Dr3DFMb8.cjs} +1 -1
- package/dist/{index-DkxdtGrQ.js → index-Dsx_Tm-R.js} +1 -1
- package/dist/{index-DXsynMMh.cjs → index-DtrQZQ-x.cjs} +1 -1
- package/dist/{index-BOaX82bq.cjs → index-DwpRi5yJ.cjs} +1 -1
- package/dist/{index-CnP63qc0.js → index-DxVVM1Tr.js} +3 -3
- package/dist/{index-DGA1s0EK.js → index-I5I2OFDt.js} +1317 -1161
- package/dist/{index-CwPupuCY.cjs → index-NIZL7INF.cjs} +1 -1
- package/dist/{index-DfKV12S5.cjs → index-RFrqkzud.cjs} +1 -1
- package/dist/{index-BHMa193T.js → index-T_bphxBQ.js} +8 -8
- package/dist/{index-BxxvtRXk.js → index-Xyruj1Yc.js} +1 -1
- package/dist/{index-KopgtUPL.cjs → index-_MNiBH4J.cjs} +1 -1
- package/dist/{index-DHm1aw8l.cjs → index-gWGfGGET.cjs} +1 -1
- package/dist/{index-BBtg5kUj.cjs → index-lVD_qlTh.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bl5GUf0c.cjs → index.vue_vue_type_script_setup_true_lang-BZNjbCUK.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BZAG1gCR.js → index.vue_vue_type_script_setup_true_lang-BtMWnVyg.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-3yHqg7QF.js → index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-C457BtNU.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-4FsKG2Ke.cjs → index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-DZhmedFV.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C-4tttlv.js → index.vue_vue_type_style_index_0_scoped_9d138dea_lang-DXztWRkV.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_9d138dea_lang-C1iXvSnE.cjs → index.vue_vue_type_style_index_0_scoped_9d138dea_lang-Dbz_EdQo.cjs} +1 -1
- package/dist/{login-Dauv_tAi.cjs → login-BU42wzWQ.cjs} +1 -1
- package/dist/{login-DkGNmFbe.js → login-Bm1VDeb8.js} +2 -2
- package/dist/{main-Cw5bMnbZ.cjs → main-BehX7FjH.cjs} +1 -1
- package/dist/{main-DFHhLjFH.js → main-CMXs2ZTk.js} +7 -7
- package/dist/{menu-Dsw4D0NG.js → menu-BEP1prun.js} +1 -1
- package/dist/{menu-DSQPF1PX.cjs → menu-CuRWpNwE.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index-ClkCRkEG.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Q=require("vue"),o=require("./cloneDeep-DoMbCUmk.cjs"),z=require("./index-CTmpTOZ7.cjs"),E=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],N=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],M=Q.ref(0),Pe=l=>{const[t,s]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),r=s.replace(/^['"]|['"]$/g,"");return{key:e,value:r}},w=l=>{try{return JSON.parse(l),!0}catch{return!1}},Be=l=>l.includes("$")&&l.trim().endsWith("(")?l+")":l,Ge=l=>{let t=l;const s=[];let e="";for(const r of t)r.includes("{")||e.includes("{")||r.includes("[")||e.includes("[")||r.includes("【")||e.includes("【")||r.includes("(")||e.includes("(")||r.includes("(")||e.includes("(")||r.includes("/*")||e.includes("/*")?(e+=r.trim(),o.cloneDeep(e).split("{").length-1===o.cloneDeep(e).split("}").length-1&&o.cloneDeep(e).split("【").length-1===o.cloneDeep(e).split("】").length-1&&o.cloneDeep(e).split("[").length-1===o.cloneDeep(e).split("]").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("/*").length-1===o.cloneDeep(e).split("*/").length-1&&(s.push(e),e="")):s.push(r.trim());return s==null?void 0:s.filter(r=>r.includes("{"))},We=l=>{var s;let t=[];return(s=Ge(l.slice(1,-1)))==null||s.forEach(e=>{var n,c,a,f;let r=((c=(n=e.slice(1,-1))==null?void 0:n.split(","))==null?void 0:c.length)??1;(f=(a=e.slice(1,-1))==null?void 0:a.split(","))==null||f.forEach(p=>{var A,h,j,b,$,i,y,m,g,T,F,I,P;let u=p==null?void 0:p.split(":"),d=u!=null&&u[0]?(u==null?void 0:u[1].split("$").length)-1===1?((A=u==null?void 0:u[0])==null?void 0:A.replace(/^"(.*)"$/,"$1"))+((h=u==null?void 0:u[1])==null?void 0:h.replace(/^"(.*)"$/,"$1")):Array.isArray((b=(j=u==null?void 0:u[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))&&((y=(i=($=u==null?void 0:u[1])==null?void 0:$.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:y.length)>1?((m=u==null?void 0:u[0])==null?void 0:m.replace(/^"(.*)"$/,"$1"))+((F=(T=(g=u==null?void 0:u[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:T.split("("))==null?void 0:F[0])+"()":(I=u==null?void 0:u[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",k=(u==null?void 0:u[1].split("$").length)-1===0?(P=u==null?void 0:u[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";M.value++,t.push({id:M.value,key:d,value:k,width:r,extraContent:u==null?void 0:u[1]})})}),t},De=l=>{var t,s;try{const e=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(o.cloneDeep(e).split("{").length-1>1){let r=o.cloneDeep(e).replace(/^\{(.*)\}$/,"[$1]");if(w(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),w(r)){const n=JSON.parse(r);let c=[];return n==null||n.forEach(a=>{var f;(f=Object.entries(o.cloneDeep(a)))==null||f.forEach(p=>{M.value++,c.push({id:M.value,key:(p==null?void 0:p[0])??"",value:(p==null?void 0:p[1])===""?"":p==null?void 0:p[1],width:Object.keys(o.cloneDeep(a)).length})})}),c}else return e.trim().startsWith("{{")?We(e.trim()):se(r)}else if(w(e)){const r=JSON.parse(e);return Object.entries(r).map(([n,c])=>(M.value++,{id:M.value,key:n,value:c===""?"":c,width:1}))}else return((t=se(e))==null?void 0:t.length)===0?e:(s=se(e))==null?void 0:s.map(r=>({label:r.label,method:Be(r.method)}))}catch(e){return console.error("转换失败:",e),[]}},se=l=>{l=l.trim().replace(/^\{|\}$/g,"").trim();const t=[];let s=0;for(;s<l.length;){const e=l.slice(s).match(/^\s*"([^"]+)"\s*:\s*/);if(!e)break;const r=e[1];s+=e[0].length;let n="",c=0,a=!1,f="";for(let p=s;p<l.length;p++){const u=l[p];if((u==='"'||u==="'")&&!a?(a=!0,f=u):u===f&&a&&(a=!1,f=""),!a&&((u==="{"||u==="("||u==="[")&&c++,(u==="}"||u===")"||u==="]")&&c--,u===","&&c===0||p===l.length-1)){n=l.slice(s,p+1).trim(),s=p+1;break}}t.push({label:r,method:n})}return t},Le=(l,t)=>{try{if(E!=null&&E.find(s=>(s==null?void 0:s.key)===t))return l.replace(/['"]/g,"").trim();if(o.cloneDeep(l).split("[").length-1>1){const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else{const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(w(s)){const e=JSON.parse(s);return Array.isArray(e)?e.map(r=>({label:r})):e}else return De(o.cloneDeep(l))}}catch(s){return console.error("解析失败:",s),l}},_e=l=>({[l==null?void 0:l.key]:Le(l==null?void 0:l.value,l==null?void 0:l.key)}),ze=l=>{try{if(o.cloneDeep(l).split("[").length-1>1){const t=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(s=>({label:s}))}catch(t){return console.error("解析失败:",t),l}},Ze=l=>{const t=l.match(/\(([^)]+)\)/);return t?t[1]:""},He=l=>{const t=l.match(/^([^(]+)\s*\(/);return t?t[1].trim():l},me=l=>l.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(t=>t.trim()).filter(t=>t).join("/"),qe=l=>{var c,a;let t=[],s=[];const e=(c=o.cloneDeep(l))==null?void 0:c.map(f=>f==null?void 0:f.key),r=[...new Set((a=o.cloneDeep(e))==null?void 0:a.map(f=>Ze(f)))];r==null||r.forEach(f=>{let p=l==null?void 0:l.filter(k=>k.key.includes(f));p==null||p.forEach(k=>{k!=null&&k.key.includes("Menus")&&(t.push({key:"GroupName",value:me(k==null?void 0:k.value)}),s.push(me(k==null?void 0:k.value)))});let u=l==null?void 0:l.filter(k=>k.key.includes(f)&&!(k!=null&&k.key.includes("Menus")));u=u==null?void 0:u.map(k=>(k.key=He(k.key),k));const d={key:"GroupContents",value:u};t.push(d)});const n={key:"Menus",value:s};return t.unshift(n),t},Ce=l=>{var t,s;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(s=Object.entries(l))==null||s.forEach(([r,n])=>{var a,f;let c=[];if(c.push(r),((a=Object.keys(n))==null?void 0:a.length)>0){let p=[];(f=Ce(n))==null||f.forEach(u=>{p.push(u)}),p==null||p.forEach(u=>{c.push(u)})}e.push(c)}),e}},Me=(l,t)=>{var e;let s=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,n])=>{let c=[r];if(typeof n=="object"&&n!==null){let a=Ce(n);a==null||a.forEach(f=>{c.push(f)})}s.push(c)})),s},Qe=l=>{const t={};return l.forEach(e=>{const r=e.split("/");let n=t;r.forEach(c=>{n[c]||(n[c]={}),n=n[c]})}),Me(t,[])},ce=l=>Qe(l),Re=l=>{var t,s,e,r,n,c,a,f;try{const p=le((s=(t=o.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:s.replace(")",")")),u=(r=(e=o.cloneDeep(p))==null?void 0:e.filter(h=>!h.includes("/*")))==null?void 0:r.map(h=>Pe(h)),d=qe(u),k=[];if(((n=d==null?void 0:d.find(h=>(h==null?void 0:h.key)==="Menus"))==null?void 0:n.value.length)===0)return!1;(c=o.cloneDeep(d))==null||c.forEach(h=>{var j,b,$,i,y;E!=null&&E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})?k.push({comp:((j=E==null?void 0:E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:j.value)??"",name:(b=h==null?void 0:h.value)==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]}):N!=null&&N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})&&((k==null?void 0:k.length)===0&&($=h.key)!=null&&$.includes("Menus")&&k.push({comp:"Menu",name:"",compData:[]}),(i=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&i.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(y=N==null?void 0:N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:y.value,contents:h==null?void 0:h.value}))});let A=(a=o.cloneDeep(k))==null?void 0:a.map(h=>{var j;return h!=null&&h.compData&&(h.compData=(j=h==null?void 0:h.compData)==null?void 0:j.map(b=>{var $,i,y,m,g,T,F,I,P,G,W;if((b==null?void 0:b.key)==="formFlex")b.contents=((i=($=b.contents)==null?void 0:$.replace(/[’]|[‘]|[']/g,""))==null?void 0:i.toUpperCase())!=="Vertical".toUpperCase();else if((b==null?void 0:b.key)==="groupContents")b.contents=(y=o.cloneDeep(b.contents))==null?void 0:y.map(L=>_e(o.cloneDeep(L)));else if(Array.isArray(b==null?void 0:b.contents))b.contents=ce(b.contents);else if(((g=(m=b==null?void 0:b.contents)==null?void 0:m.trim())!=null&&g.startsWith("[")||(F=(T=b.contents)==null?void 0:T.trim())!=null&&F.startsWith("【"))&&((P=(I=b.contents)==null?void 0:I.trim())!=null&&P.endsWith("]")||(W=(G=b.contents)==null?void 0:G.trim())!=null&&W.endsWith("】")))b.contents=ze(o.cloneDeep(b.contents));else{if(!b.contents)return;b.contents=De(o.cloneDeep(b.contents))}return b})),h});return A=(f=o.cloneDeep(A))==null?void 0:f.map(h=>{var j;return(h==null?void 0:h.comp)==="Group"&&(h.compData=(j=h.compData)==null?void 0:j.map(b=>{var i;let $=[];return(i=b.contents)==null||i.forEach(y=>{var m,g,T,F,I,P,G,W,L,x,O,C;if(E!=null&&E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))$.push({comp:(m=E==null?void 0:E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:m.value,name:(T=(g=Object.values(y))==null?void 0:g[0])==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(N!=null&&N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())})){if(($==null?void 0:$.length)===0)return;(F=$==null?void 0:$[($==null?void 0:$.length)-1])!=null&&F.compData&&$[($==null?void 0:$.length)-1].compData.push({key:(I=N==null?void 0:N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:I.value,contents:(P=Object.values(y))==null?void 0:P[0]})}else if((W=(G=Object.keys(y))==null?void 0:G[0])!=null&&W.includes("$")){const D=(x=(L=Object.keys(o.cloneDeep(y)))==null?void 0:L[0])==null?void 0:x.split("$");$[($==null?void 0:$.length)-1].compData.push({key:(O=N==null?void 0:N.find(J=>{var U,S;return((U=J==null?void 0:J.key)==null?void 0:U.toUpperCase())===((S=D==null?void 0:D[0])==null?void 0:S.toUpperCase())}))==null?void 0:O.value,contents:(C=Object.values(y))==null?void 0:C[0],selectLabel:D==null?void 0:D[1]})}return y}),b.contents=$,b})),h}),A}catch{return!1}},de=Q.ref(0),Oe=l=>{const t=[];let s=null;for(let e=0;e<l.length;e++){const r=l[e];if(Array.isArray(r))s&&(s.children=Oe(r));else{const n={label:r};t.push(n),s=n}}return t},Te=l=>{let t=0;for(const s of l)t++,s.children&&(t+=Te(s.children));return t},xe=(l,t,s=[])=>{let e=0;for(const r of t){if(e>=l.length)break;const n=[...l[e]];if(s.push(n),e++,r.children&&r.children.length>0){const c=[];xe(l.slice(e),r.children,c),c.length>0&&(n.push(c),e+=Te(r.children))}}return s},Xe=(l,t)=>{let s=[];return l==null||l.forEach(r=>{r.some(n=>Array.isArray(n))?s.push(...r):s.push(r)}),xe(s,t)},ne=l=>{const t={label:l[0].trim()};if(l.length>1){const s=l.slice(1);s.length===1&&Array.isArray(s[0])?t.children=s[0].map(e=>Array.isArray(e)?ne(e):{label:e.trim()}):t.children=s.map(e=>Array.isArray(e)?ne(e):{label:e.trim()})}return t},ke=l=>{let t=l.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return t=t.replace(/:}(?=,|]|}|$)/g,':""}'),t=t.replace(/:,(?=\s*")/g,':"",'),t=t.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(s,e,r)=>`"${e}://${r}"`),t=t.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),t},Ye=l=>{var s;return l.some(e=>!Array.isArray(e))?l:(s=o.cloneDeep(l))==null?void 0:s.map(e=>{let r=[];return e.some(n=>Array.isArray(n))?e==null||e.forEach(n=>{Array.isArray(n)&&r.push(ne(n))}):e.some(n=>n.includes("["))?r.push(e):r=e.map(n=>({label:n.trim()})),r})},Je=(l,t,s)=>{let e=l,r=s,n=t;return n.children&&(Array.isArray(r[r.length-1])?r[r.length-1].push(e[0]):r.push(e[0]),e.shift(),n=n.children),Array.isArray(n)&&n.forEach(c=>{if(c.children){const a=Je(e,c,r);r=a[0],e=a[1]}}),[r,e]},Ke=(l,t)=>{let s=l,e=[];return t.length>0?t==null||t.forEach(r=>{let n=s==null?void 0:s[0];s.shift();const c=Je(o.cloneDeep(s),r,n);n=c[0],s=c[1],e.push(n)}):e=s,e},ae=(l,t)=>{const s=Ye(o.cloneDeep(l));return Ke(s,t)},Ve=l=>{const t=[];let s=0;const e=l.length;for(;s<e;){const r=l[s];r.key==="tableColumns"&&s+1<e&&l[s+1].key==="tableContents"?(t.push({comp:"Table",compData:[r,l[s+1]],name:""}),s+=2):(t.push(r),s+=1)}return t},Ne=l=>ae([l],[]),ee=l=>{const t=[];return l==null||l.forEach(s=>s==null?void 0:s.forEach(r=>{var n,c;de.value++,t.push({id:de.value,key:(n=Object.keys(r))==null?void 0:n[0],value:(c=Object.values(r))==null?void 0:c[0],width:s.length})})),t},ge=l=>{let t=Ve(l);return t=t==null?void 0:t.map(s=>{var e,r,n,c;if(s.comp==="Table")(e=s.compData)!=null&&e.find(a=>(a==null?void 0:a.key)==="header")||(s.compData=(r=s.compData)==null?void 0:r.map(a=>(a.key==="tableColumns"?a={key:"header",contents:ae(a.value,[])}:a={key:a.key,contents:a.value},a)),s.compData.push({key:"extraButton",contents:[{label:"新增"}]}),s.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(s.key==="form"){const a=(n=s==null?void 0:s.value)==null?void 0:n.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)}],name:""}}else if(s.key==="formTop"){const a=(c=s==null?void 0:s.value)==null?void 0:c.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return s}),t},we=(l,t)=>{var a,f,p,u,d,k;const s=[],e=Oe((f=(a=l==null?void 0:l.find(A=>A.key==="tableIndex"))==null?void 0:a.value)==null?void 0:f[0]);s.push({key:"tableIndexColumn",contents:t}),s.push({key:"tableIndex",contents:e});let r=[];const n=(p=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:p.value;n.length===1&&!(n!=null&&n[0].some(A=>Array.isArray(A)))?r=(u=n==null?void 0:n[0])==null?void 0:u.map(A=>({label:A})):r=ae((d=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:d.value,e),s.push({key:"header",contents:r});const c=Xe((k=l==null?void 0:l.find(A=>A.key==="tableContents"))==null?void 0:k.value,e);return s.push({key:"tableContents",contents:c}),s.push({key:"extraButton",contents:[{label:"新增"}]}),s.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),s},Ee=l=>l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(t,s,e)=>{const r=Ee(e);return`"${s}",${r}`}),K=l=>{const t=l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ee(t).replace(/^"(.*)"$/,"$1")},ve=l=>{const t=new Set;return l.filter(s=>{const e=JSON.stringify(s);return t.has(e)?!1:t.add(e)})},be=l=>{var s;let t=[];return(s=o.cloneDeep(l))==null||s.forEach(e=>{var r;(r=e.contents)==null||r.forEach(n=>{t.push(n)})}),t=ve(t),t.push({label:"操作"}),[t]},el=(l,t)=>l.reduce((s,e,r)=>{const n=Math.floor(r/t);return s[n]||(s[n]=[]),s[n].push(e),s},[]),je=l=>l.reduce((t,s)=>s.children&&s.children.length>0?t+je(s.children):t+1,0),ll=(l,t)=>{var e;let s=[];return(e=el(l,je(t==null?void 0:t[0])-1))==null||e.forEach(r=>{let n=[];r.forEach(c=>{var a;Array.isArray(c.contents)?(a=c.contents)==null||a.forEach(f=>{n.push(f)}):n.push(c.contents)}),s.push(n)}),[s]},sl=["方法体","输入","输出"],$e=Q.ref(1),le=l=>{let t;l.replaceAll(" ",`\r
|
|
1
|
+
"use strict";const Q=require("vue"),o=require("./cloneDeep-CmZXpGNl.cjs"),z=require("./index-C8adk7wB.cjs"),E=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],N=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],M=Q.ref(0),Pe=l=>{const[t,s]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),r=s.replace(/^['"]|['"]$/g,"");return{key:e,value:r}},w=l=>{try{return JSON.parse(l),!0}catch{return!1}},Be=l=>l.includes("$")&&l.trim().endsWith("(")?l+")":l,Ge=l=>{let t=l;const s=[];let e="";for(const r of t)r.includes("{")||e.includes("{")||r.includes("[")||e.includes("[")||r.includes("【")||e.includes("【")||r.includes("(")||e.includes("(")||r.includes("(")||e.includes("(")||r.includes("/*")||e.includes("/*")?(e+=r.trim(),o.cloneDeep(e).split("{").length-1===o.cloneDeep(e).split("}").length-1&&o.cloneDeep(e).split("【").length-1===o.cloneDeep(e).split("】").length-1&&o.cloneDeep(e).split("[").length-1===o.cloneDeep(e).split("]").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("/*").length-1===o.cloneDeep(e).split("*/").length-1&&(s.push(e),e="")):s.push(r.trim());return s==null?void 0:s.filter(r=>r.includes("{"))},We=l=>{var s;let t=[];return(s=Ge(l.slice(1,-1)))==null||s.forEach(e=>{var n,c,a,f;let r=((c=(n=e.slice(1,-1))==null?void 0:n.split(","))==null?void 0:c.length)??1;(f=(a=e.slice(1,-1))==null?void 0:a.split(","))==null||f.forEach(p=>{var A,h,j,b,$,i,y,m,g,T,F,I,P;let u=p==null?void 0:p.split(":"),d=u!=null&&u[0]?(u==null?void 0:u[1].split("$").length)-1===1?((A=u==null?void 0:u[0])==null?void 0:A.replace(/^"(.*)"$/,"$1"))+((h=u==null?void 0:u[1])==null?void 0:h.replace(/^"(.*)"$/,"$1")):Array.isArray((b=(j=u==null?void 0:u[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))&&((y=(i=($=u==null?void 0:u[1])==null?void 0:$.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:y.length)>1?((m=u==null?void 0:u[0])==null?void 0:m.replace(/^"(.*)"$/,"$1"))+((F=(T=(g=u==null?void 0:u[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:T.split("("))==null?void 0:F[0])+"()":(I=u==null?void 0:u[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",k=(u==null?void 0:u[1].split("$").length)-1===0?(P=u==null?void 0:u[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";M.value++,t.push({id:M.value,key:d,value:k,width:r,extraContent:u==null?void 0:u[1]})})}),t},De=l=>{var t,s;try{const e=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(o.cloneDeep(e).split("{").length-1>1){let r=o.cloneDeep(e).replace(/^\{(.*)\}$/,"[$1]");if(w(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),w(r)){const n=JSON.parse(r);let c=[];return n==null||n.forEach(a=>{var f;(f=Object.entries(o.cloneDeep(a)))==null||f.forEach(p=>{M.value++,c.push({id:M.value,key:(p==null?void 0:p[0])??"",value:(p==null?void 0:p[1])===""?"":p==null?void 0:p[1],width:Object.keys(o.cloneDeep(a)).length})})}),c}else return e.trim().startsWith("{{")?We(e.trim()):se(r)}else if(w(e)){const r=JSON.parse(e);return Object.entries(r).map(([n,c])=>(M.value++,{id:M.value,key:n,value:c===""?"":c,width:1}))}else return((t=se(e))==null?void 0:t.length)===0?e:(s=se(e))==null?void 0:s.map(r=>({label:r.label,method:Be(r.method)}))}catch(e){return console.error("转换失败:",e),[]}},se=l=>{l=l.trim().replace(/^\{|\}$/g,"").trim();const t=[];let s=0;for(;s<l.length;){const e=l.slice(s).match(/^\s*"([^"]+)"\s*:\s*/);if(!e)break;const r=e[1];s+=e[0].length;let n="",c=0,a=!1,f="";for(let p=s;p<l.length;p++){const u=l[p];if((u==='"'||u==="'")&&!a?(a=!0,f=u):u===f&&a&&(a=!1,f=""),!a&&((u==="{"||u==="("||u==="[")&&c++,(u==="}"||u===")"||u==="]")&&c--,u===","&&c===0||p===l.length-1)){n=l.slice(s,p+1).trim(),s=p+1;break}}t.push({label:r,method:n})}return t},Le=(l,t)=>{try{if(E!=null&&E.find(s=>(s==null?void 0:s.key)===t))return l.replace(/['"]/g,"").trim();if(o.cloneDeep(l).split("[").length-1>1){const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else{const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(w(s)){const e=JSON.parse(s);return Array.isArray(e)?e.map(r=>({label:r})):e}else return De(o.cloneDeep(l))}}catch(s){return console.error("解析失败:",s),l}},_e=l=>({[l==null?void 0:l.key]:Le(l==null?void 0:l.value,l==null?void 0:l.key)}),ze=l=>{try{if(o.cloneDeep(l).split("[").length-1>1){const t=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(s=>({label:s}))}catch(t){return console.error("解析失败:",t),l}},Ze=l=>{const t=l.match(/\(([^)]+)\)/);return t?t[1]:""},He=l=>{const t=l.match(/^([^(]+)\s*\(/);return t?t[1].trim():l},me=l=>l.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(t=>t.trim()).filter(t=>t).join("/"),qe=l=>{var c,a;let t=[],s=[];const e=(c=o.cloneDeep(l))==null?void 0:c.map(f=>f==null?void 0:f.key),r=[...new Set((a=o.cloneDeep(e))==null?void 0:a.map(f=>Ze(f)))];r==null||r.forEach(f=>{let p=l==null?void 0:l.filter(k=>k.key.includes(f));p==null||p.forEach(k=>{k!=null&&k.key.includes("Menus")&&(t.push({key:"GroupName",value:me(k==null?void 0:k.value)}),s.push(me(k==null?void 0:k.value)))});let u=l==null?void 0:l.filter(k=>k.key.includes(f)&&!(k!=null&&k.key.includes("Menus")));u=u==null?void 0:u.map(k=>(k.key=He(k.key),k));const d={key:"GroupContents",value:u};t.push(d)});const n={key:"Menus",value:s};return t.unshift(n),t},Ce=l=>{var t,s;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(s=Object.entries(l))==null||s.forEach(([r,n])=>{var a,f;let c=[];if(c.push(r),((a=Object.keys(n))==null?void 0:a.length)>0){let p=[];(f=Ce(n))==null||f.forEach(u=>{p.push(u)}),p==null||p.forEach(u=>{c.push(u)})}e.push(c)}),e}},Me=(l,t)=>{var e;let s=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,n])=>{let c=[r];if(typeof n=="object"&&n!==null){let a=Ce(n);a==null||a.forEach(f=>{c.push(f)})}s.push(c)})),s},Qe=l=>{const t={};return l.forEach(e=>{const r=e.split("/");let n=t;r.forEach(c=>{n[c]||(n[c]={}),n=n[c]})}),Me(t,[])},ce=l=>Qe(l),Re=l=>{var t,s,e,r,n,c,a,f;try{const p=le((s=(t=o.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:s.replace(")",")")),u=(r=(e=o.cloneDeep(p))==null?void 0:e.filter(h=>!h.includes("/*")))==null?void 0:r.map(h=>Pe(h)),d=qe(u),k=[];if(((n=d==null?void 0:d.find(h=>(h==null?void 0:h.key)==="Menus"))==null?void 0:n.value.length)===0)return!1;(c=o.cloneDeep(d))==null||c.forEach(h=>{var j,b,$,i,y;E!=null&&E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})?k.push({comp:((j=E==null?void 0:E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:j.value)??"",name:(b=h==null?void 0:h.value)==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]}):N!=null&&N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})&&((k==null?void 0:k.length)===0&&($=h.key)!=null&&$.includes("Menus")&&k.push({comp:"Menu",name:"",compData:[]}),(i=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&i.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(y=N==null?void 0:N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:y.value,contents:h==null?void 0:h.value}))});let A=(a=o.cloneDeep(k))==null?void 0:a.map(h=>{var j;return h!=null&&h.compData&&(h.compData=(j=h==null?void 0:h.compData)==null?void 0:j.map(b=>{var $,i,y,m,g,T,F,I,P,G,W;if((b==null?void 0:b.key)==="formFlex")b.contents=((i=($=b.contents)==null?void 0:$.replace(/[’]|[‘]|[']/g,""))==null?void 0:i.toUpperCase())!=="Vertical".toUpperCase();else if((b==null?void 0:b.key)==="groupContents")b.contents=(y=o.cloneDeep(b.contents))==null?void 0:y.map(L=>_e(o.cloneDeep(L)));else if(Array.isArray(b==null?void 0:b.contents))b.contents=ce(b.contents);else if(((g=(m=b==null?void 0:b.contents)==null?void 0:m.trim())!=null&&g.startsWith("[")||(F=(T=b.contents)==null?void 0:T.trim())!=null&&F.startsWith("【"))&&((P=(I=b.contents)==null?void 0:I.trim())!=null&&P.endsWith("]")||(W=(G=b.contents)==null?void 0:G.trim())!=null&&W.endsWith("】")))b.contents=ze(o.cloneDeep(b.contents));else{if(!b.contents)return;b.contents=De(o.cloneDeep(b.contents))}return b})),h});return A=(f=o.cloneDeep(A))==null?void 0:f.map(h=>{var j;return(h==null?void 0:h.comp)==="Group"&&(h.compData=(j=h.compData)==null?void 0:j.map(b=>{var i;let $=[];return(i=b.contents)==null||i.forEach(y=>{var m,g,T,F,I,P,G,W,L,x,O,C;if(E!=null&&E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))$.push({comp:(m=E==null?void 0:E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:m.value,name:(T=(g=Object.values(y))==null?void 0:g[0])==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(N!=null&&N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())})){if(($==null?void 0:$.length)===0)return;(F=$==null?void 0:$[($==null?void 0:$.length)-1])!=null&&F.compData&&$[($==null?void 0:$.length)-1].compData.push({key:(I=N==null?void 0:N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:I.value,contents:(P=Object.values(y))==null?void 0:P[0]})}else if((W=(G=Object.keys(y))==null?void 0:G[0])!=null&&W.includes("$")){const D=(x=(L=Object.keys(o.cloneDeep(y)))==null?void 0:L[0])==null?void 0:x.split("$");$[($==null?void 0:$.length)-1].compData.push({key:(O=N==null?void 0:N.find(J=>{var U,S;return((U=J==null?void 0:J.key)==null?void 0:U.toUpperCase())===((S=D==null?void 0:D[0])==null?void 0:S.toUpperCase())}))==null?void 0:O.value,contents:(C=Object.values(y))==null?void 0:C[0],selectLabel:D==null?void 0:D[1]})}return y}),b.contents=$,b})),h}),A}catch{return!1}},de=Q.ref(0),Oe=l=>{const t=[];let s=null;for(let e=0;e<l.length;e++){const r=l[e];if(Array.isArray(r))s&&(s.children=Oe(r));else{const n={label:r};t.push(n),s=n}}return t},Te=l=>{let t=0;for(const s of l)t++,s.children&&(t+=Te(s.children));return t},xe=(l,t,s=[])=>{let e=0;for(const r of t){if(e>=l.length)break;const n=[...l[e]];if(s.push(n),e++,r.children&&r.children.length>0){const c=[];xe(l.slice(e),r.children,c),c.length>0&&(n.push(c),e+=Te(r.children))}}return s},Xe=(l,t)=>{let s=[];return l==null||l.forEach(r=>{r.some(n=>Array.isArray(n))?s.push(...r):s.push(r)}),xe(s,t)},ne=l=>{const t={label:l[0].trim()};if(l.length>1){const s=l.slice(1);s.length===1&&Array.isArray(s[0])?t.children=s[0].map(e=>Array.isArray(e)?ne(e):{label:e.trim()}):t.children=s.map(e=>Array.isArray(e)?ne(e):{label:e.trim()})}return t},ke=l=>{let t=l.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return t=t.replace(/:}(?=,|]|}|$)/g,':""}'),t=t.replace(/:,(?=\s*")/g,':"",'),t=t.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(s,e,r)=>`"${e}://${r}"`),t=t.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),t},Ye=l=>{var s;return l.some(e=>!Array.isArray(e))?l:(s=o.cloneDeep(l))==null?void 0:s.map(e=>{let r=[];return e.some(n=>Array.isArray(n))?e==null||e.forEach(n=>{Array.isArray(n)&&r.push(ne(n))}):e.some(n=>n.includes("["))?r.push(e):r=e.map(n=>({label:n.trim()})),r})},Je=(l,t,s)=>{let e=l,r=s,n=t;return n.children&&(Array.isArray(r[r.length-1])?r[r.length-1].push(e[0]):r.push(e[0]),e.shift(),n=n.children),Array.isArray(n)&&n.forEach(c=>{if(c.children){const a=Je(e,c,r);r=a[0],e=a[1]}}),[r,e]},Ke=(l,t)=>{let s=l,e=[];return t.length>0?t==null||t.forEach(r=>{let n=s==null?void 0:s[0];s.shift();const c=Je(o.cloneDeep(s),r,n);n=c[0],s=c[1],e.push(n)}):e=s,e},ae=(l,t)=>{const s=Ye(o.cloneDeep(l));return Ke(s,t)},Ve=l=>{const t=[];let s=0;const e=l.length;for(;s<e;){const r=l[s];r.key==="tableColumns"&&s+1<e&&l[s+1].key==="tableContents"?(t.push({comp:"Table",compData:[r,l[s+1]],name:""}),s+=2):(t.push(r),s+=1)}return t},Ne=l=>ae([l],[]),ee=l=>{const t=[];return l==null||l.forEach(s=>s==null?void 0:s.forEach(r=>{var n,c;de.value++,t.push({id:de.value,key:(n=Object.keys(r))==null?void 0:n[0],value:(c=Object.values(r))==null?void 0:c[0],width:s.length})})),t},ge=l=>{let t=Ve(l);return t=t==null?void 0:t.map(s=>{var e,r,n,c;if(s.comp==="Table")(e=s.compData)!=null&&e.find(a=>(a==null?void 0:a.key)==="header")||(s.compData=(r=s.compData)==null?void 0:r.map(a=>(a.key==="tableColumns"?a={key:"header",contents:ae(a.value,[])}:a={key:a.key,contents:a.value},a)),s.compData.push({key:"extraButton",contents:[{label:"新增"}]}),s.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(s.key==="form"){const a=(n=s==null?void 0:s.value)==null?void 0:n.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)}],name:""}}else if(s.key==="formTop"){const a=(c=s==null?void 0:s.value)==null?void 0:c.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return s}),t},we=(l,t)=>{var a,f,p,u,d,k;const s=[],e=Oe((f=(a=l==null?void 0:l.find(A=>A.key==="tableIndex"))==null?void 0:a.value)==null?void 0:f[0]);s.push({key:"tableIndexColumn",contents:t}),s.push({key:"tableIndex",contents:e});let r=[];const n=(p=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:p.value;n.length===1&&!(n!=null&&n[0].some(A=>Array.isArray(A)))?r=(u=n==null?void 0:n[0])==null?void 0:u.map(A=>({label:A})):r=ae((d=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:d.value,e),s.push({key:"header",contents:r});const c=Xe((k=l==null?void 0:l.find(A=>A.key==="tableContents"))==null?void 0:k.value,e);return s.push({key:"tableContents",contents:c}),s.push({key:"extraButton",contents:[{label:"新增"}]}),s.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),s},Ee=l=>l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(t,s,e)=>{const r=Ee(e);return`"${s}",${r}`}),K=l=>{const t=l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ee(t).replace(/^"(.*)"$/,"$1")},ve=l=>{const t=new Set;return l.filter(s=>{const e=JSON.stringify(s);return t.has(e)?!1:t.add(e)})},be=l=>{var s;let t=[];return(s=o.cloneDeep(l))==null||s.forEach(e=>{var r;(r=e.contents)==null||r.forEach(n=>{t.push(n)})}),t=ve(t),t.push({label:"操作"}),[t]},el=(l,t)=>l.reduce((s,e,r)=>{const n=Math.floor(r/t);return s[n]||(s[n]=[]),s[n].push(e),s},[]),je=l=>l.reduce((t,s)=>s.children&&s.children.length>0?t+je(s.children):t+1,0),ll=(l,t)=>{var e;let s=[];return(e=el(l,je(t==null?void 0:t[0])-1))==null||e.forEach(r=>{let n=[];r.forEach(c=>{var a;Array.isArray(c.contents)?(a=c.contents)==null||a.forEach(f=>{n.push(f)}):n.push(c.contents)}),s.push(n)}),[s]},sl=["方法体","输入","输出"],$e=Q.ref(1),le=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).includes(`\r
|
|
3
3
|
`)?t=l.replaceAll(" ",`\r
|
|
4
4
|
`).split(`\r
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Q } from "vue";
|
|
2
|
-
import { c as o } from "./cloneDeep-
|
|
3
|
-
import { I as z } from "./index-
|
|
2
|
+
import { c as o } from "./cloneDeep-5wimUhRj.js";
|
|
3
|
+
import { I as z } from "./index-DCeuXqFD.js";
|
|
4
4
|
const J = [
|
|
5
5
|
{
|
|
6
6
|
key: "FormName",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as A, a7 as l, d as re, a3 as ye, a8 as de, a4 as h, a9 as w, aa as Te, i as I, ab as P, ac as v, a2 as je, ad as T, S as D } from "./index-
|
|
1
|
+
import { a6 as A, a7 as l, d as re, a3 as ye, a8 as de, a4 as h, a9 as w, aa as Te, i as I, ab as P, ac as v, a2 as je, ad as T, S as D } from "./index-B7aTemCs.js";
|
|
2
2
|
var O = A(l, "WeakMap"), F = Object.create, $e = /* @__PURE__ */ function() {
|
|
3
3
|
function e() {
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-gWGfGGET.cjs");var A=n.getNative(n.root,"WeakMap"),x=Object.create,ge=function(){function e(){}return function(t){if(!n.isObject(t))return{};if(x)return x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),h=function(){try{var e=n.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}();function be(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var pe=9007199254740991,ye=/^(?:0|[1-9]\d*)$/;function Y(e,t){var r=typeof e;return t=t??pe,!!t&&(r=="number"||r!="symbol"&&ye.test(e))&&e>-1&&e%1==0&&e<t}function Te(e,t,r){t=="__proto__"&&h?h(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var le=Object.prototype,je=le.hasOwnProperty;function H(e,t,r){var a=e[t];(!(je.call(e,t)&&n.eq(a,r))||r===void 0&&!(t in e))&&Te(e,t,r)}var de=9007199254740991;function _(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=de}function $e(e){return e!=null&&_(e.length)&&!n.isFunction$1(e)}var Ae=Object.prototype;function Z(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ae;return e===r}function he(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var ve="[object Arguments]";function C(e){return n.isObjectLike(e)&&n.baseGetTag(e)==ve}var J=Object.prototype,we=J.hasOwnProperty,me=J.propertyIsEnumerable,Q=C(function(){return arguments}())?C:function(e){return n.isObjectLike(e)&&we.call(e,"callee")&&!me.call(e,"callee")};function Oe(){return!1}var ee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,B=ee&&typeof module=="object"&&module&&!module.nodeType&&module,_e=B&&B.exports===ee,L=_e?n.root.Buffer:void 0,Se=L?L.isBuffer:void 0,S=Se||Oe,Pe="[object Arguments]",Ee="[object Array]",Ie="[object Boolean]",Me="[object Date]",xe="[object Error]",Ce="[object Function]",Be="[object Map]",Le="[object Number]",Ue="[object Object]",De="[object RegExp]",Fe="[object Set]",Ge="[object String]",Ne="[object WeakMap]",Ve="[object ArrayBuffer]",Re="[object DataView]",ze="[object Float32Array]",Ke="[object Float64Array]",We="[object Int8Array]",qe="[object Int16Array]",ke="[object Int32Array]",Xe="[object Uint8Array]",Ye="[object Uint8ClampedArray]",He="[object Uint16Array]",Ze="[object Uint32Array]",i={};i[ze]=i[Ke]=i[We]=i[qe]=i[ke]=i[Xe]=i[Ye]=i[He]=i[Ze]=!0;i[Pe]=i[Ee]=i[Ve]=i[Ie]=i[Re]=i[Me]=i[xe]=i[Ce]=i[Be]=i[Le]=i[Ue]=i[De]=i[Fe]=i[Ge]=i[Ne]=!1;function Je(e){return n.isObjectLike(e)&&_(e.length)&&!!i[n.baseGetTag(e)]}function P(e){return function(t){return e(t)}}var te=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=te&&typeof module=="object"&&module&&!module.nodeType&&module,Qe=j&&j.exports===te,$=Qe&&n.freeGlobal.process,l=function(){try{var e=j&&j.require&&j.require("util").types;return e||$&&$.binding&&$.binding("util")}catch{}}(),U=l&&l.isTypedArray,re=U?P(U):Je,et=Object.prototype,tt=et.hasOwnProperty;function rt(e,t){var r=n.isArray(e),a=!r&&Q(e),f=!r&&!a&&S(e),s=!r&&!a&&!f&&re(e),c=r||a||f||s,T=c?he(e.length,String):[],g=T.length;for(var u in e)tt.call(e,u)&&!(c&&(u=="length"||f&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Y(u,g)))&&T.push(u);return T}function ne(e,t){return function(r){return e(t(r))}}var nt=ne(Object.keys,Object),at=Object.prototype,ot=at.hasOwnProperty;function it(e){if(!Z(e))return nt(e);var t=[];for(var r in Object(e))ot.call(e,r)&&r!="constructor"&&t.push(r);return t}function ct(e){return $e(e)?rt(e):it(e)}function ae(e,t){for(var r=-1,a=t.length,f=e.length;++r<a;)e[f+r]=t[r];return e}var st=ne(Object.getPrototypeOf,Object);function ut(){this.__data__=new n.ListCache,this.size=0}function ft(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function gt(e){return this.__data__.get(e)}function bt(e){return this.__data__.has(e)}var pt=200;function yt(e,t){var r=this.__data__;if(r instanceof n.ListCache){var a=r.__data__;if(!n.Map||a.length<pt-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new n.MapCache(a)}return r.set(e,t),this.size=r.size,this}function y(e){var t=this.__data__=new n.ListCache(e);this.size=t.size}y.prototype.clear=ut;y.prototype.delete=ft;y.prototype.get=gt;y.prototype.has=bt;y.prototype.set=yt;var oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D=oe&&typeof module=="object"&&module&&!module.nodeType&&module,Tt=D&&D.exports===oe,F=Tt?n.root.Buffer:void 0;F&&F.allocUnsafe;function lt(e,t){return e.slice()}function jt(e,t){for(var r=-1,a=e==null?0:e.length,f=0,s=[];++r<a;){var c=e[r];t(c,r,e)&&(s[f++]=c)}return s}function dt(){return[]}var $t=Object.prototype,At=$t.propertyIsEnumerable,G=Object.getOwnPropertySymbols,ht=G?function(e){return e==null?[]:(e=Object(e),jt(G(e),function(t){return At.call(e,t)}))}:dt;function vt(e,t,r){var a=t(e);return n.isArray(e)?a:ae(a,r(e))}function ie(e){return vt(e,ct,ht)}var v=n.getNative(n.root,"DataView"),w=n.getNative(n.root,"Promise"),m=n.getNative(n.root,"Set"),N="[object Map]",wt="[object Object]",V="[object Promise]",R="[object Set]",z="[object WeakMap]",K="[object DataView]",mt=n.toSource(v),Ot=n.toSource(n.Map),_t=n.toSource(w),St=n.toSource(m),Pt=n.toSource(A);exports.getTag=n.baseGetTag;(v&&exports.getTag(new v(new ArrayBuffer(1)))!=K||n.Map&&exports.getTag(new n.Map)!=N||w&&exports.getTag(w.resolve())!=V||m&&exports.getTag(new m)!=R||A&&exports.getTag(new A)!=z)&&(exports.getTag=function(e){var t=n.baseGetTag(e),r=t==wt?e.constructor:void 0,a=r?n.toSource(r):"";if(a)switch(a){case mt:return K;case Ot:return N;case _t:return V;case St:return R;case Pt:return z}return t});var Et=Object.prototype,It=Et.hasOwnProperty;function Mt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&It.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var O=n.root.Uint8Array;function E(e){var t=new e.constructor(e.byteLength);return new O(t).set(new O(e)),t}function xt(e,t){var r=E(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Ct=/\w*$/;function Bt(e){var t=new e.constructor(e.source,Ct.exec(e));return t.lastIndex=e.lastIndex,t}var W=n.Symbol?n.Symbol.prototype:void 0,q=W?W.valueOf:void 0;function Lt(e){return q?Object(q.call(e)):{}}function Ut(e,t){var r=E(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var Dt="[object Boolean]",Ft="[object Date]",Gt="[object Map]",Nt="[object Number]",Vt="[object RegExp]",Rt="[object Set]",zt="[object String]",Kt="[object Symbol]",Wt="[object ArrayBuffer]",qt="[object DataView]",kt="[object Float32Array]",Xt="[object Float64Array]",Yt="[object Int8Array]",Ht="[object Int16Array]",Zt="[object Int32Array]",Jt="[object Uint8Array]",Qt="[object Uint8ClampedArray]",er="[object Uint16Array]",tr="[object Uint32Array]";function rr(e,t,r){var a=e.constructor;switch(t){case Wt:return E(e);case Dt:case Ft:return new a(+e);case qt:return xt(e);case kt:case Xt:case Yt:case Ht:case Zt:case Jt:case Qt:case er:case tr:return Ut(e);case Gt:return new a;case Nt:case zt:return new a(e);case Vt:return Bt(e);case Rt:return new a;case Kt:return Lt(e)}}function nr(e){return typeof e.constructor=="function"&&!Z(e)?ge(st(e)):{}}var ar="[object Map]";function or(e){return n.isObjectLike(e)&&exports.getTag(e)==ar}var k=l&&l.isMap,ir=k?P(k):or,cr="[object Set]";function sr(e){return n.isObjectLike(e)&&exports.getTag(e)==cr}var X=l&&l.isSet,ur=X?P(X):sr,ce="[object Arguments]",fr="[object Array]",gr="[object Boolean]",br="[object Date]",pr="[object Error]",se="[object Function]",yr="[object GeneratorFunction]",Tr="[object Map]",lr="[object Number]",ue="[object Object]",jr="[object RegExp]",dr="[object Set]",$r="[object String]",Ar="[object Symbol]",hr="[object WeakMap]",vr="[object ArrayBuffer]",wr="[object DataView]",mr="[object Float32Array]",Or="[object Float64Array]",_r="[object Int8Array]",Sr="[object Int16Array]",Pr="[object Int32Array]",Er="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Mr="[object Uint16Array]",xr="[object Uint32Array]",o={};o[ce]=o[fr]=o[vr]=o[wr]=o[gr]=o[br]=o[mr]=o[Or]=o[_r]=o[Sr]=o[Pr]=o[Tr]=o[lr]=o[ue]=o[jr]=o[dr]=o[$r]=o[Ar]=o[Er]=o[Ir]=o[Mr]=o[xr]=!0;o[pr]=o[se]=o[hr]=!1;function d(e,t,r,a,f,s){var c;if(c!==void 0)return c;if(!n.isObject(e))return e;var T=n.isArray(e);if(T)c=Mt(e);else{var g=exports.getTag(e),u=g==se||g==yr;if(S(e))return lt(e);if(g==ue||g==ce||u&&!f)c=u?{}:nr(e);else{if(!o[g])return f?e:{};c=rr(e,g)}}s||(s=new y);var I=s.get(e);if(I)return I;s.set(e,c),ur(e)?e.forEach(function(b){c.add(d(b,t,r,b,e,s))}):ir(e)&&e.forEach(function(b,p){c.set(p,d(b,t,r,p,e,s))});var fe=ie,M=T?void 0:fe(e);return be(M||e,function(b,p){M&&(p=b,b=e[p]),H(c,p,d(b,t,r,p,e,s))}),c}var Cr=1,Br=4;function Lr(e){return d(e,Cr|Br)}exports.Stack=y;exports.Uint8Array=O;exports.arrayPush=ae;exports.assignValue=H;exports.cloneDeep=Lr;exports.defineProperty=h;exports.getAllKeys=ie;exports.isArguments=Q;exports.isBuffer=S;exports.isIndex=Y;exports.isLength=_;exports.isTypedArray=re;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as I, ref as i, reactive as K, nextTick as M, defineComponent as $, onMounted as q, resolveComponent as N, createElementBlock as G, openBlock as J, createElementVNode as k, createVNode as f, withCtx as m, createTextVNode as P } from "vue";
|
|
2
|
-
import { s as x, u as E, E as b, g as L, c as R, d as Q, h as X } from "./menu-
|
|
3
|
-
import { u as Y, o as Z, U as ee } from "./index-
|
|
4
|
-
import { p as D } from "./index-
|
|
5
|
-
import { h as te } from "./index-
|
|
6
|
-
import { a as ae } from "./login-
|
|
7
|
-
import { c as S } from "./cloneDeep-
|
|
8
|
-
import { s as oe, d as le } from "./index-
|
|
2
|
+
import { s as x, u as E, E as b, g as L, c as R, d as Q, h as X } from "./menu-BEP1prun.js";
|
|
3
|
+
import { u as Y, o as Z, U as ee } from "./index-DCeuXqFD.js";
|
|
4
|
+
import { p as D } from "./index-Bxkr1n25.js";
|
|
5
|
+
import { h as te } from "./index-CANv_pXQ.js";
|
|
6
|
+
import { a as ae } from "./login-Bm1VDeb8.js";
|
|
7
|
+
import { c as S } from "./cloneDeep-5wimUhRj.js";
|
|
8
|
+
import { s as oe, d as le } from "./index-DRiyGflM.js";
|
|
9
9
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const A = Y(D), O = Z(D), g = E(D), { menus: H, configMenu: h, activeMenuPath: T, cacheStructures: se } = x(g), re = I(() => {
|
|
11
11
|
var t, e;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { G as kl, p as pl, u as vl, r as il, J as wl, K as xl, L as Dl, N as ul, O as Il, U as $l } from "./index-
|
|
1
|
+
import { G as kl, p as pl, u as vl, r as il, J as wl, K as xl, L as Dl, N as ul, O as Il, U as $l } from "./index-DCeuXqFD.js";
|
|
2
2
|
import { ref as A, watch as we, createElementBlock as Y, openBlock as O, createVNode as T, resolveComponent as ye, Fragment as be, renderList as Ce, createElementVNode as f, createCommentVNode as Re, toDisplayString as ae, withCtx as q, createBlock as ge, createTextVNode as ve, defineComponent as Me, reactive as ll, resolveDynamicComponent as Ge, computed as al, renderSlot as He, createSlots as Tl, mergeProps as El, unref as Bl, normalizeStyle as Fl, withModifiers as Ke } from "vue";
|
|
3
|
-
import { p as Ne } from "./index-
|
|
4
|
-
import { F as rl, d as Ee, s as Be, e as Al, f as fl, h as ke, i as qe, m as Ye, j as Je, k as Ze, l as Ll, n as Sl, a as Ol } from "./index-
|
|
5
|
-
import { f as ml, s as ze, E as We, u as Rl, g as el, b as tl } from "./menu-
|
|
3
|
+
import { p as Ne } from "./index-Bxkr1n25.js";
|
|
4
|
+
import { F as rl, d as Ee, s as Be, e as Al, f as fl, h as ke, i as qe, m as Ye, j as Je, k as Ze, l as Ll, n as Sl, a as Ol } from "./index-DRiyGflM.js";
|
|
5
|
+
import { f as ml, s as ze, E as We, u as Rl, g as el, b as tl } from "./menu-BEP1prun.js";
|
|
6
6
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { c as v } from "./cloneDeep-
|
|
8
|
-
import { E as je } from "./index-
|
|
9
|
-
import { s as Nl, a as Vl } from "./index-
|
|
7
|
+
import { c as v } from "./cloneDeep-5wimUhRj.js";
|
|
8
|
+
import { E as je } from "./index-DxVVM1Tr.js";
|
|
9
|
+
import { s as Nl, a as Vl } from "./index-CsGcGYJx.js";
|
|
10
10
|
import Pl from "./index-CZtXRS3l.js";
|
|
11
11
|
const Ul = (_) => _.match(/\((.*)\)/)[1], Wl = ml("formComp", {
|
|
12
12
|
state: () => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Re=require("./index-DA8ICHY5.cjs"),tt=require("./index-C205l3wo.cjs"),S=require("./index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-DZhmedFV.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=require("./menu-CuRWpNwE.cjs"),_t=require("./login-BU42wzWQ.cjs"),be=require("./index-BpPyaNFa.cjs"),s=require("./index-C8adk7wB.cjs"),we=require("./index-Ddxsvs4r.cjs"),mt=require("./index-gWGfGGET.cjs"),He=require("./cloneDeep-CmZXpGNl.cjs"),Ae=require("./index-Cqs93uTy.cjs"),gt=require("./index-Dr3DFMb8.cjs"),dt=require("./index-BRv125my.cjs"),Fe=require("./array-Bf7asNP8.cjs"),ut=require("./index.vue_vue_type_style_index_0_scoped_9d138dea_lang-Dbz_EdQo.cjs"),yt={class:"tree-container"},Gt=e.defineComponent({__name:"index",props:{treeData:Array,expand:{type:Boolean,default:!1}},emits:["nodeClick"],setup(l,{emit:t}){const o=t,a=l,r={children:"children",label:"label"},d=m=>{o("nodeClick",m)};return(m,n)=>{const f=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(f,{data:a==null?void 0:a.treeData,props:r,"default-expand-all":l.expand,onNodeClick:d},null,8,["data","default-expand-all"])])}}}),wt=ke._export_sfc(Gt,[["__scopeId","data-v-b4bd4658"]]),vt={key:0,class:"jointPanel-container"},Bt={class:"panel-content"},Ct=e.defineComponent({__name:"robotMenu",props:{model:Object},setup(l){const t=l,o=e.ref(!0),a=e.ref([]),r=(n,f=0)=>{const y=[];return Array.isArray(n)&&(n==null?void 0:n.length)>0&&n.forEach(p=>{if(!(p!=null&&p.isMesh)&&((p==null?void 0:p.type)==="URDFJoint"||(p==null?void 0:p.type)==="URDFLink")){const D={name:p==null?void 0:p.name,label:p==null?void 0:p.name,show:!0,level:f+1,isPenultimate:!1,type:p==null?void 0:p.type,id:p==null?void 0:p.id,limit:(p==null?void 0:p.limit)??"",children:r(p==null?void 0:p.children,f+1),path:p==null?void 0:p.name};y.push(D)}}),y},d=n=>n?[{name:n==null?void 0:n.name,label:n==null?void 0:n.name,show:!0,level:1,isPenultimate:!1,type:n==null?void 0:n.type,id:n==null?void 0:n.id,limit:(n==null?void 0:n.limit)??"",children:r(n==null?void 0:n.children,1),path:n==null?void 0:n.name}]:[],m=e.computed(()=>t!=null&&t.model?d(t.model):[]);return e.watch(m,n=>{a.value=JSON.parse(JSON.stringify(n))},{immediate:!0}),(n,f)=>{const y=e.resolveComponent("el-scrollbar"),p=e.resolveComponent("el-collapse-transition");return l.model?(e.openBlock(),e.createElementBlock("div",vt,[e.createElementVNode("div",{class:"panel-header",onClick:f[0]||(f[0]=D=>o.value=!o.value)},f[1]||(f[1]=[e.createElementVNode("h3",null,"URDF树",-1)])),e.createVNode(p,null,{default:e.withCtx(()=>[e.withDirectives(e.createVNode(y,{"max-height":"600px"},{default:e.withCtx(()=>[e.createElementVNode("div",Bt,[e.createVNode(wt,{treeData:a.value,expand:!0},null,8,["treeData"])])]),_:1},512),[[e.vShow,o.value]])]),_:1})])):e.createCommentVNode("",!0)}}}),bt=ke._export_sfc(Ct,[["__scopeId","data-v-bc2f3f82"]]),ht={type:"change"},ct={type:"start"},Pt={type:"end"},et=new s.Ray,pt=new s.Plane,kt=Math.cos(70*s.MathUtils.DEG2RAD),ce=new s.Vector3,ge=2*Math.PI,Y={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},rt=1e-6;class Et extends s.Controls{constructor(t,o=null){super(t,o),this.state=Y.NONE,this.target=new s.Vector3,this.cursor=new s.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=Rt.bind(this),this._onPointerDown=xt.bind(this),this._onPointerUp=Vt.bind(this),this._onContextMenu=Ft.bind(this),this._onMouseWheel=Nt.bind(this),this._onKeyDown=St.bind(this),this._onTouchStart=Dt.bind(this),this._onTouchMove=At.bind(this),this._onMouseDown=Mt.bind(this),this._onMouseMove=Tt.bind(this),this._interceptControlDown=Lt.bind(this),this._interceptControlUp=Ot.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(ht),this.update(),this.state=Y.NONE}update(t=null){const o=this.object.position;ce.copy(o).sub(this.target),ce.applyQuaternion(this._quat),this._spherical.setFromVector3(ce),this.autoRotate&&this.state===Y.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let a=this.minAzimuthAngle,r=this.maxAzimuthAngle;isFinite(a)&&isFinite(r)&&(a<-Math.PI?a+=ge:a>Math.PI&&(a-=ge),r<-Math.PI?r+=ge:r>Math.PI&&(r-=ge),a<=r?this._spherical.theta=Math.max(a,Math.min(r,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(a+r)/2?Math.max(a,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let d=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const m=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),d=m!=this._spherical.radius}if(ce.setFromSpherical(this._spherical),ce.applyQuaternion(this._quatInverse),o.copy(this.target).add(ce),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let m=null;if(this.object.isPerspectiveCamera){const n=ce.length();m=this._clampDistance(n*this._scale);const f=n-m;this.object.position.addScaledVector(this._dollyDirection,f),this.object.updateMatrixWorld(),d=!!f}else if(this.object.isOrthographicCamera){const n=new s.Vector3(this._mouse.x,this._mouse.y,0);n.unproject(this.object);const f=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),d=f!==this.object.zoom;const y=new s.Vector3(this._mouse.x,this._mouse.y,0);y.unproject(this.object),this.object.position.sub(y).add(n),this.object.updateMatrixWorld(),m=ce.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;m!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(m).add(this.object.position):(et.origin.copy(this.object.position),et.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(et.direction))<kt?this.object.lookAt(this.target):(pt.setFromNormalAndCoplanarPoint(this.object.up,this.target),et.intersectPlane(pt,this.target))))}else if(this.object.isOrthographicCamera){const m=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),m!==this.object.zoom&&(this.object.updateProjectionMatrix(),d=!0)}return this._scale=1,this._performCursorZoom=!1,d||this._lastPosition.distanceToSquared(this.object.position)>rt||8*(1-this._lastQuaternion.dot(this.object.quaternion))>rt||this._lastTargetPosition.distanceToSquared(this.target)>rt?(this.dispatchEvent(ht),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?ge/60*this.autoRotateSpeed*t:ge/60/60*this.autoRotateSpeed}_getZoomScale(t){const o=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*o)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,o){ce.setFromMatrixColumn(o,0),ce.multiplyScalar(-t),this._panOffset.add(ce)}_panUp(t,o){this.screenSpacePanning===!0?ce.setFromMatrixColumn(o,1):(ce.setFromMatrixColumn(o,0),ce.crossVectors(this.object.up,ce)),ce.multiplyScalar(t),this._panOffset.add(ce)}_pan(t,o){const a=this.domElement;if(this.object.isPerspectiveCamera){const r=this.object.position;ce.copy(r).sub(this.target);let d=ce.length();d*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*d/a.clientHeight,this.object.matrix),this._panUp(2*o*d/a.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/a.clientWidth,this.object.matrix),this._panUp(o*(this.object.top-this.object.bottom)/this.object.zoom/a.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,o){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const a=this.domElement.getBoundingClientRect(),r=t-a.left,d=o-a.top,m=a.width,n=a.height;this._mouse.x=r/m*2-1,this._mouse.y=-(d/n)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const o=this.domElement;this._rotateLeft(ge*this._rotateDelta.x/o.clientHeight),this._rotateUp(ge*this._rotateDelta.y/o.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let o=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(ge*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),o=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-ge*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),o=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(ge*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),o=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-ge*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),o=!0;break}o&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),a=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateStart.set(a,r)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),a=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._panStart.set(a,r)}}_handleTouchStartDolly(t){const o=this._getSecondPointerPosition(t),a=t.pageX-o.x,r=t.pageY-o.y,d=Math.sqrt(a*a+r*r);this._dollyStart.set(0,d)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const a=this._getSecondPointerPosition(t),r=.5*(t.pageX+a.x),d=.5*(t.pageY+a.y);this._rotateEnd.set(r,d)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const o=this.domElement;this._rotateLeft(ge*this._rotateDelta.x/o.clientHeight),this._rotateUp(ge*this._rotateDelta.y/o.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),a=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._panEnd.set(a,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const o=this._getSecondPointerPosition(t),a=t.pageX-o.x,r=t.pageY-o.y,d=Math.sqrt(a*a+r*r);this._dollyEnd.set(0,d),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const m=(t.pageX+o.x)*.5,n=(t.pageY+o.y)*.5;this._updateZoomParameters(m,n)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let o=0;o<this._pointers.length;o++)if(this._pointers[o]==t.pointerId){this._pointers.splice(o,1);return}}_isTrackingPointer(t){for(let o=0;o<this._pointers.length;o++)if(this._pointers[o]==t.pointerId)return!0;return!1}_trackPointer(t){let o=this._pointerPositions[t.pointerId];o===void 0&&(o=new s.Vector2,this._pointerPositions[t.pointerId]=o),o.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const o=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[o]}_customWheelEvent(t){const o=t.deltaMode,a={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(o){case 1:a.deltaY*=16;break;case 2:a.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(a.deltaY*=10),a}}function xt(l){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(l.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(l)&&(this._addPointer(l),l.pointerType==="touch"?this._onTouchStart(l):this._onMouseDown(l)))}function Rt(l){this.enabled!==!1&&(l.pointerType==="touch"?this._onTouchMove(l):this._onMouseMove(l))}function Vt(l){switch(this._removePointer(l),this._pointers.length){case 0:this.domElement.releasePointerCapture(l.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(Pt),this.state=Y.NONE;break;case 1:const t=this._pointers[0],o=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:o.x,pageY:o.y});break}}function Mt(l){let t;switch(l.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(l),this.state=Y.DOLLY;break;case s.MOUSE.ROTATE:if(l.ctrlKey||l.metaKey||l.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(l),this.state=Y.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(l),this.state=Y.ROTATE}break;case s.MOUSE.PAN:if(l.ctrlKey||l.metaKey||l.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(l),this.state=Y.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(l),this.state=Y.PAN}break;default:this.state=Y.NONE}this.state!==Y.NONE&&this.dispatchEvent(ct)}function Tt(l){switch(this.state){case Y.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(l);break;case Y.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(l);break;case Y.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(l);break}}function Nt(l){this.enabled===!1||this.enableZoom===!1||this.state!==Y.NONE||(l.preventDefault(),this.dispatchEvent(ct),this._handleMouseWheel(this._customWheelEvent(l)),this.dispatchEvent(Pt))}function St(l){this.enabled!==!1&&this._handleKeyDown(l)}function Dt(l){switch(this._trackPointer(l),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(l),this.state=Y.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(l),this.state=Y.TOUCH_PAN;break;default:this.state=Y.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(l),this.state=Y.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(l),this.state=Y.TOUCH_DOLLY_ROTATE;break;default:this.state=Y.NONE}break;default:this.state=Y.NONE}this.state!==Y.NONE&&this.dispatchEvent(ct)}function At(l){switch(this._trackPointer(l),this.state){case Y.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(l),this.update();break;case Y.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(l),this.update();break;case Y.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(l),this.update();break;case Y.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(l),this.update();break;default:this.state=Y.NONE}}function Ft(l){this.enabled!==!1&&l.preventDefault()}function Lt(l){l.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function Ot(l){l.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function jt(l){let t=null,o=null,a=null,r=null,d=null,m=null;const n=e.ref([]),f=e.ref(new s.Vector3),y=e.ref(new s.Vector3),p=()=>{if(!l.value)return;t=new s.Scene,t.background=new s.Color(15790320);const G=l.value;o=new s.PerspectiveCamera(75,G.clientWidth/G.clientHeight,.1,1e4),o.up.set(0,0,1),a=new s.WebGLRenderer({antialias:!0,alpha:!0}),a.setSize(G.clientWidth,G.clientHeight),a.localClippingEnabled=!0,a.shadowMap.enabled=!0,a.shadowMap.type=s.PCFSoftShadowMap,a.toneMapping=s.ACESFilmicToneMapping,a.toneMappingExposure=1,a.outputColorSpace=s.SRGBColorSpace,G.appendChild(a.domElement),r=new Et(o,a.domElement),r.enableDamping=!0,r.dampingFactor=.05,d=new s.Xe(o,a,{container:G,type:"cube",placement:"bottom-left",offset:{left:260,bottom:22},background:{color:"#D1D1D1",opacity:1},front:{label:"Top"},bottom:{label:"Front"},left:{label:"Left"},right:{label:"Right"},top:{label:"Back"},back:{label:"Bottom"}}),d.attachControls(r),D(),$()},D=()=>{const G=new s.AmbientLight(4210752,.6);t.add(G);const v=new s.DirectionalLight(16777215,2);v.position.set(10,10,8),v.castShadow=!0,v.shadow.mapSize.width=2048,v.shadow.mapSize.height=2048,v.shadow.camera.near=.5,v.shadow.camera.far=50,t.add(v);const c=new s.DirectionalLight(16777215,.8);c.position.set(-8,-8,6),t.add(c);const i=new s.DirectionalLight(16777215,.6);i.position.set(0,-15,2),t.add(i);const P=new s.HemisphereLight(16777215,4473924,.8);t.add(P);const h=new s.PointLight(16777215,1,50);h.position.set(15,15,15),t.add(h);const J=new s.PointLight(16777215,.5,50);J.position.set(-15,-15,15),t.add(J)},$=()=>{m=requestAnimationFrame($),r&&r.update(),a&&t&&o&&a.render(t,o),d&&d.render()},q=G=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(c=>{G[c]&&G[c].dispose&&G[c].dispose()}),G.dispose&&G.dispose()},j=G=>{G==null||G.traverse(v=>{v.geometry&&v.geometry.dispose(),v.material&&(Array.isArray(v.material)?v.material.forEach(c=>{q(c)}):q(v.material))})};return{currentModels:n,initialCameraPosition:f,initialTargetPosition:y,initThreeJS:p,handleResize:()=>{if(!l.value||!o||!a||!d)return;const G=l.value,v=G.clientWidth,c=G.clientHeight;o.aspect=v/c,o.updateProjectionMatrix(),a.setSize(v,c),d.update()},fitCameraToAllModels:()=>{if(!o||!r||n.value.length===0)return;const G=new s.Box3;n.value.forEach(J=>{G.expandByObject(J)});const v=G.getSize(new s.Vector3),c=G.getCenter(new s.Vector3),P=Math.max(v.x,v.y,v.z)*.8,h=new s.Vector3(c.x+P,c.y-P,c.z+P);o.position.copy(h),o.lookAt(c),r.target.copy(c),r.update(),f.value.copy(h),y.value.copy(c)},getThreeJSObjects:()=>({scene:t,camera:o,renderer:a,controls:r,gizmo:d}),clearAllModels:()=>{if(!t)return;n.value.forEach(v=>{t.remove(v),j(v)});const G=[];t.children.forEach(v=>{!v.isLight&&!v.isCamera&&G.push(v)}),G.forEach(v=>{t.remove(v),j(v)}),n.value=[]},cleanup:()=>{m&&cancelAnimationFrame(m),a&&a.dispose(),r&&r.dispose(),d&&d.dispose()}}}function Ut(l,t){const o=e.ref(!1);let a=null,r=12700,d=new s.Vector3,m=new s.Vector3,n=new s.Vector3,f=0,y=null;const p=_=>_<.5?4*_*_*_:1-Math.pow(-2*_+2,3)/2,D=_=>{const C=new s.Vector3,R=f*1.2,b=new s.Vector3(n.x+R,n.y,n.z),G=new s.Vector3(n.x,n.y+R,n.z),v=new s.Vector3(n.x,n.y-R,n.z);if(_<=.567){const i=_/.567*Math.PI*2;C.x=n.x+Math.cos(i)*R,C.z=n.z+Math.sin(i)*R,C.y=n.y}else if(_<=.724){const c=(_-.567)/.157,i=p(c);C.lerpVectors(b,G,i)}else if(_<=.881){const c=(_-.724)/.157,P=p(c)*Math.PI;C.x=n.x+Math.sin(P)*R,C.y=n.y+Math.cos(P)*R,C.z=n.z}else{const c=(_-.881)/.119,i=p(c);C.lerpVectors(v,d,i)}return C},$=()=>{const{camera:_,controls:C}=l();if(!_||!C)return;a||(a=Date.now());const R=Date.now()-a,b=Math.min(R/r,1);if(b>=1){j();return}const G=D(b);_.position.copy(G),_.lookAt(n),C.target.copy(n),y=requestAnimationFrame($)},q=()=>{if(t.value.length===0)return;const{camera:_,controls:C}=l();if(!_||!C)return;d.copy(_.position),m.copy(C.target);const R=new s.Box3;t.value.forEach(h=>{R.expandByObject(h)});const b=R.getSize(new s.Vector3);n=R.getCenter(new s.Vector3),f=Math.max(b.x,b.y,b.z)*1.2;const G=new s.Vector3(n.x+f*1.2,n.y,n.z);C.enabled=!1;const v=_.position.clone(),c=1e3,i=Date.now(),P=()=>{const h=Date.now()-i,J=Math.min(h/c,1),ee=p(J);_.position.lerpVectors(v,G,ee),_.lookAt(n),C.target.copy(n),J<1?requestAnimationFrame(P):(o.value=!0,a=null,$())};P()},j=()=>{o.value=!1,a=null,y&&(cancelAnimationFrame(y),y=null);const{controls:_}=l();_&&(_.enabled=!0,_.target.copy(m))};return{isAnimating:o,toggleAnimation:()=>{if(o.value){o.value=!1,a=null,y&&(cancelAnimationFrame(y),y=null);const{camera:_,controls:C}=l();if(!_||!C)return;C.enabled=!0;const R=_.position.clone(),b=C.target.clone(),G=1500,v=Date.now(),c=()=>{const i=Date.now()-v,P=Math.min(i/G,1),h=p(P);_.position.lerpVectors(R,d,h),C.target.lerpVectors(b,m,h),P<1&&requestAnimationFrame(c)};c()}else q()},startAnimation:q,stopAnimation:j}}function zt(l,t){const o=e.ref(!1),a=e.ref("none");let r=[],d=[],m=new s.Box3,n=new s.Vector3;const f=()=>{r=[new s.Plane(new s.Vector3(1,0,0),0),new s.Plane(new s.Vector3(0,1,0),0),new s.Plane(new s.Vector3(0,0,1),0)]},y=()=>{m.makeEmpty(),t.value.forEach(N=>{m.expandByObject(N)}),n=m.getCenter(new s.Vector3)},p=N=>{const _=m.getSize(new s.Vector3);let C,R,b;N==="x"?(C=new s.PlaneGeometry(_.z*1.2,_.y*1.2),R=new s.Vector3(n.x,n.y,n.z),b=new s.Euler(0,Math.PI/2,0)):N==="y"?(C=new s.PlaneGeometry(_.x*1.2,_.z*1.2),R=new s.Vector3(n.x,n.y,n.z),b=new s.Euler(Math.PI/2,0,0)):N==="z"&&(C=new s.PlaneGeometry(_.x*1.2,_.y*1.2),R=new s.Vector3(n.x,n.y,n.z),b=new s.Euler(0,0,0));const G=new s.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:s.DoubleSide,depthWrite:!1}),v=new s.Mesh(C,G);return v.position.copy(R),v.rotation.copy(b),v},D=()=>{if($(),q(),a.value==="none")return;y();let N=null;if(a.value==="x"?(r[0].constant=-n.x,N=r[0]):a.value==="y"?(r[1].constant=-n.y,N=r[1]):a.value==="z"&&(r[2].constant=-n.z,N=r[2]),N){t.value.forEach(C=>{C.traverse(R=>{R.isMesh&&R.material&&(Array.isArray(R.material)?R.material.forEach(b=>{b.clippingPlanes=[N]}):R.material.clippingPlanes=[N])})});const{scene:_}=l();if(_){const C=p(a.value);_.add(C),d.push(C)}}},$=()=>{t.value.forEach(N=>{N.traverse(_=>{_.isMesh&&_.material&&(Array.isArray(_.material)?_.material.forEach(C=>{C.clippingPlanes=[]}):_.material.clippingPlanes=[])})})},q=()=>{const{scene:N}=l();N&&d.forEach(_=>{N.remove(_),_.geometry.dispose(),_.material.dispose()}),d=[]};return{isClipping:o,activeClippingAxis:a,toggleClipping:()=>{o.value=!o.value,o.value?(f(),t.value.length>0&&y()):(a.value="none",$(),q())},updateClippingPlanes:D,clearClippingPlanes:$,clearClippingMeshes:q}}const It=[{"J1_Joint(GP1)":-.003172089,"J2_Joint(GP1)":-.096027484,"J3_Joint(GP1)":-1.118475479,"J4_Joint(GP1)":1.57418324,"J5_Joint(GP1)":1.572865909,"J6_Joint(GP1)":-.549141112,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.003172089,"J2_Joint(GP1)":-.096027484,"J3_Joint(GP1)":-1.118475479,"J4_Joint(GP1)":1.57418324,"J5_Joint(GP1)":1.572865909,"J6_Joint(GP1)":-.549141112,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.051468453,"J2_Joint(GP1)":-.094548525,"J3_Joint(GP1)":-1.117172585,"J4_Joint(GP1)":1.615414534,"J5_Joint(GP1)":1.598024878,"J6_Joint(GP1)":-.548360986,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.051468453,"J2_Joint(GP1)":-.094548525,"J3_Joint(GP1)":-1.117172585,"J4_Joint(GP1)":1.615414534,"J5_Joint(GP1)":1.598024878,"J6_Joint(GP1)":-.548360986,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.054269136,"J2_Joint(GP1)":-.09438254,"J3_Joint(GP1)":-1.117026191,"J4_Joint(GP1)":1.617807288,"J5_Joint(GP1)":1.59948194,"J6_Joint(GP1)":-.548274538,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.054269136,"J2_Joint(GP1)":-.09438254,"J3_Joint(GP1)":-1.117026191,"J4_Joint(GP1)":1.617807288,"J5_Joint(GP1)":1.59948194,"J6_Joint(GP1)":-.548274538,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.07106296,"J2_Joint(GP1)":-.093202686,"J3_Joint(GP1)":-1.115984624,"J4_Joint(GP1)":1.632161558,"J5_Joint(GP1)":1.608211995,"J6_Joint(GP1)":-.547662192,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.07106296,"J2_Joint(GP1)":-.093202686,"J3_Joint(GP1)":-1.115984624,"J4_Joint(GP1)":1.632161558,"J5_Joint(GP1)":1.608211995,"J6_Joint(GP1)":-.547662192,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.15885978,"J2_Joint(GP1)":-.081876359,"J3_Joint(GP1)":-1.105898511,"J4_Joint(GP1)":1.707488829,"J5_Joint(GP1)":1.653550174,"J6_Joint(GP1)":-.541902553,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.15885978,"J2_Joint(GP1)":-.081876359,"J3_Joint(GP1)":-1.105898511,"J4_Joint(GP1)":1.707488829,"J5_Joint(GP1)":1.653550174,"J6_Joint(GP1)":-.541902553,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.161596827,"J2_Joint(GP1)":-.081383753,"J3_Joint(GP1)":-1.105456248,"J4_Joint(GP1)":1.709847399,"J5_Joint(GP1)":1.654952777,"J6_Joint(GP1)":-.541656255,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.161596827,"J2_Joint(GP1)":-.081383753,"J3_Joint(GP1)":-1.105456248,"J4_Joint(GP1)":1.709847399,"J5_Joint(GP1)":1.654952777,"J6_Joint(GP1)":-.541656255,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.206647418,"J2_Joint(GP1)":-.072058188,"J3_Joint(GP1)":-1.097027028,"J4_Joint(GP1)":1.748782637,"J5_Joint(GP1)":1.677920661,"J6_Joint(GP1)":-.53705618,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.206647418,"J2_Joint(GP1)":-.072058188,"J3_Joint(GP1)":-1.097027028,"J4_Joint(GP1)":1.748782637,"J5_Joint(GP1)":1.677920661,"J6_Joint(GP1)":-.53705618,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.222883715,"J2_Joint(GP1)":-.068132789,"J3_Joint(GP1)":-1.093446644,"J4_Joint(GP1)":1.762872336,"J5_Joint(GP1)":1.686139573,"J6_Joint(GP1)":-.535155089,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.222883715,"J2_Joint(GP1)":-.068132789,"J3_Joint(GP1)":-1.093446644,"J4_Joint(GP1)":1.762872336,"J5_Joint(GP1)":1.686139573,"J6_Joint(GP1)":-.535155089,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.225553405,"J2_Joint(GP1)":-.067458613,"J3_Joint(GP1)":-1.092829796,"J4_Joint(GP1)":1.765192186,"J5_Joint(GP1)":1.687487837,"J6_Joint(GP1)":-.534830668,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.225553405,"J2_Joint(GP1)":-.067458613,"J3_Joint(GP1)":-1.092829796,"J4_Joint(GP1)":1.765192186,"J5_Joint(GP1)":1.687487837,"J6_Joint(GP1)":-.534830668,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.253794227,"J2_Joint(GP1)":-.059828421,"J3_Joint(GP1)":-1.085808974,"J4_Joint(GP1)":1.789788497,"J5_Joint(GP1)":1.701694229,"J6_Joint(GP1)":-.531201442,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.253794227,"J2_Joint(GP1)":-.059828421,"J3_Joint(GP1)":-1.085808974,"J4_Joint(GP1)":1.789788497,"J5_Joint(GP1)":1.701694229,"J6_Joint(GP1)":-.531201442,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.269664357,"J2_Joint(GP1)":-.055139299,"J3_Joint(GP1)":-1.081458321,"J4_Joint(GP1)":1.803657153,"J5_Joint(GP1)":1.709631958,"J6_Joint(GP1)":-.52900977,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.269664357,"J2_Joint(GP1)":-.055139299,"J3_Joint(GP1)":-1.081458321,"J4_Joint(GP1)":1.803657153,"J5_Joint(GP1)":1.709631958,"J6_Joint(GP1)":-.52900977,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.272271675,"J2_Joint(GP1)":-.05434119,"J3_Joint(GP1)":-1.080715087,"J4_Joint(GP1)":1.805938943,"J5_Joint(GP1)":1.710932883,"J6_Joint(GP1)":-.528639664,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.272271675,"J2_Joint(GP1)":-.05434119,"J3_Joint(GP1)":-1.080715087,"J4_Joint(GP1)":1.805938943,"J5_Joint(GP1)":1.710932883,"J6_Joint(GP1)":-.528639664,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.666340342,"J2_Joint(GP1)":.165158009,"J3_Joint(GP1)":-.846100311,"J4_Joint(GP1)":2.1593725,"J5_Joint(GP1)":1.90543118,"J6_Joint(GP1)":-.458042565,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.666340342,"J2_Joint(GP1)":.165158009,"J3_Joint(GP1)":-.846100311,"J4_Joint(GP1)":2.1593725,"J5_Joint(GP1)":1.90543118,"J6_Joint(GP1)":-.458042565,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.676764437,"J2_Joint(GP1)":.174126178,"J3_Joint(GP1)":-.835263449,"J4_Joint(GP1)":2.168745148,"J5_Joint(GP1)":1.911070297,"J6_Joint(GP1)":-.456401397,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.676764437,"J2_Joint(GP1)":.174126178,"J3_Joint(GP1)":-.835263449,"J4_Joint(GP1)":2.168745148,"J5_Joint(GP1)":1.911070297,"J6_Joint(GP1)":-.456401397,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.678469051,"J2_Joint(GP1)":.175612656,"J3_Joint(GP1)":-.833458171,"J4_Joint(GP1)":2.170275986,"J5_Joint(GP1)":1.911999806,"J6_Joint(GP1)":-.456138025,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.678469051,"J2_Joint(GP1)":.175612656,"J3_Joint(GP1)":-.833458171,"J4_Joint(GP1)":2.170275986,"J5_Joint(GP1)":1.911999806,"J6_Joint(GP1)":-.456138025,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.696352039,"J2_Joint(GP1)":.191555012,"J3_Joint(GP1)":-.813935936,"J4_Joint(GP1)":2.186300561,"J5_Joint(GP1)":1.921886405,"J6_Joint(GP1)":-.453466278,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.696352039,"J2_Joint(GP1)":.191555012,"J3_Joint(GP1)":-.813935936,"J4_Joint(GP1)":2.186300561,"J5_Joint(GP1)":1.921886405,"J6_Joint(GP1)":-.453466278,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.706279886,"J2_Joint(GP1)":.200687848,"J3_Joint(GP1)":-.80262089,"J4_Joint(GP1)":2.195165367,"J5_Joint(GP1)":1.927490122,"J6_Joint(GP1)":-.452060238,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.706279886,"J2_Joint(GP1)":.200687848,"J3_Joint(GP1)":-.80262089,"J4_Joint(GP1)":2.195165367,"J5_Joint(GP1)":1.927490122,"J6_Joint(GP1)":-.452060238,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.707903161,"J2_Joint(GP1)":.202200891,"J3_Joint(GP1)":-.800737154,"J4_Joint(GP1)":2.196612452,"J5_Joint(GP1)":1.928414793,"J6_Joint(GP1)":-.45183595,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.707903161,"J2_Joint(GP1)":.202200891,"J3_Joint(GP1)":-.800737154,"J4_Joint(GP1)":2.196612452,"J5_Joint(GP1)":1.928414793,"J6_Joint(GP1)":-.45183595,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.734200754,"J2_Joint(GP1)":.227518671,"J3_Joint(GP1)":-.768834774,"J4_Joint(GP1)":2.219949057,"J5_Joint(GP1)":1.943757592,"J6_Joint(GP1)":-.448441828,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.734200754,"J2_Joint(GP1)":.227518671,"J3_Joint(GP1)":-.768834774,"J4_Joint(GP1)":2.219949057,"J5_Joint(GP1)":1.943757592,"J6_Joint(GP1)":-.448441828,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.781149218,"J2_Joint(GP1)":.276839725,"J3_Joint(GP1)":-.704674666,"J4_Joint(GP1)":2.260965081,"J5_Joint(GP1)":1.973194737,"J6_Joint(GP1)":-.443707106,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.781149218,"J2_Joint(GP1)":.276839725,"J3_Joint(GP1)":-.704674666,"J4_Joint(GP1)":2.260965081,"J5_Joint(GP1)":1.973194737,"J6_Joint(GP1)":-.443707106,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.782563443,"J2_Joint(GP1)":.278415273,"J3_Joint(GP1)":-.702582574,"J4_Joint(GP1)":2.262184408,"J5_Joint(GP1)":1.974129872,"J6_Joint(GP1)":-.443595316,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.782563443,"J2_Joint(GP1)":.278415273,"J3_Joint(GP1)":-.702582574,"J4_Joint(GP1)":2.262184408,"J5_Joint(GP1)":1.974129872,"J6_Joint(GP1)":-.443595316,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.790970382,"J2_Joint(GP1)":.287898042,"J3_Joint(GP1)":-.689936686,"J4_Joint(GP1)":2.269409635,"J5_Joint(GP1)":1.979755278,"J6_Joint(GP1)":-.442972648,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.790970382,"J2_Joint(GP1)":.287898042,"J3_Joint(GP1)":-.689936686,"J4_Joint(GP1)":2.269409635,"J5_Joint(GP1)":1.979755278,"J6_Joint(GP1)":-.442972648,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.81430373,"J2_Joint(GP1)":.315316096,"J3_Joint(GP1)":-.652859101,"J4_Joint(GP1)":2.28923367,"J5_Joint(GP1)":1.996012131,"J6_Joint(GP1)":-.441647984,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.81430373,"J2_Joint(GP1)":.315316096,"J3_Joint(GP1)":-.652859101,"J4_Joint(GP1)":2.28923367,"J5_Joint(GP1)":1.996012131,"J6_Joint(GP1)":-.441647984,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.815624991,"J2_Joint(GP1)":.31691936,"J3_Joint(GP1)":-.650667784,"J4_Joint(GP1)":2.290345082,"J5_Joint(GP1)":1.9969632,"J6_Joint(GP1)":-.441592027,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.815624991,"J2_Joint(GP1)":.31691936,"J3_Joint(GP1)":-.650667784,"J4_Joint(GP1)":2.290345082,"J5_Joint(GP1)":1.9969632,"J6_Joint(GP1)":-.441592027,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.85790624,"J2_Joint(GP1)":.371411093,"J3_Joint(GP1)":-.574724957,"J4_Joint(GP1)":2.325139523,"J5_Joint(GP1)":2.029413042,"J6_Joint(GP1)":-.441053498,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307}],$t={key:0,class:"jointPanel-container"},Ht={class:"panel-actions"},Yt=["disabled"],Kt={class:"panel-content"},Zt={key:0,class:"joints-list"},qt={class:"joint-info-row"},Xt={class:"joint-left"},Wt={class:"joint-name"},Qt={class:"joint-range"},eo={class:"joint-type"},to={key:0,class:"joint-control-row"},oo={class:"slider-container"},no=["min","max","value","onInput","disabled"],io={class:"value-display"},ao={class:"joint-value"},so={class:"unit"},lo={key:1,class:"empty-state"},ro=1e3,co={__name:"jointPanel",props:{model:Object},setup(l,{expose:t}){const o=l,a=e.ref(!0),r=e.ref([]),d=e.ref(null),m=e.ref(!1),n=e.ref(null),f=It;f.length>0&&Object.keys(f[0]);const y=(c,i=!1)=>c==="revolute"?i?Math.PI:-Math.PI:c==="prismatic"?i?1:-1:0,p=c=>{if(!c||!c.joints)return console.warn("URDF模型没有关节信息"),[];const i=[];return Object.keys(c.joints).forEach(P=>{const h=c.joints[P];if(h._jointType==="fixed")return;const J=h.limit?{lower:h.limit.lower??y(h._jointType,!1),upper:h.limit.upper??y(h._jointType,!0)}:{lower:y(h._jointType,!1),upper:y(h._jointType,!0)};i.push({name:P,type:h._jointType||"unknown",limit:J,currentValue:h.angle||0,urdfJoint:h})}),i.sort((P,h)=>P.name.localeCompare(h.name))},D=(c,i)=>{const P=r.value.find(J=>J.name===c);if(!P)return;const h=parseFloat(i);if(P.limit){const J=Math.max(P.limit.lower,Math.min(P.limit.upper,h));P.currentValue=J}else P.currentValue=h;o.model&&o.model.setJointValue?o.model.setJointValue(c,P.currentValue):P.urdfJoint&&P.urdfJoint.setJointValue(P.currentValue)},$=c=>{c&&Object.keys(c).forEach(i=>{const P=c[i],h=r.value.find(J=>J.name===i);h&&(h.currentValue=P,o.model&&o.model.setJointValue?o.model.setJointValue(i,P):h.urdfJoint&&h.urdfJoint.setJointValue(P))})},q=(c,i,P)=>c+(i-c)*P,j=(c,i,P)=>{if(!c||!i)return c||i;const h={};return Object.keys(c).forEach(J=>{const ee=c[J],U=i[J];h[J]=q(ee,U||ee,P)}),h},N=()=>{m.value?C():_()},_=()=>{if(f.length===0){console.warn("没有动画数据");return}m.value=!0;const c=f.length,i=60,P=ro/i;let h=0,J=0;const ee=()=>{if(!m.value)return;const U=h/i,Ge=f[J],ve=f[J+1];if(ve){const Ne=j(Ge,ve,U);$(Ne)}else $(Ge);if(h++,h>=i&&(h=0,J++,J>=c-1)){C();return}n.value=setTimeout(ee,P)};ee()},C=()=>{m.value=!1,n.value&&(clearTimeout(n.value),n.value=null)},R=()=>{r.value.forEach(c=>{(c.type==="revolute"||c.type==="prismatic")&&D(c.name,0)})};e.watch(()=>o.model,c=>{c?r.value=p(c):r.value=[]},{immediate:!0});const b=()=>{!o.model||m.value||r.value.forEach(c=>{c.urdfJoint&&c.urdfJoint.angle!==void 0&&(c.currentValue=c.urdfJoint.angle)})},G=()=>{const c=()=>{b(),d.value=requestAnimationFrame(c)};c()},v=()=>{d.value&&(cancelAnimationFrame(d.value),d.value=null)};return e.onMounted(()=>{G()}),e.onUnmounted(()=>{v(),C()}),t({startAnimation:_}),(c,i)=>{const P=e.resolveComponent("el-scrollbar"),h=e.resolveComponent("el-collapse-transition");return l.model?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",{class:"panel-header",onClick:i[0]||(i[0]=J=>a.value=!a.value)},i[1]||(i[1]=[e.createElementVNode("h3",null,"关节控制面板",-1)])),e.createVNode(h,null,{default:e.withCtx(()=>[e.withDirectives(e.createVNode(P,{"max-height":"650px"},{default:e.withCtx(()=>[e.createElementVNode("div",Ht,[e.createElementVNode("button",{onClick:N,class:"animate-btn"},e.toDisplayString(m.value?"停止动画":"开始动画"),1),e.createElementVNode("button",{onClick:R,disabled:m.value},"重置所有关节",8,Yt)]),e.createElementVNode("div",Kt,[r.value.length>0?(e.openBlock(),e.createElementBlock("div",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,J=>{var ee,U,Ge,ve;return e.openBlock(),e.createElementBlock("div",{key:J.name,class:"joint-item"},[e.createElementVNode("div",qt,[e.createElementVNode("div",Xt,[e.createElementVNode("span",Wt,e.toDisplayString(J.name),1),e.createElementVNode("span",Qt," ["+e.toDisplayString(((ee=J.limit)==null?void 0:ee.lower.toFixed(2))??(J.type==="revolute"?"-3.14":"-1.00"))+", "+e.toDisplayString(((U=J.limit)==null?void 0:U.upper.toFixed(2))??(J.type==="revolute"?"3.14":"1.00"))+"] ",1)]),e.createElementVNode("span",eo,e.toDisplayString(J.type),1)]),J.type==="revolute"||J.type==="prismatic"?(e.openBlock(),e.createElementBlock("div",to,[e.createElementVNode("div",oo,[e.createElementVNode("input",{type:"range",min:((Ge=J.limit)==null?void 0:Ge.lower)??(J.type==="revolute"?-Math.PI:-1),max:((ve=J.limit)==null?void 0:ve.upper)??(J.type==="revolute"?Math.PI:1),step:.01,value:J.currentValue,onInput:Ne=>D(J.name,Ne.target.value),class:"joint-slider",disabled:m.value},null,40,no)]),e.createElementVNode("div",io,[e.createElementVNode("span",ao,e.toDisplayString(J.currentValue.toFixed(3)),1),e.createElementVNode("span",so,e.toDisplayString(J.type==="revolute"?"rad":"m"),1)])])):e.createCommentVNode("",!0)])}),128))])):(e.openBlock(),e.createElementBlock("div",lo,i[2]||(i[2]=[e.createElementVNode("p",null,"未检测到可控制的关节",-1)])))])]),_:1},512),[[e.vShow,a.value]])]),_:1})])):e.createCommentVNode("",!0)}}},uo=ke._export_sfc(co,[["__scopeId","data-v-69f8c556"]]),ho={class:"obj-viewer-container"},po={class:"floating-controls"},_o=["disabled"],mo=["disabled","title"],Po={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},fo={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Jo=["disabled"],go=["title"],yo={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Go={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},wo={key:2,class:"clipping-panel"},vo={class:"panel-content"},Bo={class:"radio-group"},Co={class:"radio-label"},bo={class:"radio-label"},ko={class:"radio-label"},Eo={class:"radio-label"},xo={key:3,class:"loading-overlay"},Ro={__name:"threeModel",setup(l,{expose:t}){let o=null;const a=e.ref(null),r=e.ref(!1),d=e.ref(""),m=e.ref(!1),n=e.ref(!1),f=e.ref(!1),y=e.ref(null),{currentModels:p,initialCameraPosition:D,initialTargetPosition:$,initThreeJS:q,handleResize:j,fitCameraToAllModels:N,getThreeJSObjects:_,clearAllModels:C,cleanup:R}=jt(a),{isAnimating:b,toggleAnimation:G,stopAnimation:v}=Ut(_,p),{isClipping:c,activeClippingAxis:i,toggleClipping:P,updateClippingPlanes:h}=zt(_,p),{addModelsFromUrls:J,loadModelByDefaultPath:ee,urdfModel:U}=s.useModelLoader(_,p,r,d,C),Ge=()=>{if(f.value||p.value.length===0)return;f.value=!0,b.value&&v();const{camera:de,controls:B}=_();if(!de||!B)return;B.enabled=!0;const z=Ee=>Ee<.5?4*Ee*Ee*Ee:1-Math.pow(-2*Ee+2,3)/2,Le=de.position.clone(),it=B.target.clone(),at=1500,st=Date.now(),Oe=()=>{const Ee=Date.now()-st,Qe=Math.min(Ee/at,1),w=z(Qe);de.position.lerpVectors(Le,D.value,w),B.target.lerpVectors(it,$.value,w),Qe<1?requestAnimationFrame(Oe):f.value=!1};Oe()},ve=()=>{m.value=!0,U&&(y.value.startAnimation(),m.value=!1)};e.watch(()=>U,()=>{y.value.startAnimation(),m.value=!1},{deep:!0});const Ne=()=>{document.fullscreenElement?document.exitFullscreen().then(()=>{n.value=!1,e.nextTick(()=>{j()})}).catch(de=>{console.error("无法退出全屏:",de)}):a.value.requestFullscreen().then(()=>{n.value=!0,e.nextTick(()=>{j()})}).catch(de=>{console.error("无法进入全屏:",de)})},Xe=()=>{n.value=!!document.fullscreenElement,n.value||e.nextTick(()=>{j()})},We=async(de,B)=>{try{b.value&&v(),c.value&&P();const z=await B(de);return N(),z}catch(z){throw console.error("加载模型失败:",z),z}},ot=async de=>We(de,J),nt=async de=>We(de,ee);return e.onMounted(async()=>{await e.nextTick(),q(),o=_().scene,window.addEventListener("resize",j),document.addEventListener("fullscreenchange",Xe)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",j),document.removeEventListener("fullscreenchange",Xe),b.value&&v(),R()}),t({addModelsFromUrls:ot,loadModelByDefaultPath:nt,startRunningAnimation:ve}),(de,B)=>(e.openBlock(),e.createElementBlock("div",ho,[e.unref(U)?(e.openBlock(),e.createBlock(bt,{key:0,model:e.unref(U)},null,8,["model"])):e.createCommentVNode("",!0),e.unref(U)?(e.openBlock(),e.createBlock(uo,{key:1,model:e.unref(U),scene:e.unref(o),ref_key:"jointRef",ref:y},null,8,["model","scene"])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"threejsContainer",ref:a,class:"threejs-container"},null,512),e.createElementVNode("div",po,[e.createElementVNode("button",{onClick:Ge,class:e.normalizeClass(["control-btn","reset-btn"]),disabled:r.value||e.unref(p).length===0||f.value,title:"重置"},B[10]||(B[10]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),e.createElementVNode("polyline",{points:"9,22 9,12 15,12 15,22"})],-1)]),8,_o),e.createElementVNode("button",{onClick:B[0]||(B[0]=(...z)=>e.unref(G)&&e.unref(G)(...z)),class:e.normalizeClass(["control-btn","animation-btn",{active:e.unref(b)}]),disabled:r.value||e.unref(p).length===0,title:e.unref(b)?"停止动画":"动画视图"},[e.unref(b)?(e.openBlock(),e.createElementBlock("svg",fo,B[12]||(B[12]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("rect",{x:"9.5",y:"8",width:"2",height:"8",fill:"currentColor"},null,-1),e.createElementVNode("rect",{x:"12.5",y:"8",width:"2",height:"8",fill:"currentColor"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",Po,B[11]||(B[11]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"},null,-1)])))],10,mo),e.createElementVNode("button",{onClick:B[1]||(B[1]=(...z)=>e.unref(P)&&e.unref(P)(...z)),class:e.normalizeClass(["control-btn","clipping-btn",{active:e.unref(c)}]),disabled:r.value||e.unref(p).length===0,title:"剖面视图"},B[13]||(B[13]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("rect",{x:"3",y:"3",width:"18",height:"18"}),e.createElementVNode("line",{x1:"-14",y1:"12",x2:"30",y2:"12","stroke-dasharray":"4,2"})],-1)]),10,Jo),e.createElementVNode("button",{onClick:Ne,class:e.normalizeClass(["control-btn","fullscreen-btn"]),title:n.value?"退出全屏":"全屏"},[n.value?(e.openBlock(),e.createElementBlock("svg",Go,B[15]||(B[15]=[e.createElementVNode("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",yo,B[14]||(B[14]=[e.createElementVNode("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},null,-1)])))],8,go)]),e.unref(c)?(e.openBlock(),e.createElementBlock("div",wo,[e.createElementVNode("div",vo,[e.createElementVNode("div",Bo,[e.createElementVNode("label",Co,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":B[2]||(B[2]=z=>e.isRef(i)?i.value=z:null),onChange:B[3]||(B[3]=(...z)=>e.unref(h)&&e.unref(h)(...z))},null,544),[[e.vModelRadio,e.unref(i)]]),B[16]||(B[16]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",bo,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":B[4]||(B[4]=z=>e.isRef(i)?i.value=z:null),onChange:B[5]||(B[5]=(...z)=>e.unref(h)&&e.unref(h)(...z))},null,544),[[e.vModelRadio,e.unref(i)]]),B[17]||(B[17]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",ko,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":B[6]||(B[6]=z=>e.isRef(i)?i.value=z:null),onChange:B[7]||(B[7]=(...z)=>e.unref(h)&&e.unref(h)(...z))},null,544),[[e.vModelRadio,e.unref(i)]]),B[18]||(B[18]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",Eo,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":B[8]||(B[8]=z=>e.isRef(i)?i.value=z:null),onChange:B[9]||(B[9]=(...z)=>e.unref(h)&&e.unref(h)(...z))},null,544),[[e.vModelRadio,e.unref(i)]]),B[19]||(B[19]=e.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",xo,[B[20]||(B[20]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(d.value),1)])):e.createCommentVNode("",!0)]))}},Vo=ke._export_sfc(Ro,[["__scopeId","data-v-3d52b35a"]]);function Mo(l,t,o,a,r,d){const m=e.resolveComponent("svg-icon"),n=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(n,{mode:l.mode,menuList:l.renderMenuList,onClickMenu:l.clickMenu,onOpenMenu:l.openMenu,onCloseMenu:l.closeMenu},{title:e.withCtx(({menu:f})=>[e.createVNode(m,{name:f.icon??"Fold",style:{width:"clamp(16px, 1.25rem, 20px)",height:"clamp(16px, 1.25rem, 20px)","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(f.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const ft=ke._export_sfc(S._sfc_main,[["render",Mo],["__scopeId","data-v-5c2d7ed2"]]),To={class:"bread-content"},No=["onClick"],So={key:0,class:"split-title"},Do={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(l,{emit:t}){const o=l,a=e.ref([]),r=t;e.onMounted(()=>{a.value=o==null?void 0:o.breadArray}),e.watch(()=>o==null?void 0:o.breadArray,()=>{a.value=o==null?void 0:o.breadArray},{deep:!0,immediate:!0});const d=m=>{r("click",m)};return(m,n)=>(e.openBlock(),e.createElementBlock("div",To,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(f,y)=>{var p;return e.openBlock(),e.createElementBlock("div",{key:y,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:D=>d(f),style:e.normalizeStyle({opacity:((p=a.value)==null?void 0:p.length)-1===y?"0.7":"1"})},e.toDisplayString(f.value),13,No),y!==a.value.length-1&&Array.isArray(a.value)?(e.openBlock(),e.createElementBlock("div",So,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},Jt=ke._export_sfc(Do,[["__scopeId","data-v-ded7e2bd"]]),Ao={class:"structure-buttons"},Fo={class:"structure-paths"},Lo={class:"client-header-user"},Oo={class:"model-select"},jo={class:"model-show"},Uo={class:"model-fill"},zo={class:"client-header-menu"},Io={class:"client-header-user"},$o={class:"client-main-operate"},Ho={key:0,class:"item-view-group"},Yo={class:"client-main-operate"},Ko=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},setup(l){const t=s.useUnit(we.pinia),{selectTitle:o}=M.storeToRefs(t),a=_t.useLoginState(),{loginUserInfo:r}=M.storeToRefs(a),d=s.useModelComp(we.pinia),{isEdit:m}=M.storeToRefs(d),n=M.useMenuState(we.pinia),{importLoading:f}=M.storeToRefs(n),y=e.ref("");return(p,D)=>{const $=e.resolveComponent("el-button"),q=e.resolveComponent("el-avatar"),j=e.resolveComponent("el-header"),N=e.resolveComponent("el-container"),_=e.resolveComponent("el-icon"),C=e.resolveComponent("el-input"),R=e.resolveComponent("el-aside"),b=e.resolveComponent("el-main"),G=e.resolveComponent("router-view"),v=e.resolveDirective("loading");return e.unref(m)==="edit"?(e.openBlock(),e.createBlock(N,{key:0,class:"client-container"},{default:e.withCtx(()=>[e.createVNode(j,{class:"client-structure-header"},{default:e.withCtx(()=>{var c;return[e.createElementVNode("div",Ao,[e.createVNode($,{id:"transparentBgButton",onClick:e.unref(S.onBack)},{default:e.withCtx(()=>D[2]||(D[2]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[2]},8,["onClick"]),e.createVNode($,{id:"transparentBgButton",onClick:D[0]||(D[0]=i=>{var P,h;return e.unref(S.clickSavePage)((h=(P=e.unref(o))==null?void 0:P.map(J=>J.value))==null?void 0:h.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[D[3]||(D[3]=e.createTextVNode(" 保存页面 "))]),_:1,__:[3]})]),e.createElementVNode("div",Fo,[(e.openBlock(),e.createBlock(Jt,{key:e.unref(o),breadArray:e.unref(o),onClick:e.unref(S.onClick)},null,8,["breadArray","onClick"]))]),e.createElementVNode("div",Lo,[e.renderSlot(p.$slots,"default",{},void 0,!0),e.createVNode(q,{size:35,src:(c=e.unref(r))==null?void 0:c.avatarUrl},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString(((i=e.unref(r))==null?void 0:i.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(m)==="edit"?(e.openBlock(),e.createBlock(N,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Oo,[e.createVNode(Re.modelSelect)]),e.createElementVNode("div",jo,[e.createVNode(Re.modelShow)]),e.createElementVNode("div",Uo,[e.createVNode(Re.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3})):e.withDirectives((e.openBlock(),e.createBlock(N,{key:1,class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(j,{class:"client-header"},{default:e.withCtx(()=>{var c;return[D[6]||(D[6]=e.createElementVNode("div",{class:"client-header-logo"}," ISIP ",-1)),e.createElementVNode("div",zo,[e.createVNode(ft,{mode:"horizontal"})]),e.createElementVNode("div",Io,[e.createVNode(C,{modelValue:y.value,"onUpdate:modelValue":D[1]||(D[1]=i=>y.value=i),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(_,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(mt.search_default))]),_:1})]),_:1},8,["modelValue"]),l.showButton?(e.openBlock(),e.createBlock($,{key:0,id:"transparentBgButton",onClick:e.unref(S.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[D[4]||(D[4]=e.createTextVNode(" 生成APP "))]),_:1,__:[4]},8,["onClick"])):e.createCommentVNode("",!0),l.showButton&&e.unref(m)==="view"?(e.openBlock(),e.createBlock($,{key:1,id:"transparentBgButton",onClick:e.unref(S.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[D[5]||(D[5]=e.createTextVNode(" 修改布局 "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"default",{},void 0,!0),e.createVNode(q,{size:35,src:(c=e.unref(r))==null?void 0:c.avatarUrl},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString(((i=e.unref(r))==null?void 0:i.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3,__:[6]}),e.createVNode(N,{class:"client-body"},{default:e.withCtx(()=>[p.$route.path==="/"?(e.openBlock(),e.createBlock(b,{key:0,class:"client-main"},{default:e.withCtx(()=>{var c;return[e.createVNode(R,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(tt.default,{mode:"vertical"})]),_:1}),e.createElementVNode("div",$o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((c=e.unref(He.cloneDeep)(e.unref(S.showItems)))==null?void 0:c.filter(i=>i.comp!=="FormTop"),(i,P)=>{var h;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:P},[((h=i==null?void 0:i.comp)==null?void 0:h.toUpperCase())!=="TABLE"&&i.name?(e.openBlock(),e.createElementBlock("div",Ho,e.toDisplayString(i.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S.getComponents)(i.comp)),{compName:i.name,itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:(i==null?void 0:i.id)??P,onChange:e.unref(S.onChange),index:(i==null?void 0:i.id)??P,onContentChange:e.unref(S.onContentChange),onPageChange:e.unref(S.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])]}),_:1})):(e.openBlock(),e.createBlock(b,{key:1,class:"client-main"},{default:e.withCtx(()=>[e.createVNode(R,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(tt.default,{mode:"vertical"})]),_:1}),e.createElementVNode("div",Yo,[e.createVNode(G)])]),_:1}))]),_:1})]),_:3})),[[v,e.unref(f)]])}}}),Zo=ke._export_sfc(Ko,[["__scopeId","data-v-834dcdf2"]]),F=[{key:"FitCurve_Eleven",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"},{key:"MakeShape",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"},{key:"FillEmpty",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"},{key:"ToolPathFakeFast",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"},{key:"FiveAxisCalculator",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"},{key:"DetectionAlgorithm",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"},{key:"FeatureSelectionAlgorithm_FFS",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"},{key:"AIParameterOptimization",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"}],$e=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],qo=["src"],Xo={class:"structure-buttons"},Wo={class:"structure-paths"},Qo={class:"client-header-user"},en={class:"model-select"},tn={class:"model-show"},on={class:"model-fill"},nn={class:"client-header-logo"},an={class:"client-header-menu"},sn={class:"client-header-user"},ln={class:"client-main-content"},rn={key:0,class:"item-view-group"},cn={key:0,class:"calculator"},dn={key:1,class:"calculator"},un={key:2,class:"calculator"},hn={key:3,class:"calculator"},pn={class:"router-aside"},_n={class:"router-main"},mn=e.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},setup(l){const t=s.useUnit(we.pinia),o=e.ref(0),a=e.ref(!1),{selectTitle:r}=M.storeToRefs(t),d=e.ref(!1),m=e.ref(!1),n=e.ref(!1),f=s.useTableComp(we.pinia),y=e.ref(!1),{tableShowThree:p}=M.storeToRefs(f),D=_t.useLoginState(),{loginUserInfo:$}=M.storeToRefs(D),q=e.ref(null),j=s.useModelComp(we.pinia),{isEdit:N}=M.storeToRefs(j),_=M.useMenuState(we.pinia),C=gt.useFormComp(we.pinia),{objUrl:R,blobUrls:b}=M.storeToRefs(C),G=e.ref(null),v=e.ref(!1),c=e.ref(!0),i=e.ref(!1),{importLoading:P,activeMenuPath:h,platName:J}=M.storeToRefs(_),ee=e.ref(!1),U=e.ref(!1),Ge=e.ref(!1);e.watch(()=>h.value,async w=>{w&&(Ge.value=!0),w==="弯管仿真加工管理/仿真动画生成"?ee.value=!0:ee.value=!1,w==="弯管仿真加工管理/程序输出"?U.value=!0:U.value=!1,$e!=null&&$e.find(u=>{var T;return(u==null?void 0:u.key)===((T=w==null?void 0:w.split("/"))==null?void 0:T[(w==null?void 0:w.split("/").length)-1])})?y.value=!0:y.value=!1},{immediate:!0});const ve=()=>{G.value.startRunningAnimation()},Ne=async()=>{var g,H,K;let w="";(g=S.showItems.value)==null||g.forEach((E,Q)=>{var ie,te,_e;Q===S.showItems.value.length-1&&(w=(_e=(te=(ie=E.compData)==null?void 0:ie[0])==null?void 0:te.contents)==null?void 0:_e[0].value)});const u=await M.axios.get(w,{responseType:"blob",headers:{"Content-Type":"application/json"}}),T=new Blob([u.data],{type:"application/octet-stream;charset=UTF-8"});let L="";(K=(H=u.config.url)==null?void 0:H.split("/"))==null||K.forEach((E,Q)=>{var ie,te;((te=(ie=u.config.url)==null?void 0:ie.split("/"))==null?void 0:te.length)-1===Q&&(L=E)});var k=document.createElement("a"),V=window.URL.createObjectURL(T);k.style.display="none",k.href=V,k.download=decodeURI(L),document.body.appendChild(k),k.click(),document.body.removeChild(k),window.URL.revokeObjectURL(V)},Xe=async()=>{var L;let w="";(L=S.showItems.value)==null||L.forEach((k,V)=>{var g,H,K;V===S.showItems.value.length-1&&(w=(K=(H=(g=k.compData)==null?void 0:g[0])==null?void 0:H.contents)==null?void 0:K[0].value)});const u=await M.axios.get(w,{responseType:"blob",headers:{"Content-Type":"application/json"}}),T=new Blob([u.data],{type:"text/plain"});q.value&&URL.revokeObjectURL(q.value),q.value=URL.createObjectURL(T),v.value=!0},We=async()=>{var V,g,H,K,E;i.value=!0;const w=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken");let u=((H=(g=(V=$e==null?void 0:$e.find(Q=>{var ie,te,_e;return(Q==null?void 0:Q.key)===((_e=(ie=h.value)==null?void 0:ie.split("/"))==null?void 0:_e[((te=h.value)==null?void 0:te.split("/").length)-1])}))==null?void 0:V.value)==null?void 0:g.split(","))==null?void 0:H[0])??"";const T=await M.axios.post(u,null,{responseType:"blob",headers:{Authorization:w,"Content-Type":"application/json"}}),L=new Blob([T.data],{type:"application/octet-stream;charset=UTF-8"});let k={suffix:"."+((E=u==null?void 0:u.split("."))==null?void 0:E[((K=u==null?void 0:u.split("."))==null?void 0:K.length)-1]),blob:L,mtlBlobs:[]};i.value=!1,G.value.loadModelByDefaultPath([k])},ot=async w=>{var L,k,V,g,H,K,E;const u=(L=w==null?void 0:w.split("/"))==null?void 0:L[0],T=await M.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:u}});return((k=T==null?void 0:T.data)==null?void 0:k.type)==="success"?((E=(K=(H=(g=(V=T==null?void 0:T.data)==null?void 0:V.result)==null?void 0:g[0])==null?void 0:H.value)==null?void 0:K.tableData)==null?void 0:E.隐藏三维显示)!==!0:!0};e.watch(()=>S.showItems.value,()=>{var w,u,T,L,k;if(((w=S.showItems.value)==null?void 0:w.length)===2&&((u=S.showItems.value)!=null&&u.find(V=>(V==null?void 0:V.name)==="输入"))&&((T=S.showItems.value)!=null&&T.find(V=>(V==null?void 0:V.name)==="输出"))){const V=(L=S.showItems.value)==null?void 0:L.find(g=>(g==null?void 0:g.name)==="输出");m.value=((k=V==null?void 0:V.comp)==null?void 0:k.toUpperCase())==="FORM",d.value=!0}else d.value=!1,m.value=!1},{deep:!0,immediate:!0}),e.watch(()=>h.value,async()=>{h.value&&(c.value=await ot(h.value))},{deep:!0,immediate:!0}),e.watch(()=>[R.value,G.value],()=>{var w;((w=R.value)==null?void 0:w.length)>0&&G.value&&G.value.addModelsFromUrls(R.value)},{immediate:!0,deep:!0}),e.watch(()=>b==null?void 0:b.value,async()=>{var w,u,T,L;if(b!=null&&b.value&&((w=b==null?void 0:b.value)==null?void 0:w.length)>0&&!y.value&&!((u=S.showItems.value)!=null&&u.find(k=>(k==null?void 0:k.name)==="输入")&&((T=S.showItems.value)!=null&&T.find(k=>(k==null?void 0:k.name)==="输出")))){let k=[];const V=await((L=He.cloneDeep(b==null?void 0:b.value))==null?void 0:L.map(async g=>{var ie,te,_e,ae,x,fe,Je,Ce,Ve,Me;let H,K;const E=(te=(ie=g==null?void 0:g.blob)==null?void 0:ie.split("undefined,"))==null?void 0:te[1];let Q=E==null?void 0:E.split(",");if((Q==null?void 0:Q.length)>1){let ye=await(Q==null?void 0:Q.map(async oe=>{var X,Ye,Be,ue,O,Pe;H=await M.axios.get(oe,{responseType:"blob",headers:{"Content-Type":"application/json"}});let le=[];if(((X=g==null?void 0:g.mtlBlobs)==null?void 0:X.length)>0){let je=await((Ye=g==null?void 0:g.mtlBlobs)==null?void 0:Ye.map(async ne=>{let Te=await M.axios.get(ne,{responseType:"blob",headers:{"Content-Type":"application/json"}});return le.push(new Blob([Te.data],{type:"application/octet-stream;charset=UTF-8"})),Te}));await Promise.all(je)}return((ue=oe==null?void 0:oe.split("."))==null?void 0:ue[((Be=oe==null?void 0:oe.split("."))==null?void 0:Be.length)-1])!=="undefined"&&k.push({suffix:"."+((Pe=oe==null?void 0:oe.split("."))==null?void 0:Pe[((O=oe==null?void 0:oe.split("."))==null?void 0:O.length)-1]),blob:new Blob([H.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:le}),H}));await Promise.all(ye)}else if(!(E!=null&&E.includes("https://"))&&!(E!=null&&E.includes("http://"))){H=await dt.downloadAvatarApi({url:E});let ye=[];if(((_e=g==null?void 0:g.mtlBlobs)==null?void 0:_e.length)>0){let oe=await((ae=g==null?void 0:g.mtlBlobs)==null?void 0:ae.map(async le=>{let X=await dt.downloadAvatarApi({url:le});return ye.push(new Blob([X.data],{type:"application/octet-stream;charset=UTF-8"})),X}));await Promise.all(oe)}K={suffix:"."+((fe=E==null?void 0:E.split("."))==null?void 0:fe[((x=E==null?void 0:E.split("."))==null?void 0:x.length)-1]),blob:new Blob([H.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ye}}else{H=await M.axios.get(E,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ye=[];if(((Je=g==null?void 0:g.mtlBlobs)==null?void 0:Je.length)>0){let oe=await((Ce=g==null?void 0:g.mtlBlobs)==null?void 0:Ce.map(async le=>{let X=await M.axios.get(le,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ye.push(new Blob([X.data],{type:"application/octet-stream;charset=UTF-8"})),X}));await Promise.all(oe)}K={suffix:"."+((Me=E==null?void 0:E.split("."))==null?void 0:Me[((Ve=E==null?void 0:E.split("."))==null?void 0:Ve.length)-1]),blob:new Blob([H.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ye}}K&&k.push(K)}));await Promise.all(V),G.value.loadModelByDefaultPath(k)}},{immediate:!0,deep:!0}),e.watch(()=>p.value,async()=>{var u,T,L,k;if(p.value!==""&&p.value){let V=(u=h.value)==null?void 0:u.split("/"),g=V[(V==null?void 0:V.length)-2];const K=(((T=F==null?void 0:F.find(te=>(te==null?void 0:te.key)===g))==null?void 0:T.download)??"")+"/"+p.value,E=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),Q=await M.axios.post(K,null,{responseType:"blob",headers:{Authorization:E,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var w=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});const ie=[{suffix:"."+((k=(L=p.value)==null?void 0:L.split("."))==null?void 0:k[1]),blob:w,mtlBlobs:[]}];G.value.loadModelByDefaultPath(ie)}},{deep:!0,immediate:!0});const nt=async()=>{var H,K,E,Q,ie,te,_e,ae,x,fe,Je,Ce,Ve,Me,ye,oe,le;a.value=!0;let w=(H=h.value)==null?void 0:H.split("/"),u=w[(w==null?void 0:w.length)-2];const T=((K=F==null?void 0:F.find(X=>(X==null?void 0:X.key)===u))==null?void 0:K.value)??"";let L="";const k=await M.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});((E=k==null?void 0:k.data)==null?void 0:E.code)===200&&(L=`Bearer ${(ie=(Q=k.data)==null?void 0:Q.result)==null?void 0:ie.accessToken}`,sessionStorage.setItem("magicToken",L));const V=L===""?"123456":L,g=await M.axios.post(T,null,{headers:{Authorization:V,baseURL:"http://139.196.154.85:20025","Content-Type":"multipart/form-data"}});if(((te=g==null?void 0:g.data)==null?void 0:te.type)==="success"&&s.IsJson((ae=(_e=g==null?void 0:g.data)==null?void 0:_e.result)==null?void 0:ae.result)){const X=(Ve=(Ce=(Je=JSON.parse((fe=(x=g==null?void 0:g.data)==null?void 0:x.result)==null?void 0:fe.result))==null?void 0:Je.lines_file_paths)==null?void 0:Ce[0])==null?void 0:Ve.split("\\"),Be=(((Me=F==null?void 0:F.find(O=>(O==null?void 0:O.key)===u))==null?void 0:Me.resources)??"")+"/"+(((X==null?void 0:X[(X==null?void 0:X.length)-2])==="inputResources"?"outputResources":X==null?void 0:X[(X==null?void 0:X.length)-2])??"outputResources"),ue=await M.axios.post(Be,null,{headers:{Authorization:V,baseURL:"http://139.196.154.85:20025","Content-Type":"multipart/form-data"}});if(((ye=ue==null?void 0:ue.data)==null?void 0:ye.type)==="success"){const O=(oe=ue==null?void 0:ue.data)==null?void 0:oe.result,Pe=S.showItems.value,je=await((le=He.cloneDeep(Pe))==null?void 0:le.map(async ne=>{var Te,Ke,Ze,he,Z,xe;if((ne==null?void 0:ne.name)==="输出"){if((ne==null?void 0:ne.comp)==="Table")ne.compData=(Te=ne==null?void 0:ne.compData)==null?void 0:Te.map(A=>{var W,me;return(A==null?void 0:A.key)==="tableContents"&&(A.contents=(me=(W=A==null?void 0:A.contents)==null?void 0:W.map(se=>(se=se==null?void 0:se.map((I,pe)=>{var re,Se,Ue;return typeof I=="string"&&pe>1?((re=A==null?void 0:A.contents)==null?void 0:re.length)>1?I=((Se=O==null?void 0:O[pe-1])!=null&&Se.includes("input")?I:O==null?void 0:O[pe-1])??I:I=O==null?void 0:O[0]:I=((Ue=O==null?void 0:O[pe-1])!=null&&Ue.includes("input")?I:O==null?void 0:O[pe-1])??I,I}),se)))==null?void 0:me.filter((se,I)=>I<=(O==null?void 0:O.length)-1)),A});else if((ne==null?void 0:ne.comp)==="Form"){let A="";if(O==null||O.forEach(W=>{A=A===""?A+W:A+","+W}),ne.compData=(Ke=ne==null?void 0:ne.compData)==null?void 0:Ke.map(W=>{var me;return(W==null?void 0:W.key)==="formContent"&&(W.contents=(me=W.contents)==null?void 0:me.map(se=>(se.value=A,se))),W}),(Ze=A==null?void 0:A.split(","))!=null&&Ze.find(W=>W.includes(".obj"))){let W={};W.suffix=".obj";const me=[];let se=await((Z=(he=A==null?void 0:A.split(","))==null?void 0:he.filter(I=>I.includes(".obj")||I.includes(".mtl")))==null?void 0:Z.map(async I=>{var re,Se;if(I.includes(".obj")){const qe=(((re=F==null?void 0:F.find(De=>(De==null?void 0:De.key)===u))==null?void 0:re.download)??"")+"/"+I,ze=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),Ie=await M.axios.post(qe,null,{responseType:"blob",headers:{Authorization:ze,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var pe=new Blob([Ie.data],{type:"application/octet-stream;charset=UTF-8"});W.blob=pe}else if(I.includes(".mtl")){const qe=(((Se=F==null?void 0:F.find(lt=>(lt==null?void 0:lt.key)===u))==null?void 0:Se.download)??"")+"/"+I,ze=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),Ie=await M.axios.post(qe,null,{responseType:"blob",headers:{Authorization:ze,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var pe=new Blob([Ie.data],{type:"application/octet-stream;charset=UTF-8"});me.push(pe)}}));await Promise.all(se),W.mtlBlobs=me,G.value.loadModelByDefaultPath([W])}else{const W=[];let me=await((xe=A==null?void 0:A.split(","))==null?void 0:xe.map(async se=>{var ze,Ie;let I={};I.suffix="."+((ze=se==null?void 0:se.split("."))==null?void 0:ze[1]);const re=(((Ie=F==null?void 0:F.find(De=>(De==null?void 0:De.key)===u))==null?void 0:Ie.download)??"")+"/"+se,Se=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),Ue=await M.axios.post(re,null,{responseType:"blob",headers:{Authorization:Se,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var qe=new Blob([Ue.data],{type:"application/octet-stream;charset=UTF-8"});I.blob=qe,W.push(I)}));await Promise.all(me),G.value.loadModelByDefaultPath(W)}}}return ne}));S.showItems.value=await Promise.all(je)}}o.value++,a.value=!1},de=e.ref(""),B=e.ref("open"),z=e.ref("open"),Le=e.ref(!1),it=w=>{const u=document.getElementById("menuCollapse");w==="open"?(u.style.width="13rem",u.style.height="96%",u.style.overflow="auto"):(u.style.width="50px",u.style.minWidth="50px",u.style.height="50px",u.style.overflow="hidden")},at=w=>{const u=document.getElementById("operateCollapse");w==="open"?(u.style.width="25rem",u.style.height="96%",u.style.overflow="auto"):(u.style.width="50px",u.style.height="50px",u.style.overflow="hidden")},st=()=>{Le.value=!Le.value;const w=document.getElementById("operateCollapse"),u=document.getElementById("menuCollapse");Le.value?(u.style.width="13rem",w.style.width="calc(100% - 18rem)"):w.style.width="400px"},Oe=w=>{const u=URL.createObjectURL(w),T=document.createElement("a");T.href=u,T.download="file.txt",document.body.appendChild(T),T.click(),document.body.removeChild(T),URL.revokeObjectURL(u),n.value=!1},Ee=async()=>{var H,K,E,Q,ie,te,_e,ae,x,fe,Je,Ce,Ve,Me,ye,oe;n.value=!0;let w=(H=h.value)==null?void 0:H.split("/"),u=w[(w==null?void 0:w.length)-2];const T=((K=F==null?void 0:F.find(le=>(le==null?void 0:le.key)===u))==null?void 0:K.value)??"";let L="";const k=await M.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});if(((E=k==null?void 0:k.data)==null?void 0:E.code)===200)L=`Bearer ${(ie=(Q=k.data)==null?void 0:Q.result)==null?void 0:ie.accessToken}`,sessionStorage.setItem("magicToken",L);else throw M.ElMessage.error("响应出错了"),new Error("响应出错了");const V=L===""?"123456":L,g=await M.axios.post(T,null,{headers:{Authorization:V,baseURL:"http://139.196.154.85:20025","Content-Type":"multipart/form-data"}});if(((te=g==null?void 0:g.data)==null?void 0:te.code)===200){if(s.IsJson((ae=(_e=g==null?void 0:g.data)==null?void 0:_e.result)==null?void 0:ae.result)){const le=(Ve=(Ce=(Je=JSON.parse((fe=(x=g==null?void 0:g.data)==null?void 0:x.result)==null?void 0:fe.result))==null?void 0:Je.lines_file_paths)==null?void 0:Ce[0])==null?void 0:Ve.split("\\"),Ye=(((Me=F==null?void 0:F.find(ue=>(ue==null?void 0:ue.key)===u))==null?void 0:Me.resources)??"")+"/"+((le==null?void 0:le[(le==null?void 0:le.length)-2])??"outputResources"),Be=await M.axios.post(Ye,null,{headers:{Authorization:V,baseURL:"http://139.196.154.85:20025","Content-Type":"multipart/form-data"}});if(((ye=Be==null?void 0:Be.data)==null?void 0:ye.code)===200){const ue=(oe=Be==null?void 0:Be.data)==null?void 0:oe.result,O=He.cloneDeep(S.showItems.value);O==null||O.map(async Pe=>{var je,ne,Te,Ke,Ze;if((Pe==null?void 0:Pe.name)==="输出"&&(Pe==null?void 0:Pe.comp)==="Form"){let he="";ue==null||ue.forEach(Z=>{he=he===""?he+Z:he+","+Z}),Pe.compData=(je=Pe==null?void 0:Pe.compData)==null?void 0:je.map(Z=>{var xe;return(Z==null?void 0:Z.key)==="formContent"&&(Z.contents=(xe=Z.contents)==null?void 0:xe.map(A=>(A.value=he,A))),Z}),(ne=he==null?void 0:he.split(","))!=null&&ne.find(Z=>Z.includes(".obj"))?(Ke=(Te=he==null?void 0:he.split(","))==null?void 0:Te.filter(Z=>Z.includes(".obj")||Z.includes(".mtl")))==null||Ke.map(async Z=>{var xe,A;if(Z.includes(".obj")){const me=(((xe=F==null?void 0:F.find(re=>(re==null?void 0:re.key)===u))==null?void 0:xe.download)??"")+"/"+Z,se=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),I=await M.axios.post(me,null,{responseType:"blob",headers:{Authorization:se,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});let pe=new Blob([I.data],{type:"application/octet-stream;charset=UTF-8"});Oe(pe)}else if(Z.includes(".mtl")){const me=(((A=F==null?void 0:F.find(re=>(re==null?void 0:re.key)===u))==null?void 0:A.download)??"")+"/"+Z,se=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),I=await M.axios.post(me,null,{responseType:"blob",headers:{Authorization:se,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});let pe=new Blob([I.data],{type:"application/octet-stream;charset=UTF-8"});Oe(pe)}}):(Ze=he==null?void 0:he.split(","))==null||Ze.map(async Z=>{var I,pe;""+((I=Z==null?void 0:Z.split("."))==null?void 0:I[1]);const A=(((pe=F==null?void 0:F.find(re=>(re==null?void 0:re.key)===u))==null?void 0:pe.download)??"")+"/"+Z,W=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),me=await M.axios.post(A,null,{responseType:"blob",headers:{Authorization:W,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});let se=new Blob([me.data],{type:"application/octet-stream;charset=UTF-8"});Oe(se)})}})}else throw M.ElMessage.error("响应出错了"),new Error("响应出错了")}}else throw M.ElMessage.error("响应出错了"),new Error("响应出错了")},Qe=e.computed(()=>He.cloneDeep(S.showItems.value));return(w,u)=>{const T=e.resolveComponent("el-button"),L=e.resolveComponent("el-avatar"),k=e.resolveComponent("el-header"),V=e.resolveComponent("el-container"),g=e.resolveComponent("el-icon"),H=e.resolveComponent("el-input"),K=e.resolveComponent("el-aside"),E=e.resolveComponent("el-collapse-item"),Q=e.resolveComponent("el-collapse"),ie=e.resolveComponent("el-main"),te=e.resolveComponent("router-view"),_e=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ae.ssDialog,{visible:v.value,onBeforeDestroy:u[0]||(u[0]=ae=>v.value=!1)},{default:e.withCtx(()=>[q.value?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:q.value,style:{width:"100%",height:"500px",border:"1px solid #ccc"}},null,8,qo)):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.unref(N)==="edit"?(e.openBlock(),e.createBlock(V,{key:0,class:"client-container"},{default:e.withCtx(()=>[e.createVNode(k,{class:"client-structure-header"},{default:e.withCtx(()=>{var ae;return[e.createElementVNode("div",Xo,[e.createVNode(T,{id:"transparentBgButton",onClick:e.unref(S.onBack)},{default:e.withCtx(()=>u[6]||(u[6]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[6]},8,["onClick"]),e.createVNode(T,{id:"transparentBgButton",onClick:u[1]||(u[1]=x=>{var fe,Je;return e.unref(S.clickSavePage)((Je=(fe=e.unref(r))==null?void 0:fe.map(Ce=>Ce.value))==null?void 0:Je.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[u[7]||(u[7]=e.createTextVNode(" 保存页面 "))]),_:1,__:[7]})]),e.createElementVNode("div",Wo,[(e.openBlock(),e.createBlock(Jt,{key:e.unref(r),breadArray:e.unref(r),onClick:e.unref(S.onClick)},null,8,["breadArray","onClick"]))]),e.createElementVNode("div",Qo,[e.renderSlot(w.$slots,"default",{},void 0,!0),e.createVNode(L,{size:35,src:(ae=e.unref($))==null?void 0:ae.avatarUrl},{default:e.withCtx(()=>{var x;return[e.createTextVNode(e.toDisplayString(((x=e.unref($))==null?void 0:x.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(N)==="edit"?(e.openBlock(),e.createBlock(V,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",en,[e.createVNode(Re.modelSelect)]),e.createElementVNode("div",tn,[e.createVNode(Re.modelShow)]),e.createElementVNode("div",on,[e.createVNode(Re.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3})):e.withDirectives((e.openBlock(),e.createBlock(V,{key:1,class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(k,{class:"client-header"},{default:e.withCtx(()=>{var ae;return[e.createElementVNode("div",nn,[e.createVNode(be.SvgIcon,{name:"logo",style:{width:"clamp(18px, 1.5rem, 24px)",height:"clamp(18px, 1.5rem, 24px)","margin-right":"8px"}}),e.createTextVNode(" "+e.toDisplayString(e.unref(J)===""?"CPMPIP":e.unref(J)),1)]),e.createElementVNode("div",an,[e.createVNode(ft,{mode:"horizontal"})]),e.createElementVNode("div",sn,[e.createVNode(H,{modelValue:de.value,"onUpdate:modelValue":u[2]||(u[2]=x=>de.value=x),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(g,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(mt.search_default))]),_:1})]),_:1},8,["modelValue"]),l.showButton?(e.openBlock(),e.createBlock(T,{key:0,id:"transparentBgButton",onClick:e.unref(S.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[u[8]||(u[8]=e.createTextVNode(" 生成APP "))]),_:1,__:[8]},8,["onClick"])):e.createCommentVNode("",!0),l.showButton&&e.unref(N)==="view"?(e.openBlock(),e.createBlock(T,{key:1,id:"transparentBgButton",onClick:e.unref(S.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[u[9]||(u[9]=e.createTextVNode(" 修改布局 "))]),_:1,__:[9]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(w.$slots,"default",{},void 0,!0),e.createVNode(L,{size:35,src:(ae=e.unref($))==null?void 0:ae.avatarUrl},{default:e.withCtx(()=>{var x;return[e.createTextVNode(e.toDisplayString(((x=e.unref($))==null?void 0:x.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.createVNode(V,{class:"client-body"},{default:e.withCtx(()=>[w.$route.path==="/"?(e.openBlock(),e.createBlock(ie,{key:0,class:"client-main"},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:B.value,"onUpdate:modelValue":u[3]||(u[3]=ae=>B.value=ae),accordion:"",class:"client-aside",id:"menuCollapse",onChange:it},{default:e.withCtx(()=>[e.createVNode(E,{name:"open"},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:B.value===""?"Right":"Left",style:{width:"20px",height:"20px"}},null,8,["name"])]),default:e.withCtx(()=>[e.createVNode(K,{style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(tt.default,{mode:"vertical"})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createElementVNode("div",ln,[e.createVNode(Vo,{isShow:Ge.value,windowConfig:l.windowConfig,ref_key:"threeModelRef",ref:G},null,8,["isShow","windowConfig"])]),e.createVNode(Q,{modelValue:z.value,"onUpdate:modelValue":u[5]||(u[5]=ae=>z.value=ae),accordion:"",class:"client-main-operate",id:"operateCollapse",onChange:at},{default:e.withCtx(()=>[e.createVNode(E,{name:"open"},{icon:e.withCtx(()=>[e.createVNode(be.SvgIcon,{name:z.value==="open"?"Right":"Left",style:{width:"20px",height:"20px"}},null,8,["name"])]),default:e.withCtx(()=>{var ae;return[e.createElementVNode("div",null,[e.createVNode(be.SvgIcon,{class:"fold-icon",name:Le.value?"Right":"Left",onClick:st},null,8,["name"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ae=Qe.value)==null?void 0:ae.filter(x=>x.comp!=="FormTop"),(x,fe)=>{var Je;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:x==null?void 0:x.id},[((Je=x==null?void 0:x.comp)==null?void 0:Je.toUpperCase())!=="TABLE"&&x.name?(e.openBlock(),e.createElementBlock("div",rn,e.toDisplayString(x.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S.getComponents)(x.comp)),{compName:x.name,itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:(x==null?void 0:x.id)??fe,onChange:e.unref(S.onChange),index:(x==null?void 0:x.id)??fe,onContentChange:e.unref(S.onContentChange),onPageChange:e.unref(S.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128)),d.value?(e.openBlock(),e.createElementBlock("div",cn,[m.value?(e.openBlock(),e.createBlock(Ae._sfc_main,{key:0,class:"calculator-content",onClickTrigger:Ee,loading:n.value,modelValue:"预览"},null,8,["loading"])):e.createCommentVNode("",!0),e.createVNode(Ae._sfc_main,{class:"calculator-content",onClickTrigger:u[4]||(u[4]=x=>nt()),loading:a.value,modelValue:"调用方法"},null,8,["loading"])])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(Ae._sfc_main,{class:"calculator-content",modelValue:"执行方法",onClickTrigger:We,loading:i.value},null,8,["loading"])])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",un,[e.createVNode(Ae._sfc_main,{class:"calculator-content",modelValue:"播放动画",onClickTrigger:ve})])):e.createCommentVNode("",!0),U.value?(e.openBlock(),e.createElementBlock("div",hn,[e.createVNode(Ae._sfc_main,{class:"calculator-content",onClickTrigger:Xe,modelValue:"预览"}),e.createVNode(Ae._sfc_main,{class:"calculator-content",onClickTrigger:Ne,modelValue:"下载"})])):e.createCommentVNode("",!0)])]}),_:1})]),_:1},8,["modelValue"])]),_:1})):(e.openBlock(),e.createBlock(ie,{key:1,class:"client-router"},{default:e.withCtx(()=>[e.createElementVNode("div",pn,[e.createVNode(K,{width:"300px"},{default:e.withCtx(()=>[e.createVNode(tt.default,{mode:"vertical"})]),_:1})]),e.createElementVNode("div",_n,[e.createVNode(te)])]),_:1}))]),_:1})]),_:3})),[[_e,e.unref(P)]])],64)}}}),Pn=ke._export_sfc(mn,[["__scopeId","data-v-85215b4c"]]),fn={class:"system-wrap"},Jn={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},setup(l){const t=s.useModelComp(we.pinia),o=s.useUnit(we.pinia),a=M.useMenuState();e.ref(!1);const r=e.ref(!0),d=l,m=e.computed(()=>{switch(d==null?void 0:d.platform){case"browser":return ut.browserThemeConfig;case"client":return ut.clientThemeConfig}}),n=f=>{const y=document.documentElement;f==null||f.forEach(p=>{y.style.setProperty(p.name,p.value)})};return e.watch(()=>d.platform,(f,y)=>{f&&n(m.value)},{immediate:!0}),e.watch(()=>[d==null?void 0:d.content,d==null?void 0:d.jsonContents],async()=>{var p,D,$,q;if(((p=d==null?void 0:d.jsonContents)==null?void 0:p.length)>0){t.setOriginalData(d==null?void 0:d.jsonContents);return}if(!(d!=null&&d.content)||((D=d==null?void 0:d.content)==null?void 0:D.length)===0)return;r.value=!0,a.setImportLoading(!0);let f=[],y=[];o.setSelectTitle([]),o.setSelectIndex(""),o.setSelectMenu(""),(q=($=d==null?void 0:d.content)==null?void 0:$.filter(j=>j!==""))==null||q.forEach(j=>{Fe.isExpandStringToJson(j)?y.push(Fe.expandStringToJson(j)):Fe.expandNewStringToJson(j)?y.push(Fe.expandNewStringToJson(j)):Fe.expandContentStringToJson(j)?y.push(Fe.expandContentStringToJson(j)):y.push(S.expandToNewContents(j))}),f=y==null?void 0:y[0],await S.savePageDataAsync(f),await s.loadingSystemType(),t.setOriginalData(f),a.setImportLoading(!1)},{deep:!0,immediate:!0}),(f,y)=>(e.openBlock(),e.createElementBlock("div",fn,[l.platform==="browser"?(e.openBlock(),e.createBlock(Zo,{key:0,showButton:l.showButton},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["showButton"])):(e.openBlock(),e.createBlock(Pn,{key:1,windowConfig:l.windowConfig,showButton:l.showButton},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"]))]))}},gn=ke._export_sfc(Jn,[["__scopeId","data-v-48bd98a2"]]),yn={class:"add-model-content"},Gn={key:0,class:"model-operate"},wn={class:"model-select"},vn={class:"model-fill"},Bn={key:1,class:"model-view"},Cn={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""}},emits:["change","contentChange"],setup(l,{emit:t}){const o=l,a=t,r=e.ref([]),d=e.ref(0),m=e.ref([]),n=e.ref([]),f=e.ref(0),y=s.useModelComp(we.pinia),p=M.useMenuState(we.pinia),{itemData:D,originalData:$}=M.storeToRefs(y),{activeMenuPath:q,platform:j}=M.storeToRefs(p),N=e.ref(null),_=e.ref(0),C=e.ref([]);e.ref("");const R=e.ref(0);e.watch(()=>o==null?void 0:o.pathContent,()=>{(o==null?void 0:o.pathContent)!==""&&y.setSystemPath(o==null?void 0:o.pathContent)},{deep:!0,immediate:!0});const b=i=>{a("contentChange",i)},G=i=>{var h;const P=(h=He.cloneDeep(i==null?void 0:i.wholeValue))==null?void 0:h.map(J=>{var ee;return(J==null?void 0:J.comp)==="Form"&&(J.compData=(ee=J.compData)==null?void 0:ee.map(U=>((U==null?void 0:U.key)==="formContent"&&(U.contents=Fe.arrayToNumberArray(U==null?void 0:U.contents)),U))),J});a("change",{originalContents:$.value,currentContents:i==null?void 0:i.wholeValue,editContent:i==null?void 0:i.editValue,arrayToContents:P})};e.watch(()=>m.value,()=>{R.value===m.value.length&&m.value.length!==0&&(r.value=m.value)},{deep:!0,immediate:!0});const v=()=>{N.value!==null&&N.value.click()},c=async i=>{const P=i.target.files;if(!P)return;new FileReader,r.value=[],m.value=[],R.value=P.length;const h=Array.from(P).map(async J=>await new Promise(ee=>{const U=new FileReader;U.onload=Ge=>{try{m.value.push(Ge.target.result),_.value++}catch(ve){console.error("解析失败:",ve);return}},U.onerror=()=>ee(`读取 ${J.name} 失败`),U.readAsText(J),i.target.value="",N.value=null,d.value++}));await Promise.all(h)};return e.watch(()=>[o==null?void 0:o.content,o==null?void 0:o.jsonContents],async()=>{await s.loadingSystemType(),r.value=o.content,n.value=o==null?void 0:o.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>_.value,()=>{var i;((i=C.value)==null?void 0:i.length)!==0&&(y.setOriginalData(C.value),y.setItemData(C.value))},{deep:!0,immediate:!0}),(i,P)=>{const h=e.resolveComponent("svg-icon"),J=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",yn,[(o==null?void 0:o.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",Gn,[e.createElementVNode("div",wn,[e.createVNode(Re.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:f.value},[e.createVNode(Re.modelShow)])),e.createElementVNode("div",vn,[e.createVNode(Re.modelFill)])])):e.createCommentVNode("",!0),(o==null?void 0:o.mode)==="view"?(e.openBlock(),e.createElementBlock("div",Bn,[(e.openBlock(),e.createBlock(gn,{showButton:l.showButton,platform:e.unref(j),content:r.value,onChange:G,jsonContents:n.value,onContentChange:b,key:f.value},{default:e.withCtx(()=>{var ee;return[((ee=o==null?void 0:o.jsonContents)==null?void 0:ee.length)===0&&(o!=null&&o.showButton)?(e.openBlock(),e.createBlock(J,{key:0,id:"transparentBgButton",onClick:v},{icon:e.withCtx(()=>[e.createVNode(h,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:d.value,ref_key:"fileInput",ref:N,accept:".txt, .inm",onChange:c,style:{display:"none"},multiple:""},null,32)),P[0]||(P[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},bn=ke._export_sfc(Cn,[["__scopeId","data-v-1632d5fe"]]);exports.default=bn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./menu-
|
|
1
|
+
"use strict";const s=require("./menu-CuRWpNwE.cjs"),x=require("./index-Ddxsvs4r.cjs"),q=require("./login-BU42wzWQ.cjs"),I=require("vue"),w=s.useMenuState(x.pinia),v=q.useLoginState(x.pinia),D=I.ref(!1),E=I.ref(!1),P=async()=>{const K=s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),M=s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([K,M]).then(a=>{var r,u,n,o,i,l,c,g,y,d,S,f,m,p;const t=a==null?void 0:a[0],e=a==null?void 0:a[1];if(t.data.code===200){const h=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;w.setRawMenus(h??[]),D.value=((g=t==null?void 0:t.data)==null?void 0:g.result)&&((d=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:d.length)>0}else s.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(v.setStructureData(e.data.result),v.setIsStructureExist(!0),E.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((p=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:p.length)>0):s.ElMessage.error("获取模型结构响应失败")}),{menuExist:D.value,structureExist:E.value}};exports.verifyStructureDataToStore=P;
|
|
@@ -6017,12 +6017,12 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6017
6017
|
{
|
|
6018
6018
|
path: "/login",
|
|
6019
6019
|
name: "Login",
|
|
6020
|
-
component: async () => import("./index-
|
|
6020
|
+
component: async () => import("./index-ClR6CDky.js")
|
|
6021
6021
|
},
|
|
6022
6022
|
{
|
|
6023
6023
|
path: "/",
|
|
6024
6024
|
name: "Model",
|
|
6025
|
-
component: async () => import("./index-
|
|
6025
|
+
component: async () => import("./index-I5I2OFDt.js"),
|
|
6026
6026
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
6027
6027
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
6028
6028
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -6030,37 +6030,37 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6030
6030
|
{
|
|
6031
6031
|
path: "平台管理/菜单管理",
|
|
6032
6032
|
name: "Menu",
|
|
6033
|
-
component: async () => import("./index-
|
|
6033
|
+
component: async () => import("./index-AdPwewTm.js")
|
|
6034
6034
|
},
|
|
6035
6035
|
{
|
|
6036
6036
|
path: "平台管理/主菜单管理",
|
|
6037
6037
|
name: "MainMenu",
|
|
6038
|
-
component: async () => import("./index-
|
|
6038
|
+
component: async () => import("./index-BEQLz5uJ.js")
|
|
6039
6039
|
},
|
|
6040
6040
|
{
|
|
6041
6041
|
path: "系统管理/个人中心",
|
|
6042
6042
|
name: "PersonalCenter",
|
|
6043
|
-
component: async () => import("./index-
|
|
6043
|
+
component: async () => import("./index-BypUrsNx.js")
|
|
6044
6044
|
},
|
|
6045
6045
|
{
|
|
6046
6046
|
path: "系统管理/职位管理",
|
|
6047
6047
|
name: "Post",
|
|
6048
|
-
component: async () => import("./index-
|
|
6048
|
+
component: async () => import("./index-By7DD7-d.js")
|
|
6049
6049
|
},
|
|
6050
6050
|
{
|
|
6051
6051
|
path: "系统管理/用户管理",
|
|
6052
6052
|
name: "User",
|
|
6053
|
-
component: async () => import("./index-
|
|
6053
|
+
component: async () => import("./index-D2tNs4jF.js")
|
|
6054
6054
|
},
|
|
6055
6055
|
{
|
|
6056
6056
|
path: "系统管理/角色管理",
|
|
6057
6057
|
name: "Role",
|
|
6058
|
-
component: async () => import("./index-
|
|
6058
|
+
component: async () => import("./index-CzAKRxzx.js")
|
|
6059
6059
|
},
|
|
6060
6060
|
{
|
|
6061
6061
|
path: "系统管理/部门管理",
|
|
6062
6062
|
name: "Dept",
|
|
6063
|
-
component: async () => import("./index-
|
|
6063
|
+
component: async () => import("./index-DUoJt6IY.js")
|
|
6064
6064
|
},
|
|
6065
6065
|
{
|
|
6066
6066
|
path: "priority",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { onMounted as w, resolveComponent as u, createElementBlock as r, openBlock as l, createVNode as f } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-B0Cf01Xb.js";
|
|
3
|
+
import "./index-Bxkr1n25.js";
|
|
4
|
+
import "./array-Wdj0MIIX.js";
|
|
5
5
|
import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_9d138dea_lang-
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-
|
|
8
|
-
import "./login-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_9d138dea_lang-DXztWRkV.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_1632d5fe_lang-C457BtNU.js";
|
|
8
|
+
import "./login-Bm1VDeb8.js";
|
|
9
9
|
import "./index-BHtNKL1L.js";
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./menu-
|
|
10
|
+
import "./index-DCeuXqFD.js";
|
|
11
|
+
import "./index-DRiyGflM.js";
|
|
12
|
+
import "./menu-BEP1prun.js";
|
|
13
13
|
const C = {
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-BZNjbCUK.cjs");exports.default=e._sfc_main;
|