ss-component-new 1.3.429 → 1.3.430
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/{MTLLoader-BO8dhFyw.js → MTLLoader-D7sNoLcK.js} +1 -1
- package/dist/{MTLLoader-DErZsCj2.cjs → MTLLoader-p0GsbA2N.cjs} +1 -1
- package/dist/{OrbitControls-6d2uLMhv.cjs → OrbitControls-BhtVNiz9.cjs} +1 -1
- package/dist/{OrbitControls-CvMkUFet.js → OrbitControls-xsAEcOQ0.js} +1 -1
- package/dist/{URDFLoader-CHrCe4Xz.cjs → URDFLoader-DAb823an.cjs} +1 -1
- package/dist/{URDFLoader-CCPlU2Oa.js → URDFLoader-OhWW6Ghz.js} +2 -2
- package/dist/{animationData-Ccd7odQI.cjs → animationData-CM85S6tn.cjs} +1 -1
- package/dist/{animationData-8-DV2GoG.js → animationData-CZHPgZ5e.js} +3 -3
- package/dist/{array-DZzUaXFt.cjs → array-0RI_MV-5.cjs} +1 -1
- package/dist/{array-pHejdxe8.js → array-DeAl78t6.js} +84 -84
- package/dist/{clone-BCRbWoC6.js → clone-BDsG8VVj.js} +1 -1
- package/dist/clone-D92QCGo2.cjs +1 -0
- package/dist/{iconfont-B9OLS8Ss.js → iconfont-C5j4Td3D.js} +2 -2
- package/dist/{iconfont-CE6rkJC1.cjs → iconfont-DvB947R2.cjs} +1 -1
- package/dist/{index-CyKaBIAq.cjs → index-4SWc85gj.cjs} +1 -1
- package/dist/index-8V0NHmW6.cjs +1 -0
- package/dist/{index-2HKW4B41.js → index-9Fw7ND1N.js} +1 -1
- package/dist/{index-B_P1m2_w.cjs → index-B6e2oM-P.cjs} +1 -1
- package/dist/{index-CekSiXkB.cjs → index-B9MP9Z_h.cjs} +1 -1
- package/dist/{index-H9am4T8r.js → index-BEyBnEnd.js} +5 -5
- package/dist/{index-uFoYeDxn.js → index-BF5SUWUn.js} +1 -1
- package/dist/{index-DmM_3J6r.js → index-BK-oz1IK.js} +958 -954
- package/dist/{index-MnMBinVE.cjs → index-BTfuvT7M.cjs} +1 -1
- package/dist/{index-DRbjtJSI.js → index-BTgKT-Kp.js} +2 -2
- package/dist/{index-T0b3T_GV.cjs → index-BpYkNRvs.cjs} +2 -2
- package/dist/{index-Dca1yZsA.js → index-C-rFa3VT.js} +6 -6
- package/dist/{index-DQ0glSaK.cjs → index-C09sw7CL.cjs} +1 -1
- package/dist/{index-BKpsNbPz.cjs → index-C3JpBKyN.cjs} +1 -1
- package/dist/{index-ChYFq0qG.js → index-CFiyfU1X.js} +3 -3
- package/dist/{index-BC6FsVu3.cjs → index-CGaJRFh6.cjs} +1 -1
- package/dist/{index-TCY8fxJR.js → index-CGqnKnrd.js} +2 -2
- package/dist/{index-q2btT6hK.cjs → index-CIMnUwEB.cjs} +1 -1
- package/dist/{index-BXXquUoh.js → index-CKsprVNa.js} +1 -1
- package/dist/{index-zVC9Fbvd.cjs → index-CLLeUa5o.cjs} +1 -1
- package/dist/index-CWzVeyId.cjs +2 -0
- package/dist/{index-BXFZRyJm.cjs → index-CZuPznao.cjs} +1 -1
- package/dist/{index-DkAVofQ2.js → index-Ca_pqbsS.js} +3 -3
- package/dist/{index-ScGSWjOZ.cjs → index-Call_60N.cjs} +1 -1
- package/dist/{index-Bc-__QrO.cjs → index-CljHDtk8.cjs} +1 -1
- package/dist/{index-B5TdVacm.js → index-D1U0qzcp.js} +1 -1
- package/dist/{index-D28QwAED.cjs → index-DCfi_waU.cjs} +1 -1
- package/dist/{index-t3NJPoBF.cjs → index-DDAEpzaB.cjs} +1 -1
- package/dist/{index-oX3fgOut.js → index-DDK5gDem.js} +2 -2
- package/dist/{index--7t5aUL0.cjs → index-DM4iU2Ab.cjs} +1 -1
- package/dist/{index-BAKm2v2u.js → index-DO5zum3x.js} +2 -2
- package/dist/{index-CDGid5AJ.js → index-DQ94pBGZ.js} +3 -3
- package/dist/{index-DP4CExpp.js → index-DSKIm3im.js} +4 -4
- package/dist/{index-DkMqgt-A.js → index-DTllcl_O.js} +2 -2
- package/dist/{index-C8rRFCQO.js → index-DU2dKJOK.js} +4 -4
- package/dist/{index-BCMrZccJ.js → index-DbPbr5TD.js} +9304 -9195
- package/dist/{index-B2-yXg-E.js → index-DgTbfgjE.js} +4 -4
- package/dist/{index-DWDKS_mG.cjs → index-Digv4Fyh.cjs} +1 -1
- package/dist/{index-pZoLjYCI.js → index-DkA3dv5l.js} +1 -1
- package/dist/{index-C1wC2zmo.js → index-Dn7UEQUd.js} +1 -1
- package/dist/{index-CDQRaHJC.cjs → index-DoorIpTj.cjs} +1 -1
- package/dist/{index-CvtLCp_D.cjs → index-DqmyyzfP.cjs} +1 -1
- package/dist/{index-B0dnim3E.cjs → index-DxPKykuA.cjs} +1 -1
- package/dist/{index-CzmjqWX3.js → index-Dxs-F0xJ.js} +8 -8
- package/dist/{index-BTgBTBzJ.cjs → index-DyCQbiMc.cjs} +1 -1
- package/dist/index-Dz_V4Aef.cjs +26 -0
- package/dist/{index-Bac3hrke.cjs → index-IGuY2Qp9.cjs} +1 -1
- package/dist/{index-DwRB3mEW.js → index-Lhh-KMx5.js} +2 -2
- package/dist/{index-B3HeYBJP.js → index-RF5qQdBY.js} +1 -1
- package/dist/{index-2dx2zDLD.js → index-ToiCtVRE.js} +7 -7
- package/dist/{index-DHtzMAJN.cjs → index-XVjZTSe1.cjs} +1 -1
- package/dist/{index-D0YFj1S0.js → index-YzkBsOrM.js} +4 -4
- package/dist/{index-DAotycbe.js → index-fH3hPSMI.js} +41 -39
- package/dist/{index-BdcR-Zbo.cjs → index-fh5hS-5q.cjs} +1 -1
- package/dist/{index-DtZyGfmw.cjs → index-ilXWn4_Y.cjs} +1 -1
- package/dist/{index-Dpd1Fkoh.js → index-p9kkXcpR.js} +3862 -3879
- package/dist/{index-DNuPcVX8.js → index-sl2ZbrIv.js} +1 -1
- package/dist/{index-CDzcL3tr.cjs → index-xN3pvlzo.cjs} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cdh_SvWZ.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs} +59 -59
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-aIoTx6LL.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js} +1650 -1645
- package/dist/{main-BF0V6g7u.cjs → main-2_nRO_Yd.cjs} +1 -1
- package/dist/{main-BkeQdokf.js → main-hbDYKA6O.js} +4 -4
- package/dist/{menuIndex-uHAeyJKX.cjs → menuIndex-8KYc1zS9.cjs} +1 -1
- package/dist/{menuIndex-B01KCnnT.js → menuIndex-CPrSvY9F.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CXDWR_ot.js → threeModel-C1V8R9PI.js} +45 -45
- package/dist/{threeModel-CRdpFEjJ.cjs → threeModel-z-ti4e5E.cjs} +1 -1
- package/dist/{threePreview-BD2V1IFv.js → threePreview-BoiGO8RT.js} +4 -4
- package/dist/{threePreview-BbD4l0jX.cjs → threePreview-Bs-m2IAX.cjs} +1 -1
- package/dist/{threeSceneView-nA9-mqTO.js → threeSceneView-BCuH_gVn.js} +11 -11
- package/dist/{threeSceneView-Cq4atF6M.cjs → threeSceneView-CTHpWmwg.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BOX3UI38.cjs → threeSceneViewForCPMPIP-CsDzXB39.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-NVVRCUyD.js → threeSceneViewForCPMPIP-Dyb60cS_.js} +8 -8
- package/dist/{threeTrackPathView-DLV4IRvx.js → threeTrackPathView-C7MWmsr9.js} +4 -4
- package/dist/{threeTrackPathView-DK0kJqtr.cjs → threeTrackPathView-DL3Fx1XR.cjs} +1 -1
- package/dist/{threeViewerHost-ClPsPLr9.js → threeViewerHost-2yySAP_2.js} +3 -3
- package/dist/{threeViewerHost-BJYGw_o_.cjs → threeViewerHost-Bk3vNumJ.cjs} +1 -1
- package/dist/{urdfTree-B77Z26KL.cjs → urdfTree-B1vSZdxZ.cjs} +1 -1
- package/dist/{urdfTree-U677NJbL.js → urdfTree-BwPn5sja.js} +1 -1
- package/dist/{workpieceTreePanel-BMF5xzwy.js → workpieceTreePanel-DnVOjYQ2.js} +4 -4
- package/dist/{workpieceTreePanel-BpjkjEOk.cjs → workpieceTreePanel-zPR2Z6wa.cjs} +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/clone-s9Wp2P9L.cjs +0 -1
- package/dist/index-CkRoSVGu.cjs +0 -1
- package/dist/index-CwJWRHpq.cjs +0 -26
- package/dist/index-NhDJ3v8j.cjs +0 -2
package/dist/index-CwJWRHpq.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";var ju=Object.defineProperty;var Hu=(a,l,n)=>l in a?ju(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n;var un=(a,l,n)=>Hu(a,typeof l!="symbol"?l+"":l,n);const e=require("vue"),Ja=require("./request-Dl8yi2iS.cjs"),M=require("./index-CDzcL3tr.cjs"),pl=require("./index-T0b3T_GV.cjs"),le=require("./index-CekSiXkB.cjs"),nr=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cdh_SvWZ.cjs"),Ir=require("./index-B-pflqKE.cjs"),Co=require("./threeViewerHost-BJYGw_o_.cjs"),Hr=require("./index-DmwxzDGW.cjs"),ds=require("./index--7t5aUL0.cjs"),ic=require("./index-BXFZRyJm.cjs");;/* empty css */const Do=require("./isString-CGrvcmBw.cjs"),ps=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),oc=require("./index-BVaHwt5f.cjs"),Uu=require("./index-B0dnim3E.cjs"),Hn=require("./MTLLoader-DErZsCj2.cjs"),qu=require("./URDFLoader-CHrCe4Xz.cjs");var Wu="[object Boolean]";function tc(a){return a===!0||a===!1||Ja.isObjectLike(a)&&Ja.baseGetTag(a)==Wu}function Ku(a){return a===void 0}const Gu=a=>a.match(/\((.*)\)/)[1],Yu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,n=e.ref(null),r=e.ref(!1),i=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{r.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>i.value,()=>{e.nextTick(()=>{var t,f;(f=(t=n.value)==null?void 0:t.updatePopper)==null||f.call(t)})},{deep:!0,immediate:!0}),(t,f)=>{const c=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(c,{visible:r.value,"onUpdate:visible":f[0]||(f[0]=u=>r.value=u),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"reference",{ref_key:"referenceRef",ref:i})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Ju=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,n=e.computed(()=>{var u,m,y,x,d,A;const r=l.value??"";let i=(u=l==null?void 0:l.columnContent)==null?void 0:u.filter;if(i=(m=le.analyzeSplitToContent(i,","))==null?void 0:m.map(w=>((w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),w)),i=i==null?void 0:i.find(w=>(w==null?void 0:w[0])==="("),(i==null?void 0:i[0])==="("&&(i=i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)),i=i==null?void 0:i.split("||"),!i)return{backgroundColor:void 0,color:void 0};let t=(x=(y=l==null?void 0:l.columnContent)==null?void 0:y.options)==null?void 0:x.findIndex(w=>(w==null?void 0:w.value)===r);t=i==null?void 0:i[t],t=le.analyzeSplitToContent(t,","),t=t==null?void 0:t.map(w=>((w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),w));let f=t==null?void 0:t.find(w=>w==null?void 0:w.includes("@TextBackRGBA"));f?f=le.rgbaToColor((d=f==null?void 0:f.split("="))==null?void 0:d[1]):f=void 0;let c=t==null?void 0:t.find(w=>w==null?void 0:w.includes("@TextRGBA"));return c?c=le.rgbaToColor((A=c==null?void 0:c.split("="))==null?void 0:A[1]):c=void 0,{backgroundColor:f,color:c}});return(r,i)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(n.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Xu=nr._export_sfc(Ju,[["__scopeId","data-v-3290070b"]]);function Zu(a,l,n,r={}){if(!a||!l||!n||n.length!==4)return;const i=a.getContext("2d");if(!i)return;const{color:t="rgba(255, 235, 59, 0.3)",strokeWidth:f=2,fillOpacity:c=.2}=r,u=a.getBoundingClientRect(),m=l.getBoundingClientRect(),y=l.naturalWidth,x=l.naturalHeight,d=m.width/y,A=m.height/x,w=Math.min(d,A),Y=y*w,z=x*w,$=(u.width-Y)/2,O=(u.height-z)/2,S=n.map(([_,b])=>{const C=$+_*Y,R=O+b*z;return{x:C,y:R}});i.clearRect(0,0,a.width,a.height),i.beginPath(),i.moveTo(S[0].x,S[0].y);for(let _=1;_<S.length;_++)i.lineTo(S[_].x,S[_].y);i.closePath();const k=t.replace(/[\d.]+\)$/,`${c})`);i.fillStyle=k,i.fill(),i.strokeStyle=t.replace(/[\d.]+\)$/,"1)"),i.lineWidth=f,i.stroke()}function Ti(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function fs(a,l){if(!a||!l)return null;const n=a[l];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Qu={key:0,class:"ocr-img-preview-root"},ed={class:"ocr-img-preview-window"},ad={key:0,class:"img-preview-body"},ld={class:"img-preview-header"},rd={class:"img-header-left"},nd={class:"img-name"},id={key:0,class:"img-header-right"},od={class:"img-index"},td={key:0,class:"img-thumb-list"},sd=["onClick"],cd={key:1,class:"thumb-placeholder"},ud={class:"thumb-name"},dd={class:"img-preview-container"},pd={key:0,class:"img-placeholder"},fd={key:2,class:"img-placeholder"},hd={key:0},vd={key:1},md={key:1,class:"img-placeholder"},yd=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const n=a,r=l,i=e.computed({get:()=>n.visible,set:B=>r("update:visible",B)});let t=!1,f="",c=0,u=0,m=0,y=0,x=0,d=0,A=null;const w=B=>{var W,ke;const oe=(ke=(W=B==null?void 0:B.target)==null?void 0:W.closest)==null?void 0:ke.call(W,".ocr-img-preview-window");return oe||document.querySelector(".ocr-img-preview-window")},Y=B=>{if(!B||B==="none")return{tx:0,ty:0};let oe=B.match(/matrix\(([^)]+)\)/);if(oe){const W=oe[1].split(",").map(ke=>Number(ke.trim()));return{tx:(W==null?void 0:W[4])||0,ty:(W==null?void 0:W[5])||0}}if(oe=B.match(/matrix3d\(([^)]+)\)/),oe){const W=oe[1].split(",").map(ke=>Number(ke.trim()));return{tx:(W==null?void 0:W[12])||0,ty:(W==null?void 0:W[13])||0}}return oe=B.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),oe?{tx:Number(oe[1])||0,ty:Number(oe[2])||0}:{tx:0,ty:0}},z=(B,oe,W)=>{B.style.transform=`translate(${oe}px, ${W}px)`},$=B=>{const oe=w(B);if(!oe)return;t=!0,A=oe,f="move",c=B.clientX,u=B.clientY;const W=window.getComputedStyle(oe),{tx:ke,ty:Ie}=Y(W.transform);x=ke,d=Ie,document.addEventListener("mousemove",S),document.addEventListener("mouseup",k)},O=(B,oe)=>{const W=w(B);if(!W)return;t=!0,A=W,f=oe,c=B.clientX,u=B.clientY;const ke=W.getBoundingClientRect();m=ke.width,y=ke.height;const Ie=window.getComputedStyle(W),{tx:Ve,ty:Qe}=Y(Ie.transform);x=Ve,d=Qe,document.addEventListener("mousemove",S),document.addEventListener("mouseup",k)},S=B=>{if(!t||!A)return;const oe=B.clientX-c,W=B.clientY-u,ke=360,Ie=420;let Ve=m,Qe=y,Ea=x,ie=d;if(f==="move"){Ea=x+oe,ie=d+W,z(A,Ea,ie);return}if(f.includes("right")&&(Ve=Math.max(ke,m+oe)),f.includes("bottom")&&(Qe=Math.max(Ie,y+W)),f.includes("left")){const ua=m-oe;ua<ke?(Ve=ke,Ea=x+(m-ke)):(Ve=ua,Ea=x+oe)}if(f.includes("top")){const ua=y-W;ua<Ie?(Qe=Ie,ie=d+(y-Ie)):(Qe=ua,ie=d+W)}A.style.width=`${Ve}px`,A.style.height=`${Qe}px`,z(A,Ea,ie)},k=()=>{t=!1,f="",A=null,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",k)},_=e.ref([]),b=e.ref(!1);e.watch(()=>n.images,async B=>{if(!Array.isArray(B)||B.length===0){_.value=[];return}b.value=!0;const oe=[];for(const W of B)if(W.url&&!W.url.startsWith("blob:")&&!W.url.startsWith("http"))try{const ke=await Fl.downloadFile(W.url),Ie=URL.createObjectURL(ke);oe.push({...W,blobUrl:Ie})}catch(ke){console.error(`Failed to load image for preview: ${W.url}`,ke),oe.push({...W,blobUrl:""})}else oe.push({...W,blobUrl:W.url});_.value=oe,b.value=!1},{deep:!0,immediate:!0});const C=e.ref(0),R=e.ref(null),V=e.ref(null),ae=e.computed(()=>_.value[C.value]||null),ee=()=>{if(!_.value.length){C.value=0;return}if(n.defaultImageName){const B=_.value.findIndex(oe=>(oe==null?void 0:oe.name)===n.defaultImageName);C.value=B>=0?B:0}else C.value=0},_e=B=>{if(!_.value.length)return;const oe=Math.max(0,Math.min(B,_.value.length-1));C.value=oe},ue=()=>_e(C.value-1),U=()=>_e(C.value+1),P=B=>{if(!B)return;const oe=_.value.findIndex(W=>(W==null?void 0:W.name)===B);oe>=0&&(C.value=oe)},X=()=>{if(!V.value)return;const B=V.value.parentElement;if(!B)return;const oe=B.getBoundingClientRect();V.value.width=oe.width,V.value.height=oe.height},re=()=>{var ke,Ie;if(!V.value||!R.value||!n.focusedFieldName){V.value&&Ti(V.value);return}const B=(ke=R.value.$el)==null?void 0:ke.querySelector("img");if(!B)return;if(!B.complete||B.naturalWidth===0){B.onload=()=>{e.nextTick(()=>{re()})};return}const oe=((Ie=ae.value)==null?void 0:Ie.name)||"",W=fs(n.fieldMeta,n.focusedFieldName);if(!W){Ti(V.value);return}if(W.imageName!==oe){Ti(V.value);return}X(),Zu(V.value,B,W.bboxNorm)},he=()=>{e.nextTick(()=>{X(),re()})};e.watch(()=>n.focusedFieldName,()=>{if(!i.value)return;const B=fs(n.fieldMeta,n.focusedFieldName);B!=null&&B.imageName&&P(B.imageName),e.nextTick(()=>{re()})}),e.watch(()=>{var B;return(B=ae.value)==null?void 0:B.name},()=>{i.value&&e.nextTick(()=>{V.value&&Ti(V.value),re()})}),e.watch(()=>n.visible,B=>{B?(ee(),e.nextTick(()=>{X(),re()})):V.value&&Ti(V.value)}),e.watch(()=>n.defaultImageName,()=>{i.value&&ee()});let $e=null;e.onMounted(()=>{var B;typeof ResizeObserver<"u"&&($e=new ResizeObserver(()=>{X(),e.nextTick(()=>{re()})}),(B=V.value)!=null&&B.parentElement&&$e.observe(V.value.parentElement))}),e.onUnmounted(()=>{$e&&($e.disconnect(),$e=null),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",k)});const se=()=>{V.value&&Ti(V.value),r("update:visible",!1),r("close")};return(B,oe)=>{var Qe,Ea;const W=e.resolveComponent("el-button"),ke=e.resolveComponent("el-image"),Ie=e.resolveComponent("Loading"),Ve=e.resolveComponent("el-icon");return i.value?(e.openBlock(),e.createElementBlock("div",Qu,[oe[12]||(oe[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",ed,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers($,["stop"])},[oe[8]||(oe[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:se},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:oe[0]||(oe[0]=e.withModifiers(ie=>O(ie,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:oe[1]||(oe[1]=e.withModifiers(ie=>O(ie,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:oe[2]||(oe[2]=e.withModifiers(ie=>O(ie,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:oe[3]||(oe[3]=e.withModifiers(ie=>O(ie,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:oe[4]||(oe[4]=e.withModifiers(ie=>O(ie,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:oe[5]||(oe[5]=e.withModifiers(ie=>O(ie,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:oe[6]||(oe[6]=e.withModifiers(ie=>O(ie,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:oe[7]||(oe[7]=e.withModifiers(ie=>O(ie,"bottom-right"),["stop"]))},null,32),ae.value?(e.openBlock(),e.createElementBlock("div",ad,[e.createElementVNode("div",ld,[e.createElementVNode("div",rd,[e.createElementVNode("span",nd,e.toDisplayString(ae.value.name?ae.value.name+(ae.value.url&&ae.value.url.lastIndexOf(".")!==-1?ae.value.url.substring(ae.value.url.lastIndexOf(".")):""):""),1)]),_.value.length>1?(e.openBlock(),e.createElementBlock("div",id,[e.createVNode(W,{size:"small",disabled:C.value===0,onClick:ue},{default:e.withCtx(()=>oe[9]||(oe[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",od,e.toDisplayString(C.value+1)+" / "+e.toDisplayString(_.value.length),1),e.createVNode(W,{size:"small",disabled:C.value===_.value.length-1,onClick:U},{default:e.withCtx(()=>oe[10]||(oe[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),_.value.length>1?(e.openBlock(),e.createElementBlock("div",td,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(ie,ua)=>(e.openBlock(),e.createElementBlock("div",{key:(ie.name||"")+"-"+ua,class:e.normalizeClass(["img-thumb-item",{active:ua===C.value}]),onClick:ce=>_e(ua)},[ie!=null&&ie.blobUrl?(e.openBlock(),e.createBlock(ke,{key:0,src:ie.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ie.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",cd,"加载失败")),e.createElementVNode("div",ud,e.toDisplayString(ie.name||"-"),1)],10,sd))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",dd,[b.value?(e.openBlock(),e.createElementBlock("div",pd,[e.createVNode(Ve,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Ie)]),_:1}),oe[11]||(oe[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(Qe=ae.value)!=null&&Qe.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ke,{ref_key:"imageRef",ref:R,src:ae.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[ae.value.blobUrl],onLoad:he},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",fd,[(Ea=ae.value)!=null&&Ea.url?(e.openBlock(),e.createElementBlock("span",hd,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",vd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",md,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),gd=nr._export_sfc(yd,[["__scopeId","data-v-48a4ecb1"]]),bd={class:"cert-preview-body"},kd={key:0,class:"pdf-preview-container"},xd={class:"thumbs"},wd=["onClick"],_d={class:"thumb-img"},Sd=["src"],Ed={key:1,class:"thumb-loading"},Cd={class:"thumb-title"},Dd={class:"viewer"},Td={key:0,class:"viewer-img-wrap"},Bd=["src"],Nd={key:1,class:"viewer-loading"},Ad=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(""),t=e.ref(""),f=e.computed(()=>(n.versions||[]).find(w=>String(w.versionId)===String(i.value))),c=e.ref({}),u=e.ref(""),m=e.ref("证书附件.pdf"),y=()=>{try{Object.values(c.value||{}).forEach(w=>{w&&URL.revokeObjectURL(w)}),u.value&&URL.revokeObjectURL(u.value)}catch{}c.value={},u.value=""},x=async w=>{if(!w||w.fileType==="pdf")return;const Y=Array.isArray(w.images)?w.images:[];for(const z of Y){const $=z==null?void 0:z.url;if(!(!$||c.value[$]))try{const O=await M.platformDownloadFile({url:$}),S=URL.createObjectURL(O.data);c.value={...c.value,[$]:S}}catch{}}},d=async w=>{var z;if(!w||w.fileType!=="pdf"){u.value="";return}const Y=w.sourceUrl||"";if(!Y){u.value="";return}if(u.value){try{URL.revokeObjectURL(u.value)}catch{}u.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:Y,versionId:w==null?void 0:w.versionId,certNo:w==null?void 0:w.certNo});const $=await M.platformDownloadFile({url:Y});console.log("[CertificatePreview] PDF响应:",{url:Y,status:$==null?void 0:$.status,size:(z=$==null?void 0:$.data)==null?void 0:z.size});const O=URL.createObjectURL($.data);u.value=O;const S=w.certNo?String(w.certNo):"";m.value=S?`${S}.pdf`:"证书附件.pdf"}catch($){console.error("[CertificatePreview] PDF加载失败:",{url:Y,error:$}),u.value=""}};e.watch(()=>n.visible,async w=>{var z;if(!w){y();return}const Y=(z=n.versions)==null?void 0:z[0];i.value=(Y==null?void 0:Y.versionId)||"",await x(Y),await d(Y)},{immediate:!0}),e.watch(()=>i.value,async()=>{var Y,z;const w=f.value;if(!w){t.value="",u.value="";return}if(w.fileType==="pdf"){t.value="",await d(w);return}u.value="",t.value=((z=(Y=w.images)==null?void 0:Y[0])==null?void 0:z.url)||"",await x(w)},{immediate:!0});const A=()=>{r("update:visible",!1),y()};return e.onBeforeUnmount(()=>{y()}),(w,Y)=>{const z=e.resolveComponent("el-empty"),$=e.resolveComponent("el-tab-pane"),O=e.resolveComponent("el-tabs"),S=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(k,{"model-value":w.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:A},{footer:e.withCtx(()=>[e.createVNode(S,{id:"themeBorderButton",onClick:A},{default:e.withCtx(()=>Y[1]||(Y[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[w.versions&&w.versions.length>0?(e.openBlock(),e.createBlock(O,{key:0,modelValue:i.value,"onUpdate:modelValue":Y[0]||(Y[0]=_=>i.value=_),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.versions,_=>(e.openBlock(),e.createBlock($,{key:_.versionId,name:_.versionId,label:_.label},{default:e.withCtx(()=>[e.createElementVNode("div",bd,[_.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",kd,[u.value?(e.openBlock(),e.createBlock(pl.SsFilePreview,{key:1,fileName:m.value,blobUrl:u.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(z,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",xd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===t.value}]),onClick:C=>t.value=b.url},[e.createElementVNode("div",_d,[c.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value[b.url]},null,8,Sd)):(e.openBlock(),e.createElementBlock("div",Ed,"加载中"))]),e.createElementVNode("div",Cd,e.toDisplayString(b.name),1)],10,wd))),128))]),e.createElementVNode("div",Dd,[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value[t.value]?(e.openBlock(),e.createElementBlock("div",Td,[e.createElementVNode("img",{class:"viewer-img",src:c.value[t.value]},null,8,Bd)])):(e.openBlock(),e.createElementBlock("div",Nd,"加载中"))],64)):(e.openBlock(),e.createBlock(z,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(z,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),zd=nr._export_sfc(Ad,[["__scopeId","data-v-220703c0"]]),Md={class:"ocr-candidate-wrap"},Id={class:"ocr-candidate-left"},Od={key:1},Ld={key:0},Rd={key:1},$d={key:2},Vd={key:3},Fd={key:0,class:"ocr-candidate-right"},Pd={class:"ocr-candidate-actions"},jd={key:1},Hd={class:"dialog-footer"},Ud={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const n=(C=[])=>{const R=[],V=ae=>{(ae||[]).forEach(ee=>{if(!ee)return;const _e=ee.children||ee.childrens||ee.columns;Array.isArray(_e)&&_e.length>0?V(_e):R.push(ee)})};return V(C),R},r=a,i=l,t=e.computed(()=>{var C;return((C=d.value)==null?void 0:C.allowAdd)!==!1}),f=e.computed(()=>{var C;return((C=d.value)==null?void 0:C.allowReplace)!==!1}),c=C=>{if(!C)return[];if(Array.isArray(C))return C;if(typeof C=="string")try{const R=JSON.parse(C);return Array.isArray(R)?R:[]}catch{return[]}return[]},u=C=>{i("preview-file",C)},m=e.ref([]),y=e.ref(0),x=e.ref("");e.watch(()=>r.candidates,C=>{var R,V;m.value=(C||[]).map(ae=>({...ae,...(ae==null?void 0:ae.ocrRow)||{},selectedTargetId:(ae==null?void 0:ae.selectedTargetId)||"",__decision:ae==null?void 0:ae.__decision})),y.value=0,x.value=((V=(R=m.value)==null?void 0:R[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>r.visible,C=>{var R,V;C&&(y.value=0,x.value=((V=(R=m.value)==null?void 0:R[0])==null?void 0:V.selectedTargetId)||"")});const d=e.computed(()=>{var R;const C=Number(y.value||0);return((R=m.value||[])==null?void 0:R[C])||null}),A=e.computed(()=>(n(r.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),w=e.computed(()=>A.value.filter(C=>C.label!=="证书附件"&&C.prop!=="证书附件")),Y=C=>{if(!C)return;const R=(m.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(C==null?void 0:C.idx));R>-1&&(y.value=R,x.value=(C==null?void 0:C.selectedTargetId)||"")},z=C=>{if(!C){x.value="";return}x.value=String((C==null?void 0:C.id)??"")},$=(C,R="")=>{const V=Number(y.value||0),ae=m.value||[],ee=ae[V];ee&&(ee.__decision=C,ee.selectedTargetId=R,x.value=R,m.value=[...ae])},O=()=>$("skip",""),S=()=>$("add",""),k=()=>{if(!x.value){Ja.ElMessage.warning("请先选择要替换的目标记录");return}$("replace",x.value)},_=()=>{i("update:visible",!1)},b=()=>{const C=m.value||[];if(C.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){Ja.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}i("submit",C),i("update:visible",!1)};return(C,R)=>{const V=e.resolveComponent("el-table-column"),ae=e.resolveComponent("svg-icon"),ee=e.resolveComponent("el-table"),_e=e.resolveComponent("el-button"),ue=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Ir.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:_},{default:e.withCtx(()=>{var U,P;return[e.createElementVNode("div",Md,[e.createElementVNode("div",Id,[R[0]||(R[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(ee,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:Y},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,X=>(e.openBlock(),e.createBlock(V,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:re})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(re==null?void 0:re[X.prop]).length>0?(e.openBlock(),e.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(he=>u({row:re,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Od,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((re==null?void 0:re[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:X})=>[e.createTextVNode(e.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),e.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Ld,"替换")):(X==null?void 0:X.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Rd,"新增")):(X==null?void 0:X.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",$d,"跳过")):(e.openBlock(),e.createElementBlock("span",Vd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Fd,[R[4]||(R[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Pd,[e.createVNode(_e,{id:"themeBorderButton",onClick:O},{default:e.withCtx(()=>R[1]||(R[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(_e,{id:"themeBorderButton",onClick:S,disabled:!t.value},{default:e.withCtx(()=>R[2]||(R[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(_e,{class:"ok-button",id:"themeButton",onClick:k,disabled:!f.value||!x.value},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((U=d.value)==null?void 0:U.candidates)||[]).length===0?(e.openBlock(),e.createBlock(ue,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(ee,{data:((P=d.value)==null?void 0:P.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:z,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,X=>(e.openBlock(),e.createBlock(V,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:re})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(re==null?void 0:re[X.prop]).length>0?(e.openBlock(),e.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(he=>u({row:re,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",jd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((re==null?void 0:re[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Hd,[e.createVNode(_e,{id:"themeBorderButton",onClick:_},{default:e.withCtx(()=>R[5]||(R[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(_e,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>R[6]||(R[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},qd=nr._export_sfc(Ud,[["__scopeId","data-v-89e0489c"]]),Wd={class:"ocr-preview-content"},Kd={class:"ocr-preview-tip"},Gd={class:"ocr-preview-table"},Yd={style:{display:"flex","align-items":"center",gap:"8px"}},Jd={class:"dialog-footer"},Xd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]),t=e.ref([]),f=e.ref([]);e.watch(()=>n.visible,A=>{A&&(i.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),t.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),f.value=[...n.ocrSelectedFields])});const c=(A,w)=>{const Y=[...f.value];if(w)Y.includes(A)||Y.push(A);else{const z=Y.indexOf(A);z>-1&&Y.splice(z,1)}f.value=Y,r("update:ocrSelectedFields",Y)},u=(A,w,Y)=>{r("fieldChange",{rowIndex:A,prop:w,value:Y})},m=()=>{r("update:ocrPreviewData",i.value),r("confirm",i.value),r("update:visible",!1)},y=()=>{r("update:visible",!1)},x=A=>typeof A!="number"?"-":`${(A*100).toFixed(1)}%`,d=A=>typeof A!="number"?"#606266":A>=.9?"#67c23a":A>=.7?"#e6a23c":"#f56c6c";return(A,w)=>{const Y=e.resolveComponent("el-alert"),z=e.resolveComponent("el-table-column"),$=e.resolveComponent("el-checkbox"),O=e.resolveComponent("el-input"),S=e.resolveComponent("el-table"),k=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Ir.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:y,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Wd,[e.createElementVNode("div",Kd,[e.createVNode(Y,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Gd,[e.createVNode(S,{data:i.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(z,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,_=>(e.openBlock(),e.createBlock(z,{key:_.prop,prop:_.prop,"min-width":_.minWidth||230,"class-name":_.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Yd,[_.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($,{key:0,"model-value":f.value.includes(_.prop),onChange:b=>c(_.prop,b),onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(_.label),1)])]),default:e.withCtx(({row:b,$index:C})=>[_.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:d(b[_.prop]),fontWeight:500})},e.toDisplayString(x(b[_.prop])),5)):(e.openBlock(),e.createBlock(O,{key:1,modelValue:b[_.prop],"onUpdate:modelValue":R=>b[_.prop]=R,size:"small",placeholder:"请输入"+_.label,onChange:R=>u(C,_.prop,R)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Jd,[e.createVNode(k,{onClick:y,id:"themeBorderButton"},{default:e.withCtx(()=>w[1]||(w[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(k,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>w[2]||(w[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Zd=nr._export_sfc(Xd,[["__scopeId","data-v-df66eb1f"]]),Zn=a=>{var r;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let n=(r=le.analyzeSplitToContent(l,","))==null?void 0:r.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),gn(i)));return n=n==null?void 0:n.join(","),n};function sc(a){return Ja.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Qd(a){return Ja.axios.get(a,{responseType:"blob"})}let lr="$R",ep="http://222.92.178.198:55002/AIRobot",vt=["Form","BarChart","FormText","FormBlock"];const cc=a=>{var n,r;let l=(r=le.analyzeSplitToContent(a,"@"))==null?void 0:r[((n=le.analyzeSplitToContent(a,"@"))==null?void 0:n.length)-1];return!!(vt!=null&&vt.some(i=>l==null?void 0:l.includes(i)))},ap=async(a,l,n,r)=>{var t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua;let i=a;if(cc(i==null?void 0:i[0])){let ce=sp(i),ea=(t=ce==null?void 0:ce.filter)==null?void 0:t.join(","),Me=[];(f=ce==null?void 0:ce.hideContents)==null||f.forEach(Ke=>{if(Ke){const ka=Ke;ka&&Me.push(`(HideGroup=Yes, prop=${ka})`)}});let de=(c=ce==null?void 0:ce.formContents)==null?void 0:c.filter(Ke=>{var ka;return(ka=Ke==null?void 0:Ke.filters)==null?void 0:ka.includes("@ShowHide=Hide")});(de==null?void 0:de.length)>0&&(de==null||de.forEach(Ke=>{if(Ke){const ka=Ke==null?void 0:Ke.prop;ka&&Me.push(`(Hide=Yes, prop=${ka})`)}}));let fe=(r==null?void 0:r.menuFilter)??[];return Array.isArray(fe)||(fe=fe?[fe]:[]),fe=[...fe,...Me],{key:"Form",name:ce==null?void 0:ce.groupName,value:ce==null?void 0:ce.formContents,contents:Array.isArray((u=ce==null?void 0:ce.contents)==null?void 0:u[0])&&((y=(m=ce==null?void 0:ce.contents)==null?void 0:m[0])!=null&&y.every(Ke=>Array.isArray(Ke)))?[(d=(x=ce==null?void 0:ce.contents)==null?void 0:x[0])==null?void 0:d[n]]:[ce==null?void 0:ce.contents],filter:"("+ea+")",menuFilter:fe,groupFilter:ce==null?void 0:ce.groupFilters}}else if(((A=i==null?void 0:i[0])==null?void 0:A[0])!=="&"){let ce=pc(i,r),ea="";(w=ce==null?void 0:ce.tableFilter)!=null&&w.includes(lr)?ce.tableFilter=(Y=ce==null?void 0:ce.tableFilter)==null?void 0:Y.replace(lr,""):ea=(O=($=(z=ce==null?void 0:ce.tableFilter)==null?void 0:z.replace("(",lr))==null?void 0:$.split(lr))==null?void 0:O[0];let Me=[];ce!=null&&ce.tableFilter&&((S=le.analyzeSplitToContent(ce==null?void 0:ce.tableFilter,","))==null||S.forEach(fe=>{fe!=null&&fe.includes("@ShowHide=Hide")&&Me.push("HideGroup=Yes")}));let de=(r==null?void 0:r.menuFilter)??[];return Array.isArray(de)||(de=de?[de]:[]),de=[...de,...Me],{key:"Table",name:ce==null?void 0:ce.groupName,tableColumns:ce==null?void 0:ce.tableColumns,assistColumn:ce==null?void 0:ce.columns,tableContents:l===1?ce==null?void 0:ce.tableContents:(_=(k=ce==null?void 0:ce.tableContents)==null?void 0:k[n])!=null&&_.every(fe=>Array.isArray(fe))?(b=ce==null?void 0:ce.tableContents)==null?void 0:b[n]:[(C=ce==null?void 0:ce.tableContents)==null?void 0:C[n]],filter:ce==null?void 0:ce.tableFilter,menuFilter:de,quotePage:ea!==""?((ae=(V=(R=ea==null?void 0:ea.replace("*",lr))==null?void 0:R.split(lr))==null?void 0:V[0])==null?void 0:ae.replaceAll(":","/"))??"":void 0,quoteGroup:ea!==""?((re=(X=(P=(U=(ue=(_e=(ee=ea==null?void 0:ea.replace("*",lr))==null?void 0:ee.split(lr))==null?void 0:_e[1])==null?void 0:ue.replace("{",lr))==null?void 0:U.split(lr))==null?void 0:P[0])==null?void 0:X.split(":"))==null?void 0:re.filter(fe=>fe!==""))??[]:[],relatedQuotes:ce==null?void 0:ce.relatedQuotes,fatherSyncContents:ce==null?void 0:ce.fatherSyncContents,sonSyncContents:ce==null?void 0:ce.sonSyncContents,calculatorFilters:(ce==null?void 0:ce.calculatorFilters)??[]}}else{let ce=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],ea=i==null?void 0:i[0];ea=ea==null?void 0:ea.slice(1,ea==null?void 0:ea.length),ea=le.analyzeSplitToContent(ea,":"),ea=ea==null?void 0:ea[(ea==null?void 0:ea.length)-1];let Me=[];Me.push("1");let de=ea==null?void 0:ea.replace("(",lr);de=(he=de==null?void 0:de.split(lr))==null?void 0:he[0],Me.push(de);let fe=ea==null?void 0:ea.replace("(",lr);if(fe=($e=fe==null?void 0:fe.split(lr))==null?void 0:$e[1],fe=(B=(se=fe==null?void 0:fe.replace(")",lr))==null?void 0:se.split(lr))==null?void 0:B[0],(W=(oe=fe==null?void 0:fe.replace(",",lr))==null?void 0:oe.split(lr))==null||W.forEach(Ke=>{Me.push(Ke)}),Me.push(""),Me.push(""),(ke=Me==null?void 0:Me[2])!=null&&ke.includes(".xlsx")||(Ie=Me==null?void 0:Me[2])!=null&&Ie.includes(".xls"))try{let Ke=ep+"/"+(Me==null?void 0:Me[2]),ka=await Qd(Ke),Ba=`生成js函数名称为${Me==null?void 0:Me[1]}的函数,规则为:`+(Me==null?void 0:Me[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((ka==null?void 0:ka.status)===200){let q=ka==null?void 0:ka.data;const F=new FormData;F.append("file",q,Me==null?void 0:Me[2]),F.append("query",Ba);let Q=await sc(F);Q=(Ea=(Qe=(Ve=Q==null?void 0:Q.data)==null?void 0:Ve.data)==null?void 0:Qe.response)==null?void 0:Ea.replace("generateResult",Me==null?void 0:Me[1]),Me[Me.length-2]=Q,Me[Me.length-1]=[{name:(ua=(ie=Me==null?void 0:Me[2])==null?void 0:ie.split("."))==null?void 0:ua[0],url:Ke}]}}catch{}return Me=[Me],{key:"Method",name:[],tableContents:Me,tableColumns:ce}}},lp=(a,l)=>{var r,i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me;let n=(i=(r=le.analyzeSplitToContent(a,"="))==null?void 0:r.filter(de=>de!=="="))==null?void 0:i.map(de=>((de==null?void 0:de[(de==null?void 0:de.length)-1])==="="&&(de=de==null?void 0:de.slice(0,(de==null?void 0:de.length)-1)),de));if(cc(n==null?void 0:n[1])){let de=tp(n),fe=(c=(f=(t=de==null?void 0:de.filter)==null?void 0:t.replace("@",lr))==null?void 0:f.split(lr))==null?void 0:c[0],Ke=(y=(m=(u=de==null?void 0:de.filter)==null?void 0:u.replace("(",lr))==null?void 0:m.split(lr))==null?void 0:y[1],ka=(A=(d=(x=de==null?void 0:de.filter)==null?void 0:x.replace("(",lr))==null?void 0:d.split(lr))==null?void 0:A[0];ka="@"+((w=ka==null?void 0:ka.split("@"))==null?void 0:w[1]),Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),Ke=(z=(Y=le.analyzeSplitToContent(Ke,","))==null?void 0:Y.map(q=>(q=ka+q,q)))==null?void 0:z.join("");let Ba=fe+"("+Ke+")";return{key:"Form",name:de==null?void 0:de.group,filter:Ba,formPage:((S=(O=($=fe==null?void 0:fe.replace("*",lr))==null?void 0:$.split(lr))==null?void 0:O[0])==null?void 0:S.replaceAll(":","/"))??"",formGroup:((ae=(V=(R=(C=(b=(_=(k=fe==null?void 0:fe.replace("*",lr))==null?void 0:k.split(lr))==null?void 0:_[1])==null?void 0:b.replace("{",lr))==null?void 0:C.split(lr))==null?void 0:R[0])==null?void 0:V.split(":"))==null?void 0:ae.filter(q=>q!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let de=n==null?void 0:n.filter((Q,pe)=>pe!==0);de=de==null?void 0:de.join("");let fe=pc(n,l,de),Ke="";(ee=fe==null?void 0:fe.tableFilter)!=null&&ee.includes(lr)?fe.tableFilter=(_e=fe==null?void 0:fe.tableFilter)==null?void 0:_e.replace(lr,""):Ke=(P=(U=(ue=fe==null?void 0:fe.tableFilter)==null?void 0:ue.replace("(",lr))==null?void 0:U.split(lr))==null?void 0:P[0];let ka=(he=(re=(X=fe==null?void 0:fe.tableFilter)==null?void 0:X.replace("(",lr))==null?void 0:re.split(lr))==null?void 0:he[0];ka=[{menus:(se=($e=ka==null?void 0:ka.split("*"))==null?void 0:$e[0])==null?void 0:se.replaceAll(":","/"),groups:((oe=(B=ka==null?void 0:ka.split("*"))==null?void 0:B[1])==null?void 0:oe.split(":"))??[]}];let Ba=(Ie=(ke=(W=fe==null?void 0:fe.tableFilter)==null?void 0:W.replace("(",lr))==null?void 0:ke.split(lr))==null?void 0:Ie[1];(Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1])===")"&&(Ba=Ba==null?void 0:Ba.slice(0,(Ba==null?void 0:Ba.length)-1));let q=[];fe!=null&&fe.tableFilter&&((Ve=le.analyzeSplitToContent(fe==null?void 0:fe.tableFilter,","))==null||Ve.forEach(Q=>{Q!=null&&Q.includes("@ShowHide=Hide")&&q.push("HideGroup=Yes")}));let F=(l==null?void 0:l.menuFilter)??[];return Array.isArray(F)||(F=F?[F]:[]),F=[...F,...q],{key:"Table",name:fe==null?void 0:fe.groupName,filter:fe==null?void 0:fe.tableFilter,tableColumns:fe==null?void 0:fe.tableColumns,quotePage:Ke!==""?((ie=(Ea=(Qe=Ke==null?void 0:Ke.replace("*",lr))==null?void 0:Qe.split(lr))==null?void 0:Ea[0])==null?void 0:ie.replaceAll(":","/"))??"":void 0,quoteGroup:Ke!==""?((Me=(ea=(ce=(ua=Ke==null?void 0:Ke.replace("*",lr))==null?void 0:ua.split(lr))==null?void 0:ce[1])==null?void 0:ea.split(":"))==null?void 0:Me.filter(Q=>Q!==""))??[]:[],menuFilter:F,relatedQuotes:ka,fatherSyncContents:(fe==null?void 0:fe.fatherSyncContents)??[],sonSyncContents:(fe==null?void 0:fe.sonSyncContents)??[],calculatorFilters:(fe==null?void 0:fe.calculatorFilters)??[]}}},rp=async(a,l)=>{let n=[],r=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(i,t)=>{let f=[];i=i==null?void 0:i.map(async c=>{var u,m;if(f.push(c),((u=le.analyzeSplitToContent(a,"="))==null?void 0:u.length)<=2){if(((m=le.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const y=await ap(le.analyzeSplitToContent(a,"="),r,t,c);f.push(y)}}else f.push(lp(a,c))}),await Promise.all(i),n.push(f)}),await Promise.all(l),n};let qi="/",np="$",En="$R";const uc=a=>{var n,r,i;let l="";if((a==null?void 0:a.length)>1){let t=a==null?void 0:a.filter((f,c)=>c!==0);t=t==null?void 0:t.join(""),t=le.analyzerSplitToWord(t,")"),(t==null?void 0:t.length)!==1?(t==null?void 0:t[(t==null?void 0:t.length)-1])===")"?t=t==null?void 0:t.join(""):t=(n=t==null?void 0:t.filter((f,c)=>c!==(t==null?void 0:t.length)-1))==null?void 0:n.join(""):t=t==null?void 0:t[0],l="("+t,((i=a==null?void 0:a[0])==null?void 0:i[((r=a==null?void 0:a[0])==null?void 0:r.length)-2])==="@"&&(l="@"+l)}return{filter:l}},dc=(a,l=[])=>{let n=(a==null?void 0:a.map(t=>{var f,c;return(c=t==null?void 0:t.key)==null?void 0:c.slice(1,(f=t==null?void 0:t.key)==null?void 0:f.length)}))??[],r=[];n==null||n.forEach(t=>{var f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e;if(t===""&&(t="算法库:通用算法"),t!=null&&t.includes(np)){let ue="",U=!0,P=le.analyzerSplitToWord(t,"(");(P==null?void 0:P.length)>1&&(ue="("+((f=le.analyzerSplitToWord(P==null?void 0:P[1],")"))==null?void 0:f[0]),((u=P==null?void 0:P[0])==null?void 0:u[((c=P==null?void 0:P[0])==null?void 0:c.length)-2])==="@"&&(ue="@"+ue));let X=t;X=X==null?void 0:X.replace(ue,""),ue=gn(ue),ue=(m=le.analyzeSplitToContent(ue,","))==null?void 0:m.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===","&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe)),ue!=null&&ue.includes("@ShowHide=Hide")&&(U=!1);let re=(y=X==null?void 0:X.replace("$",En))==null?void 0:y.split(En),he=re==null?void 0:re[1],$e=re==null?void 0:re[0];$e!=null&&$e.includes("[")&&($e=(d=(x=$e==null?void 0:$e.replace("[",En))==null?void 0:x.split(En))==null?void 0:d[0],he=he+":["+((Y=(w=(A=re==null?void 0:re[0])==null?void 0:A.replace("[",En))==null?void 0:w.split(En))==null?void 0:Y[1])),$e=($=(z=$e==null?void 0:$e.replaceAll(":","/"))==null?void 0:z.replaceAll("{",""))==null?void 0:$.replaceAll("}",""),($e==null?void 0:$e[($e==null?void 0:$e.length)-1])!=="/"&&($e=$e+"/"),he=((O=$e==null?void 0:$e.split("/"))==null?void 0:O[0])+":"+he;let B="";if(!(he!=null&&he.includes("[")))B=he==null?void 0:he.replaceAll(":","/"),r==null||r.push({path:B,isShow:U,filter:ue,fatherPath:$e});else{let oe=(k=(S=he==null?void 0:he.replace("[",En))==null?void 0:S.split(En))==null?void 0:k[1];oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1),oe=(_=le.analyzeSplitToContent(oe,","))==null?void 0:_.map(W=>((W==null?void 0:W[(W==null?void 0:W.length)-1])===","&&(W=W==null?void 0:W.slice(0,(W==null?void 0:W.length)-1)),W)),oe==null||oe.forEach(W=>{var ke,Ie;B=((Ie=(ke=he==null?void 0:he.replace("[",En))==null?void 0:ke.split(En))==null?void 0:Ie[0])+W,B=B==null?void 0:B.replaceAll(":","/"),r==null||r.push({path:B,isShow:U,filter:ue,fatherPath:$e})})}}else{let ue="",U=!0,P=le.analyzerSplitToWord(t,"(");(P==null?void 0:P.length)>1&&(ue=(b=uc(P))==null?void 0:b.filter);let X=t;if(X=X==null?void 0:X.replace(ue,""),(ue==null?void 0:ue[0])==="("){ue=ue==null?void 0:ue.slice(1,(ue==null?void 0:ue.length)-1);let he=[];(C=le.analyzeSplitToContent(ue,","))==null||C.forEach($e=>{($e==null?void 0:$e[($e==null?void 0:$e.length)-1])===","&&($e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1)),($e==null?void 0:$e[0])==="("&&($e=$e==null?void 0:$e.slice(1,($e==null?void 0:$e.length)-1)),($e==null?void 0:$e[0])!=="@"&&($e="@"+$e),he.push(gn($e))}),ue=he==null?void 0:he.join(",")}else ue=gn(ue);ue=(R=le.analyzeSplitToContent(ue,","))==null?void 0:R.map(he=>((he==null?void 0:he[(he==null?void 0:he.length)-1])===","&&(he=he==null?void 0:he.slice(0,(he==null?void 0:he.length)-1)),he)),ue!=null&&ue.includes("@ShowHide=Hide")&&(U=!1),(X==null?void 0:X[(X==null?void 0:X.length)-1])==="}"&&(X=X+":"),X=(V=X==null?void 0:X.replaceAll("{",""))==null?void 0:V.replaceAll("}","");let re="";if(X!=null&&X.includes("[")){let he=(ae=X==null?void 0:X.replace("[",En))==null?void 0:ae.split(En),$e=he==null?void 0:he[1];$e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1),(_e=(ee=le.analyzeSplitToContent($e,","))==null?void 0:ee.map(se=>((se==null?void 0:se[(se==null?void 0:se.length)-1])===","&&(se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1)),se)))==null||_e.forEach(se=>{re=(he==null?void 0:he[0])+se,re=re==null?void 0:re.replaceAll(":","/"),r==null||r.push({path:re,isShow:U,filter:ue})})}else re=X==null?void 0:X.replaceAll(":","/"),r==null||r.push({path:re,isShow:U,filter:ue})}});let i=M.cloneDeep(r);return(l==null?void 0:l.length)>0&&(i=l),i=i==null?void 0:i.filter(t=>{var f,c,u,m;return!(t!=null&&t.fatherPath)&&((c=(f=t==null?void 0:t.path)==null?void 0:f.split(qi))==null?void 0:c.length)>1&&((m=(u=t==null?void 0:t.path)==null?void 0:u.split(qi))==null?void 0:m[1])===""}),i=i==null?void 0:i.map(t=>{var f;return t.path=(f=t.path)==null?void 0:f.replace(qi,""),t.path}),(i==null?void 0:i.length)>0&&(r=r==null?void 0:r.map(t=>{var c,u,m,y,x,d,A;let f=i==null?void 0:i.find(w=>{var Y;return(Y=t==null?void 0:t.path)==null?void 0:Y.includes(w)});return!(t!=null&&t.fatherPath)&&f&&!((c=t==null?void 0:t.path)!=null&&c.includes(qi))&&!(i!=null&&i.find(w=>(t==null?void 0:t.path)===w))&&(t.path=f+qi+((A=(m=(u=t==null?void 0:t.path)==null?void 0:u.split(f))==null?void 0:m[1])==null?void 0:A.slice(1,(d=(x=(y=t==null?void 0:t.path)==null?void 0:y.split(f))==null?void 0:x[1])==null?void 0:d.length))),t})),r},ip=(a,l)=>dc([{key:a}],l),op=async(a,l)=>{const n=[],r=ip(a==null?void 0:a.key,l);return r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(t=>{n.push([{key:"path",value:t==null?void 0:t.path,parentPath:(t==null?void 0:t.parentPath)??"",isShow:t==null?void 0:t.isShow,menuFilter:t==null?void 0:t.filter}])})),await rp(a==null?void 0:a.value,n)};let yl="$R",Ki="[Any]";const tp=a=>{var f,c;let l={},r=a==null?void 0:a[0];(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),l.group=r;let i=a==null?void 0:a[1],t;return i!=null&&i.includes("{")?t=(c=(f=i==null?void 0:i.replaceAll("{",""))==null?void 0:f.replaceAll("}",""))==null?void 0:c.replaceAll(Ki,""):t=i==null?void 0:i.replaceAll(Ki,""),(t==null?void 0:t[0])==="$"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),l.filter=t,l},sp=a=>{var d,A,w,Y,z,$;let l=[],n=[],r=[],i=[],t=[],f=[],c="",u=a==null?void 0:a[0];(u==null?void 0:u[0])==="*"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length));let m=le.analyzeSplitToContent(u,":");(d=m==null?void 0:m.filter(O=>(O==null?void 0:O[0])!=="{"&&(O==null?void 0:O[0])!=="["))==null||d.forEach(O=>{var k,_,b;(O==null?void 0:O[(O==null?void 0:O.length)-1])===":"&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1));let S=le.analyzerSplitToWord(O,"(");if((S==null?void 0:S.length)>1){c=(k=uc(S))==null?void 0:k.filter;let C=O==null?void 0:O.replace(c,"");if(r.push(C),(c==null?void 0:c[0])==="("){c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1);let R=[];(_=le.analyzeSplitToContent(c,","))==null||_.forEach(V=>{(V==null?void 0:V[(V==null?void 0:V.length)-1])===","&&(V=V==null?void 0:V.slice(0,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])==="("&&(V=V==null?void 0:V.slice(1,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])!=="@"&&(V="@"+V),R.push(gn(V))}),c=R==null?void 0:R.join(",")}else c=gn(c);c=(b=le.analyzeSplitToContent(c,","))==null?void 0:b.map(R=>((R==null?void 0:R[(R==null?void 0:R.length)-1])===","&&(R=R==null?void 0:R.slice(0,(R==null?void 0:R.length)-1)),R)),c!=null&&c.includes("@ShowHide=Hide")&&f.push(C),i=[...i,...c]}else r.push(S==null?void 0:S[0])});let y=(A=m==null?void 0:m.filter(O=>(O==null?void 0:O[0])==="{"))==null?void 0:A[0],x=(w=m==null?void 0:m.filter(O=>(O==null?void 0:O[0])==="["))==null?void 0:w[0];return l=Ii(x??""),l!=null&&l.every(O=>Array.isArray(O))&&(l=[l]),(y==null?void 0:y[(y==null?void 0:y.length)-1])===":"&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),t=(Y=le.analyzeSplitToContent(y,"@"))==null?void 0:Y[1],t="@"+t,y=y==null?void 0:y.replace(t,""),t=gn(t),t=(z=le.analyzeSplitToContent(t,","))==null?void 0:z.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O)),(y==null?void 0:y[0])==="{"&&(y=y==null?void 0:y.slice(1,(y==null?void 0:y.length)-1)),y=($=le.analyzeSplitToContent(y,","))==null?void 0:$.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O)),y==null||y.forEach((O,S)=>{var re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa;let k=[],_=[],b=[],C="",R="",V=!1,ae,ee=[],_e=[],ue=[],U="Input",P=[],X=[];if(O!=null&&O.includes("==")){ae=(re=O==null?void 0:O.split("=="))==null?void 0:re[0];let Aa=(he=O==null?void 0:O.split("=="))==null?void 0:he[1],De="";(($e=le.analyzeSplitToContent(Aa,"$"))==null?void 0:$e.length)>1&&((se=le.analyzeSplitToContent(Aa,"$"))==null?void 0:se[0])!=="$"?(De=(B=le.analyzeSplitToContent(Aa,"$"))==null?void 0:B[0],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)):((oe=le.analyzeSplitToContent(Aa,"}"))==null?void 0:oe.length)>1&&(De=(W=le.analyzeSplitToContent(Aa,"}"))==null?void 0:W[1]);let wa=Aa==null?void 0:Aa.replace(De,"");if((De==null?void 0:De[0])==="("&&(De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1)),(ke=le.analyzeSplitToContent(De,","))==null||ke.forEach(Je=>{var H;(Je==null?void 0:Je[0])!=="@"&&(Je="@"+Je),(Je==null?void 0:Je[(Je==null?void 0:Je.length)-1])===","&&(Je=Je==null?void 0:Je.slice(0,(Je==null?void 0:Je.length)-1));let xe=gn(Je);(H=le.analyzeSplitToContent(xe,","))==null||H.forEach(Oe=>{(Oe==null?void 0:Oe[(Oe==null?void 0:Oe.length)-1])===","&&(Oe=Oe==null?void 0:Oe.slice(0,(Oe==null?void 0:Oe.length)-1)),k.push(Oe)})}),(wa==null?void 0:wa[0])==="$"&&(wa=wa==null?void 0:wa.slice(1,wa==null?void 0:wa.length)),wa!=null&&wa.includes("&")){let Je=wa;if((wa==null?void 0:wa[0])==="("){let H=(Ie=le.analyzeSplitToContent(wa,"&"))==null?void 0:Ie.map(Oe=>((Oe==null?void 0:Oe[(Oe==null?void 0:Oe.length)-1])==="&"&&(Oe=Oe==null?void 0:Oe.slice(0,(Oe==null?void 0:Oe.length)-1)),Oe));Je=H==null?void 0:H[1],H=H==null?void 0:H[0],(H==null?void 0:H[0])!=="@"&&(H="@"+H),C=gn(H)}(Je==null?void 0:Je[0])==="&"&&(Je=Je==null?void 0:Je.slice(1,Je==null?void 0:Je.length)),R=(Qe=(Ve=Je==null?void 0:Je.replace("(",yl))==null?void 0:Ve.split(yl))==null?void 0:Qe[0],b=(ie=(Ea=Je==null?void 0:Je.replace("(",yl))==null?void 0:Ea.split(yl))==null?void 0:ie[1],b=[b==null?void 0:b.slice(0,(b==null?void 0:b.length)-1)],U="Input"}else{let Je=(ua=wa==null?void 0:wa.replace("*",yl))==null?void 0:ua.split(yl);ee=(ce=Je==null?void 0:Je[0])==null?void 0:ce.split(":"),_e=(Me=(ea=le.analyzeSplitToContent(Je==null?void 0:Je[1],":"))==null?void 0:ea.filter((xe,H)=>{var Oe,Re;return H!==((Re=(Oe=Je==null?void 0:Je[1])==null?void 0:Oe.split(":"))==null?void 0:Re.length)-1}))==null?void 0:Me.map(xe=>((xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])===":"&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe)),ue=(fe=(de=le.analyzeSplitToContent(Je==null?void 0:Je[1],":"))==null?void 0:de.filter((xe,H)=>{var Oe,Re;return H===((Re=(Oe=Je==null?void 0:Je[1])==null?void 0:Oe.split(":"))==null?void 0:Re.length)-1}))==null?void 0:fe[0],ue=(ka=(Ke=ue==null?void 0:ue.replaceAll("{",""))==null?void 0:Ke.replaceAll("}",""))==null?void 0:ka.split(":"),U="Select"}}else if(((Ba=le.analyzeSplitToContent(O,"="))==null?void 0:Ba.length)>1)if(U="Select",ae=(F=(q=O==null?void 0:O.replace("=",yl))==null?void 0:q.split(yl))==null?void 0:F[0],!(O!=null&&O.includes("If")))P=(pe=(Q=O==null?void 0:O.replace("=",yl))==null?void 0:Q.split(yl))==null?void 0:pe[1],P=P==null?void 0:P.split("||");else{let Aa=(da=(ve=O==null?void 0:O.replace("=",yl))==null?void 0:ve.split(yl))==null?void 0:da[1];X=(ca=le.analyzeSplitToContent(Aa,")"))==null?void 0:ca.filter(De=>!(De!=null&&De.includes("If"))),X=X==null?void 0:X.map(De=>((De==null?void 0:De[0])==="("&&(De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1)),De=De==null?void 0:De.split("||"),De)),_=(Ue=le.analyzeSplitToContent(Aa,")"))==null?void 0:Ue.filter(De=>De==null?void 0:De.includes("If")),_=_==null?void 0:_.map(De=>((De==null?void 0:De[0])==="|"&&(De=De==null?void 0:De.slice(2,De==null?void 0:De.length)),(De==null?void 0:De[0])==="("&&(De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1)),(De==null?void 0:De[0])!=="@"&&(De="@"+De),De))}else if(((xa=le.analyzeSplitToContent(O,"@"))==null?void 0:xa.length)>1){ae=(Na=le.analyzeSplitToContent(O,"@"))==null?void 0:Na[0],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="@"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1));let Aa="@"+((Ce=le.analyzeSplitToContent(O,"@"))==null?void 0:Ce[1]);Aa=gn(Aa),k=(Pa=le.analyzeSplitToContent(Aa,","))==null?void 0:Pa.map(De=>((De==null?void 0:De[(De==null?void 0:De.length)-1])===","&&(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)),De)),k!=null&&k.find(De=>De==null?void 0:De.includes("@Type"))&&(U=(oa=(Ca=k==null?void 0:k.find(De=>De==null?void 0:De.includes("@Type")))==null?void 0:Ca.split("="))==null?void 0:oa[1])}else ae=O;k!=null&&k.includes("@ShowHide=Hide")&&(V=!0),n.push({prop:ae,label:ae,value:"",menuPath:ee,groups:_e,columns:ue,type:U,options:P,allContents:X,filters:k,width:y==null?void 0:y.length,isFormColHidden:V,filterContents:_,functionName:R,functionRelatedWords:b,calculatorFilter:C})}),{groupName:r,groupFilters:i,formContents:n,contents:l,filter:t,hideContents:f}},Ii=a=>{var r,i;if(!a||typeof a!="string")return[];let l=[],n=a.slice(1,(a==null?void 0:a.length)-1);if((n==null?void 0:n[0])!=="[")(r=le.analyzeSplitToContent(n,","))==null||r.forEach(t=>{(t==null?void 0:t[(t==null?void 0:t.length)-1])===","&&(t=t.slice(0,(t==null?void 0:t.length)-1)),l.push(t??"")}),(n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&l.push("");else{let t=[];(i=le.analyzeSplitToContent(n,","))==null||i.forEach(f=>{(f==null?void 0:f[(f==null?void 0:f.length)-1])===","&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),t.push(Ii(f))}),l=t}return l},wt=(a,l)=>{var $,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe,Re,Ia,na,za;let n,r=[],i=[],t=[],f=[],c=[],u=[],m=[],y="Input",x,d="",A="",w="",Y=[],z="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(n=($=a==null?void 0:a.split("=="))==null?void 0:$[0],x=(O=a==null?void 0:a.split("=="))==null?void 0:O[0],y="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((_=(k=(S=a==null?void 0:a.replace("=",yl))==null?void 0:S.split(yl))==null?void 0:k[1])!=null&&_.includes("If")))if(n=le.analyzeSplitToContent(a,"@"),n=n==null?void 0:n[0],(n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=(C=(b=n==null?void 0:n.replace("=",yl))==null?void 0:b.split(yl))==null?void 0:C[0],n!=null&&n.includes("&")&&(n=(V=(R=n==null?void 0:n.replace("&",yl))==null?void 0:R.split(yl))==null?void 0:V[0]),x=n,((ae=le.analyzeSplitToContent(a,"@"))==null?void 0:ae.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Ae=(ee=le.analyzeSplitToContent(a,"@"))==null?void 0:ee[1];if((Ae==null?void 0:Ae[0])!=="@"&&(Ae="@"+Ae),Ae=gn(Ae),A=Ae,A!=null&&A.includes("@Type")){let Pe=le.analyzeSplitToContent(A,",");Pe=Pe==null?void 0:Pe.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])===","&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1)),je)),Pe=(_e=Pe==null?void 0:Pe.filter(je=>je==null?void 0:je.includes("@Type")))==null?void 0:_e[0],y=(ue=Pe==null?void 0:Pe.split("="))==null?void 0:ue[1],y==="File"&&(y="Upload")}else y="Input"}}else if(a!=null&&a.includes("||")){let Ae=[];r=(X=(P=(U=le.analyzeSplitToContent(a,"="))==null?void 0:U[1])==null?void 0:P.split("||"))==null?void 0:X.map(je=>{var we,tl,Dl,Ml;let ze=je;if(ze!=null&&ze.includes("@")){let jl="@"+((tl=(we=ze==null?void 0:ze.replace("@",yl))==null?void 0:we.split(yl))==null?void 0:tl[1]);ze=(Ml=(Dl=ze==null?void 0:ze.replace("@",yl))==null?void 0:Dl.split(yl))==null?void 0:Ml[0],jl=Zn(jl),Ae.push(jl)}return{label:ze==null?void 0:ze.replaceAll("'",""),value:ze==null?void 0:ze.replaceAll("'","")}}),(Ae==null?void 0:Ae.length)>0&&(A="("+(Ae==null?void 0:Ae.join("||"))+")");let Pe=(re=le.analyzeSplitToContent(a,"="))==null?void 0:re[0];if(Pe!=null&&Pe.includes("@")){(Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1])==="="&&(Pe=Pe==null?void 0:Pe.slice(0,(Pe==null?void 0:Pe.length)-1));let je=(he=le.analyzeSplitToContent(Pe,"@"))==null?void 0:he[1];je="@"+je,je=Zn(je),A=A===""?je:je+","+A}}else y="Input",d=(B=(se=($e=a==null?void 0:a.replace("=",yl))==null?void 0:$e.split(yl))==null?void 0:se[1])==null?void 0:B.replaceAll("'","");else if((W=(oe=le.analyzeSplitToContent(a,"="))==null?void 0:oe[1])!=null&&W.includes("||")){let Ae=(ke=le.analyzeSplitToContent(a,"="))==null?void 0:ke[0];if((Ae==null?void 0:Ae[(Ae==null?void 0:Ae.length)-1])==="="&&(Ae=Ae==null?void 0:Ae.slice(0,(Ae==null?void 0:Ae.length)-1)),Ae!=null&&Ae.includes("@")){let we=(Ie=le.analyzeSplitToContent(Ae,"@"))==null?void 0:Ie[1];we="@"+we,A=Zn(we),n=(ie=(Ve=le.analyzeSplitToContent(Ae,"@"))==null?void 0:Ve[0])==null?void 0:ie.slice(0,((Ea=(Qe=le.analyzeSplitToContent(Ae,"@"))==null?void 0:Qe[0])==null?void 0:Ea.length)-1),x=(Me=(ua=le.analyzeSplitToContent(Ae,"@"))==null?void 0:ua[0])==null?void 0:Me.slice(0,((ea=(ce=le.analyzeSplitToContent(Ae,"@"))==null?void 0:ce[0])==null?void 0:ea.length)-1)}else n=Ae,x=Ae;let Pe=(de=le.analyzeSplitToContent(a,"="))==null?void 0:de[1];Pe=le.analyzeSplitToContent(Pe,")");let je=Pe==null?void 0:Pe.filter(we=>!(we!=null&&we.includes("If")));je==null||je.forEach(we=>{(we==null?void 0:we[0])==="("&&(we=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1)),i==null||i.push(we==null?void 0:we.split("||"))});let ze=Pe==null?void 0:Pe.filter(we=>we==null?void 0:we.includes("If"));ze=ze==null?void 0:ze.map(we=>((we==null?void 0:we[0])==="|"&&(we==null?void 0:we[1])==="|"&&(we=we==null?void 0:we.slice(2,we==null?void 0:we.length)),(we==null?void 0:we[0])==="("&&(we=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1)),(we==null?void 0:we[0])!=="@"&&(we="@"+we),we)),t=ze}else{let Ae=a==null?void 0:a.split("=="),Pe=(fe=Ae==null?void 0:Ae.filter(je=>(je==null?void 0:je.includes("$"))&&(je==null?void 0:je[0])!=="{"))==null?void 0:fe[0];if(Pe&&!(Pe!=null&&Pe.includes("&"))){let je=(ka=le.analyzeSplitToContent(Pe,")"))==null?void 0:ka[((Ke=le.analyzeSplitToContent(Pe,")"))==null?void 0:Ke.length)-1],ze=(Ba=je==null?void 0:je.replace("*",yl))==null?void 0:Ba.split(yl),we=(ze==null?void 0:ze[0])===""?l==null?void 0:l.value:ze==null?void 0:ze[0];(we==null?void 0:we[0])==="("&&(we=(q=le.analyzeSplitToContent(we,")"))==null?void 0:q[1]),we=(Q=(F=we==null?void 0:we.replaceAll("{",""))==null?void 0:F.replaceAll("}",""))==null?void 0:Q.replaceAll(Ki,""),(we==null?void 0:we[0])==="$"&&(we=(pe=we==null?void 0:we.slice(1,we==null?void 0:we.length))==null?void 0:pe.replaceAll(":","/")),f=we==null?void 0:we.split("/");let tl=(da=(ve=ze==null?void 0:ze[1])==null?void 0:ve.replace("{",yl))==null?void 0:da.split(yl),Dl=tl==null?void 0:tl[0];(Dl==null?void 0:Dl[(Dl==null?void 0:Dl.length)-1])===":"&&(Dl=Dl==null?void 0:Dl.slice(0,(Dl==null?void 0:Dl.length)-1)),c=Dl==null?void 0:Dl.split(":"),u=(Na=(xa=(Ue=(ca=tl==null?void 0:tl[1])==null?void 0:ca.replace("}",yl))==null?void 0:Ue.split(yl))==null?void 0:xa[0])==null?void 0:Na.split(":");let Ml="";((Ce=le.analyzeSplitToContent(Pe,")"))==null?void 0:Ce.length)>1&&(Ml=(Pa=le.analyzeSplitToContent(Pe,")"))==null?void 0:Pa[0]),Ml&&Ml!==""&&((Ml==null?void 0:Ml[0])!=="@"&&(Ml="@"+Ml),A=Zn(Ml))}if(Ae!=null&&Ae.some(je=>je==null?void 0:je.includes("&"))){let je=(Ca=Ae==null?void 0:Ae.filter(tl=>tl==null?void 0:tl.includes("&")))==null?void 0:Ca[0];je=(oa=le.analyzeSplitToContent(je,"&"))==null?void 0:oa.map(tl=>((tl==null?void 0:tl[(tl==null?void 0:tl.length)-1])==="&"&&(tl=tl==null?void 0:tl.slice(0,(tl==null?void 0:tl.length)-1)),tl)),w=(wa=(De=(Aa=je==null?void 0:je[1])==null?void 0:Aa.replace("(",yl))==null?void 0:De.split(yl))==null?void 0:wa[0];let ze=(Je=le.analyzeSplitToContent(je==null?void 0:je[1],")"))==null?void 0:Je[0];ze=(H=(xe=ze==null?void 0:ze.replace("(",yl))==null?void 0:xe.split(yl))==null?void 0:H[1],ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),(ze==null?void 0:ze[0])==="{"&&(ze=ze==null?void 0:ze.slice(1,ze==null?void 0:ze.length)),(ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])==="}"&&(ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1)),Y=ze==null?void 0:ze.split(",");let we=je==null?void 0:je[0];we&&we!==""&&((we==null?void 0:we[0])!=="@"&&(we="@"+we),z=Zn(we))}else if(!Pe&&((Oe=Ae==null?void 0:Ae.filter(je=>(je==null?void 0:je[0])==="{"))==null?void 0:Oe.length)>0){let je=Ae==null?void 0:Ae[(Ae==null?void 0:Ae.length)-1];je=je==null?void 0:je.slice(1,(je==null?void 0:je.length)-1),je=le.analyzeSplitToContent(je,","),je=je==null?void 0:je.map(ze=>((ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])===","&&(ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1)),ze)),je=je==null?void 0:je.map(ze=>{var we,tl,Dl,Ml;if(ze=ze==null?void 0:ze.replaceAll("$",""),ze!=null&&ze.includes("{")){let jl="";ze=ze==null?void 0:ze.replaceAll("{","");let gl=ze==null?void 0:ze.split("}");jl=((tl=(we=gl==null?void 0:gl[0])==null?void 0:we.split(":"))==null?void 0:tl[0])+":"+(gl==null?void 0:gl[1]),ze=jl,ze=ze+":"}if(ze!=null&&ze.includes(Ki)){let jl="",gl=ze==null?void 0:ze.split(Ki);jl=((Ml=(Dl=gl==null?void 0:gl[0])==null?void 0:Dl.split(":"))==null?void 0:Ml[0])+":"+(gl==null?void 0:gl[1]),ze=jl,ze=ze+":"}return ze=ze==null?void 0:ze.replaceAll(":","/"),ze}),m=je}else!((Re=Ae==null?void 0:Ae[1])!=null&&Re.includes("$"))&&((Ia=Ae==null?void 0:Ae[1])==null?void 0:Ia[0])!=="("&&u.push(Ae==null?void 0:Ae[1])}else n=(na=a==null?void 0:a.split("&"))==null?void 0:na[0],x=(za=a==null?void 0:a.split("&"))==null?void 0:za[0];return(r==null?void 0:r.length)===0&&(i==null?void 0:i.length)===0&&(f==null?void 0:f.length)===0&&y==="Select"&&(y="Input"),{label:n,prop:x,options:r,allContents:i,filterContents:t,menus:f,groups:c,words:u,align:"center",formType:y,filter:A,functionName:w,functionRelatedWords:Y,calculatorFilter:z,relatedPages:m,value:d}},To=(a,l)=>{var r,i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X;let n=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((f=(t=(i=(r=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:r.replace(":",yl))==null?void 0:i.split(yl))==null?void 0:t[0])!=null&&f.includes(","))){let re=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),he=(c=re==null?void 0:re.replace(":",yl))==null?void 0:c.split(yl);if(((u=le.analyzeSplitToContent(he==null?void 0:he[1],"="))==null?void 0:u.length)===1){let $e=he==null?void 0:he[0],se=[];(x=le.analyzeSplitToContent((y=he==null?void 0:he[1])==null?void 0:y.slice(1,((m=he==null?void 0:he[1])==null?void 0:m.length)-1),","))==null||x.forEach(B=>{var oe,W;((oe=le.analyzeSplitToContent(B,"="))==null?void 0:oe.length)>1?((B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),se=[...se,...To(B,l)]):((B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),se.push((W=To(B,l))==null?void 0:W[0]))}),n==null||n.push({label:$e,prop:$e,children:se,align:"center"})}else{let $e=[];if(((d=le.analyzeSplitToContent(re,"="))==null?void 0:d.length)>=2){let B=(A=le.analyzeSplitToContent(re,"="))==null?void 0:A[1],oe=(w=le.analyzeSplitToContent(B,"/"))==null?void 0:w.map(W=>((W==null?void 0:W[(W==null?void 0:W.length)-1])==="/"&&(W=W==null?void 0:W.slice(0,(W==null?void 0:W.length)-1)),W));$e=oe==null?void 0:oe.map(W=>(W=Ii(W),W))}let se=(k=(S=(O=($=(z=(Y=re==null?void 0:re.replace("{",yl))==null?void 0:Y.split(yl))==null?void 0:z[1])==null?void 0:$.replace("}",yl))==null?void 0:O.split(yl))==null?void 0:S[0])==null?void 0:k.split(",");se==null||se.forEach((B,oe)=>{($e==null?void 0:$e.length)>0&&oe===0?n==null||n.push({label:B,prop:B,align:"center",formType:"Select",relatedContents:$e==null?void 0:$e.map(W=>{let ke={};return se==null||se.forEach((Ie,Ve)=>{ke[Ie]=W==null?void 0:W[Ve]}),ke}),options:$e==null?void 0:$e.map(W=>({label:W==null?void 0:W[0],value:W==null?void 0:W[0]})),mainKey:!0}):n==null||n.push({label:B,prop:B,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((_=le.analyzeSplitToContent(a,"="))==null?void 0:_.length)===2&&((C=(b=le.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:C[0])==="["){let re=[];if(((R=le.analyzeSplitToContent(a,"="))==null?void 0:R.length)>=2){let $e=(V=le.analyzeSplitToContent(a,"="))==null?void 0:V[1],se=(ee=(ae=le.analyzeSplitToContent($e,"|"))==null?void 0:ae.filter(B=>B!=="|"))==null?void 0:ee.map(B=>((B==null?void 0:B[(B==null?void 0:B.length)-1])==="|"&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),B));re=se==null?void 0:se.map(B=>(B=Ii(B),B))}let he=(ue=(_e=a==null?void 0:a.replace("}",yl))==null?void 0:_e.split(yl))==null?void 0:ue[0];he=(U=he==null?void 0:he.slice(1,he==null?void 0:he.length))==null?void 0:U.split(","),he==null||he.forEach(($e,se)=>{(re==null?void 0:re.length)>0&&se===0?n==null||n.push({label:$e,prop:$e,align:"center",formType:"Select",relatedContents:re==null?void 0:re.map(B=>{let oe={};return he==null||he.forEach((W,ke)=>{oe[W]=B==null?void 0:B[ke]}),oe}),options:re==null?void 0:re.map(B=>({label:B==null?void 0:B[0],value:B==null?void 0:B[0]})),mainKey:!0}):n==null||n.push({label:$e,prop:$e,align:"center"})})}else(P=le.analyzeSplitToContent(a,","))==null||P.forEach(re=>{var he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe;if((re==null?void 0:re[(re==null?void 0:re.length)-1])===","&&(re=re==null?void 0:re.slice(0,(re==null?void 0:re.length)-1)),(re==null?void 0:re[0])==="{"){let H=le.analyzeSplitToContent(re,"="),Oe=H==null?void 0:H[(H==null?void 0:H.length)-1],Re=[],Ia=[],na=[],za="",Ae="",Pe=[],je=[],ze=(he=Oe==null?void 0:Oe.replace("*",yl))==null?void 0:he.split(yl),we=(ze==null?void 0:ze[0])===""?l==null?void 0:l.value:ze==null?void 0:ze[0];we=le.analyzeSplitToContent(we,")");let tl="";if((we==null?void 0:we.length)>1&&(($e=we==null?void 0:we[0])==null?void 0:$e[0])!=="&"&&(tl=we==null?void 0:we[0],(tl==null?void 0:tl[0])!=="@"&&(tl="@"+tl),Ae=tl??""),we=(se=we==null?void 0:we.filter(el=>(el==null?void 0:el[0])==="$"))==null?void 0:se[0],((B=le.analyzeSplitToContent(we,"}"))==null?void 0:B.length)>1&&((W=(oe=le.analyzeSplitToContent(we,"}"))==null?void 0:oe[1])==null?void 0:W[0])==="("&&(tl=(ke=le.analyzeSplitToContent(we,"}"))==null?void 0:ke[1],(tl==null?void 0:tl[0])!=="@"&&(tl="@"+tl),Ae!==""&&(Ae=Ae+","),Ae=Ae+tl),(Ie=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1))!=null&&Ie.includes("$")||(we=(Ve=le.analyzeSplitToContent(we,"}"))==null?void 0:Ve[0]),(we==null?void 0:we[0])==="$"&&(we=(Qe=we==null?void 0:we.replace("{",""))==null?void 0:Qe.replace("}",":"),we=(Ea=we==null?void 0:we.slice(1,we==null?void 0:we.length))==null?void 0:Ea.replaceAll(":","/")),we!=null&&we.includes("$")){let el=(ie=we==null?void 0:we.split("$"))==null?void 0:ie[0];el=(ua=el==null?void 0:el.split("/"))==null?void 0:ua[0],we=el+"/"+((ce=we==null?void 0:we.split("$"))==null?void 0:ce[1])+"/"}Re=(we==null?void 0:we.split("/"))??[];let Dl=(Me=(ea=ze==null?void 0:ze[1])==null?void 0:ea.replace("{",yl))==null?void 0:Me.split(yl);if((Ke=(fe=(de=ze==null?void 0:ze[1])==null?void 0:de.split("(@"))==null?void 0:fe[0])!=null&&Ke.includes("&&")||(q=(Ba=(ka=ze==null?void 0:ze[1])==null?void 0:ka.split("@"))==null?void 0:Ba[0])!=null&&q.includes("&&")){let el=(F=ze==null?void 0:ze[1])!=null&&F.includes("(@")?(ve=(pe=(Q=ze==null?void 0:ze[1])==null?void 0:Q.split("(@"))==null?void 0:pe[0])==null?void 0:ve.split("&&"):(Ue=(ca=(da=ze==null?void 0:ze[1])==null?void 0:da.split("@"))==null?void 0:ca[0])==null?void 0:Ue.split("&&");Pe=el==null?void 0:el.map(Wa=>{var Kl,Yl;return(Wa==null?void 0:Wa[0])==="*"&&(Wa=Wa==null?void 0:Wa.slice(1,Wa==null?void 0:Wa.length)),Wa=(Yl=(Kl=Wa==null?void 0:Wa.replace("{",yl))==null?void 0:Kl.split(yl))==null?void 0:Yl[0],(Wa==null?void 0:Wa[(Wa==null?void 0:Wa.length)-1])===":"&&(Wa=Wa==null?void 0:Wa.slice(0,(Wa==null?void 0:Wa.length)-1)),Wa=Wa==null?void 0:Wa.split(":"),Wa});let $l=[];el==null||el.forEach((Wa,Kl)=>{var Yl,ar;(Wa==null?void 0:Wa[0])==="*"&&(Wa=Wa==null?void 0:Wa.slice(1,Wa==null?void 0:Wa.length)),Wa=(ar=(Yl=Wa==null?void 0:Wa.replace("{",yl))==null?void 0:Yl.split(yl))==null?void 0:ar[1],(Wa==null?void 0:Wa[(Wa==null?void 0:Wa.length)-1])==="}"&&(Wa=Wa==null?void 0:Wa.slice(0,(Wa==null?void 0:Wa.length)-1)),Wa=Wa==null?void 0:Wa.split(","),$l.push(Kl===0?(Wa==null?void 0:Wa.length)-1:Wa==null?void 0:Wa.length),je=[...je,...Wa]}),$l=(xa=le.prefixSum($l))==null?void 0:xa.map(Wa=>Wa==null?void 0:Wa.total),Pe=Pe==null?void 0:Pe.map((Wa,Kl)=>({number:$l==null?void 0:$l[Kl],contents:Wa}))}let Ml=Dl==null?void 0:Dl[0];(Ml==null?void 0:Ml[(Ml==null?void 0:Ml.length)-1])===":"&&(Ml=Ml==null?void 0:Ml.slice(0,(Ml==null?void 0:Ml.length)-1)),Ia=(Ml==null?void 0:Ml.split(":"))??[],na=((Ca=(Pa=(Ce=(Na=Dl==null?void 0:Dl[1])==null?void 0:Na.replace("}",yl))==null?void 0:Ce.split(yl))==null?void 0:Pa[0])==null?void 0:Ca.split(","))??[];let jl=(Aa=H==null?void 0:H[0])==null?void 0:Aa.slice(1,((oa=H==null?void 0:H[0])==null?void 0:oa.length)-2);Ae&&Ae!==""&&(za=Zn(Ae));let gl=(De=le.analyzeSplitToContent(za,","))==null?void 0:De.map(el=>((el==null?void 0:el[(el==null?void 0:el.length)-1])===","&&(el=el==null?void 0:el.slice(0,(el==null?void 0:el.length)-1)),el)),er=[];gl!=null&&gl.find(el=>el==null?void 0:el.includes("@MainParam"))&&(gl=gl==null?void 0:gl.find(el=>el==null?void 0:el.includes("@MainParam")),gl=(Je=(wa=gl==null?void 0:gl.replace("=",yl))==null?void 0:wa.split(yl))==null?void 0:Je[1],gl=gl==null?void 0:gl.slice(1,(gl==null?void 0:gl.length)-1),er=le.analyzeSplitToContent(gl,",")),(xe=jl==null?void 0:jl.split(","))==null||xe.forEach((el,$l)=>{var Wa,Kl,Yl,ar,_l,br;if(((Wa=le.analyzeSplitToContent(el,"@"))==null?void 0:Wa.length)>1){let va=(Kl=le.analyzeSplitToContent(el,"@"))==null?void 0:Kl[1];va="@"+va,za=Zn(va),el=(Yl=le.analyzeSplitToContent(el,"@"))==null?void 0:Yl[0],(el==null?void 0:el[(el==null?void 0:el.length)-1])==="@"&&(el=el==null?void 0:el.slice(0,(el==null?void 0:el.length)-1))}n.push({label:el,prop:el,align:"center",menus:Re,groups:(Pe==null?void 0:Pe.length)===0?Ia:(ar=Pe==null?void 0:Pe.find(va=>(va==null?void 0:va.number)>=$l))==null?void 0:ar.contents,words:(je==null?void 0:je.length)===0?(_l=na==null?void 0:na[$l])==null?void 0:_l.split(":"):(br=je==null?void 0:je[$l])==null?void 0:br.split(":"),formType:(Re==null?void 0:Re.length)>0?"Select":"Input",mainKey:!!($l===0||er!=null&&er.find(va=>va===el)),filter:za,isMainPath:(Pe==null?void 0:Pe.findIndex(va=>(va==null?void 0:va.number)>=$l))===0})})}else n.push({label:re,prop:re,align:"center"})});else{let re=(X=le.analyzeSplitToContent(a,","))==null?void 0:X.map(he=>((he==null?void 0:he[(he==null?void 0:he.length)-1])===","&&(he=he==null?void 0:he.slice(0,(he==null?void 0:he.length)-1)),he));re==null||re.forEach(he=>{n.push(wt(he,l))})}return n},cp=(a,l)=>{var f,c,u,m,y;let n=a;if(!a)return;let r="";((f=le.analyzeSplitToContent(a,"}"))==null?void 0:f.length)>1&&(n=(c=le.analyzeSplitToContent(a,"}"))==null?void 0:c[0],r=(u=le.analyzeSplitToContent(a,"}"))==null?void 0:u[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let i=[],t=[];return i.push({label:"排序",prop:"sort"}),i.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=le.analyzeSplitToContent(n,","))==null||m.forEach(x=>{var d;(x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),(x==null?void 0:x[0])==="{"?(d=To(x,l))==null||d.forEach(A=>{i.push(A)}):i.push(wt(x,l))}),i!=null&&i.some(x=>{var d;return(d=x==null?void 0:x.prop)==null?void 0:d.includes("@")})&&(i=i==null?void 0:i.filter(x=>{var d;return!((d=x==null?void 0:x.prop)!=null&&d.includes("@"))})),r!==""&&((r==null?void 0:r[0])=="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),(y=le.analyzeSplitToContent(r,","))==null||y.forEach(x=>{var d;(x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),(x==null?void 0:x[0])==="{"?(d=To(x,l))==null||d.forEach(A=>{t.push(A)}):t.push(wt(x,l))})),{columns:i,secondColumns:t}},gn=a=>{var l,n,r,i,t;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let f=(n=(l=a==null?void 0:a.replace("(",yl))==null?void 0:l.split(yl))==null?void 0:n[1],c=(i=(r=a==null?void 0:a.replace("(",yl))==null?void 0:r.split(yl))==null?void 0:i[0];return f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1),f=(t=le.analyzeSplitToContent(f,","))==null?void 0:t.map(u=>((u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1)),c+u)),f=f==null?void 0:f.join(","),a!=null&&a.includes("@Quote")&&(f!=null&&f.includes("@QuoteType")||(f=f===""?f+"@QuoteType=Manual":f+",@QuoteType=Manual"),f!=null&&f.includes("@QuoteSonSync")||(f=f===""?f+"@QuoteSonSync=No":f+",@QuoteSonSync=No"),f!=null&&f.includes("@QuoteFatherSync")||(f=f===""?f+"@QuoteFatherSync=Yes":f+",@QuoteFatherSync=Yes")),f}},hs=a=>{let l=a==null?void 0:a.map(n=>{var r,i;return{menus:n==null?void 0:n.menus,content:((r=n==null?void 0:n.menus)==null?void 0:r.join("/"))+yl+((i=n==null?void 0:n.groups)==null?void 0:i.join("/"))}});return l=l==null?void 0:l.filter(n=>{var r;return(n==null?void 0:n.menus)&&((r=n==null?void 0:n.menus)==null?void 0:r.length)>0}),l=l==null?void 0:l.map(n=>n==null?void 0:n.content),l=[...new Set(l)],l=l==null?void 0:l.map(n=>{var r,i;return{menus:(r=n==null?void 0:n.split(yl))==null?void 0:r[0],groups:((i=n==null?void 0:n.split(yl))==null?void 0:i[1])??[]}}),l},vs=a=>{var n;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(n=le.analyzeSplitToContent(l,","))==null?void 0:n.map(r=>((r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])!=="@"&&(r="@"+r),(r==null?void 0:r[1])==="("&&(r=gn(r)),r)),l==null?void 0:l.join(",")},pc=(a,l,n="")=>{var S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe;let r=[],i=[],t=[],f="",c="",u="",m=[],y=[],x=[],d=[],A="";if(((S=a==null?void 0:a[0])==null?void 0:S[0])!=="*"&&((k=a==null?void 0:a[0])==null?void 0:k[0])!=="$"&&!((_=a==null?void 0:a[0])!=null&&_.includes("$")))return;((b=a==null?void 0:a[0])==null?void 0:b[0])!=="*"&&((C=a==null?void 0:a[0])==null?void 0:C[0])!=="$"&&(f=(R=le.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:R[0],(f==null?void 0:f[0])!=="@"&&(f="@"+f),f=Zn(f),u=(V=le.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:V[1],(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=u==null?void 0:u.replaceAll(":","/"));let Y=le.analyzeSplitToContent(a==null?void 0:a[0],":");if(r=(ae=Y==null?void 0:Y.filter(H=>(H==null?void 0:H[0])!=="{"&&(H==null?void 0:H[0])!=="["))==null?void 0:ae.join(""),c=(ee=a==null?void 0:a[0])==null?void 0:ee.replace(r,""),(r==null?void 0:r[0])==="("&&(r=""),A=(_e=Y==null?void 0:Y.filter(H=>(H==null?void 0:H[0])!=="["))==null?void 0:_e.join(""),A=(ue=a==null?void 0:a[0])==null?void 0:ue.replace(A,""),c=c==null?void 0:c.replace(A,""),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),((U=le.analyzeSplitToContent(c,"@"))==null?void 0:U.length)>1&&(f=(P=le.analyzeSplitToContent(c,"@"))==null?void 0:P[1],(f==null?void 0:f[(f==null?void 0:f.length)-1])===":"&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),f="@"+f,f=gn(f),c=(X=le.analyzeSplitToContent(c,"@"))==null?void 0:X[0],c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),((re=le.analyzeSplitToContent(r,"@"))==null?void 0:re.length)>1){f!==""&&(f=f+",");let H=(he=le.analyzeSplitToContent(r,"@"))==null?void 0:he[1];H="@"+H,H=gn(H),f=f+H,r=($e=le.analyzeSplitToContent(r,"@"))==null?void 0:$e[0]}if((r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=r===""?[]:r==null?void 0:r.split(":"),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),n!==""){let H=(se=le.analyzeSplitToContent(n,")"))==null?void 0:se[0],Oe=le.analyzeSplitToContent(n,")");Oe=Oe==null?void 0:Oe.filter((za,Ae)=>Ae!==(Oe==null?void 0:Oe.length)-1),Oe=Oe==null?void 0:Oe.join("");let Re=(B=le.analyzeSplitToContent(n,"@"))==null?void 0:B[1];u=(W=(oe=le.analyzeSplitToContent(n,"@"))==null?void 0:oe[0])==null?void 0:W.replace(Oe,""),(u==null?void 0:u[(u==null?void 0:u.length)-1])==="@"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1));let Ia="";Ia=le.analyzeSplitToContent(n,")"),Ia=Ia==null?void 0:Ia.filter((za,Ae)=>Ae!==0&&Ae!==(Ia==null?void 0:Ia.length)-1),((ke=le.analyzeSplitToContent(n,"&"))==null?void 0:ke.length)>1&&(Ia==null?void 0:Ia.length)<=2&&(H="",u="",Ia=le.analyzeSplitToContent(n,")")),(Ia==null?void 0:Ia.length)>0&&((Ie=le.chunkArray(Ia))==null||Ie.forEach(za=>{var we,tl,Dl,Ml,jl;let Ae="",Pe=[],je="";je="@"+(za==null?void 0:za[0]),je=gn(je);let ze=za==null?void 0:za[1];ze=ze==null?void 0:ze.slice(1,ze==null?void 0:ze.length),Ae=(tl=(we=ze==null?void 0:ze.replace("(",yl))==null?void 0:we.split(yl))==null?void 0:tl[0],ze=(Ml=(Dl=ze==null?void 0:ze.replace("(",yl))==null?void 0:Dl.split(yl))==null?void 0:Ml[1],ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),Pe=(jl=le.analyzeSplitToContent(ze,","))==null?void 0:jl.map(gl=>((gl==null?void 0:gl[(gl==null?void 0:gl.length)-1])===","&&(gl=gl==null?void 0:gl.slice(0,(gl==null?void 0:gl.length)-1)),gl)),m.push({functionName:Ae,functionRelatedWords:Pe,calculatorFilter:je})})),H=vs(H),Re=vs(Re);let na=H??"";if(na!==""&&(na=na+","),na=na+Re,(na==null?void 0:na[(na==null?void 0:na.length)-1])===","&&(na=na==null?void 0:na.slice(0,(na==null?void 0:na.length)-1)),na!==""&&f!==""&&(f=f+","),f=f+na,(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=(Ve=le.analyzeSplitToContent(u,":"))==null?void 0:Ve.filter((za,Ae)=>{var Pe;return!((za==null?void 0:za[0])==="{"&&Ae===((Pe=le.analyzeSplitToContent(u,":"))==null?void 0:Pe.length)-1)}),u=u==null?void 0:u.join(""),(u==null?void 0:u[(u==null?void 0:u.length)-1])===":"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),f!=null&&f.includes("@Sync")||(f=f===""?f+"@Sync=(Yes,Yes)":f+",@Sync=(Yes,Yes)"),u!=null&&u.includes("$")){let za=(Ea=(Qe=u==null?void 0:u.replace("*",yl))==null?void 0:Qe.split(yl))==null?void 0:Ea[1],Ae=(ua=(ie=u==null?void 0:u.replace("*",yl))==null?void 0:ie.split(yl))==null?void 0:ua[0];Ae=Ae==null?void 0:Ae.split("$"),Ae=((ea=(ce=Ae==null?void 0:Ae[0])==null?void 0:ce.split(":"))==null?void 0:ea[0])+":"+(Ae==null?void 0:Ae[1])+":",u=Ae+"*"+za}else u=(Me=u==null?void 0:u.replaceAll("{",""))==null?void 0:Me.replaceAll("}","")}f!==""&&f&&(f="("+f+")"),f=u+f,((de=le.analyzeSplitToContent(c,"}"))==null?void 0:de.length)>1&&(c=(fe=le.analyzeSplitToContent(c,"}"))==null?void 0:fe.filter(H=>(H==null?void 0:H[0])!=="@"),c=c==null?void 0:c.join(""));let z=cp(c,l);t=c===""?[]:(z==null?void 0:z.columns)??[],d=le.getColumnChild(t);let $=le.getColumnChild(t);t!=null&&t.some(H=>{var Oe;return Array.isArray(H==null?void 0:H.children)&&((Oe=H==null?void 0:H.children)==null?void 0:Oe.length)>0})&&(t=[t]),i=A?Ii(A):[],!(i!=null&&i.every(H=>Array.isArray(H)))&&(i==null?void 0:i.length)>0&&(i=[i]),(i==null?void 0:i.length)>0&&(Array.isArray(i==null?void 0:i[0])&&((Ke=i==null?void 0:i[0])!=null&&Ke.every(H=>Array.isArray(H)))?i=i==null?void 0:i.map((H,Oe)=>(H=H.map((Re,Ia)=>(Re.unshift("{}"),Re.unshift((Ia+1).toString()),Re)),H)):i=i==null?void 0:i.map((H,Oe)=>(H.unshift("{}"),H.unshift((Oe+1).toString()),H))),z!=null&&z.secondColumns&&((ka=z==null?void 0:z.secondColumns)==null?void 0:ka.length)>0&&((i==null?void 0:i.length)>0?i=i==null?void 0:i.map((H,Oe)=>{var Re,Ia;return Array.isArray(H==null?void 0:H[0])?H=H==null?void 0:H.map((na,za)=>{var Ae,Pe;return na.unshift((Pe=(Ae=z==null?void 0:z.secondColumns)==null?void 0:Ae[za])==null?void 0:Pe.prop),na}):H.unshift((Ia=(Re=z==null?void 0:z.secondColumns)==null?void 0:Re[Oe])==null?void 0:Ia.prop),H}):i=(Ba=z==null?void 0:z.secondColumns)==null?void 0:Ba.map((H,Oe)=>(H=[H==null?void 0:H.label],H.push(Oe),H)),t.unshift({label:"",prop:"disabled",sortable:!1})),d=d==null?void 0:d.map(H=>{var Oe,Re;return{menus:H==null?void 0:H.menus,content:((Oe=H==null?void 0:H.menus)==null?void 0:Oe.join("/"))+yl+((Re=H==null?void 0:H.groups)==null?void 0:Re.join("/"))}});let O=[];if(((F=(q=f==null?void 0:f.replace("(",yl))==null?void 0:q.split(yl))==null?void 0:F[0])!==""&&(O=(pe=(Q=f==null?void 0:f.replace("(",yl))==null?void 0:Q.split(yl))==null?void 0:pe[0],O=[O],O=O==null?void 0:O.map(H=>{var Re,Ia,na;let Oe=H==null?void 0:H.split("*");return{menus:(Re=Oe==null?void 0:Oe[0])==null?void 0:Re.split(":"),content:((Ia=Oe==null?void 0:Oe[0])==null?void 0:Ia.replaceAll(":","/"))+yl+((na=Oe==null?void 0:Oe[1])==null?void 0:na.replaceAll(":","/"))}}),d=[...d,...O]),d=d==null?void 0:d.filter(H=>{var Oe;return(H==null?void 0:H.menus)&&((Oe=H==null?void 0:H.menus)==null?void 0:Oe.length)>0}),d=d==null?void 0:d.map(H=>H==null?void 0:H.content),d=[...new Set(d)],d=d==null?void 0:d.map(H=>{var Oe,Re;return{menus:(Oe=H==null?void 0:H.split(yl))==null?void 0:Oe[0],groups:((Re=H==null?void 0:H.split(yl))==null?void 0:Re[1])??[]}}),y=$==null?void 0:$.filter(H=>{var Oe;return(H==null?void 0:H.filter)&&((Oe=H==null?void 0:H.filter)==null?void 0:Oe.includes("@Sync"))}),(y==null?void 0:y.length)>0&&(y=y==null?void 0:y.filter(H=>{var Oe,Re,Ia,na;return(na=(Ia=(Re=(Oe=le.analyzeSplitToContent(H==null?void 0:H.filter,","))==null?void 0:Oe.find(za=>za==null?void 0:za.includes("@Sync")))==null?void 0:Re.split(","))==null?void 0:Ia[0])==null?void 0:na.includes("Yes")}),y=hs(y)),x=$==null?void 0:$.filter(H=>{var Oe;return(H==null?void 0:H.filter)&&((Oe=H==null?void 0:H.filter)==null?void 0:Oe.includes("@Sync"))}),(x==null?void 0:x.length)>0&&(x=x==null?void 0:x.filter(H=>{var Oe,Re,Ia,na;return(na=(Ia=(Re=(Oe=le.analyzeSplitToContent(H==null?void 0:H.filter,","))==null?void 0:Oe.find(za=>za==null?void 0:za.includes("@Sync")))==null?void 0:Re.split(","))==null?void 0:Ia[1])==null?void 0:na.includes("Yes")}),x=hs(x)),f!==""&&(f!=null&&f.includes("@Sync"))&&(f==null?void 0:f[0])!=="("){let H=(ve=f==null?void 0:f.replace("(",yl))==null?void 0:ve.split(yl),Oe=H==null?void 0:H[1];if(Oe=Oe==null?void 0:Oe.slice(0,(Oe==null?void 0:Oe.length)-1),Oe=le.analyzeSplitToContent(Oe,","),(Ue=(ca=(da=Oe==null?void 0:Oe.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:da.split(","))==null?void 0:ca[0])!=null&&Ue.includes("Yes")){let Re=H==null?void 0:H[0];Re=[{menus:(Na=(xa=Re==null?void 0:Re.split("*"))==null?void 0:xa[0])==null?void 0:Na.replaceAll(":","/"),groups:((Pa=(Ce=Re==null?void 0:Re.split("*"))==null?void 0:Ce[1])==null?void 0:Pa.split(":"))??[]}],y=[...y,...Re]}if((Aa=(oa=(Ca=Oe==null?void 0:Oe.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ca.split(","))==null?void 0:oa[1])!=null&&Aa.includes("Yes")){let Re=H==null?void 0:H[0];Re=[{menus:(wa=(De=Re==null?void 0:Re.split("*"))==null?void 0:De[0])==null?void 0:wa.replaceAll(":","/"),groups:((xe=(Je=Re==null?void 0:Re.split("*"))==null?void 0:Je[1])==null?void 0:xe.split(":"))??[]}],x=[...x,...Re]}}return{groupName:r,tableColumns:t,tableFilter:f,tableContents:i,columns:(z==null?void 0:z.secondColumns)??[],relatedQuotes:d,fatherSyncContents:y,sonSyncContents:x,calculatorFilters:m}},fc=(a,l)=>(a=a==null?void 0:a.map((n,r)=>{var i,t,f,c;if(Array.isArray(n))n=n==null?void 0:n.map(u=>{var m,y,x,d;return u!=null&&u.isMainPath||(((m=u==null?void 0:u.children)==null?void 0:m.length)>0?u.children=fc(u.children,l):((y=u==null?void 0:u.menus)==null?void 0:y.length)>0&&!((x=n==null?void 0:n[0])!=null&&x.isMainPath)&&(u.menus=(d=u.menus)==null?void 0:d.map((A,w)=>{var Y,z;return((Y=u.menus)==null?void 0:Y.length)-1===w&&A===""&&(l==null?void 0:l.parentContent)+"/"!==((z=u.menus)==null?void 0:z.join("/"))&&(A=l==null?void 0:l.value),u}),u.bindMenus=u.menus)),u});else{if(r===0&&((i=n.menus)==null?void 0:i.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((t=n.menus)==null?void 0:t.length)>0&&!((f=a==null?void 0:a[0])!=null&&f.isMainPath)&&(n.menus=(c=n.menus)==null?void 0:c.map((u,m)=>{var y,x;return((y=n.menus)==null?void 0:y.length)-1===m&&u===""&&(l==null?void 0:l.parentContent)+"/"!==((x=n.menus)==null?void 0:x.join("/"))&&(u=l==null?void 0:l.value),u}),n.bindMenus=n.menus)}return n}),a),up=(a,l)=>(a=a==null?void 0:a.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=fc(n.contents,l)),n)),a),_t=(a,l)=>{let n=a;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(r=>(r=_t(r,l),r)):n=n==null?void 0:n.map(r=>{var i,t;return r!=null&&r.children&&((i=r==null?void 0:r.children)==null?void 0:i.length)>0?r.children=_t(r==null?void 0:r.children,l):r!=null&&r.words&&((t=r==null?void 0:r.words)==null?void 0:t.length)>0&&(l!=null&&l.find(f=>{var c,u,m,y;return((y=(c=r==null?void 0:r.prop)==null?void 0:c.split("."))==null?void 0:y[((m=(u=r==null?void 0:r.prop)==null?void 0:u.split("."))==null?void 0:m.length)-1])===f}))&&(r.mainKey=!0),r}),n};let Sr="$R";const dp=M.useUnit(M.pinia),{selectTitle:mn}=M.storeToRefs(dp),pp=M.useMenuState(M.pinia),{localFiles:fp}=M.storeToRefs(pp),hp=M.useLoginState(M.pinia),{loginUserInfo:mt}=M.storeToRefs(hp),Cn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@ShowHide",value:"onShowHide",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainParam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixColumn",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var fi=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(fi||{});const vp=async a=>{var n,r,i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O;let l=le.analyzeSplitToContent((a==null?void 0:a.filter)??"",")");if((l==null?void 0:l.length)>1){let S=l==null?void 0:l[0];S=S==null?void 0:S.slice(1,(S==null?void 0:S.length)-1),S=(r=(n=S==null?void 0:S.replace("(",Sr))==null?void 0:n.split(Sr))==null?void 0:r[1],S="("+((i=S==null?void 0:S.replaceAll("{",""))==null?void 0:i.replaceAll("}",""));let k=le.calculatorAndToOr(S),_=Object.keys(k==null?void 0:k[0]);if(S=k,((t=_==null?void 0:_[0])==null?void 0:t[0])==="$"){let b=(c=_==null?void 0:_[0])==null?void 0:c.slice(1,((f=_==null?void 0:_[0])==null?void 0:f.length)-1),C=(m=(u=b==null?void 0:b.split("*"))==null?void 0:u[0])==null?void 0:m.replaceAll(".","/"),R=(d=(x=(y=b==null?void 0:b.split("*"))==null?void 0:y[1])==null?void 0:x.split("."))==null?void 0:d[0],V=await Jr(C,!1);V=(A=V==null?void 0:V.filter(U=>(U==null?void 0:U.name)===R))==null?void 0:A[0];let ae=(Y=(w=V==null?void 0:V.compData)==null?void 0:w.find(U=>(U==null?void 0:U.key)==="tableContents"))==null?void 0:Y.contents;S=S==null?void 0:S.map(U=>{var X,re;let P={};for(let he in U)if((he==null?void 0:he[0])==="$"){let $e=(re=he==null?void 0:he.split("."))==null?void 0:re[((X=he==null?void 0:he.split("."))==null?void 0:X.length)-1];P[$e]=U==null?void 0:U[he]}else P[he]=U==null?void 0:U[he];return P});let ee=($=(z=V==null?void 0:V.compData)==null?void 0:z.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:$.contents;ee=(O=le.getEqualChild(ee))==null?void 0:O.filter(U=>(U==null?void 0:U.label)!=="操作");let ue=le.tableToForm(ae,ee);if(S==null||S.forEach(U=>{var P,X,re,he,$e;for(let se in U)(U==null?void 0:U[se])==="LoginUser"&&(U[se]=((P=mt.value)==null?void 0:P.姓名)||((X=mt.value)==null?void 0:X.account)||((re=mt.value)==null?void 0:re.账号)),!((he=ue==null?void 0:ue[0])!=null&&he.find(B=>{var oe;return(B==null?void 0:B.key)===se||((oe=B==null?void 0:B.key)==null?void 0:oe.includes(se))}))&&!(ue!=null&&ue.find(B=>{var oe;return(B==null?void 0:B.key)===se||((oe=B==null?void 0:B.key)==null?void 0:oe.includes(se))}))||((($e=U[se])==null?void 0:$e[0])!=="!"?ue=ue==null?void 0:ue.filter(B=>{var oe,W;return((oe=B==null?void 0:B.find(ke=>{var Ie;return(ke==null?void 0:ke.key)===se||((Ie=ke==null?void 0:ke.key)==null?void 0:Ie.includes(se))}))==null?void 0:oe.value)===U[se]||Array.isArray(U==null?void 0:U[se])&&((W=U==null?void 0:U[se])==null?void 0:W.find(ke=>{var Ie;return((Ie=B==null?void 0:B.find(Ve=>{var Qe;return(Ve==null?void 0:Ve.key)===se||((Qe=Ve==null?void 0:Ve.key)==null?void 0:Qe.includes(se))}))==null?void 0:Ie.value)===ke}))}):ue=ue==null?void 0:ue.filter(B=>{var oe;return((oe=B==null?void 0:B.find(W=>{var ke;return(W==null?void 0:W.key)===se||((ke=W==null?void 0:W.key)==null?void 0:ke.includes(se))}))==null?void 0:oe.value)!==U[se]}))}),(ue==null?void 0:ue.length)===0){let U=a==null?void 0:a.contents;return U.push({key:"hideContents",contents:!0}),U}}}return a==null?void 0:a.contents},mp=a=>{var l,n,r,i,t;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let f=a==null?void 0:a.contents,c=a==null?void 0:a.filter;(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(l=le.analyzeSplitToContent(c,","))==null?void 0:l.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m)),c=c==null?void 0:c[1],(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(n=le.analyzeSplitToContent(c,","))==null?void 0:n.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));let u=(t=(i=(r=fp.value)==null?void 0:r.filter(m=>{var y;return(m==null?void 0:m.path)===((y=a==null?void 0:a.groupName)==null?void 0:y[0])}))==null?void 0:i[0])==null?void 0:t.children;return u=(u==null?void 0:u.filter(m=>c==null?void 0:c.find(y=>y===(m==null?void 0:m.name))))??[],(c==null?void 0:c.length)>0&&(u==null?void 0:u.length)===0&&(c==null||c.forEach(m=>{u.push({url:"file:///"+(m==null?void 0:m.replaceAll("\\","/"))})})),f.push({key:"backGround",contents:u}),f}return a==null?void 0:a.contents},yp=a=>{const l=vc(a==null?void 0:a.filter);return l?mc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},gp=a=>{const l=vc(a==null?void 0:a.filter);return l?mc(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},bp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const n=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(n)?a==null?void 0:a.filter:n}),l}return a==null?void 0:a.contents},kp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},xp=a=>{var n;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(r=>{var i;return(r==null?void 0:r.key)==="tableContents"&&(r.contents=(i=r.contents)==null?void 0:i.slice(0,parseInt(a==null?void 0:a.filter))),r})},wp=async a=>{var l,n,r,i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=le.shuffle(X.contents)),X));if((a==null?void 0:a.filter)==="Auto"){let P=(r=(n=a==null?void 0:a.contents)==null?void 0:n.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:r.contents;Array.isArray(P==null?void 0:P[0])&&(P=P==null?void 0:P[0]),P=le.getColumnChild(P);let X=P==null?void 0:P.filter(ke=>(ke==null?void 0:ke.filter)&&(ke==null?void 0:ke.filter)!==""),re=new Map,he=[];X==null||X.forEach(ke=>{var Ie,Ve;re.get((Ie=ke==null?void 0:ke.menus)==null?void 0:Ie.join("/"))||(re.set((Ve=ke==null?void 0:ke.menus)==null?void 0:Ve.join("/"),ke),he.push(ke))});let $e=(t=(i=mn==null?void 0:mn.value)==null?void 0:i.find(ke=>(ke==null?void 0:ke.condition)==="child"))==null?void 0:t.value,se=he==null?void 0:he.map(ke=>{var Ie,Ve,Qe;return ke=(Ie=ke==null?void 0:ke.menus)==null?void 0:Ie.join("/"),(ke==null?void 0:ke[(ke==null?void 0:ke.length)-1])==="/"&&((Qe=(Ve=mn==null?void 0:mn.value)==null?void 0:Ve.find(Ea=>(Ea==null?void 0:Ea.condition)==="child"))==null?void 0:Qe.parentContent)+"/"!==ke?ke=ke+$e:(ke==null?void 0:ke[(ke==null?void 0:ke.length)-1])==="/"&&(ke=ke==null?void 0:ke.slice(0,(ke==null?void 0:ke.length)-1)),ke}),B=he==null?void 0:he.map(ke=>ke==null?void 0:ke.groups),oe=se==null?void 0:se.map(async ke=>{let Ie=await Jr(ke,!1);return{path:ke,contents:Ie}});oe=await Promise.all(oe);let W=oe==null?void 0:oe.map((ke,Ie)=>{var Qe,Ea,ie,ua,ce,ea,Me;let Ve=(Qe=ke==null?void 0:ke.contents)==null?void 0:Qe.filter(de=>{var fe,Ke;return(de==null?void 0:de.name)===((Ke=B==null?void 0:B[Ie])==null?void 0:Ke[((fe=B==null?void 0:B[Ie])==null?void 0:fe.length)-1])});return Ve=(ua=(ie=(Ea=Ve==null?void 0:Ve[0])==null?void 0:Ea.compData)==null?void 0:ie.find(de=>(de==null?void 0:de.key)==="tableContents"))==null?void 0:ua.contents,(ke==null?void 0:ke.path)===((ea=(ce=mn==null?void 0:mn.value)==null?void 0:ce.find(de=>(de==null?void 0:de.condition)==="child"))==null?void 0:ea.parentContent)&&(Ve=((Me=Ve==null?void 0:Ve.map(de=>{for(let fe in de)if(de[fe]===$e)return de}))==null?void 0:Me.filter(de=>de))??[]),Ve??[]});if(W=W==null?void 0:W.map(ke=>(ke=ke==null?void 0:ke.map(Ie=>{var Qe;let Ve={};for(let Ea in Ie)if(X!=null&&X.find(ie=>{var ua,ce;return((ce=(ua=ie==null?void 0:ie.words)==null?void 0:ua[0])==null?void 0:ce.replaceAll("'",""))===Ea})){let ie=(Qe=X==null?void 0:X.find(ua=>{var ce,ea;return((ea=(ce=ua==null?void 0:ua.words)==null?void 0:ce[0])==null?void 0:ea.replaceAll("'",""))===Ea}))==null?void 0:Qe.prop;Ve[ie]=Ie==null?void 0:Ie[Ea]}return Ve}),ke)),W=le.cartesianProduct(W),Array.isArray(W==null?void 0:W[0])&&(W=W==null?void 0:W[0]),(W==null?void 0:W.length)>0&&((x=(c=(f=X==null?void 0:X[0])==null?void 0:f.menus)==null?void 0:c.join("/"))==null?void 0:x[((y=(m=(u=X==null?void 0:X[0])==null?void 0:u.menus)==null?void 0:m.join("/"))==null?void 0:y.length)-1])==="/")return(d=a==null?void 0:a.contents)==null?void 0:d.map(Ie=>{var Ve;return(Ie==null?void 0:Ie.key)==="tableContents"&&(W==null?void 0:W.length)>0&&(Ie.contents=((Ve=Ie.contents)==null?void 0:Ve.length)>0?Ie.contents:W),Ie})}if((a==null?void 0:a.filter)==="Manual"){let P=[],X=[],re=(w=(A=a==null?void 0:a.contents)==null?void 0:A.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:w.contents;(re==null?void 0:re[(re==null?void 0:re.length)-1])===")"?re=(z=(Y=re==null?void 0:re.replace("(",Sr))==null?void 0:Y.split(Sr))==null?void 0:z[0]:re="",re!==""&&(P=((O=($=re==null?void 0:re.split("*"))==null?void 0:$[0])==null?void 0:O.split(":"))??[],X=((C=(b=(_=(k=(S=re==null?void 0:re.split("*"))==null?void 0:S[1])==null?void 0:k.replace("{",Sr))==null?void 0:_.split(Sr))==null?void 0:b[0])==null?void 0:C.split(":"))??[]);let he=(V=(R=a==null?void 0:a.contents)==null?void 0:R.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:V.contents;he=(ee=(ae=he==null?void 0:he.replace("(",Sr))==null?void 0:ae.split(Sr))==null?void 0:ee[1],he=he==null?void 0:he.slice(0,(he==null?void 0:he.length)-1);let $e=(_e=a==null?void 0:a.contents)==null?void 0:_e.map(B=>{var oe,W,ke,Ie,Ve,Qe,Ea,ie,ua;return(B==null?void 0:B.key)==="header"&&((oe=B==null?void 0:B.contents)!=null&&oe.every(ce=>(ce==null?void 0:ce.mainKey)!==!0)&&Array.isArray(B==null?void 0:B.contents)&&!Array.isArray((W=B==null?void 0:B.contents)==null?void 0:W[0])?B.contents=(ke=B==null?void 0:B.contents)==null?void 0:ke.map((ce,ea)=>{var Me,de,fe;return ce!=null&&ce.isMainPath||(ea===0?(ce.mainKey=!0,ce.formType="Select",ce.bindMenus=P,ce.groups=((Me=ce.groups)==null?void 0:Me.length)===0?X:ce.groups,ce.words=((de=ce.words)==null?void 0:de.length)===0?[ce==null?void 0:ce.prop]:ce.words,ce.filter=he,(!(ce!=null&&ce.menus)||((fe=ce==null?void 0:ce.menus)==null?void 0:fe.length)===0)&&(ce.menus=P)):(ce.mainKey=!1,ce.bindMenus=P)),ce}):Array.isArray((Ie=B==null?void 0:B.contents)==null?void 0:Ie[0])&&((Ea=(Qe=(Ve=B==null?void 0:B.contents)==null?void 0:Ve[0])==null?void 0:Qe.filter(()=>(P==null?void 0:P.length)>0))==null?void 0:Ea.length)>0&&(B.contents[0]=(ua=(ie=B==null?void 0:B.contents)==null?void 0:ie[0])==null?void 0:ua.map((ce,ea)=>{var Me,de,fe;return ce!=null&&ce.isMainPath||(ea===0?(ce.mainKey=!0,ce.formType="Select",ce.bindMenus=P,ce.groups=((Me=ce.groups)==null?void 0:Me.length)===0?X:ce.groups,ce.words=((de=ce.words)==null?void 0:de.length)===0?[ce==null?void 0:ce.prop]:ce.words,ce.filter=he,(!(ce!=null&&ce.menus)||Array.isArray(ce==null?void 0:ce.menus)&&((fe=ce==null?void 0:ce.menus)==null?void 0:fe.length)===0)&&(P==null?void 0:P.length)>0&&(ce.menus=P)):(ce.mainKey=!1,ce.bindMenus=P)),ce}))),B}),se=(ue=$e==null?void 0:$e.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:ue.contents;if(Array.isArray(se==null?void 0:se[0])&&(se=se==null?void 0:se[0]),se=le.getColumnChild(se),se!=null&&se.some(B=>{var oe,W;return((W=B==null?void 0:B.menus)==null?void 0:W[((oe=B==null?void 0:B.menus)==null?void 0:oe.length)-1])===""})){let B=(U=mn==null?void 0:mn.value)==null?void 0:U.find(oe=>(oe==null?void 0:oe.condition)==="child");$e=up($e,B)}return $e}if((a==null?void 0:a.filter)==="Chart"){let P=a==null?void 0:a.contents;return P.push({key:"newType",contents:"Chart"}),P}if((a==null?void 0:a.filter)==="Carousel"){let P=a==null?void 0:a.contents;return P.push({key:"newType",contents:"Carousel"}),P}return a==null?void 0:a.contents},_p=a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}return a==null?void 0:a.contents},Sp=a=>{var r,i,t,f,c,u,m,y,x,d,A,w;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((i=(r=l==null?void 0:l.replace(":",Sr))==null?void 0:r.split(Sr))==null?void 0:i[1])),l=(t=l==null?void 0:l.replaceAll("{",""))==null?void 0:t.replaceAll("}",""),(c=(f=l==null?void 0:l.split("="))==null?void 0:f[1])!=null&&c.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let Y=(u=l==null?void 0:l.split("="))==null?void 0:u[0],z=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(y=z==null?void 0:z.slice(1,z==null?void 0:z.length))!=null&&y.includes("$")&&(z=(A=(d=(x=mn==null?void 0:mn.value)==null?void 0:x.filter($=>($==null?void 0:$.condition)==="child"))==null?void 0:d[0])==null?void 0:A.value),l=Y+"="+z}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let n=le.calculatorAndToOr(l);if((n==null?void 0:n.length)>0){let Y=[];return n==null||n.forEach($=>{let O={};for(let S in $){let k=S;k!=null&&k.includes("[")||(O[k]=$[S])}Y.push(O)}),(w=a==null?void 0:a.contents)==null?void 0:w.map($=>{var S,k,_;let O=(k=(S=a==null?void 0:a.contents)==null?void 0:S.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:k.contents;if(O=(_=le.getEqualChild(O))==null?void 0:_.filter(b=>(b==null?void 0:b.label)!=="操作"),($==null?void 0:$.key)==="tableContents"){let C=le.tableToForm($==null?void 0:$.contents,O);Y==null||Y.forEach(R=>{var V,ae;for(let ee in R)!((V=C==null?void 0:C[0])!=null&&V.find(_e=>{var ue;return(_e==null?void 0:_e.key)===ee||((ue=_e==null?void 0:_e.key)==null?void 0:ue.includes(ee))}))&&!(C!=null&&C.find(_e=>{var ue;return(_e==null?void 0:_e.key)===ee||((ue=_e==null?void 0:_e.key)==null?void 0:ue.includes(ee))}))||(((ae=R[ee])==null?void 0:ae[0])!=="!"?C=C==null?void 0:C.filter(_e=>{var ue,U;return((ue=_e==null?void 0:_e.find(P=>{var X;return(P==null?void 0:P.key)===ee||((X=P==null?void 0:P.key)==null?void 0:X.includes(ee))}))==null?void 0:ue.value)===R[ee]||Array.isArray(R==null?void 0:R[ee])&&((U=R==null?void 0:R[ee])==null?void 0:U.find(P=>{var X;return((X=_e==null?void 0:_e.find(re=>{var he;return(re==null?void 0:re.key)===ee||((he=re==null?void 0:re.key)==null?void 0:he.includes(ee))}))==null?void 0:X.value)===P}))}):C=C==null?void 0:C.filter(_e=>{var ue;return((ue=_e==null?void 0:_e.find(U=>{var P;return(U==null?void 0:U.key)===ee||((P=U==null?void 0:U.key)==null?void 0:P.includes(ee))}))==null?void 0:ue.value)!==R[ee]}))}),(C==null?void 0:C.length)===0?$.contents=[]:$.contents=C==null?void 0:C.map(R=>{let V={};return R==null||R.forEach(ae=>{V[ae==null?void 0:ae.key]=ae==null?void 0:ae.value}),V})}return $})}return a==null?void 0:a.contents},Ep=a=>a==null?void 0:a.contents,Cp=a=>a==null?void 0:a.contents,Dp=a=>{var l,n,r,i;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let t=(r=(n=a==null?void 0:a.filter)==null?void 0:n.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:r.split(",");return(i=a==null?void 0:a.contents)==null?void 0:i.map(c=>((c==null?void 0:c.key)==="header"&&(c.contents=_t(c.contents,t)),c))}return a==null?void 0:a.contents},Tp=a=>{var n,r,i,t,f;let l=(a==null?void 0:a.filter)??"";if(l!==""){let c=(r=(n=l==null?void 0:l.replace("(",Sr))==null?void 0:n.split(Sr))==null?void 0:r[1];c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1),(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(i=le.analyzeSplitToContent(c,","))==null?void 0:i.map(x=>((x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),x));let u=c==null?void 0:c[0];(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1));let m=(c==null?void 0:c[1])??"Up",y=(t=a==null?void 0:a.contents)==null?void 0:t.map(x=>{var d,A;if(m==="Up"){if((x==null?void 0:x.key)==="extraButton"){let w=(d=u==null?void 0:u.split(","))==null?void 0:d.map(Y=>({label:Y,prop:Y}));x.contents=[...w??[],...x.contents]}}else if(m==="Line"&&(x==null?void 0:x.key)==="rowButton"){let w=(A=u==null?void 0:u.split(","))==null?void 0:A.map(Y=>({label:Y,prop:Y}));x.contents=[...w??[],...x.contents]}return x});if(m==="Bottom"||m==="Down"){let x=(f=u==null?void 0:u.split(","))==null?void 0:f.map(d=>({label:d,prop:d}));y.push({key:"bottomButton",contents:x})}return y}return a==null?void 0:a.contents},Bp=a=>a==null?void 0:a.contents,Np=a=>{var n;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(n=a==null?void 0:a.contents)==null?void 0:n.map(i=>{var t;return(i==null?void 0:i.key)==="rowButton"&&(i.contents=(t=l==null?void 0:l.split(","))==null?void 0:t.map(f=>({label:f,prop:f}))),i}):a==null?void 0:a.contents},Ap=a=>{var n;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let r=a==null?void 0:a.contents,i=(n=l==null?void 0:l.split(","))==null?void 0:n.map(t=>({label:t,prop:t}));return r.push({key:"bottomButton",contents:i}),r}return a==null?void 0:a.contents},zp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(n=>{var r;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(r=n.contents)==null?void 0:r.map(i=>(i.isNoClick=!0,i))),n}),l!=null&&l.find(n=>(n==null?void 0:n.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(n=>(n==null?void 0:n.key)!=="extraButton"&&(n==null?void 0:n.key)!=="rowButton")),l}return a==null?void 0:a.contents},Mp=a=>{var l;if(a!=null&&a.filter){const n=parseInt(a==null?void 0:a.filter);return!n||Number.isNaN(n)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var t;return(i==null?void 0:i.key)==="formContent"&&(i.contents=(t=i.contents)==null?void 0:t.map(f=>(f.width=n,f))),i})}return a==null?void 0:a.contents},Ip=a=>{var l,n,r,i;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const t=parseInt(a==null?void 0:a.filter);return!t||Number.isNaN(t)?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(c=>{var u;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(u=c.contents)==null?void 0:u.map(m=>(m.width=t,m))),c})}if(((r=a==null?void 0:a.filter)==null?void 0:r[0])==="["){let t=Ii(a==null?void 0:a.filter),f=Array.isArray(t)?t.map(u=>parseInt(u)).filter(u=>!!u&&!Number.isNaN(u)):[];return f.length?(i=a==null?void 0:a.contents)==null?void 0:i.map(u=>{if((u==null?void 0:u.key)==="formContent"){const m=u.contents??[];u.contents=m.map((y,x)=>{const d=x+1;let A=0,w=0;for(let z=0;z<f.length;z++){if(w+=f[z],d<=w){A=z;break}z===f.length-1&&(A=f.length-1)}const Y=f[A]||f[f.length-1]||1;return y.width=Y,y})}return u}):a==null?void 0:a.contents}return a==null?void 0:a.contents},Op=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var t,f,c;return(i==null?void 0:i.key)==="header"&&(Array.isArray((t=i==null?void 0:i.contents)==null?void 0:t[0])?i.contents[0]=(c=i.contents[0])==null?void 0:c.map(u=>(n!=null&&n.find(m=>m===(u==null?void 0:u.prop))&&(u.fixed="left"),u)):i.contents=(f=i.contents)==null?void 0:f.map(u=>(n!=null&&n.find(m=>m===(u==null?void 0:u.prop))&&(u.fixed="left"),u))),i})}return a==null?void 0:a.contents},Lp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(",");const r=t=>(n!=null&&n.find(f=>f===(t==null?void 0:t.prop))&&(t.required=!0),t!=null&&t.children&&Array.isArray(t.children)&&(t.children=t.children.map(f=>r(f))),t);return(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var f,c,u;return(t==null?void 0:t.key)==="header"&&(Array.isArray((f=t==null?void 0:t.contents)==null?void 0:f[0])?t.contents[0]=(u=t.contents[0])==null?void 0:u.map(m=>r(m)):t.contents=(c=t.contents)==null?void 0:c.map(m=>r(m))),t})}return a==null?void 0:a.contents},Rp=async a=>{var r,i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S;const l=M.useUnit(M.pinia),{chooseTitle:n}=M.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let k=await Jr(((i=(r=n==null?void 0:n.value)==null?void 0:r[0])==null?void 0:i.parentContent)??((f=(t=n==null?void 0:n.value)==null?void 0:t[0])==null?void 0:f.relatedContent),!1),_=(u=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:u.value;(y=(m=k==null?void 0:k[0])==null?void 0:m.compData)!=null&&y.find(V=>(V==null?void 0:V.key)==="header")?k=(x=k==null?void 0:k[0])==null?void 0:x.compData:k=(A=(d=k==null?void 0:k.filter(V=>{var ae;return(ae=V==null?void 0:V.compData)==null?void 0:ae.find(ee=>(ee==null?void 0:ee.key)==="header")}))==null?void 0:d[0])==null?void 0:A.compData;let b=(w=k==null?void 0:k.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:w.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((Y=b==null?void 0:b.find(V=>V==null?void 0:V.isMainKey))==null?void 0:Y.prop)??((z=b==null?void 0:b[0])==null?void 0:z.prop);let C=(O=($=k==null?void 0:k.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:$.contents)==null?void 0:O.find(V=>(V==null?void 0:V[b])===_);return(S=a==null?void 0:a.contents)==null?void 0:S.map(V=>{var ae;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(ae=V.contents)==null?void 0:ae.map(ee=>(ee.value=C==null?void 0:C[ee==null?void 0:ee.prop],ee))),V})}return a==null?void 0:a.contents},$p=a=>{var l,n,r,i,t;if((l=a==null?void 0:a.extra)!=null&&l.row){let f=a==null?void 0:a.filter;if(f!=null&&f.includes("*")&&(f="({"+((r=(n=f==null?void 0:f.replace("{",Sr))==null?void 0:n.split(Sr))==null?void 0:r[1])),f=(i=f==null?void 0:f.replaceAll("{",""))==null?void 0:i.replaceAll("}",""),(f==null?void 0:f[0])!=="("&&(f="("+f+")"),f.slice(1,(f==null?void 0:f.length)-1)==="undefined")return a==null?void 0:a.contents;let c=le.calculatorAndToOr(f),u=c==null?void 0:c[0],m=(t=a==null?void 0:a.extra)==null?void 0:t.row,y=[];for(let x in u)(u==null?void 0:u[x])===(m==null?void 0:m[x])?y.push(!0):y.push(!1);return y!=null&&y.every(x=>x===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},Vp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Fp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Pp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},jp=a=>{var l;if(a!=null&&a.filter){let n=a==null?void 0:a.contents,r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=(l=le.analyzeSplitToContent(r,","))==null?void 0:l.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),i)),n.push({key:"stepName",contents:r}),n}return a==null?void 0:a.contents},Hp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},hc={onNumSlice:xp,onRandomContents:wp,onConditionContents:Sp,onFatherPaceContents:Ep,onPaceContents:Cp,onMainTagContents:Dp,onButtonContents:Tp,onPamButtonContents:Bp,onRowButtonContents:Np,onRelated:Rp,onRowNum:Ip,onFixRow:Op,onReqItem:Lp,onBottomButtonContents:Ap,onConditionContent:$p,onTabs:Vp,onSinChoice:Fp,onTextSize:bp,onTextRGBA:kp,onPosition:yp,onSize:gp,onShowType:Pp,onStepName:jp,onStep:Hp,onInterfaceTypeContents:_p,onBackGround:mp,onMaxColumn:Mp,onEditRead:zp,onShowHide:vp},Up=async(a,l,n="")=>{var f,c,u,m,y,x,d,A,w,Y,z,$;let r="";if(((f=a==null?void 0:a.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:f.contents)!==""&&(r=(c=a==null?void 0:a.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:c.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(m=(u=r==null?void 0:r.replace("(",Sr))==null?void 0:u.split(Sr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let i=(y=le.analyzeSplitToContent(r,","))==null?void 0:y.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O!=null&&O.includes("(")||(O=O==null?void 0:O.replaceAll(":","=")),O)),t=a;for(let O in i){let S,k="";S=(A=(d=(x=i==null?void 0:i[O])==null?void 0:x.replace("=",Sr))==null?void 0:d.split(Sr))==null?void 0:A[0],k=(z=(Y=(w=i==null?void 0:i[O])==null?void 0:w.replace("=",Sr))==null?void 0:Y.split(Sr))==null?void 0:z[1];let _=($=Cn==null?void 0:Cn.find(b=>(b==null?void 0:b.key)===S))==null?void 0:$.value;if(_){const b=hc[_];t=await b({contents:t,filter:k,extra:l,groupName:n})}}return t},Ro=async(a,l,n="")=>{var c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae;let r="";if(((c=a==null?void 0:a.find(ee=>(ee==null?void 0:ee.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(u=a==null?void 0:a.find(ee=>(ee==null?void 0:ee.key)==="filter"))==null?void 0:u.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(y=(m=r==null?void 0:r.replace("(",Sr))==null?void 0:m.split(Sr))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let i=(x=le.analyzeSplitToContent(r,","))==null?void 0:x.map(ee=>((ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===","&&(ee=ee==null?void 0:ee.slice(0,(ee==null?void 0:ee.length)-1)),ee!=null&&ee.includes("(")||(ee=ee==null?void 0:ee.replaceAll(":","=")),ee)),t=a,f=new Map;i==null||i.forEach(ee=>{var ue,U,P;let _e=(ue=ee==null?void 0:ee.split("="))==null?void 0:ue[0];if(_e==="@MainParam"&&f.get(_e)){let X=f.get(_e);X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1);let re=(P=(U=ee==null?void 0:ee.replace("{",Sr))==null?void 0:U.split(Sr))==null?void 0:P[1];re=X+","+re,f.set(_e,re)}else _e==="@Button"&&f.get(_e)?f.set(ee,ee):f.set(_e,ee)}),i=Array.from(f.values()),i=i==null?void 0:i.sort((ee,_e)=>{var ue,U;return((ue=Cn==null?void 0:Cn.find(P=>_e==null?void 0:_e.includes(P==null?void 0:P.key)))==null?void 0:ue.order)-((U=Cn==null?void 0:Cn.find(P=>ee==null?void 0:ee.includes(P==null?void 0:P.key)))==null?void 0:U.order)});for(let ee in i){let _e,ue="";(d=i==null?void 0:i[ee])!=null&&d.includes("(")&&((A=i==null?void 0:i[ee])!=null&&A.includes("@If"))?(_e=(z=(Y=(w=i==null?void 0:i[ee])==null?void 0:w.replace("(",Sr))==null?void 0:Y.split(Sr))==null?void 0:z[0],ue="("+((S=(O=($=i==null?void 0:i[ee])==null?void 0:$.replace("(",Sr))==null?void 0:O.split(Sr))==null?void 0:S[1])):(_e=(b=(_=(k=i==null?void 0:i[ee])==null?void 0:k.replace("=",Sr))==null?void 0:_.split(Sr))==null?void 0:b[0],ue=(V=(R=(C=i==null?void 0:i[ee])==null?void 0:C.replace("=",Sr))==null?void 0:R.split(Sr))==null?void 0:V[1]);let U=(ae=Cn==null?void 0:Cn.find(P=>(P==null?void 0:P.key)===_e))==null?void 0:ae.value;if(U){const P=hc[U];t=await P({contents:t,filter:ue,extra:l,groupName:n})}}return t},vc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const n=l.slice(1,-1).split(",").map(r=>Number(r.trim()));return n.length<2||n.some(r=>Number.isNaN(r))?null:[n[0],n[1]]},mc=(a,l)=>{var Y,z,$,O,S;const n=Array.isArray(a)?a:[],r=n.find(k=>(k==null?void 0:k.key)==="formContent"),i=Array.isArray(r==null?void 0:r.contents)?r.contents:[],t=((Y=n.find(k=>(k==null?void 0:k.key)==="_gridLayoutMeta"))==null?void 0:Y.contents)??{},f=(i==null?void 0:i[0])??{};let c=((z=l==null?void 0:l.position)==null?void 0:z[0])??(t==null?void 0:t._positionStartRow)??(f==null?void 0:f._positionStartRow),u=(($=l==null?void 0:l.position)==null?void 0:$[1])??(t==null?void 0:t._positionRowSpan)??(f==null?void 0:f._positionRowSpan);(!c||Number.isNaN(c)||c<1)&&(c=1),(!u||Number.isNaN(u)||u<1)&&(u=1);let m=((O=l==null?void 0:l.size)==null?void 0:O[0])??(t==null?void 0:t._sizeStart)??(f==null?void 0:f._sizeStart),y=((S=l==null?void 0:l.size)==null?void 0:S[1])??(t==null?void 0:t._sizeEnd)??(f==null?void 0:f._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(y===void 0||Number.isNaN(y))&&(y=1),m=Math.max(0,Math.min(1,m)),y=Math.max(0,Math.min(1,y)),y<=m&&(m=0,y=1);const x=y-m,d=Math.max(1,Math.round(1/x));let A=n.map(k=>{if((k==null?void 0:k.key)!=="formContent")return k;const _=Array.isArray(k==null?void 0:k.contents)?k.contents:[];return{...k,contents:_.map(b=>({...b,width:d,_positionStartRow:c,_positionRowSpan:u,_sizeStart:m,_sizeEnd:y}))}});const w={_positionStartRow:c,_positionRowSpan:u,_sizeStart:m,_sizeEnd:y};return A.some(k=>(k==null?void 0:k.key)==="_gridLayoutMeta")?A=A.map(k=>(k==null?void 0:k.key)==="_gridLayoutMeta"?{...k,contents:w}:k):A.push({key:"_gridLayoutMeta",contents:w}),A};let ho="$R";const qp=M.useUnit(M.pinia),{selectTitle:Wp}=M.storeToRefs(qp);let Kp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Gp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Yp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Jp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ms=async(a,l,n=!0)=>{let r=[],i=a==null?void 0:a.map(async t=>{var x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe,Re,Ia,na,za,Ae,Pe,je,ze,we,tl,Dl,Ml,jl,gl,er,el,$l,Wa,Kl,Yl,ar,_l,br,va,sl,pa,Ha,la,Ka,Sl,Ee,ia,ja,Te,La,al,xl,Nl;let f=(w=(A=(d=(x=t==null?void 0:t.contents)==null?void 0:x.find(Le=>{var ha;return(ha=Le==null?void 0:Le.key)==null?void 0:ha.includes("struct")}))==null?void 0:d.value)==null?void 0:A[0])==null?void 0:w.类型,c=Object.values(t==null?void 0:t.name);c=c==null?void 0:c.reverse();let u=(Y=t==null?void 0:t.contents)==null?void 0:Y.map(Le=>Le==null?void 0:Le.key),m={comp:f,isShow:t==null?void 0:t.is_show,name:c==null?void 0:c[0],id:t==null?void 0:t.object_id,order_no:t==null?void 0:t.order_no,relatedTables:u,menuFilter:(z=t==null?void 0:t.filter)==null?void 0:z.menuFilter,status:t==null?void 0:t.status,fatherSyncContents:($=t==null?void 0:t.filter)==null?void 0:$.fatherSyncs,relatedQuotes:(O=t==null?void 0:t.filter)==null?void 0:O.quotes,sonSyncContents:(S=t==null?void 0:t.filter)==null?void 0:S.sonSyncs,nameContents:(k=M.cloneDeep(c))==null?void 0:k.reverse(),isHidden:!1,calculatorFilters:(V=(R=(C=(b=(_=t==null?void 0:t.contents)==null?void 0:_.find(Le=>{var ha;return(ha=Le==null?void 0:Le.key)==null?void 0:ha.includes("struct")}))==null?void 0:b.value)==null?void 0:C[0])==null?void 0:R.算法)==null?void 0:V.contents};for(let Le in c)parseInt(Le)>=1&&(m[`name${parseInt(Le)-1}`]=c[Le]);let y=Array.isArray((ae=t==null?void 0:t.filter)==null?void 0:ae.menuFilter)?(ee=t==null?void 0:t.filter)==null?void 0:ee.menuFilter:[];if(((_e=y==null?void 0:y.filter(Le=>Le==null?void 0:Le.includes("@If")))==null?void 0:_e.length)>0){let Le=y==null?void 0:y.filter(Fe=>Fe==null?void 0:Fe.includes("@If"));Le=Le==null?void 0:Le[0],Le=(U=(ue=Le==null?void 0:Le.replace("(",ho))==null?void 0:ue.split(ho))==null?void 0:U[1],Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1),Le!=null&&Le.includes("*")&&(Le=(X=(P=Le==null?void 0:Le.replace("{",ho))==null?void 0:P.split(ho))==null?void 0:X[1],Le=Le==null?void 0:Le.replace("}","")),Le=le.calculatorAndToOr(Le);let ha=(l==null?void 0:l.originPath)??"";(ha==null?void 0:ha[(ha==null?void 0:ha.length)-1])==="/"&&(ha=ha==null?void 0:ha.slice(0,(ha==null?void 0:ha.length)-1));let ta=await Jr(ha,!1),ga=(re=ta==null?void 0:ta.filter(Fe=>(Fe==null?void 0:Fe.comp)==="Table"))==null?void 0:re[0];ga=($e=(he=ga==null?void 0:ga.compData)==null?void 0:he.find(Fe=>(Fe==null?void 0:Fe.key)==="tableContents"))==null?void 0:$e.contents;let ma=(B=(se=Wp.value)==null?void 0:se.find(Fe=>(Fe==null?void 0:Fe.condition)==="child"))==null?void 0:B.value;ga=(oe=ga==null?void 0:ga.map(Fe=>{for(let ml in Fe)if((Fe==null?void 0:Fe[ml])===ma)return Fe}))==null?void 0:oe.filter(Fe=>Fe),ga=ga==null?void 0:ga[0],Le=Le==null?void 0:Le[0];let fl=[];for(let Fe in Le){let ml="";Ja.isObject(ga)&&(ml=(ke=(W=Object.keys(ga))==null?void 0:W.filter(Be=>Be==null?void 0:Be.includes("."+Fe)))==null?void 0:ke[0]),ml!==""&&(ga!=null&&ga[ml])&&(Le==null?void 0:Le[Fe])===(ga==null?void 0:ga[ml])||ga!=null&&ga[Fe]&&(Le==null?void 0:Le[Fe])===(ga==null?void 0:ga[Fe])?fl.push(!0):fl.push(!1)}if(fl!=null&&fl.some(Fe=>Fe===!1)&&((Ve=l==null?void 0:l.originPath)==null?void 0:Ve[((Ie=l==null?void 0:l.originPath)==null?void 0:Ie.length)-1])!=="/")return}if(f==="Table"||f==="Method"){!n&&((Qe=m==null?void 0:m.fatherSyncContents)==null?void 0:Qe.length)>0;let Le=((Ea=t==null?void 0:t.contents)==null?void 0:Ea.find(Sa=>{var ul;return(ul=Sa==null?void 0:Sa.key)==null?void 0:ul.includes("content")}))||[],ha=[];m.comp="Table",Le.value=(ie=Le==null?void 0:Le.value)==null?void 0:ie.sort((Sa,ul)=>parseInt(Sa==null?void 0:Sa.id)-parseInt(ul==null?void 0:ul.id)),Le.value=(ua=Le==null?void 0:Le.value)==null?void 0:ua.map(Sa=>{let ul={};for(let Za in Sa)JSON.stringify(Sa==null?void 0:Sa[Za])==="{}"?ul[Za]="":ul[Za]=Sa==null?void 0:Sa[Za];return ul}),ha.push({key:"tableContents",contents:Le==null?void 0:Le.value});let ta=(fe=(de=(Me=(ea=(ce=t==null?void 0:t.contents)==null?void 0:ce.find(Sa=>{var ul;return(ul=Sa==null?void 0:Sa.key)==null?void 0:ul.includes("struct")}))==null?void 0:ea.value)==null?void 0:Me[0])==null?void 0:de.结构)==null?void 0:fe.contents;Array.isArray(ta==null?void 0:ta[0])?ta[0]=(Ke=ta==null?void 0:ta[0])==null?void 0:Ke.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="sort"&&(Sa==null?void 0:Sa.prop)!=="relatedId"):ta=ta==null?void 0:ta.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="sort"&&(Sa==null?void 0:Sa.prop)!=="relatedId"),ha.push({key:"header",contents:ta}),ha.push({key:"filter",contents:(Q=(F=(q=(Ba=(ka=t==null?void 0:t.contents)==null?void 0:ka.find(Sa=>{var ul;return(ul=Sa==null?void 0:Sa.key)==null?void 0:ul.includes("struct")}))==null?void 0:Ba.value)==null?void 0:q[0])==null?void 0:F.引用)==null?void 0:Q.contents}),ha.push({key:"calculator",contents:m==null?void 0:m.calculatorFilters});let ga=Kp,ma=M.cloneDeep(Gp);f==="Method"&&ma.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ta==null?void 0:ta[0])&&((pe=ta==null?void 0:ta[0])==null?void 0:pe.prop)==="disabled"&&(ga=Yp,ma=Jp);const fl=["推力","真空","压力","温度","流量"],Fe=m.name;Fe&&fl.includes(Fe)&&(ga=[...ga],ga.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ml=[];if(!Array.isArray(ta==null?void 0:ta[0])&&(ta!=null&&ta.some(Sa=>{var ul;return(Sa==null?void 0:Sa.calculatorFilter)&&((ul=Sa==null?void 0:Sa.calculatorFilter)==null?void 0:ul.includes("Manual"))}))){let Sa=(ve=ta==null?void 0:ta.map(ul=>ul==null?void 0:ul.calculatorFilter))==null?void 0:ve.filter(ul=>ul&&(ul==null?void 0:ul.includes("Manual")));Sa==null||Sa.forEach(ul=>{var bl;let Za=le.analyzeSplitToContent(ul,",");if(Za=Za==null?void 0:Za.map(Ra=>((Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1])===","&&(Ra=Ra==null?void 0:Ra.slice(0,(Ra==null?void 0:Ra.length)-1)),Ra)),Za!=null&&Za.find(Ra=>(Ra==null?void 0:Ra.includes("Extent"))&&(Ra==null?void 0:Ra.includes("Row")))&&(Za!=null&&Za.find(Ra=>(Ra==null?void 0:Ra.includes("Button"))&&(Ra==null?void 0:Ra.includes(","))))){let Ra=Za==null?void 0:Za.find(Rl=>Rl==null?void 0:Rl.includes("@FunctionButton"));Ra=(bl=Ra==null?void 0:Ra.split("="))==null?void 0:bl[1],Ra=Ra==null?void 0:Ra.slice(1,(Ra==null?void 0:Ra.length)-1),Ra=Ra==null?void 0:Ra.split(","),Ra=Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1],ml.push(Ra)}}),ml=[...new Set(ml)],ml=ml==null?void 0:ml.map(ul=>({label:ul,prop:ul,type:"methodButton"}))}else if(Array.isArray(ta==null?void 0:ta[0])&&((da=le.getColumnChild(ta==null?void 0:ta[0]))!=null&&da.some(Sa=>{var ul;return(Sa==null?void 0:Sa.calculatorFilter)&&((ul=Sa==null?void 0:Sa.calculatorFilter)==null?void 0:ul.includes("Manual"))}))){let Sa=(Ue=(ca=le.getColumnChild(ta==null?void 0:ta[0]))==null?void 0:ca.map(ul=>ul==null?void 0:ul.calculatorFilter))==null?void 0:Ue.filter(ul=>ul&&(ul==null?void 0:ul.includes("Manual")));Sa==null||Sa.forEach(ul=>{var bl;let Za=le.analyzeSplitToContent(ul,",");if(Za=Za==null?void 0:Za.map(Ra=>((Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1])===","&&(Ra=Ra==null?void 0:Ra.slice(0,(Ra==null?void 0:Ra.length)-1)),Ra)),Za!=null&&Za.find(Ra=>(Ra==null?void 0:Ra.includes("Extent"))&&(Ra==null?void 0:Ra.includes("Row")))&&(Za!=null&&Za.find(Ra=>(Ra==null?void 0:Ra.includes("Button"))&&(Ra==null?void 0:Ra.includes(","))))){let Ra=Za==null?void 0:Za.find(Rl=>Rl==null?void 0:Rl.includes("@FunctionButton"));Ra=(bl=Ra==null?void 0:Ra.split("="))==null?void 0:bl[1],Ra=Ra==null?void 0:Ra.slice(1,(Ra==null?void 0:Ra.length)-1),Ra=Ra==null?void 0:Ra.split(","),Ra=Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1],ml.push(Ra)}}),ml=[...new Set(ml)],ml=ml==null?void 0:ml.map(ul=>({label:ul,prop:ul,type:"methodButton"}))}if(ha.push({key:"extraButton",contents:ga}),ha.push({key:"rowButton",contents:[...ma,...ml]}),m.compData=await Ro(ha,l,m==null?void 0:m.nameContents),(xa=m.compData)!=null&&xa.find(Sa=>(Sa==null?void 0:Sa.key)==="tab")&&(m.tab=(Ce=(Na=m.compData)==null?void 0:Na.find(Sa=>(Sa==null?void 0:Sa.key)==="tab"))==null?void 0:Ce.contents),(Pa=m.compData)!=null&&Pa.find(Sa=>(Sa==null?void 0:Sa.key)==="step")&&(m.step=(oa=(Ca=m.compData)==null?void 0:Ca.find(Sa=>(Sa==null?void 0:Sa.key)==="step"))==null?void 0:oa.contents),(Aa=m.compData)!=null&&Aa.find(Sa=>(Sa==null?void 0:Sa.key)==="choice")&&(m.choice=(wa=(De=m.compData)==null?void 0:De.find(Sa=>(Sa==null?void 0:Sa.key)==="choice"))==null?void 0:wa.contents),(Je=m.compData)!=null&&Je.find(Sa=>(Sa==null?void 0:Sa.key)==="hideContents")&&(m.isHidden=((H=(xe=m.compData)==null?void 0:xe.find(Sa=>(Sa==null?void 0:Sa.key)==="hideContents"))==null?void 0:H.contents)??!1),(Oe=m.compData)!=null&&Oe.find(Sa=>(Sa==null?void 0:Sa.key)==="newType")){let Sa=(Ia=(Re=m.compData)==null?void 0:Re.find(ul=>(ul==null?void 0:ul.key)==="newType"))==null?void 0:Ia.contents;m.comp=Sa,m.compData=(na=m.compData)==null?void 0:na.filter(ul=>(ul==null?void 0:ul.key)!=="newType")}let Be="",Pl=(za=m==null?void 0:m.compData)==null?void 0:za.filter(Sa=>(Sa==null?void 0:Sa.key)==="fixType");if((Pl==null?void 0:Pl.length)>0&&n&&(Be=(Ae=Pl==null?void 0:Pl[0])==null?void 0:Ae.contents,m.comp=Be),((Pe=m==null?void 0:m.calculatorFilters)==null?void 0:Pe.length)>0){let Sa=[],ul=[],Za=[];(je=m==null?void 0:m.calculatorFilters)==null||je.forEach(bl=>{var Ra,Rl,Er;(Ra=bl==null?void 0:bl.calculatorFilter)!=null&&Ra.includes("Up")&&Sa.push({label:bl==null?void 0:bl.functionName,prop:bl==null?void 0:bl.functionName,type:"methodButton"}),(Rl=bl==null?void 0:bl.calculatorFilter)!=null&&Rl.includes("Line")&&ul.push({label:bl==null?void 0:bl.functionName,prop:bl==null?void 0:bl.functionName,type:"methodButton"}),(Er=bl==null?void 0:bl.calculatorFilter)!=null&&Er.includes("Down")&&Za.push({label:bl==null?void 0:bl.functionName,prop:bl==null?void 0:bl.functionName,type:"methodButton"})}),m.compData=(ze=m.compData)==null?void 0:ze.map(bl=>((bl==null?void 0:bl.key)==="extraButton"&&(bl.contents=[...Sa??[],...bl.contents]),(bl==null?void 0:bl.key)==="rowButton"&&(bl.contents=[...ul??[],...bl.contents]),(bl==null?void 0:bl.key)==="bottomButton"&&(bl.contents=[...Za??[],...bl.contents]),bl)),(Za==null?void 0:Za.length)>0&&!((tl=(we=m.compData)==null?void 0:we.find(bl=>(bl==null?void 0:bl.key)==="bottomButton"))!=null&&tl.contents)&&m.compData.push({key:"bottomButton",contents:Za})}}else if(f==="Form"){let Le=[],ha=(jl=(Ml=(Dl=t==null?void 0:t.contents)==null?void 0:Dl.find(Fe=>{var ml;return(ml=Fe==null?void 0:Fe.key)==null?void 0:ml.includes("content")}))==null?void 0:Ml.value)==null?void 0:jl[0],ta=[],ga=Array.isArray((gl=t==null?void 0:t.filter)==null?void 0:gl.menuFilter)?(er=t==null?void 0:t.filter)==null?void 0:er.menuFilter:[];ga==null||ga.forEach(Fe=>{if(Fe!=null&&Fe.includes("@Param(Hide=Yes, prop=")||Fe!=null&&Fe.includes("(Hide=Yes, prop=")){const ml=Fe==null?void 0:Fe.match(/prop=([^,)]+)/);ml!=null&&ml[1]&&ta.push(ml==null?void 0:ml[1])}});let ma=(Yl=(Kl=(Wa=($l=(el=t==null?void 0:t.contents)==null?void 0:el.find(Fe=>{var ml;return(ml=Fe==null?void 0:Fe.key)==null?void 0:ml.includes("struct")}))==null?void 0:$l.value)==null?void 0:Wa[0])==null?void 0:Kl.结构)==null?void 0:Yl.contents,fl=(ar=ma==null?void 0:ma.map(Fe=>(Fe.value=ha==null?void 0:ha[Fe==null?void 0:Fe.prop],Fe)))==null?void 0:ar.filter(Fe=>(Fe==null?void 0:Fe.prop)!=="sort"&&(Fe==null?void 0:Fe.prop)!=="relatedId");fl=fl==null?void 0:fl.map(Fe=>(ta!=null&&ta.includes(Fe==null?void 0:Fe.prop)&&(Fe.isHideInForm=!0),Fe)),Le.push({key:"filter",contents:(pa=(sl=(va=(br=(_l=t==null?void 0:t.contents)==null?void 0:_l.find(Fe=>{var ml;return(ml=Fe==null?void 0:Fe.key)==null?void 0:ml.includes("struct")}))==null?void 0:br.value)==null?void 0:va[0])==null?void 0:sl.引用)==null?void 0:pa.contents}),Le.push({key:"formContent",contents:fl}),Le.push({key:"paramHideProps",contents:ta}),m.compData=await Up(Le,l,m==null?void 0:m.nameContents),(Ha=m.compData)!=null&&Ha.find(Fe=>(Fe==null?void 0:Fe.key)==="tab")&&(m.tab=(Ka=(la=m.compData)==null?void 0:la.find(Fe=>(Fe==null?void 0:Fe.key)==="tab"))==null?void 0:Ka.contents),(Sl=m.compData)!=null&&Sl.find(Fe=>(Fe==null?void 0:Fe.key)==="step")&&(m.step=(ia=(Ee=m.compData)==null?void 0:Ee.find(Fe=>(Fe==null?void 0:Fe.key)==="step"))==null?void 0:ia.contents),(ja=m.compData)!=null&&ja.find(Fe=>(Fe==null?void 0:Fe.key)==="choice")&&(m.choice=(La=(Te=m.compData)==null?void 0:Te.find(Fe=>(Fe==null?void 0:Fe.key)==="choice"))==null?void 0:La.contents),(al=m.compData)!=null&&al.find(Fe=>(Fe==null?void 0:Fe.key)==="hideContents")&&(m.isHidden=((Nl=(xl=m.compData)==null?void 0:xl.find(Fe=>(Fe==null?void 0:Fe.key)==="hideContents"))==null?void 0:Nl.contents)??!1)}return m});return r=await Promise.all(i),r=r==null?void 0:r.filter(t=>!(t!=null&&t.isHidden)),r},Xp=M.useLoginState(M.pinia),{loginUserInfo:Wn}=M.storeToRefs(Xp),Zp=M.useUnit(M.pinia),{selectTitle:Qp}=M.storeToRefs(Zp),ef=async(a,l="Manual",n=[])=>{var f;let r=a,i=(f=r==null?void 0:r.filter(c=>{var u;return(c==null?void 0:c.functionName)&&(l==="Manual"&&((u=c==null?void 0:c.calculatorFilter)==null?void 0:u.includes(l))||l!=="Manual")}))==null?void 0:f.map(c=>({prop:c==null?void 0:c.prop,label:c==null?void 0:c.label,methods:c==null?void 0:c.calculatorFilter,functionName:c==null?void 0:c.functionName,functionRelatedWords:c==null?void 0:c.functionRelatedWords})),t=r==null?void 0:r.map(async c=>{let u=i==null?void 0:i.filter(m=>(m==null?void 0:m.prop)===(c==null?void 0:c.prop));return c=await It(c,u,r,l,r,n),c});return t=await Promise.all(t),t},St=async(a,l,n="Manual",r=[],i=[])=>{var m;let t=a,f;Array.isArray(l==null?void 0:l[0])?f=le.getColumnChild(l==null?void 0:l[0]):f=l;let c=(m=f==null?void 0:f.filter(y=>{var x;return(y==null?void 0:y.calculatorFilter)&&((x=y==null?void 0:y.calculatorFilter)==null?void 0:x.includes(n))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:m.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords}));(i==null?void 0:i.length)>0&&(c=[...i==null?void 0:i.map(x=>({prop:"",label:"",methods:x==null?void 0:x.calculatorFilter,functionName:x==null?void 0:x.functionName,functionRelatedWords:x==null?void 0:x.functionRelatedWords})),...c]);let u=t==null?void 0:t.map(async y=>(y=await It(y,c,f,n,t,r),y));return u=await Promise.all(u),u},af=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=le.getValueToObjectValue(l,le.getColumnContents(i))),n==null||n.forEach(f=>{var c;if(l!=null&&l[f]){let u=l==null?void 0:l[f];t=t?u?Fl.isEqual(u.toString(),t.toString()):void 0:u}else{let u=(c=i==null?void 0:i.find(y=>(y==null?void 0:y.label)===f))==null?void 0:c.prop,m=(l==null?void 0:l[u])??0;t=t?m?Fl.isEqual(m.toString(),t.toString()):void 0:m}}),l[r]=t===void 0?void 0:t?1:0,l},zr=a=>{const[l,n,r]=M.cloneDeep(a).split(":").map(Number);let i=+a;return!a||!(a!=null&&a.includes(":"))?i:(l??0)*3600+(n??0)*60+(r??0)},ei=a=>{const l=t=>t.toString().padStart(2,"0"),n=Math.floor(a/3600),r=Math.floor(a%3600/60),i=a%60;return`${l(n)}:${l(r)}:${parseInt(l(i))}`},lf=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=le.getValueToObjectValue(l,le.getColumnContents(i))),n==null||n.forEach(u=>{var m,y,x,d,A,w,Y,z,$;if(l!=null&&l[u]){if(t==="Row")if(!((y=((m=l==null?void 0:l[u])==null?void 0:m.toString())??"")!=null&&y.includes(":"))&&!((x=c==null?void 0:c.toString())!=null&&x.includes(":"))){let O=+(l==null?void 0:l[u]);c=c+O}else c=zr(c.toString())+zr((d=l==null?void 0:l[u])==null?void 0:d.toString()),c=ei(c)}else if(t==="Row"){let O=(A=i==null?void 0:i.find(S=>(S==null?void 0:S.label)===u))==null?void 0:A.prop;if(!((Y=Number.isNaN(l==null?void 0:l[O])?"":(w=l==null?void 0:l[O])==null?void 0:w.toString())!=null&&Y.includes(":"))&&!((z=c==null?void 0:c.toString())!=null&&z.includes(":"))){let S=+((l==null?void 0:l[O])??0);c=c+S}else c=zr(c==null?void 0:c.toString())+zr(($=(l==null?void 0:l[O])??0)==null?void 0:$.toString()),c=ei(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let y=f==null?void 0:f.map(x=>{var d;return(x==null?void 0:x[m])??(x==null?void 0:x[(d=i==null?void 0:i.find(A=>(A==null?void 0:A.label)===m))==null?void 0:d.prop])});u=[...u,...y]}),c=u.reduce((m,y)=>{let x=0;Number.isNaN(m)||(x=+m);let d=0;return Number.isNaN(y)||(d=+y),x+d},0)}return l[r]=c,l},rf=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=le.getValueToObjectValue(l,le.getColumnContents(i))),n==null||n.forEach(u=>{var m,y,x,d,A,w,Y;if(l!=null&&l[u]){if(t==="Row")if(!((y=(m=l==null?void 0:l[u])==null?void 0:m.toString())!=null&&y.includes(":"))&&!((x=c==null?void 0:c.toString())!=null&&x.includes(":"))){let z=+(l==null?void 0:l[u]);c=c===0?c+z:c-z}else c=c===0?zr(c.toString())+zr(l==null?void 0:l[u].toString()):zr(c.toString())-zr(l==null?void 0:l[u].toString()),c=ei(c)}else if(t==="Row"){let z=(d=i==null?void 0:i.find($=>($==null?void 0:$.label)===u))==null?void 0:d.prop;if(!((w=Number.isNaN(l==null?void 0:l[z])?"":(A=l==null?void 0:l[z])==null?void 0:A.toString())!=null&&w.includes(":"))&&!((Y=c==null?void 0:c.toString())!=null&&Y.includes(":"))){let $=+((l==null?void 0:l[z])??0);c=c===0?c+$:c-$}else c=c===0?zr(c.toString())+zr(((l==null?void 0:l[z])??0).toString()):zr(c.toString())-zr(((l==null?void 0:l[z])??0).toString()),c=ei(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let y=f==null?void 0:f.map(x=>{var d;return(x==null?void 0:x[m])??(x==null?void 0:x[(d=i==null?void 0:i.find(A=>(A==null?void 0:A.label)===m))==null?void 0:d.prop])});u=[...u,...y]}),c=u.reduce((m,y)=>{let x=0;Number.isNaN(m)||(x=+m);let d=0;return Number.isNaN(y)||(d=+y),x-d},0)}return l[r]=c,l},nf=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=le.getValueToObjectValue(l,le.getColumnContents(i))),n==null||n.forEach(u=>{var m,y,x,d,A,w,Y;if(l!=null&&l[u]){if(t==="Row")if(!((y=(m=l==null?void 0:l[u])==null?void 0:m.toString())!=null&&y.includes(":"))&&!((x=c==null?void 0:c.toString())!=null&&x.includes(":"))){let z=+(l==null?void 0:l[u]);c=c===0?c+z:c*z}else c=c===0?zr(c.toString())+zr(l==null?void 0:l[u].toString()):zr(c.toString())*zr(l==null?void 0:l[u].toString()),c=ei(c)}else if(t==="Row"){let z=(d=i==null?void 0:i.find($=>($==null?void 0:$.label)===u))==null?void 0:d.prop;if(!(l!=null&&l[z]))c=void 0;else if(!((w=Number.isNaN(l==null?void 0:l[z])?"":(A=l==null?void 0:l[z])==null?void 0:A.toString())!=null&&w.includes(":"))&&!((Y=c==null?void 0:c.toString())!=null&&Y.includes(":"))){let $=+((l==null?void 0:l[z])??0);c=c===0?c+$:c*$}else c=c===0?zr(c.toString())+zr(((l==null?void 0:l[z])??0).toString()):zr(c.toString())*zr(((l==null?void 0:l[z])??0).toString()),c=ei(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let y=f==null?void 0:f.map(x=>{var d;return(x==null?void 0:x[m])??(x==null?void 0:x[(d=i==null?void 0:i.find(A=>(A==null?void 0:A.label)===m))==null?void 0:d.prop])});u=[...u,...y]}),c=u.reduce((m,y)=>{let x=0;Number.isNaN(m)||(x=+m);let d=0;return Number.isNaN(y)||(d=+y),x*d},0)}return l[r]=c,l},of=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,i=a==null?void 0:a.headers,t=a==null?void 0:a.typeString,f=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=le.getValueToObjectValue(l,le.getColumnContents(i))),n==null||n.forEach(u=>{var m,y,x,d,A,w,Y;if(l!=null&&l[u]){if(t==="Row")if(!((y=(m=l==null?void 0:l[u])==null?void 0:m.toString())!=null&&y.includes(":"))&&!((x=c==null?void 0:c.toString())!=null&&x.includes(":"))){let z=+(l==null?void 0:l[u]);c=c===0?c+z:c/z}else c=c===0?zr(c.toString())+zr(l==null?void 0:l[u].toString()):zr(c.toString())/zr(l==null?void 0:l[u].toString()),c=ei(c)}else if(t==="Row"){let z=(d=i==null?void 0:i.find($=>($==null?void 0:$.label)===u))==null?void 0:d.prop;if(!((w=Number.isNaN(l==null?void 0:l[z])?"":(A=l==null?void 0:l[z])==null?void 0:A.toString())!=null&&w.includes(":"))&&!((Y=c==null?void 0:c.toString())!=null&&Y.includes(":"))){let $=+((l==null?void 0:l[z])??0);c=c===0?c+$:c/$}else c=c===0?zr(c.toString())+zr(((l==null?void 0:l[z])??0).toString()):zr(c.toString())/zr(((l==null?void 0:l[z])??0).toString()),c=ei(c)}}),t==="Column"){let u=[];n==null||n.forEach(m=>{let y=f==null?void 0:f.map(x=>{var d;return(x==null?void 0:x[m])??(x==null?void 0:x[(d=i==null?void 0:i.find(A=>(A==null?void 0:A.label)===m))==null?void 0:d.prop])});u=[...u,...y]}),c=u.reduce((m,y)=>{let x=0;Number.isNaN(m)||(x=+m);let d=0;return Number.isNaN(y)||(d=+y),x/d},0)}return l[r]=c.toFixed(2),l},tf=async a=>{var t,f,c,u,m,y,x,d,A,w,Y;let l=(t=a==null?void 0:a.valueString)==null?void 0:t[0],n=(f=a==null?void 0:a.contents)==null?void 0:f.calculatorFilter,r=0,i=a==null?void 0:a.contents;if(l!=null&&l.includes("$")&&!(l!=null&&l.includes("{"))){(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let z=(u=(c=l==null?void 0:l.split("*"))==null?void 0:c[0])==null?void 0:u.replaceAll(":","/"),$=await Jr(z,!1),O=(m=l==null?void 0:l.split("*"))==null?void 0:m[1];if($=(y=$==null?void 0:$.filter(S=>(S==null?void 0:S.name)===O))==null?void 0:y[0],n!==""){let S=$.compData;S=S==null?void 0:S.filter(k=>(k==null?void 0:k.key)!=="filter"),S.push({key:"filter",contents:"("+n+")"}),S=await Ro(S,{}),r=(d=(x=S==null?void 0:S.find(k=>(k==null?void 0:k.key)==="tableContents"))==null?void 0:x.contents)==null?void 0:d.length}else r=(Y=(w=(A=$==null?void 0:$.compData)==null?void 0:A.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:w.contents)==null?void 0:Y.length}return i.value=r,i},sf=async a=>{var y,x,d,A,w,Y,z;let l=(y=a==null?void 0:a.valueString)==null?void 0:y[0];(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let n=(d=(x=l==null?void 0:l.split("*"))==null?void 0:x[0])==null?void 0:d.replaceAll(":","/"),r=(A=l==null?void 0:l.split("*"))==null?void 0:A[1],i=(w=r==null?void 0:r.split("{"))==null?void 0:w[0],t=r==null?void 0:r.replace(i,"");i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1),i=i==null?void 0:i.split(":"),i=i==null?void 0:i[(i==null?void 0:i.length)-1];let f=await Jr(n,!1);t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1),t=t==null?void 0:t.split(":"),t=t==null?void 0:t[(t==null?void 0:t.length)-1],f=f==null?void 0:f.find($=>($==null?void 0:$.name)===i),f=(z=(Y=f==null?void 0:f.compData)==null?void 0:Y.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:z.contents,f=f==null?void 0:f.map($=>$==null?void 0:$[t]);let c=[...new Set(f)],u=[],m={};return c==null||c.forEach($=>{var S;let O=(S=f==null?void 0:f.filter(k=>$===k))==null?void 0:S.length;m[$]=O}),u.push(m),{xAxis:c,yAxis:u}},cf=async a=>{var r,i;let l=a==null?void 0:a.valueString;l=l==null?void 0:l[0];let n={};if((l==null?void 0:l[0])==="{"){l=l==null?void 0:l.slice(1,l.length-1),l=(r=le.analyzeSplitToContent(l,","))==null?void 0:r.map(c=>((c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),c));let t=l==null?void 0:l.map(async c=>{var x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e;let u=(d=(x=c==null?void 0:c.replace("=","$R"))==null?void 0:x.split("$R"))==null?void 0:d[0],m=(w=(A=c==null?void 0:c.replace("=","$R"))==null?void 0:A.split("$R"))==null?void 0:w[1],y="";if(m==="LoginUser")y=((Y=Wn.value)==null?void 0:Y.姓名)||((z=Wn.value)==null?void 0:z.account)||(($=Wn.value)==null?void 0:$.账号);else if((m==null?void 0:m[0])==="$"){let ue=(O=m==null?void 0:m.split("*"))==null?void 0:O[0],U=(S=m==null?void 0:m.split("*"))==null?void 0:S[1],P=U;if((ue==null?void 0:ue[0])==="$"&&(ue=ue==null?void 0:ue.slice(1,ue==null?void 0:ue.length)),ue!=null&&ue.includes("$")){let re=(k=ue==null?void 0:ue.split("$"))==null?void 0:k[0],he=(_=ue==null?void 0:ue.split("$"))==null?void 0:_[1],$e=(b=re==null?void 0:re.split(":"))==null?void 0:b[0],se=(V=(R=(C=Qp.value)==null?void 0:C.filter(B=>(B==null?void 0:B.condition)==="child"))==null?void 0:R[0])==null?void 0:V.value;he=he==null?void 0:he.replaceAll(":","/"),ue=$e+"/"+he+"/"+se}else ue=ue==null?void 0:ue.replaceAll(":","/");U=U==null?void 0:U.split(":"),U=U==null?void 0:U.find((re,he)=>he===(U==null?void 0:U.length)-2),P=P==null?void 0:P.split(":"),P=P==null?void 0:P.find((re,he)=>he===(P==null?void 0:P.length)-1),(P==null?void 0:P[0])==="{"&&(P=P==null?void 0:P.slice(1,(P==null?void 0:P.length)-1));let X=await Jr(ue,!1);X=X==null?void 0:X.find(re=>(re==null?void 0:re.name)===U),X=(ee=(ae=X==null?void 0:X.compData)==null?void 0:ae.find(re=>(re==null?void 0:re.key)==="tableContents"))==null?void 0:ee.contents,y=(_e=X==null?void 0:X[0])==null?void 0:_e[P]}else y=m;n[u]=y});await Promise.all(t);let f=(i=a==null?void 0:a.valueString)==null?void 0:i[1];n.menuPathContent=f}return n},vo={Sum:lf,Substract:rf,Multiple:nf,Divide:of,Compare:af,VecDimCount:tf,Approval:cf,VecRepCount:sf},It=async(a,l,n,r="Auto",i,t=[])=>{var y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U;let f=a,c=[],u=await M.getPageDataApi({platId:parseInt((y=Wn==null?void 0:Wn.value)==null?void 0:y.plat_id),pageName:"menu"});u=(A=(d=(x=u==null?void 0:u.data)==null?void 0:x.result)==null?void 0:d.filter(P=>(P==null?void 0:P.property_name)===""))==null?void 0:A[0];let m=[];if(u!=null&&u.object_name){u=u==null?void 0:u.object_name;let P=await M.getPageDataApi({platId:parseInt((w=Wn==null?void 0:Wn.value)==null?void 0:w.plat_id),pageName:u});P=(S=(O=($=(z=(Y=P==null?void 0:P.data)==null?void 0:Y.result)==null?void 0:z[0])==null?void 0:$.contents)==null?void 0:O.find(X=>{var re;return(re=X==null?void 0:X.key)==null?void 0:re.includes("content")}))==null?void 0:S.value,c=(k=P==null?void 0:P.map(X=>({functionName:X==null?void 0:X.函数名称,functionContent:X==null?void 0:X.输出值})))==null?void 0:k.filter(X=>(X==null?void 0:X.functionContent)!==""),c==null||c.forEach(X=>{m.push(X.functionName),vo[X.functionName]=new Function("return "+X.functionContent)()})}if((l==null?void 0:l.length)===0)return f;for(let P in l){let X=(_=l==null?void 0:l[P])==null?void 0:_.functionName;const re=vo==null?void 0:vo[X];let he=(b=l==null?void 0:l[P])==null?void 0:b.methods;if(he=le.analyzeSplitToContent(he,","),(C=he==null?void 0:he.find($e=>$e==null?void 0:$e.includes("@Type")))!=null&&C.includes(r)||r==="Auto"||(he==null?void 0:he.length)===0){let $e=((ae=(V=(R=he==null?void 0:he.find(se=>se==null?void 0:se.includes("@Extent")))==null?void 0:R.replace(":","="))==null?void 0:V.split("="))==null?void 0:ae[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(se=>se===X)){let se="";try{let oe=(ee=l==null?void 0:l[P])==null?void 0:ee.functionRelatedWords,W=(t==null?void 0:t.length)>0?t==null?void 0:t.map(Ie=>{var Ve;return Ie==null?void 0:Ie[(Ve=l==null?void 0:l[P])==null?void 0:Ve.prop]}):["0"];W=W==null?void 0:W.map(Ie=>Ie==null?void 0:Ie.slice((Ie==null?void 0:Ie.length)-5,Ie==null?void 0:Ie.length)),W=W==null?void 0:W.map(Ie=>le.isNumber(parseInt(Ie))&&parseInt(Ie)?parseInt(Ie):0);let ke=Math.max(...W);oe=oe==null?void 0:oe.map(Ie=>{if(Ie!=null&&Ie.includes("'"))return Ie==null?void 0:Ie.replaceAll("'","");if(Ie!=null&&Ie.includes("@"))return ke+1;{let Ve=Object.keys(f);return Ie=(f==null?void 0:f[Ie])??(f==null?void 0:f[Ve==null?void 0:Ve.find(Qe=>Qe==null?void 0:Qe.includes("."+Ie))]),Ie}}),se=re(...oe)}catch(oe){Ja.ElMessage.warning("关联数据出现错误,"+oe.message)}let B=(_e=l==null?void 0:l[P])==null?void 0:_e.prop;f[B]=se}else f=await re({contents:f,valueString:(ue=l==null?void 0:l[P])==null?void 0:ue.functionRelatedWords,prop:(U=l==null?void 0:l[P])==null?void 0:U.prop,headers:n,typeString:$e,allContents:i})}}return f},uf=M.useLoginState(M.pinia),{loginUserInfo:yn}=M.storeToRefs(uf),df=M.useMenuState(M.pinia),{activeMenuPath:ys,currentMenuPath:mo}=M.storeToRefs(df),yc=M.useUnit(M.pinia);let gs="$R";const{selectTitle:zi}=M.storeToRefs(yc),gc=async(a,l)=>{var f,c,u,m,y,x,d,A,w,Y,z,$,O;let n=ys.value,r="",i=((f=zi==null?void 0:zi.value)==null?void 0:f.find(S=>(S==null?void 0:S.condition)==="child"&&!(S!=null&&S.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(n=l?n:(c=a==null?void 0:a[0])==null?void 0:c.object_name,r=(u=a==null?void 0:a[0])==null?void 0:u.father_name);let t=[];if(r!==""){let S=r;(S==null?void 0:S[(S==null?void 0:S.length)-1])==="/"&&(S=S==null?void 0:S.slice(0,(S==null?void 0:S.length)-1));let k=await Jr(S,!1);k=(m=k==null?void 0:k[0])==null?void 0:m.compData;let _=(y=k==null?void 0:k.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:y.contents;_=((x=_==null?void 0:_.find(C=>C==null?void 0:C.isMainKey))==null?void 0:x.prop)??((d=_==null?void 0:_[0])==null?void 0:d.prop);let b=(w=(A=k==null?void 0:k.find(C=>(C==null?void 0:C.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:w.map(C=>({label:C==null?void 0:C[_],value:C==null?void 0:C[_]}));t=(Y=r==null?void 0:r.split("/"))==null?void 0:Y.map(C=>(C===""?i?(i.isShow=!0,C=i):C={value:C,condition:"child",options:b,parentContent:(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"?r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1):r,isShow:!0}:C={condition:"parent",value:C.trim(),isShow:!0},C))}if(n!==""){let S=(z=n==null?void 0:n.split("/"))==null?void 0:z.map(k=>(k={condition:"normal",value:k.trim(),isShow:!0},k));(($=S==null?void 0:S[0])==null?void 0:$.value)===((O=t==null?void 0:t[0])==null?void 0:O.value)&&(S=S==null?void 0:S.filter((k,_)=>_!==0)),t=[...t??[],...S??[]]}r===""&&i&&((i==null?void 0:i.parentContent)!==ys.value&&(i.isShow=!1),(i==null?void 0:i.value)!==""&&t.push(i)),yc.setSelectTitle(t)},pf=async a=>{var t,f,c,u,m,y,x,d,A;let l=await M.getPageDataApi({platId:parseInt((t=yn==null?void 0:yn.value)==null?void 0:t.plat_id),pageName:"menu"}),n=(f=l==null?void 0:l.data)==null?void 0:f.result,r=(y=(m=(u=(c=a==null?void 0:a.filter(w=>(w==null?void 0:w.comp)==="Table"))==null?void 0:c[0])==null?void 0:u.compData)==null?void 0:m.find(w=>(w==null?void 0:w.key)==="filter"))==null?void 0:y.contents;r=(A=(d=(x=r==null?void 0:r.replace("(",gs))==null?void 0:x.split(gs))==null?void 0:d[0])==null?void 0:A.replaceAll(":","/");let i=n==null?void 0:n.filter(w=>{var Y;return(w==null?void 0:w.object_name)===mo.value+"/"||((Y=mo.value)==null?void 0:Y.includes(r))&&r+"/"===(w==null?void 0:w.object_name)||r===(w==null?void 0:w.object_name)});return(i==null?void 0:i.length)>0&&(a=a==null?void 0:a.map(w=>{var Y;return(w==null?void 0:w.comp)==="Table"&&(w.compData=(Y=w==null?void 0:w.compData)==null?void 0:Y.map(z=>{var $,O,S;return(z==null?void 0:z.key)==="header"&&(Array.isArray(($=z.contents)==null?void 0:$[0])?z.contents[0]=(S=z.contents[0])==null?void 0:S.map((k,_)=>{var b;return _===0&&(k.isExistChild=!0,((b=mo.value)!=null&&b.includes(r)||r)&&(k.fatherPath=r)),k}):z.contents=(O=z.contents)==null?void 0:O.map((k,_)=>{var b;return _===0&&(k.isExistChild=!0,((b=mo.value)!=null&&b.includes(r)||r)&&(k.fatherPath=r)),k})),z})),w})),a},Jr=async(a,l,n={})=>{var f,c,u,m,y,x,d,A,w,Y,z,$;let r=await M.getPageDataApi({platId:parseInt((f=yn==null?void 0:yn.value)==null?void 0:f.plat_id),pageName:a}),i=(c=r==null?void 0:r.data)==null?void 0:c.result;if((i==null?void 0:i.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==a){let O=await M.getPageDataApi({platId:parseInt((u=yn==null?void 0:yn.value)==null?void 0:u.plat_id),pageName:n==null?void 0:n.originPath});if(((y=(m=O==null?void 0:O.data)==null?void 0:m.result)==null?void 0:y.length)>0){let S=await ms((x=O==null?void 0:O.data)==null?void 0:x.result,n,!1);S=S==null?void 0:S.map(async b=>{var V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba;let C=[],R=(V=Object.keys(b))==null?void 0:V.filter(q=>(q==null?void 0:q.includes("name"))&&q!=="nameContents");for(let q in b)R!=null&&R.find(F=>F===q)&&C.push(b==null?void 0:b[q]);if(C=C.reverse(),(b==null?void 0:b.comp)==="Table"){let q=(_e=(ee=(ae=b==null?void 0:b.compData)==null?void 0:ae.find(Q=>(Q==null?void 0:Q.key)==="tableContents"))==null?void 0:ee.contents)==null?void 0:_e.map(Q=>{let pe={};for(let ve in Q)ve!=="id"&&ve!=="create_time"&&ve!=="update_time"&&ve!=="sort"&&ve!=="create_user_id"&&ve!=="update_user_id"&&ve!=="department_id"&&ve!=="relatedId"&&(pe[ve]=Q==null?void 0:Q[ve]);return Q=Object.values(pe),Q}),F=(U=(ue=b==null?void 0:b.compData)==null?void 0:ue.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:U.contents;if(Array.isArray(F==null?void 0:F[0])?(F[0].push({label:"排序",prop:"sort"}),F[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(P=F[0])!=null&&P.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(F[0]=(X=F[0])==null?void 0:X.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),F[0].unshift({label:"",prop:"disabled",sortable:!1}))):(F||(F=[]),F.push({label:"排序",prop:"sort"}),F.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),F!=null&&F.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(F=F==null?void 0:F.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),F.unshift({label:"",prop:"disabled",sortable:!1}))),F!=null&&F.some(Q=>{var pe;return(Q==null?void 0:Q.calculatorFilter)&&((pe=Q==null?void 0:Q.calculatorFilter)==null?void 0:pe.includes("Auto"))})&&(q=await St(q,F,"Auto"),q=q==null?void 0:q.map(Q=>Object.values(Q))),b!=null&&b.fatherSyncContents){Array.isArray((re=b==null?void 0:b.fatherSyncContents)==null?void 0:re[0])&&(b.fatherSyncContents=(he=b==null?void 0:b.fatherSyncContents)==null?void 0:he[0]);let Q=($e=zi.value)==null?void 0:$e.find(pe=>(pe==null?void 0:pe.condition)==="child");b.fatherSyncContents=(se=b==null?void 0:b.fatherSyncContents)==null?void 0:se.map(pe=>{var ve,da,ca,Ue,xa,Na;return((da=pe==null?void 0:pe.menus)==null?void 0:da[((ve=pe==null?void 0:pe.menus)==null?void 0:ve.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(pe==null?void 0:pe.menus)?pe.menus=(pe==null?void 0:pe.menus)+(Q==null?void 0:Q.value):((Ue=pe==null?void 0:pe.menus)==null?void 0:Ue[((ca=pe==null?void 0:pe.menus)==null?void 0:ca.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(pe==null?void 0:pe.menus)&&(pe.menus=(Na=pe.menus)==null?void 0:Na.slice(0,((xa=pe.menus)==null?void 0:xa.length)-1)),pe})}if(b!=null&&b.sonSyncContents){Array.isArray((B=b==null?void 0:b.sonSyncContents)==null?void 0:B[0])&&(b.sonSyncContents=(oe=b==null?void 0:b.sonSyncContents)==null?void 0:oe[0]);let Q=(W=zi.value)==null?void 0:W.find(pe=>(pe==null?void 0:pe.condition)==="child");b.sonSyncContents=(ke=b==null?void 0:b.sonSyncContents)==null?void 0:ke.map(pe=>{var ve,da,ca,Ue,xa,Na;return((da=pe==null?void 0:pe.menus)==null?void 0:da[((ve=pe==null?void 0:pe.menus)==null?void 0:ve.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(pe==null?void 0:pe.menus)?pe.menus=(pe==null?void 0:pe.menus)+(Q==null?void 0:Q.value):((Ue=pe==null?void 0:pe.menus)==null?void 0:Ue[((ca=pe==null?void 0:pe.menus)==null?void 0:ca.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(pe==null?void 0:pe.menus)&&(pe.menus=(Na=pe.menus)==null?void 0:Na.slice(0,((xa=pe.menus)==null?void 0:xa.length)-1)),pe})}if(b!=null&&b.relatedQuotes){Array.isArray((Ie=b==null?void 0:b.relatedQuotes)==null?void 0:Ie[0])&&(b.relatedQuotes=(Ve=b==null?void 0:b.relatedQuotes)==null?void 0:Ve[0]);let Q=(Qe=zi.value)==null?void 0:Qe.find(pe=>(pe==null?void 0:pe.condition)==="child");b.relatedQuotes=(Ea=b==null?void 0:b.relatedQuotes)==null?void 0:Ea.map(pe=>{var ve,da,ca,Ue,xa,Na;return((da=pe==null?void 0:pe.menus)==null?void 0:da[((ve=pe==null?void 0:pe.menus)==null?void 0:ve.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(pe==null?void 0:pe.menus)?pe.menus=(pe==null?void 0:pe.menus)+(Q==null?void 0:Q.value):((Ue=pe==null?void 0:pe.menus)==null?void 0:Ue[((ca=pe==null?void 0:pe.menus)==null?void 0:ca.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(pe==null?void 0:pe.menus)&&(pe.menus=(Na=pe.menus)==null?void 0:Na.slice(0,((xa=pe.menus)==null?void 0:xa.length)-1)),pe})}b={filter:(ua=(ie=b==null?void 0:b.compData)==null?void 0:ie.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:ua.contents,key:b==null?void 0:b.comp,name:C,tableColumns:F,tableContents:q,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents,calculatorFilters:b==null?void 0:b.calculatorFilters}}else{let q=(Me=(ea=(ce=b==null?void 0:b.compData)==null?void 0:ce.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:ea.contents)==null?void 0:Me.map(Q=>(Q==null?void 0:Q.value)??"");q=[q];let F=(Ke=(fe=(de=b==null?void 0:b.compData)==null?void 0:de.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:fe.contents)==null?void 0:Ke.map(Q=>(Q.value="",Q));b={contents:q,filter:(Ba=(ka=b==null?void 0:b.compData)==null?void 0:ka.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:Ba.contents,key:b==null?void 0:b.comp,name:C,value:F,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents,calculatorFilters:b==null?void 0:b.calculatorFilters}}return b.isShow=!1,b}),S=await Promise.all(S);let k=[{key:"menuPath",contents:[{path:a,fatherPath:(w=(A=(d=O==null?void 0:O.data)==null?void 0:d.result)==null?void 0:A[0])==null?void 0:w.father_name,isShow:!1}]},{key:a,contents:S}];await M.createPlatFormDataApi({platId:parseInt((Y=yn==null?void 0:yn.value)==null?void 0:Y.plat_id),changeData:k});let _=await M.getPageDataApi({platId:parseInt((z=yn==null?void 0:yn.value)==null?void 0:z.plat_id),pageName:a});i=($=_==null?void 0:_.data)==null?void 0:$.result}}l&&await gc(i,!!(n!=null&&n.originPath));let t=await ms(i,n);return l&&(t=await pf(t)),t==null?void 0:t.filter(O=>O)},bs=async a=>{var r,i,t,f,c,u,m,y,x,d,A;let l=(r=a==null?void 0:a.menus)==null?void 0:r.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((t=(i=a.value)==null?void 0:i.split(" "))==null?void 0:t[0]));let n=await Jr(l,!1);if(n=(f=n==null?void 0:n.filter(w=>{var Y,z;return(w==null?void 0:w.name)===((z=a==null?void 0:a.groups)==null?void 0:z[((Y=a==null?void 0:a.groups)==null?void 0:Y.length)-1])}))==null?void 0:f[0],(u=(c=n==null?void 0:n.compData)==null?void 0:c.find(w=>(w==null?void 0:w.key)==="tableContents"))!=null&&u.contents){n=(y=(m=n==null?void 0:n.compData)==null?void 0:m.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:y.contents;let w=((x=a==null?void 0:a.words)==null?void 0:x[0])??(a==null?void 0:a.prop);return n=n==null?void 0:n.filter(Y=>{var z,$,O,S;return(Y==null?void 0:Y[a!=null&&a.endChildMenu?w:(z=a==null?void 0:a.words)==null?void 0:z[0]])===(a!=null&&a.relatedWords&&(($=a==null?void 0:a.relatedWords)==null?void 0:$.length)>0?(S=(O=a.value)==null?void 0:O.split(" "))==null?void 0:S[0]:a.value)}),n==null?void 0:n[0]}else{let w=(A=(d=n==null?void 0:n.compData)==null?void 0:d.find(z=>(z==null?void 0:z.key)==="formContent"))==null?void 0:A.contents,Y={};return w==null||w.forEach(z=>{Y[z.prop]=z.value}),Y}},ff={key:0,class:"extra-button-content"},hf={class:"table-operator-wrap"},vf={key:0,class:"extra-button-filter"},mf={key:1,class:"extra-header"},yf=["onClick"],gf={class:"table-op-text"},bf={class:"table-op-text"},kf={class:"drop-menu",style:{width:"120px"}},xf=["onClick"],wf={key:0},_f={key:1},Sf=["onClick"],Ef={class:"table-op-text"},Cf={key:1,class:"extra-button-content tabs-button-wrapper"},Df={class:"table-operator-wrap"},Tf={class:"extra-button-filter"},Bf={key:0,class:"extra-header"},Nf={class:"table-op-action"},Af={class:"table-op-text"},zf={class:"drop-menu",style:{width:"120px"}},Mf={key:0},If={key:1},Of=["onClick"],Lf={class:"table-op-text"},Rf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const n=l,r=a,i=()=>{const R=(r==null?void 0:r.menuFilter)||[];return Array.isArray(R)&&(R==null?void 0:R.some(V=>{const ae=typeof V=="string"?V:JSON.stringify(V);return ae==null?void 0:ae.includes("HideGroup=Yes")}))},t=e.ref(""),f=e.ref(!1),c=e.ref(!1),u=e.ref([]),m=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),y=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function x(R,V){return R.map(ae=>{const ee={...ae};return V.forEach(_e=>{delete ee[_e]}),ee})}function d(R){if(!R||R.t!=="n")return(R==null?void 0:R.v)??"";const V=R.v;if(R.z){const ae=String(R.z).toLowerCase(),ee=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const U of ee)if(ae.includes(U))return A(V);const _e=/[ymdhms]/.test(ae),ue=/^[0#\.\,\s]+$/.test(ae.replace(/[\\\/\-:]/g,""));if(_e&&!ue)return A(V)}if(V>=1&&V<=73050){if(V<5e3)return V;if(V>=5e3&&V<4e4){const ae=Math.floor((V-25569)/365.25)+1970;return ae>=1970&&ae<=2e3&&R.z&&/[ymd]/.test(String(R.z).toLowerCase())?A(V):V}if(V>=4e4)return A(V)}return V}function A(R){if(typeof R!="number")return R;try{const V=new Date((R-25569)*86400*1e3);if(isNaN(V.getTime()))return R;const ae=V.getFullYear(),ee=String(V.getMonth()+1).padStart(2,"0"),_e=String(V.getDate()).padStart(2,"0");return`${ae}-${ee}-${_e}`}catch{return R}}const w=R=>{const V=R.raw;if(!V)return;const ae=new FileReader;ae.onload=ee=>{try{const _e=new Uint8Array(ee.target.result),ue=le.readSync(_e,{type:"array"}),U=ue.SheetNames[0],P=ue.Sheets[U],re=le.utils.decode_range(P["!ref"]).e.c+1,he=new Array(re).fill(""),$e=[];for(const ke in P){if(ke[0]==="!")continue;const{r:Ie,c:Ve}=le.utils.decode_cell(ke),Qe=P[ke];let Ea=d(Qe);if((Ea==null||Ea==="")&&(Ea=""),Ie===0)he[Ve]=Ea;else{if(!$e[Ie-1]){$e[Ie-1]={};for(let ie=0;ie<re;ie++)$e[Ie-1][`col_${ie}`]=""}$e[Ie-1][`col_${Ve}`]=Ea}}for(let ke=0;ke<re;ke++)he[ke]===void 0&&(he[ke]="");const se=[];for(let ke=0;ke<he.length;ke++)(!he[ke]||he[ke].toString().trim()==="")&&se.push(ke);let B,oe;(se==null?void 0:se.length)>0?(Ja.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),B=he.filter((ke,Ie)=>!se.includes(Ie)),oe=x($e,se==null?void 0:se.map(ke=>`col_${ke}`))):(B=he,oe=$e);const W=$e==null?void 0:$e[0];if(!(W!=null&&W.hasOwnProperty("col_0")))return Ja.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",B,oe)}catch(_e){throw Ja.ElMessage.error(_e.message),new Error(_e.message)}},ae.readAsArrayBuffer(V)},Y=R=>{var ae;const V=(ae=u.value)==null?void 0:ae.reduce((ee,_e,ue)=>(ue===0?ee[_e.label]=R:ee[_e.label]=_e==null?void 0:_e.value,ee),{});n("filter",V,R,!0)},z=(R,V={})=>{n("buttonClick",R,"",V)},$=R=>{var V,ae;u.value=(ae=(V=le.getColumnChild(M.cloneDeep(R)))==null?void 0:V.filter(ee=>(ee==null?void 0:ee.label)!==""&&(ee==null?void 0:ee.label)!=="操作"))==null?void 0:ae.map(ee=>({label:(ee==null?void 0:ee.label)??"",value:"",name:(ee==null?void 0:ee.prop)??"",isFormColHidden:ee==null?void 0:ee.isTableColHidden,width:3,prop:(ee==null?void 0:ee.prop)??""}))},O=e.ref(!1),S=R=>{var V;if((R==null?void 0:R.buttonName)==="确认"&&(n("filter",R==null?void 0:R.content),O.value=(R==null?void 0:R.content)&&Object.values(R==null?void 0:R.content).length>0),(R==null?void 0:R.buttonName)==="清空"){const ae=M.cloneDeep(R==null?void 0:R.content);for(const ee in ae)ae[ee]="";u.value=(V=u.value)==null?void 0:V.map(ee=>({...ee,value:""})),n("filter",ae),O.value=!1}f.value=!1},k=()=>{f.value=!f.value,c.value=!0},_=()=>{var V,ae;u.value=(V=u.value)==null?void 0:V.map(ee=>({...ee,value:""}));const R=(ae=u.value)==null?void 0:ae.reduce((ee,_e)=>(ee[_e.label]=_e.value,ee),{});n("filter",R)},b=e.ref(null);let C;return C=R=>{var _e;if(!f.value)return;const V=(_e=b==null?void 0:b.value)==null?void 0:_e.$el,ae=V==null?void 0:V.contains(R.target);let ee=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(ue=>{ue.contains(R.target)&&(ee=!0)}),!ae&&!ee&&(f.value=!1)},e.onMounted(()=>{document.addEventListener("click",C),$(r.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)}),e.watch(()=>r.columns,()=>{$(r.columns)},{deep:!0,immediate:!0}),(R,V)=>{var P,X,re,he,$e,se,B,oe;const ae=e.resolveComponent("el-icon"),ee=e.resolveComponent("svg-icon"),_e=e.resolveComponent("el-input"),ue=e.resolveComponent("el-upload"),U=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",ff,[i()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(r==null?void 0:r.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((r==null?void 0:r.level)-1)*12+"px",fontWeight:600-((r==null?void 0:r.level)-1)*100>=400?600-((r==null?void 0:r.level)-1)*100:400,fontSize:17-(r==null?void 0:r.level)>=14?17-(r==null?void 0:r.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",hf,[r!=null&&r.filterShow?(e.openBlock(),e.createElementBlock("div",vf,[e.createVNode(Yu,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:f.value,"onUpdate:isVisible":V[4]||(V[4]=W=>f.value=W)},{reference:e.withCtx(()=>{var W,ke,Ie,Ve;return[e.createVNode(_e,{modelValue:t.value,"onUpdate:modelValue":V[0]||(V[0]=Qe=>t.value=Qe),style:{"min-width":"80px"},placeholder:O.value?(Ie=(ke=(W=a.filterValues)==null?void 0:W.filter(Qe=>Qe))==null?void 0:ke.slice(0,3))==null?void 0:Ie.join("/"):"搜索","prefix-icon":e.unref(Ja.search_default),clearable:"",onInput:Y,disabled:((Ve=u.value)==null?void 0:Ve.length)===0},{suffix:e.withCtx(()=>{var Qe,Ea;return[!t.value&&((Ea=(Qe=a.filterValues)==null?void 0:Qe.filter(ie=>ie))!=null&&Ea.join("/"))?(e.openBlock(),e.createBlock(ae,{key:0,style:{cursor:"pointer"},onClick:_},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(k,["stop"])},[e.createVNode(ee,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:V[1]||(V[1]=e.withModifiers(()=>{},["stop"])),onKeyup:V[2]||(V[2]=e.withModifiers(()=>{},["stop"])),onKeypress:V[3]||(V[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:u.value,buttonValue:m.value,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:S},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((P=a.buttons)==null?void 0:P.length)>0?(e.openBlock(),e.createElementBlock("div",mf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((X=a.buttons)==null?void 0:X.filter(W=>a.isDevMode||(W==null?void 0:W.label)!=="修改模板"),(W,ke)=>{var Ie;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ke},[(W==null?void 0:W.type)==="upload"?(e.openBlock(),e.createBlock(ue,{key:0,class:"upload-button-wrap","on-change":w,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Ve;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Qe=>z(W==null?void 0:W.label)},[e.createVNode(ee,{class:"table-op-icon",name:(Ve=y==null?void 0:y.find(Qe=>(Qe==null?void 0:Qe.label)===(W==null?void 0:W.label)))==null?void 0:Ve.icon},null,8,["name"]),e.createElementVNode("span",gf,e.toDisplayString(W==null?void 0:W.label),1)],10,yf)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(W==null?void 0:W.type)==="popover"?(e.openBlock(),e.createBlock(pl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Ve;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(ee,{class:"table-op-icon",name:(Ve=y==null?void 0:y.find(Qe=>(Qe==null?void 0:Qe.label)===(W==null?void 0:W.label)))==null?void 0:Ve.icon},null,8,["name"]),e.createElementVNode("span",bf,e.toDisplayString(W==null?void 0:W.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",kf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W==null?void 0:W.contents,Ve=>{var Qe,Ea;return e.openBlock(),e.createElementBlock("div",{key:Ve==null?void 0:Ve.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:ie=>!a.lockingPage&&z(Ve==null?void 0:Ve.label)},[e.createTextVNode(e.toDisplayString(Ve==null?void 0:Ve.label),1),(Qe=Ve==null?void 0:Ve.label)!=null&&Qe.includes("选中")?(e.openBlock(),e.createElementBlock("span",wf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ea=Ve==null?void 0:Ve.label)!=null&&Ea.includes("全部")?(e.openBlock(),e.createElementBlock("span",_f,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,xf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(W!=null&&W.type)||(W==null?void 0:W.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Ve=>!a.lockingPage&&z(W==null?void 0:W.label,W)},[e.createVNode(ee,{class:"table-op-icon",name:((Ie=y==null?void 0:y.find(Ve=>(Ve==null?void 0:Ve.label)===(W==null?void 0:W.label)))==null?void 0:Ie.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",Ef,e.toDisplayString(W==null?void 0:W.label),1)],10,Sf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Cf,[e.createElementVNode("div",Df,[e.createElementVNode("div",Tf,[e.createVNode(_e,{modelValue:t.value,"onUpdate:modelValue":V[5]||(V[5]=W=>t.value=W),style:{"min-width":"80px"},placeholder:O.value?($e=(he=(re=a.filterValues)==null?void 0:re.filter(W=>W))==null?void 0:he.slice(0,3))==null?void 0:$e.join("/"):"搜索","prefix-icon":e.unref(Ja.search_default),clearable:"",onInput:Y,disabled:((se=u.value)==null?void 0:se.length)===0},{suffix:e.withCtx(()=>{var W,ke;return[!t.value&&((ke=(W=a.filterValues)==null?void 0:W.filter(Ie=>Ie))!=null&&ke.join("/"))?(e.openBlock(),e.createBlock(ae,{key:0,style:{cursor:"pointer"},onClick:_},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(k,["stop"])},[e.createVNode(ee,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((B=a.buttons)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",Bf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((oe=a.buttons)==null?void 0:oe.filter(W=>a.isDevMode||(W==null?void 0:W.label)!=="修改模板"),(W,ke)=>{var Ie;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ke},[(W==null?void 0:W.type)==="upload"?(e.openBlock(),e.createBlock(ue,{key:0,class:"upload-button-wrap","on-change":w,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Ve;return[e.createElementVNode("div",Nf,[e.createVNode(ee,{class:"table-op-icon",name:(Ve=y==null?void 0:y.find(Qe=>(Qe==null?void 0:Qe.label)===(W==null?void 0:W.label)))==null?void 0:Ve.icon},null,8,["name"]),e.createElementVNode("span",Af,e.toDisplayString(W==null?void 0:W.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(W==null?void 0:W.type)==="popover"?(e.openBlock(),e.createBlock(pl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(W==null?void 0:W.type)==="popover"?(e.openBlock(),e.createBlock(U,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Ve;return[e.createVNode(ee,{class:"table-op-icon",name:(Ve=y==null?void 0:y.find(Qe=>(Qe==null?void 0:Qe.label)===(W==null?void 0:W.label)))==null?void 0:Ve.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(W==null?void 0:W.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",zf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W==null?void 0:W.contents,Ve=>(e.openBlock(),e.createBlock(U,{key:Ve==null?void 0:Ve.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Qe=>z(Ve==null?void 0:Ve.label)},{default:e.withCtx(()=>{var Qe,Ea;return[e.createTextVNode(e.toDisplayString(Ve==null?void 0:Ve.label),1),(Qe=Ve==null?void 0:Ve.label)!=null&&Qe.includes("选中")?(e.openBlock(),e.createElementBlock("span",Mf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ea=Ve==null?void 0:Ve.label)!=null&&Ea.includes("全部")?(e.openBlock(),e.createElementBlock("span",If,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(W!=null&&W.type)||(W==null?void 0:W.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Ve=>!a.lockingPage&&z(W==null?void 0:W.label,W)},[e.createVNode(ee,{class:"table-op-icon",name:(Ie=y==null?void 0:y.find(Ve=>(Ve==null?void 0:Ve.label)===(W==null?void 0:W.label)))==null?void 0:Ie.icon},null,8,["name"]),e.createElementVNode("span",Lf,e.toDisplayString(W==null?void 0:W.label),1)],10,Of)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},$f=nr._export_sfc(Rf,[["__scopeId","data-v-c54c7b35"]]),Vf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,n)=>{const r=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(i,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,t=>{var f;return e.openBlock(),e.createBlock(r,{key:t==null?void 0:t.prop,label:t==null?void 0:t.label,prop:t==null?void 0:t.prop,fixed:(t==null?void 0:t.prop)==="operate"?"right":t==null?void 0:t.fixed,align:(t==null?void 0:t.align)??"left","show-overflow-tooltip":(t==null?void 0:t.showOverflowTooltip)??!0,width:t==null?void 0:t.width,"min-width":(t==null?void 0:t.minWidth)||((t==null?void 0:t.prop)==="operate"?80:(((f=t==null?void 0:t.label)==null?void 0:f.length)*2||4)*27)},{default:e.withCtx(c=>[e.renderSlot(l.$slots,"content",{row:c.row,column:c.column,$index:c.$index,scope:c}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,(u,m)=>(e.openBlock(),e.createBlock(pl._sfc_main$2,{key:m,column:u,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(y,x)=>({name:x,fn:e.withCtx(({row:d,slotData:A,item:w,column:Y})=>[e.renderSlot(l.$slots,x,e.mergeProps({ref_for:!0},A??d,{item:w??u,slotData:A??d,row:d,column:Y,columnProp:u}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class Ff extends Fl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,n,r,i){const t=this,f=new Fl.FileLoader(t.manager);f.setPath(t.path),f.setResponseType("arraybuffer"),f.setRequestHeader(t.requestHeader),f.setWithCredentials(t.withCredentials),f.load(l,function(c){try{n(t.parse(c))}catch(u){i?i(u):console.error(u),t.manager.itemError(l)}},r,i)}_getDataView(l,n,r,i){switch(r){case"F":return i===8?l.getFloat64(n,this.littleEndian):l.getFloat32(n,this.littleEndian);case"I":return i===1?l.getInt8(n):i===2?l.getInt16(n,this.littleEndian):l.getInt32(n,this.littleEndian);case"U":return i===1?l.getUint8(n):i===2?l.getUint16(n,this.littleEndian):l.getUint32(n,this.littleEndian)}}parse(l){function n(A,w){const Y=A.length,z=new Uint8Array(w);let $=0,O=0,S,k,_;do if(S=A[$++],S<32){if(S++,O+S>w)throw new Error("Output buffer is not large enough");if($+S>Y)throw new Error("Invalid compressed data");do z[O++]=A[$++];while(--S)}else{if(k=S>>5,_=O-((S&31)<<8)-1,$>=Y)throw new Error("Invalid compressed data");if(k===7&&(k+=A[$++],$>=Y))throw new Error("Invalid compressed data");if(_-=A[$++],O+k+2>w)throw new Error("Output buffer is not large enough");if(_<0)throw new Error("Invalid compressed data");if(_>=O)throw new Error("Invalid compressed data");do z[O++]=z[_++];while(--k+2)}while($<Y);return z}function r(A){const w={},Y=new Uint8Array(A);let z="",$="",O=0,S=!1;const k=Y.length;for(;O<k&&S===!1;){const R=String.fromCharCode(Y[O++]);R===`
|
|
2
|
-
`||R==="\r"?($.trim().toLowerCase().startsWith("data")&&(S=!0),$=""):$+=R,z+=R}const _=z.search(/[\r\n]DATA\s(\S*)\s/i),b=/[\r\n]DATA\s(\S*)\s/i.exec(z.slice(_-1));if(w.data=b[1],w.headerLen=b[0].length+_,w.str=z.slice(0,w.headerLen),w.str=w.str.replace(/#.*/gi,""),w.version=/^VERSION (.*)/im.exec(w.str),w.fields=/^FIELDS (.*)/im.exec(w.str),w.size=/^SIZE (.*)/im.exec(w.str),w.type=/^TYPE (.*)/im.exec(w.str),w.count=/^COUNT (.*)/im.exec(w.str),w.width=/^WIDTH (.*)/im.exec(w.str),w.height=/^HEIGHT (.*)/im.exec(w.str),w.viewpoint=/^VIEWPOINT (.*)/im.exec(w.str),w.points=/^POINTS (.*)/im.exec(w.str),w.version!==null&&(w.version=parseFloat(w.version[1])),w.fields=w.fields!==null?w.fields[1].split(" "):[],w.type!==null&&(w.type=w.type[1].split(" ")),w.width!==null&&(w.width=parseInt(w.width[1])),w.height!==null&&(w.height=parseInt(w.height[1])),w.viewpoint!==null&&(w.viewpoint=w.viewpoint[1]),w.points!==null&&(w.points=parseInt(w.points[1],10)),w.points===null&&(w.points=w.width*w.height),w.size!==null&&(w.size=w.size[1].split(" ").map(function(R){return parseInt(R,10)})),w.count!==null)w.count=w.count[1].split(" ").map(function(R){return parseInt(R,10)});else{w.count=[];for(let R=0,V=w.fields.length;R<V;R++)w.count.push(1)}w.offset={};let C=0;for(let R=0,V=w.fields.length;R<V;R++)w.data==="ascii"?w.offset[w.fields[R]]=R:(w.offset[w.fields[R]]=C,C+=w.size[R]*w.count[R]);return w.rowSize=C,w}const i=r(l),t=[],f=[],c=[],u=[],m=[],y=new Fl.Color;if(i.data==="ascii"){const A=i.offset,z=new TextDecoder().decode(l).slice(i.headerLen).split(`
|
|
3
|
-
`);for(let $=0,O=z.length;$<O;$++){if(z[$]==="")continue;const S=z[$].split(" ");if(A.x!==void 0&&(t.push(parseFloat(S[A.x])),t.push(parseFloat(S[A.y])),t.push(parseFloat(S[A.z]))),A.rgb!==void 0){const k=i.fields.findIndex(ee=>ee==="rgb"),_=i.type[k],b=parseFloat(S[A.rgb]);let C=b;if(_==="F"){const ee=new Float32Array(1);ee[0]=b,C=new Int32Array(ee.buffer)[0]}const R=(C>>16&255)/255,V=(C>>8&255)/255,ae=(C>>0&255)/255;y.setRGB(R,V,ae,Fl.SRGBColorSpace),c.push(y.r,y.g,y.b)}A.normal_x!==void 0&&(f.push(parseFloat(S[A.normal_x])),f.push(parseFloat(S[A.normal_y])),f.push(parseFloat(S[A.normal_z]))),A.intensity!==void 0&&u.push(parseFloat(S[A.intensity])),A.label!==void 0&&m.push(parseInt(S[A.label]))}}if(i.data==="binary_compressed"){const A=new Uint32Array(l.slice(i.headerLen,i.headerLen+8)),w=A[0],Y=A[1],z=n(new Uint8Array(l,i.headerLen+8,w),Y),$=new DataView(z.buffer),O=i.offset;for(let S=0;S<i.points;S++){if(O.x!==void 0){const k=i.fields.indexOf("x"),_=i.fields.indexOf("y"),b=i.fields.indexOf("z");t.push(this._getDataView($,i.points*O.x+i.size[k]*S,i.type[k],i.size[k])),t.push(this._getDataView($,i.points*O.y+i.size[_]*S,i.type[_],i.size[_])),t.push(this._getDataView($,i.points*O.z+i.size[b]*S,i.type[b],i.size[b]))}if(O.rgb!==void 0){const k=i.fields.indexOf("rgb"),_=$.getUint8(i.points*O.rgb+i.size[k]*S+2)/255,b=$.getUint8(i.points*O.rgb+i.size[k]*S+1)/255,C=$.getUint8(i.points*O.rgb+i.size[k]*S+0)/255;y.setRGB(_,b,C,Fl.SRGBColorSpace),c.push(y.r,y.g,y.b)}if(O.normal_x!==void 0){const k=i.fields.indexOf("normal_x"),_=i.fields.indexOf("normal_y"),b=i.fields.indexOf("normal_z");f.push(this._getDataView($,i.points*O.normal_x+i.size[k]*S,i.type[k],i.size[k])),f.push(this._getDataView($,i.points*O.normal_y+i.size[_]*S,i.type[_],i.size[_])),f.push(this._getDataView($,i.points*O.normal_z+i.size[b]*S,i.type[b],i.size[b]))}if(O.intensity!==void 0){const k=i.fields.indexOf("intensity");u.push(this._getDataView($,i.points*O.intensity+i.size[k]*S,i.type[k],i.size[k]))}if(O.label!==void 0){const k=i.fields.indexOf("label");m.push($.getInt32(i.points*O.label+i.size[k]*S,this.littleEndian))}}}if(i.data==="binary"){const A=new DataView(l,i.headerLen),w=i.offset;for(let Y=0,z=0;Y<i.points;Y++,z+=i.rowSize){if(w.x!==void 0){const $=i.fields.indexOf("x"),O=i.fields.indexOf("y"),S=i.fields.indexOf("z");t.push(this._getDataView(A,z+w.x,i.type[$],i.size[$])),t.push(this._getDataView(A,z+w.y,i.type[O],i.size[O])),t.push(this._getDataView(A,z+w.z,i.type[S],i.size[S]))}if(w.rgb!==void 0){const $=A.getUint8(z+w.rgb+2)/255,O=A.getUint8(z+w.rgb+1)/255,S=A.getUint8(z+w.rgb+0)/255;y.setRGB($,O,S,Fl.SRGBColorSpace),c.push(y.r,y.g,y.b)}if(w.normal_x!==void 0){const $=i.fields.indexOf("normal_x"),O=i.fields.indexOf("normal_y"),S=i.fields.indexOf("normal_z");f.push(this._getDataView(A,z+w.normal_x,i.type[$],i.size[$])),f.push(this._getDataView(A,z+w.normal_y,i.type[O],i.size[O])),f.push(this._getDataView(A,z+w.normal_z,i.type[S],i.size[S]))}if(w.intensity!==void 0){const $=i.fields.indexOf("intensity");u.push(this._getDataView(A,z+w.intensity,i.type[$],i.size[$]))}w.label!==void 0&&m.push(A.getInt32(z+w.label,this.littleEndian))}}const x=new Fl.BufferGeometry;t.length>0&&x.setAttribute("position",new Fl.Float32BufferAttribute(t,3)),f.length>0&&x.setAttribute("normal",new Fl.Float32BufferAttribute(f,3)),c.length>0&&x.setAttribute("color",new Fl.Float32BufferAttribute(c,3)),u.length>0&&x.setAttribute("intensity",new Fl.Float32BufferAttribute(u,1)),m.length>0&&x.setAttribute("label",new Fl.Int32BufferAttribute(m,1)),x.computeBoundingSphere();const d=new Fl.PointsMaterial({size:.005});return c.length>0&&(d.vertexColors=!0),new Fl.Points(x,d)}}const Pf=M.useModelComp(M.pinia),{systemPath:ks}=M.storeToRefs(Pf),yo=e.ref(),xs=new WeakMap;function jf(a,l,n,r,i){const t=async d=>{try{const A=await M.platformDownloadFile({url:d});if(A.status!==200)throw new Error(`下载失败: ${A.status}`);return A.data}catch(A){throw console.error("addModelFromUrl失败:",A),A}},f=d=>new Promise((A,w)=>{const Y=new FileReader;Y.onload=z=>{try{const $=z.target.result,S=new Hn.MTLLoader().parse($);S.preload(),A(S)}catch($){w($)}},Y.onerror=()=>{w(new Error("MTL文件读取失败"))},Y.readAsText(d)}),c=async d=>{const A={materials:{},create:function(w){return this.materials[w]?this.materials[w]:(console.warn(`Material '${w}' not found, using default material`),new Fl.MeshPhongMaterial({color:8947848,side:Fl.DoubleSide}))},getAsArray:function(){const w=[];for(const Y in this.materials)w.push(this.materials[Y]);return w},preload:function(){for(const w in this.materials)this.materials[w].map&&(this.materials[w].map.needsUpdate=!0)}};for(const w of d){const Y=await f(w);Object.assign(A.materials,Y.materials)}return A.preload(),A},u=async(d,A=[])=>new Promise((w,Y)=>{const z=new FileReader;z.onload=async $=>{try{const O=$.target.result;let S=null;A&&A.length>0&&(A.length===1?S=await f(A[0]):S=await c(A));const k=new Hn.OBJLoader;S&&k.setMaterials(S);const _=k.parse(O);S||_.traverse(b=>{b.isMesh&&(b.material=new Fl.MeshPhongMaterial({color:8947848,side:Fl.DoubleSide}))}),w(_)}catch(O){Y(O)}},z.onerror=()=>{Y(new Error("OBJ文件读取失败"))},z.readAsText(d)}),m=async d=>{var A;try{n.value=!0;const{scene:w}=a();if(!w)throw new Error("Scene not initialized");i();const Y=[];for(let z=0;z<d.length;z++){const $=d[z];r.value=`正在加载模型 ${z+1}/${d.length}...`;const O=await t($.objUrl),S=((A=$.objUrl)==null?void 0:A.split("/").pop())||`model_${z}.obj`,k=new File([O],S,{type:O.type});let _=[];if($.mtlUrls){const C=Array.isArray($.mtlUrls)?$.mtlUrls:[$.mtlUrls];for(let R=0;R<C.length;R++){const V=C[R],ae=await t(V),ee=(V==null?void 0:V.split("/").pop())||`material_${z}_${R}.mtl`,_e=new File([ae],ee,{type:ae.type});_.push(_e)}}const b=await u(k,_);w.add(b),l.value.push(b),Y.push(b)}return n.value=!1,Y}catch(w){throw console.error("加载模型失败:",w),n.value=!1,w}},y=async(d,A,w=[],Y=[])=>{let z;const $=d.toLowerCase();switch($){case".txt":case".cpt":case".obj":const O=await A.text();if($===".txt"||$===".cpt"){const ie=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,ce=[...O.matchAll(ie)].map(de=>({x:parseFloat(de[1]),y:parseFloat(de[2]),z:parseFloat(de[3])})),ea=new Fl.BufferGeometry,Me=ce.flatMap(de=>[de.x,de.y,de.z]);if(ea.setAttribute("position",new Fl.Float32BufferAttribute(Me,3)),$===".txt"){const de=new Fl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});z=new Fl.Points(ea,de)}else if($===".cpt"){const de=new Fl.LineBasicMaterial({color:"#5B5C99",linewidth:100});z=new Fl.Line(ea,de)}}else if($===".obj"){const ie=new Hn.OBJLoader;if(w&&w.length>0){const ua=new Hn.MTLLoader;for(const ce of w){const ea=await ce.text(),Me=ua.parse(ea);Me.preload(),ie.setMaterials(Me);break}}z=ie.parse(O),(!w||w.length===0)&&z.traverse(ua=>{ua.isMesh&&(ua.material=new Fl.MeshPhongMaterial({color:"#B3B3D4"})),ua instanceof Fl.Mesh&&(ua.material.side=Fl.DoubleSide)})}break;case".stl":const S=await A.arrayBuffer(),_=new Hn.STLLoader().parse(S),b=new Fl.MeshPhongMaterial({color:"#B3B3D4",side:Fl.DoubleSide});z=new Fl.Mesh(_,b);break;case".nc":const C=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],R={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},V=new Fl.Group,ae=C.map(ie=>new Promise((ua,ce)=>{new Hn.STLLoader().load(ks.value===""?`/model/${ie}`:`${ks.value}\\${ie}`,Me=>{const de=new Fl.MeshPhongMaterial({color:R[ie]||"#B3B3D4",side:Fl.DoubleSide}),fe=new Fl.Mesh(Me,de);ua(fe)},void 0,ce)}));try{(await Promise.all(ae)).forEach(ua=>V.add(ua)),z=V}catch(ie){throw console.error("加载NC文件对应的STL文件失败:",ie),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const ee=new Ff,_e=new Fl.Group;try{const ie=await Ja.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ua=new Blob([ie.data],{type:"application/octet-stream;charset=UTF-8"}),ce=await Ja.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ea=new Blob([ce.data],{type:"application/octet-stream;charset=UTF-8"}),Me=await new Promise((fe,Ke)=>{const ka=URL.createObjectURL(ua);ee.load(ka,Ba=>{const q=new Float32Array(Ba.geometry.attributes.position.count*3);for(let F=0;F<Ba.geometry.attributes.position.count;F++)q[F*3]=1,q[F*3+1]=0,q[F*3+2]=0;Ba.geometry.setAttribute("color",new Fl.BufferAttribute(q,3)),Ba.material.vertexColors=!0,Ba.scale.set(.3,.3,.3),URL.revokeObjectURL(ka),fe(Ba)},void 0,Ke)}),de=await new Promise((fe,Ke)=>{const ka=URL.createObjectURL(ea);ee.load(ka,Ba=>{const q=new Float32Array(Ba.geometry.attributes.position.count*3);for(let F=0;F<Ba.geometry.attributes.position.count;F++)q[F*3]=0,q[F*3+1]=1,q[F*3+2]=0;Ba.geometry.setAttribute("color",new Fl.BufferAttribute(q,3)),Ba.material.vertexColors=!0,Ba.scale.set(.3,.3,.3),URL.revokeObjectURL(ka),fe(Ba)},void 0,Ke)});_e.add(Me),_e.add(de),z=_e}catch(ie){throw console.error("PCD文件加载失败:",ie),new Error("无法加载PCD文件")}break;case".urdf":const ue=URL.createObjectURL(A),U=new qu.URDFLoader,P="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},re=new WeakMap,he=new WeakMap,$e=new WeakMap,se=async ie=>{if(re.has(ie))return console.log(`从缓存加载: ${ie}`),re.get(ie);try{const ua=await Ja.axios.get(`${P}/${ie}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),ce=new Blob([ua.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&re.set(ie,ce),ce}catch(ua){throw console.error(`加载文件失败: ${ie}`,ua),new Error(`无法加载文件: ${ie}`)}},B=(ie="default")=>{if(he.has(ie))return he.get(ie);const ua=new Fl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Fl.FrontSide});return he.set(ie,ua),ua},oe=ie=>{try{ie.isBufferGeometry&&ie.mergeVertices&&ie.mergeVertices(),ie.computeVertexNormals&&ie.computeVertexNormals(),ie.computeBoundingSphere&&ie.computeBoundingSphere(),ie.deleteAttribute&&ie.deleteAttribute("uv2")}catch(ua){console.warn("几何体优化失败,使用原始几何体:",ua)}return ie},W=async(ie,ua,ce)=>{const ea=`stl_${ua}`;if($e.has(ea)){const Ke=$e.get(ea);return new Fl.Mesh(Ke,B())}const Me=await ie.arrayBuffer();let fe=new Hn.STLLoader(ce).parse(Me);return fe=oe(fe),$e.set(ea,fe),new Fl.Mesh(fe,B())},ke=async(ie,ua,ce)=>{const ea=`obj_${ua}`;if(re.has(ea))return re.get(ea).clone();const Me=await ie.text(),de=new Hn.OBJLoader(ce),fe=ua.replace(".obj",".mtl");try{const Ba=await(await se(fe)).text(),F=new Hn.MTLLoader(ce).parse(Ba);F.preload(),de.setMaterials(F)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${fe}`)}const Ke=de.parse(Me);return Ke.traverse(ka=>{ka.isMesh&&(ka.geometry=oe(ka.geometry),ka.castShadow=!0,ka.receiveShadow=!0,ka.renderOrder=1)}),re.set(ea,Ke),Ke},Ie=(ie,ua)=>{const ce=new Fl.LOD;if(ce.addLevel(ie,0),ie.geometry){const ea=ie.geometry.clone(),Me=new Fl.Mesh(ea,ie.material);ce.addLevel(Me,50)}return ce};let Ve=0,Qe=0;const Ea=[];U.loadMeshCb=async(ie,ua,ce,ea,Me)=>{const de=ie.split("/").pop(),fe=ce||(()=>{});Ve++;const Ke=new Promise(async(ka,Ba)=>{try{const q=await se(de);if(!q||q.size===0)throw new Error(`文件为空: ${de}`);const F=de.split(".").pop().toLowerCase();let Q;switch(F){case"stl":Q=await W(q,de,ua);break;case"obj":Q=await ke(q,de,ua);break;default:throw new Error(`不支持的文件格式: ${F}`)}X.enableLOD&&Q.isMesh&&(Q=Ie(Q,de)),fe(Q),Qe++,ea&&ea({loaded:Qe,total:Ve,progress:Qe/Ve}),ka(Q)}catch(q){console.error(`mesh文件加载失败: ${de}`,q);const F=new Fl.Group;fe(F),ka(F);const Q=new Fl.BoxGeometry(.1,.1,.1),pe=new Fl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Fl.Mesh(Q,pe)}});Ea.push(Ke)};try{if(!ue){yo.value=void 0;break}if(z=await U.loadAsync(ue),console.log(`URDF文件加载完成,等待${Ve}个mesh文件加载...`),Ea.length>0)try{await Promise.allSettled(Ea),console.log(`所有mesh文件处理完成,成功加载: ${Qe}/${Ve}`)}catch(ce){console.warn("部分mesh文件加载失败,但继续显示模型",ce)}z.traverse(ce=>{ce.isMesh&&(ce.castShadow=!0,ce.receiveShadow=!0,ce.renderOrder=1,ce.material&&(ce.material.needsUpdate=!0))}),console.time("计算包围盒");const ie=new Fl.Box3;ie.expandByObject(z);const ua=`urdf_${Date.now()}`;z.userData.boundingBox=ie.clone(),z.userData.modelId=ua,xs.set(ua,{box:ie.clone(),center:ie.getCenter(new Fl.Vector3),size:ie.getSize(new Fl.Vector3),maxSize:Math.max(...ie.getSize(new Fl.Vector3).toArray())}),yo.value=z,console.log("URDF模型加载完成并优化")}catch(ie){console.error("URDF加载失败:",ie),yo.value=void 0}finally{ue&&URL.revokeObjectURL(ue)}break;default:throw new Error(`不支持的文件格式: ${d}`)}return z};return{addModelsFromUrls:m,loadModelByDefaultPath:async d=>{console.log(d);try{n.value=!0,r.value="正在加载模型...";const{scene:A}=a();if(!A)throw new Error("Scene not initialized");i(),await new Promise(Y=>setTimeout(Y,100));const w=[];for(let Y=0;Y<d.length;Y++){const z=d[Y],$=await y(z.suffix,z.blob,z.mtlBlobs||[],z.meshFiles||[]);$&&(A.add($),l.value.push($),w.push($))}return n.value=!1,r.value="",w}catch(A){throw console.error("加载模型失败:",A),n.value=!1,r.value="",A}},urdfModel:yo,modelBoundingBoxes:xs}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(a=>{var l=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,i,t,f,c,u=function(x,d){d.parentNode.insertBefore(x,d)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(x){console&&console.log(x)}}r=function(){var x,d=document.createElement("div");d.innerHTML=a._iconfont_svg_string_4827314,(d=d.getElementsByTagName("svg")[0])&&(d.setAttribute("aria-hidden","true"),d.style.position="absolute",d.style.width=0,d.style.height=0,d.style.overflow="hidden",d=d,(x=document.body).firstChild?u(d,x.firstChild):x.appendChild(d))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),r()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(t=r,f=a.document,c=!1,y(),f.onreadystatechange=function(){f.readyState=="complete"&&(f.onreadystatechange=null,m())})}function m(){c||(c=!0,t())}function y(){try{f.documentElement.doScroll("left")}catch{return void setTimeout(y,50)}m()}})(window);const Hf=["onClick"],Uf=e.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0},backgroundUrl:{default:""}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(null),t=e.ref(null),f=e.computed(()=>{const k=Number(n==null?void 0:n.textSize),_=le.rgbaToColor(n==null?void 0:n.textColor),b={},C={};return!Number.isNaN(k)&&k&&(b.fontSize=`${k}px`,C.fontSize=`${k}px`),_&&(b.color=_,C.color=_),{label:b,value:C}}),c=e.ref(""),u=e.ref(""),m=e.ref(!1),y=async k=>{if(k){u.value&&(URL.revokeObjectURL(u.value),u.value="");try{const _=await M.platformDownloadFile({url:k}),b=new Blob([_==null?void 0:_.data],{type:(_==null?void 0:_.headers["content-type"])||"image/*"});u.value=URL.createObjectURL(b)}catch{u.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,k=>{k&&(c.value=k)},{immediate:!0}),e.watch(c,k=>{y(k)},{immediate:!0});const x=()=>{var k;(k=t.value)==null||k.click()},d=async k=>{var C,R,V;const _=k.target,b=(C=_==null?void 0:_.files)==null?void 0:C[0];if(!b){_.value="";return}m.value=!0;try{const ae=new FormData;ae.append("file",b);const ee=await M.platformUploadFile(ae),_e=(V=(R=ee==null?void 0:ee.data)==null?void 0:R.result)==null?void 0:V.url;_e?(c.value=_e,r("update:backGroundImage",_e),y(_e),Ja.ElMessage.success("背景图片上传成功")):Ja.ElMessage.error("背景图片上传失败")}catch{Ja.ElMessage.error("背景图片上传失败")}finally{m.value=!1,_.value=""}},A=e.computed(()=>{var k;return u.value||(n==null?void 0:n.backgroundUrl)!==""?{backgroundImage:`url("${(k=n==null?void 0:n.backgroundUrl)==null?void 0:k.replace(/\\/g,"/")}")`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}}),w=k=>pl.getComponent(k),Y=k=>{if(!k)return;const _=k.querySelector("input, textarea, .el-input__inner");_&&typeof _.focus=="function"&&_.focus()},z=(k,_,b)=>{n.disabled||k.field&&(i.value=_,e.nextTick(()=>{Y(b.currentTarget)}))},$=()=>{i.value=null},O=k=>{var b;const _=((b=k==null?void 0:k.field)==null?void 0:b.value)??(k==null?void 0:k.value);return _==null||_===""?"-":_},S=k=>{const _=k!=null&&k.width&&k.width>0?k.width:1,C=`calc((100% - ${(_-1)*16}px) / ${_})`;return{flex:`0 0 ${C}`,maxWidth:C,minWidth:"140px",boxSizing:"border-box"}};return(k,_)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(A.value),onClick:_[2]||(_[2]=b=>(n==null?void 0:n.backGround)&&x())},[n!=null&&n.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:_[0]||(_[0]=e.withModifiers(b=>x(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:t,type:"file",accept:"image/*",style:{display:"none"},onChange:d},null,544),_[3]||(_[3]=e.createElementVNode("img",{src:pl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.items,(b,C)=>{var R,V,ae,ee,_e,ue,U,P;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:C,style:e.normalizeStyle(S(b)),onClick:_[1]||(_[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(f.value.label)},e.toDisplayString(b==null?void 0:b.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(f.value.value),onClick:X=>{var re;return(re=b.field)!=null&&re.isNoClick?null:z(b,C,X)}},[i.value===C&&b.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(((R=b.field)==null?void 0:R.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":X=>b.field.value=X,isEdit:!0,disabled:(V=b.field)==null?void 0:V.disabled,content:((ae=b.field)==null?void 0:ae.contents)??[],optionUrl:b.field,originalValue:(ee=b.field)==null?void 0:ee.value,config:(_e=b.field)==null?void 0:_e.config,configModel:((ue=b.field)==null?void 0:ue.prop)??((U=b.field)==null?void 0:U.name),selectedTagList:((P=b.field)==null?void 0:P.selectValue)??[],onBlur:$,onBlurChange:$},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(O(b)),1)],64))],12,Hf)],4)}),128))],4))}}),qf=nr._export_sfc(Uf,[["__scopeId","data-v-af63fc22"]]),bc=M.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),Wf={class:"calculator-content"},Kf={class:"calculator-child"},Gf={class:"calculator-child"},Yf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),n=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(r,i)=>(e.openBlock(),e.createElementBlock("div",Wf,[e.createElementVNode("div",Kf,[e.createVNode(pl.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Gf,[e.createVNode(pl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Jf=nr._export_sfc(Yf,[["__scopeId","data-v-73db0fe7"]]),Et=(a,l)=>{let n=a,r=l;return Array.isArray(n)&&(n=n==null?void 0:n.map((i,t)=>{if(Array.isArray(i)){let f={};return i=i==null?void 0:i.forEach((c,u)=>{var m;(m=r==null?void 0:r[u])!=null&&m.prop?f[r[u].prop]=c:Array.isArray(c)&&(f.children=Et(c,r))}),Object.assign(f,{id:t})}else return i})),n},kc=(a,l,n)=>{let r=a,i=l;return r=r==null?void 0:r.map((t,f)=>{var c,u;return!Array.isArray(t)||!((c=i==null?void 0:i[f])!=null&&c.label)&&!n||(t.unshift(((u=i==null?void 0:i[f])==null?void 0:u.label)??""),t.some(m=>Array.isArray(m))&&(t=t==null?void 0:t.map(m=>{var y;return Array.isArray(m)&&(m=kc(m,(y=i==null?void 0:i[f])==null?void 0:y.children,n)),m}))),t}),r},Xf=(a,l,n)=>{if(l==="")return a==null?void 0:a.filter(r=>(r==null?void 0:r.id)!==n);{const r=l.split("-");return Zf(a,r,n)}},Zf=(a,l,n)=>{let r=a,i=l;return(i==null?void 0:i.length)===0?r=r==null?void 0:r.filter(t=>t.id!==n):r=r==null?void 0:r.map(t=>(t.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),t=xc(t,i,n)),t)),r},xc=(a,l,n)=>{var t,f;let r=a,i=l;return(i==null?void 0:i.length)===0?r.children=(t=r.children)==null?void 0:t.filter(c=>c.id!==n):r.children=(f=r.children)==null?void 0:f.map(c=>(c.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),c=xc(c,i,n)),c)),r},Qf=(a,l,n)=>{if(l==="")return n;{const r=l.split("-");return e0(a,r,n)}},e0=(a,l,n)=>{let r=a,i=l;return(i==null?void 0:i.length)===0?r=n:r=r==null?void 0:r.map(t=>(t.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),t=wc(t,i,n)),t)),r},wc=(a,l,n)=>{var t;let r=a,i=l;return(i==null?void 0:i.length)===0?r.children=n:r.children=(t=r.children)==null?void 0:t.map(f=>(f.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),f=wc(f,i,n)),f)),r};class a0{constructor(l={}){un(this,"url");un(this,"heartbeatInterval");un(this,"socket",null);un(this,"isConnected",!1);un(this,"heartTimer",null);un(this,"canvas",null);un(this,"ctx",null);un(this,"mainCamCutMode",0);un(this,"pMainShowStartX",0);un(this,"pMainShowStartY",0);un(this,"onLog");un(this,"onDevCount");un(this,"onResolution");un(this,"onCameraStatus");un(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,n,r){var f;(f=this.canvas)!=null&&f.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const i=document.createElement("canvas");i.style.border="solid 1px #A0A0A0",i.id="MainCamCanvas",i.width=n,i.height=r;const t=i.getContext("2d");if(!t)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(i),this.canvas=i,this.ctx=t}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,n)=>{const r=new WebSocket(this.url);r.binaryType="arraybuffer",r.onopen=()=>{this.socket=r,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},r.onerror=i=>{this.isConnected=!1,this.log("socket.onerror"),n(i)},r.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},r.onmessage=i=>{this.handleMessage(i)}})}destroy(){var l;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const n=l.find(i=>i.width===2592&&i.height===1944);return n||[...l].sort((i,t)=>t.width*t.height-i.width*i.height)[0]||null}openCamera(l=0,n=1280,r=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const i=new Uint8Array(12);i[0]=119,i[1]=136,i[2]=1,i[3]=l,i[4]=this.canvas.width>>8&255,i[5]=this.canvas.width&255,i[6]=this.canvas.height>>8&255,i[7]=this.canvas.height&255,i[8]=n>>8&255,i[9]=n&255,i[10]=r>>8&255,i[11]=r&255,this.sendBytes(i)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const i=new Uint8Array(12);i[0]=119,i[1]=136,i[2]=16,i[3]=0,i[4]=0,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i[9]=0,i[10]=0,i[11]=0,this.sendBytes(i)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(l){var n;(n=this.onLog)==null||n.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var i,t,f,c,u,m;const n=new Uint8Array(l.data);if(n.length<=0)return;if(n[0]===17&&n[1]===17&&n[2]===17){this.log("heart socket!!!!");return}if(n[0]!==85||n[1]!==102)return;const r=n[2];if(r===80){const y=n[3],x=n.length-4,d=new Uint8Array(x);for(let Y=0;Y<x;Y++)d[Y]=n[4+Y];const w=decodeURIComponent(this.byteToString(d)).split("|");(i=this.onDevCount)==null||i.call(this,y,w);return}if(r===81){const y=n[3]||0,x=[];for(let d=0;d<y;d++){const A=(n[4+d*4+0]||0)*256+(n[4+d*4+1]||0),w=(n[4+d*4+2]||0)*256+(n[4+d*4+3]||0);x.push({width:A,height:w,text:`${A}*${w}`})}(t=this.onResolution)==null||t.call(this,y,x);return}if(r===1){n[3]===1&&((f=this.onCameraStatus)==null||f.call(this,"opened")),n[3]===3&&((c=this.onCameraStatus)==null||c.call(this,"closed"));return}if(r===16){if(n[3]===1){const x=n[4]*256+n[5],d=n[6]*65536+n[7]*256+n[8];let A="";if(x>0){const z=new Uint8Array(x);for(let $=0;$<x;$++)z[$]=n[9+$];A=decodeURIComponent(this.byteToString(z))}const w=new Uint8Array(d);for(let z=0;z<d;z++)w[z]=n[9+x+z];const Y=this.uint8ArrayToString(w);(u=this.onPhoto)==null||u.call(this,{flag:0,imgPath:A,base64:Y})}n[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(r===204){if(!this.canvas||!this.ctx)return;const y=n[3]*256+n[4],x=n[5]*256+n[6];this.pMainShowStartX=n[7]*256+n[8],this.pMainShowStartY=n[9]*256+n[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const d=this.ctx.createImageData(y,x);let A=11;for(let w=0;w<d.data.length;w+=4)d.data[w+0]=n[A],d.data[w+1]=n[A+1],d.data[w+2]=n[A+2],d.data[w+3]=255,A+=3;this.ctx.putImageData(d,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}byteToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}}const l0={style:{display:"flex",gap:"16px",height:"100%"}},r0={key:0,style:{color:"var(--el-text-color-secondary)"}},n0={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},i0={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},o0={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"auto",padding:"8px"}},t0={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},s0={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},c0=["src","onClick"],u0=["onClick"],d0={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},p0={class:"dialog-footer"},f0=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(null),t=e.ref(!1),f=e.ref([]),c=e.ref(""),u=e.ref(!1),m=e.ref([]),y=new a0({url:"ws://127.0.0.1:22225"});function x(V,ae){var X;const ee=V.split(","),_e=((X=ee[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",ue=atob(ee[1]);let U=ue.length;const P=new Uint8Array(U);for(;U--;)P[U]=ue.charCodeAt(U);return new File([P],ae,{type:_e})}function d(){y.onLog=V=>{console.log("[GPY]",V)},y.onDevCount=(V,ae)=>{if(c.value+=`设备数量=${V},设备=${ae.join(",")}
|
|
4
|
-
`,V>0){c.value+=`检测到设备,正在获取分辨率...
|
|
5
|
-
`;try{y.getResolution(0)}catch(ee){c.value+=`获取分辨率失败:${(ee==null?void 0:ee.message)??ee}
|
|
6
|
-
`}}else c.value+=`未检测到高拍仪设备!
|
|
7
|
-
`},y.onResolution=(V,ae)=>{if(V<=0||!Array.isArray(ae)||ae.length===0){c.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
|
|
8
|
-
`;try{y.openCamera(0,1280,720)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
|
|
9
|
-
`}return}const ee=y.chooseResolution(ae);if(!ee){c.value+=`分辨率选择失败,回退使用 1280*720 打开...
|
|
10
|
-
`;try{y.openCamera(0,1280,720)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
|
|
11
|
-
`}return}c.value+=`获取分辨率 ${ee.text}成功,打开摄像头...
|
|
12
|
-
`;try{y.closeCamera(),setTimeout(()=>{try{y.openCamera(0,ee.width,ee.height)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
|
|
13
|
-
`}},100)}catch{try{y.openCamera(0,ee.width,ee.height)}catch(_e){c.value+=`打开摄像头失败:${(_e==null?void 0:_e.message)??_e}
|
|
14
|
-
`}}},y.onCameraStatus=V=>{V==="opened"?(t.value=!0,c.value+=`摄像头已打开
|
|
15
|
-
`):(t.value=!1,c.value+=`摄像头已关闭
|
|
16
|
-
`)},y.onPhoto=V=>{if(V.flag===0&&V.base64){const ae=`data:image/jpeg;base64,${V.base64}`,ee=x(ae,`gpy-capture-${Date.now()}.jpg`);f.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:ae,file:ee}),c.value+=`拍照完成,已接收图片(当前 ${f.value.length} 张)
|
|
17
|
-
`}else c.value+=`拍照失败 flag=${V.flag}
|
|
18
|
-
`}}const A=async()=>{if(await e.nextTick(),!i.value)return;w(),d();const V=i.value.getBoundingClientRect();y.init(i.value,Math.floor(V.width),Math.floor(V.height)),c.value+=`正在连接设备服务...
|
|
19
|
-
`,await y.connect(),c.value+=`正在获取设备数量...
|
|
20
|
-
`,y.getDevCount()},w=()=>{try{y.destroy()}catch(V){console.error(V)}t.value=!1,f.value=[],c.value="",u.value=!1,m.value=[]};e.watch(()=>n.visible,V=>{V?A():w()});const Y=()=>{try{y.bestSize()}catch(V){console.error(V)}},z=()=>{try{y.rotateLeft()}catch(V){console.error(V)}},$=()=>{try{y.rotateRight()}catch(V){console.error(V)}},O=()=>{try{y.focus()}catch(V){console.error(V)}},S=()=>{c.value+=`正在拍照...
|
|
21
|
-
`;try{y.photo()}catch(V){c.value+=`拍照调用失败:${(V==null?void 0:V.message)??V}
|
|
22
|
-
`}},k=()=>{f.value.length>0?r("confirm",f.value.map(V=>V.file)):r("confirm",[])},_=V=>{V<0||V>=f.value.length||(f.value.splice(V,1),c.value+=`已删除一张图片(剩余 ${f.value.length} 张)
|
|
23
|
-
`)},b=V=>{if(!V)return;const ae=`gpy-preview-${Date.now()}.jpg`;m.value=[{name:ae,blobUrl:V}],u.value=!0},C=()=>{u.value=!1},R=()=>{w(),r("cancel")};return(V,ae)=>{const ee=e.resolveComponent("el-input"),_e=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ir.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:R,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",l0,[e.createElementVNode("div",{ref_key:"cameraBox",ref:i,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r0,"初始化摄像头..."))],512),e.createElementVNode("div",n0,[e.createElementVNode("div",i0,[ae[0]||(ae[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",o0,[f.value.length===0?(e.openBlock(),e.createElementBlock("div",t0,"暂无图片")):(e.openBlock(),e.createElementBlock("div",s0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(ue,U)=>(e.openBlock(),e.createElementBlock("div",{key:ue.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:ue.url,onClick:P=>b(ue.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,c0),e.createElementVNode("div",{onClick:P=>_(U),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,u0)]))),128))]))],512)]),e.createElementVNode("div",d0,[ae[1]||(ae[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(ee,{type:"textarea",value:c.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",p0,[e.createVNode(_e,{onClick:Y,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>ae[2]||(ae[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(_e,{onClick:z,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>ae[3]||(ae[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(_e,{onClick:$,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>ae[4]||(ae[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(_e,{onClick:O,disabled:!t.value,id:"themeBorderButton"},{default:e.withCtx(()=>ae[5]||(ae[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(_e,{onClick:S,disabled:!t.value,id:"themeButton"},{default:e.withCtx(()=>ae[6]||(ae[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),ae[9]||(ae[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(_e,{onClick:k,disabled:f.value.length===0,id:"themeButton"},{default:e.withCtx(()=>ae[7]||(ae[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(_e,{onClick:R,id:"themeBorderButton"},{default:e.withCtx(()=>ae[8]||(ae[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),u.value?(e.openBlock(),e.createBlock(pl.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:C},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),h0=nr._export_sfc(f0,[["__scopeId","data-v-24a2050a"]]),ws=M.useMenuState(M.pinia);let Bi="$R";const v0=async a=>{var t,f,c,u,m,y;let l=a==null?void 0:a.导入文件,n=a==null?void 0:a.函数参数,r=(t=l==null?void 0:l[0])==null?void 0:t.url,i="";if(!(r!=null&&r.includes("http"))||!(r!=null&&r.includes("https"))){ws.setContentLoading(!0);const x=await M.platformDownloadFile({url:r});let d=x==null?void 0:x.data;const A=new FormData;A.append("file",d,((f=l==null?void 0:l[0])==null?void 0:f.name)+"."+((c=r==null?void 0:r.split("."))==null?void 0:c[1])),A.append("query",n);let w=await sc(A);w=(y=(m=(u=w==null?void 0:w.data)==null?void 0:u.data)==null?void 0:m.response)==null?void 0:y.replace("generateResult",a==null?void 0:a.函数名称),i=w,ws.setContentLoading(!1)}return i},m0=a=>{var n,r;if(a==="")return;let l=a;return l=(r=(n=l==null?void 0:l.replace("(",Bi))==null?void 0:n.split(Bi))==null?void 0:r[1],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1),l=le.analyzeSplitToContent(l,","),l=l==null?void 0:l.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),i)),l=l==null?void 0:l.filter(i=>(i==null?void 0:i.includes("If"))&&!(i!=null&&i.includes("@If"))),l=l==null?void 0:l.map(i=>{var c,u,m,y,x;let t=i;t=(u=(c=t==null?void 0:t.replace("=",Bi))==null?void 0:c.split(Bi))==null?void 0:u[1],t=(m=le.analyzeSplitToContent(t,")"))==null?void 0:m[0];let f=i==null?void 0:i.replaceAll(t,"");return(t==null?void 0:t[0])==="("&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),t=(x=(y=t==null?void 0:t.replace("(",Bi))==null?void 0:y.split(Bi))==null?void 0:x[1],t="("+t,t=le.calculatorAndToOr(t),{key:f,content:t}}),l},_s=(a,l)=>{let n=[l];return a==null||a.forEach(r=>{for(let i in r)r[i]!=="!"?n=n==null?void 0:n.filter(t=>{var f;return(t==null?void 0:t[i])===(r==null?void 0:r[i])||(t==null?void 0:t[(f=Object.keys(t))==null?void 0:f.find(c=>c==null?void 0:c.includes("."+i))])===(r==null?void 0:r[i])}):n=n==null?void 0:n.filter(t=>{var f;return(t==null?void 0:t[i])!==(r==null?void 0:r[i])&&(t==null?void 0:t[(f=Object.keys(t))==null?void 0:f.find(c=>c==null?void 0:c.includes("."+i))])!==(r==null?void 0:r[i])})}),n},Ot=M.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),y0=M.useModelComp(M.pinia),{extraContents:Nv}=M.storeToRefs(y0),g0=M.useLoginState(M.pinia),{extraUrl:hi}=M.storeToRefs(g0);let _c=hi.value===""||!hi.value?"http://139.196.154.85:20015":hi.value;e.watch(()=>hi.value,()=>{_c=hi.value===""||!hi.value?"http://139.196.154.85:20015":hi.value},{deep:!0,immediate:!0});const Bo={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},Ss={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:_c+"/api/public/paddleOCR"};class b0{constructor(l){un(this,"config");this.config={...Ss,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const n=this.config.maxSize*1024*1024;return l.size<=n}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=Ja.Local.get(Ja.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,n){return{title:n,form:{OCR图片文件:l}}}async recognize(l,n){const r=this.getAuthorizationToken(),i=this.buildOCRRequest(l,n),t=this.config.apiUrl||Ss.apiUrl||"";return(await Ja.axios.post(t,i,{headers:{"Content-Type":"application/json",Authorization:r}})).data}getFieldAliases(l){return Bo[l]?Bo[l]:[l]}extractTableHeaders(l){const n=[],r=new Set,i=f=>{const c=f==null?void 0:f.label;return!(!c||c==="操作"||c===this.config.columnName||(f==null?void 0:f.type)==="operate"||(f==null?void 0:f.prop)==="operate")},t=f=>{(f||[]).forEach(c=>{if(!c)return;const u=(c==null?void 0:c.children)||(c==null?void 0:c.child)||(c==null?void 0:c.columns);if(Array.isArray(u)&&u.length>0){t(u);return}if(i(c)){const m=c.label;if(!r.has(m)){r.add(m);const y=this.getFieldAliases(m);n.push(y)}}})};return t(l||[]),n}}function Sc(a){return new b0(a)}Sc();const Ct=async(a,l)=>{var f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b;let n=(c=(f=M.cloneDeep(a))==null?void 0:f.optionUrl)==null?void 0:c.menuSelect,r=[];n==null||n.forEach(C=>{});let i="",t=await le.menuToParent(n);if(t==null||t.forEach(C=>{var R,V,ae,ee;(C==null?void 0:C.name)===(((ee=(ae=(V=(R=M.cloneDeep(a))==null?void 0:R.optionUrl)==null?void 0:V.groupSelect)==null?void 0:ae[0])==null?void 0:ee.replaceAll("'",""))??"")&&(i=C==null?void 0:C.id)}),l){i=l;const C=await Hr.getInsofDataApi({id:i}),R=(x=(y=(m=(u=C==null?void 0:C.data)==null?void 0:u.result)==null?void 0:m[0])==null?void 0:y.key)==null?void 0:x.pageKey;t=await le.getItemData(R,sessionStorage.getItem("systemKey"),"")}if(i!==""){let C;l?C=(d=t==null?void 0:t.find(ae=>(ae==null?void 0:ae.id)===l))==null?void 0:d.compData:C=(A=t==null?void 0:t.find(ae=>{var ee,_e,ue,U;return(ae==null?void 0:ae.name)===(((_e=(ee=a==null?void 0:a.groupSelect)==null?void 0:ee.split(":"))==null?void 0:_e[0])||((U=(ue=a==null?void 0:a.optionUrl)==null?void 0:ue.groupSelect)==null?void 0:U[0]))}))==null?void 0:A.compData;let R=(Y=(w=C==null?void 0:C.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:w.contents)==null?void 0:Y.map(ae=>ae==null?void 0:ae.label);($=(z=C==null?void 0:C.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:z.contents)!=null&&$.every(ae=>Array.isArray(ae))&&(R=(k=le.getColumnChild((S=(O=C==null?void 0:C.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:O.contents)==null?void 0:S[0]))==null?void 0:k.map(ae=>ae==null?void 0:ae.prop));let V=(b=(_=C==null?void 0:C.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:b.map(ae=>{if(Array.isArray(ae))ae=ae==null?void 0:ae.filter(ee=>!(ee!=null&&ee.id));else{let ee={};for(let _e in ae)_e!=="id"&&(ee[_e]=ae==null?void 0:ae[_e]);ae=ee}return ae});V==null||V.forEach(ae=>{Array.isArray(ae)?r.push(le.getValueToObjectValue(ae,R)):r.push(ae)})}return r},k0=M.useMenuState(M.pinia),{activeMenuPath:Av}=M.storeToRefs(k0),x0=M.useUnit(M.pinia),{chooseTitle:zv}=M.storeToRefs(x0),w0="col-operate",Ec=a=>`${w0}-${a}`,_0=(a,l)=>{const n=new Map;a.forEach(i=>{const{prop:t}=i;n.set(t,i)});const r=i=>{Array.isArray(i)&&i.forEach(t=>{const{prop:f}=t||{},c=n.get(f);S0(c,t),Array.isArray(t==null?void 0:t.children)&&t.children.length>0&&r(t.children)})};return r(l),l},S0=(a,l)=>(a&&(l.sortable=a==null?void 0:a.sortable,l.filterable=a==null?void 0:a.filterable,l.showSummary=a==null?void 0:a.showSummary,l.operable=a==null?void 0:a.operable,l.fixed=a==null?void 0:a.fixed),l),E0=(a,l)=>{const{sortable:n=!1,filterable:r=!1,showSummary:i=!1,operable:t=!1,fixed:f=!1}=l||{};return{prop:a,sortable:n,filterable:r,showSummary:i,operable:t,fixed:f}},C0=async a=>{var t,f;if(!a)return;const l=Ec(a),n=await Hr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),r=(t=n==null?void 0:n.data)==null?void 0:t.code,i=(f=n==null?void 0:n.data)==null?void 0:f.result;if(r==200)return i==null?void 0:i[0]},D0=async a=>{if(a)return[]},T0=async(a,l)=>{if(!a||!l)return;const n=Ec(a);return await Hr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:l}})},B0=async(a,l)=>!a||!l?void 0:await Hr.updateInsofDataApi({id:a,value:{columns:l}}),Es=async(a,l)=>{const n=sessionStorage.getItem("systemKey");if(!a||!l||!n)return;const r=await C0(a);return r?await B0(r==null?void 0:r.id,l):await T0(a,l)};var _o={exports:{}},N0=_o.exports,Cs;function A0(){return Cs||(Cs=1,function(a,l){(function(n,r){r()})(N0,function(){function n(m,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function r(m,y,x){var d=new XMLHttpRequest;d.open("GET",m),d.responseType="blob",d.onload=function(){u(d.response,y,x)},d.onerror=function(){console.error("could not download file")},d.send()}function i(m){var y=new XMLHttpRequest;y.open("HEAD",m,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function t(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(y)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof M.commonjsGlobal=="object"&&M.commonjsGlobal.global===M.commonjsGlobal?M.commonjsGlobal:void 0,c=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(m,y,x){var d=f.URL||f.webkitURL,A=document.createElement("a");y=y||m.name||"download",A.download=y,A.rel="noopener",typeof m=="string"?(A.href=m,A.origin===location.origin?t(A):i(A.href)?r(m,y,x):t(A,A.target="_blank")):(A.href=d.createObjectURL(m),setTimeout(function(){d.revokeObjectURL(A.href)},4e4),setTimeout(function(){t(A)},0))}:"msSaveOrOpenBlob"in navigator?function(m,y,x){if(y=y||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(n(m,x),y);else if(i(m))r(m,y,x);else{var d=document.createElement("a");d.href=m,d.target="_blank",setTimeout(function(){t(d)})}}:function(m,y,x,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof m=="string")return r(m,y,x);var A=m.type==="application/octet-stream",w=/constructor/i.test(f.HTMLElement)||f.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||A&&w||c)&&typeof FileReader<"u"){var z=new FileReader;z.onloadend=function(){var S=z.result;S=Y?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=S:location=S,d=null},z.readAsDataURL(m)}else{var $=f.URL||f.webkitURL,O=$.createObjectURL(m);d?d.location=O:location.href=O,d=null,setTimeout(function(){$.revokeObjectURL(O)},4e4)}});f.saveAs=u.saveAs=u,a.exports=u})}(_o)),_o.exports}A0();const li=M.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(a){this.itemData=a},setCurStructureCompIds(a){this.curStructureCompIds=a},setRefreshCurStructure(a){this.isRefreshCurStructure=a},setOriginalData(a){this.originalData=a},setExtraContents(a){this.extraContents=a},setNodeDev(a){this.nodeDev=a},setIsEdit(a){this.isEdit=a},setSelectTab(a){this.selectTab=a}}}),z0=M.useLoginState(M.pinia),{loginUserInfo:yt}=M.storeToRefs(z0),M0=async a=>{var r,i,t;let l=await M.getAllTables({platId:parseInt((r=yt==null?void 0:yt.value)==null?void 0:r.plat_id),tableNames:[a]});return l=(t=(i=l==null?void 0:l.data)==null?void 0:i.result)==null?void 0:t[0],await gc(l,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:l}]}]},I0=M.useLoginState(),{loginUserInfo:vl}=M.storeToRefs(I0);let go="$R";const Pr=M.useModelComp(M.pinia),Cc=e.ref(!1),{itemData:O0,itemGridData:pi,curStructureCompIds:Ds,isSubmitCurStructure:L0,routeToChildPath:R0,pageMapState:Dt,itemExtendData:bo,refreshTable:Ts,refreshCurrentPageInform:$0}=M.storeToRefs(Pr),$o=li(M.pinia),Yr=M.useMenuState(M.pinia),vr=e.shallowRef([]),{asideMenus:V0,activeTopMenuPath:F0,activeMenuPath:Cl,platform:Mv,buttonTriggerType:P0,currentMenuPath:bn}=M.storeToRefs(Yr),Sn=M.useUnit(M.pinia),{selectTitle:Qn,chooseTitle:No}=M.storeToRefs(Sn);e.ref();const Oi=e.ref(!0),ai=e.ref(0),Tt=e.ref([]);e.ref(!1);const Lt=e.ref(!1),Xi=e.ref(),Dc=e.ref(),Tc=e.ref(),j0=()=>{Pr.setItemGridData([]),Pr.setIsEdit("edit"),Pr.setSubmitCurStructure(Cl.value!=="/平台管理/菜单管理")},H0=()=>{Pr.setIsEdit("view"),Pr.setRefreshCurStructure(!0)},U0=async a=>{var i;let l=Qn.value,n=l==null?void 0:l.findIndex(t=>(t==null?void 0:t.value)===(a==null?void 0:a.value)),r=l==null?void 0:l.filter((t,f)=>f<=n);Sn.setSelectTitle(pl.safeClone(r)),r=(i=r==null?void 0:r.map(t=>t==null?void 0:t.value))==null?void 0:i.join("/"),Yr.setActiveMenuPath(null),Yr.setActiveMenuPath(r)},gt=async(a,l,n,r="contentConfig")=>{var i;try{if(!Array.isArray(a))return;let t,f;l==="create"?(t={dataList:a==null?void 0:a.map(u=>{var m;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:r,parentTable:"",version:1},value:{pageData:{...u,compData:(m=u==null?void 0:u.compData)==null?void 0:m.filter(y=>(y==null?void 0:y.key)!=="tableContents")}}}})},f=Hr.batchAddInsofDataApi):l==="update"?(t={dataList:a==null?void 0:a.map(u=>{var m;return{id:u==null?void 0:u.id,value:{pageData:{...u,compData:(m=u==null?void 0:u.compData)==null?void 0:m.filter(y=>(y==null?void 0:y.key)!=="tableContents")}}}})},f=Hr.batchUpdateInsofDataApi):l==="delete"&&(t={ids:a},f=Hr.batchDeleteInsofDataApi);const c=await f(t);if(((i=c==null?void 0:c.data)==null?void 0:i.code)===200)return c.data.result;throw Ja.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Ja.ElMessage.error("保存响应失败")}},Bs=async(a,l,n,r)=>{var i,t,f,c,u,m,y,x,d,A,w;try{const Y=(t=(i=a==null?void 0:a.results)==null?void 0:i.filter(_=>!(_!=null&&_.id)||typeof(_==null?void 0:_.id)=="string"))==null?void 0:t.map(_=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:n},value:{tableData:_}})),z=(c=(f=a==null?void 0:a.results)==null?void 0:f.filter(_=>(_==null?void 0:_.id)&&typeof(_==null?void 0:_.id)=="number"))==null?void 0:c.map(_=>({id:_==null?void 0:_.id,value:{tableData:_}})),$=JSON.parse(JSON.stringify(a)),O=(u=$==null?void 0:$.results)==null?void 0:u.map(_=>_.id);let S;n?S=(x=(y=(m=Dt.value)==null?void 0:m[Cl.value])==null?void 0:y.filter(_=>{var b,C,R;return((b=_==null?void 0:_.key)==null?void 0:b.type)===l&&((R=(C=_==null?void 0:_.key)==null?void 0:C.relatedInfo)==null?void 0:R.target)===r}))==null?void 0:x.map(_=>_==null?void 0:_.id):S=(w=(A=(d=Dt.value)==null?void 0:d[Cl.value])==null?void 0:A.filter(_=>{var b;return((b=_==null?void 0:_.key)==null?void 0:b.type)===l}))==null?void 0:w.map(_=>_==null?void 0:_.id);const k=S==null?void 0:S.filter(_=>!(O!=null&&O.includes(_))&&typeof _=="number");(Y==null?void 0:Y.length)>0&&await Hr.batchAddInsofDataApi({dataList:Y}),(z==null?void 0:z.length)>0&&await Hr.batchUpdateInsofDataApi({dataList:z}),(k==null?void 0:k.length)>0&&await Hr.batchDeleteInsofDataApi({ids:k})}catch(Y){throw new Error(Y)}},q0=async a=>{var m,y,x,d,A,w,Y,z,$,O;Yr.setContentLoading(!0);const l=JSON.parse(JSON.stringify(O0.value));if(!L0.value)return Yr.setCacheStructures({key:P0.value,data:l}),Ja.ElMessage.success("已暂存");const n=l==null?void 0:l.map(S=>S.id),r=n.filter(S=>{var k;return!((k=Ds.value)!=null&&k.includes(S))}),i=(m=Ds.value)==null?void 0:m.filter(S=>!n.includes(S)),t=[...r,...i].filter(S=>typeof S!==null&&typeof S<"u"),f=l==null?void 0:l.filter(S=>!S.id),c=l==null?void 0:l.filter(S=>S.id);let u=[];if(t&&(t==null?void 0:t.length)>0&&u.push(gt(t,"delete",a)),f&&(f==null?void 0:f.length)>0&&u.push(gt(f,"create",a)),c&&(c==null?void 0:c.length)>0&&u.push(gt(c,"update",a)),pi.value&&((y=pi.value)!=null&&y.isDelete&&((d=(x=pi.value)==null?void 0:x.results)==null?void 0:d.length)>0&&((w=(A=pi.value)==null?void 0:A.results)!=null&&w.every(S=>typeof S=="number"))?await Hr.batchDeleteInsofDataApi({ids:(Y=pi.value)==null?void 0:Y.results}):(console.log("itemGridData.value",pi.value),u.push(await Bs(pi.value,"gridLayout")))),bo.value)for(const S in bo.value)u.push(await Bs((z=bo.value)==null?void 0:z[S],"extend",{target:S,compId:(O=($=bo.value)==null?void 0:$[S])==null?void 0:O.compId},S));await Promise.all(u).then(()=>{Ja.ElMessage.success("保存成功"),Pr.setRefreshCurStructure(!0)}).catch(S=>{Ja.ElMessage.success(S)}),Yr.setContentLoading(!1)},Zi=a=>Li(a),W0=e.computed(()=>{var a;return(a=vr.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),Bc=e.computed(()=>{var a;return(a=vr.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),Nc=e.ref(0),Ac=e.ref(null),K0="ocr_committed_temp_ids_v1",G0=(a,l)=>`${K0}:${String(a??"")}:${String(l??"")}`,Y0=(a,l,n)=>{try{const r=G0(a,l),i=sessionStorage.getItem(r),t=i?JSON.parse(i):[],f=Array.isArray(t)?t:[],c=Array.from(new Set([...f,...n||[]].map(u=>String(u)))).slice(-200);sessionStorage.setItem(r,JSON.stringify(c))}catch{}},Ao=async(a,l="data",n)=>{var i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S,k,_,b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe,Re,Ia,na,za,Ae,Pe,je,ze,we,tl,Dl,Ml,jl,gl,er,el,$l,Wa,Kl,Yl,ar,_l,br;let r=((f=(t=(i=Qn.value)==null?void 0:i.filter(va=>(va==null?void 0:va.condition)==="child"))==null?void 0:t[0])==null?void 0:f.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let va=(c=a==null?void 0:a.fixContent)==null?void 0:c.map(sl=>{let pa={};for(let Ha in sl)Array.isArray(sl==null?void 0:sl[Ha])?pa[Ha]=JSON.stringify(sl==null?void 0:sl[Ha]):pa[Ha]=sl==null?void 0:sl[Ha];return pa});if(va!=null&&va.every(sl=>sl==null?void 0:sl.menuPathContent)){let sl=(u=va==null?void 0:va[0])==null?void 0:u.menuPathContent;va=va==null?void 0:va.map(ia=>(ia.id="0",ia==null||delete ia.menuPathContent,ia)),(sl==null?void 0:sl[0])==="$"&&(sl=sl==null?void 0:sl.slice(1,sl==null?void 0:sl.length));let pa=(m=le.analyzeSplitToContent(sl,"*"))==null?void 0:m[0],Ha=(y=le.analyzeSplitToContent(sl,"*"))==null?void 0:y[1];pa=pa==null?void 0:pa.slice(0,(pa==null?void 0:pa.length)-1),pa=(x=le.analyzeSplitToContent(pa,":"))==null?void 0:x.map(ia=>{var ja,Te,La,al,xl;if((ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])===":"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),(ia==null?void 0:ia[0])==="{"){ia=ia==null?void 0:ia.slice(1,(ia==null?void 0:ia.length)-1),(ia==null?void 0:ia[0])==="*"&&(ia=ia==null?void 0:ia.slice(1,ia==null?void 0:ia.length));let Nl=ia==null?void 0:ia.split(":"),Le=Nl==null?void 0:Nl[0],ha=Nl==null?void 0:Nl[1];ha=ha==null?void 0:ha.slice(1,(ha==null?void 0:ha.length)-1);let ta=(ja=vr.value)==null?void 0:ja.filter(ga=>(ga==null?void 0:ga.name)===Le);ta=ta==null?void 0:ta[0],ta=(xl=(al=(La=(Te=ta==null?void 0:ta.compData)==null?void 0:Te.find(ga=>(ga==null?void 0:ga.key)==="tableContents"))==null?void 0:La.contents)==null?void 0:al[0])==null?void 0:xl[ha],ia=ta}return ia}),pa=pa==null?void 0:pa.join("/");let la=await M.getPageDataApi({platId:parseInt((d=vl==null?void 0:vl.value)==null?void 0:d.plat_id),pageName:"menu"});la=(A=la==null?void 0:la.data)==null?void 0:A.result,la=la==null?void 0:la.find(ia=>(ia==null?void 0:ia.object_name)===pa&&(ia==null?void 0:ia.property_name)===Ha);let Ka=(la==null?void 0:la.object_id)??"";if(Ka===""){Ja.ElMessage.warning("添加页面数据不存在");return}let Sl=[{tableName:"content_"+Ka,tableContents:va}];await M.pageBatchAddApi({platId:parseInt((w=vl==null?void 0:vl.value)==null?void 0:w.plat_id),changeContents:Sl});let Ee=[];Sl==null||Sl.forEach(ia=>{var ja;(ja=ia==null?void 0:ia.tableContents)==null||ja.forEach(Te=>{Ee.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Te),request_result:"{}",is_delete:!1,request_table:ia==null?void 0:ia.tableName,request_type:"add"})})}),await M.pageBatchAddApi({platId:parseInt((Y=vl==null?void 0:vl.value)==null?void 0:Y.plat_id),changeContents:[{tableName:"log",tableContents:Ee}]})}else{let sl=await M.quoteApi({platId:parseInt((z=vl==null?void 0:vl.value)==null?void 0:z.plat_id),type:"fatherSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});sl=($=sl==null?void 0:sl.data)==null?void 0:$.result,sl=sl==null?void 0:sl.filter(Ee=>{var ia,ja;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((ja=(ia=Ee==null?void 0:Ee.quote)==null?void 0:ia[0])==null?void 0:ja.menus)===(Cl==null?void 0:Cl.value))});let pa=sl==null?void 0:sl.map(Ee=>{var La,al;let ia={},ja=va==null?void 0:va[0],Te;return Array.isArray((La=Ee==null?void 0:Ee.struct)==null?void 0:La[0])?Te=le.getColumnChild((al=Ee==null?void 0:Ee.struct)==null?void 0:al[0]):Te=Ee==null?void 0:Ee.struct,Te=Te==null?void 0:Te.filter(xl=>(xl==null?void 0:xl.prop)!=="relatedId"),Te==null||Te.forEach(xl=>{var Nl,Le;ia[xl.prop]=((Nl=xl==null?void 0:xl.words)!=null&&Nl[0]?(ja==null?void 0:ja[(Le=xl==null?void 0:xl.words)==null?void 0:Le[0]])??(ja==null?void 0:ja[xl==null?void 0:xl.prop]):ja==null?void 0:ja[xl==null?void 0:xl.prop])??""}),ia.id="1",ia.relatedId=`[${ia.id}]`,delete ia.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ia]}}),Ha=[{tableName:(O=a==null?void 0:a.relatedContents)==null?void 0:O.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:va}];Ha=[...Ha,...pa];let la=await M.quoteApi({platId:parseInt((S=vl==null?void 0:vl.value)==null?void 0:S.plat_id),type:"sonSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});la=(_=(k=la==null?void 0:la.data)==null?void 0:k.result)==null?void 0:_.filter(Ee=>!(Ha!=null&&Ha.find(ia=>(ia==null?void 0:ia.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),la=la==null?void 0:la.filter(Ee=>{var ia,ja;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((ja=(ia=Ee==null?void 0:Ee.quote)==null?void 0:ia[0])==null?void 0:ja.menus)===(Cl==null?void 0:Cl.value))});let Ka=la==null?void 0:la.map(Ee=>{var La,al,xl,Nl,Le,ha,ta;let ia={},ja=va==null?void 0:va[0],Te;return Array.isArray((La=Ee==null?void 0:Ee.struct)==null?void 0:La[0])?Te=le.getColumnChild((al=Ee==null?void 0:Ee.struct)==null?void 0:al[0]):Te=Ee==null?void 0:Ee.struct,Te=Te==null?void 0:Te.filter(ga=>(ga==null?void 0:ga.prop)!=="relatedId"),((Nl=(xl=Te==null?void 0:Te[0])==null?void 0:xl.words)!=null&&Nl[0]?ja!=null&&ja[(ha=(Le=Te==null?void 0:Te[0])==null?void 0:Le.words)==null?void 0:ha[0]]:ja!=null&&ja[(ta=Te==null?void 0:Te[0])==null?void 0:ta.prop])?(Te==null||Te.forEach(ga=>{var ma,fl;ia[ga.prop]=((ma=ga==null?void 0:ga.words)!=null&&ma[0]?(ja==null?void 0:ja[(fl=ga==null?void 0:ga.words)==null?void 0:fl[0]])??(ja==null?void 0:ja[ga==null?void 0:ga.prop]):ja==null?void 0:ja[ga==null?void 0:ga.prop])??""}),ia.id="1",ia.relatedId=`[${ia.id}]`,delete ia.sort):ia=void 0,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ia]}});Ka=Ka==null?void 0:Ka.filter(Ee=>{var ia;return!((ia=Ee==null?void 0:Ee.tableContents)!=null&&ia.every(ja=>ja===void 0))}),Ha=[...Ha,...Ka],await M.pageBatchAddApi({platId:parseInt((b=vl==null?void 0:vl.value)==null?void 0:b.plat_id),changeContents:Ha});let Sl=[];Ha==null||Ha.forEach(Ee=>{var ia;(ia=Ee==null?void 0:Ee.tableContents)==null||ia.forEach(ja=>{Sl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"add"})})}),await M.pageBatchAddApi({platId:parseInt((C=vl==null?void 0:vl.value)==null?void 0:C.plat_id),changeContents:[{tableName:"log",tableContents:Sl}]})}}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const va=((a==null?void 0:a.ocrRows)||[]).map(la=>la==null?void 0:la.id).filter(la=>la!=null),sl=((a==null?void 0:a.ocrRows)||[]).map(la=>{const Ka={...la};return delete Ka._isOCRRow,delete Ka._ocrTableId,Object.keys(Ka).forEach(Sl=>{/(^|\.)证书附件$/.test(Sl)&&Array.isArray(Ka[Sl])&&(Ka[Sl]=JSON.stringify(Ka[Sl].map(Ee=>({url:(Ee==null?void 0:Ee.url)||"",name:(Ee==null?void 0:Ee.name)||(Ee==null?void 0:Ee.fileName)||"",fileName:(Ee==null?void 0:Ee.fileName)||(Ee==null?void 0:Ee.name)||""})).filter(Ee=>Ee.url||Ee.name)))}),Ka});let pa=[{tableName:(R=a==null?void 0:a.relatedContents)==null?void 0:R.find(la=>la==null?void 0:la.includes("content")),tableContents:sl}];await M.pageBatchAddApi({platId:parseInt((V=vl==null?void 0:vl.value)==null?void 0:V.plat_id),changeContents:pa});let Ha=[];pa==null||pa.forEach(la=>{var Ka;(Ka=la==null?void 0:la.tableContents)==null||Ka.forEach(Sl=>{Ha.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Sl),request_result:"{}",is_delete:!1,request_table:la==null?void 0:la.tableName,request_type:"ocrBatchAdd"})})}),await M.pageBatchAddApi({platId:parseInt((ae=vl==null?void 0:vl.value)==null?void 0:ae.plat_id),changeContents:[{tableName:"log",tableContents:Ha}]}),Y0(a==null?void 0:a.parentTableId,a==null?void 0:a.index,va)}if((a==null?void 0:a.buttonName)==="编辑"){const sl=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(Te=>{const La={...Te};return delete La._isOCRRow,delete La._ocrTableId,delete La._isTemp,delete La.tableEditType,delete La.index,La});let pa=sl==null?void 0:sl.map(Te=>{let La={};for(let al in Te)Array.isArray(Te==null?void 0:Te[al])?La[al]=JSON.stringify(Te==null?void 0:Te[al]):La[al]=Te==null?void 0:Te[al];return La}),Ha=await M.quoteApi({platId:parseInt((ee=vl==null?void 0:vl.value)==null?void 0:ee.plat_id),type:"fatherSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});Ha=(_e=Ha==null?void 0:Ha.data)==null?void 0:_e.result,Ha=Ha==null?void 0:Ha.filter(Te=>{var La,al;return!((Te==null?void 0:Te.fatherPath)!==""&&((al=(La=Te==null?void 0:Te.quote)==null?void 0:La[0])==null?void 0:al.menus)===(Cl==null?void 0:Cl.value))});let la=(ue=pa==null?void 0:pa[0])==null?void 0:ue.id,Ka=[{tableName:(U=a==null?void 0:a.relatedContents)==null?void 0:U.find(Te=>Te==null?void 0:Te.includes("content")),tableContents:pa}],Sl=(P=Ha==null?void 0:Ha.map(Te=>{var al,xl,Nl,Le,ha;let La=(al=Te==null?void 0:Te.contents)==null?void 0:al.filter(ta=>{var ga,ma;return JSON.stringify(ta==null?void 0:ta.relatedId)!=="{}"&&(ta==null?void 0:ta.relatedId)!==""&&(ta!=null&&ta.relatedId)?(ga=ta==null?void 0:ta.relatedId)==null?void 0:ga.includes(parseInt(la)):(ta==null?void 0:ta.sort)===((ma=pa==null?void 0:pa[0])==null?void 0:ma.sort)});if((La==null?void 0:La.length)>0){let ta=pa==null?void 0:pa[0];ta={...ta,id:(xl=La==null?void 0:La[0])==null?void 0:xl.id};let ga={},ma=ta,fl;return Array.isArray((Nl=Te==null?void 0:Te.struct)==null?void 0:Nl[0])?fl=le.getColumnChild((Le=Te==null?void 0:Te.struct)==null?void 0:Le[0]):fl=Te==null?void 0:Te.struct,fl=fl==null?void 0:fl.filter(Fe=>(Fe==null?void 0:Fe.prop)!=="relatedId"),fl==null||fl.forEach(Fe=>{var ml,Be;ga[Fe.prop]=((ml=Fe==null?void 0:Fe.words)!=null&&ml[0]?(ma==null?void 0:ma[(Be=Fe==null?void 0:Fe.words)==null?void 0:Be[0]])??(ma==null?void 0:ma[Fe==null?void 0:Fe.prop]):ma==null?void 0:ma[Fe==null?void 0:Fe.prop])??""}),ga.id=(ha=La==null?void 0:La[0])==null?void 0:ha.id,delete ga.sort,delete ga.relatedId,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ga]}}else return}))==null?void 0:P.filter(Te=>Te);Ka=[...Ka,...Sl];let Ee=await M.quoteApi({platId:parseInt((X=vl==null?void 0:vl.value)==null?void 0:X.plat_id),type:"sonSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});Ee=(he=(re=Ee==null?void 0:Ee.data)==null?void 0:re.result)==null?void 0:he.filter(Te=>!(Ka!=null&&Ka.find(La=>(La==null?void 0:La.tableName)==="content_"+(Te==null?void 0:Te.id)))),Ee=Ee==null?void 0:Ee.filter(Te=>{var La,al;return!((Te==null?void 0:Te.fatherPath)!==""&&((al=(La=Te==null?void 0:Te.quote)==null?void 0:La[0])==null?void 0:al.menus)===(Cl==null?void 0:Cl.value))});let ia=($e=Ee==null?void 0:Ee.map(Te=>{var al,xl,Nl,Le,ha;let La=(al=Te==null?void 0:Te.contents)==null?void 0:al.filter(ta=>{var ga,ma,fl;return JSON.stringify(ta==null?void 0:ta.relatedId)!=="{}"&&(ta==null?void 0:ta.relatedId)!==""&&(ta!=null&&ta.relatedId)?(ga=ta==null?void 0:ta.relatedId)==null?void 0:ga.includes(parseInt(la)):(ta==null?void 0:ta.sort)===((ma=pa==null?void 0:pa[0])==null?void 0:ma.sort)||(ta==null?void 0:ta.sort)===(parseInt(((fl=pa==null?void 0:pa[0])==null?void 0:fl.sort)??"0")+1).toString()});if((La==null?void 0:La.length)>0){let ta=pa==null?void 0:pa[0];ta={...ta,id:(xl=La==null?void 0:La[0])==null?void 0:xl.id};let ga={},ma=ta,fl;return Array.isArray((Nl=Te==null?void 0:Te.struct)==null?void 0:Nl[0])?fl=le.getColumnChild((Le=Te==null?void 0:Te.struct)==null?void 0:Le[0]):fl=Te==null?void 0:Te.struct,fl=fl==null?void 0:fl.filter(Fe=>(Fe==null?void 0:Fe.prop)!=="relatedId"),fl==null||fl.forEach(Fe=>{var ml,Be,Pl,Sa;((ml=Fe==null?void 0:Fe.words)!=null&&ml[0]?(ma==null?void 0:ma[(Be=Fe==null?void 0:Fe.words)==null?void 0:Be[0]])??(ma==null?void 0:ma[Fe==null?void 0:Fe.prop]):ma!=null&&ma[Fe==null?void 0:Fe.prop])&&(ga[Fe.prop]=((Pl=Fe==null?void 0:Fe.words)!=null&&Pl[0]?(ma==null?void 0:ma[(Sa=Fe==null?void 0:Fe.words)==null?void 0:Sa[0]])??(ma==null?void 0:ma[Fe==null?void 0:Fe.prop]):ma==null?void 0:ma[Fe==null?void 0:Fe.prop])??"")}),ga.id=(ha=La==null?void 0:La[0])==null?void 0:ha.id,delete ga.sort,delete ga.relatedId,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ga]}}else return}))==null?void 0:$e.filter(Te=>Te);Ka=[...Ka,...ia],await M.pageBatchUpdateApi({platId:parseInt((se=vl==null?void 0:vl.value)==null?void 0:se.plat_id),changeContents:Ka});let ja=[];Ka==null||Ka.forEach(Te=>{var La;(La=Te==null?void 0:Te.tableContents)==null||La.forEach(al=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(al),request_result:"{}",is_delete:!1,request_table:Te==null?void 0:Te.tableName,request_type:"update"})})}),await M.pageBatchAddApi({platId:parseInt((B=vl==null?void 0:vl.value)==null?void 0:B.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}if((a==null?void 0:a.buttonName)==="删除"){let va=[{tableName:(oe=a==null?void 0:a.relatedContents)==null?void 0:oe.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:a==null?void 0:a.fixContent}],sl=await M.quoteApi({platId:parseInt((W=vl==null?void 0:vl.value)==null?void 0:W.plat_id),type:"fatherSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});sl=(ke=sl==null?void 0:sl.data)==null?void 0:ke.result,sl=sl==null?void 0:sl.filter(Ee=>{var ia,ja;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((ja=(ia=Ee==null?void 0:Ee.quote)==null?void 0:ia[0])==null?void 0:ja.menus)===(Cl==null?void 0:Cl.value))});let pa=(Ve=(Ie=a==null?void 0:a.fixContent)==null?void 0:Ie[0])==null?void 0:Ve.id,Ha=(Qe=sl==null?void 0:sl.map(Ee=>{var ja,Te,La,al,xl,Nl;let ia=(ja=Ee==null?void 0:Ee.contents)==null?void 0:ja.filter(Le=>{var ha,ta,ga;return JSON.stringify(Le==null?void 0:Le.relatedId)!=="{}"&&(Le==null?void 0:Le.relatedId)!==""&&(Le!=null&&Le.relatedId)?(ha=Le==null?void 0:Le.relatedId)==null?void 0:ha.includes(parseInt(pa)):(Le==null?void 0:Le.sort)===((ga=(ta=a==null?void 0:a.fixContent)==null?void 0:ta[0])==null?void 0:ga.sort)});if((ia==null?void 0:ia.length)>0){let Le=(Te=a==null?void 0:a.fixContent)==null?void 0:Te[0];Le={...Le,id:(La=ia==null?void 0:ia[0])==null?void 0:La.id};let ha={},ta=Le,ga;return Array.isArray((al=Ee==null?void 0:Ee.struct)==null?void 0:al[0])?ga=le.getColumnChild((xl=Ee==null?void 0:Ee.struct)==null?void 0:xl[0]):ga=Ee==null?void 0:Ee.struct,ga=ga==null?void 0:ga.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),ga==null||ga.forEach(ma=>{var fl,Fe;ha[ma.prop]=((fl=ma==null?void 0:ma.words)!=null&&fl[0]?(ta==null?void 0:ta[(Fe=ma==null?void 0:ma.words)==null?void 0:Fe[0]])??(ta==null?void 0:ta[ma==null?void 0:ma.prop]):ta==null?void 0:ta[ma==null?void 0:ma.prop])??""}),ha.id=(Nl=ia==null?void 0:ia[0])==null?void 0:Nl.id,delete ha.sort,delete ha.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ha]}}else return}))==null?void 0:Qe.filter(Ee=>Ee);va=[...va,...Ha];let la=await M.quoteApi({platId:parseInt((Ea=vl==null?void 0:vl.value)==null?void 0:Ea.plat_id),type:"sonSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});la=(ua=(ie=la==null?void 0:la.data)==null?void 0:ie.result)==null?void 0:ua.filter(Ee=>!(va!=null&&va.find(ia=>(ia==null?void 0:ia.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),la=la==null?void 0:la.filter(Ee=>{var ia,ja;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((ja=(ia=Ee==null?void 0:Ee.quote)==null?void 0:ia[0])==null?void 0:ja.menus)===(Cl==null?void 0:Cl.value))});let Ka=(ce=la==null?void 0:la.map(Ee=>{var ja,Te,La,al,xl,Nl;let ia=(ja=Ee==null?void 0:Ee.contents)==null?void 0:ja.filter(Le=>{var ha,ta,ga;return JSON.stringify(Le==null?void 0:Le.relatedId)!=="{}"&&(Le==null?void 0:Le.relatedId)!==""&&(Le!=null&&Le.relatedId)?(ha=Le==null?void 0:Le.relatedId)==null?void 0:ha.includes(parseInt(pa)):(Le==null?void 0:Le.sort)===((ga=(ta=a==null?void 0:a.fixContent)==null?void 0:ta[0])==null?void 0:ga.sort)});if((ia==null?void 0:ia.length)>0){let Le=(Te=a==null?void 0:a.fixContent)==null?void 0:Te[0];Le={...Le,id:(La=ia==null?void 0:ia[0])==null?void 0:La.id};let ha={},ta=Le,ga;return Array.isArray((al=Ee==null?void 0:Ee.struct)==null?void 0:al[0])?ga=le.getColumnChild((xl=Ee==null?void 0:Ee.struct)==null?void 0:xl[0]):ga=Ee==null?void 0:Ee.struct,ga=ga==null?void 0:ga.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),ga==null||ga.forEach(ma=>{var fl,Fe;ha[ma.prop]=((fl=ma==null?void 0:ma.words)!=null&&fl[0]?(ta==null?void 0:ta[(Fe=ma==null?void 0:ma.words)==null?void 0:Fe[0]])??(ta==null?void 0:ta[ma==null?void 0:ma.prop]):ta==null?void 0:ta[ma==null?void 0:ma.prop])??""}),ha.id=(Nl=ia==null?void 0:ia[0])==null?void 0:Nl.id,delete ha.sort,delete ha.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ha]}}else return}))==null?void 0:ce.filter(Ee=>Ee);va=[...va,...Ka],await M.pageBatchDeleteApi({platId:parseInt((ea=vl==null?void 0:vl.value)==null?void 0:ea.plat_id),changeContents:va});let Sl=[];va==null||va.forEach(Ee=>{var ia;(ia=Ee==null?void 0:Ee.tableContents)==null||ia.forEach(ja=>{Sl.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"delete"})})}),await M.pageBatchAddApi({platId:parseInt((Me=vl==null?void 0:vl.value)==null?void 0:Me.plat_id),changeContents:[{tableName:"log",tableContents:Sl}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let va=await M.getPageDataApi({platId:parseInt((de=vl==null?void 0:vl.value)==null?void 0:de.plat_id),pageName:"menu"});if(va=(fe=va==null?void 0:va.data)==null?void 0:fe.result,va!=null&&va.find(sl=>(sl==null?void 0:sl.father_name)===Cl.value+"/")){Tc.value=a,Dc.value=va==null?void 0:va.filter(Ha=>(Ha==null?void 0:Ha.father_name)===Cl.value+"/");let sl=(ka=(Ke=a==null?void 0:a.columns)==null?void 0:Ke.find(Ha=>Ha==null?void 0:Ha.mainKey))==null?void 0:ka.prop,pa=(q=(Ba=a==null?void 0:a.fixContent)==null?void 0:Ba[0])==null?void 0:q[sl];Lt.value=!0,Xi.value=[{prop:sl,label:sl,name:sl,value:pa}]}else{let sl=(F=a==null?void 0:a.fixContent)==null?void 0:F.map(la=>{let Ka={};for(let Sl in la)Array.isArray(la==null?void 0:la[Sl])?Ka[Sl]=JSON.stringify(la==null?void 0:la[Sl]):Ka[Sl]=la==null?void 0:la[Sl];return Ka.relatedId="",Ka}),pa=[{tableName:(Q=a==null?void 0:a.relatedContents)==null?void 0:Q.find(la=>la==null?void 0:la.includes("content")),tableContents:sl}];await M.pageBatchAddApi({platId:parseInt((pe=vl==null?void 0:vl.value)==null?void 0:pe.plat_id),changeContents:pa});let Ha=[];pa==null||pa.forEach(la=>{var Ka;(Ka=la==null?void 0:la.tableContents)==null||Ka.forEach(Sl=>{Ha.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Sl),request_result:"{}",is_delete:!1,request_table:la==null?void 0:la.tableName,request_type:"copyAdd"})})}),await M.pageBatchAddApi({platId:parseInt((ve=vl==null?void 0:vl.value)==null?void 0:ve.plat_id),changeContents:[{tableName:"log",tableContents:Ha}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let va=((Ue=(ca=(da=a==null?void 0:a.columns)==null?void 0:da.map(Te=>Te==null?void 0:Te.filter))==null?void 0:ca.filter(Te=>Te!==""))==null?void 0:Ue[0])??"";va=le.analyzeSplitToContent(va,","),va=(va==null?void 0:va.find(Te=>Te==null?void 0:Te.includes("@Filter")))??"";let sl=(xa=a==null?void 0:a.fixContent)==null?void 0:xa.map(Te=>{let La={};for(let al in Te)Array.isArray(Te==null?void 0:Te[al])?La[al]=JSON.stringify(Te==null?void 0:Te[al]):La[al]=Te==null?void 0:Te[al];return La}),pa=await M.quoteApi({platId:parseInt((Na=vl==null?void 0:vl.value)==null?void 0:Na.plat_id),type:"fatherSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});pa=(Ce=pa==null?void 0:pa.data)==null?void 0:Ce.result,pa=pa==null?void 0:pa.filter(Te=>{var La,al;return!((Te==null?void 0:Te.fatherPath)!==""&&((al=(La=Te==null?void 0:Te.quote)==null?void 0:La[0])==null?void 0:al.menus)===(Cl==null?void 0:Cl.value))});let Ha=(Ca=(Pa=a==null?void 0:a.columns)==null?void 0:Pa[0])==null?void 0:Ca.prop,la=(oa=sl==null?void 0:sl[0])==null?void 0:oa[Ha],Ka=[{tableName:(Aa=a==null?void 0:a.relatedContents)==null?void 0:Aa.find(Te=>Te==null?void 0:Te.includes("content")),tableContents:sl}],Sl=(De=pa==null?void 0:pa.map(Te=>{var al,xl,Nl,Le,ha;let La=(al=Te==null?void 0:Te.contents)==null?void 0:al.filter(ta=>{var ga;return(ga=Object.values(ta))==null?void 0:ga.find(ma=>ma===la)});if((La==null?void 0:La.length)>0){let ta=sl==null?void 0:sl[0];ta={...ta,id:(xl=La==null?void 0:La[0])==null?void 0:xl.id};let ga={},ma=ta,fl;return Array.isArray((Nl=Te==null?void 0:Te.struct)==null?void 0:Nl[0])?fl=le.getColumnChild((Le=Te==null?void 0:Te.struct)==null?void 0:Le[0]):fl=Te==null?void 0:Te.struct,fl=fl==null?void 0:fl.filter(Fe=>(Fe==null?void 0:Fe.prop)!=="relatedId"),fl==null||fl.forEach(Fe=>{var ml,Be;ga[Fe.prop]=((ml=Fe==null?void 0:Fe.words)!=null&&ml[0]?(ma==null?void 0:ma[(Be=Fe==null?void 0:Fe.words)==null?void 0:Be[0]])??(ma==null?void 0:ma[Fe==null?void 0:Fe.prop]):ma==null?void 0:ma[Fe==null?void 0:Fe.prop])??""}),ga.id=(ha=La==null?void 0:La[0])==null?void 0:ha.id,delete ga.sort,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ga]}}else return}))==null?void 0:De.filter(Te=>Te);Ka=[...Ka,...Sl];let Ee=await M.quoteApi({platId:parseInt((wa=vl==null?void 0:vl.value)==null?void 0:wa.plat_id),type:"sonSyncs",related:[{menus:r!==""?Cl.value+"/"+r:Cl.value,groups:a==null?void 0:a.name}]});if(Ee=(xe=(Je=Ee==null?void 0:Ee.data)==null?void 0:Je.result)==null?void 0:xe.filter(Te=>!(Ka!=null&&Ka.find(La=>(La==null?void 0:La.tableName)==="content_"+(Te==null?void 0:Te.id)))),Ee=Ee==null?void 0:Ee.filter(Te=>{var La,al;return!((Te==null?void 0:Te.fatherPath)!==""&&((al=(La=Te==null?void 0:Te.quote)==null?void 0:La[0])==null?void 0:al.menus)===(Cl==null?void 0:Cl.value))}),va&&va!==""){(va==null?void 0:va[(va==null?void 0:va.length)-1])===","&&(va=va==null?void 0:va.slice(0,(va==null?void 0:va.length)-1)),va=(Oe=(H=va==null?void 0:va.replace("(",go))==null?void 0:H.split(go))==null?void 0:Oe[1],va=va==null?void 0:va.slice(0,(va==null?void 0:va.length)-1),(va==null?void 0:va[0])==="*"&&(va="{"+((Ia=(Re=va==null?void 0:va.replace("{",go))==null?void 0:Re.split(go))==null?void 0:Ia[1])),va=(na=va==null?void 0:va.replaceAll("{",""))==null?void 0:na.replaceAll("}","");let Te=le.calculatorAndToOr(va);Te=Te==null?void 0:Te[0];let La;if((za=Object.values(Te))!=null&&za.some(al=>(al==null?void 0:al[0])==="*")){let al=(Pe=(Ae=Qn.value)==null?void 0:Ae.find(xl=>(xl==null?void 0:xl.condition)==="child"))!=null&&Pe.value?(bn==null?void 0:bn.value)+"/"+((ze=(je=Qn.value)==null?void 0:je.find(xl=>(xl==null?void 0:xl.condition)==="child"))==null?void 0:ze.value):bn==null?void 0:bn.value;La=await Jr(al,!1)}for(let al in Te)if(((we=Te==null?void 0:Te[al])==null?void 0:we[0])==="*"){let xl=(jl=(Ml=(Dl=Te[al])==null?void 0:Dl.slice(1,(tl=Te[al])==null?void 0:tl.length))==null?void 0:Ml.split(":"))==null?void 0:jl[0],Nl=(er=(gl=Te[al])==null?void 0:gl.split(":"))==null?void 0:er[1],Le=(el=La==null?void 0:La.filter(ha=>(ha==null?void 0:ha.name)===xl))==null?void 0:el[0];Le=(Wa=($l=Le==null?void 0:Le.compData)==null?void 0:$l.find(ha=>(ha==null?void 0:ha.key)==="tableContents"))==null?void 0:Wa.contents,Le=(Kl=Le==null?void 0:Le[0])==null?void 0:Kl[Nl],Te[al]=Le}va=((Yl=Object.values(Te))==null?void 0:Yl[0])??""}let ia=(ar=Ee==null?void 0:Ee.map(Te=>{var al,xl,Nl,Le,ha;let La=(al=Te==null?void 0:Te.contents)==null?void 0:al.filter(ta=>{var ga;return(ga=Object.values(ta))==null?void 0:ga.find(ma=>ma===(va===""?la:va))});if((La==null?void 0:La.length)>0){let ta=sl==null?void 0:sl[0];ta={...ta,id:(xl=La==null?void 0:La[0])==null?void 0:xl.id};let ga={},ma=ta,fl;return Array.isArray((Nl=Te==null?void 0:Te.struct)==null?void 0:Nl[0])?fl=le.getColumnChild((Le=Te==null?void 0:Te.struct)==null?void 0:Le[0]):fl=Te==null?void 0:Te.struct,fl=fl==null?void 0:fl.filter(Fe=>(Fe==null?void 0:Fe.prop)!=="relatedId"),fl==null||fl.forEach(Fe=>{var Be,Pl,Sa,ul;let ml=(Be=a==null?void 0:a.columns)==null?void 0:Be.find(Za=>{var bl,Ra,Rl;return((Ra=(bl=Za==null?void 0:Za.words)==null?void 0:bl[0])==null?void 0:Ra.replaceAll("'",""))===(Fe==null?void 0:Fe.prop)&&((Rl=Za==null?void 0:Za.functionRelatedWords)==null?void 0:Rl.length)>0});ml=(Pl=ml==null?void 0:ml.prop)==null?void 0:Pl.replaceAll("'",""),ga[Fe.prop]=((Sa=Fe==null?void 0:Fe.words)!=null&&Sa[0]?(ma==null?void 0:ma[(ul=Fe==null?void 0:Fe.words)==null?void 0:ul[0]])??(ma==null?void 0:ma[Fe==null?void 0:Fe.prop])??(ma==null?void 0:ma[ml]):(ma==null?void 0:ma[Fe==null?void 0:Fe.prop])??(ma==null?void 0:ma[ml]))??void 0}),ga.id=(ha=La==null?void 0:La[0])==null?void 0:ha.id,delete ga.sort,{tableName:"content_"+(Te==null?void 0:Te.id),tableContents:[ga]}}else return}))==null?void 0:ar.filter(Te=>Te);Ka=[...Ka,...ia],await M.pageBatchUpdateApi({platId:parseInt((_l=vl==null?void 0:vl.value)==null?void 0:_l.plat_id),changeContents:Ka});let ja=[];Ka==null||Ka.forEach(Te=>{var La;(La=Te==null?void 0:Te.tableContents)==null||La.forEach(al=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(al),request_result:"{}",is_delete:!1,request_table:Te==null?void 0:Te.tableName,request_type:"method"})})}),await M.pageBatchAddApi({platId:parseInt((br=vl==null?void 0:vl.value)==null?void 0:br.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}Pr.setRefreshCurStructure(!0),Pr.setRefreshCurrentPageInform($0.value++),await Nt(a)},Bt=async(a,l,n)=>{var i;let r=a==null?void 0:a.find(t=>(t==null?void 0:t.id)===l);if(r){let t=(i=r.compData)==null?void 0:i.map(f=>{var c;if((f==null?void 0:f.key)==="tableContents"){let u={...f,contents:n};return u.contents=(c=(u==null?void 0:u.contents)??[])==null?void 0:c.map(m=>{let y={};for(let x in m)JSON.stringify(m==null?void 0:m[x])==="{}"?y[x]="":y[x]=m==null?void 0:m[x];return y}),u}return f});return r.compData=await Ro(t,{}),a=a==null?void 0:a.map(f=>((f==null?void 0:f.id)===(r==null?void 0:r.id)&&(f=r),f)),a}else{let t=a==null?void 0:a.filter(c=>{var u;return(c==null?void 0:c.children)&&((u=c==null?void 0:c.children)==null?void 0:u.length)>0||(c==null?void 0:c.comp)==="Tabs"}),f=t==null?void 0:t.map(async c=>{var u;return c!=null&&c.children&&((u=c==null?void 0:c.children)==null?void 0:u.length)>0?c.children=await Bt(c==null?void 0:c.children,l,n):c.compData=await Bt(c==null?void 0:c.compData,l,n),c});return t=await Promise.all(f),t}},Nt=async a=>{var t,f,c,u,m,y,x;let l=(t=a==null?void 0:a.relatedContents)==null?void 0:t.filter(d=>d==null?void 0:d.includes("content_"));if(!l)return;let n=await M.getAllTables({platId:parseInt((f=vl==null?void 0:vl.value)==null?void 0:f.plat_id),tableNames:l??[]});if(n=(u=(c=n==null?void 0:n.data)==null?void 0:c.result)==null?void 0:u[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(d=>{d==null||delete d.source_table;const A={};for(let w in d){const Y=d==null?void 0:d[w],z=Y&&Object.prototype.toString.call(Y)==="[object Object]"&&Object.keys(Y).length===0,$=Array.isArray(Y)&&Y.length===0;Y==null||Y==="{}"||z||$?A[w]="":A[w]=Y}return A});let r=(y=(m=l==null?void 0:l[0])==null?void 0:m.split("_"))==null?void 0:y[1],i=await Bt(vr.value,r,n);vr.value=(x=vr.value)==null?void 0:x.map(d=>{var A,w;return(A=i==null?void 0:i[0])!=null&&A.tabInform&&((w=i==null?void 0:i[0])==null?void 0:w.tabInform)===(d==null?void 0:d.tabInform)?d=i==null?void 0:i[0]:(d!=null&&d.name?(d==null?void 0:d.name)===(i==null?void 0:i.name):(d==null?void 0:d.id)===(i==null?void 0:i.id))&&(d=i),d})},J0=a=>{let l=Xi.value;Xi.value=l==null?void 0:l.map(n=>(n.value=a==null?void 0:a[n==null?void 0:n.prop],n))},X0=async()=>{var d,A,w,Y,z,$,O,S,k,_;let a=Tc.value,l=Dc.value,n=(A=(d=a==null?void 0:a.columns)==null?void 0:d.find(b=>b==null?void 0:b.mainKey))==null?void 0:A.prop,r=(Y=(w=Xi.value)==null?void 0:w[0])==null?void 0:Y.value,i=(z=a==null?void 0:a.fixContent)==null?void 0:z.map(b=>{var R;let C={};for(let V in b)Array.isArray(b==null?void 0:b[V])?C[V]=JSON.stringify(b==null?void 0:b[V]):C[V]=b==null?void 0:b[V];return(R=a==null?void 0:a.columns)==null||R.forEach(V=>{(V==null?void 0:V.formType)==="Upload"&&(C==null?void 0:C[V==null?void 0:V.prop])===""&&(C[V==null?void 0:V.prop]="{}")}),C[n]=r,C}),t=[{tableName:($=a==null?void 0:a.relatedContents)==null?void 0:$.find(b=>b==null?void 0:b.includes("content")),tableContents:i}];await M.pageBatchAddApi({platId:parseInt((O=vl==null?void 0:vl.value)==null?void 0:O.plat_id),changeContents:t}),l=l==null?void 0:l.filter(b=>{var C,R,V;return(V=b==null?void 0:b.object_name)==null?void 0:V.includes((R=(C=a==null?void 0:a.fixContent)==null?void 0:C[0])==null?void 0:R[n])});let f=[],c=new Map;l==null||l.forEach(b=>{f.push(`content_${b==null?void 0:b.object_id}`),f.push(`struct_${b==null?void 0:b.object_id}`),c.set(b==null?void 0:b.object_id,b)});let u=await M.getAllTables({platId:parseInt((S=vl==null?void 0:vl.value)==null?void 0:S.plat_id),tableNames:f??[]});u=(k=u==null?void 0:u.data)==null?void 0:k.result;let m=[],y=[];u=le.chunk(u,2),u==null||u.forEach(b=>{var V,ae,ee,_e,ue,U,P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea,ie;let C=c.get((_e=(ee=(ae=(V=b==null?void 0:b[1])==null?void 0:V[0])==null?void 0:ae.source_table)==null?void 0:ee.split("_"))==null?void 0:_e[1]),R=(P=(U=(ue=C==null?void 0:C.object_name)==null?void 0:ue.split("/"))==null?void 0:U.filter((ua,ce)=>{var ea,Me;return((Me=(ea=C==null?void 0:C.object_name)==null?void 0:ea.split("/"))==null?void 0:Me.length)-1!==ce}))==null?void 0:P.join("/");if(R=R+"/"+r,y!=null&&y.find(ua=>(ua==null?void 0:ua.path)===R)||y.push({fatherPath:C==null?void 0:C.father_name,isShow:C==null?void 0:C.is_show,path:R}),((re=(X=b==null?void 0:b[1])==null?void 0:X[0])==null?void 0:re.类型)==="Table"){let ua=((se=($e=(he=b==null?void 0:b[1])==null?void 0:he[0])==null?void 0:$e.结构)==null?void 0:se.contents)??[],ce=pl.safeClone(ua);Array.isArray(ce==null?void 0:ce[0])&&(ce=le.getColumnChild(ce==null?void 0:ce[0]));let ea=[];if(((B=b==null?void 0:b[0])==null?void 0:B.length)>0&&(ea=(oe=b==null?void 0:b[0])==null?void 0:oe.map(Me=>ce==null?void 0:ce.map(fe=>(fe=(Me==null?void 0:Me[fe==null?void 0:fe.prop])??"",fe)))),m!=null&&m.find(Me=>(Me==null?void 0:Me.key)===R)){let Me=(W=m==null?void 0:m.find(fe=>(fe==null?void 0:fe.key)===R))==null?void 0:W.contents;Me.push({isShow:C==null?void 0:C.is_show,filter:((Ve=(Ie=(ke=b==null?void 0:b[1])==null?void 0:ke[0])==null?void 0:Ie.引用)==null?void 0:Ve.contents)??"",key:"Table",name:Object.values(C==null?void 0:C.name),tableColumns:ua,tableContents:ea});let de=m==null?void 0:m.findIndex(fe=>(fe==null?void 0:fe.key)===R);m[de].contents=Me}else m.push({key:R,contents:[{isShow:C==null?void 0:C.is_show,filter:((ie=(Ea=(Qe=b==null?void 0:b[1])==null?void 0:Qe[0])==null?void 0:Ea.引用)==null?void 0:ie.contents)??"",key:"Table",name:Object.values(C==null?void 0:C.name),tableColumns:ua,tableContents:ea}]})}});let x=[];x.push({key:"menuPath",contents:y}),x=[...x,...m],await M.createPlatFormDataApi({platId:parseInt((_=vl==null?void 0:vl.value)==null?void 0:_.plat_id),changeData:x}),Lt.value=!1,Pr.setRefreshTable(!0)},zo=async(a,l)=>{},Mo=async a=>{vr.value=await le.getDeepDiffItems(a),Pr.setItemData(vr.value),Pr.setOriginalData(vr.value)};e.ref();const Z0=e.ref(null),Q0=()=>{var a,l;console.log("倒计时结束时"),M.ElMessageBox.alert(`超时未提交,【${(l=(a=Cl.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},zc=e.ref([]),e3=e.computed(()=>{var a,l;return(l=(a=Dt.value)==null?void 0:a[Cl.value])==null?void 0:l.filter(n=>{var r;return((r=n==null?void 0:n.key)==null?void 0:r.type)==="gridLayout"})});e.watch(()=>[F0.value],()=>{Sn.setSelectTitle([]),Sn.setChooseTitle([])},{deep:!0});e.watch(()=>No.value,async(a,l)=>{var r,i,t,f,c,u;let n=(r=No.value)==null?void 0:r.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==bn.value);if((n==null?void 0:n.length)>0){Yr.setContentLoading(!0);let m=((i=n==null?void 0:n[0])==null?void 0:i.relatedContent)??(Cl==null?void 0:Cl.value),y=m+"/"+((t=n==null?void 0:n[0])==null?void 0:t.value),x=!!((f=n==null?void 0:n[0])!=null&&f.parentContent),d=await Jr(y,x,{originPath:m});d=(c=d==null?void 0:d.filter(Y=>Y))==null?void 0:c.map(Y=>(Y.isShow=!0,Y)),console.log(d,"loadingContents");let A=await le.getDeepDiffItems(d),w=A==null?void 0:A.filter(Y=>Y==null?void 0:Y.choice);$o.setSelectTab((u=w==null?void 0:w[0])==null?void 0:u.choiceName),A=A==null?void 0:A.filter(Y=>{var z;return!(Y!=null&&Y.choiceName)||(Y==null?void 0:Y.choiceName)===((z=w==null?void 0:w[0])==null?void 0:z.choiceName)}),vr.value=A,Yr.setContentLoading(!1)}});const a3=(a,l)=>{setTimeout(async()=>{var c,u,m;let n=(c=No.value)==null?void 0:c.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==bn.value),r=Cl==null?void 0:Cl.value,i=Cl==null?void 0:Cl.value;(n==null?void 0:n.length)>0&&(i=((u=n==null?void 0:n[0])==null?void 0:u.relatedContent)??(Cl==null?void 0:Cl.value),r=i+"/"+((m=n==null?void 0:n[0])==null?void 0:m.value));let t=await Jr(r,!1,{originPath:i});t=t==null?void 0:t.map(y=>(y.isShow=!0,y));let f=await le.getDeepDiffItems(t);vr.value=f==null?void 0:f.filter(y=>!(y!=null&&y.step)||(y==null?void 0:y.step)===(a==null?void 0:a.title))},10)},l3=a=>{setTimeout(async()=>{var f,c,u;let l=(f=No.value)==null?void 0:f.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==bn.value),n=Cl==null?void 0:Cl.value,r=Cl==null?void 0:Cl.value;(l==null?void 0:l.length)>0&&(r=((c=l==null?void 0:l[0])==null?void 0:c.relatedContent)??(Cl==null?void 0:Cl.value),n=r+"/"+((u=l==null?void 0:l[0])==null?void 0:u.value));let i=await Jr(n,!1,{originPath:r});i=i==null?void 0:i.map(m=>(m.isShow=!0,m)),$o.setSelectTab(a);let t=await le.getDeepDiffItems(i);vr.value=t==null?void 0:t.filter(m=>!(m!=null&&m.choiceName)||(m==null?void 0:m.choiceName)===a)},10)};e.watch(()=>V0.value,a=>{a!=null&&a.length||(vr.value=[])},{immediate:!0});e.watch(()=>[Cl.value],async a=>{var t,f,c,u;if(!Cl.value)return;if(Cl.value==="/"){vr.value=[];return}Yr.setCurrentMenuPath(Cl.value),Pr.setLockingPage(""),vr.value=[];let l=e.getCurrentInstance();(t=l==null?void 0:l.scope)==null||t.stop(),l=null,Oi.value=!1,Yr.setContentLoading(!0),Cc.value=!0;let n=a==null?void 0:a[0],r=n,i=(f=Qn.value)==null?void 0:f.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==Cl.value&&!(m!=null&&m.relatedContent));if((i==null?void 0:i.length)>0&&(n=n+"/"+((c=i==null?void 0:i[0])==null?void 0:c.value)),n==="系统管理/日志管理")vr.value=await M0("log");else{let m=await Jr(n,!0,{originPath:r});m=m==null?void 0:m.map(d=>(d.isShow=!0,d));let y=await le.getDeepDiffItems(m),x=y==null?void 0:y.filter(d=>d==null?void 0:d.choice);$o.setSelectTab((u=x==null?void 0:x[0])==null?void 0:u.choiceName),vr.value=y==null?void 0:y.filter(d=>{var A;return!(d!=null&&d.choiceName)||(d==null?void 0:d.choiceName)===((A=x==null?void 0:x[0])==null?void 0:A.choiceName)})}Yr.setContentLoading(!1),Pr.setExtraContents([]),Sn.setSelectIndex(""),Sn.setSelectMenu(""),Pr.setItemData(vr.value),Pr.setOriginalData(vr.value),Pr.setRefreshTable(!1),e.nextTick(()=>{ai.value=ai.value++,Oi.value=!0})},{immediate:!0});e.watch(()=>[Ts.value],async()=>{var a,l,n,r;if(Ts.value){vr.value=[];let i=e.getCurrentInstance();(a=i==null?void 0:i.scope)==null||a.stop(),i=null,Oi.value=!1,Yr.setContentLoading(!0),Cc.value=!0;let t=bn==null?void 0:bn.value,f=t,c=(l=Qn.value)==null?void 0:l.filter(x=>(x==null?void 0:x.condition)==="child"&&(x==null?void 0:x.value)!==""&&(x==null?void 0:x.parentContent)!==(bn==null?void 0:bn.value));(c==null?void 0:c.length)>0&&(t=t+"/"+((n=c==null?void 0:c[0])==null?void 0:n.value));let u=await Jr(t,!0,{originPath:f});u=u==null?void 0:u.map(x=>(x.isShow=!0,x));let m=await le.getDeepDiffItems(u),y=m==null?void 0:m.filter(x=>x==null?void 0:x.choice);if($o.setSelectTab((r=y==null?void 0:y[0])==null?void 0:r.choiceName),vr.value=m==null?void 0:m.filter(x=>{var d;return!(x!=null&&x.choiceName)||(x==null?void 0:x.choiceName)===((d=y==null?void 0:y[0])==null?void 0:d.choiceName)}),Yr.setContentLoading(!1),Pr.setExtraContents([]),Sn.setSelectIndex(""),Sn.setSelectMenu(""),Pr.setItemData(vr.value),Pr.setOriginalData(vr.value),Pr.setRefreshTable(!1),(c==null?void 0:c.length)>0){let x=[...Qn.value,...c];Sn.setSelectTitle(x)}e.nextTick(()=>{ai.value=ai.value++,Oi.value=!0})}},{immediate:!0,deep:!0});const r3=async()=>{Yr.setLinkMenuInfo(null),Yr.setActiveMenuPath(R0.value),vr.value=null,Pr.setRouteToChildPath(""),Yr.setChildMenu("")},n3=a=>new RegExp("button","i").test(a),i3=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),Mc=a=>{if(i3(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&Yr.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},Ic=async(a,l,n)=>{var d,A,w,Y,z,$,O,S,k,_,b,C;let r="",i="";for(let R in l)(l==null?void 0:l[R])===a&&(i=R);n==null||n.forEach(R=>{(R==null?void 0:R.prop)===i&&(r=R==null?void 0:R.fatherPath)});let t=r===""?Cl.value:r;r!==""&&Yr.setCurrentMenuPath(t),Yr.setCurrentMenuPath(t+"/"+a),Yr.setContentLoading(!0),vr.value=await Jr(t+"/"+a,!0,{originPath:t+"/",row:l});let f=await Jr(t,!1),c=(d=f==null?void 0:f.filter(R=>(R==null?void 0:R.comp)==="Table"))==null?void 0:d[0],u=((z=(Y=(w=(A=c==null?void 0:c.compData)==null?void 0:A.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:w.contents)==null?void 0:Y[0])==null?void 0:z.prop)??((_=(k=(S=(O=($=c==null?void 0:c.compData)==null?void 0:$.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:O.contents)==null?void 0:S[0])==null?void 0:k[0])==null?void 0:_.prop),m=(C=(b=c==null?void 0:c.compData)==null?void 0:b.find(R=>(R==null?void 0:R.key)==="tableContents"))==null?void 0:C.contents;m=m==null?void 0:m.map(R=>({label:R==null?void 0:R[u],value:R==null?void 0:R[u]}));let y=Qn.value,x={value:a,condition:"child",options:m,relatedContent:t,isShow:!0};y=y==null?void 0:y.filter(R=>(R==null?void 0:R.condition)!=="child"),y.push(x),Sn.setSelectTitle(y),Sn.setChooseTitle([x]),Yr.setContentLoading(!1),Pr.setExtraContents([]),Sn.setSelectIndex(""),Sn.setSelectMenu(""),Pr.setItemData(vr.value),Pr.setOriginalData(vr.value)},o3=a=>{Nc.value=a},Ai=e.reactive({index:0,comp:null}),t3=e.computed(()=>{var a;return(a=vr.value)==null?void 0:a.map((l,n)=>({id:l.id,name:l.name,status:s3(l,n)}))}),Oc=(a,l)=>{var u,m,y,x,d;const n=l?a:a-2,r=(u=vr.value)==null?void 0:u[n],i=(y=(m=r==null?void 0:r.compData)==null?void 0:m.find(A=>(A==null?void 0:A.key)==="header"))==null?void 0:y.contents,t=i==null?void 0:i.findIndex(A=>(A==null?void 0:A.isMainKey)&&(A==null?void 0:A.label)!=="操作"),f=t===-1?0:t,c=(d=(x=r==null?void 0:r.compData)==null?void 0:x.find(A=>(A==null?void 0:A.key)==="tableContents"))==null?void 0:d.contents;return{valid:c==null?void 0:c.every(A=>A==null?void 0:A[f+1]),length:(c==null?void 0:c.length)||0}},s3=(a,l)=>{var r;let n="process";if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){const{valid:i,length:t}=Oc(l,!0);Ai.index===l?n="process":t===0?n="wait":n=i?"success":"error"}return n},Lc=a=>{var n,r,i,t,f;const l=a+1;if(l>1&&((i=(r=(n=vr.value)==null?void 0:n[a])==null?void 0:r.comp)==null?void 0:i.toUpperCase())==="TABLE"){const{valid:c}=Oc(l);c?(Ai.index=l,Ai.comp=(t=vr.value)==null?void 0:t[a]):Ja.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Ai.index=l,Ai.comp=(f=vr.value)==null?void 0:f[a]},Rc=e.computed(()=>{var a,l;return(l=(a=Bc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Rc.value,a=>{a&&Lc(0)},{immediate:!0});const Io=e.ref(0),$c=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=M.cloneDeep(a))==null?void 0:l.map(r=>(Io.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??Io.value,children:$c(r==null?void 0:r.children)},r))},c3=a=>{var n;return(n=M.cloneDeep(a))==null?void 0:n.map(r=>(Io.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??Io.value,children:$c(r==null?void 0:r.children)},r))},Vc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===l)?(n=M.cloneDeep(a))==null?void 0:n.filter(i=>(i==null?void 0:i.id)!==l):(a=a==null?void 0:a.map(r=>(r.children=Vc(r==null?void 0:r.children,l),r)),a)},Fc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=M.cloneDeep(a))==null?void 0:n.map(i=>((i==null?void 0:i.id)===(l==null?void 0:l.id)&&(i=l),i)):(a=a==null?void 0:a.map(r=>(r.children=Fc(r==null?void 0:r.children,l),r)),a)},Pc=(a,l)=>{var n;return a!=null&&a.find(r=>{var i;return(r==null?void 0:r.id)===((i=l==null?void 0:l.contents)==null?void 0:i.id)})?(n=M.cloneDeep(a))==null?void 0:n.map(i=>{var t;return(i==null?void 0:i.id)===((t=l==null?void 0:l.contents)==null?void 0:t.id)&&(i=l==null?void 0:l.contents),i}):(a=a==null?void 0:a.map(r=>(r.children=Pc(r==null?void 0:r.children,l),r)),a)},jc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=M.cloneDeep(a))==null?void 0:n.map(i=>((i==null?void 0:i.id)===(l==null?void 0:l.id)&&(i!=null&&i.children||(i.children=[]),i.children.push(l.contents)),i)):(a=a==null?void 0:a.map(r=>(r.children=jc(r==null?void 0:r.children,l),r)),a)},gr=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],u3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],d3=[{label:"新增",value:"add"}],Un=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:d3},{key:"background",label:"按钮背景色",type:"Color"}],qn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:u3},{key:"textColor",label:"按钮颜色",type:"Color"}],p3={class:"table-content"},f3={class:"menu-config-wrap"},h3=["onClick"],v3={key:0,class:"viewport-wrap"},m3=["onClick"],y3={title:"选择显示列信息"},g3={key:0,class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},b3=["title"],k3={class:"col-operate-wrap"},x3={key:0,class:"col-operate-radio-wrapper"},w3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},_3={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},S3={class:"pop-view"},E3={class:"pop-wrapper"},C3={class:"file-list-pop"},D3=["title","onClick"],T3=["onClick"],B3=["onClick"],N3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},A3={class:"form-content"},z3={key:0,class:"dialog-footer"},M3={class:"dialog-footer"},I3={class:"ocr-dialog-content"},O3={class:"ocr-steps"},L3={key:0,class:"ocr-action-buttons"},R3={key:1,class:"ocr-preview-area"},$3={class:"ocr-file-grid"},V3={class:"file-thumbnail"},F3=["src"],P3={key:1,class:"thumbnail-placeholder"},j3={class:"progress-svg",viewBox:"0 0 36 36"},H3=["stroke","stroke-width","stroke-dasharray"],U3={key:0,class:"progress-icon"},q3={key:1,class:"progress-icon"},W3=["onClick"],K3={class:"file-name"},G3={key:0,class:"ocr-recognize-button"},Y3={key:2,class:"ocr-progress-section"},J3={key:3,class:"ocr-confirm-area"},X3={class:"ocr-preview-tip"},Z3={class:"ocr-preview-table"},Q3={style:{display:"flex","align-items":"center",gap:"8px"}},eh={key:0},ah={key:4,class:"ocr-success-area"},lh={key:0,class:"ocr-dialog-footer"},rh={class:"form-content"},nh={style:{width:"100%",margin:"0","font-size":"14px","font-weight":"600"}},ih={style:{display:"flex","justify-content":"space-between",gap:"8px"}},oh={style:{display:"flex"}},Ns="ss-ocr-upload-history",th="ss-ocr-cert-history-v1",sh={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},calculator:{type:Array,default:()=>[]},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(a,{emit:l}){var Gt;const n=e.ref([]),r=Ot(M.pinia),i=e.ref(null),t=e.ref(new Set),f=e.ref(new Map),c=e.ref(!1),u=e.ref([]),m=e.ref(new Map),y=new Map,x=e.ref(new Map),d=a,A=e.ref((d==null?void 0:d.allowSelect)??!0),w=e.ref(((Gt=d==null?void 0:d.config)==null?void 0:Gt.showIndex)??!0),Y=e.ref(),z=e.ref(!0),$=e.ref(!1),O=e.ref([]),S={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},k=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),_=le.useOriginalState(M.pinia);let b="$R";const{originalPath:C}=M.storeToRefs(_),R=C.value,V=e.computed(()=>{var v;const p=(v=le.getAllLeafNodes(P.value)||[])==null?void 0:v.filter(N=>(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate");return p.length>0?p.every(N=>!!(N!=null&&N.sortable)):!1});e.computed(()=>{var v;return(v=P.value)==null?void 0:v.every(N=>N==null?void 0:N.filterable)}),e.computed(()=>{var v;return(v=P.value)==null?void 0:v.every(N=>N==null?void 0:N.operable)});const ae=e.ref(!0),ee=e.ref([]),_e=e.reactive({column:{},status:!1,text:"合计"}),ue=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),U=l,P=e.ref([]),X=e.ref([]),re=e.ref([]),he=e.reactive({prop:"",order:null}),$e=e.ref([]),se=e.ref(!1),B=e.ref(!1),oe=e.ref(null),{isUseBackdrop:W,initTrackFileType:ke,getFileExtension:Ie,setData:Ve,getFileInfo:Qe,getFilesInfo:Ea}=Co.useThreeSystem(),ie=e.ref([]),ua=e.ref(!1),ce=e.ref(),ea=M.useMenuState(),{importLoading:Me,activeMenuPath:de,contentLoading:fe,linkMenuInfo:Ke}=M.storeToRefs(ea),ka=le.useTableComp(M.pinia),Ba=M.useModelComp(M.pinia),q=li(M.pinia),{extraContents:F,cacheUpdatingData:Q,tableViewContents:pe,tableLoading:ve,pageMapState:da,lockingPage:ca}=M.storeToRefs(Ba),{selectTab:Ue}=M.storeToRefs(q),{compType:xa,hasEditable:Na}=ic.useRole(),Ce=e.ref([]),Pa=e.ref([]),Ca=e.ref(new Map);e.ref(!1);const oa=e.ref("");e.ref();const Aa=e.ref(!0),De=e.ref(0),wa=e.ref(!0),Je=e.ref(""),xe=e.ref(!1),H=e.ref(null);e.ref([]);const Oe=e.ref({label:"查看三维模型"}),Re=e.ref(!1),Ia=e.ref(),na=e.ref([]),za=e.ref([]),Ae=e.ref(!1),Pe=e.ref([]),je=e.ref([]),ze=e.ref([]),we=e.ref([]),tl=e.ref({dialogShow:!1,dialogTitle:""}),Dl=()=>{tl.value.dialogShow=!1,tl.value.dialogTitle=""},Ml=p=>{console.log("Received signature data:",p),tl.value.dialogShow=!1},jl=e.ref([]),gl=()=>{try{const p=localStorage.getItem(Ns),v=p?JSON.parse(p):[];jl.value=Array.isArray(v)?v:[]}catch{jl.value=[]}},er=()=>{try{localStorage.setItem(Ns,JSON.stringify(jl.value||[]))}catch{}},el=p=>{var ne,te,K;if(!p)return;const v=p.url||((ne=p==null?void 0:p.uploadResult)==null?void 0:ne.url)||"",N=p.name||((te=p==null?void 0:p.uploadResult)==null?void 0:te.name)||((K=p==null?void 0:p.uploadResult)==null?void 0:K.fileName)||"";if(!v&&!N)return;const I={name:N,url:v,ts:Date.now()},j=String(I.name||"").trim().toLowerCase(),D=(jl.value||[]).findIndex(ge=>String((ge==null?void 0:ge.name)||"").trim().toLowerCase()===j);D>-1&&jl.value.splice(D,1),jl.value.unshift(I),jl.value.length>20&&(jl.value=jl.value.slice(0,20)),er()};gl();const $l=(p,v)=>`${th}:${String(p??"")}:${String(v??"")}`,Wa=(p,v)=>{try{const N=sessionStorage.getItem($l(p,v)),I=N?JSON.parse(N):[];return Array.isArray(I)?I:[]}catch{return[]}},Kl=(p,v,N)=>{try{sessionStorage.setItem($l(p,v),JSON.stringify(Array.isArray(N)?N:[]))}catch{}},Yl=(p,v,N)=>{if(!v)return;const I=Wa(p,v),j=[N,...I||[]].filter(Boolean).slice(0,1);return Kl(p,v,j),j},ar=(p,v,N)=>{if(!v||!N)return;const I=$l(p,v),j=$l(p,N);try{const D=sessionStorage.getItem(I);if(!D)return;const ne=(()=>{try{const ge=JSON.parse(D);return Array.isArray(ge)?ge:[]}catch{return[]}})(),te=Wa(p,N),K=[...ne,...te||[]].filter(Boolean).sort((ge,me)=>Number((me==null?void 0:me.ts)||0)-Number((ge==null?void 0:ge.ts)||0)).slice(0,1);sessionStorage.setItem(j,JSON.stringify(K)),sessionStorage.removeItem(I)}catch{}},_l=e.ref(!1),br=e.ref(!1),va=e.ref([]),sl=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const pa=e.ref(!1),Ha=e.ref([]),la=e.ref(1),Ka=e.ref(new Map),Sl=e.ref(new Map),Ee=e.ref(0),ia=e.ref(!1),ja=e.ref([]),Te=e.ref([]),La=p=>{var v;try{const N=(v=le.getAllLeafNodes(P.value)||[])==null?void 0:v.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate");return(N==null?void 0:N.find(I=>(I==null?void 0:I.prop)===p||(I==null?void 0:I.label)===p))||null}catch{return null}},al=p=>{const v=La(p),N=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"Input";return pl.getComponent(N)||pl.getComponent("Input")},xl=e.ref([]),Nl=e.ref(null),Le=e.ref([]),ha=e.ref(null),ta=e.ref(""),ga=e.ref(!1),ma=e.ref([]),fl=e.ref(""),Fe=e.ref(!1),ml=e.ref([]),Be=e.ref([]),Pl=e.ref([]),Sa=e.ref(null),ul=e.ref([]),Za=e.ref("");e.computed(()=>{var p;try{const v=(p=le.getAllLeafNodes(P.value)||[])==null?void 0:p.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),N=new Map;return v==null||v.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&N.set(I.label,I.prop)}),N.get("编号")||""}catch{return""}});const bl=e.computed(()=>{var p;try{const v=(p=le.getAllLeafNodes(P.value)||[])==null?void 0:p.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),N=new Map;return v==null||v.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&N.set(I.label,I.prop)}),N.get("名称")||""}catch{return""}}),Ra=e.computed(()=>{var p;try{const v=(p=le.getAllLeafNodes(P.value)||[])==null?void 0:p.filter(I=>(I==null?void 0:I.type)!=="operate"&&(I==null?void 0:I.label)!=="操作"&&(I==null?void 0:I.prop)!=="operate"),N=new Map;return v==null||v.forEach(I=>{I!=null&&I.label&&(I!=null&&I.prop)&&N.set(I.label,I.prop)}),N.get("制造厂")||""}catch{return""}}),Rl=()=>{Fe.value=!1,ml.value=[],Be.value=[],Pl.value=[],Sa.value=null,ul.value=[],Za.value=""},Er=p=>p==null?!1:typeof p=="string"?p.trim()!=="":Array.isArray(p)?p.length>0:!0,kn=(p,v)=>{const N=(p==null?void 0:p.ocrRow)||{};for(const j of Object.keys(N))j==="id"||j==="_isOCRRow"||j==="_ocrTableId"||Er(N[j])&&(v[j]=N[j]);const I=Pa.value.find(j=>j.id===v.id);if(I)for(const j of Object.keys(N))j==="id"||j==="_isOCRRow"||j==="_ocrTableId"||Er(N[j])&&(I[j]=N[j]);Ca.value&&Ca.value.set(v.id,v),Yl(d==null?void 0:d.index,v.id,p==null?void 0:p.versionItem),Be.value=[...Be.value||[],JSON.parse(JSON.stringify(v))]},Ur=async(p,v=null)=>{var N,I,j,D,ne,te,K;try{const ge=(N=le.getAllLeafNodes(P.value)||[])==null?void 0:N.filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),me=new Map;ge==null||ge.forEach(ya=>{ya!=null&&ya.label&&(ya!=null&&ya.prop)&&me.set(ya.label,ya.prop)});const Ge=me.get("系统编号")||me.get("编号");if(!Ge){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const We=v||Sa.value;if((Array.isArray(We==null?void 0:We.result)?We.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let ya=0;ya<p.length;ya++){const Da=p[ya],Ta=Da[Ge];if(!Ta){console.warn(`第 ${ya+1} 条匹配行缺少系统编号,跳过`);continue}const Ze=`设备管理/试验设备/${Ta}`,nl=await M.getPageDataApi({platId:parseInt((I=Il.value)==null?void 0:I.plat_id),pageName:Ze});if(!((j=nl==null?void 0:nl.data)!=null&&j.result)||!Array.isArray(nl.data.result)){console.warn(`未找到详情页数据: ${Ze}`);continue}const ba=nl.data.result.find(sa=>(sa==null?void 0:sa.property_name)==="校检记录");if(!ba){console.warn(`详情页 ${Ze} 中未找到校检记录表`);continue}const il=(D=ba.contents)==null?void 0:D.find(sa=>(sa==null?void 0:sa.key)&&sa.key.startsWith("content_"));if(!il||!il.key){console.warn("校检记录表中未找到 content item");continue}const ye=il.key,Fa=Array.isArray(il.value)?il.value:[];if(Fa.length>=5){const T=[...Fa].sort((Ma,Ua)=>{const ol=Number((Ma==null?void 0:Ma.create_time)||0),Ga=Number((Ua==null?void 0:Ua.create_time)||0);return ol-Ga})[0];T!=null&&T.id&&await M.pageBatchDeleteApi({platId:parseInt((ne=Il.value)==null?void 0:ne.plat_id),changeContents:[{tableName:ye,tableContents:[{id:T.id}]}]})}const fa=(te=ge==null?void 0:ge.find(sa=>(sa==null?void 0:sa.label)==="证书附件"))==null?void 0:te.prop,Ya=String(Date.now()),$a={id:Ya},Ne=Fa[0]||{},Z=new Date().toISOString().split("T")[0];if(Object.keys(Ne||{}).forEach(sa=>{if(sa!=="id"){if(sa==="证书附件"){$a[sa]="";return}if(sa==="校检日期"||sa==="检校日期"){$a[sa]=Da[sa]||Da.校检日期||Da.检校日期||Z;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(sa)){$a[sa]=Da[sa]??"";return}$a[sa]=Da[sa]??""}}),fa&&Da[fa]){const sa=Da[fa];if(Array.isArray(sa)&&sa.length>0)$a.证书附件=JSON.stringify(sa.map(T=>({url:(T==null?void 0:T.url)||"",name:(T==null?void 0:T.name)||(T==null?void 0:T.fileName)||"",fileName:(T==null?void 0:T.fileName)||(T==null?void 0:T.name)||""})).filter(T=>T.url||T.name));else if(typeof sa=="string")try{const T=JSON.parse(sa);$a.证书附件=sa}catch{$a.证书附件=JSON.stringify([{url:sa,name:sa,fileName:sa}])}}console.log(ye,"tableName","inspectionRecordRow",$a),await M.pageBatchAddApi({platId:parseInt((K=Il.value)==null?void 0:K.plat_id),changeContents:[{tableName:ye,tableContents:[$a]}]});const He=ba==null?void 0:ba.object_id;if(He&&Ya){const sa=fa&&Da[fa]?Da[fa]:null;let T=[],Ma="",Ua=!1;if(Array.isArray(sa)&&sa.length>0){T=sa.map(dl=>({name:(dl==null?void 0:dl.name)||(dl==null?void 0:dl.fileName)||"",url:(dl==null?void 0:dl.url)||""})).filter(dl=>dl.url||dl.name);const Ga=sa[0];Ma=(Ga==null?void 0:Ga.url)||"";const _a=(Ga==null?void 0:Ga.name)||(Ga==null?void 0:Ga.fileName)||"";Ua=String(_a).toLowerCase().endsWith(".pdf")||String(Ma).toLowerCase().endsWith(".pdf")}else if(typeof sa=="string")try{const Ga=JSON.parse(sa);Array.isArray(Ga)?(T=Ga.map(_a=>({name:(_a==null?void 0:_a.name)||(_a==null?void 0:_a.fileName)||"",url:(_a==null?void 0:_a.url)||""})).filter(_a=>_a.url||_a.name),T.length>0&&(Ma=T[0].url||"",Ua=String(T[0].name).toLowerCase().endsWith(".pdf")||String(Ma).toLowerCase().endsWith(".pdf"))):(Ma=sa,Ua=String(sa).toLowerCase().endsWith(".pdf"))}catch{Ma=sa,Ua=String(sa).toLowerCase().endsWith(".pdf")}const ol={ts:Date.now(),versionId:String(Date.now())+"_"+String(ya),label:new Date().toLocaleString(),certType:Da.证书类型||"",certNo:Da.证书编号||"",fileType:Ua?"pdf":"image",sourceUrl:Ua?Ma:"",images:T};Yl(He,Ya,ol)}}}catch(ge){console.error("向校检记录表插入OCR识别结果失败:",ge),Ja.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},mr=p=>{const v=Array.isArray(p)?p:ml.value||[];if(v.length===0){Rl();return}if(v.find(D=>(D==null?void 0:D.__decision)==="replace"&&!(D!=null&&D.selectedTargetId))){Ja.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}v.forEach(D=>{var te;const ne=D==null?void 0:D.__decision;if(!(!ne||ne==="skip")){if(ne==="add"){Yl(d==null?void 0:d.index,(te=D==null?void 0:D.ocrRow)==null?void 0:te.id,D==null?void 0:D.versionItem),Pl.value=[...Pl.value||[],D.ocrRow];return}if(ne==="replace"){const K=D==null?void 0:D.selectedTargetId,ge=(Ce.value||[]).find(me=>String(me==null?void 0:me.id)===String(K));if(!ge)return;kn(D,ge)}}}),(Be.value||[]).length>0&&(Ce.value=[...Ce.value||[]]),(Pl.value||[]).length>0&&(Ce.value=[...Ce.value||[],...Pl.value||[]],Pa.value=[...Pa.value||[],...Pl.value||[]],(Pl.value||[]).forEach(D=>{var ne,te;return(te=(ne=Ca.value)==null?void 0:ne.set)==null?void 0:te.call(ne,D.id,D)})),qr.value=Ce.value;const I=Be.value||[],j=Pl.value||[];if(I.length>0&&(U("change",{buttonName:"编辑",singleContent:I,content:Ce.value,relatedContents:d==null?void 0:d.related,index:d==null?void 0:d.index,parentTableId:d==null?void 0:d.parentTableId,columns:P.value,name:d==null?void 0:d.compName}),Ur(I)),j.length>0){const D=Sa.value;U("change",{buttonName:"OCR批量新增",content:Ce.value,index:d==null?void 0:d.index,parentTableId:d==null?void 0:d.parentTableId,column:P.value,ocrRows:j,relatedContents:d==null?void 0:d.related,uploadedFiles:(Array.isArray(D==null?void 0:D.result)?D.result:[]).map(ne=>(Array.isArray(ne==null?void 0:ne.图片信息)?ne.图片信息:[]).map(te=>({url:(te==null?void 0:te.url)||"",name:(te==null?void 0:te.name)||"",fileName:(te==null?void 0:te.name)||""})).filter(te=>te.url)),ocrResult:D,matchedCount:(I||[]).length,newCount:(j||[]).length})}Ja.ElMessage.success("已提交候选处理结果"),Rl()},Xr=Sc(),on=e.computed(()=>Xr.getConfig()),Or=e.ref(),rr=e.ref(),Qr=bc(M.pinia),qr=e.ref(),ir=e.ref(0),Cr=M.useUnit(M.pinia),{selectIndex:en,selectMenu:ql,selectTitle:or}=M.storeToRefs(Cr),{selectString:kr}=M.storeToRefs(Qr),Lr=M.useLoginState(M.pinia),{loginUserInfo:Il}=M.storeToRefs(Lr),an=e.ref(720),tr=e.ref(!1),_r=e.ref(!1),Mr=e.ref([]),Br=e.ref(),zn=e.ref(!0),ri=e.ref(!0);e.ref([]);const Mn=e.inject("contentRef");e.provide("contentRef",Mn),e.provide("getSuggestListForCell",Ru),e.provide("getSuggestLoadingForCell",(p,v)=>{const N=`${p==null?void 0:p.id}:${(v==null?void 0:v.prop)||(v==null?void 0:v.property)}`;return x.value.get(N)||!1}),e.watch(()=>{var p;return(p=Ce.value)==null?void 0:p.length},p=>{ue.total=p}),e.watch(()=>pe.value,async()=>{var v,N,I,j,D,ne,te,K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze;if(((v=pe.value)==null?void 0:v.length)===0||!((N=d==null?void 0:d.itemData)!=null&&N.find(nl=>(nl==null?void 0:nl.key)==="columnPath"))||!((I=d==null?void 0:d.itemData)!=null&&I.find(nl=>(nl==null?void 0:nl.key)==="pageColumn")))return;let p=(ge=(K=(te=(ne=(D=(j=d==null?void 0:d.itemData)==null?void 0:j.find(nl=>(nl==null?void 0:nl.key)==="pageColumn"))==null?void 0:D.contents)==null?void 0:ne.split("["))==null?void 0:te[1])==null?void 0:K.split("]"))==null?void 0:ge[0];((Xe=(We=(Ge=(me=d==null?void 0:d.itemData)==null?void 0:me.find(nl=>(nl==null?void 0:nl.key)==="pageColumn"))==null?void 0:Ge.contents)==null?void 0:We.split("["))==null?void 0:Xe[0])+((Da=(ya=pe.value)==null?void 0:ya.find(nl=>(nl==null?void 0:nl.key)===p))==null?void 0:Da.value),(Ze=(Ta=d==null?void 0:d.itemData)==null?void 0:Ta.find(nl=>(nl==null?void 0:nl.key)==="pageGroup"))==null||Ze.contents,Kt(compData,d.allMapContents)},{deep:!0});const wn=p=>{var N,I,j,D,ne;const v=(I=(N=P.value)==null?void 0:N.filter(te=>te==null?void 0:te.mainKey))==null?void 0:I.map(te=>te==null?void 0:te.prop);if(v.length===0){const te=(j=P.value)==null?void 0:j.map(K=>K==null?void 0:K.prop);return(D=te==null?void 0:te.map(K=>p==null?void 0:p[K]))==null?void 0:D.join("|")}return(ne=v==null?void 0:v.map(te=>p==null?void 0:p[te]))==null?void 0:ne.join("|")},Kn=p=>{var te,K,ge,me,Ge;const v=(K=(te=P.value)==null?void 0:te.filter(We=>We==null?void 0:We.required))==null?void 0:K.map(We=>We==null?void 0:We.prop),N=[];if(p==null||p.forEach(We=>{v==null||v.forEach(Xe=>{const ya=We[Xe];(ya==null||ya==="")&&(N.includes(Xe)||N.push(Xe))})}),N.length>0)return Ja.ElMessage.warning(`请填写必填项:${N.join("、")}`);const I=new Map,j=new Map;(ge=Ce.value)==null||ge.forEach(We=>{const Xe=wn(We);I.set(Xe,We)}),p==null||p.forEach(We=>{const Xe=wn(We);j.set(Xe,We)});const D=p==null?void 0:p.filter(We=>I.has(wn(We))),ne=(me=Ce.value)==null?void 0:me.filter(We=>j.has(wn(We)));return(D==null?void 0:D.length)>0&&(J.columns=(Ge=P.value)==null?void 0:Ge.filter(We=>(We==null?void 0:We.label)!=="操作"),J.existRows=ne,J.tableData=D,J.show=!0),J.newRows=p==null?void 0:p.filter(We=>{const Xe=wn(We);return!I.has(Xe)}),J.newRows},dn=e.ref(""),In=e.ref(null),ni=async()=>{var p,v,N,I,j,D;try{const ne=await M.quoteApi({related:[{menus:de.value,groups:d==null?void 0:d.compName}],platId:parseInt((p=Il.value)==null?void 0:p.plat_id)});if(((v=ne==null?void 0:ne.data)==null?void 0:v.code)===200){In.value=(N=ne==null?void 0:ne.data)==null?void 0:N.result;const te=(I=P.value)==null?void 0:I.map(me=>(me==null?void 0:me.prop)||(me==null?void 0:me.label)),K=pn(te,(j=ne==null?void 0:ne.data)==null?void 0:j.result),ge=K==null?void 0:K.flatMap(me=>me==null?void 0:me.quote);(ge==null?void 0:ge.length)>0&&(dn.value=(D=ge==null?void 0:ge.map(me=>me==null?void 0:me.menus))==null?void 0:D.join("、"))}}catch(ne){throw new Error(ne)}};function pn(p,v){var N;return(N=v.filter(I=>I.struct&&Array.isArray(I.struct)?I.struct.some(j=>j.words&&Array.isArray(j.words)?j.words.some(D=>p.includes(D)):!1):!1))==null?void 0:N.map(I=>{const j={...I};return j.struct&&Array.isArray(j.struct)&&(j.struct=j.struct.filter(D=>D.words&&Array.isArray(D.words)?D.words.some(ne=>p.includes(ne)):!1)),j})}const ii=async(p,v)=>{var N,I;try{In.value||await ni();const j=v==null?void 0:v.map(ne=>{const te=Object.keys(ne),K={};return te.forEach((ge,me)=>{K[p[me]]=ne[ge]}),K}),D=Kn(j);if(!D||(D==null?void 0:D.length)===0)return;J.show||await qe(D)}catch(j){throw Ja.ElMessage.error("数据导入处理失败"),await M.pageBatchAddApi({platId:parseInt((N=Il==null?void 0:Il.value)==null?void 0:N.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(j),is_delete:!1,request_table:(I=d==null?void 0:d.related)==null?void 0:I.find(D=>D==null?void 0:D.includes("content")),request_type:"error"}]}]}),new Error(j)}},Tn=async p=>{var D,ne,te,K,ge,me,Ge;let v=re.value;v!=null&&v.find(We=>(p==null?void 0:p.key)===(We==null?void 0:We.key))&&(v=v==null?void 0:v.filter(We=>(p==null?void 0:p.key)!==(We==null?void 0:We.key))),v.push({key:p==null?void 0:p.key,value:[(ne=p==null?void 0:p.value)==null?void 0:ne[((D=p==null?void 0:p.value)==null?void 0:D.length)-1]]});let N=we.value;N=N==null?void 0:N.map(We=>{var Xe,ya;return(We==null?void 0:We.type)==="Select"&&(p==null?void 0:p.key)===(We==null?void 0:We.prop)&&Array.isArray(We.value)&&(Xe=We.value)!=null&&Xe.every(Da=>typeof Da=="string")&&(We.selectValue=(ya=v==null?void 0:v.find(Da=>(Da==null?void 0:Da.key)===(We==null?void 0:We.prop)))==null?void 0:ya.value),We});let I=(K=(te=N==null?void 0:N.find(We=>(We==null?void 0:We.prop)===(p==null?void 0:p.key)))==null?void 0:te.optionUrl)==null?void 0:K.menuId,j=N==null?void 0:N.find(We=>(We==null?void 0:We.prop)===(p==null?void 0:p.key));if(I){let We=await Ct(j==null?void 0:j.optionUrl,I),Xe,ya=ee.value,Da=(Ge=(me=(ge=we.value)==null?void 0:ge.find(Ta=>{var Ze;return(Ze=j==null?void 0:j.optionUrl)==null?void 0:Ze.menuId}))==null?void 0:me.selectValue)==null?void 0:Ge[0];if(We==null||We.forEach(Ta=>{var Ze,nl,ba,il,ye,Fa,fa,Ya,$a,Ne;if(I){let Z=(nl=(Ze=we.value)==null?void 0:Ze.find(sa=>{var T,Ma;return((T=j==null?void 0:j.optionUrl)==null?void 0:T.menuId)===((Ma=sa==null?void 0:sa.optionUrl)==null?void 0:Ma.menuId)}))==null?void 0:nl.prop,He=(il=(ba=N==null?void 0:N.find(sa=>(sa==null?void 0:sa.prop)===Z))==null?void 0:ba.selectValue)==null?void 0:il[0];Z!=null&&Z.includes("·")&&(Z=(ye=Z==null?void 0:Z.split("·"))==null?void 0:ye[0],He=($a=(Ya=(fa=p==null?void 0:p.value)==null?void 0:fa[((Fa=p==null?void 0:p.value)==null?void 0:Fa.length)-1])==null?void 0:Ya.split(" "))==null?void 0:$a[0]),ya!=null&&ya.find(sa=>(sa==null?void 0:sa.value)===Da)?Xe=(Ne=ya==null?void 0:ya.find(sa=>(sa==null?void 0:sa.value)===Da))==null?void 0:Ne.objectValue:Ta[Z]===He&&(Xe=Ta)}}),Xe){let Ta=N;Ta=Ta==null?void 0:Ta.map(Ze=>{var nl,ba,il,ye,Fa,fa;return I&&(Xe!=null&&Xe[Ze==null?void 0:Ze.prop])&&Je.value==="新增"&&(Ze==null?void 0:Ze.prop)!==(j==null?void 0:j.prop)?Ze.value=(Xe==null?void 0:Xe[Ze==null?void 0:Ze.prop])||(Xe==null?void 0:Xe[(ye=(il=(ba=(nl=Ze==null?void 0:Ze.optionUrl)==null?void 0:nl.groupSelect)==null?void 0:ba[1])==null?void 0:il.replaceAll("[",""))==null?void 0:ye.replaceAll("]","")]):Ze.value=(fa=(Fa=we.value)==null?void 0:Fa.find(Ya=>(Ya==null?void 0:Ya.prop)===(Ze==null?void 0:Ze.prop)))==null?void 0:fa.value,Ze}),we.value=Ta}}re.value=v},Ri=async(p,v)=>{var N,I,j,D,ne;if((N=p==null?void 0:p.toString())!=null&&N.includes(".txt")||(I=p==null?void 0:p.toString())!=null&&I.includes(".cpt")||(j=p==null?void 0:p.toString())!=null&&j.includes(".cyd")){const te=await Ja.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}}),K=new Blob([te.data],{type:"application/octet-stream;charset=UTF-8"});let ge=URL.createObjectURL(K);ce.value=[{name:(ne=p==null?void 0:p.split("/"))==null?void 0:ne[((D=p==null?void 0:p.split("/"))==null?void 0:D.length)-1],blobUrl:ge}],ua.value=!0}else Array.isArray(v)&&(v==null?void 0:v.length)>0&&U("routeUrl",{isEdit:!1,routerUrl:v})};e.onBeforeUnmount(()=>{ri.value=!1;let p=ir.value;ir.value=p+1});const gi=e.reactive({prop:"",order:null}),Vo=e.computed(()=>{const p=(Ce.value??[]).slice(),v=gi.prop||he.prop,N=gi.order||he.order;if(!v||!N)return p;const I=N==="ascending",j=ne=>{if(v)return ne&&Object.prototype.hasOwnProperty.call(ne,v)?ne[v]:v.includes(".")?v.split(".").reduce((te,K)=>te==null?te:te[K],ne):ne==null?void 0:ne[v]},D=ne=>{if(ne==null)return{ok:!1,value:NaN};if(typeof ne=="number")return{ok:Number.isFinite(ne),value:ne};const te=String(ne).trim();if(te==="")return{ok:!1,value:NaN};const K=te.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(K))return{ok:!1,value:NaN};const ge=Number(K);return{ok:Number.isFinite(ge),value:ge}};return p.sort((ne,te)=>{const K=j(ne),ge=j(te);if(K==null&&ge==null)return 0;if(K==null)return I?-1:1;if(ge==null)return I?1:-1;const me=D(K),Ge=D(ge);if(me.ok&&Ge.ok)return I?me.value-Ge.value:Ge.value-me.value;const We=ye=>{if(ye==null)return{ok:!1,value:NaN};const Fa=String(ye).trim();if(Fa==="")return{ok:!1,value:NaN};const fa=Fa.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!fa)return{ok:!1,value:NaN};const Ya=fa[1]?-1:1,$a=Number(fa[2]),Ne=Number(fa[3]),Z=Number(fa[4]);return[$a,Ne,Z].some(He=>Number.isNaN(He))?{ok:!1,value:NaN}:Ne>=60||Z>=60?{ok:!1,value:NaN}:{ok:!0,value:Ya*($a*3600+Ne*60+Z)}},Xe=We(K),ya=We(ge);if(Xe.ok&&ya.ok)return I?Xe.value-ya.value:ya.value-Xe.value;const Da=new Date(K).getTime(),Ta=new Date(ge).getTime(),Ze=!Number.isNaN(Da),nl=!Number.isNaN(Ta);if(Ze&&nl)return I?Da-Ta:Ta-Da;const ba=String(K),il=String(ge);return I?ba.localeCompare(il):il.localeCompare(ba)})}),Bn=e.computed(()=>{var N;const p=(ue.currentPage-1)*ue.pageSize,v=p+ue.pageSize;return U("getSliceContLength",ue),(N=Vo.value)==null?void 0:N.slice(p,v)}),Fo=p=>{ue.currentPage=p,U("getSliceContLength",ue)},Po=p=>{var I;ue.pageSize=p;const v=((I=Ce.value)==null?void 0:I.length)??0,N=p>0?Math.ceil(v/p):1;ue.currentPage>N&&(ue.currentPage=N||1,Ja.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),U("getSliceContLength",ue)},jo=({prop:p,order:v})=>{gi.prop=p,gi.order=v,ue.currentPage=1};function eo(p){const v=[];function N(I,j=""){I.forEach(D=>{D.children&&D.children.length>0?N(D.children,D.prop):v.push(D.prop)})}return N(p),v}const ao=(p,v)=>{var te,K,ge,me;let N=(K=(te=P.value)==null?void 0:te.map(Ge=>Ge==null?void 0:Ge.prop))==null?void 0:K.filter(Ge=>Ge!=="operate");((ge=P.value)==null?void 0:ge.some(Ge=>{var We;return((We=Ge==null?void 0:Ge.children)==null?void 0:We.length)>0}))&&(N=eo((me=P.value)==null?void 0:me.filter(Ge=>(Ge==null?void 0:Ge.prop)!=="operate")));let j;if(j=(p==null?void 0:p.length)===(N==null?void 0:N.length)?p:p.slice(0,N==null?void 0:N.length),!(j==null?void 0:j.every(Ge=>N==null?void 0:N.find(We=>Ge===We))))return Ja.ElMessage.error("导入的数据表头不匹配");ii(j,v)},tn=(p,v)=>{var j;const N=p==null?void 0:p.filter(D=>D!=="序号"),I=v==null?void 0:v.map(D=>{const ne=Object.entries(D);return ne.shift(),Object.fromEntries(ne)});Ba.setRefreshCurStructure(!1),((j=P.value)==null?void 0:j.length)===0||ao(N,I)},Ho=(p,v,N,I)=>{const j=[],D=[],ne=ge=>Object.keys(ge).length;for(const ge in p)if(p[ge]!==void 0){const me=p[ge],Ge=[];for(const[We,Xe]of Object.entries(me))Ge.push(Xe),D.length<ne(me)&&D.push(We);j.push(Ge)}j.unshift(D);const te=le.utils.aoa_to_sheet(j),K=le.utils.book_new();le.utils.book_append_sheet(K,te,I),le.writeFileSync(K,`${v}.xlsx`),Mr.value=[]},lo=async(p,v,N,I=!1,j)=>{try{Ba.setRefreshCurStructure(!1)}catch(D){Ja.ElMessage.error(D)}},Uo=async(p,v)=>{await lo()},qo=async(p,v)=>{await lo("columnType",v,p,!1)},Wo=async({newRow:p,targetIndex:v})=>{var j;if(!Na(d.config,{type:xa.TABLE}))return;const I=(ue.currentPage-1)*ue.pageSize+(v??0);p._isTemp=!0;try{(p.sort===void 0||p.sort===null||String(p.sort).trim()==="")&&(p.sort=si(I,Ce.value||[]))}catch{}Ce.value.splice(I,0,p),await e.nextTick(),f.value.has(p.id)||f.value.set(p.id,M.cloneDeep(p)),Ce.value=(j=Ce.value)==null?void 0:j.map(D=>({...D,tableEditType:(D==null?void 0:D.id)===p.id?"edit":(D==null?void 0:D.tableEditType)??"text"})),t.value.add(p.id),tr.value=!0},Ko=(p,v,N,I=[])=>(!Array.isArray(v)||v.length===0||v.forEach(j=>{const D=j==null?void 0:j.prop;if(!D)return;let ne=p==null?void 0:p[D];if(ne==null||String(ne).trim()==="")return;ne=String(ne);const te=new Set([...(Array.isArray(N)?N:[]).filter(me=>(me==null?void 0:me.id)!==(p==null?void 0:p.id)).map(me=>me==null?void 0:me[D]).filter(me=>me!=null).map(me=>String(me)),...(Array.isArray(I)?I:[]).map(me=>me==null?void 0:me[D]).filter(me=>me!=null).map(me=>String(me))]);if(!te.has(ne))return;let K=1,ge="";for(;ge=`${ne}(${K})`,!!te.has(ge);)K++;p[D]=ge}),p),$i=async()=>{var j,D,ne,te,K,ge,me,Ge;const p=Array.from(t.value||[]);if(p.length===0)return;const v=(D=le.getColumnChild((j=M.cloneDeep(P.value))==null?void 0:j.filter(We=>(We==null?void 0:We.label)!=="操作")))==null?void 0:D.filter(We=>(We==null?void 0:We.required)===!0);if((v==null?void 0:v.length)>0)for(let We=0;We<p.length;We++){const Xe=p[We],ya=(ne=Ce.value)==null?void 0:ne.find(Da=>(Da==null?void 0:Da.id)===Xe);if(ya)for(let Da=0;Da<v.length;Da++){const Ta=v[Da],Ze=Ta==null?void 0:Ta.prop,nl=(Ta==null?void 0:Ta.label)??Ze,ba=ya==null?void 0:ya[Ze];if(ba===""||ba===null||ba===void 0||Array.isArray(ba)&&ba.length===0){Ja.ElMessage.error(`${nl}不能为空`);let ye={};ye.id=ya==null?void 0:ya.id;const Fa={fixContent:[ye],buttonName:"修改",relatedContents:d==null?void 0:d.related,name:d==null?void 0:d.compName,columns:P.value};U("change",Fa);return}}}const N=[],I=[];if(p.forEach(We=>{var nl;const Xe=(nl=Ce.value)==null?void 0:nl.find(ba=>(ba==null?void 0:ba.id)===We);if(!Xe)return;if(Xe!=null&&Xe._isTemp){const il=(le.getAllLeafNodes(P.value)||[]).filter(Ne=>(Ne==null?void 0:Ne.mainKey)===!0||(Ne==null?void 0:Ne.isMainKey)===!0),ye=Ce.value.findIndex(Ne=>(Ne==null?void 0:Ne.id)===We),Fa=ye>=0?ye+1:Ce.value.length+1;Ko(Xe,il,Ce.value,N);const fa={id:Fa.toString()};(Xe==null?void 0:Xe.sort)!==void 0&&(Xe==null?void 0:Xe.sort)!==null&&String(Xe.sort).trim()!==""?fa.sort=String(Xe.sort):fa.sort=si(ye>=0?ye:Ce.value.length-1,Ce.value||[]),(le.getAllLeafNodes(P.value)||[]).filter(Ne=>(Ne==null?void 0:Ne.type)!=="operate"&&(Ne==null?void 0:Ne.label)!=="操作"&&(Ne==null?void 0:Ne.prop)!=="operate").forEach(Ne=>{const Z=Ne==null?void 0:Ne.prop;if(Z){const He=Xe[Z];He!==void 0?fa[Z]=He??"":fa[Z]=""}}),N.push(fa);return}const Da=(le.getAllLeafNodes(P.value)||[]).filter(ba=>(ba==null?void 0:ba.type)!=="operate"&&(ba==null?void 0:ba.label)!=="操作"&&(ba==null?void 0:ba.prop)!=="operate"),Ta=new Set(Da.map(ba=>ba==null?void 0:ba.prop).filter(Boolean)),Ze={};for(const ba of Ta)Object.prototype.hasOwnProperty.call(Xe,ba)&&(Ze[ba]=Xe[ba]);I.push({id:Xe.id,value:{tableData:Ze}})}),Ba.setTableLoading(d==null?void 0:d.index),I.length>0){const We=I.map(ya=>{const Da={id:ya.id,...ya.value.tableData};return delete Da._isOCRRow,delete Da._ocrTableId,delete Da._isTemp,delete Da.tableEditType,delete Da.index,Da}),Xe=[{tableName:((te=d==null?void 0:d.related)==null?void 0:te.find(ya=>ya==null?void 0:ya.includes("content")))??"content_"+(d==null?void 0:d.index),tableContents:We}];try{await M.pageBatchUpdateApi({platId:parseInt((K=Il.value)==null?void 0:K.plat_id),changeContents:Xe})}catch(ya){Ja.ElMessage.error(((me=(ge=ya==null?void 0:ya.response)==null?void 0:ge.data)==null?void 0:me.message)||(ya==null?void 0:ya.message)||"保存失败"),Ba.setTableLoading(!1);return}}if(N.length>0){const We={fixContent:N,buttonName:"新增",relatedContents:d==null?void 0:d.related,name:d==null?void 0:d.compName,columns:P.value};U("change",We)}Ja.ElMessage.success("保存成功"),t.value.clear(),f.value.clear(),Ce.value=(Ge=Ce.value)==null?void 0:Ge.map(We=>({...We,tableEditType:"text"})),tr.value=!1,Ba.setRefreshCurStructure(!0)},Go=()=>{var v;const p=Array.from(t.value||[]);if(p.length===0){tr.value=!1;return}p.forEach(N=>{var D,ne;const I=f.value.get(N),j=(D=Ce.value)==null?void 0:D.find(te=>(te==null?void 0:te.id)===N);if(j!=null&&j._isTemp){Ce.value=Ce.value.filter(te=>(te==null?void 0:te.id)!==j.id);return}if(I){const te=(ne=Ce.value)==null?void 0:ne.findIndex(K=>(K==null?void 0:K.id)===N);te!==-1&&(Ce.value[te]={...Ce.value[te],...I})}}),t.value.clear(),f.value.clear(),Ce.value=(v=Ce.value)==null?void 0:v.map(N=>({...N,tableEditType:"text"})),tr.value=!1},bi=e.ref(!1),oi=async p=>{var j,D,ne,te;if(!tr.value||p!=null&&p.isComposing||(p==null?void 0:p.key)!=="Enter")return;const v=p==null?void 0:p.target;if(((D=(j=v==null?void 0:v.tagName)==null?void 0:j.toLowerCase)==null?void 0:D.call(j))==="textarea")return;const I=document.getElementById("excel-table");I&&!I.contains(v)||((ne=v==null?void 0:v.blur)==null||ne.call(v),(te=p.preventDefault)==null||te.call(p),await e.nextTick(),await On())},On=async()=>{if(Q.value){tr.value=!1;return}if(!bi.value){bi.value=!0;try{Array.from(t.value||[]).length>0?await $i():tr.value=!1}finally{Promise.resolve().then(()=>{bi.value=!1})}}},ki=p=>{Mr.value=p},Yo=(p,v)=>{Br.value===v?zn.value=!1:zn.value=!0,Br.value=v==null?void 0:v.changeProp},ro=p=>{if(!p)return;const{item:v,value:N}=p,I=we.value.find(j=>j.prop==v.prop);I&&I.contents.push({label:N,value:N})},Gn=e.computed(()=>{var N,I,j;const p=(N=P.value)==null?void 0:N.some(D=>D==null?void 0:D.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",p?"inline-block":"none"),(j=(I=P.value)==null?void 0:I.filter(D=>(D==null?void 0:D.label)!=="操作"))==null?void 0:j.map(D=>({...D,filterable:!!(D!=null&&D.filterable),showSummary:!!(D!=null&&D.showSummary),operable:!!(D!=null&&D.operable),fixed:D==null?void 0:D.fixed}))}),Vi=async(p,v,N)=>{const I=M.cloneDeep(P.value);await e.nextTick();const j=I==null?void 0:I.map(ne=>(N==null?void 0:N.label)===(ne==null?void 0:ne.label)?{...ne,[v]:p}:ne),D=Fn(j);await Es(d.index,D),P.value=j,X.value=D},Fn=p=>{var j;const v=p||[];return((j=le.getAllLeafNodes(v)||[])==null?void 0:j.filter(D=>(D==null?void 0:D.prop)&&(D==null?void 0:D.type)!=="operate"&&(D==null?void 0:D.label)!=="操作"&&(D==null?void 0:D.prop)!=="operate")).map(D=>{const{prop:ne}=D;return E0(ne,D)})},Jo=async p=>{let v=await D0(d.index);v||(v=Fn(p)),X.value=v},Xo=async(p,v)=>{const N=M.cloneDeep(P.value),I=ne=>Array.isArray(ne)?ne.map(te=>{const K=Array.isArray(te==null?void 0:te.children)&&te.children.length>0,ge={...te};return(ge==null?void 0:ge.prop)==="operate"||(ge==null?void 0:ge.label)==="操作"||(ge==null?void 0:ge.type)==="operate"?(ge.sortable=!1,ge.filterable=!1,ge.operable=!1):ge.sortable=K?!1:!!p,K&&(ge.children=I(ge.children)),ge}):ne,j=I(N),D=Fn(j);await Es(d.index,D),P.value=j,X.value=D,await e.nextTick(),ir.value=ir.value+1},Zo=()=>{xe.value=!1},Qo=p=>{U("clickTrigger",p)},no=async p=>{var D,ne,te,K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl,ba;const v=p==null?void 0:p.row,N=p==null?void 0:p.rowData,I=p==null?void 0:p.suffix;if((D=v==null?void 0:v.toString())!=null&&D.includes(".urdf")||p!=null&&p.isUrdf||I!=null&&I.includes(".urdf")){if(v.includes(",")){Ja.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(W(v)){const ye={files:[Qe(v)],data:{}};Ve(ye);return}Pe.value=[{url:v,extension:Ie(v)}],B.value=!0,oe.value={data:M.cloneDeep(N)},se.value=!0;return}let j=[];if((ne=v==null?void 0:v.toString())!=null&&ne.includes(".stl")||(te=v==null?void 0:v.toString())!=null&&te.includes(".STL")||(K=v==null?void 0:v.toString())!=null&&K.includes(".obj")||(ge=v==null?void 0:v.toString())!=null&&ge.includes(".mtl")){const il=(me=v==null?void 0:v.toString())==null?void 0:me.split(","),ye=Ea(il),Fa=ye==null?void 0:ye[0];if(W(Fa==null?void 0:Fa.extension)){Ve({files:ye,data:{}});return}Pe.value=ye,B.value=!1,se.value=!0;return}if((Ge=v==null?void 0:v.toString())!=null&&Ge.includes(".stl")||(We=v==null?void 0:v.toString())!=null&&We.includes(".STL")||(Xe=v==null?void 0:v.toString())!=null&&Xe.includes(".obj")||(ya=v==null?void 0:v.toString())!=null&&ya.includes(".mtl")||I!=null&&I.includes(".stl")||I!=null&&I.includes(".STL")||I!=null&&I.includes(".obj")||I!=null&&I.includes(".mtl")){let il,ye=[],Fa={};if(Array.isArray(v)?il=v:il=v==null?void 0:v.split(","),il==null||il.forEach(fa=>{fa.includes(".mtl")?ye.push(fa):Fa.blob=Fa.blob?Fa.blob+","+fa:fa}),(ye==null?void 0:ye.length)>0&&(Fa.mtlBlobs=ye),I&&(Fa.suffix=I),(Ta=(Da=Object.values(Fa))==null?void 0:Da[0])!=null&&Ta.includes("http:"))j.push(Fa);else{const fa=new Blob([Fa.blob],{type:"application/octet-stream;charset=UTF-8"});let Ya=URL.createObjectURL(fa),$a="";(Ze=v==null?void 0:v.split("/"))==null||Ze.forEach((Ne,Z)=>{var He;Z===((He=v==null?void 0:v.split("/"))==null?void 0:He.length)-1&&($a=Ne)}),(nl=Fa.blob)!=null&&nl.includes(".stl")&&($a=($a==null?void 0:$a.replaceAll(">",""))+".urdf"),ce.value=[{name:$a,blobUrl:Ya}],ua.value=!0}}else{const il=await Ja.axios.get(v,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ye=new Blob([il.data],{type:"application/octet-stream;charset=UTF-8"});let Fa=URL.createObjectURL(ye),fa="";if((ba=v==null?void 0:v.split("/"))==null||ba.forEach((Ya,$a)=>{var Ne;$a===((Ne=v==null?void 0:v.split("/"))==null?void 0:Ne.length)-1&&(fa=Ya)}),W(fa)){const Ya=ke(fa),$a=Qe(v);Ve({files:[$a],data:{trackFileType:Ya}});return}ce.value=[{name:fa,blobUrl:Fa}],ua.value=!0}(j==null?void 0:j.length)>0&&r.setBlobUrls(j)},ti=p=>{var I,j,D,ne;if(p!=null&&p.downloadUrl)return p==null?void 0:p.name;const v=(ne=(I=p==null?void 0:p.url)==null?void 0:I.split("."))==null?void 0:ne[((D=(j=p==null?void 0:p.url)==null?void 0:j.split("."))==null?void 0:D.length)-1];return(p==null?void 0:p.name)+"."+v},xi=p=>{if(!p)return"未知文件";try{const I=ti(p);if(typeof I=="string"&&I.includes("."))return I}catch{}const v=(p==null?void 0:p.fileName)||(p==null?void 0:p.name)||"未知文件",N=(p==null?void 0:p.suffix)||"";return v.includes(".")?v:`${v}${N}`},io=p=>{if(p==null||typeof p=="number"||typeof p!="string")return p;const v=p.match(/^(\d+)\_(\d+)$/);if(!v)return p;const N=Number(v[1]),I=Number(v[2]);return!Number.isFinite(N)||!Number.isFinite(I)?p:String(N*1e3+I)},Ln=p=>{if(p==null)return null;const v=String(p).trim();if(!v)return null;const N=Number(v);return Number.isFinite(N)?N:null},et=p=>{if(p==null)return null;const v=String(p).trim();if(!v)return null;if(/^\d+$/.test(v)){const j=Number(v);return Number.isFinite(j)?v.length<=10?j*1e3:j:null}const N=v.includes("T")?v:v.replace(" ","T"),I=Date.parse(N);return Number.isFinite(I)?I:null},wi=(p,v=[])=>{const N=Array.isArray(p)?p.slice():[];if(N.length<=1)return N;const I=new Map((v||[]).map((ne,te)=>[String(ne),te])),j=N.some(ne=>Ln(ne==null?void 0:ne.sort)!==null),D=N.map((ne,te)=>({r:ne,idx:te,id:String((ne==null?void 0:ne.id)??""),sortVal:Ln(ne==null?void 0:ne.sort),createTimeMs:et(ne==null?void 0:ne.create_time),prevIdx:I.has(String(ne==null?void 0:ne.id))?I.get(String(ne==null?void 0:ne.id)):Number.POSITIVE_INFINITY}));return D.sort((ne,te)=>{if(j){const me=ne.sortVal,Ge=te.sortVal;if(me===null&&Ge!==null)return 1;if(me!==null&&Ge===null)return-1;if(me!==null&&Ge!==null&&me!==Ge)return me-Ge}const K=ne.createTimeMs,ge=te.createTimeMs;return K!==null&&ge!==null&&K!==ge?ge-K:K!==null&&ge===null?-1:K===null&&ge!==null?1:ne.prevIdx!==te.prevIdx?ne.prevIdx-te.prevIdx:ne.idx-te.idx}),D.map(ne=>ne.r)},si=(p,v=[])=>{const N=v==null?void 0:v[p-1],I=v==null?void 0:v[p],j=Ln(N==null?void 0:N.sort),D=Ln(I==null?void 0:I.sort);let ne=null;j!==null&&D!==null&&D>j?ne=(j+D)/2:j!==null?ne=j+1:D!==null?ne=Math.max(D-1,0):ne=(p??0)+1;const te=Number(ne.toFixed(6));return String(Number.isFinite(te)?te:ne)},at=async p=>{let v=null,N=null;if(p!=null&&p.id){const j=M.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const D=await M.platformDownloadFile(p);v=URL.createObjectURL(D.data),N=xi(p)}finally{j.close()}}else if(p!=null&&p.downloadUrl){const j=await _i(),D=M.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ne=await Ja.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:j,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{D.close()}),te=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(te),N=p==null?void 0:p.name}else{const j=await M.platformDownloadFile({url:p==null?void 0:p.url});!p.url.toUpperCase().includes(".OBJ")&&!p.url.toUpperCase().includes(".STL")&&!p.url.toUpperCase().includes(".MTL")&&!p.url.toUpperCase().includes(".URDF")?(v=URL.createObjectURL(j.data),N=ti(p)):v=p==null?void 0:p.url}if(W(v)){const j={row:`${v}`,suffix:Ie(N)};no(j);return}const I={name:N,blobUrl:v};ce.value=[I],ua.value=!0},oo=async p=>{let v=null,N=null;if(p!=null&&p.id){const D=await M.platformDownloadFile(p);v=URL.createObjectURL(D.data),N=xi(p)}else if(p!=null&&p.downloadUrl){const D=await _i(),ne=await Ja.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:D,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),te=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(te),N=p==null?void 0:p.name}else{const D=await M.platformDownloadFile({url:p==null?void 0:p.url});v=URL.createObjectURL(D.data),N=ti(p)}const I={name:N,blobUrl:v},j=document.createElement("a");j.href=I.blobUrl,j.download=I.name,j.style.display="none",document.body.appendChild(j),j.click(),setTimeout(()=>{document.body.removeChild(j)},100)},ci=(p,v)=>{var I;if(Object.values(v).length===0)return;let N=p;return Object.values(v).find(j=>{var D,ne,te;return((D=j==null?void 0:j.toString())==null?void 0:D.includes(".txt"))||((ne=j==null?void 0:j.toString())==null?void 0:ne.includes(".cpt"))||((te=j==null?void 0:j.toString())==null?void 0:te.includes(".obj"))})?N=[...p,Oe.value]:(I=d==null?void 0:d.config)!=null&&I.allowMove&&(N=[...p,{label:"迁移"}]),N},Rn=()=>{$.value=!0},to=e.ref([]),Fi=async(p,v,N=!1)=>{var ne,te,K,ge;if(!p)return;if(N){Ce.value=[...Ca.value.values()].filter(me=>Object.values(me).some(Ge=>typeof Ge=="string"?Ge==null?void 0:Ge.toLowerCase().includes(v==null?void 0:v.toLowerCase()):!1));return}let I={};for(let me in p)(p==null?void 0:p[me])!==""&&(I[me]=p==null?void 0:p[me]);if(JSON.stringify(I)==="{}"){Ce.value=Array.from(((ne=Ca.value)==null?void 0:ne.values())??[]);return}let j=(te=d==null?void 0:d.related)==null?void 0:te.find(me=>me==null?void 0:me.includes("content_")),D=await M.getFillFind({platId:parseInt((K=Il==null?void 0:Il.value)==null?void 0:K.plat_id),tableName:j,params:I});D=(ge=D==null?void 0:D.data)==null?void 0:ge.result,Ce.value=D,Ba.setTableLoading(!1)},lt=e.computed(()=>{var v,N;return((N=(v=d==null?void 0:d.itemData)==null?void 0:v.find(I=>(I==null?void 0:I.key)==="isEdit"))==null?void 0:N.contents)??!0}),rt=async p=>{var j,D,ne,te,K,ge;if(!Na(d.config,{type:xa.TABLE})||!(((D=(j=d==null?void 0:d.itemData)==null?void 0:j.find(me=>(me==null?void 0:me.key)==="isEdit"))==null?void 0:D.contents)??!0))return;let N=(te=(ne=u.value)==null?void 0:ne.find(me=>{var Ge;return(Ge=me==null?void 0:me.key)==null?void 0:Ge.includes("@EditRead")}))==null?void 0:te.content;if((N==null?void 0:N.length)>0){let me=_s(N,p);if((me==null?void 0:me.length)>0)return}if(!p)return;((K=Array.from(t.value))==null?void 0:K.length)>0&&await $i();const I=p==null?void 0:p.id;I!=null&&(t.value.clear(),f.value.clear(),f.value.has(I)||f.value.set(I,M.cloneDeep(p)),Ce.value=(ge=Ce.value)==null?void 0:ge.map(me=>({...me,tableEditType:(me==null?void 0:me.id)===I?"edit":"text"})),t.value.add(I),tr.value=!0)},so=async(p,v,N,I)=>{I!=null&&I.isExistChild&&U("clickMainKey",p,N,P.value)},nt=()=>{ua.value=!1},it=p=>{U("rowClick",p)};e.watch(()=>d.changedContent,()=>{var N,I;if(!d.changedContent)return;let p=(N=Ce.value)==null?void 0:N.map(j=>{var D;return j.id===((D=d.changedContent)==null?void 0:D.id)&&(j={...d.changedContent,id:d.changedContent.newId?d.changedContent.newId:d.changedContent.id},delete j.newId),j});const v=(I=d.itemData)==null?void 0:I.map(j=>((j==null?void 0:j.key)==="tableContents"&&(j.contents=p),j));Ce.value=p,U("contentChange",{contents:v,index:d.index}),U("change",{content:p,index:d==null?void 0:d.index,buttonName:"",id:d==null?void 0:d.index})},{deep:!0,immediate:!0});const ot=()=>{},tt=async()=>{const p=de.value,v=sessionStorage.getItem("systemKey"),N=await le.getItemData(p,v,""),I=(N==null?void 0:N.find(te=>(te==null?void 0:te.name)==="方法明细"))||(N==null?void 0:N[0]),j=(I==null?void 0:I.compData)||[],D=j==null?void 0:j.find(te=>{const K=te==null?void 0:te.key;return K==="formContent"||K==="tableContents"});return D==null?void 0:D.contents},_i=async()=>{const v=Ja.Local.get("access-token");return v?`Bearer ${v}`:""},st=async(p,{token:v,inputData:N}={})=>await Ja.axios.post(p,N,{headers:{Authorization:v}}).catch(j=>(ea.setImportLoading(!1),Promise.reject(j))),ct=p=>{var I;let v={};const N=[];return v.form={},(I=M.cloneDeep(p))==null||I.forEach((j,D)=>{var ne,te,K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl,ba;if((j==null?void 0:j.comp)==="Table"){(te=(ne=j==null?void 0:j.compData)==null?void 0:ne.find(fa=>(fa==null?void 0:fa.key)==="header"))==null||te.contents;let il=(me=(ge=(K=j==null?void 0:j.compData)==null?void 0:K.find(fa=>(fa==null?void 0:fa.key)==="tableContents"))==null?void 0:ge.contents)==null?void 0:me.map(fa=>fa.slice(1));(Da=(ya=(Xe=(We=(Ge=j==null?void 0:j.compData)==null?void 0:Ge.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:We.contents)==null?void 0:Xe[0])==null?void 0:ya[0])==null||Da.label;let ye=(Ze=(Ta=j==null?void 0:j.compData)==null?void 0:Ta.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Ze.contents,Fa=[];il==null||il.forEach(fa=>{let Ya=[];fa==null||fa.forEach(($a,Ne)=>{var He;let Z={};((He=ye[Ne])==null?void 0:He.label)!=="操作"&&(Z[ye[Ne].label]=$a,Ya.push(Z))}),Fa.push(Ya)}),v[j.name]=Fa}else{const il=(ba=(nl=j.compData)==null?void 0:nl.find(ye=>(ye==null?void 0:ye.key)==="formContent"))==null?void 0:ba.contents;il==null||il.forEach(ye=>{var Fa,fa;if(ye.prop!==""){let Ya=ye==null?void 0:ye.value;Array.isArray(Ya)?Ya=((Fa=Ya==null?void 0:Ya[0])==null?void 0:Fa.oldUrl)||"http://222.92.178.198:62001/"+((fa=Ya==null?void 0:Ya[0])==null?void 0:fa.url):Ya=Ya.toString(),ye={key:(ye==null?void 0:ye.prop)??(ye==null?void 0:ye.label),value:Ya},N.push(ye)}})}}),v.form=le.getFormContents(N),v},s=p=>{const v=[],N=I=>{I&&typeof I=="object"&&!Array.isArray(I)?Object.values(I).forEach(N):v.push(I)};return N(p),v},o=async(p,v,N)=>{var ye,Fa,fa,Ya,$a,Ne,Z,He,sa,T,Ma,Ua,ol,Ga,_a,dl,Ul;ea.setImportLoading(!0),Ba.setFreshContent(!1);let I=await tt().catch(qa=>(ea.setImportLoading(!1),Promise.reject(qa)));I=I==null?void 0:I.filter(qa=>{var Bl;return((Bl=qa==null?void 0:qa.find(Va=>Va==null?void 0:Va.id))==null?void 0:Bl.id)===(v==null?void 0:v.id)});let j=le.getEqualChild([(ye=P.value)==null?void 0:ye.filter(qa=>(qa==null?void 0:qa.label)!=="操作")]);const D=(fa=(Fa=le.tableToForm(I,j))==null?void 0:Fa[0])==null?void 0:fa.find(qa=>{const Bl=qa==null?void 0:qa.key;return Bl==="Interface"||Bl==="方法体"}),ne=D==null?void 0:D.value;if(!ne){console.log("未搜索到isMain, 缺少算法执行接口"),ea.setImportLoading(!1);return}const te=P.value?le.getEqualChild([P.value]):[],K=te.find(qa=>{const Bl=qa==null?void 0:qa.prop;return Bl==="Input1"||Bl==="输入数据.输入1"||Bl==="样本输入数据"}),ge=K==null?void 0:K.prop;let me=v==null?void 0:v[ge];const Ge=await _i().catch(qa=>(ea.setImportLoading(!1),Promise.reject(qa)));let We=!0,Xe="";(Ya=P.value)==null||Ya.forEach(qa=>{(qa==null?void 0:qa.prop)===ge&&(We=!!(qa!=null&&qa.childPath),Xe=qa==null?void 0:qa.childPath)});let ya="";if(We){let qa=(Ne=($a=P.value)==null?void 0:$a.find(hl=>(hl==null?void 0:hl.isMainKey)===!0))==null?void 0:Ne.prop;ya=v==null?void 0:v[qa];let Bl=Xe==null?void 0:Xe.split(R),Va=[];Bl==null||Bl.forEach((hl,zl)=>{(Bl==null?void 0:Bl.length)-1===zl&&Va.push(ya),Va.push(hl)}),Va=Va==null?void 0:Va[0];let Ll=await le.getItemData(Va,sessionStorage.getItem("systemKey"),""),rl=Ll==null?void 0:Ll.filter(hl=>(hl==null?void 0:hl.name)===ge);rl=rl==null?void 0:rl.map(hl=>{var zl;return hl.compData=(zl=hl==null?void 0:hl.compData)==null?void 0:zl.map(kl=>{var xr;return(kl==null?void 0:kl.key)==="tableContents"&&(kl.contents=(xr=kl==null?void 0:kl.contents)==null?void 0:xr.filter(cr=>(cr==null?void 0:cr[1])===(v==null?void 0:v[ge]))),kl}),hl}),(!rl||(rl==null?void 0:rl.length)===0)&&(rl=Ll,rl=rl==null?void 0:rl.map(hl=>{var zl;return hl.compData=(zl=hl==null?void 0:hl.compData)==null?void 0:zl.map(kl=>{var xr;return(kl==null?void 0:kl.key)==="tableContents"&&(kl.contents=(xr=kl==null?void 0:kl.contents)==null?void 0:xr.filter(cr=>{var Ql,wl;return(cr==null?void 0:cr[1])===(v==null?void 0:v[(wl=(Ql=P==null?void 0:P.value)==null?void 0:Ql[0])==null?void 0:wl.prop])})),kl}),hl})),me=ct(rl)}const Da=await st(ne,{token:Ge,inputData:me}).catch(qa=>(ea.setImportLoading(!1),Promise.reject(qa))),Ta=(Z=Da==null?void 0:Da.data)==null?void 0:Z.data,Ze=te.find(qa=>(qa==null?void 0:qa.prop)==="Output1"),nl=Ze==null?void 0:Ze.prop;let ba=[],il=[];if(Ta&&((He=Object.values(Ta))==null?void 0:He.length)>0){let qa=[];const Bl=new FormData,Va=(sa=s(Ta))==null?void 0:sa.map(async rl=>{var hl,zl;if(!Array.isArray(rl)&&(rl!=null&&rl.includes("http"))){let kl=await Ja.axios.get(rl,{responseType:"blob"}),xr=(zl=rl==null?void 0:rl.split("/"))==null?void 0:zl[((hl=rl==null?void 0:rl.split("/"))==null?void 0:hl.length)-1];Bl.append("files",kl.data,xr)}else qa.push(rl)});if(await Promise.all(Va),!le.isFormDataEmpty(Bl)){let rl=await pl.uploadAmountApi(Bl),hl=(Ma=(T=rl==null?void 0:rl.data)==null?void 0:T.result)==null?void 0:Ma.map(zl=>{var kl,xr,cr,Ql,wl,Gl;return{name:(Gl=(wl=(Ql=(kl=zl==null?void 0:zl.url)==null?void 0:kl.split("/"))==null?void 0:Ql[((cr=(xr=zl==null?void 0:zl.url)==null?void 0:xr.split("/"))==null?void 0:cr.length)-1])==null?void 0:wl.split("."))==null?void 0:Gl[0],url:zl==null?void 0:zl.url}});qa=[...qa,...hl]}let Ll={};for(let rl in v)rl!=="id"&&(Ll[rl]=v[rl]);Ll[nl]=qa,il.push({id:v==null?void 0:v.id,value:{tableData:Ll}})}if((il==null?void 0:il.length)>0){const qa=il.map(Va=>{const Ll={id:Va.id,...Va.value.tableData};return delete Ll._isOCRRow,delete Ll._ocrTableId,delete Ll._isTemp,delete Ll.tableEditType,delete Ll.index,Ll}),Bl=[{tableName:(Ua=d==null?void 0:d.related)==null?void 0:Ua.find(Va=>Va==null?void 0:Va.includes("content")),tableContents:qa}];await M.pageBatchUpdateApi({platId:parseInt((ol=Il.value)==null?void 0:ol.plat_id),changeContents:Bl})}if((ba==null?void 0:ba.length)>0)try{await M.pageBatchAddApi({platId:parseInt((Ga=Il.value)==null?void 0:Ga.plat_id),changeContents:[{tableName:(_a=d==null?void 0:d.related)==null?void 0:_a.find(qa=>qa==null?void 0:qa.includes("content")),tableContents:ba.map(qa=>{var Va,Ll,rl;const Bl={id:((Va=qa==null?void 0:qa.key)==null?void 0:Va.id)??((Ll=qa==null?void 0:qa.key)==null?void 0:Ll.rowId)??(qa==null?void 0:qa.id),...((rl=qa==null?void 0:qa.value)==null?void 0:rl.tableData)||{}};return delete Bl._isOCRRow,delete Bl._ocrTableId,delete Bl._isTemp,delete Bl.tableEditType,delete Bl.index,Object.keys(Bl).forEach(hl=>{hl==="证书附件"&&Array.isArray(Bl[hl])&&(Bl[hl]=JSON.stringify(Bl[hl]))}),Bl})}]})}catch(qa){Ja.ElMessage.error(((Ul=(dl=qa==null?void 0:qa.response)==null?void 0:dl.data)==null?void 0:Ul.message)||(qa==null?void 0:qa.message)||"保存失败"),Ba.setTableLoading(!1);return}Hi(!0),ea.setImportLoading(!1),Ba.setFreshContent(!0)},h=(p,v)=>(p=p==null?void 0:p.map(N=>{var I,j;return N!=null&&N.children&&((I=N.children)!=null&&I.find(D=>D.id===(v==null?void 0:v.id))?N.children=(j=N.children)==null?void 0:j.filter(D=>(D==null?void 0:D.id)!==(v==null?void 0:v.id)):N.children=h(N.children,v)),N}),p),g=e.ref(!1),E=()=>{g.value=!0},L=async p=>{var N,I,j,D;g.value=!1;const v=Array.isArray(p)?p:p?[p]:[];if(v.length!==0)for(const ne of v){const te={name:ne.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ne),raw:ne,uid:Date.now()+Math.random()};va.value.push(te),fn(te,"uploading"),Wr(te,0);try{const K=new FormData;K.append("file",ne,te.name);const ge=await M.platformUploadFile(K);te.uploadResult=((N=ge==null?void 0:ge.data)==null?void 0:N.result)||{name:te.name,url:"",fileName:te.name},el({name:((I=te.uploadResult)==null?void 0:I.name)||te.name,url:((j=te.uploadResult)==null?void 0:j.url)||"",id:(D=te.uploadResult)==null?void 0:D.id}),fn(te,"uploaded"),Wr(te,100)}catch(K){console.error("文件上传失败:",K),Ja.ElMessage.error(`文件 ${te.name} 上传失败,请重试`),fn(te,"pending"),Wr(te,0);const ge=va.value.findIndex(me=>me.uid===te.uid);ge>-1&&va.value.splice(ge,1)}}},G=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:d==null?void 0:d.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(p,v,N)=>{v===(d==null?void 0:d.index)?N(new Error("选择源不能和目标源一致")):N()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),J=e.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],newRows:[],buttonValue:[{label:"跳过",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),be=()=>{J.show=!1},qe=async p=>{var v,N,I,j,D,ne,te,K;try{const ge=[];let me=(v=Ce.value||[])==null?void 0:v.slice();(p||[]).forEach(Da=>{const Ta={...Da};try{Ta.sort=si(0,me)}catch{}ge.push(Ta),me.unshift(Ta)});let Ge=await M.quoteApi({platId:parseInt((N=Il==null?void 0:Il.value)==null?void 0:N.plat_id),type:"fatherSyncs",related:[{menus:de.value,groups:""},{menus:de.value,groups:d==null?void 0:d.compName}]});Ge=(I=Ge==null?void 0:Ge.data)==null?void 0:I.result;let We=Ge==null?void 0:Ge.map(Da=>({tableName:"content_"+(Da==null?void 0:Da.id),tableContents:ge==null?void 0:ge.map((Ta,Ze)=>({id:Ze,...Ta}))})),Xe=[{tableName:(j=d==null?void 0:d.related)==null?void 0:j.find(Da=>Da==null?void 0:Da.includes("content")),tableContents:ge==null?void 0:ge.map((Da,Ta)=>({id:Ta,...Da}))}];Xe=[...Xe,...We];const ya=await M.pageBatchAddApi({platId:parseInt((D=Il.value)==null?void 0:D.plat_id),changeContents:Xe});if(((ne=ya==null?void 0:ya.data)==null?void 0:ne.code)===200){const Da={buttonName:"新增",columns:P.value,fixContent:ge==null?void 0:ge.map((Ze,nl)=>({id:nl,...Ze})),relatedContents:d==null?void 0:d.related};await Nt(Da),Ja.ElMessage.success("数据导入成功");let Ta=[];Xe==null||Xe.forEach(Ze=>{var nl;(nl=Ze==null?void 0:Ze.tableContents)==null||nl.forEach(ba=>{Ta.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ba),request_result:"{}",is_delete:!1,request_table:Ze==null?void 0:Ze.tableName,request_type:"export"})})}),await M.pageBatchAddApi({platId:parseInt((te=Il==null?void 0:Il.value)==null?void 0:te.plat_id),changeContents:[{tableName:"log",tableContents:Ta}]})}else{let Da=[];Xe==null||Xe.forEach(Ta=>{var Ze;(Ze=Ta==null?void 0:Ta.tableContents)==null||Ze.forEach(nl=>{Da.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(nl),request_result:"{}",is_delete:!1,request_table:Ta==null?void 0:Ta.tableName,request_type:"error"})})}),await M.pageBatchAddApi({platId:parseInt((K=Il==null?void 0:Il.value)==null?void 0:K.plat_id),changeContents:[{tableName:"log",tableContents:Da}]}),Ja.ElMessage.error("数据导入响应失败")}}catch(ge){throw new Error(ge)}},Se=async p=>{var v,N,I,j,D,ne,te,K,ge,me;try{if(p==="cancel"&&(J.show=!1),p==="replace"&&((v=J==null?void 0:J.existRows)==null?void 0:v.length)>0){await M.pageBatchDeleteApi({platId:parseInt((N=Il.value)==null?void 0:N.plat_id),changeContents:[{tableName:((I=d==null?void 0:d.related)==null?void 0:I.find(We=>We==null?void 0:We.includes("content_")))||((j=d==null?void 0:d.related)==null?void 0:j.find(We=>We==null?void 0:We.includes("content"))),tableContents:J==null?void 0:J.existRows}]});const Ge=await M.pageBatchAddApi({platId:parseInt((D=Il.value)==null?void 0:D.plat_id),changeContents:[{tableName:(ne=d==null?void 0:d.related)==null?void 0:ne.find(We=>We==null?void 0:We.includes("content")),tableContents:(()=>{const We=(Ce.value||[]).filter(Ta=>!((J==null?void 0:J.existRows)||[]).some(Ze=>String(Ze==null?void 0:Ze.id)===String(Ta==null?void 0:Ta.id))),Xe=(J==null?void 0:J.tableData)||[],ya=[];let Da=We.slice();return Xe.forEach(Ta=>{const Ze={...Ta};try{Ze.sort=si(0,Da)}catch{}ya.push(Ze),Da.unshift(Ze)}),ya.map((Ta,Ze)=>({id:Ze,...Ta}))})()}]});if(((te=Ge==null?void 0:Ge.data)==null?void 0:te.code)!==200)return;(K=J.newRows)!=null&&K.length&&await qe(J.newRows),await Nt({buttonName:"新增",columns:P.value,fixContent:(ge=J==null?void 0:J.tableData)==null?void 0:ge.map((We,Xe)=>({id:Xe,...We})),relatedContents:d==null?void 0:d.related}),(me=J.newRows)!=null&&me.length||Ja.ElMessage.success("数据导入成功")}}catch(Ge){throw new Error(Ge)}finally{J.show=!1,J.columns=[],J.tableData=[],J.existRows=[]}},ra=()=>{G.show=!1},Oa=p=>{var v,N;if((p==null?void 0:p.buttonName)==="取消")return G.show=!1;G.to=p==null?void 0:p.content,!(!(d!=null&&d.index)||!((v=G.to)!=null&&v.groupName))&&(d==null?void 0:d.index)!==((N=G.to)==null?void 0:N.groupName)&&(U("change",{buttonName:"迁移",value:{from:G.from,to:G.to,data:G.selectRow}}),G.show=!1)},ll=async p=>{var v,N,I,j;if(p){if(!Xr.validateFileSize(p.raw)){Ja.ElMessage.warning(`文件大小不能超过 ${on.value.maxSize}MB`);const D=va.value.findIndex(ne=>ne.uid===p.uid);D>-1&&va.value.splice(D,1),Qa();return}if(!Xr.validateFileType(p.raw)){Ja.ElMessage.warning("请上传图片文件");const D=va.value.findIndex(ne=>ne.uid===p.uid);D>-1&&va.value.splice(D,1),Qa();return}fn(p,"uploading"),Wr(p,0);try{const D=new FormData;D.append("file",p.raw,p.name);const ne=await M.platformUploadFile(D);p.uploadResult=((v=ne==null?void 0:ne.data)==null?void 0:v.result)||{name:p.name,url:"",fileName:p.name},el({name:((N=p.uploadResult)==null?void 0:N.name)||p.name,url:((I=p.uploadResult)==null?void 0:I.url)||"",id:(j=p.uploadResult)==null?void 0:j.id}),fn(p,"uploaded"),Wr(p,100)}catch(D){console.error("文件上传失败:",D),Ja.ElMessage.error(`文件 ${p.name} 上传失败,请重试`),fn(p,"pending"),Wr(p,0);const ne=va.value.findIndex(te=>te.uid===p.uid);ne>-1&&va.value.splice(ne,1)}finally{Qa()}}},Qa=()=>{e.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');p&&(p.value="")})},cl=async()=>{var N,I;if(sessionStorage.setItem("ocr_root_table_id",String((d==null?void 0:d.index)??"")),va.value.length===0){Ja.ElMessage.warning("请先选择要上传的图片");return}if(va.value.filter(j=>{const D=Wl(j);return D!=="uploaded"&&D!=="completed"&&D!=="failed"}).length>0){Ja.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}br.value=!0,Ee.value=0;let v=null;try{va.value.forEach(Ze=>{fn(Ze,"processing")});const j=Math.floor(Math.random()*10)+90;v=setInterval(()=>{Ee.value<j?Ee.value+=1:clearInterval(v)},50);const D=va.value.map(Ze=>{var nl,ba,il;return{name:((nl=Ze.uploadResult)==null?void 0:nl.name)||Ze.name,url:((ba=Ze.uploadResult)==null?void 0:ba.url)||"",fileName:((il=Ze.uploadResult)==null?void 0:il.fileName)||Ze.name}}),ne=Xr.extractTableHeaders(P.value),te=D.map(Ze=>({name:(Ze==null?void 0:Ze.fileName)||(Ze==null?void 0:Ze.name),url:(Ze==null?void 0:Ze.url)||""})),K=await Xr.recognize(te,ne);if(console.log(K,"ocrResult"),clearInterval(v),v=null,(K==null?void 0:K.code)===500||(K==null?void 0:K.type)==="error"||!(K!=null&&K.result)){Ee.value=0,va.value.forEach(Ze=>{fn(Ze,"failed"),Wr(Ze,0)}),Ja.ElMessage.error((K==null?void 0:K.message)||"OCR识别失败,请重试"),br.value=!1;return}Ee.value=j;const ge=Array.isArray(K==null?void 0:K.result)?K.result:[];if(ge.length===0){Ee.value=0,va.value.forEach(Ze=>{fn(Ze,"failed"),Wr(Ze,0)}),Ja.ElMessage.warning("OCR识别未返回有效数据"),br.value=!1;return}const me=new Set,Ge=[];ge.forEach((Ze,nl)=>{const ba=Ze!=null&&Ze.数据&&typeof(Ze==null?void 0:Ze.数据)=="object"?Ze.数据:{},il=Array.isArray(Ze==null?void 0:Ze.图片信息)?Ze.图片信息:[],ye=new Map;il.forEach(fa=>{fa!=null&&fa.name&&ye.set(fa.name,fa.url||"")});const Fa={_index:nl,_certType:(Ze==null?void 0:Ze.证书类型)||"",_certNo:(Ze==null?void 0:Ze.证书编号)||"",_ocrImages:il,__ocrFieldMeta:{}};Object.entries(ba).forEach(([fa,Ya])=>{let $a="",Ne=0,Z=[],He="";Ya&&typeof Ya=="object"&&!Array.isArray(Ya)?($a=(Ya==null?void 0:Ya.value)??"",Ne=(Ya==null?void 0:Ya.score)??0,Z=Array.isArray(Ya==null?void 0:Ya.bboxNorm)?Ya==null?void 0:Ya.bboxNorm:[],He=(Ya==null?void 0:Ya.imageName)||""):Array.isArray(Ya)&&Ya.length>=2?($a=Ya[0]??"",Ne=Ya[1]??0):($a=Ya??"",Ne=0),Fa[fa]=$a,Fa[`${fa}_accuracy`]=Ne,me.add(fa),Fa.__ocrFieldMeta[fa]={value:$a,score:Ne,bboxNorm:Z,imageName:He,imageUrl:He&&ye.get(He)||"",images:il}}),Ge.push(Fa)});const We=[],Xe=new Set;Ge.forEach(Ze=>{Ze&&me.forEach(nl=>{const ba=Ze[`${nl}_accuracy`];(typeof ba=="number"?ba>0:ba!=null&&String(ba).trim()!==""&&String(ba)!=="0")&&Xe.add(nl)})}),me.forEach(Ze=>{We.push({prop:Ze,label:Ze,editable:!0,minWidth:230}),Xe.has(Ze)&&We.push({prop:`${Ze}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),va.value.forEach(Ze=>{fn(Ze,"completed")}),Ee.value=100,Te.value=We,ja.value=Ge,xl.value=D,Nl.value=K;const ya=["出厂编号","设备名称","制造厂"],Da=We.filter(Ze=>Ze&&!Ze.isAccuracy&&typeof Ze.prop=="string").map(Ze=>Ze.prop),Ta=["出厂编号","设备名称","制造厂"];Le.value=Da.filter(Ze=>Ta.includes(Ze)),console.log("[OCR] 默认勾选字段 props:",Le.value),la.value=2,br.value=!1,ia.value=!1}catch(j){console.error("OCR处理失败:",j),v&&(clearInterval(v),v=null),Ja.ElMessage.error(((I=(N=j==null?void 0:j.response)==null?void 0:N.data)==null?void 0:I.message)||"OCR识别失败,请重试"),br.value=!1,Ee.value=0,va.value.forEach(D=>{fn(D,"pending"),Wr(D,0)})}},Tl=p=>{if(p==null)return"";let v=String(p);return v=v.replace(/\s+/g," ").trim(),v=v.replace(/[!-~]/g,N=>String.fromCharCode(N.charCodeAt(0)-65248)),v=v.replace(/ /g," "),v=v.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),v},El=()=>{var Ze,nl;const p=xl.value,v=Nl.value,N=ja.value;if(!N||N.length===0){Ja.ElMessage.warning("暂无数据可添加");return}const I=(Ze=le.getAllLeafNodes(P.value)||[])==null?void 0:Ze.filter(ba=>(ba==null?void 0:ba.type)!=="operate"&&(ba==null?void 0:ba.label)!=="操作"&&(ba==null?void 0:ba.prop)!=="operate"),j=new Map,D=new Map,ne=(nl=I==null?void 0:I.find(ba=>(ba==null?void 0:ba.label)==="证书附件"))==null?void 0:nl.prop;I==null||I.forEach(ba=>{ba!=null&&ba.label&&(ba!=null&&ba.prop)&&(j.set(ba.label,ba.prop),D.set(ba.prop,ba.label))});const te=Date.now(),K=ba=>String(te*1e3+ba),ge=[],me=[],Ge=ba=>{const il=Bo&&Bo[ba]||[ba];for(const ye of il){const Fa=j.get(ye);if(Fa)return Fa}return""},We=Ge("出厂编号"),Xe=Ge("设备名称"),ya=Ge("制造厂"),Da=[],Ta=ba=>{var $a,Ne;if(!ne)return[];const il=(Array.isArray(p)?p[ba]:null)||null,ye=(il==null?void 0:il.url)||"",Fa=(il==null?void 0:il.fileName)||(il==null?void 0:il.name)||"";return(String(Fa).toLowerCase().endsWith(".pdf")||String(ye).toLowerCase().endsWith(".pdf"))&&ye?[{url:ye,name:Fa,fileName:Fa}]:(Array.isArray((Ne=($a=v==null?void 0:v.result)==null?void 0:$a[ba])==null?void 0:Ne.图片信息)?v.result[ba].图片信息:[]).map(Z=>({url:(Z==null?void 0:Z.url)||"",name:(Z==null?void 0:Z.name)||"",fileName:(Z==null?void 0:Z.name)||""})).filter(Z=>Z.url)};if(N.forEach((ba,il)=>{var ol;const ye={id:K(il),_isOCRRow:!0,_ocrTableId:d==null?void 0:d.index};for(const[Ga,_a]of j.entries())Object.prototype.hasOwnProperty.call(ba,Ga)&&(ye[_a]=ba[Ga]);ne&&(ye[ne]=Ta(il));const Fa=(Array.isArray(v==null?void 0:v.result)?v.result[il]:null)||null,fa=(Array.isArray(p)?p[il]:null)||null,Ya=(fa==null?void 0:fa.url)||"",$a=(fa==null?void 0:fa.fileName)||(fa==null?void 0:fa.name)||"",Ne=String($a).toLowerCase().endsWith(".pdf")||String(Ya).toLowerCase().endsWith(".pdf"),Z={ts:Date.now(),versionId:String(Date.now())+"_"+String(il),label:new Date().toLocaleString(),certType:(Fa==null?void 0:Fa.证书类型)||"",certNo:(Fa==null?void 0:Fa.证书编号)||"",fileType:Ne?"pdf":"image",sourceUrl:Ne?Ya:"",images:Array.isArray(Fa==null?void 0:Fa.图片信息)?Fa.图片信息.map(Ga=>({name:(Ga==null?void 0:Ga.name)||"",url:(Ga==null?void 0:Ga.url)||""})).filter(Ga=>Ga.url):[]},He=Ga=>Tl(Ga?ye==null?void 0:ye[Ga]:""),sa=He(We),T=He(Xe),Ma=He(ya);if(!!(We&&Xe&&ya&&sa&&T&&Ma)){const Ga=(Ce.value||[]).find(_a=>{const dl=Tl(We?_a==null?void 0:_a[We]:""),Ul=Tl(Xe?_a==null?void 0:_a[Xe]:""),qa=Tl(ya?_a==null?void 0:_a[ya]:"");return dl&&Ul&&qa&&dl===sa&&Ul===T&&qa===Ma});if(Ga){Da.push({idx:il,ocrRow:ye,versionItem:Z,ocrNo:sa,candidates:[Ga],selectedTargetId:String((Ga==null?void 0:Ga.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(sa&&We){const Ga=(Ce.value||[]).filter(_a=>{const dl=Tl(We?_a==null?void 0:_a[We]:"");return dl&&dl===sa});if(Ga.length>0){Da.push({idx:il,ocrRow:ye,versionItem:Z,ocrNo:sa,candidates:Ga,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ye.sort===void 0||ye.sort===null||String(ye.sort).trim()===""){const Ga=(Ce.value||[]).map(dl=>Ln(dl==null?void 0:dl.sort)).filter(dl=>dl!==null),_a=Ga.length>0?Math.max(...Ga):((ol=Ce.value)==null?void 0:ol.length)??0;ye.sort=String(Number((_a+1).toFixed(6)))}}catch{}Yl(d==null?void 0:d.index,ye.id,Z),Da.push({idx:il,ocrRow:ye,versionItem:Z,ocrNo:sa,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Da||[]).length>0){ml.value=(Da||[]).map(ba=>({...ba,selectedTargetId:(ba==null?void 0:ba.selectedTargetId)||""})),Fe.value=!0,Be.value=me,Pl.value=ge,Sa.value=v,ul.value=p,Za.value=ne||"";return}},Vl=(p,v,N)=>{ja.value[p]&&(ja.value[p][v]=N)},Jl=p=>p==null||p===0?"-":`${(Number(p)*100).toFixed(1)}%`,sr=p=>{if(p==null||p===0)return"#909399";const v=Number(p);return v>=.9?"#67c23a":v>=.7?"#e6a23c":"#f56c6c"},Hl=p=>{var N,I,j,D;if(ha.value===p){ha.value=null,ga.value=!1,ta.value="";return}ha.value=p,ta.value="";const v=(N=ja.value)==null?void 0:N[p];if(v&&Array.isArray(v._ocrImages)&&v._ocrImages.length>0){ma.value=v._ocrImages.map(K=>({name:(K==null?void 0:K.name)||"",url:(K==null?void 0:K.url)||""})).filter(K=>K.name||K.url);const ne=v.__ocrFieldMeta||{},te=(I=Object.values(ne))==null?void 0:I.find(K=>K==null?void 0:K.imageName);fl.value=(te==null?void 0:te.imageName)||((D=(j=ma.value)==null?void 0:j[0])==null?void 0:D.name)||"",ga.value=ma.value.length>0}else ma.value=[],ga.value=!1,fl.value=""},Zl=()=>{_l.value=!1,va.value=[],sl.value=null,la.value=1,Ka.value.clear(),Sl.value.clear(),Ee.value=0,ga.value=!1},sn=p=>p.raw?URL.createObjectURL(p.raw):p.url?p.url:"",Wl=p=>{const v=p.uid||p.name;return Ka.value.get(v)||"pending"},hn=p=>{const v=p.uid||p.name;return Sl.value.get(v)||0},Wr=(p,v)=>{const N=p.uid||p.name;Sl.value.set(N,Math.min(100,Math.max(0,v)))},Nn=p=>{const v=Wl(p),N=100.53;if(v==="completed"||v==="uploaded")return`${N} ${N}`;if(v==="failed")return`${N} ${N}`;if(v==="uploading"){const I=hn(p);return`${N*(I/100)} ${N}`}else if(v==="processing")return`${N*.5} ${N}`;return`0 ${N}`},fn=(p,v)=>{const N=p.uid||p.name;Ka.value.set(N,v),(v==="completed"||v==="uploaded")&&Wr(p,100)},ui=()=>{e.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');if(p)p.value="",p.click();else{const v=document.createElement("input");v.type="file",v.multiple=!0,v.accept="image/*,application/pdf",v.style.display="none",v.onchange=async N=>{const I=Array.from(N.target.files||[]);for(const j of I){const D={name:j.name,raw:j,uid:Date.now()+Math.random()};va.value.push(D),await ll(D)}N.target.value="",document.body.removeChild(v)},document.body.appendChild(v),v.click()}})},hu=()=>{la.value>1&&la.value--},vu=()=>{la.value===1?va.value.length>0&&!br.value&&cl():la.value===2&&(El(),la.value=3)},mu=async p=>{await $t(p==null?void 0:p.row)},yu=async({row:p,prop:v})=>{!p||!v||await $t(p,v)},$t=async(p,v)=>{var j,D;const N=p==null?void 0:p.id;if(!N){Ja.ElMessage.warning("暂无可预览数据");return}let I=Wa(d==null?void 0:d.index,N);if(!I||I.length===0){const ne=sessionStorage.getItem("ocr_root_table_id"),te=ne!==null?Number(ne):null;if(te!=null&&te!==""&&!Number.isNaN(te)){const K=Wa(te,N);Array.isArray(K)&&K.length>0&&(Kl(d==null?void 0:d.index,N,K),I=K)}}if(!I||I.length===0){const ne=(j=le.getAllLeafNodes(P.value)||[])==null?void 0:j.filter(K=>(K==null?void 0:K.type)!=="operate"&&(K==null?void 0:K.label)!=="操作"&&(K==null?void 0:K.prop)!=="operate"),te=v||((D=ne==null?void 0:ne.find(K=>(K==null?void 0:K.label)==="证书附件"))==null?void 0:D.prop);if(te&&p[te]){const K=p[te];let ge=[],me="",Ge=!1;if(typeof K=="string")try{const We=JSON.parse(K);Array.isArray(We)&&(ge=We.map(Xe=>({name:(Xe==null?void 0:Xe.name)||(Xe==null?void 0:Xe.fileName)||"",url:(Xe==null?void 0:Xe.url)||""})).filter(Xe=>Xe.url||Xe.name),ge.length>0&&(me=ge[0].url||"",Ge=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(me).toLowerCase().endsWith(".pdf")))}catch{me=K,Ge=String(K).toLowerCase().endsWith(".pdf"),ge=[{name:K,url:K}]}else Array.isArray(K)&&(ge=K.map(We=>({name:(We==null?void 0:We.name)||(We==null?void 0:We.fileName)||"",url:(We==null?void 0:We.url)||""})).filter(We=>We.url||We.name),ge.length>0&&(me=ge[0].url||"",Ge=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(me).toLowerCase().endsWith(".pdf")));if(ge.length>0||me){const We={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:p.证书类型||"",certNo:p.证书编号||"",fileType:Ge?"pdf":"image",sourceUrl:Ge?me:"",images:ge};I=[We],Yl(d==null?void 0:d.index,N,We)}}}if(!I||I.length===0){Ja.ElMessage.warning("暂无可预览数据");return}Ha.value=I,pa.value=!0},gu=p=>{va.value=va.value.filter((v,N)=>N!==p)},ut=async(p,v,N)=>{var I,j,D,ne,te,K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl,ba,il,ye,Fa,fa,Ya;if(Na(d.config,{type:xa.TABLE,tableOperate:p})){if(oa.value="",Ae.value=!0,Aa.value=!0,U("onButtonClick",p,v),ee.value=[],p==="删除")M.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $a,Ne,Z,He;($a=Ce.value)!=null&&$a.find(sa=>(sa==null?void 0:sa.id)===(v==null?void 0:v.id))?Ce.value=(Ne=M.cloneDeep(Ce.value))==null?void 0:Ne.filter(sa=>(sa==null?void 0:sa.id)!==(v==null?void 0:v.id)):Ce.value=h(M.cloneDeep(Ce.value),v);try{v!=null&&v.id&&((He=(Z=Ca.value)==null?void 0:Z.has)!=null&&He.call(Z,v==null?void 0:v.id))&&Ca.value.delete(v.id)}catch{}Xf(qr.value,ql.value,v==null?void 0:v.id),Ba.setTableLoading(d==null?void 0:d.index),U("change",{content:Ce.value,fixContent:[v],index:d==null?void 0:d.index,type:"delete",name:d==null?void 0:d.groupNames,buttonName:p,columns:P.value,relatedContents:d==null?void 0:d.related}),console.log(v,"item")});else if(p==="批量删除"){if(((I=Mr.value)==null?void 0:I.length)===0)return Ja.ElMessage.warning("请先勾选操作的数据");M.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var Z,He,sa,T,Ma;const $a=(Z=Mr.value)==null?void 0:Z.map(Ua=>Ua.id);Ce.value=(He=M.cloneDeep(Ce.value))==null?void 0:He.filter(Ua=>!($a!=null&&$a.includes(Ua.id))),Ba.setTableLoading(d==null?void 0:d.index),U("change",{content:Ce.value,fixContent:Mr.value,index:d==null?void 0:d.index,type:"delete",name:d==null?void 0:d.compName,buttonName:p,relatedContents:d==null?void 0:d.related,columns:P.value});const Ne=($a||[]).filter(Boolean);if(Ne.length>0&&Ne.every(Ua=>Ua!=null&&Ua!=="")){const Ua=(Mr.value||[]).map(ol=>{const Ga={...ol};return delete Ga._isOCRRow,delete Ga._ocrTableId,delete Ga._isTemp,delete Ga.tableEditType,delete Ga.index,Ga});await M.pageBatchDeleteApi({platId:parseInt((sa=Il.value)==null?void 0:sa.plat_id),changeContents:[{tableName:((T=d==null?void 0:d.related)==null?void 0:T.find(ol=>ol==null?void 0:ol.includes("content_")))||((Ma=d==null?void 0:d.related)==null?void 0:Ma.find(ol=>ol==null?void 0:ol.includes("content"))),tableContents:Ua}]})}})}else if(p==="复制新增"){Je.value="复制新增",M.cloneDeep(v);const $a=(j=P.value)==null?void 0:j.find(Ne=>Ne==null?void 0:Ne.isMainKey);$a||((D=P.value)==null||D[0]),rr.value=v,Hi(!0)}else if(p==="新增")Je.value="新增",Pi(""),xe.value=!0;else if(p==="编辑")Je.value="编辑",Pi(v),xe.value=!0;else if(p==="查看")Je.value="查看",Pi(v),Ae.value=!1,Aa.value=!1,xe.value=!0;else if(p==="查看三维模型"){const $a={};for(let Z in v)Z!=="id"&&($a[Z]=v[Z]);let Ne=(ne=Object.values($a))==null?void 0:ne[1];ka.setTableShowThree(Ne)}else if(p==="切换视图")Au();else if(((te=N==null?void 0:N.extra)==null?void 0:te.type)==="modelExample")Je.value=p,Re.value=!0;else if(p==="新建"){let $a=da.value,Ne=[];for(let Ma in $a)Ma!=null&&Ma.includes(`loading${((K=Il.value)==null?void 0:K.account)||((ge=Il.value)==null?void 0:ge.账号)}`)&&(Ne=[...Ne,...Ma]);let Z=[];for(let Ma in $a)Ma!=null&&Ma.includes(`updateLoading${((me=Il.value)==null?void 0:me.account)||((Ge=Il.value)==null?void 0:Ge.账号)}`)&&(Z=[...Z,...Ma]);let He=Ne==null?void 0:Ne.map(Ma=>Ma==null?void 0:Ma.id);const sa=Z==null?void 0:Z.map(Ma=>Ma==null?void 0:Ma.id);He=[...M.cloneDeep(He),...sa],(He==null?void 0:He.length)>0&&(He!=null&&He.every(Ma=>Ma!==null&&Ma))&&await Hr.batchDeleteInsofDataApi({ids:He});const T=(We=ze.value)==null?void 0:We.find(Ma=>(Ma==null?void 0:Ma.label)==="新建");await xu(!1,T)}else if(p==="修改模板"){let $a=M.cloneDeep(de).value;Ba.setRouteToChildPath($a),ea.setActiveMenuPath($a+R)}else if(p==="执行")o(p,v);else if(p==="导出paraform"){const $a=M.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Ne=["推力","真空","压力","温度","流量"],Z=wl=>{var Gl,dr,Ol;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((Ol=(dr=(Gl=wl==null?void 0:wl._custom)==null?void 0:Gl.value)==null?void 0:dr.value)==null?void 0:Ol.value)||"":""},He=Array.isArray(or.value)?or.value:[],sa=Z(He.find(wl=>(wl==null?void 0:wl.condition)==="child")),T=String(sa||"").slice(0,8),Ma=wl=>{if(wl==null)return"";const Gl=String(wl).trim();if(!Gl)return"";if(/^\d{8}$/.test(Gl))return Gl;const dr=Gl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(dr){const pr=dr[1],wr=dr[2].padStart(2,"0"),fr=dr[3].padStart(2,"0");return`${pr}${wr}${fr}`}const Ol=Gl.replace(/\D/g,"");return Ol.length>=8?Ol.slice(0,8):""},Ua=async wl=>{var Gl,dr;if(!wl)return"";try{const Ol=await Jr("试验任务/任务管理",!1),pr=(ur,Nr=[])=>{if(!Array.isArray(ur))return Nr;for(const Rr of ur)(Rr==null?void 0:Rr.comp)==="Table"&&(Rr!=null&&Rr.name)&&Nr.push(Rr),Array.isArray(Rr==null?void 0:Rr.children)&&pr(Rr.children,Nr),Array.isArray(Rr==null?void 0:Rr.tab)&&pr(Rr.tab,Nr),Array.isArray(Rr==null?void 0:Rr.choice)&&pr(Rr.choice,Nr);return Nr},fr=pr(Ol||[]).find(ur=>(ur==null?void 0:ur.name)==="任务列表"),Dr=((dr=(Gl=fr==null?void 0:fr.compData)==null?void 0:Gl.find(ur=>(ur==null?void 0:ur.key)==="tableContents"))==null?void 0:dr.contents)||[];if(!Array.isArray(Dr)||Dr.length===0)return"";const ln=Dr.find(ur=>String((ur==null?void 0:ur["试验代号(名称)"])||"").slice(0,8)===wl);return Ma(ln==null?void 0:ln.计划试验时间)}catch(Ol){return console.warn("获取任务列表计划试验时间失败:",Ol),""}},ol=(de.value||"").replace(/\/+$/,""),Ga=sa?`${ol}/${sa}`:ol,_a=await Jr(Ga||de.value,!1),dl=String(Ue.value||"").trim(),Ul=wl=>String(wl||"").trim(),qa=(wl,Gl=[],dr="")=>{if(!Array.isArray(wl))return Gl;for(const Ol of wl){const pr=Ul((Ol==null?void 0:Ol.choiceName)||(Ol==null?void 0:Ol.name0)||dr);(Ol==null?void 0:Ol.comp)==="Table"&&(Ol==null?void 0:Ol.name)&&Ne.includes(Ol.name)&&(!dl||pr===dl)&&Gl.push(Ol),Array.isArray(Ol==null?void 0:Ol.children)&&qa(Ol.children,Gl,pr),Array.isArray(Ol==null?void 0:Ol.tab)&&qa(Ol.tab,Gl,pr),Array.isArray(Ol==null?void 0:Ol.choice)&&qa(Ol.choice,Gl,pr)}return Gl},Bl=qa(_a||[]),Va=new Map;for(const wl of Bl)wl!=null&&wl.name&&!Va.has(wl.name)&&Va.set(wl.name,wl);const Ll=Ne.map(wl=>Va.get(wl)).filter(Boolean);if(!Ll||Ll.length===0)return Ja.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const rl=wl=>{const Gl=new Map,dr=(Ol,pr=[])=>{if(Array.isArray(Ol))for(const wr of Ol){const fr=((wr==null?void 0:wr.label)??"").toString().trim(),Dr=fr?[...pr,fr]:[...pr];if(Array.isArray(wr==null?void 0:wr.children)&&wr.children.length>0)dr(wr.children,Dr);else{const ur=((wr==null?void 0:wr.prop)??"").toString();if(!ur)continue;const Nr=fr||ur,Rr=(Dr.length>0?[...pr,Nr]:[Nr]).join(".");Gl.set(ur,Rr)}}};return dr(wl,[]),Gl},hl=(wl,Gl)=>{const dr=rl(wl||[]),pr=(le.getAllLeafNodes(wl||[])||[]).filter(fr=>(fr==null?void 0:fr.prop)&&(fr==null?void 0:fr.type)!=="operate"&&(fr==null?void 0:fr.label)!=="操作"&&(fr==null?void 0:fr.prop)!=="operate"),wr=Array.isArray(Gl)?Gl:[];return wr.length===0?[]:wr.map(fr=>{const Dr={};return pr.forEach(ln=>{const ur=String(ln.prop),Nr=dr.get(ur)||String(ln.label||ln.prop);Dr[Nr]=(fr==null?void 0:fr[ur])??""}),Dr})},zl=Ll.map(wl=>{var wr,fr;const Gl=(wl==null?void 0:wl.compData)||[];let dr=(wr=Gl==null?void 0:Gl.find(Dr=>(Dr==null?void 0:Dr.key)==="header"))==null?void 0:wr.contents;Array.isArray(dr==null?void 0:dr[0])&&(dr=dr[0]);const Ol=((fr=Gl==null?void 0:Gl.find(Dr=>(Dr==null?void 0:Dr.key)==="tableContents"))==null?void 0:fr.contents)||[];if(!Array.isArray(dr)||dr.length===0||!Array.isArray(Ol)||Ol.length===0)return null;const pr=hl(dr||[],Ol||[]);return!Array.isArray(pr)||pr.length===0?null:{类型:wl==null?void 0:wl.name,数据:pr}}).filter(Boolean);if(!zl||zl.length===0)return Ja.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const kl=await Ua(T),xr={试验代号:T,试验日期:kl,ParaForm:zl},cr=await _i().catch(()=>""),Ql=await M.exportParaformApi(xr,cr);if(((Xe=Ql==null?void 0:Ql.data)==null?void 0:Xe.code)===200&&((Da=(ya=Ql==null?void 0:Ql.data)==null?void 0:ya.result)!=null&&Da.Excel文件)){const wl=Ql.data.result.Excel文件,Gl=await M.platformDownloadFile({url:wl}),dr=new Blob([Gl.data],{type:"application/vnd.ms-excel"}),Ol=URL.createObjectURL(dr),pr=M.dayjs().format("YYYYMMDD"),fr=`${(T||"UNKNOWN").trim()||"UNKNOWN"}_${pr}_paraform.xls`,Dr=document.createElement("a");Dr.href=Ol,Dr.download=fr,Dr.style.display="none",document.body.appendChild(Dr),Dr.click(),setTimeout(()=>{document.body.removeChild(Dr),URL.revokeObjectURL(Ol)},100);const ln=Array.isArray((Ze=(Ta=Ql==null?void 0:Ql.data)==null?void 0:Ta.result)==null?void 0:Ze.warnings)?Ql.data.result.warnings:[];if(ln.length>0){const ur=ln.map((Nr,Rr)=>`${Rr+1}. ${(Nr==null?void 0:Nr.field)||"未知字段"}:${(Nr==null?void 0:Nr.message)||""}`).join(`
|
|
24
|
-
`);Ja.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
-
${ur}`,duration:5e3,showClose:!0})}else Ja.ElMessage.success("导出成功")}else Ja.ElMessage.error(((nl=Ql==null?void 0:Ql.data)==null?void 0:nl.message)||"导出失败")}catch(Ne){console.error("导出paraform失败:",Ne),Ja.ElMessage.error("导出失败:"+((Ne==null?void 0:Ne.message)||"未知错误"))}finally{$a.close()}}else if(p!=null&&p.includes("导出")&&p!=="导出paraform"){if(p==="导出选中"&&((ba=Mr.value)==null?void 0:ba.length)===0)return Ja.ElMessage.warning(`请先勾选${p}的数据`);if(p==="导出全部"&&((il=Ce.value)==null?void 0:il.length)===0)return Ja.ElMessage.warning("暂无数据导出");let $a=["序号",...(Fa=(ye=P.value)==null?void 0:ye.map(sa=>sa==null?void 0:sa.prop))==null?void 0:Fa.filter(sa=>sa!=="操作")],Ne=p==="导出全部"?Ce.value:Mr.value;const Z=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Ne=Ne==null?void 0:Ne.map(sa=>Object.fromEntries(Object.entries(sa).filter(([T])=>!Z.includes(T)))),$a=["序号",...$a],Ne=Ne==null?void 0:Ne.map((sa,T)=>({序号:T+1,...sa}));let He=(d==null?void 0:d.compName)||"表格信息";Ho(Ne,He,$a,He)}else if(p==="OCR识别")_l.value=!0,va.value=[],la.value=1,Ka.value.clear(),Sl.value.clear(),Ee.value=0;else if(p==="迁移")G.selectRow=v,G.show=!0;else if(p==="生成方法"){let $a=await v0(v),Ne;v!==""?Ne=[v]:Ne=M.cloneDeep(Ce.value),Ne=Ne==null?void 0:Ne.map(He=>(He.输出值=$a,He));const Z={fixContent:Ne,buttonName:"编辑",relatedContents:d==null?void 0:d.related,columns:P.value,name:d==null?void 0:d.groupNames};U("change",Z)}else if(p==="签字板"||p==="触控笔")tl.value.dialogShow=!0,tl.value.dialogTitle=p;else if(((fa=N==null?void 0:N.extra)==null?void 0:fa.type)==="methodButton"){let $a;v!==""?$a=[v]:$a=M.cloneDeep(Ce.value);const Ne=await St($a,P==null?void 0:P.value,"Manual",Ce.value,d==null?void 0:d.calculator);let Z;(Ya=Ne==null?void 0:Ne[0])!=null&&Ya.menuPathContent?Z={fixContent:Ne,buttonName:"新增",relatedContents:d==null?void 0:d.related,columns:P.value,name:d==null?void 0:d.groupNames}:Z={fixContent:Ne,buttonName:"methodButton",relatedContents:d==null?void 0:d.related,columns:P.value,name:d==null?void 0:d.groupNames},U("change",Z)}}},bu=async(p,v)=>{var N,I,j,D,ne,te,K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl,ba,il,ye;try{let Fa,fa;const Ya=(N=da.value[de.value+R])==null?void 0:N.filter(Ua=>{var ol;return((ol=Ua==null?void 0:Ua.key)==null?void 0:ol.type)==="structureMethod"}),$a=(I=da.value[de.value+R])==null?void 0:I.filter(Ua=>{var ol;return((ol=Ua==null?void 0:Ua.key)==null?void 0:ol.type)==="structure"}),Ne=Ya==null?void 0:Ya.find(Ua=>{var ol,Ga;return((Ga=(ol=Ua==null?void 0:Ua.value)==null?void 0:ol.pageData)==null?void 0:Ga.method)==="保存"});if(!Ne)return;const Z=(te=(ne=da.value[(D=(j=Ne==null?void 0:Ne.value)==null?void 0:j.pageData)==null?void 0:D.path])==null?void 0:ne.filter(Ua=>{var ol;return((ol=Ua==null?void 0:Ua.key)==null?void 0:ol.type)==="data"}))==null?void 0:te.find(Ua=>{var ol,Ga,_a,dl;return((Ga=(ol=Ua==null?void 0:Ua.value)==null?void 0:ol.tableData)==null?void 0:Ga.算法名称)===((dl=(_a=Ne==null?void 0:Ne.value)==null?void 0:_a.pageData)==null?void 0:dl.method)});if(!Z)return;const He={buttonName:(ge=(K=Ne==null?void 0:Ne.value)==null?void 0:K.pageData)==null?void 0:ge.method,api:(Ge=(me=Z==null?void 0:Z.value)==null?void 0:me.tableData)==null?void 0:Ge.算法体,content:$a==null?void 0:$a.map(Ua=>{var ol;return(ol=Ua==null?void 0:Ua.value)==null?void 0:ol.pageData}),extraContent:[],extraValues:(Xe=(We=Ne==null?void 0:Ne.value)==null?void 0:We.pageData)==null?void 0:Xe.data,methodName:(Da=(ya=Ne==null?void 0:Ne.value)==null?void 0:ya.pageData)==null?void 0:Da.path};if(!p)return;const sa={...p,compData:(Ta=p==null?void 0:p.compData)==null?void 0:Ta.map(Ua=>{var ol;return(Ua==null?void 0:Ua.key)==="formContent"?{...Ua,contents:(ol=Ua==null?void 0:Ua.contents)==null?void 0:ol.map(Ga=>(Ga==null?void 0:Ga.prop)===v?{...Ga,value:""}:Ga)}:Ua})},T={key:{pageKey:de.value+R,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:sa}},Ma=await Ja.axios.post(He.api,T,{headers:{"Content-Type":"application/json"}});return((Ze=Ma==null?void 0:Ma.data)==null?void 0:Ze.code)===200&&(Fa=(ba=(nl=Ma==null?void 0:Ma.data)==null?void 0:nl.result)==null?void 0:ba.latestReportCode,fa=(ye=(il=Ma==null?void 0:Ma.data)==null?void 0:il.result)==null?void 0:ye.status),{newMainKeyValue:Fa,newStatus:fa}}catch(Fa){throw Ja.ElMessage.error(Fa),new Error(Fa)}},Vt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const ku=async(p,v,N)=>{var K,ge;let I=p==null?void 0:p[v==null?void 0:v.prop],j=1,D,ne;const te=M.cloneDeep(de).value+R+I;if(te){Vt.value="",D=(K=da.value[te])==null?void 0:K.filter(We=>{var Xe;return((Xe=We==null?void 0:We.key)==null?void 0:Xe.type)==="structure"});const me=D==null?void 0:D.find(We=>{var Xe,ya,Da;return((Da=(ya=(Xe=We==null?void 0:We.value)==null?void 0:Xe.pageData)==null?void 0:ya.comp)==null?void 0:Da.toUpperCase())==="FORM"});ne={...(ge=me==null?void 0:me.value)==null?void 0:ge.pageData,id:me==null?void 0:me.id};const Ge=await bu(ne,v==null?void 0:v.prop);if(Vt.value=Ge==null?void 0:Ge.newStatus,Ge!=null&&Ge.newMainKeyValue)return Ge==null?void 0:Ge.newMainKeyValue}if(Ce.value.some(me=>(me==null?void 0:me[v==null?void 0:v.prop])===I)){const me=I;for(;Ce.value.some(Ge=>(Ge==null?void 0:Ge[v==null?void 0:v.prop])===`${me}(${j})`);)j++;I=`${me}(${j})`}return I},xu=async(p,v,N)=>{var D,ne,te,K;let I,j;if(await ku(N==null?void 0:N.data,N==null?void 0:N.firstCol),I=M.cloneDeep(de).value+R,j=M.cloneDeep(I)+`loading${((D=Il.value)==null?void 0:D.account)||((ne=Il.value)==null?void 0:ne.账号)}`,v){const ge=(K=(te=da.value[j])==null?void 0:te.filter(me=>{var Ge;return((Ge=me==null?void 0:me.key)==null?void 0:Ge.parentTable)===""}))==null?void 0:K.map(me=>{var Ge;return{id:me==null?void 0:me.id,...(Ge=me==null?void 0:me.value)==null?void 0:Ge.pageData}});(ge==null?void 0:ge.length)>0||await le.loadingConstruct(I,j,null,null,null),Ba.setRouteToChildPath(M.cloneDeep(de).value),ea.setActiveMenuPath(j)}else Ba.setRouteToChildPath(M.cloneDeep(de).value),ea.setActiveMenuPath(j)},wu=()=>{se.value=!1,Pe.value=[],B.value=!1},Pi=p=>{var te,K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl,ba,il,ye,Fa,fa,Ya,$a,Ne,Z,He,sa;const v=[];$e.value=M.cloneDeep(P.value);let N=(K=(te=u.value)==null?void 0:te.find(T=>{var Ma;return(Ma=T==null?void 0:T.key)==null?void 0:Ma.includes("@EditRead")}))==null?void 0:K.content,I=!1;(N==null?void 0:N.length)>0&&(I=_s(N,p),(I==null?void 0:I.length)>0?I=!0:I=!1),(me=le.getColumnChild((ge=M.cloneDeep(P.value))==null?void 0:ge.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||me.forEach((T,Ma)=>{var Ua,ol,Ga;T!=null&&T.formType&&((Ua=T==null?void 0:T.formType)==null?void 0:Ua.toUpperCase())==="SELECT"||T!=null&&T.menuId?v.push({label:(ol=T==null?void 0:T.prop)!=null&&ol.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+Ma,prop:T==null?void 0:T.prop,type:"Select",value:(p==null?void 0:p[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Ma,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,multipleLimit:T==null?void 0:T.multipleLimit,width:2,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:I||(T==null?void 0:T.disabled),filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly}):v.push({label:(Ga=T==null?void 0:T.prop)!=null&&Ga.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",prop:T==null?void 0:T.prop,name:(T==null?void 0:T.prop)??"t"+Ma,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(p==null?void 0:p[T==null?void 0:T.prop])??"{}":(p==null?void 0:p[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Ma,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:2,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:I||(T==null?void 0:T.disabled),relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly})}),p===""||!p||(oa.value=(p==null?void 0:p.id)??"");let j=le.getColumnChild((Ge=M.cloneDeep(P.value))==null?void 0:Ge.filter(T=>(T==null?void 0:T.label)!=="操作"));na.value&&((We=na.value)==null?void 0:We.length)>0&&(na.value=(Xe=M.cloneDeep(na).value)==null?void 0:Xe.map(T=>{var Ua;let Ma=(T==null?void 0:T.prop)||((Ua=j==null?void 0:j.find(ol=>(ol==null?void 0:ol.label)===(T==null?void 0:T.label)))==null?void 0:Ua.prop);return Ma&&(T.value=p[Ma]),T})),we.value=na.value&&((ya=na.value)==null?void 0:ya.length)>0?le.getTableFormToForm(na.value):v,we.value=((Da=we.value)==null?void 0:Da.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??we.value;let D=[],ne=((nl=(Ze=(Ta=d.itemData)==null?void 0:Ta.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Ze[0])==null?void 0:nl.contents)??"";if(ne=le.analyzeSplitToContent(ne,","),(ne==null?void 0:ne.length)>0&&(D=ne.flat()),(D==null?void 0:D.length)>0){let T=D==null?void 0:D.filter(_a=>_a==null?void 0:_a.includes("@Type"));if(T=T==null?void 0:T[(T==null?void 0:T.length)-1],(T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T){let _a=(il=(ba=T==null?void 0:T.replace("=",b))==null?void 0:ba.split(b))==null?void 0:il[1];((ye=_a==null?void 0:_a.trim())==null?void 0:ye.toUpperCase())==="MANUAL"&&(d==null||d.index,we.value=(Fa=we.value)==null?void 0:Fa.map((dl,Ul)=>dl))}let Ma=(fa=we.value)==null?void 0:fa.filter(_a=>_a==null?void 0:_a.mainKey),Ua;Ma==null||Ma.forEach(_a=>{var Ul;if(Ua!==void 0)return;let dl=_a==null?void 0:_a.menus;((Ul=Ma==null?void 0:Ma.filter(qa=>qa==null?void 0:qa.mainKey))==null?void 0:Ul.length)>1&&(Ua=dl,_a==null||_a.groups)});let ol=[],Ga=new Map;if(Ma==null||Ma.forEach(_a=>{var dl,Ul,qa,Bl,Va,Ll,rl,hl,zl,kl,xr,cr,Ql;if((dl=_a==null?void 0:_a.prop)!=null&&dl.includes(".")){let wl=[];Ga.get(((qa=(Ul=_a==null?void 0:_a.prop)==null?void 0:Ul.split("."))==null?void 0:qa[0])+(_a!=null&&_a.isMainPath?0:1)+((Bl=_a==null?void 0:_a.groups)==null?void 0:Bl[0]))&&(wl=Ga.get(((Ll=(Va=_a==null?void 0:_a.prop)==null?void 0:Va.split("."))==null?void 0:Ll[0])+(_a!=null&&_a.isMainPath?0:1)+((rl=_a==null?void 0:_a.groups)==null?void 0:rl[0]))),wl.push(_a),Ga.set(((zl=(hl=_a==null?void 0:_a.prop)==null?void 0:hl.split("."))==null?void 0:zl[0])+(_a!=null&&_a.isMainPath?0:1)+((kl=_a==null?void 0:_a.groups)==null?void 0:kl[0]),wl)}else{let wl=[];Ga.get("normal"+(_a!=null&&_a.isMainPath?0:1)+((xr=_a==null?void 0:_a.groups)==null?void 0:xr[0]))&&(wl=Ga.get("normal"+(_a!=null&&_a.isMainPath?0:1)+((cr=_a==null?void 0:_a.groups)==null?void 0:cr[0]))),wl.push(_a),Ga.set("normal"+(_a!=null&&_a.isMainPath?0:1)+((Ql=_a==null?void 0:_a.groups)==null?void 0:Ql[0]),wl)}}),ol=Array.from(Ga.values()),(ol==null?void 0:ol.length)>0)for(let _a in ol){let dl=ol==null?void 0:ol[_a];if((dl==null?void 0:dl.length)!==1){if((dl==null?void 0:dl.length)>1){let Ul=dl==null?void 0:dl.map(kl=>kl==null?void 0:kl.prop),qa=dl==null?void 0:dl.map(kl=>kl==null?void 0:kl.label),Bl=dl==null?void 0:dl.map(kl=>kl==null?void 0:kl.value),Va=(Ya=M.cloneDeep(dl))==null?void 0:Ya[0],Ll=($a=we.value)==null?void 0:$a.findIndex(kl=>(kl==null?void 0:kl.prop)===(Va==null?void 0:Va.prop)),rl=(Ne=we.value)==null?void 0:Ne.slice(0,Ll),hl=(He=we.value)==null?void 0:He.slice(Ll,(Z=we.value)==null?void 0:Z.length);Va.label=qa==null?void 0:qa.join("·"),Va.value=Bl==null?void 0:Bl.join(" "),Va.value.trim()===""&&(Va.value=""),Va.prop=Ul==null?void 0:Ul.join("·");let zl=dl==null?void 0:dl.map(kl=>{var xr;return(xr=kl==null?void 0:kl.words)==null?void 0:xr.join(".")});Va.relatedWords=zl,Va.usingType="parent",hl.unshift(Va),we.value=[...rl,...hl],we.value=(sa=we.value)==null?void 0:sa.map(kl=>(Ul!=null&&Ul.find(xr=>xr===(kl==null?void 0:kl.prop))&&(kl.isFormColHidden=!0,kl.relatedWords=zl),kl))}}}}},_u=()=>{var v;const p=(v=i.value)==null?void 0:v.$el;p&&Fl.Sortable.create(p,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:N=>{var ne;const{oldIndex:I,newIndex:j}=N;if(I===j)return;const D=Gn.value.splice(I,1)[0];Gn.value.splice(j,0,D),P.value=(ne=P.value)==null?void 0:ne.slice().sort((te,K)=>{if(te.label==="操作")return 1;if(K.label==="操作")return-1;const ge=Gn.value.findIndex(Ge=>Ge.label===te.label),me=Gn.value.findIndex(Ge=>Ge.label===K.label);return ge-me})}})};e.onMounted(()=>{Ia.value=window.innerWidth-240*2,window.addEventListener("keydown",oi)});const Su=()=>{e.nextTick(()=>{_u()})},Eu=()=>{c.value=!0},dt=(p,v)=>{var I;if(!p&&!(p!=null&&p.children))return{contents:p,currentSelectContents:void 0};let N;return p.children=(I=p.children)==null?void 0:I.map(j=>{var D,ne;if((j==null?void 0:j.id)===oa.value){let te={};for(let K in j){let ge=(D=v==null?void 0:v.find(me=>(me==null?void 0:me.prop)===K))==null?void 0:D.label;ge?te[K]=(ne=rr.value)==null?void 0:ne[ge]:te[K]=j[K]??""}j=Object.assign(te,rr.value),N=j}else{let te=dt(j,v);j=te==null?void 0:te.contents,N=te==null?void 0:te.currentSelectContents}return j}),{contents:p,currentSelectContents:N}},Ft=(p,v)=>{let N,I;return p!=null&&p.find(j=>(j==null?void 0:j.id)===oa.value)?N=p==null?void 0:p.map(j=>{var D,ne,te;if((j==null?void 0:j.id)===oa.value){let K={};for(let me in j){let Ge=(D=v==null?void 0:v.find(We=>(We==null?void 0:We.prop)===me))==null?void 0:D.label;Ge?K[me]=((ne=rr.value)==null?void 0:ne[Ge])??"":K[me]=j[me]??""}let ge=rr.value;for(let me in K)(te=rr.value)!=null&&te[me]||(ge[me]=(K==null?void 0:K[me])??"");j=ge,I=j}return j}):N=p==null?void 0:p.map(j=>{var D,ne,te,K;if((j==null?void 0:j.id)===oa.value){let ge={};for(let me in j){let Ge=(D=v==null?void 0:v.find(We=>(We==null?void 0:We.prop)===me))==null?void 0:D.label;Ge?ge[me]=(ne=rr.value)==null?void 0:ne[Ge]:ge[me]=j[me]??""}j=Object.assign(ge,rr.value),I=j}else j=(te=dt(j,v))==null?void 0:te.contents,I=(K=dt(j,v))==null?void 0:K.currentSelectContents;return j}),{newContents:N,currentSelectContents:I}},Pt=(p,v,N)=>{var I,j;return p[v==null?void 0:v.prop]=N,typeof p.id=="number"&&(p.id=(I=p.id)==null?void 0:I.toString()),p.children&&((j=p.children)==null?void 0:j.length)>0&&(p.children=p.children.map(Pt)),p},jt=p=>{var N;const v=[];return v.push({...p}),p!=null&&p.children&&Array.isArray(p.children)&&((N=p.children)==null||N.forEach(I=>{v.push(...jt(I))})),(v==null?void 0:v.length)>0?v==null?void 0:v.map(I=>{const j={...I};return delete j.children,j}):[]},co=["Pacific6000数据采集装置.通道号","通道号"],ji=p=>{if(!p)return"";const v=co.map(N=>p==null?void 0:p[N]).find(N=>N!=null&&String(N).trim()!=="");return v==null?"":String(v).trim()},pt=async(p,v=void 0)=>{if(!p)return!1;try{const N=Xe=>{var ya,Da,Ta;return Xe?typeof(Xe==null?void 0:Xe.value)=="string"?Xe.value:((Ta=(Da=(ya=Xe==null?void 0:Xe._custom)==null?void 0:ya.value)==null?void 0:Da.value)==null?void 0:Ta.value)||"":""},I=Array.isArray(or.value)?or.value:[],j=N(I.find(Xe=>(Xe==null?void 0:Xe.condition)==="child")),D=(de.value||"").replace(/\/+$/,""),ne=j?`${D}/${j}`:D,te=await Jr(ne||de.value,!1),K=String(Ue.value||"").trim(),ge=Xe=>String(Xe||"").trim(),me=(Xe,ya=[],Da="")=>{if(!Array.isArray(Xe))return ya;for(const Ta of Xe){const Ze=ge((Ta==null?void 0:Ta.choiceName)||(Ta==null?void 0:Ta.name0)||Da);(Ta==null?void 0:Ta.comp)==="Table"&&(!K||Ze===K)&&ya.push(Ta),Array.isArray(Ta==null?void 0:Ta.children)&&me(Ta.children,ya,Ze),Array.isArray(Ta==null?void 0:Ta.tab)&&me(Ta.tab,ya,Ze),Array.isArray(Ta==null?void 0:Ta.choice)&&me(Ta.choice,ya,Ze)}return ya},Ge=me(te||[]),We=String((d==null?void 0:d.compName)||"");return Ge.some(Xe=>{var Da,Ta;const ya=((Ta=(Da=Xe==null?void 0:Xe.compData)==null?void 0:Da.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:Ta.contents)||[];return!Array.isArray(ya)||ya.length===0?!1:ya.some(Ze=>{if(String((Xe==null?void 0:Xe.name)||"")===We&&(Ze==null?void 0:Ze.id)===v)return!1;const ba=ji(Ze);return!!ba&&ba===p})})}catch{return(Ce.value||[]).some(I=>{if((I==null?void 0:I.id)===v)return!1;const j=ji(I);return!!j&&j===p})}},Hi=async(p=!0,v,N)=>{var ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl,ba,il,ye,Fa,fa,Ya,$a,Ne,Z,He,sa,T,Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl;if(rr.value){const Va=(me=le.getColumnChild((ge=M.cloneDeep(P.value))==null?void 0:ge.filter(rl=>(rl==null?void 0:rl.label)!=="操作")))==null?void 0:me.filter(rl=>(rl==null?void 0:rl.required)===!0);for(let rl=0;rl<((Va==null?void 0:Va.length)??0);rl++){const hl=Va[rl],zl=hl==null?void 0:hl.prop,kl=(hl==null?void 0:hl.label)??zl,xr=(Ge=rr.value)==null?void 0:Ge[zl];if(xr===""||xr===null||xr===void 0||Array.isArray(xr)&&xr.length===0){Ja.ElMessage.error(`${kl}不能为空`);return}}const Ll=ji(rr.value);if(Ll&&await pt(Ll,oa.value||void 0)){Ja.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let I=le.getColumnChild((We=M.cloneDeep(P.value))==null?void 0:We.filter(Va=>(Va==null?void 0:Va.label)!=="操作")),j,D=M.cloneDeep(Ce.value);if(!rr.value){xe.value=!1;return}if(oa.value===""){De.value++;let Va;Va={id:De.value.toString()};try{Va.sort=si(0,Ce.value||[])}catch{}Va!=null&&Va.children&&(Va={...Va,children:(Xe=Va.children)==null?void 0:Xe.map(rl=>Pt(rl,v,N))});const Ll=Object.assign(rr.value,Va);D.unshift(Ll),j=Ll}else D=(ya=Ft(D,I))==null?void 0:ya.newContents,j=(Da=Ft(D,I))==null?void 0:Da.currentSelectContents;const ne=(Ta=d.itemData)==null?void 0:Ta.filter(Va=>(Va==null?void 0:Va.key)==="childTree")[0];if(((Ze=ne==null?void 0:ne.contents)==null?void 0:Ze.length)>0){Je.value="编辑";const Va=[];D==null||D.forEach((hl,zl)=>{var xr;let kl={};if(Array.isArray(hl)){let cr=[];hl==null||hl.filter(Ql=>!(Ql!=null&&Ql.id)).forEach((Ql,wl)=>{var Gl,dr,Ol,pr,wr,fr,Dr;if((dr=(Gl=Or.value)==null?void 0:Gl[wl])!=null&&dr.prop&&!Array.isArray(Ql)){let ln={};ln[Or.value[wl].column]=Ql,F!=null&&F.value&&((Ol=F==null?void 0:F.value)==null?void 0:Ol.length)>0&&((pr=F==null?void 0:F.value)!=null&&pr.find(ur=>JSON.stringify(ur==null?void 0:ur[0])===JSON.stringify(ln)))&&(cr=(wr=F==null?void 0:F.value)==null?void 0:wr.find(ur=>JSON.stringify(ur==null?void 0:ur[0])===JSON.stringify(ln))),cr&&cr.length>0?kl[Or.value[wl].prop]=cr!=null&&cr.find(ur=>{var Nr;return((Nr=Object.keys(ur))==null?void 0:Nr[0])===Or.value[wl].column})?(fr=cr==null?void 0:cr.find(ur=>{var Nr;return((Nr=Object.keys(ur))==null?void 0:Nr[0])===Or.value[wl].column}))==null?void 0:fr[Or.value[wl].column]:Ql:kl[Or.value[wl].prop]=Ql}else Array.isArray(Ql)&&((Dr=Or.value[wl])!=null&&Dr.prop?kl[Or.value[wl].prop]=Ql:kl.children=Et(Ql,Or.value))})}else kl=hl;if(Array.isArray(hl)&&hl.some(cr=>cr==null?void 0:cr.id)){const cr=(xr=hl==null?void 0:hl.find(Ql=>Ql.id))==null?void 0:xr.id;Va.push(Object.assign(kl,{id:io(cr)}))}else kl.id?Va.push(kl):Va.push(Object.assign(kl,{id:zl.toString()}))});const Ll=(Ce.value||[]).map(hl=>String(hl==null?void 0:hl.id)),rl=wi(Va,Ll);Ce.value=Wt(rl,ne,P.value)}Ut(Ce.value),qr.value=Ce.value;const te=Qf(qr.value,ql.value,D);let K=[];if(Q.value?(K=(nl=M.cloneDeep(Q).value.singleContent)==null?void 0:nl.filter(Va=>(Va==null?void 0:Va.id)!==(j==null?void 0:j.id)),K.push(j)):K=[j],tr.value){const Va={content:te,singleContent:((ba=ne==null?void 0:ne.contents)==null?void 0:ba.length)>0?K==null?void 0:K.flatMap(jt):K,index:d==null?void 0:d.index,buttonName:"编辑",column:P.value,parentTableId:d==null?void 0:d.parentTableId};Ba.setCacheUpdatingData(Va)}if((il=P.value)==null||il.forEach(Va=>{(Va==null?void 0:Va.formType)==="Upload"&&(j[Va.prop]=j[Va.prop]===""?"{}":typeof j[Va.prop]!="string"?JSON.stringify(j[Va.prop]):j[Va.prop])}),p){(Ya=(fa=(Fa=(ye=d.itemData)==null?void 0:ye.find(rl=>(rl==null?void 0:rl.key)==="filterAllType"))==null?void 0:Fa.value)==null?void 0:fa.find(rl=>(rl==null?void 0:rl.value)==="onConditionContents"))==null||Ya.content;let Va=($a=d.itemData)==null?void 0:$a.filter(rl=>(rl==null?void 0:rl.key)==="filterAllType");Va=Array.from(new Map(Va.filter(Boolean).map((rl,hl)=>[rl.value,{...rl,_idx:hl}])).values()).sort((rl,hl)=>rl._idx-hl._idx).map(({_idx:rl,...hl})=>hl),Va=(Ne=Va==null?void 0:Va[(Va==null?void 0:Va.length)-1])==null?void 0:Ne.value;const Ll={fixContent:[j],buttonName:Je.value,relatedContents:d==null?void 0:d.related,columns:P.value,name:d==null?void 0:d.groupNames};Ba.setTableLoading(d==null?void 0:d.index),xe.value=!1,rr.value=void 0,U("change",Ll)}if((sa=(He=(Z=we.value)==null?void 0:Z[0])==null?void 0:He.optionUrl)!=null&&sa.menuId){xe.value=!1;let Va=(T=d.itemData)==null?void 0:T.filter(Ll=>(Ll==null?void 0:Ll.key)==="filterAllType");if((Va==null?void 0:Va.length)>0){let Ll=Va==null?void 0:Va.map(zl=>zl==null?void 0:zl.value),rl=(ol=(Ua=(Ma=Ll.flat().find(zl=>{var kl;return(kl=zl==null?void 0:zl.content)==null?void 0:kl.includes("@Num")}))==null?void 0:Ma.content)==null?void 0:Ua.split(":"))==null?void 0:ol[1];((dl=(_a=(Ga=Ll.flat().find(zl=>{var kl;return(kl=zl==null?void 0:zl.content)==null?void 0:kl.includes("@Type:")}))==null?void 0:Ga.content)==null?void 0:_a.split(":"))==null?void 0:dl[1])!=="Manual"&&(rl=parseInt(rl),Ce.value=(Bl=Ce.value)==null?void 0:Bl.slice(((Ul=Ce.value)==null?void 0:Ul.length)-rl,(qa=Ce.value)==null?void 0:qa.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",oi),P.value=[],Ce.value=[],$e.value=[],ie.value=[],na.value=[],za.value=[],Pe.value=[],je.value=[],we.value=[],Mr.value=[],i.value=null,dn.value=""});const uo=async(p,v,N)=>{var Xe,ya,Da,Ta,Ze,nl,ba,il,ye,Fa,fa,Ya,$a;Br.value=(N==null?void 0:N.prop)??(N==null?void 0:N.property);const I=M.cloneDeep(d.itemData),j=((Xe=I==null?void 0:I.find(Ne=>(Ne==null?void 0:Ne.key)==="header"))==null?void 0:Xe.contents)??[];let D=j==null?void 0:j.find((Ne,Z)=>{var He,sa,T;return(Ne==null?void 0:Ne.prop)===Br.value||(Ne==null?void 0:Ne.label)===Br.value||(Z==null?void 0:Z.toString())===((T=(sa=(He=Br.value)==null?void 0:He.split("a"))==null?void 0:sa[1])==null?void 0:T.toString())});const ne=le.getColumnChild((ya=M.cloneDeep(P.value))==null?void 0:ya.filter(Ne=>(Ne==null?void 0:Ne.label)!=="操作"));if(D||(D=ne==null?void 0:ne.find(Ne=>(Ne==null?void 0:Ne.prop)===Br.value||(Ne==null?void 0:Ne.label)===Br.value)),D&&!((Da=D==null?void 0:D.menus)!=null&&Da.length)&&!((Ta=D==null?void 0:D.groups)!=null&&Ta.length)&&!((Ze=D==null?void 0:D.words)!=null&&Ze.length)){const Ne=(nl=we.value)==null?void 0:nl.find(Z=>(Z==null?void 0:Z.prop)===Br.value);Ne&&(D={...D,menus:(Ne==null?void 0:Ne.menus)??(D==null?void 0:D.menus),groups:(Ne==null?void 0:Ne.groups)??(D==null?void 0:D.groups),words:(Ne==null?void 0:Ne.words)??(D==null?void 0:D.words),bindMenus:(Ne==null?void 0:Ne.bindMenus)??(D==null?void 0:D.bindMenus),isMainPath:(Ne==null?void 0:Ne.isMainPath)??(D==null?void 0:D.isMainPath),relatedContents:(Ne==null?void 0:Ne.relatedContents)??(D==null?void 0:D.relatedContents),endChildMenu:(Ne==null?void 0:Ne.endChildMenu)??(D==null?void 0:D.endChildMenu)})}if(D&&((ba=we==null?void 0:we.value)==null||ba.forEach(Ne=>{var Z,He,sa,T,Ma;(Ne==null?void 0:Ne.prop)===(D==null?void 0:D.prop)&&(Ne!=null&&Ne.endChildMenu)&&((Z=D==null?void 0:D.prop)!=null&&Z.includes(".")&&((sa=(He=D==null?void 0:D.prop)==null?void 0:He.split("."))==null?void 0:sa[0])!==((Ma=(T=Ne==null?void 0:Ne.prop)==null?void 0:T.split("."))==null?void 0:Ma[0])?D.endChildMenu=Ne==null?void 0:Ne.value:D.endChildMenu=Ne==null?void 0:Ne.endChildMenu)})),!D)return;const te=Br.value,K=(il=Ce.value)==null?void 0:il.findIndex(Ne=>(Ne==null?void 0:Ne.id)===(v==null?void 0:v.id));K!==-1&&te&&(Ce.value[K]={...Ce.value[K],[te]:p});const ge=Ne=>{Array.isArray(Ne)&&Ne.forEach(Z=>{Array.isArray(Z==null?void 0:Z.allSelectionContents)&&Z.allSelectionContents.length>0&&(Z.contactValue=Ce.value[K]??v),Array.isArray(Z==null?void 0:Z.children)&&Z.children.length>0&&ge(Z.children)})};ge(P.value),D.value=p,D.endChildMenu=D.endChildMenu||"";let me=D!=null&&D.isMainPath&&(D!=null&&D.mainKey)?D==null?void 0:D.value:"";const Ge=Ne=>{Array.isArray(Ne)&&Ne.forEach(Z=>{var sa,T;if(((Z==null?void 0:Z.type)==="Select"||(Z==null?void 0:Z.formType)&&Z.formType.toUpperCase()==="SELECT"||(Z==null?void 0:Z.columnType)&&Z.columnType.toUpperCase()==="SELECT")&&Array.isArray(Z==null?void 0:Z.menus)&&Z.menus.length>0&&Z.menus[Z.menus.length-1]===""&&(D!=null&&D.isMainPath)&&(D!=null&&D.mainKey)){const Ma=(sa=Z==null?void 0:Z.prop)!=null&&sa.includes(".")?Z.prop.split(".")[0]:null,Ua=(T=D==null?void 0:D.prop)!=null&&T.includes(".")?D.prop.split(".")[0]:null;(!Ma||!Ua||Ma===Ua)&&(Z.endChildMenu=me)}Array.isArray(Z==null?void 0:Z.children)&&Z.children.length>0&&Ge(Z.children)})};if(Ge(P.value),!!(D!=null&&D.mainKey)&&Array.isArray(D==null?void 0:D.menus)&&(D==null?void 0:D.menus.length)>0&&(D!=null&&D.value)&&(D==null?void 0:D.value)!==""){let Ne=D!=null&&D.relatedContents&&((ye=D==null?void 0:D.relatedContents)==null?void 0:ye.length)>0?(Fa=D==null?void 0:D.relatedContents)==null?void 0:Fa.find(Z=>{var He,sa,T,Ma;return(Z==null?void 0:Z[(Ma=(He=D==null?void 0:D.prop)==null?void 0:He.split("."))==null?void 0:Ma[((T=(sa=D==null?void 0:D.prop)==null?void 0:sa.split("."))==null?void 0:T.length)-1]])===(D==null?void 0:D.value)}):await bs(D);if(Ne){const Z={...v};ne==null||ne.forEach(He=>{var sa,T,Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl,Va,Ll,rl,hl,zl;(He==null?void 0:He.prop)!==(D==null?void 0:D.prop)&&(D!=null&&D.relatedContents&&((sa=D==null?void 0:D.relatedContents)==null?void 0:sa.length)>0?(T=He==null?void 0:He.prop)!=null&&T.includes(".")&&((Ua=(Ma=He==null?void 0:He.prop)==null?void 0:Ma.split("."))==null?void 0:Ua[0])===((Ga=(ol=D==null?void 0:D.prop)==null?void 0:ol.split("."))==null?void 0:Ga[0])?Z[He.prop]=Ne[(qa=(_a=He==null?void 0:He.prop)==null?void 0:_a.split("."))==null?void 0:qa[((Ul=(dl=He==null?void 0:He.prop)==null?void 0:dl.split("."))==null?void 0:Ul.length)-1]]??Z[He.prop]:Z[He.prop]=(Ne==null?void 0:Ne[He.prop])??Z[He.prop]:le.same((D==null?void 0:D.menus)??[],(He==null?void 0:He.menus)??[])&&le.same((D==null?void 0:D.groups)??[],(He==null?void 0:He.groups)??[])&&!le.same((D==null?void 0:D.words)??[],(He==null?void 0:He.words)??[])?(Bl=He==null?void 0:He.prop)!=null&&Bl.includes(".")&&((Ll=(Va=He==null?void 0:He.prop)==null?void 0:Va.split("."))==null?void 0:Ll[0])!==((hl=(rl=D==null?void 0:D.prop)==null?void 0:rl.split("."))==null?void 0:hl[0])||(Z[He.prop]=(Ne==null?void 0:Ne[(zl=He==null?void 0:He.words)==null?void 0:zl.join(".")])??(Ne==null?void 0:Ne[He.prop])??Z[He.prop]):(!(He!=null&&He.isMainPath)&&le.same((D==null?void 0:D.bindMenus)??[],(He==null?void 0:He.bindMenus)??[]),Z[He.prop]=(Ne==null?void 0:Ne[He.prop])??Z[He.prop]))}),Ce.value=(fa=M.cloneDeep(Ce.value))==null?void 0:fa.map(He=>(He==null?void 0:He.id)===(v==null?void 0:v.id)?{...Z,id:He==null?void 0:He.id}:He)}}if((Ya=D==null?void 0:D.optionUrl)!=null&&Ya.menuSelect){let Ne="";ne==null||ne.forEach(sa=>{var T,Ma,Ua,ol,Ga;Ne===""&&((Ua=(Ma=(T=sa==null?void 0:sa.optionUrl)==null?void 0:T.groupSelect)==null?void 0:Ma[1])!=null&&Ua.includes("["))&&(Ne=(Ga=(ol=sa==null?void 0:sa.optionUrl)==null?void 0:ol.groupSelect)==null?void 0:Ga[1])});let Z=await Ct(D),He;if(Z==null||Z.forEach(sa=>{var T,Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl;Ne===((Ma=(T=D==null?void 0:D.optionUrl)==null?void 0:T.groupSelect)==null?void 0:Ma[1])&&((Ga=(ol=(Ua=D==null?void 0:D.optionUrl)==null?void 0:Ua.groupSelect)==null?void 0:ol[1])!=null&&Ga.includes("["))&&((Bl=M.cloneDeep(sa))==null?void 0:Bl[(qa=(Ul=(dl=(_a=D==null?void 0:D.optionUrl)==null?void 0:_a.groupSelect)==null?void 0:dl[1])==null?void 0:Ul.replaceAll("[",""))==null?void 0:qa.replaceAll("]","")])===(D==null?void 0:D.value)&&(He=sa)}),He){const sa={...v};ne==null||ne.forEach(T=>{var Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl,Va,Ll;(He!=null&&He[T==null?void 0:T.label]||He!=null&&He[(Ga=(ol=(Ua=(Ma=T==null?void 0:T.optionUrl)==null?void 0:Ma.groupSelect)==null?void 0:Ua[1])==null?void 0:ol.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])&&((Ul=(dl=(_a=T==null?void 0:T.optionUrl)==null?void 0:_a.groupSelect)==null?void 0:dl[1])!=null&&Ul.includes("["))&&(sa[T.prop]=(He==null?void 0:He[T==null?void 0:T.label])||(He==null?void 0:He[(Ll=(Va=(Bl=(qa=T==null?void 0:T.optionUrl)==null?void 0:qa.groupSelect)==null?void 0:Bl[1])==null?void 0:Va.replaceAll("[",""))==null?void 0:Ll.replaceAll("]","")]))}),Ce.value=($a=M.cloneDeep(Ce.value))==null?void 0:$a.map(T=>(T==null?void 0:T.id)===(v==null?void 0:v.id)?{...sa,id:T==null?void 0:T.id}:T)}}},Cu=async p=>{var Xe,ya,Da,Ta,Ze,nl,ba,il,ye,Fa,fa,Ya,$a,Ne;if(!p)return;const v=M.cloneDeep(rr.value||{});rr.value=p;const N=ji(v),I=ji(rr.value);if(I&&I!==N&&await pt(I,oa.value||void 0)){Ja.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),co.forEach(He=>{if(Object.prototype.hasOwnProperty.call(rr.value||{},He)||Object.prototype.hasOwnProperty.call(v||{},He)){const sa=(v==null?void 0:v[He])??"";rr.value[He]=sa,p[He]=sa}}),we.value=(we.value||[]).map(He=>{if(!(He!=null&&He.prop)||!co.includes(He.prop))return He;const sa=(v==null?void 0:v[He.prop])??"";return{...He,value:sa,selectValue:sa===""?[]:[sa]}});return}let j=M.cloneDeep(d.itemData);j==null||j.map(Z=>{var He,sa,T,Ma;return(Z==null?void 0:Z.key)==="header"&&(Array.isArray((He=Z.contents)==null?void 0:He[0])?Z.contents=(T=le.getColumnChild((sa=Z.contents)==null?void 0:sa[0]))==null?void 0:T.map((Ua,ol)=>{var Ga,_a,dl,Ul,qa,Bl;return((dl=(_a=(Ga=we.value)==null?void 0:Ga.find(Va=>(Va==null?void 0:Va.prop)===(Ua==null?void 0:Ua.prop)))==null?void 0:_a.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((Ul=Object.values(p))==null?void 0:Ul[ol])?Ua.value=[(qa=Object.values(p))==null?void 0:qa[ol]]:Ua.value=(Bl=Object.values(p))==null?void 0:Bl[ol],Ua}):Z.contents=(Ma=Z.contents)==null?void 0:Ma.map((Ua,ol)=>{var Ga,_a,dl,Ul,qa,Bl;return((dl=(_a=(Ga=we.value)==null?void 0:Ga.find(Va=>(Va==null?void 0:Va.prop)===(Ua==null?void 0:Ua.prop)))==null?void 0:_a.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((Ul=Object.values(p))==null?void 0:Ul[ol])?Ua.value=[(qa=Object.values(p))==null?void 0:qa[ol]]:Ua.value=(Bl=Object.values(p))==null?void 0:Bl[ol],Ua})),Z});let D=we.value,ne=(Xe=j==null?void 0:j.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:Xe.contents;if(Br.value||(D=D==null?void 0:D.map(Z=>{var He;return Z.value=Z.value??((He=ne==null?void 0:ne.find((sa,T)=>(sa==null?void 0:sa.prop)===(Z==null?void 0:Z.name)))==null?void 0:He.value),Z})),!zn.value)return;let te=M.cloneDeep(Br.value);(ya=Br.value)!=null&&ya.includes("·")&&(Br.value=(Ta=(Da=Br.value)==null?void 0:Da.split("·"))==null?void 0:Ta[0]);let K=(nl=(Ze=j==null?void 0:j.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:Ze.contents)==null?void 0:nl.find((Z,He)=>(Z==null?void 0:Z.prop)===Br.value);(ba=we==null?void 0:we.value)==null||ba.forEach(Z=>{var He,sa,T,Ma,Ua,ol,Ga,_a,dl;(Z==null?void 0:Z.prop)===(K==null?void 0:K.prop)&&(Z!=null&&Z.endChildMenu)&&((He=K==null?void 0:K.prop)!=null&&He.includes(".")&&((T=(sa=K==null?void 0:K.prop)==null?void 0:sa.split("."))==null?void 0:T[0])!==((Ua=(Ma=Z==null?void 0:Z.prop)==null?void 0:Ma.split("."))==null?void 0:Ua[0])?K.endChildMenu=(Ga=(ol=Z==null?void 0:Z.value)==null?void 0:ol.split(" "))==null?void 0:Ga[0]:K.endChildMenu=(dl=(_a=Z==null?void 0:Z.endChildMenu)==null?void 0:_a.split(" "))==null?void 0:dl[0])});let ge=K!=null&&K.isMainPath&&(K!=null&&K.mainKey)?K==null?void 0:K.value:"",me=D,Ge=re.value;if(Ge!=null&&Ge.find(Z=>(K==null?void 0:K.prop)===(Z==null?void 0:Z.key))&&(Ge=Ge==null?void 0:Ge.filter(Z=>(K==null?void 0:K.prop)!==(Z==null?void 0:Z.key))),Ge!=null&&Ge.find(Z=>te===(Z==null?void 0:Z.key))&&(Ge=Ge==null?void 0:Ge.filter(Z=>te!==(Z==null?void 0:Z.key))),(K==null?void 0:K.formType)==="Select"?me=me==null?void 0:me.map(Z=>{var He,sa,T,Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl,Va,Ll,rl,hl;return(Z==null?void 0:Z.type)==="Select"&&(((He=Z==null?void 0:Z.allSelectionContents)==null?void 0:He.length)>0&&(Z.contactValue=p),((K==null?void 0:K.prop)===(Z==null?void 0:Z.prop)||te===(Z==null?void 0:Z.prop))&&K&&(Array.isArray(K.value)&&((sa=K.value)==null?void 0:sa.length)>0&&((T=K.value)!=null&&T.every(zl=>typeof zl=="string"))?(Ge.push({key:Z==null?void 0:Z.prop,value:[(Ua=K.value)==null?void 0:Ua[((Ma=K.value)==null?void 0:Ma.length)-1]]}),Z.selectValue=(ol=Ge==null?void 0:Ge.find(zl=>(zl==null?void 0:zl.key)===(Z==null?void 0:Z.prop)))==null?void 0:ol.value):Array.isArray(K.value)&&((Ga=K.value)==null?void 0:Ga.length)===0?(Ge=[],Z.selectValue=[],p[Z==null?void 0:Z.prop]=""):Array.isArray(Z.value)&&Ge.push({key:Z==null?void 0:Z.prop,value:[(_a=Z.value)==null?void 0:_a[(Z==null?void 0:Z.length)-1]]})),((Ul=Z==null?void 0:Z.menus)==null?void 0:Ul[((dl=Z==null?void 0:Z.menus)==null?void 0:dl.length)-1])===""&&(K!=null&&K.isMainPath)&&(K!=null&&K.mainKey)&&((qa=Z==null?void 0:Z.prop)!=null&&qa.includes(".")&&((Va=(Bl=Z==null?void 0:Z.prop)==null?void 0:Bl.split("."))==null?void 0:Va[0])!==((rl=(Ll=K==null?void 0:K.prop)==null?void 0:Ll.split("."))==null?void 0:rl[0])||(Z.endChildMenu=(hl=ge==null?void 0:ge.split(" "))==null?void 0:hl[0]))),Z.value=(p==null?void 0:p[Z==null?void 0:Z.prop])??(Z==null?void 0:Z.value),Z}):(K==null?void 0:K.formType)!=="Input"&&(me=me==null?void 0:me.map(Z=>(Z.value=(p==null?void 0:p[Z==null?void 0:Z.prop])??(Z==null?void 0:Z.value),Z))),re.value=Ge,me!=null&&me.some(Z=>(Z==null?void 0:Z.functionName)&&(Z==null?void 0:Z.functionName)!=="")){let Z=await St([p],P==null?void 0:P.value,"Auto",Ce.value),He=[];(il=me==null?void 0:me.filter(T=>(T==null?void 0:T.functionName)&&(T==null?void 0:T.functionName)!==""))==null||il.forEach(T=>{var Ma;((Ma=T==null?void 0:T.functionRelatedWords)==null?void 0:Ma.length)>0&&(He=[...He,...T==null?void 0:T.functionRelatedWords])}),He=He==null?void 0:He.filter(T=>(T==null?void 0:T[0])!=="@");let sa=[];for(let T in Z==null?void 0:Z[0])He!=null&&He.find(Ma=>T===Ma||(T==null?void 0:T.includes("."+Ma)))&&sa.push(((ye=Z==null?void 0:Z[0])==null?void 0:ye[T])!=="");(Z==null?void 0:Z.length)>0&&sa.every(T=>T)&&(me=me==null?void 0:me.map(T=>{var Ma;return T.value=((Ma=Z==null?void 0:Z[0])==null?void 0:Ma[T==null?void 0:T.prop])??T.value,T})),rr.value=Z==null?void 0:Z[0]}if(we.value=me,K=Object.assign({},K??{},{relatedWords:(fa=(Fa=we==null?void 0:we.value)==null?void 0:Fa.find(Z=>(Z==null?void 0:Z.prop)===(K==null?void 0:K.prop)))==null?void 0:fa.relatedWords}),(K==null?void 0:K.mainKey)&&(K!=null&&K.value)&&(K==null?void 0:K.value)!==""){let Z=K!=null&&K.relatedContents&&((Ya=K==null?void 0:K.relatedContents)==null?void 0:Ya.length)>0?($a=K==null?void 0:K.relatedContents)==null?void 0:$a.find(He=>{var sa,T,Ma,Ua;return(He==null?void 0:He[(Ua=(sa=K==null?void 0:K.prop)==null?void 0:sa.split("."))==null?void 0:Ua[((Ma=(T=K==null?void 0:K.prop)==null?void 0:T.split("."))==null?void 0:Ma.length)-1]])===(K==null?void 0:K.value)}):await bs(K);if(Z&&JSON.stringify(Z)!=="{}"){let He=me;He=He==null?void 0:He.map(T=>{var Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl,Va,Ll,rl,hl,zl,kl,xr,cr,Ql,wl,Gl,dr;if((K==null?void 0:K.prop)===(T==null?void 0:T.prop))T.value=(Z==null?void 0:Z[(Ma=T==null?void 0:T.words)==null?void 0:Ma.join(".")])??(Z==null?void 0:Z[T==null?void 0:T.prop])??Z[(_a=(Ua=T==null?void 0:T.prop)==null?void 0:Ua.split("."))==null?void 0:_a[((Ga=(ol=T==null?void 0:T.prop)==null?void 0:ol.split("."))==null?void 0:Ga.length)-1]];else if(K!=null&&K.relatedContents&&((dl=K==null?void 0:K.relatedContents)==null?void 0:dl.length)>0)T.value=(Ul=T==null?void 0:T.prop)!=null&&Ul.includes(".")&&((Bl=(qa=T==null?void 0:T.prop)==null?void 0:qa.split("."))==null?void 0:Bl[0])===((Ll=(Va=K==null?void 0:K.prop)==null?void 0:Va.split("."))==null?void 0:Ll[0])?Z[(kl=(rl=T==null?void 0:T.prop)==null?void 0:rl.split("."))==null?void 0:kl[((zl=(hl=T==null?void 0:T.prop)==null?void 0:hl.split("."))==null?void 0:zl.length)-1]]:(Z==null?void 0:Z[T==null?void 0:T.prop])??(T==null?void 0:T.value);else if(le.same((K==null?void 0:K.menus)??[],(T==null?void 0:T.menus)??[])&&le.same((K==null?void 0:K.groups)??[],(T==null?void 0:T.groups)??[])&&!le.same((K==null?void 0:K.words)??[],(T==null?void 0:T.words)??[]))if((xr=T==null?void 0:T.prop)!=null&&xr.includes(".")&&((Ql=(cr=T==null?void 0:T.prop)==null?void 0:cr.split("."))==null?void 0:Ql[0])!==((Gl=(wl=K==null?void 0:K.prop)==null?void 0:wl.split("."))==null?void 0:Gl[0])){let Ol=Object.keys(Z);Ol=Ol==null?void 0:Ol.find(pr=>{var wr;return pr==null?void 0:pr.includes("."+((wr=T==null?void 0:T.words)==null?void 0:wr.join(".")))}),T.value=(Z==null?void 0:Z[Ol])??(Z==null?void 0:Z[T==null?void 0:T.prop])??T.value}else{let Ol=Object.keys(Z);Ol=Ol==null?void 0:Ol.find(pr=>{var wr;return pr==null?void 0:pr.includes("."+((wr=T==null?void 0:T.words)==null?void 0:wr.join(".")))}),T.value=(Z==null?void 0:Z[(dr=T==null?void 0:T.words)==null?void 0:dr.join(".")])??(Z==null?void 0:Z[Ol])??(Z==null?void 0:Z[T==null?void 0:T.prop])??T.value}else!(T!=null&&T.isMainPath)&&le.same((K==null?void 0:K.bindMenus)??[],(T==null?void 0:T.bindMenus)??[]),T.value=(Z==null?void 0:Z[T==null?void 0:T.prop])??T.value;return T}),we.value=He;let sa={};(Ne=we.value)==null||Ne.forEach(T=>{sa[T.prop]=T==null?void 0:T.value}),rr.value=sa}}zn.value=!0,$.value=!1},Du=p=>p?(p==null?void 0:p.toUpperCase())==="INPUT"?"TEXTAREA":p:"TEXTAREA",Tu=p=>{var D,ne;const v=(ne=(D=na.value)==null?void 0:D.find(te=>(te==null?void 0:te.label)===(p==null?void 0:p.label)))==null?void 0:ne.multiple,N=p==null?void 0:p.prop;if((p==null?void 0:p.formType)!="Select")return;Ce.value.forEach(te=>{const K=te==null?void 0:te[N];v&&Do.isString(K)&&(te[N]=[K]),!v&&!Do.isString(K)&&(te[N]="")})},Ht=(p,v)=>{var N;return v==null||v.forEach(I=>{p[I==null?void 0:I.prop]=I==null?void 0:I.value}),p.children&&((N=p.children)==null?void 0:N.length)>0&&(p.children=p.children.map(I=>Ht(I,v))),p},ft=p=>{var N,I,j,D,ne,te;Pi("");const v=(N=we.value)==null?void 0:N.reduce((K,ge)=>(K[ge.name]=ge.value,K),{});if(((I=Object.keys(v))==null?void 0:I.length)>0){rr.value=v,oa.value="",De.value=(j=Ce.value)==null?void 0:j.length,je.value=(D=ze.value)==null?void 0:D.filter(ge=>(ge==null?void 0:ge.label)!=="新增");const K=(te=(ne=$e.value)==null?void 0:ne.filter(ge=>(ge==null?void 0:ge.label)!=="操作"))==null?void 0:te.map(ge=>{var Ge,We,Xe;const me=(We=(Ge=na.value)==null?void 0:Ge.find(ya=>(ya==null?void 0:ya.label)===(ge==null?void 0:ge.label)))==null?void 0:We.multiple;return Tu(ge),{...ge,contents:(ge==null?void 0:ge.options)??[],optionUrl:ge!=null&&ge.formMenuSelect&&((Xe=ge==null?void 0:ge.formMenuSelect)==null?void 0:Xe.length)>0?{groupSelect:ge==null?void 0:ge.groupSelect,menuSelect:ge==null?void 0:ge.formMenuSelect,selectRelateType:"",type:ge==null?void 0:ge.formType,multiple:me}:null}});P.value=K==null?void 0:K.map(ge=>Ht(ge,[{prop:"type",value:"edit"},{prop:"columnType",value:Du(ge==null?void 0:ge.formType)||(ge==null?void 0:ge.columnType)}])),p==="createClick"&&(Je.value="新增",Hi(!0))}},Si={START:"开始时间",END:"结束时间",HOURS:"工时"},Bu=(p,v)=>Number(M.dayjs(v).diff(M.dayjs(p),"day",!0).toFixed(1)),Ut=p=>{var D;const v=d.itemData,N=(D=v==null?void 0:v.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:D.contents,I=new Map;return N==null||N.forEach((ne,te)=>{const{label:K}=ne;I.set(K,te)}),!I.has(Si.START)||!I.has(Si.END)||!I.has(Si.HOURS)?p:p==null?void 0:p.map(ne=>{const te=ne==null?void 0:ne[Si.START],K=ne==null?void 0:ne[Si.END],ge=Bu(te,K);return te&&K&&(ne[Si.HOURS]=`${ge}天`),ne})},qt=(p,v,N=0)=>{if(N>((v==null?void 0:v.length)??""))return p;const I=v==null?void 0:v[N],j=new Map;for(const ne of p){const te=ne[I];j.has(te)||j.set(te,[]),j.get(te)&&j.get(te).push(ne)}const D=[];for(const[ne,te]of j){const[K,...ge]=te,me={...K};N+1===((v==null?void 0:v.length)??"")?me.children=te==null?void 0:te.map(Ge=>(Ge.level=M.cloneDeep(N)+1,Ge)).filter((Ge,We)=>We!==0):ge.length>0&&(me.children=qt(ge,v,N+1)),me.level=N,D.push(me)}return D},Wt=(p,v,N)=>{var j;if(!(v!=null&&v.contents)||((j=v==null?void 0:v.contents)==null?void 0:j.length)===0)return p;let I=[];return I=qt(p,v==null?void 0:v.contents,0),I},Kt=async(p,v)=>{var nl,ba,il,ye,Fa,fa,Ya,$a,Ne,Z,He,sa,T,Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl,Va,Ll,rl,hl,zl,kl,xr,cr,Ql,wl,Gl,dr,Ol,pr,wr,fr,Dr,ln,ur,Nr,Rr,Yt,Jt,Xt,Zt,Qt,es;const N=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="header");p==null||p.filter(aa=>(aa==null?void 0:aa.key)==="tableIndexColumn")[0];const I=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="childTree")[0];let j=!0;if((il=(ba=(nl=p==null?void 0:p.find(aa=>(aa==null?void 0:aa.key)==="filterAllType"))==null?void 0:nl.value)==null?void 0:ba.find(aa=>(aa==null?void 0:aa.value)==="onPamButtonContents"))!=null&&il.content){let aa=(fa=(Fa=(ye=p==null?void 0:p.find(Al=>(Al==null?void 0:Al.key)==="filterAllType"))==null?void 0:ye.value)==null?void 0:Fa.find(Al=>(Al==null?void 0:Al.value)==="onPamButtonContents"))==null?void 0:fa.content;aa=(Ya=aa==null?void 0:aa.split(":"))==null?void 0:Ya[1],aa=($a=aa.slice(1,(aa==null?void 0:aa.length)-1))==null?void 0:$a.split(","),j=!!(aa!=null&&aa.find(Al=>Al==="操作"))}const D=p==null?void 0:p.find(aa=>(aa==null?void 0:aa.key)==="page"),ne=p==null?void 0:p.find(aa=>(aa==null?void 0:aa.key)==="rowButton"),te=p==null?void 0:p.find(aa=>(aa==null?void 0:aa.key)==="extraButton"),K=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="tableContents"),ge=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="bottomButton");let me=[],Ge=(Ne=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="filter"))==null?void 0:Ne[0];Ge=(Ge==null?void 0:Ge.contents)??"",Ge=m0(Ge),(Ge==null?void 0:Ge.length)>0&&(u.value=Ge);const We=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="tableIndex");na.value=(He=(Z=p==null?void 0:p.filter(aa=>(aa==null?void 0:aa.key)==="tableToForm"))==null?void 0:Z[0])==null?void 0:He.contents,wa.value=(D==null?void 0:D.contents)??!0;let Xe=[];kr.value===""?Xe=N==null?void 0:N[0]:Xe=(N==null?void 0:N.find(aa=>(aa==null?void 0:aa.selectLabel)==="("+kr.value+")"))??(N==null?void 0:N.find(aa=>!(aa!=null&&aa.selectLabel)));let ya=[];kr.value===""?ya=We==null?void 0:We[0]:ya=(We==null?void 0:We.find(aa=>(aa==null?void 0:aa.selectLabel)==="("+kr.value+")"))??(We==null?void 0:We.find(aa=>!(aa!=null&&aa.selectLabel)));let Da=[],Ta=[];if(((sa=Xe==null?void 0:Xe.contents)==null?void 0:sa.length)>0){let aa=[],Al=Xe==null?void 0:Xe.contents;if(Array.isArray(Al==null?void 0:Al[0])&&((T=Al==null?void 0:Al[0])!=null&&T.every(Xa=>!(Xa!=null&&Xa.children)))&&(Al=Al==null?void 0:Al[0]),Al.some(Xa=>Array.isArray(Xa)&&(Xa==null?void 0:Xa.find(Ye=>Ye.children))))aa=(Ma=le.getGradeColumns(Al,j))==null?void 0:Ma[0],aa!=null&&aa.find(Xa=>(Xa==null?void 0:Xa.label)==="操作")||aa.push({label:"操作",prop:"operate",type:"operate"});else{let Xa=Al.some(Ye=>Array.isArray(Ye))?Al==null?void 0:Al[0]:Al;Xa!=null&&Xa.find(Ye=>(Ye==null?void 0:Ye.label)==="操作")||Xa.push({label:"操作",prop:"operate",type:"operate"}),Xa==null||Xa.forEach((Ye,hr)=>{var Gr,Zr,Fr,di,Ei,Ci,Ar,An,Jn,Di,xn,Xn,as,ls,rs,ns,is,os,ts,ss,cs;if((Zr=(Gr=de.value)==null?void 0:Gr.split("/"))==null||Zr.forEach(yr=>{var Tr,$n,us;yr!==""&&((us=($n=(Tr=yr==null?void 0:yr.split(R+"updateLoading"))==null?void 0:Tr[0])==null?void 0:$n.split(R+"loading"))==null||us[0])}),Ye!=null&&Ye.methodContent){let yr=(Ei=(di=(Fr=Ye==null?void 0:Ye.methodContent)==null?void 0:Fr.replace("@","%%#"))==null?void 0:di.split("%%#"))==null?void 0:Ei[1];if(yr=yr==null?void 0:yr.slice(0,(yr==null?void 0:yr.length)-1),yr=le.contentTransArrayToAllNoExtra(yr??"",","),(Ci=yr==null?void 0:yr.find(Tr=>Tr==null?void 0:Tr.includes("@Button")))!=null&&Ci.includes("Prop")&&((Ar=yr==null?void 0:yr.find(Tr=>Tr==null?void 0:Tr.includes("Type")))!=null&&Ar.includes("Manual"))){let Tr=(Jn=(An=yr==null?void 0:yr.find($n=>$n==null?void 0:$n.includes("@Button")))==null?void 0:An.split(":"))==null?void 0:Jn[1];Tr=((Xn=(xn=(Di=Tr==null?void 0:Tr.replaceAll("[",""))==null?void 0:Di.replaceAll("]",""))==null?void 0:xn.split(","))==null?void 0:Xn[1])??"算法执行",Da.push(Tr)}else if((as=yr==null?void 0:yr.find(Tr=>Tr==null?void 0:Tr.includes("@Button")))!=null&&as.includes("Row")&&((ls=yr==null?void 0:yr.find(Tr=>Tr==null?void 0:Tr.includes("Type")))!=null&&ls.includes("Manual"))){let Tr=(ns=(rs=yr==null?void 0:yr.find($n=>$n==null?void 0:$n.includes("@Button")))==null?void 0:rs.split(":"))==null?void 0:ns[1];Tr=((ts=(os=(is=Tr==null?void 0:Tr.replaceAll("[",""))==null?void 0:is.replaceAll("]",""))==null?void 0:os.split(","))==null?void 0:ts[1])??"算法执行",Ta.push(Tr)}}(ss=na.value)==null||ss.find(yr=>(yr==null?void 0:yr.prop)===(Ye==null?void 0:Ye.prop));let nn=((cs=Ye==null?void 0:Ye.filter)==null?void 0:cs.includes("@EditRead=Read"))??!1;aa.push({label:(Ye==null?void 0:Ye.label)==="操作"?j?"操作":"":(Ye==null?void 0:Ye.label)??"",prop:(Ye==null?void 0:Ye.label)==="操作"?"operate":(Ye==null?void 0:Ye.prop)??"a"+hr,width:Ye!=null&&Ye.width?parseInt(Ye.width):"",fixed:(Ye==null?void 0:Ye.fixed)??void 0,sortable:(Ye==null?void 0:Ye.sortable)??!1,filterable:(Ye==null?void 0:Ye.filterable)??!1,operable:(Ye==null?void 0:Ye.operable)??!1,showSummary:(Ye==null?void 0:Ye.showSummary)??!1,align:(Ye==null?void 0:Ye.align)??"left",showOverflowTooltip:(Ye==null?void 0:Ye.showOverflowTooltip)??!0,isNotDrag:(Ye==null?void 0:Ye.isNotDrag)??!1,isEditCol:(Ye==null?void 0:Ye.isEditCol)??!1,isOperate:(Ye==null?void 0:Ye.isOperate)??!1,id:(Ye==null?void 0:Ye.id)??hr,type:(Ye==null?void 0:Ye.label)==="操作"?"operate":void 0,formType:(Ye==null?void 0:Ye.formType)??(Ye!=null&&Ye.groupSelect?"Select":""),disabled:Ye==null?void 0:Ye.disabled,options:(Ye==null?void 0:Ye.options)??[],value:(Ye==null?void 0:Ye.value)??"",isExistChild:(Ye==null?void 0:Ye.isExistChild)??!1,mainKey:(Ye==null?void 0:Ye.mainKey)??hr===0,allSelectionContents:(Ye==null?void 0:Ye.allContents)??[],filterContent:Ye==null?void 0:Ye.filterContents,menus:Ye==null?void 0:Ye.menus,groups:Ye==null?void 0:Ye.groups,words:Ye==null?void 0:Ye.words,filter:Ye==null?void 0:Ye.filter,bindMenus:Ye==null?void 0:Ye.bindMenus,fatherPath:Ye==null?void 0:Ye.fatherPath,isMainPath:Ye==null?void 0:Ye.isMainPath,required:(Ye==null?void 0:Ye.required)??!1,relatedContents:Ye==null?void 0:Ye.relatedContents,functionName:Ye==null?void 0:Ye.functionName,functionRelatedWords:Ye==null?void 0:Ye.functionRelatedWords,calculatorFilter:Ye==null?void 0:Ye.calculatorFilter,relatedPages:Ye==null?void 0:Ye.relatedPages,multiple:(Ye==null?void 0:Ye.multiple)??!1,multipleLimit:Ye==null?void 0:Ye.multipleLimit,isReadonly:nn})})}aa=aa==null?void 0:aa.filter(Xa=>{var Ye;return!((Ye=Xa==null?void 0:Xa.filter)!=null&&Ye.includes("@ShowHide=Hide"))}),O.value=(Ua=ge==null?void 0:ge[0])==null?void 0:Ua.contents;const rn=le.getNewColumnChild(aa);me=le.getColumnChild(rn);const Yn=Xa=>Array.isArray(Xa)?Xa.map(Ye=>(Array.isArray(Ye==null?void 0:Ye.children)&&Ye.children.length>0?(Ye.sortable=!1,Yn(Ye.children)):(Ye==null?void 0:Ye.prop)==="operate"||(Ye==null?void 0:Ye.label)==="操作"||(Ye==null?void 0:Ye.type)==="operate"||(Ye.sortable=!1),Ye)):Xa;Yn(rn),await Jo(rn),_0(X.value,rn),P.value=rn,ie.value=rn,n.value=(ol=P.value)==null?void 0:ol.map(Xa=>Xa==null?void 0:Xa.label);let $r=(_a=(Ga=le.getAllLeafNodes(P.value))==null?void 0:Ga.filter(Xa=>(Xa==null?void 0:Xa.type)!=="operate"))==null?void 0:_a.map((Xa,Ye)=>({prop:(Xa==null?void 0:Xa.prop)??"a"+Ye,column:Xa.label}));Or.value=$r;let jr=[];kr.value===""?jr=K==null?void 0:K[0]:jr=(K==null?void 0:K.find(Xa=>(Xa==null?void 0:Xa.selectLabel)==="("+kr.value+")"))??(K==null?void 0:K.find(Xa=>!(Xa!=null&&Xa.selectLabel)));let Vr=Array.isArray((dl=jr==null?void 0:jr.contents)==null?void 0:dl[0])&&((Ul=jr==null?void 0:jr.contents)!=null&&Ul[0].every(Xa=>Array.isArray(Xa)))?(qa=jr==null?void 0:jr.contents)==null?void 0:qa[0]:jr==null?void 0:jr.contents;ya!=null&&ya.contents&&((Bl=ya==null?void 0:ya.contents)==null?void 0:Bl.length)!==0&&(Vr=(Va=M.cloneDeep(Vr))==null?void 0:Va.map((Xa,Ye)=>{if(!Array.isArray(Xa)){let hr={};for(let nn in Xa)nn!=="id"&&nn!=="index"&&(hr[nn]=Xa[nn]);Xa=Object.values(hr)}return Xa}));const po=!!((Ll=P.value)!=null&&Ll.find(Xa=>Xa.prop==="index"));Vr=kc(Vr,ya==null?void 0:ya.contents,po);const Pn=[];Vr==null||Vr.forEach((Xa,Ye)=>{var nn;let hr={};if(Array.isArray(Xa)){let Gr=[];Xa==null||Xa.filter(Zr=>!(Zr!=null&&Zr.id)).forEach((Zr,Fr)=>{var di,Ei,Ci,Ar,An,Jn;if((di=$r==null?void 0:$r[Fr])!=null&&di.prop&&!Array.isArray(Zr)){let Di={};Di[$r[Fr].column]=Zr,F!=null&&F.value&&((Ei=F==null?void 0:F.value)==null?void 0:Ei.length)>0&&((Ci=F==null?void 0:F.value)!=null&&Ci.find(xn=>JSON.stringify(xn==null?void 0:xn[0])===JSON.stringify(Di)))&&(Gr=(Ar=F==null?void 0:F.value)==null?void 0:Ar.find(xn=>JSON.stringify(xn==null?void 0:xn[0])===JSON.stringify(Di))),Gr&&Gr.length>0?hr[$r[Fr].prop]=Gr!=null&&Gr.find(xn=>{var Xn;return((Xn=Object.keys(xn))==null?void 0:Xn[0])===$r[Fr].column})?(An=Gr==null?void 0:Gr.find(xn=>{var Xn;return((Xn=Object.keys(xn))==null?void 0:Xn[0])===$r[Fr].column}))==null?void 0:An[$r[Fr].column]:Zr:hr[$r[Fr].prop]=Zr}else Array.isArray(Zr)&&((Jn=$r[Fr])!=null&&Jn.prop?hr[$r[Fr].prop]=Zr:hr.children=Et(Zr,$r))})}else hr=Xa;if(Array.isArray(Xa)&&Xa.some(Gr=>Gr==null?void 0:Gr.id)){const Gr=(nn=Xa==null?void 0:Xa.find(Zr=>Zr.id))==null?void 0:nn.id;Pn.push(Object.assign(hr,{id:io(Gr)}))}else hr.id?Pn.push(hr):Pn.push(Object.assign(hr,{id:Ye.toString()}))});try{const Xa=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ye=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),hr=Xa==null?void 0:Xa.tableId,nn=Xa==null?void 0:Xa.compIndex;if(hr&&Array.isArray(Ye)&&Ye.length>0&&String(hr)===String(d==null?void 0:d.parentTableId)&&String(nn)===String(d==null?void 0:d.index)){const Gr=new Set(Pn.map(Fr=>String(Fr==null?void 0:Fr.id))),Zr=Ye.filter(Fr=>!Gr.has(String(Fr)));if(Zr.length>0){const Fr=Xa==null?void 0:Xa.pageKey,di=Fr!=null&&Fr.startsWith("/")?Fr.substring(1):Fr;((v==null?void 0:v[Fr])||(v==null?void 0:v[di])||[]).filter(Ar=>{var An,Jn;return((An=Ar==null?void 0:Ar.key)==null?void 0:An.type)==="data"&&String((Jn=Ar==null?void 0:Ar.key)==null?void 0:Jn.tableId)===String(hr)&&Zr.includes(Ar==null?void 0:Ar.id)}).forEach(Ar=>{var An;Gr.has(String(Ar==null?void 0:Ar.id))||(Pn.push({id:Ar==null?void 0:Ar.id,...((An=Ar==null?void 0:Ar.value)==null?void 0:An.tableData)||{}}),Gr.add(String(Ar==null?void 0:Ar.id)))})}}}catch{}let jn=null;try{const Xa=`ocr_committed_temp_ids_v1:${String((d==null?void 0:d.parentTableId)??"")}:${String((d==null?void 0:d.index)??"")}`,Ye=JSON.parse(sessionStorage.getItem(Xa)||"null");Array.isArray(Ye)&&Ye.length>0&&(jn=new Set(Ye.map(hr=>String(hr))))}catch{}const Ui=Array.from(((rl=Ca.value)==null?void 0:rl.values())||[]).filter(Xa=>!(!(Xa!=null&&Xa._isOCRRow&&(Xa==null?void 0:Xa._ocrTableId)===(d==null?void 0:d.index))||jn&&jn.has(String(Xa==null?void 0:Xa.id)))),fo=(Ce.value||[]).map(Xa=>String(Xa==null?void 0:Xa.id)),Xl=wi(Pn,fo);if(Ce.value=Wt(Xl,I,P.value),Pa.value=Xl,(hl=Pa.value)==null||hl.forEach(Xa=>{var Ye;(Ye=Ca.value)==null||Ye.set(Xa.id,Xa)}),jn&&jn.size>0)try{const Xa=new Set(Array.from(jn.values()));Ce.value=(Ce.value||[]).filter(Ye=>!Xa.has(String(Ye==null?void 0:Ye.id))),Pa.value=(Pa.value||[]).filter(Ye=>!Xa.has(String(Ye==null?void 0:Ye.id))),Xa.forEach(Ye=>{var hr,nn;try{(nn=(hr=Ca.value)==null?void 0:hr.delete)==null||nn.call(hr,Ye)}catch{}})}catch{}const Kr=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ht=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(Kr&&Array.isArray(ht)&&ht.length>0&&String(Kr==null?void 0:Kr.compIndex)===String(d==null?void 0:d.index)){const Xa=new Set((Pa.value||[]).map(Ye=>String(Ye==null?void 0:Ye.id)));ht.filter(Ye=>!Xa.has(String(Ye)))}if(Ui.length>0){const Xa=new Set((Ce.value||[]).map(hr=>hr==null?void 0:hr.id)),Ye=Ui.filter(hr=>!Xa.has(hr.id));Ye.length>0&&(Ce.value=[...Ce.value||[],...Ye],Pa.value=[...Pa.value||[],...Ye],Ye.forEach(hr=>{var nn;return(nn=Ca.value)==null?void 0:nn.set(hr.id,hr)}))}}else P.value=[],$e.value=[],Ce.value=[],Pa.value=[],Ca.value=new Map;if(Ta=[...new Set(Ta)],Ta=Ta==null?void 0:Ta.map(aa=>({label:aa,type:"methodButton"})),((zl=ne==null?void 0:ne.contents)==null?void 0:zl.length)>0?za.value=ne==null?void 0:ne.contents:za.value=[],za.value=[...za.value,...Ta],Da=[...new Set(Da)],Da=Da==null?void 0:Da.map(aa=>({label:aa,type:"methodButton"})),((kl=te==null?void 0:te.contents)==null?void 0:kl.length)>0)if((Ql=(cr=(xr=p==null?void 0:p.find(aa=>(aa==null?void 0:aa.key)==="filterAllType"))==null?void 0:xr.value)==null?void 0:cr.find(aa=>(aa==null?void 0:aa.value)==="onButtonContents"))!=null&&Ql.content){let aa=(dr=(Gl=(wl=p==null?void 0:p.find(Al=>(Al==null?void 0:Al.key)==="filterAllType"))==null?void 0:wl.value)==null?void 0:Gl.find(Al=>(Al==null?void 0:Al.value)==="onButtonContents"))==null?void 0:dr.content;if(aa=(Ol=aa==null?void 0:aa.split(":"))==null?void 0:Ol[1],aa=(pr=aa.slice(1,(aa==null?void 0:aa.length)-1))==null?void 0:pr.split(","),je.value=(wr=te==null?void 0:te.contents)==null?void 0:wr.filter(Al=>aa==null?void 0:aa.find(rn=>rn===(Al==null?void 0:Al.label))),ze.value=(fr=te==null?void 0:te.contents)==null?void 0:fr.filter(Al=>aa==null?void 0:aa.find(rn=>rn===(Al==null?void 0:Al.label))),(Dr=te==null?void 0:te.contents)!=null&&Dr.some(Al=>(Al==null?void 0:Al.label)==="OCR识别")&&!((ln=je.value)!=null&&ln.some(Al=>(Al==null?void 0:Al.label)==="OCR识别"))){const Al=(ur=te==null?void 0:te.contents)==null?void 0:ur.find(rn=>(rn==null?void 0:rn.label)==="OCR识别");je.value=[...je.value,Al],ze.value=[...ze.value,Al]}z.value=!!(aa!=null&&aa.find(Al=>Al==="搜索")),ae.value=!!(aa!=null&&aa.find(Al=>Al==="块状显示"))}else je.value=te==null?void 0:te.contents,ze.value=te==null?void 0:te.contents;else je.value=[],ze.value=[];if(je.value=[...je.value,...Da],ze.value=[...ze.value,...Da],typeof de.value=="string"&&de.value==="设备管理/试验设备"&&(d==null?void 0:d.compName)==="设备列表"?((Nr=je.value)!=null&&Nr.some(aa=>(aa==null?void 0:aa.label)==="OCR识别")||(je.value=[...je.value||[],{label:"OCR识别"}]),(Rr=ze.value)!=null&&Rr.some(aa=>(aa==null?void 0:aa.label)==="OCR识别")||(ze.value=[...ze.value||[],{label:"OCR识别"}])):(je.value=(je.value||[]).filter(aa=>(aa==null?void 0:aa.label)!=="OCR识别"),ze.value=(ze.value||[]).filter(aa=>(aa==null?void 0:aa.label)!=="OCR识别")),(Yt=je.value)!=null&&Yt.some(aa=>(aa==null?void 0:aa.label)==="切换视图")||(je.value=[...je.value||[],{label:"切换视图"}]),(Jt=ze.value)!=null&&Jt.some(aa=>(aa==null?void 0:aa.label)==="切换视图")||(ze.value=[...ze.value||[],{label:"切换视图"}]),me!=null&&me.some(aa=>{var Al;return(aa==null?void 0:aa.calculatorFilter)&&((Al=aa==null?void 0:aa.calculatorFilter)==null?void 0:Al.includes("@Button"))})){let aa=(Xt=me==null?void 0:me.filter($r=>{var jr;return($r==null?void 0:$r.calculatorFilter)&&((jr=$r==null?void 0:$r.calculatorFilter)==null?void 0:jr.includes("@Button"))}))==null?void 0:Xt.map($r=>$r==null?void 0:$r.calculatorFilter),Al=[],rn=[],Yn=[];aa==null||aa.forEach($r=>{var po,Pn,jn,Ui,fo;let jr=(po=le.analyzeSplitToContent($r,","))==null?void 0:po.map(Xl=>((Xl==null?void 0:Xl[(Xl==null?void 0:Xl.length)-1])===","&&(Xl=Xl==null?void 0:Xl.slice(0,(Xl==null?void 0:Xl.length)-1)),Xl)),Vr=jr==null?void 0:jr.find(Xl=>Xl==null?void 0:Xl.includes("@Button"));if(jr!=null&&jr.find(Xl=>Xl==null?void 0:Xl.includes("Manual"))){Vr=(jn=(Pn=Vr==null?void 0:Vr.replace("=","$R"))==null?void 0:Pn.split("$R"))==null?void 0:jn[1],Vr=Vr==null?void 0:Vr.slice(1,(Vr==null?void 0:Vr.length)-1);let Xl=(Ui=le.analyzeSplitToContent(Vr,","))==null?void 0:Ui.map(Kr=>((Kr==null?void 0:Kr[(Kr==null?void 0:Kr.length)-1])===","&&(Kr=Kr==null?void 0:Kr.slice(0,(Kr==null?void 0:Kr.length)-1)),Kr));Xl=Xl==null?void 0:Xl[0],Xl=Xl==null?void 0:Xl.slice(1,(Xl==null?void 0:Xl.length)-1),Xl=(fo=Xl==null?void 0:Xl.split(","))==null?void 0:fo.map(Kr=>({label:Kr,prop:Kr})),Vr!=null&&Vr.includes("Up")?Al=[...Al,...Xl??[]]:Vr!=null&&Vr.includes("Line")?rn=[...rn,...Xl??[]]:Yn=[...Yn,...Xl??[]]}}),je.value=[...Al,...je.value??[]],za.value=[...rn,...za.value??[]],Yn.value=[...Yn,...Yn.value??[]]}De.value=((Zt=Ce==null?void 0:Ce.value)==null?void 0:Zt.length)??0,Ut(Ce.value),qr.value=Ce.value,tr.value&&(P.value=(es=(Qt=$e.value)==null?void 0:Qt.filter(aa=>(aa==null?void 0:aa.label)!=="操作"))==null?void 0:es.map(aa=>{var Al;return{...aa,type:"edit",optionUrl:aa!=null&&aa.formMenuSelect&&((Al=aa==null?void 0:aa.formMenuSelect)==null?void 0:Al.length)>0?{groupSelect:aa==null?void 0:aa.groupSelect,menuSelect:aa==null?void 0:aa.formMenuSelect,selectRelateType:"",type:aa==null?void 0:aa.formType}:null}}),ft())};e.watch(()=>[d.itemData,kr.value,en.value,ql.value,F==null?void 0:F.value],async()=>{var p,v,N,I,j,D;if((p=d==null?void 0:d.itemData)!=null&&p.find(ne=>(ne==null?void 0:ne.key)==="columnPath")&&!((v=pe.value)!=null&&v.find(ne=>{var te,K;return(ne==null?void 0:ne.key)===((K=(te=d==null?void 0:d.itemData)==null?void 0:te.find(ge=>(ge==null?void 0:ge.key)==="columnPath"))==null?void 0:K.contents)}))){let ne=pe.value,te={key:(I=(N=d==null?void 0:d.itemData)==null?void 0:N.find(K=>(K==null?void 0:K.key)==="columnPath"))==null?void 0:I.contents,value:(D=(j=d==null?void 0:d.itemData)==null?void 0:j.find(K=>(K==null?void 0:K.key)==="columnUsingPath"))==null?void 0:D.contents};ne!=null&&ne.find(K=>(K==null?void 0:K.key)===(te==null?void 0:te.key))?ne=ne==null?void 0:ne.map(K=>((K==null?void 0:K.key)===(te==null?void 0:te.key)&&(K.value=te.value),K)):ne.push(te),Ba.setTableViewContents(ne)}await Kt(d.itemData,d.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>d==null?void 0:d.operatingForm,p=>{p!=null&&p.form&&(Pi(p==null?void 0:p.form),Je.value=p==null?void 0:p.dialogTitle,Ae.value=!0,xe.value=!0)},{immediate:!0,deep:!0});const Nu=()=>{var p;(p=Y.value)!=null&&p.includes("read")&&(tr.value=!tr.value)},Au=()=>{_r.value=!_r.value};e.watch(()=>{var p;return(p=d==null?void 0:d.config)==null?void 0:p.viewport},p=>{var v;Y.value=p,(p==null?void 0:p.length)===0?tr.value=!1:(p!=null&&p.includes("read")||(tr.value=!0),p!=null&&p.includes("edit")||(tr.value=!1)),w.value=((v=d==null?void 0:d.config)==null?void 0:v.showIndex)||tr.value},{immediate:!0}),e.watch(()=>tr.value,p=>{var v;p?(ft("viewChange"),Ba.setCacheUpdatingData(null)):(je.value=ze.value,P.value=ie.value,Q.value&&(Ba.setTableLoading(d==null?void 0:d.index),U("change",Q.value))),w.value=p||((v=d==null?void 0:d.config)==null?void 0:v.showIndex),Mr.value=[]},{immediate:!0}),e.watch(()=>{var p;return(p=Bn.value)==null?void 0:p.length},p=>{p===0&&(ue.currentPage=1)}),e.watch(()=>d==null?void 0:d.compNames,p=>{G.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:p||[],width:1}]},{immediate:!0}),e.ref(!1);const zu=(p,v)=>{var N;ft("createClick"),v===ue.pageSize&&(ue.currentPage=Math.ceil(((N=Ce.value)==null?void 0:N.length)/ue.pageSize))},Mu=async(p,v,N)=>{var j,D,ne,te,K;const I=(v==null?void 0:v.property)??(v==null?void 0:v.prop);if(I&&co.includes(I)&&N!==void 0&&N!==null&&String(N).trim()!==""){const ge=String(N).trim();if(await pt(ge,p==null?void 0:p.id)){Ja.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Ge=(j=Ce.value)==null?void 0:j.findIndex(Xe=>(Xe==null?void 0:Xe.id)===(p==null?void 0:p.id)),We=Ge!==-1?(ne=(D=Ce.value)==null?void 0:D[Ge])==null?void 0:ne[I]:void 0;I&&(p[I]=We??"");return}}if(tr.value){const ge=p==null?void 0:p.id;ge!=null&&(f.value.has(ge)||f.value.set(ge,M.cloneDeep(p)),t.value.add(ge));const me=(te=Ce.value)==null?void 0:te.findIndex(Ge=>(Ge==null?void 0:Ge.id)===(p==null?void 0:p.id));me!==-1&&I&&(Ce.value[me]={...Ce.value[me],[I]:N}),uo(N,p,v);return}uo(N,p,v),rr.value=M.cloneDeep(p),oa.value=p==null?void 0:p.id,De.value=(K=Ce.value)==null?void 0:K.length,Je.value=p!=null&&p._isTemp?"新增":"编辑",Hi(!1)},Iu=async()=>{var p,v;try{const N=[];if(d!=null&&d.related&&Array.isArray(d.related)&&(console.log("props.related",d.related),d.related.forEach(I=>{if(typeof I=="string"&&I.includes("content_")){const j=I.split("_")[1];j&&(N.push(`content_${j}`),N.push(`struct_${j}`))}})),N.length===0&&(d!=null&&d.itemData)){const I=(v=(p=d.itemData)==null?void 0:p.find(j=>(j==null?void 0:j.key)==="contentTableId"))==null?void 0:v.contents;I&&(N.push(`content_${I}`),N.push(`struct_${I}`))}return N}catch(N){return console.error("获取 tableNames 失败:",N),[]}},Ou=async(p,v,N)=>{var D,ne;if(!N||typeof N!="string"||N.trim()===""){const te=(v==null?void 0:v.property)??(v==null?void 0:v.prop),K=`${p==null?void 0:p.id}:${te}`;m.value.delete(K),x.value.set(K,!1);return}const I=(v==null?void 0:v.property)??(v==null?void 0:v.prop),j=`${p==null?void 0:p.id}:${I}`;x.value.set(j,!0);try{const te=await Iu();if(te.length===0){console.warn("未找到同名表,跳过全局搜索"),m.value.delete(j),x.value.set(j,!1);return}const K=parseInt((D=Il.value)==null?void 0:D.plat_id);if(!K){console.warn("platId 无效,跳过全局搜索"),m.value.delete(j),x.value.set(j,!1);return}const ge=await M.getAllTables({platId:K,tableNames:te??[]}),me=((ne=ge==null?void 0:ge.data)==null?void 0:ne.result)||[],Ge=[],We=[];for(let Xe=0;Xe<me.length;Xe+=2)Xe+1<me.length&&We.push([me[Xe],me[Xe+1]]);We.forEach(([Xe,ya])=>{var il;if(!Array.isArray(Xe)||Xe.length===0||!Array.isArray(ya)||ya.length===0)return;const Da=ya[0];let Ta=((il=Da==null?void 0:Da.结构)==null?void 0:il.contents)??[];if(!Array.isArray(Ta)||Ta.length===0)return;let Ze=M.cloneDeep(Ta);if(Array.isArray(Ze==null?void 0:Ze[0])&&(Ze=le.getColumnChild(Ze[0])),!Array.isArray(Ze)||Ze.length===0||!Ze.some(ye=>(ye==null?void 0:ye.prop)===I))return;[...Xe].sort((ye,Fa)=>{const fa=Number((ye==null?void 0:ye.update_time)??0);return Number((Fa==null?void 0:Fa.update_time)??0)-fa}).slice(0,20).forEach(ye=>{const Fa=ye[I];if(Fa!=null){const fa=String(Fa);fa.toLowerCase().includes(N.toLowerCase())&&Ge.findIndex($a=>{var Ne;return ye.id&&((Ne=$a.rowData)==null?void 0:Ne.id)===ye.id?!0:$a.label===fa})===-1&&Ge.push({label:fa,rowData:M.cloneDeep(ye),sourceTable:(Da==null?void 0:Da.source_table)||""})}})}),m.value.set(j,Ge)}catch(te){console.error("全局搜索建议失败:",te),m.value.delete(j)}finally{x.value.set(j,!1)}},Lu=(p,v,N)=>{if(!tr.value)return;const I=(v==null?void 0:v.property)??(v==null?void 0:v.prop),j=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"";if(j&&j.toUpperCase()!=="INPUT"&&j!=="")return;const D=`${p==null?void 0:p.id}:${I}`;if(y.has(D)&&clearTimeout(y.get(D)),!N||N.trim()===""){m.value.delete(D),x.value.set(D,!1);return}const ne=setTimeout(()=>{Ou(p,{prop:I,property:I},N),y.delete(D)},300);y.set(D,ne)};function Ru(p,v){const N=`${p==null?void 0:p.id}:${(v==null?void 0:v.property)??(v==null?void 0:v.prop)}`;return m.value.get(N)||[]}const $u=(p,v,N)=>{var ge;if(!N||!N.rowData)return;const I=N.rowData,j=p==null?void 0:p.id,D=(v==null?void 0:v.property)??(v==null?void 0:v.prop);(le.getAllLeafNodes(P.value)||[]).filter(me=>(me==null?void 0:me.type)!=="operate"&&(me==null?void 0:me.label)!=="操作"&&(me==null?void 0:me.prop)!=="operate").forEach(me=>{const Ge=me==null?void 0:me.prop;Ge&&I[Ge]!==void 0&&(p[Ge]=I[Ge])}),(ge=Ce.value)==null||ge.findIndex(me=>(me==null?void 0:me.id)===j),j!=null&&(f.value.has(j)||f.value.set(j,M.cloneDeep(p)),t.value.add(j));const K=`${j}:${D}`;m.value.delete(K),x.value.set(K,!1),uo(p[D],p,v)},cn=p=>{var K,ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl;const{row:v,column:N,item:I,slotData:j}=p;let D=v!=null&&v[N==null?void 0:N.prop]||(v==null?void 0:v[N==null?void 0:N.prop])===0?((ge=(K=v==null?void 0:v[N==null?void 0:N.prop])==null?void 0:K[0])==null?void 0:ge.contents)??((v==null?void 0:v[N==null?void 0:N.prop])===0?"0":v==null?void 0:v[N==null?void 0:N.prop]):((Ge=(me=v==null?void 0:v[I==null?void 0:I.prop])==null?void 0:me[0])==null?void 0:Ge.contents)??(v==null?void 0:v[I==null?void 0:I.prop])??((Xe=(We=j==null?void 0:j[I==null?void 0:I.prop])==null?void 0:We[0])==null?void 0:Xe.contents)??(j==null?void 0:j[I==null?void 0:I.prop])??((Ta=(Da=v==null?void 0:v[(ya=I==null?void 0:I.child)==null?void 0:ya.prop])==null?void 0:Da[0])==null?void 0:Ta.contents)??(v==null?void 0:v[(Ze=I==null?void 0:I.child)==null?void 0:Ze.prop]),te=Array.isArray(D)&&!(D!=null&&D.every(ba=>typeof ba=="string"||typeof ba=="number"))?"查看":D;if(te=Array.isArray(te)?te.join(","):te,(N==null?void 0:N.formType)==="Date")if(!te||te===""||te===null||te===void 0)te="";else{const ba=M.dayjs(te,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);te=ba.isValid()?ba.format("YYYYMMDD"):te??""}return Array.isArray(N==null?void 0:N.relatedPages)&&((nl=N==null?void 0:N.relatedPages)==null?void 0:nl.length)>0&&(te="详情页"),te},Vu=p=>{var ge,me,Ge,We,Xe,ya,Da,Ta,Ze,nl;const{row:v,column:N,item:I,slotData:j}=p;let D=v!=null&&v[N==null?void 0:N.prop]?((me=(ge=v==null?void 0:v[N==null?void 0:N.prop])==null?void 0:ge[0])==null?void 0:me.contents)??(v==null?void 0:v[N==null?void 0:N.prop]):((We=(Ge=v==null?void 0:v[I==null?void 0:I.prop])==null?void 0:Ge[0])==null?void 0:We.contents)??(v==null?void 0:v[I==null?void 0:I.prop])??((ya=(Xe=j==null?void 0:j[I==null?void 0:I.prop])==null?void 0:Xe[0])==null?void 0:ya.contents)??(j==null?void 0:j[I==null?void 0:I.prop])??((Ze=(Ta=v==null?void 0:v[(Da=I==null?void 0:I.child)==null?void 0:Da.prop])==null?void 0:Ta[0])==null?void 0:Ze.contents)??(v==null?void 0:v[(nl=I==null?void 0:I.child)==null?void 0:nl.prop]);const te=Array.isArray(D)&&!(D!=null&&D.every(ba=>typeof ba=="string"||typeof ba=="number")),K=Array.isArray(D)&&(D==null?void 0:D.find(ba=>ba==null?void 0:ba.url));return te&&K},Fu=p=>{var j,D,ne,te;if(!(p!=null&&p.column))return!1;const v=de.value==="试验任务/任务管理",N=(d==null?void 0:d.compName)==="任务列表",I=((D=(j=p==null?void 0:p.column)==null?void 0:j.filter)==null?void 0:D.includes("@TextRGBA"))||((te=(ne=p==null?void 0:p.column)==null?void 0:ne.filter)==null?void 0:te.includes("@TextBackRGBA"));return v&&N&&I},Pu=(p,v)=>p.find(N=>Object.values(N).some(I=>I===v));return e.watch(()=>Ke.value,async p=>{if(p){ea.setContentLoading(!0),await e.nextTick();const v=Pu(Ce.value,p==null?void 0:p.data);if(!v)return ea.setContentLoading(!1);await so(p==null?void 0:p.data,null,v,{data:p==null?void 0:p.data}),ea.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>d==null?void 0:d.cacheNewData,p=>{var v;p&&(Array.isArray(p)?p.forEach(N=>{var I,j,D,ne,te;if(换,String(N==null?void 0:N.compId)===String(d==null?void 0:d.index)&&(N!=null&&N.resId)&&((I=N==null?void 0:N.data)!=null&&I.id)){const K=(j=N==null?void 0:N.data)==null?void 0:j.id,ge=N==null?void 0:N.resId;if(Ce.value=(D=Ce.value)==null?void 0:D.map(me=>{if((me==null?void 0:me.id)===K){const Ge={...me,id:ge};return delete Ge._isOCRRow,delete Ge._ocrTableId,Ge}return me}),(te=(ne=Ca.value)==null?void 0:ne.has)!=null&&te.call(ne,K)){const Ge={...Ca.value.get(K)||{},id:ge};delete Ge._isOCRRow,delete Ge._ocrTableId,Ca.value.delete(K),Ca.value.set(ge,Ge)}ar(d==null?void 0:d.index,K,ge)}}):String(p==null?void 0:p.compId)===String(d==null?void 0:d.index)&&(Ce.value=(v=Ce.value)==null?void 0:v.map(N=>{var I;if((N==null?void 0:N.id)===((I=p==null?void 0:p.data)==null?void 0:I.id)){const j={...N,id:p==null?void 0:p.resId};return delete j._isOCRRow,delete j._ocrTableId,j}return N})))},{immediate:!0,deep:!0}),(p,v)=>{var Ze,nl,ba,il;const N=e.resolveComponent("svg-icon"),I=e.resolveComponent("el-popover"),j=e.resolveComponent("el-switch"),D=e.resolveComponent("el-checkbox"),ne=e.resolveComponent("el-radio"),te=e.resolveComponent("el-radio-group"),K=e.resolveComponent("el-checkbox-group"),ge=e.resolveComponent("el-button"),me=e.resolveComponent("el-icon"),Ge=e.resolveComponent("el-progress"),We=e.resolveComponent("el-alert"),Xe=e.resolveComponent("el-table-column"),ya=e.resolveComponent("el-table"),Da=e.resolveComponent("el-upload"),Ta=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",p3,[ri.value?(e.openBlock(),e.createBlock(pl.ssTable,{id:"excel-table",pageObj:ue,showIndex:w.value,isTree:(Ze=a.compItem)==null?void 0:Ze.isTree,summaryInfo:_e,columns:P.value,defaultSort:he,isCardViewport:_r.value,checkedColumns:n.value,key:ir.value+JSON.stringify(P.value),tableData:Bn.value,isEditViewport:tr.value,isShowPagination:wa.value,isShowEdit:!1,isShowDelete:!1,allowSelect:A.value,onDbClickRow:rt,extraButton:je.value,rowButton:za.value,cacheExtraButtons:ze.value,isClearSelection:((nl=Mr.value)==null?void 0:nl.length)===0,onDoCurrentChange:Fo,onDoSizeChange:Po,onSortChange:jo,onContentClick:so,onRowClick:it,onSelectChange:ki,onCellChange:Mu,onCellInput:Lu,onSelectSuggest:$u,onChange:uo,onPreview:no,onSubmitEditingTable:On,onHandleColEditChange:Uo,onHandleColTypeChange:qo,onClickButton:ut,onAddNewRow:Wo,bottomButton:O.value,allowRowAddOrDelete:lt.value},e.createSlots({headerButton:e.withCtx(ye=>{var Fa,fa,Ya,$a;return[a.showHeader?(e.openBlock(),e.createBlock($f,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(ca)===e.unref(de),filterValues:to.value,selectNums:(Fa=Mr.value)==null?void 0:Fa.length,dataNums:(fa=Ce.value)==null?void 0:fa.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ye.buttons,menuFilter:($a=(Ya=a.compItem)==null?void 0:Ya.component)==null?void 0:$a.menuFilter,onButtonClick:v[1]||(v[1]=(Ne,Z,He)=>ut(Ne,Z,{extra:He})),columns:P.value,onFilter:Fi,onGetImportData:tn,level:a.level,filterShow:z.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ye,Fa,fa,Ya;return[((ye=Ce.value)==null?void 0:ye.length)>0&&a.allowOperate&&ae.value?(e.openBlock(),e.createElementBlock("div",v3,[(Fa=Y.value)!=null&&Fa.includes("read")&&((fa=Y.value)!=null&&fa.includes("edit"))&&((Ya=za.value)!=null&&Ya.some($a=>($a==null?void 0:$a.label)==="编辑"))&&!_r.value&&e.unref(ca)!==e.unref(de)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:Nu},[e.createVNode(N,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ye,index:Fa})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:fa=>zu(ye,Fa)},[e.createVNode(N,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,m3)]),operateCol:e.withCtx(()=>[e.createVNode(I,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Su,onBeforeEnter:Eu},{reference:e.withCtx(()=>[e.createElementVNode("span",y3,[e.createVNode(N,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",g3,[v[20]||(v[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(j,{"model-value":V.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:v[2]||(v[2]=ye=>Xo(ye))},null,8,["model-value"]),v[21]||(v[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(K,{modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=ye=>n.value=ye),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Gn.value,ye=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ye.label},[e.createVNode(D,{value:ye.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ye.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ye.label),9,b3)]),_:2},1032,["value"]),e.createVNode(I,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(N,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Fa;return[e.createElementVNode("div",k3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Fa=Object.keys(ye))==null?void 0:Fa.filter(fa=>{var Ya;return(Ya=k.value)==null?void 0:Ya.find($a=>($a==null?void 0:$a.value)===fa)}),fa=>{var Ya,$a;return e.openBlock(),e.createElementBlock("div",{key:fa},[S[fa]=="radio"?(e.openBlock(),e.createElementBlock("div",x3,[v[19]||(v[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(te,{"model-value":ye==null?void 0:ye[fa],onChange:Ne=>Vi(Ne,fa,ye)},{default:e.withCtx(()=>{var Ne,Z;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=(Ne=k.value)==null?void 0:Ne.find(He=>(He==null?void 0:He.value)===fa))==null?void 0:Z.options,He=>(e.openBlock(),e.createBlock(ne,{key:He==null?void 0:He.value,label:He==null?void 0:He.value,value:He==null?void 0:He.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(He==null?void 0:He.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),S[fa]=="switch"?(e.openBlock(),e.createBlock(j,{key:1,"model-value":ye==null?void 0:ye[fa],"active-text":($a=(Ya=k.value)==null?void 0:Ya.find(Ne=>(Ne==null?void 0:Ne.value)===fa))==null?void 0:$a.label,onChange:Ne=>Vi(Ne,fa,ye)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",w3,[e.createVNode(N,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ye=>{var Fa,fa,Ya,$a,Ne,Z,He,sa,T,Ma,Ua,ol,Ga,_a,dl,Ul,qa,Bl,Va,Ll;return[((Fa=ye==null?void 0:ye.column)==null?void 0:Fa.label)==="证书附件"||((fa=ye==null?void 0:ye.column)==null?void 0:fa.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",_3,[e.createVNode(N,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(rl=>mu(ye),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Vu(ye)?(e.openBlock(),e.createBlock(I,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",S3,e.toDisplayString(cn(ye)),1)]),default:e.withCtx(()=>{var rl,hl;return[e.createElementVNode("div",E3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((hl=ye==null?void 0:ye.row)==null?void 0:hl[(rl=ye==null?void 0:ye.column)==null?void 0:rl.prop],zl=>(e.openBlock(),e.createElementBlock("div",C3,[e.createElementVNode("div",{class:"prop-url",title:ti(zl),onClick:kl=>at(zl)},e.toDisplayString(ti(zl)),9,D3),e.createElementVNode("div",{class:"prop-download",onClick:kl=>oo(zl)}," 下载 ",8,T3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Fu(ye)?(e.openBlock(),e.createBlock(Xu,{key:0,value:cn(ye),columnContent:ye==null?void 0:ye.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(cn(ye))&&(($a=(Ya=cn(ye))==null?void 0:Ya.toString())!=null&&$a.includes(".txt")||(Z=(Ne=cn(ye))==null?void 0:Ne.toString())!=null&&Z.includes(".cpt")||(sa=(He=cn(ye))==null?void 0:He.toString())!=null&&sa.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(cn(ye))&&((Ma=(T=cn(ye))==null?void 0:T.toString())!=null&&Ma.includes(".txt")||(ol=(Ua=cn(ye))==null?void 0:Ua.toString())!=null&&ol.includes(".cpt")||(_a=(Ga=cn(ye))==null?void 0:Ga.toString())!=null&&_a.includes(".cyd"))?"underline":"",cursor:!Array.isArray(cn(ye))&&((Ul=(dl=cn(ye))==null?void 0:dl.toString())!=null&&Ul.includes(".txt")||(Bl=(qa=cn(ye))==null?void 0:qa.toString())!=null&&Bl.includes(".cpt")||(Ll=(Va=cn(ye))==null?void 0:Va.toString())!=null&&Ll.includes(".cyd"))?"pointer":"",marginLeft:(ye==null?void 0:ye.colIndex)===0?`${((ye==null?void 0:ye.level)??0)*20}px`:0}),onClick:rl=>{var hl;return Ri(cn(ye),((hl=ye==null?void 0:ye.column)==null?void 0:hl.relatedPages)??[])}},e.toDisplayString(cn(ye)===0?"0":cn(ye)),13,B3))],64))]}),_:2},[((ba=za.value)==null?void 0:ba.length)>0?{name:"actions",fn:e.withCtx(({item:ye,fIndex:Fa})=>[e.createVNode(I,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(N,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",f3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ci(za.value,ye),(fa,Ya)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ya,onClick:e.withModifiers($a=>ut(fa==null?void 0:fa.label,ye,{extra:fa}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:fa==null?void 0:fa.textColor}),class:"extra-button-label"},e.toDisplayString(fa==null?void 0:fa.label),5)],8,h3))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton","allowRowAddOrDelete"])):e.createCommentVNode("",!0),tr.value?(e.openBlock(),e.createElementBlock("div",N3,[e.createVNode(ge,{id:"themeBorderButton",onClick:Go},{default:e.withCtx(()=>v[22]||(v[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:$i},{default:e.withCtx(()=>v[23]||(v[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(Ir.ssDialog,{title:Je.value,visible:xe.value,width:an.value,onBeforeDestroy:Zo,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",A3,[e.createVNode(pl.ssForm,{ref_key:"formRef",ref:H,rowContents:we.value,showOperator:!1,onChange:Cu,isEnableWrap:!1,layer:!0,onFixChangeValue:Rn,onClickTrigger:Qo,isEdit:Aa.value,onBlurChange:Yo,onCreate:ro,onTagChange:Tn},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Ae.value?(e.openBlock(),e.createElementBlock("div",z3,[e.createVNode(ge,{onClick:v[4]||(v[4]=ye=>xe.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>v[24]||(v[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(ge,{class:"ok-button",onClick:v[5]||(v[5]=ye=>Hi(!0)),id:"themeButton"},{default:e.withCtx(()=>v[25]||(v[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Ir.ssDialog,{title:Je.value,visible:Re.value,width:Ia.value,onBeforeDestroy:v[7]||(v[7]=ye=>Re.value=!1)},{default:e.withCtx(()=>[e.createVNode(Jf)]),footer:e.withCtx(()=>[e.createElementVNode("div",M3,[e.createVNode(ge,{onClick:v[6]||(v[6]=ye=>Re.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>v[26]||(v[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(ge,{class:"ok-button",onClick:ot,id:"themeButton"},{default:e.withCtx(()=>v[27]||(v[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),ua.value?(e.openBlock(),e.createBlock(pl.ssFilePreview,{key:2,fileDataList:ce.value,onDestroy:nt},null,8,["fileDataList"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createBlock(Ir.ssDialog,{key:3,visible:se.value,onBeforeDestroy:wu,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(Co.ThreeViewerHost,{files:Pe.value,threeData:oe.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Ir.ssDialog,{title:"OCR扫描录入",visible:_l.value,"close-on-click-modal":!1,onBeforeDestroy:Zl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[v[38]||(v[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",I3,[e.createElementVNode("div",O3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:la.value===1}])},v[28]||(v[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),v[31]||(v[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:la.value===2}])},v[29]||(v[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),v[32]||(v[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:la.value===3}])},v[30]||(v[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),la.value===1?(e.openBlock(),e.createElementBlock("div",L3,[e.createVNode(ge,{onClick:E,class:"ocr-action-btn",disabled:br.value,size:"default"},{default:e.withCtx(()=>v[33]||(v[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(ge,{onClick:ui,class:"ocr-action-btn",disabled:br.value,size:"default"},{default:e.withCtx(()=>v[34]||(v[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),la.value===1?(e.openBlock(),e.createElementBlock("div",R3,[e.createElementVNode("div",$3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(va.value,(ye,Fa)=>{var fa;return e.openBlock(),e.createElementBlock("div",{key:Fa,class:"ocr-file-item"},[e.createElementVNode("div",V3,[ye.raw&&((fa=ye.raw.type)!=null&&fa.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:sn(ye),alt:"预览",class:"thumbnail-image"},null,8,F3)):(e.openBlock(),e.createElementBlock("div",P3,[e.createVNode(me,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:Wl(ye)==="uploading",processing:Wl(ye)==="processing",completed:Wl(ye)==="completed"||Wl(ye)==="uploaded",failed:Wl(ye)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",j3,[v[35]||(v[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:Wl(ye)==="completed"||Wl(ye)==="uploaded",uploading:Wl(ye)==="uploading",processing:Wl(ye)==="processing",failed:Wl(ye)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Wl(ye)==="failed"?"#f56c6c":Wl(ye)==="completed"||Wl(ye)==="uploaded"?"#67c23a":"#409eff","stroke-width":Wl(ye)==="completed"||Wl(ye)==="uploaded"||Wl(ye)==="failed"?3:2,"stroke-dasharray":Nn(ye),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,H3)])),Wl(ye)==="completed"||Wl(ye)==="uploaded"?(e.openBlock(),e.createElementBlock("div",U3,[e.createVNode(me,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.check_default))]),_:1})])):e.createCommentVNode("",!0),Wl(ye)==="failed"?(e.openBlock(),e.createElementBlock("div",q3,[e.createVNode(me,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ya=>gu(Fa)},[e.createVNode(me,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.close_default))]),_:1})],8,W3)]),e.createElementVNode("div",K3,e.toDisplayString(ye.name||"文件名123"),1)])}),128))]),va.value.length>0?(e.openBlock(),e.createElementBlock("div",G3,[e.createVNode(ge,{onClick:cl,class:"ocr-start-recognize-btn",disabled:br.value||va.value.length===0,size:"default"},{default:e.withCtx(()=>v[36]||(v[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),la.value===1?(e.openBlock(),e.createElementBlock("div",Y3,[e.createVNode(Ge,{percentage:Ee.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),la.value===2?(e.openBlock(),e.createElementBlock("div",J3,[e.createElementVNode("div",X3,[e.createVNode(We,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Z3,[e.createVNode(ya,{data:ja.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Xe,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Te.value,ye=>(e.openBlock(),e.createBlock(Xe,{key:ye.prop,prop:ye.prop,"min-width":ye.minWidth||230,"class-name":ye.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Q3,[e.createElementVNode("span",null,e.toDisplayString(ye.label),1)])]),default:e.withCtx(({row:Fa,$index:fa})=>{var Ya,$a,Ne;return[ye.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:sr(Fa[ye.prop]),fontWeight:500})},e.toDisplayString(Jl(Fa[ye.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[ha.value!==fa?(e.openBlock(),e.createElementBlock("span",eh,e.toDisplayString(Fa[ye.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(al(ye.prop)),{key:1,modelValue:Fa[ye.prop],"onUpdate:modelValue":Z=>Fa[ye.prop]=Z,size:"small",placeholder:"请输入"+ye.label,content:((Ya=La(ye.prop))==null?void 0:Ya.contents)??(($a=La(ye.prop))==null?void 0:$a.options)??[],optionUrl:(Ne=La(ye.prop))==null?void 0:Ne.optionUrl,onChange:Z=>Vl(fa,ye.prop,Z),onFocus:Z=>ta.value=ye.prop,onBlur:v[8]||(v[8]=Z=>ta.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Xe,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ye})=>[ha.value===ye?(e.openBlock(),e.createBlock(me,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Fa=>Hl(ye),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(N,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Fa=>Hl(ye),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),la.value===3?(e.openBlock(),e.createElementBlock("div",ah,[e.createVNode(me,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ja.check_default))]),_:1}),v[37]||(v[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Da,{ref:"ocrUploadRef","file-list":va.value,"onUpdate:fileList":v[9]||(v[9]=ye=>va.value=ye),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":ll,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[la.value!==3?(e.openBlock(),e.createElementBlock("div",lh,[e.createVNode(ge,{onClick:hu,class:"ocr-start-recognize-btn",disabled:la.value===1||br.value},{default:e.withCtx(()=>v[39]||(v[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(ge,{onClick:vu,class:"ocr-start-recognize-btn",disabled:br.value},{default:e.withCtx(()=>v[40]||(v[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(h0,{visible:g.value,onConfirm:L,onCancel:v[10]||(v[10]=ye=>g.value=!1)},null,8,["visible"]),e.createVNode(zd,{visible:pa.value,"onUpdate:visible":v[11]||(v[11]=ye=>pa.value=ye),versions:Ha.value},null,8,["visible","versions"]),e.createVNode(gd,{visible:ga.value,"onUpdate:visible":v[12]||(v[12]=ye=>ga.value=ye),images:ma.value,"default-image-name":fl.value,"field-meta":ha.value!==null?((il=ja.value[ha.value])==null?void 0:il.__ocrFieldMeta)||{}:{},"focused-field-name":ta.value,onClose:v[13]||(v[13]=ye=>ga.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(qd,{visible:Fe.value,"onUpdate:visible":v[14]||(v[14]=ye=>Fe.value=ye),candidates:ml.value,"name-prop":bl.value,"mfr-prop":Ra.value,columns:P.value,onSubmit:mr,onPreviewFile:yu},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(Zd,{visible:ia.value,"onUpdate:visible":v[15]||(v[15]=ye=>ia.value=ye),ocrPreviewData:ja.value,"onUpdate:ocrPreviewData":v[16]||(v[16]=ye=>ja.value=ye),ocrSelectedFields:Le.value,"onUpdate:ocrSelectedFields":v[17]||(v[17]=ye=>Le.value=ye),ocrPreviewColumns:Te.value,onConfirm:El,onFieldChange:v[18]||(v[18]=({rowIndex:ye,prop:Fa,value:fa})=>Vl(ye,Fa,fa))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(Ir.ssDialog,{title:G.title,visible:G.show,width:G.width,onBeforeDestroy:ra},{default:e.withCtx(()=>[e.createElementVNode("div",rh,[e.createVNode(pl.ssForm,{rowContents:G==null?void 0:G.contents,formRules:G==null?void 0:G.formRules,showOperator:!1,buttonValue:G.buttonValue,isEdit:Aa.value,isStartJustify:!1,onOnButtonClick:Oa},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(Ir.ssDialog,{title:"",visible:J.show,width:J.width,alignCenter:!0,onBeforeDestroy:be},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",nh,e.toDisplayString(J.title),1),e.createVNode(Ta,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>v[41]||(v[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",ih,[e.createVNode(Ta,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(dn.value||"暂无"),1)]),_:1}),e.createElementVNode("div",oh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J==null?void 0:J.buttonValue,ye=>(e.openBlock(),e.createBlock(ge,{key:ye==null?void 0:ye.label,style:e.normalizeStyle({background:ye==null?void 0:ye.background,color:ye==null?void 0:ye.color}),onClick:Fa=>Se(ye==null?void 0:ye.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ye==null?void 0:ye.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(Vf,{columns:J==null?void 0:J.columns,tableData:J==null?void 0:J.tableData},{content:e.withCtx(({row:ye,item:Fa,slotData:fa,scope:Ya,column:$a,columnProp:Ne,$index:Z})=>[e.createTextVNode(e.toDisplayString((ye==null?void 0:ye[$a==null?void 0:$a.prop])||(ye==null?void 0:ye[$a==null?void 0:$a.label])||(ye==null?void 0:ye[$a==null?void 0:$a.property])||(fa==null?void 0:fa[$a==null?void 0:$a.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"]),e.createVNode(pl.Signature,{signPadInfo:tl.value,onBeforeDestroy:Dl,onClickSubmitSign:Ml},null,8,["signPadInfo"])])}}},Hc=nr._export_sfc(sh,[["__scopeId","data-v-d2784429"]]),ch={key:1,class:"static-form-body"},uh=["onClick"],dh={key:1},ph=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0},backgroundUrl:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,i=_=>{switch(_){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=e.computed(()=>{var R;const _=(R=n.itemData)==null?void 0:R.find(V=>(V==null?void 0:V.key)==="formContent"),b=(_==null?void 0:_.contents)||[];return(n.fields&&n.fields.length>0?n.fields:b).filter(V=>(V==null?void 0:V.label)||(V==null?void 0:V.isHideInForm)).map(V=>{let ae=V==null?void 0:V.value;Array.isArray(ae)&&(ae=ae.map(U=>U==null?"":typeof U=="object"?U.label??U.value??U.name??JSON.stringify(U):String(U)).filter(Boolean).join(",")),ae!=null&&typeof ae=="object"&&(ae=ae.label??ae.value??ae.name??JSON.stringify(ae));const ee=V.isHideInForm?"":V.label??"",_e=ae==null||ae===""?"-":String(ae),ue=ee==="使用状态";return{label:ee,value:_e,isStatus:ue,tagType:ue?i(_e):"",width:V.width??1,field:V}})}),f=e.ref(null),c=e.ref(null),u=e.computed(()=>{const _=Number(n==null?void 0:n.textSize),b=le.rgbaToColor(n==null?void 0:n.textColor),C={},R={},V={},ae={};return!Number.isNaN(_)&&_&&(C.fontSize=`${_}px`,R.fontSize=`${_+1}px`,V.fontSize=`${_}px`,ae.fontSize=`${_}px`),b&&(R.color=b,V.color=b,ae.color=b),{item:C,label:R,value:V,empty:ae}}),m=e.ref(""),y=e.ref(""),x=e.ref(!1),d=async _=>{if(_){y.value&&(URL.revokeObjectURL(y.value),y.value="");try{const b=await M.platformDownloadFile({url:_}),C=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});y.value=URL.createObjectURL(C)}catch{y.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,_=>{_&&(m.value=_)},{immediate:!0}),e.watch(m,_=>{d(_)},{immediate:!0});const A=()=>{var _;(_=c.value)==null||_.click()},w=async _=>{var R,V,ae;const b=_.target,C=(R=b==null?void 0:b.files)==null?void 0:R[0];if(!C){b.value="";return}x.value=!0;try{const ee=new FormData;ee.append("file",C);const _e=await M.platformUploadFile(ee),ue=(ae=(V=_e==null?void 0:_e.data)==null?void 0:V.result)==null?void 0:ae.url;ue?(m.value=ue,r("update:backGroundImage",ue),d(ue),Ja.ElMessage.success("背景图片上传成功")):Ja.ElMessage.error("背景图片上传失败")}catch{Ja.ElMessage.error("背景图片上传失败")}finally{x.value=!1,b.value=""}},Y=e.computed(()=>{var _;return y.value||(n==null?void 0:n.backgroundUrl)!==""?{backgroundImage:`url("${(_=n==null?void 0:n.backgroundUrl)==null?void 0:_.replace(/\\/g,"/")}")`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}}),z=_=>pl.getComponent(_),$=_=>{if(!_)return;const b=_.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},O=(_,b,C)=>{n.disabled||(f.value=b,e.nextTick(()=>{$(C.currentTarget)}))},S=()=>{f.value=null},k=_=>{const b=_!=null&&_.width&&_.width>0?_.width:1,R=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${R}`,maxWidth:R,minWidth:"0",boxSizing:"border-box"}};return(_,b)=>{const C=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(Y.value),onClick:b[2]||(b[2]=R=>(n==null?void 0:n.backGround)==="Yes"&&A())},[(n==null?void 0:n.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers(R=>A(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:w},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:pl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),t.value.length?(e.openBlock(),e.createElementBlock("div",ch,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(R,V)=>{var ae,ee,_e,ue,U,P,X,re,he;return e.openBlock(),e.createElementBlock("div",{key:V,class:"static-form-item",style:e.normalizeStyle({...k(R),...u.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[R.label&&!((ae=R==null?void 0:R.field)!=null&&ae.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(u.value.label)},e.toDisplayString(R.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(u.value.value),onClick:$e=>{var se;return(se=R.field)!=null&&se.isNoClick?null:O(R,V,$e)}},[f.value===V&&R.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(z(((ee=R.field)==null?void 0:ee.type)??"Input")),{key:0,modelValue:R.field.value,"onUpdate:modelValue":$e=>R.field.value=$e,isEdit:!0,disabled:(_e=R.field)==null?void 0:_e.disabled,content:((ue=R.field)==null?void 0:ue.contents)??[],optionUrl:R.field,originalValue:(U=R.field)==null?void 0:U.value,config:(P=R.field)==null?void 0:P.config,configModel:((X=R.field)==null?void 0:X.prop)??((re=R.field)==null?void 0:re.name),selectedTagList:((he=R.field)==null?void 0:he.selectValue)??[],onBlur:S,onBlurChange:S},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[R.isStatus?(e.openBlock(),e.createBlock(C,{key:0,type:R.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(R.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",dh,e.toDisplayString(R.value??"-"),1))],64))],12,uh)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(u.value.empty)}," 暂无数据 ",4))],4)}}}),Uc=nr._export_sfc(ph,[["__scopeId","data-v-5937a104"]]),fh={class:"form-content"},hh={title:"选择标签"},vh={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},mh={class:"col-operate-wrap"},yh={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},gh={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const n=()=>{c.value=!1,u.value=!1,m.value=[]},r=a;e.computed(()=>{var Oe;const xe=(Oe=Ea.value)==null?void 0:Oe.split("/");return(xe==null?void 0:xe.some(Re=>(Re==null?void 0:Re.includes("updateLoading"))||(Re==null?void 0:Re.includes("loading"))))?!1:$e.value==="view"});const i=l,t=e.ref(""),f=e.ref([]),c=e.ref(!1),u=e.ref(!1),m=e.ref([]),{getFileExtension:y}=Co.useThreeSystem(),x=e.ref(),d=e.ref(!1),A=e.ref(!1),w=M.useUnit(M.pinia),{chooseTitle:Y}=M.storeToRefs(w),z=e.ref([]),$=e.ref(),O=e.ref(!1),S=e.ref([]),k=bc(M.pinia),_=Ot(M.pinia),b=e.ref(!1),C=e.ref(),R=e.ref(),V=e.ref(),ae=e.ref(),ee=e.ref(),_e=M.useLoginState(M.pinia),{loginUserInfo:ue}=M.storeToRefs(_e),U=e.ref(),P=e.ref(!0),X=M.useModelComp(M.pinia),{tableViewContents:re,itemData:he,isEdit:$e,routeToChildPath:se,lockingPage:B,homepageBackgroundTableId:oe,refreshCurrentPageInform:W}=M.storeToRefs(X),ke=e.ref(null),Ie=e.ref(!1),Ve=e.ref(!1),Qe=M.useMenuState(),{activeMenuPath:Ea}=M.storeToRefs(Qe),ie=le.useOriginalState(M.pinia),{originalPath:ua}=M.storeToRefs(ie),{compType:ce,hasEditable:ea}=ic.useRole(),Me=()=>!ea(r.config,{type:ce.FORM});e.computed(()=>Ea.value==="设备管理/试验设备"&&r.compName==="设备概要");const de=async()=>{var Oe,Re,Ia;const xe=oe==null?void 0:oe.value,H=(Oe=ue==null?void 0:ue.value)==null?void 0:Oe.plat_id;if(!(!xe||!H))try{const na=await M.getAllTables({platId:parseInt(H),tableNames:[`content_${xe}`,`struct_${xe}`],user_unique_id:"0"}),za=((Ia=(Re=na==null?void 0:na.data)==null?void 0:Re.result)==null?void 0:Ia[0])??[],Ae=String((r==null?void 0:r.index)??""),Pe=za==null?void 0:za.find(je=>String(je==null?void 0:je.relatedForm_id)===Ae);Pe!=null&&Pe.backgroundImg_url&&(ae.value=Pe.backgroundImg_url)}catch(na){console.error("获取首页背景图片表数据失败:",na)}},fe=e.ref([]),Ke=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),ka=async xe=>{Ve.value=xe,await da("disabled",null,xe,!0)},Ba=async xe=>{await da("operable",null,xe,!0)};e.watch(()=>Ea.value,async()=>{f.value=[],m.value=[]},{deep:!0,immediate:!0});const q=()=>{e.nextTick(()=>{ve()})},F=xe=>{var H;f.value=(H=f.value)==null?void 0:H.map(Oe=>({...Oe,isFormColHidden:!(xe!=null&&xe.includes(Oe.label))}))};e.onUnmounted(()=>{ke.value=null});const Q=xe=>{i("clickTrigger",xe)},pe=async xe=>{var H,Oe,Re,Ia,na,za;if(xe===""){let Ae="";(H=f.value)==null||H.forEach(we=>{we!=null&&we.isMain&&(Ae=we==null?void 0:we.value)});let Pe=await le.getItemData(se.value,sessionStorage.getItem("systemKey"),"");Ae=((za=(na=(Ia=(Re=(Oe=Pe==null?void 0:Pe[0])==null?void 0:Oe.compData)==null?void 0:Re.find(we=>(we==null?void 0:we.key)==="mainRouters"))==null?void 0:Ia.contents)==null?void 0:na[0])==null?void 0:za.routerContent)+ua.value+Ae;let ze=await le.getItemData(Ae,sessionStorage.getItem("systemKey"),"");O.value=!0,S.value=ze==null?void 0:ze.filter(we=>(we==null?void 0:we.comp)!=="methodButton"),i("routeUrl",S.value)}},ve=()=>{var H;const xe=(H=ke.value)==null?void 0:H.$el;xe&&Fl.Sortable.create(xe,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Oe=>{const{oldIndex:Re,newIndex:Ia}=Oe;if(Re===Ia)return;const na=f.value.splice(Re,1)[0];f.value.splice(Ia,0,na)}})},da=async(xe,H,Oe,Re=!1)=>{try{X.setRefreshCurStructure(!1)}catch{Ja.ElMessage.error("编辑处理失败")}},ca=async(xe,H)=>{await da()},Ue=async(xe,H)=>{xe&&await da()},xa=async(xe,H,Oe)=>{await da(H,Oe,xe,!1)},Na=(xe,H)=>{U.value===H?P.value=!1:P.value=!0,U.value=H==null?void 0:H.changeProp},Ce=async xe=>{var za;ae.value=xe;const H=r.itemData,Oe=H==null?void 0:H.find(Ae=>(Ae==null?void 0:Ae.key)==="backGroundImage");Oe?Oe.contents=xe:H==null||H.push({key:"backGroundImage",contents:xe}),i("change",{key:"backGroundImage",contents:xe});const Re=oe==null?void 0:oe.value,Ia=r==null?void 0:r.index,na=(za=ue==null?void 0:ue.value)==null?void 0:za.plat_id;if(!(!Re||!na||!Ia||!xe))try{await M.pageBatchAddApi({platId:parseInt(na),changeContents:[{tableName:`content_${Re}`,tableContents:[{backgroundImg_url:xe,relatedForm_id:String(Ia)}]}],user_unique_id:"0"})}catch(Ae){console.error("保存背景图片记录失败:",Ae),Ja.ElMessage.error("背景图片记录保存失败")}},Pa=async xe=>{var Oe,Re,Ia,na,za,Ae,Pe,je,ze,we,tl,Dl,Ml,jl,gl;let H=[];if((Oe=xe==null?void 0:xe.toString())!=null&&Oe.includes(".urdf")){if(xe.includes(",")){Ja.ElMessage.error("当前版本仅允许单个urdf预览!");return}m.value=[{url:xe,extension:y(xe)}],u.value=!0,c.value=!0;return}if((Re=xe==null?void 0:xe.toString())!=null&&Re.includes(".stl")||(Ia=xe==null?void 0:xe.toString())!=null&&Ia.includes(".STL")||(na=xe==null?void 0:xe.toString())!=null&&na.includes(".obj")||(za=xe==null?void 0:xe.toString())!=null&&za.includes(".mtl")){const el=((Ae=xe==null?void 0:xe.toString())==null?void 0:Ae.split(",")).map($l=>({url:$l,extension:y($l)}));m.value=el,u.value=!1,c.value=!0;return}if((Pe=xe==null?void 0:xe.toString())!=null&&Pe.includes(".stl")||(je=xe==null?void 0:xe.toString())!=null&&je.includes(".STL")||(ze=xe==null?void 0:xe.toString())!=null&&ze.includes(".obj")||(we=xe==null?void 0:xe.toString())!=null&&we.includes(".mtl")){let er,el=[],$l={};if(Array.isArray(xe)?er=xe:er=xe==null?void 0:xe.split(","),er==null||er.forEach(Wa=>{Wa.includes(".mtl")?el.push(Wa):$l.blob=$l.blob?$l.blob+","+Wa:Wa}),(el==null?void 0:el.length)>0&&($l.mtlBlobs=el),(Dl=(tl=Object.values($l))==null?void 0:tl[0])!=null&&Dl.includes("http:"))H.push($l);else{const Wa=new Blob([$l.blob],{type:"application/octet-stream;charset=UTF-8"});let Kl=URL.createObjectURL(Wa),Yl="";(Ml=xe==null?void 0:xe.split("/"))==null||Ml.forEach((ar,_l)=>{var br;_l===((br=xe==null?void 0:xe.split("/"))==null?void 0:br.length)-1&&(Yl=ar)}),(jl=$l.blob)!=null&&jl.includes(".stl")&&(Yl=(Yl==null?void 0:Yl.replaceAll(">",""))+".urdf"),$.value=[{name:Yl,blobUrl:Kl}],A.value=!0}}else{const er=M.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),el=await Ja.axios.get(xe,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{er.close()}),$l=new Blob([el.data],{type:"application/octet-stream;charset=UTF-8"});let Wa=URL.createObjectURL($l),Kl="";(gl=xe==null?void 0:xe.split("/"))==null||gl.forEach((Yl,ar)=>{var _l;ar===((_l=xe==null?void 0:xe.split("/"))==null?void 0:_l.length)-1&&(Kl=Yl)}),$.value=[{name:Kl,blobUrl:Wa}],A.value=!0}(H==null?void 0:H.length)>0&&_.setBlobUrls(H)},Ca=()=>{A.value=!1},oa=xe=>{var na,za,Ae,Pe;const H=(za=(na=pl.safeClone(r.itemData))==null?void 0:na.find(je=>(je==null?void 0:je.key)==="formContent"))==null?void 0:za.contents,Oe=pl.safeClone(xe.content);let Re={};Oe&&((Ae=Object.values(Oe))==null?void 0:Ae.length)>0&&((Pe=Object.values(Oe))==null||Pe.forEach((je,ze)=>{Re[H[ze].key]=je}));const Ia={content:Re,index:r==null?void 0:r.index,buttonName:xe==null?void 0:xe.buttonName};i("change",Ia)};e.computed(()=>"http://222.92.178.198:62001");const Aa=async xe=>{var tl,Dl,Ml,jl,gl,er,el,$l,Wa,Kl,Yl,ar,_l,br,va,sl;if(!xe)return;(Dl=(tl=r==null?void 0:r.itemData)==null?void 0:tl.find(pa=>(pa==null?void 0:pa.key)==="parentFormPath"))==null||Dl.contents;let H=re.value;(H==null?void 0:H.length)>0&&(H=H==null?void 0:H.map(pa=>{var la,Ka,Sl,Ee;let Ha=(la=pa==null?void 0:pa.key)==null?void 0:la.split("/");return(r==null?void 0:r.compName)===(Ha==null?void 0:Ha[0])&&(Ka=f.value)!=null&&Ka.find(ia=>(ia==null?void 0:ia.prop)===(Ha==null?void 0:Ha[1]))&&(pa.value=(Ee=(Sl=f.value)==null?void 0:Sl.find(ia=>(ia==null?void 0:ia.prop)===(Ha==null?void 0:Ha[1])))==null?void 0:Ee.value),pa}),X.setTableViewContents(H));const Oe=pl.safeClone(r.itemData);let Re=Oe==null?void 0:Oe.map(pa=>{var Ha;return(pa==null?void 0:pa.key)==="formContent"&&((Ha=pa.contents)==null||Ha.map((la,Ka)=>{var Sl,Ee,ia,ja,Te,La,al,xl,Nl,Le,ha,ta,ga,ma,fl,Fe,ml,Be,Pl,Sa,ul;return la.type=(Ee=(Sl=f.value)==null?void 0:Sl.find(Za=>(Za==null?void 0:Za.prop)===(la==null?void 0:la.prop)))==null?void 0:Ee.type,la.options=la!=null&&la.options?la.options:((Te=(ja=(ia=la==null?void 0:la.key)==null?void 0:ia.split("$"))==null?void 0:ja[1])==null?void 0:Te.length)>0?(Nl=(xl=Gu((al=(La=la==null?void 0:la.key)==null?void 0:La.split("$"))==null?void 0:al[1]))==null?void 0:xl.split(","))==null?void 0:Nl.map(Za=>({label:Za,value:Za})):[],(Le=la==null?void 0:la.key)!=null&&Le.includes("$")&&(la.key=(ta=(ha=la==null?void 0:la.key)==null?void 0:ha.split("$"))==null?void 0:ta[0]),la.signature=(ma=(ga=f.value)==null?void 0:ga.find(Za=>(Za==null?void 0:Za.prop)===(la==null?void 0:la.prop)))==null?void 0:ma.signature,la.isLoginUser=(Fe=(fl=f.value)==null?void 0:fl.find(Za=>(Za==null?void 0:Za.prop)===(la==null?void 0:la.prop)))==null?void 0:Fe.isLoginUser,la.value=(ml=Object.values(xe))==null?void 0:ml[Ka],la.isFormColHidden=(Pl=(Be=f.value)==null?void 0:Be.find(Za=>(Za==null?void 0:Za.prop)===(la==null?void 0:la.prop)))==null?void 0:Pl.isFormColHidden,la.isHideInForm=(ul=(Sa=f.value)==null?void 0:Sa.find(Za=>(Za==null?void 0:Za.prop)===(la==null?void 0:la.prop)))==null?void 0:ul.isHideInForm,la})),pa}),Ia=f.value,na=(jl=(Ml=pl.safeClone(Re))==null?void 0:Ml.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:jl.contents;if(Ia=Ia==null?void 0:Ia.map(pa=>{var Ha,la;return(pa==null?void 0:pa.type)==="Select"&&((Ha=pa==null?void 0:pa.allSelectionContents)==null?void 0:Ha.length)>0&&(pa.contactValue=xe),pa.value=(la=na==null?void 0:na.find((Ka,Sl)=>((Ka==null?void 0:Ka.id)??Sl)===(pa==null?void 0:pa.id)))==null?void 0:la.value,pa}),!P.value){i("contentChange",{contents:Re,index:r.index});return}let za="",Ae=(el=(er=(gl=pl.safeClone(Re))==null?void 0:gl.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:er.contents)==null?void 0:el.find((pa,Ha)=>{var la,Ka,Sl;return(pa==null?void 0:pa.label)===U.value||Ha.toString()===((Sl=(Ka=(la=U.value)==null?void 0:la.split("t"))==null?void 0:Ka[1])==null?void 0:Sl.toString())}),Pe=($l=Ae==null?void 0:Ae.optionUrl)==null?void 0:$l.menuSelect,je=!0;if((Yl=(Kl=(Wa=pl.safeClone(Re))==null?void 0:Wa.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:Kl.contents)==null||Yl.forEach(pa=>{var Ha,la,Ka,Sl,Ee,ia;je&&((Ka=(la=(Ha=pa==null?void 0:pa.optionUrl)==null?void 0:Ha.groupSelect)==null?void 0:la[1])!=null&&Ka.includes("["))&&(za=(Ee=(Sl=pa==null?void 0:pa.optionUrl)==null?void 0:Sl.groupSelect)==null?void 0:Ee[1],JSON.stringify(Pe)===JSON.stringify((ia=pa==null?void 0:pa.optionUrl)==null?void 0:ia.menuSelect)&&(je=!1))}),(ar=Ae==null?void 0:Ae.optionUrl)!=null&&ar.menuSelect&&P.value){let pa=await Ct(Ae),Ha,la=(_l=Ae==null?void 0:Ae.optionUrl)==null?void 0:_l.menuSelect;if(pa==null||pa.forEach(Ka=>{var Sl,Ee,ia,ja,Te,La,al,xl,Nl,Le;za===((Ee=(Sl=Ae==null?void 0:Ae.optionUrl)==null?void 0:Sl.groupSelect)==null?void 0:Ee[1])&&((Te=(ja=(ia=Ae==null?void 0:Ae.optionUrl)==null?void 0:ia.groupSelect)==null?void 0:ja[1])!=null&&Te.includes("["))&&((Le=pl.safeClone(Ka))==null?void 0:Le[(Nl=(xl=(al=(La=Ae==null?void 0:Ae.optionUrl)==null?void 0:La.groupSelect)==null?void 0:al[1])==null?void 0:xl.replaceAll("[",""))==null?void 0:Nl.replaceAll("]","")])===(Ae==null?void 0:Ae.value)&&(Ha=Ka)}),Ha){let Ka=pl.safeClone(Ia);Ka=Ka==null?void 0:Ka.map(Ee=>{var ia,ja,Te,La,al,xl,Nl,Le,ha,ta,ga;return(Ha!=null&&Ha[Ee==null?void 0:Ee.label]||Ha!=null&&Ha[(La=(Te=(ja=(ia=Ee==null?void 0:Ee.optionUrl)==null?void 0:ia.groupSelect)==null?void 0:ja[1])==null?void 0:Te.replaceAll("[",""))==null?void 0:La.replaceAll("]","")])&&((Nl=(xl=(al=Ee==null?void 0:Ee.optionUrl)==null?void 0:al.groupSelect)==null?void 0:xl[1])!=null&&Nl.includes("["))&&la!=null&&la.every(ma=>{var fl,Fe;return(Fe=(fl=Ee==null?void 0:Ee.optionUrl)==null?void 0:fl.menuSelect)==null?void 0:Fe.includes(ma)})&&(Ee.value=(Ha==null?void 0:Ha[Ee==null?void 0:Ee.label])||(Ha==null?void 0:Ha[(ga=(ta=(ha=(Le=Ee==null?void 0:Ee.optionUrl)==null?void 0:Le.groupSelect)==null?void 0:ha[1])==null?void 0:ta.replaceAll("[",""))==null?void 0:ga.replaceAll("]","")]),Array.isArray(Ee.value)&&Ee.value.every(ma=>(ma==null?void 0:ma.url)&&(ma==null?void 0:ma.name))&&(Ee.type="Upload")),Ee}),Ka=Ka==null?void 0:Ka.map(Ee=>{var ia,ja,Te;return(ia=Ee==null?void 0:Ee.optionUrl)!=null&&ia.oldMenuSelect&&(Ee.optionUrl.menuSelect=(Te=(ja=pl.safeClone(Ee))==null?void 0:ja.optionUrl)==null?void 0:Te.oldMenuSelect),Ee}),f.value=pl.safeClone(Ka);let Sl=pl.safeClone(Ka);Sl=Sl==null?void 0:Sl.map(Ee=>{var ia,ja,Te,La,al,xl;return(ja=(ia=Ee==null?void 0:Ee.optionUrl)==null?void 0:ia.menuSelect)!=null&&ja.some(Nl=>Nl==null?void 0:Nl.includes("["))&&(Ee.optionUrl.oldMenuSelect=(La=(Te=pl.safeClone(Ee))==null?void 0:Te.optionUrl)==null?void 0:La.menuSelect,Ee.optionUrl.menuSelect=(xl=(al=Ee==null?void 0:Ee.optionUrl)==null?void 0:al.menuSelect)==null?void 0:xl.map(Nl=>{var Le,ha,ta,ga;if(Nl!=null&&Nl.includes("[")){let ma=(ha=(Le=Nl==null?void 0:Nl.replaceAll("[","").replaceAll("]",""))==null?void 0:Le.split(":"))==null?void 0:ha[1];Nl=(ga=(ta=pl.safeClone(Ka))==null?void 0:ta.find(fl=>(fl==null?void 0:fl.label)===ma))==null?void 0:ga.value}return Nl})),Ee}),f.value=Sl}else f.value=Ia;Re=Re==null?void 0:Re.map(Ka=>{var Sl;return(Ka==null?void 0:Ka.key)==="formContent"&&(Ka.contents=(Sl=Ka.contents)==null?void 0:Sl.map(Ee=>{var ia,ja,Te,La;return Ee.value=((ja=(ia=f.value)==null?void 0:ia.find(al=>(al==null?void 0:al.label)===(Ee==null?void 0:Ee.key)))==null?void 0:ja.value)??(Ee==null?void 0:Ee.value),Ee.type=((La=(Te=f.value)==null?void 0:Te.find(al=>(al==null?void 0:al.prop)===(Ee==null?void 0:Ee.key)))==null?void 0:La.type)??(Ee==null?void 0:Ee.type),Ee})),Ka})}P.value=!1,i("contentChange",{contents:Re,index:r.index});let ze=[],we=[];if((va=pl.safeClone((br=Re==null?void 0:Re.find(pa=>(pa==null?void 0:pa.key)==="formContent"))==null?void 0:br.contents))==null||va.forEach(pa=>{var Ha;Array.isArray(pa==null?void 0:pa.value)&&((Ha=pa==null?void 0:pa.value)!=null&&Ha.find(la=>{var Ka;return(Ka=la==null?void 0:la.url)==null?void 0:Ka.includes(".obj")}))&&(we=pa==null?void 0:pa.value)}),(we==null?void 0:we.length)>0){const pa=(sl=pl.safeClone(we))==null?void 0:sl.filter(Ha=>{var la;return(la=Ha==null?void 0:Ha.url)==null?void 0:la.includes(".obj")});pa==null||pa.forEach(Ha=>{var Ka,Sl,Ee,ia;const la=(Ka=we==null?void 0:we.filter(ja=>{var Te;return(ja==null?void 0:ja.name)===(Ha==null?void 0:Ha.name)&&((Te=ja==null?void 0:ja.url)==null?void 0:Te.includes(".mtl"))}))==null?void 0:Ka.map(ja=>ja==null?void 0:ja.url);ze.push({objUrl:Ha==null?void 0:Ha.url,mtlUrls:((Sl=we==null?void 0:we.filter(ja=>{var Te;return(ja==null?void 0:ja.name)===(Ha==null?void 0:Ha.name)&&((Te=ja==null?void 0:ja.url)==null?void 0:Te.includes(".mtl"))}))==null?void 0:Sl.length)===1?(ia=(Ee=we==null?void 0:we.filter(ja=>{var Te;return(ja==null?void 0:ja.name)===(Ha==null?void 0:Ha.name)&&((Te=ja==null?void 0:ja.url)==null?void 0:Te.includes(".mtl"))}))==null?void 0:Ee[0])==null?void 0:ia.url:la})}),_.setObjUrl(ze)}},De=(xe,H,Oe)=>{let Re="";const Ia=H==null?void 0:H.map(na=>{var za;return(za=na==null?void 0:na.value)==null?void 0:za.pageData});return Ia==null||Ia.forEach(na=>{var za;(na==null?void 0:na.name)===(xe==null?void 0:xe[0])&&((za=na==null?void 0:na.compData)==null||za.forEach(Ae=>{var Pe;(Ae==null?void 0:Ae.key)==="formContent"&&((Pe=Ae==null?void 0:Ae.contents)==null||Pe.forEach(je=>{var ze;(je==null?void 0:je.prop)===(xe==null?void 0:xe[1])&&(Re=(je==null?void 0:je.value)===""?le.judgeContents((ze=pl.safeClone(je))==null?void 0:ze.optionUrl,Oe):je==null?void 0:je.value)}))}))}),Re},wa=(xe,H,Oe,Re)=>{var Ae,Pe;let Ia="",na="";(Ae=pl.safeClone(H))==null||Ae.forEach((je,ze)=>{je!=null&&je.includes("[")?na=na+ua.value+xe[ze]:na=na===""?na+je:na+"/"+je});let za=(Pe=Re[na])==null?void 0:Pe.map(je=>{var ze;return(ze=je==null?void 0:je.value)==null?void 0:ze.pageData});return za==null||za.forEach(je=>{var ze;(je==null?void 0:je.name)===(Oe==null?void 0:Oe[0])&&((ze=je==null?void 0:je.compData)==null||ze.forEach(we=>{var tl;(we==null?void 0:we.key)==="formContent"&&((tl=we==null?void 0:we.contents)==null||tl.forEach(Dl=>{(Dl==null?void 0:Dl.prop)===(Oe==null?void 0:Oe[1])&&(Ia=Dl==null?void 0:Dl.value)}))}))}),Ia};e.watch(()=>oe==null?void 0:oe.value,async()=>{await de()},{immediate:!0});const Je=async xe=>await ef(xe,"Auto");return e.watch(()=>W.value,async()=>{var xe;(xe=f.value)!=null&&xe.some(H=>(H==null?void 0:H.functionName)&&(H==null?void 0:H.functionName)!=="")&&(f.value=await Je(f.value))},{immediate:!0,deep:!0}),e.watch(()=>r.itemData,async()=>{var Dl,Ml,jl,gl,er,el,$l,Wa,Kl,Yl,ar,_l,br,va,sl,pa,Ha,la,Ka,Sl,Ee,ia,ja,Te,La,al,xl,Nl;const xe=(Dl=r.itemData)==null?void 0:Dl.find(Le=>(Le==null?void 0:Le.key)==="formContent");let H=(Ml=r.itemData)==null?void 0:Ml.find(Le=>(Le==null?void 0:Le.key)==="backGround");H&&((jl=H==null?void 0:H.contents)==null?void 0:jl.length)>0&&(t.value=((er=(gl=H==null?void 0:H.contents)==null?void 0:gl[0])==null?void 0:er.url)??"");const Oe=(el=pl.safeClone(r.itemData))==null?void 0:el.find(Le=>(Le==null?void 0:Le.key)==="formButton"),Re=($l=pl.safeClone(r.itemData))==null?void 0:$l.find(Le=>(Le==null?void 0:Le.key)==="formFlex"),Ia=(Wa=pl.safeClone(r.itemData))==null?void 0:Wa.find(Le=>(Le==null?void 0:Le.key)==="formWrap"),na=(Kl=pl.safeClone(r.itemData))==null?void 0:Kl.find(Le=>(Le==null?void 0:Le.key)==="enableWrap"),za=(Yl=pl.safeClone(r.itemData))==null?void 0:Yl.find(Le=>(Le==null?void 0:Le.key)==="textSize"),Ae=(ar=pl.safeClone(r.itemData))==null?void 0:ar.find(Le=>(Le==null?void 0:Le.key)==="textRGBA"),Pe=(_l=pl.safeClone(r.itemData))==null?void 0:_l.find(Le=>(Le==null?void 0:Le.key)==="backGround"),je=(br=pl.safeClone(r.itemData))==null?void 0:br.find(Le=>(Le==null?void 0:Le.key)==="backGroundImage");(Ia==null?void 0:Ia.contents)==="纵向"?d.value=!1:d.value=!0;const ze=Number(za==null?void 0:za.contents);C.value=Number.isNaN(ze)?void 0:ze,R.value=Ae==null?void 0:Ae.contents,V.value=Pe==null?void 0:Pe.contents,ae.value=je==null?void 0:je.contents;const we=na==null?void 0:na.contents;if(we===void 0?b.value=fi.BLOCK:typeof we=="boolean"?b.value=we?fi.ORDINARY:fi.BLOCK:b.value=we,ee.value=typeof(Re==null?void 0:Re.contents)!="boolean"?!(!(Re!=null&&Re.contents)===""||((va=Re==null?void 0:Re.contents)==null?void 0:va.toUpperCase())==="VERTICAL"):Re==null?void 0:Re.contents,((sl=xe==null?void 0:xe.contents)==null?void 0:sl.length)>0&&Array.isArray(xe==null?void 0:xe.contents)){let Le=r.allMapContents;const ha=(Ha=(pa=pl.safeClone(xe))==null?void 0:pa.contents)==null?void 0:Ha.map((Be,Pl)=>{var rr,Qr,qr,ir,Cr,en,ql,or,kr,Lr,Il,an,tr;let Sa=(Be==null?void 0:Be.label)??(Be==null?void 0:Be.key)??"";Be==null||Be.type;let ul=(Be==null?void 0:Be.options)??[];if((rr=Be==null?void 0:Be.key)!=null&&rr.includes("$")&&(Sa=(Qr=pl.safeClone(Be==null?void 0:Be.key).split("$"))==null?void 0:Qr[0],((ir=(qr=pl.safeClone(Be==null?void 0:Be.key).split("$"))==null?void 0:qr[1])==null?void 0:ir.length)>0)){const[_r,Mr]=(en=(Cr=pl.safeClone(Be==null?void 0:Be.key).split("$"))==null?void 0:Cr[1])==null?void 0:en.split(/[()]/);(ql=le.FormType.find(Br=>(Br==null?void 0:Br.key)===_r))==null||ql.value,((or=Mr==null?void 0:Mr.split(","))==null?void 0:or.length)>0&&(ul=(kr=Mr==null?void 0:Mr.split(","))==null?void 0:kr.map(Br=>({label:Br,value:Br})))}let Za=Be==null?void 0:Be.options;((Lr=Be==null?void 0:Be.optionUrl)==null?void 0:Lr.selectRelateType)==="自定义绑定"&&(Za=(an=(Il=Be==null?void 0:Be.optionUrl)==null?void 0:Il.defaultSelect)==null?void 0:an.map(_r=>({label:_r,value:_r})));let bl=(Be==null?void 0:Be.menuPath)??[],Ra=(Be==null?void 0:Be.groups)??[],Rl=(Be==null?void 0:Be.columns)??[],Er=!1,kn=(Be==null?void 0:Be.isFormColHidden)??!1,Ur="",mr=Be!=null&&Be.value?Be.value:(Za==null?void 0:Za.length)>0?(tr=Za==null?void 0:Za[0])==null?void 0:tr.value:(Be==null?void 0:Be.value)??"",Xr=!1,on="Input";return((Za==null?void 0:Za.length)>0||(bl==null?void 0:bl.length)>0)&&(on="Select"),(Array.isArray(Ur)&&(Ur!=null&&Ur.every(_r=>(_r==null?void 0:_r.name)&&(_r==null?void 0:_r.url)))||Array.isArray(mr)&&(mr!=null&&mr.every(_r=>(_r==null?void 0:_r.name)&&(_r==null?void 0:_r.url))))&&(on="upload"),Be!=null&&Be.isMainUrl&&(on="Url"),{label:Sa??"",name:Sa??"t"+Pl,prop:Sa??pl.safeClone(Be==null?void 0:Be.key),type:(Be==null?void 0:Be.type)??on,value:(Be==null?void 0:Be.type)==="Date"&&mr===""?new Date:mr,id:(Be==null?void 0:Be.id)??Pl,contents:(Za==null?void 0:Za.length)>0?Za:ul??[],width:(Be==null?void 0:Be.width)??1,isLoginUser:Er,config:Be==null?void 0:Be.config,optionUrl:(Be==null?void 0:Be.optionUrl)??Be,isFormColHidden:kn,isHideInForm:(Be==null?void 0:Be.isHideInForm)??!1,signature:Xr,isMain:Be==null?void 0:Be.isMain,required:(Be==null?void 0:Be.required)??!1,isMainUrl:Be==null?void 0:Be.isMainUrl,operable:(Be==null?void 0:Be.operable)??!1,disabled:(Be==null?void 0:Be.disabled)??!1,isSync:Be==null?void 0:Be.isSync,menus:bl,groups:Ra,words:Rl,allSelectionContents:Be==null?void 0:Be.allContents,filterContent:Be==null?void 0:Be.filterContents,isNoClick:(Be==null?void 0:Be.isNoClick)??!1,functionName:Be==null?void 0:Be.functionName,functionRelatedWords:Be==null?void 0:Be.functionRelatedWords,calculatorFilter:Be==null?void 0:Be.calculatorFilter}}),ta=ha==null?void 0:ha.map(Be=>Be==null?void 0:Be.value);let ga="";ta==null||ta.forEach(Be=>{Be!==""&&Be!==void 0&&(ga=ga===""?Be:ga+"/"+Be)}),k.setSelectArray(ta),k.setSelectString(ga);let ma=(la=pl.safeClone(ha))==null?void 0:la.map(Be=>(Be!=null&&Be.value&&le.IsJson(Be==null?void 0:Be.value)&&Array.isArray(JSON.parse(Be==null?void 0:Be.value))&&(Be.value=JSON.parse(Be.value)),Be)),fl={};ma==null||ma.forEach(Be=>{fl[Be.label]=Be==null?void 0:Be.value}),ma=ma==null?void 0:ma.map(Be=>{var Pl,Sa,ul,Za,bl,Ra,Rl,Er,kn;if((Be==null?void 0:Be.type)==="Select"&&((Pl=Be==null?void 0:Be.allSelectionContents)==null?void 0:Pl.length)>0&&(Be.contactValue=fl),(ul=(Sa=Be==null?void 0:Be.optionUrl)==null?void 0:Sa.menuSelect)!=null&&ul.some(Ur=>Ur==null?void 0:Ur.includes("["))){let Ur="";Be.optionUrl.oldMenuSelect=(bl=(Za=pl.safeClone(Be))==null?void 0:Za.optionUrl)==null?void 0:bl.menuSelect,Be.optionUrl.menuSelect=(Rl=(Ra=Be==null?void 0:Be.optionUrl)==null?void 0:Ra.menuSelect)==null?void 0:Rl.map(mr=>{var Xr,on,Or,rr,Qr,qr;if(mr!=null&&mr.includes("[")){let ir=(on=(Xr=mr==null?void 0:mr.replaceAll("[","").replaceAll("]",""))==null?void 0:Xr.split(":"))==null?void 0:on[1];Ur=De((Or=mr==null?void 0:mr.replaceAll("[","").replaceAll("]",""))==null?void 0:Or.split(":"),Le==null?void 0:Le[Ea.value],Le),mr=((Qr=(rr=pl.safeClone(ma))==null?void 0:rr.find(Cr=>(Cr==null?void 0:Cr.label)===ir))==null?void 0:Qr.value)||De((qr=mr==null?void 0:mr.replaceAll("[","").replaceAll("]",""))==null?void 0:qr.split(":"),Le==null?void 0:Le[Ea.value],Le)}return mr}),Ur!==""&&Be.value===""&&(Be.value=wa(Be.optionUrl.menuSelect,Be.optionUrl.oldMenuSelect,(Er=Be==null?void 0:Be.optionUrl)==null?void 0:Er.groupSelect,Le),Array.isArray(Be.value)&&((kn=Be.value)!=null&&kn.every(mr=>mr==null?void 0:mr.url))&&(Be.type="UPLOAD"))}return Be}),f.value=ma,Ve.value=((Ka=f.value)==null?void 0:Ka.every(Be=>Be==null?void 0:Be.disabled))||B.value===Ea.value,Ie.value=(Sl=f.value)==null?void 0:Sl.every(Be=>Be==null?void 0:Be.operable),fe.value=(Ee=f.value)==null?void 0:Ee.map(Be=>Be==null?void 0:Be.label);let Fe=[],ml=[];if((ia=pl.safeClone(f.value))==null||ia.forEach(Be=>{var Pl;Array.isArray(Be==null?void 0:Be.value)&&((Pl=Be==null?void 0:Be.value)!=null&&Pl.find(Sa=>{var ul;return(ul=Sa==null?void 0:Sa.url)==null?void 0:ul.includes(".obj")}))&&(ml=Be==null?void 0:Be.value)}),(ml==null?void 0:ml.length)>0){const Be=(ja=pl.safeClone(ml))==null?void 0:ja.filter(Pl=>{var Sa;return(Sa=Pl==null?void 0:Pl.url)==null?void 0:Sa.includes(".obj")});Be==null||Be.forEach(Pl=>{var ul,Za,bl,Ra;const Sa=(ul=ml==null?void 0:ml.filter(Rl=>{var Er;return(Rl==null?void 0:Rl.name)===(Pl==null?void 0:Pl.name)&&((Er=Rl==null?void 0:Rl.url)==null?void 0:Er.includes(".mtl"))}))==null?void 0:ul.map(Rl=>Rl==null?void 0:Rl.url);Fe.push({objUrl:Pl==null?void 0:Pl.url,mtlUrls:((Za=ml==null?void 0:ml.filter(Rl=>{var Er;return(Rl==null?void 0:Rl.name)===(Pl==null?void 0:Pl.name)&&((Er=Rl==null?void 0:Rl.url)==null?void 0:Er.includes(".mtl"))}))==null?void 0:Za.length)===1?(Ra=(bl=ml==null?void 0:ml.filter(Rl=>{var Er;return(Rl==null?void 0:Rl.name)===(Pl==null?void 0:Pl.name)&&((Er=Rl==null?void 0:Rl.url)==null?void 0:Er.includes(".mtl"))}))==null?void 0:bl[0])==null?void 0:Ra.url:Sa})}),_.setObjUrl(Fe)}(Te=pl.safeClone(f.value))==null||Te.forEach(Be=>{var Pl,Sa,ul,Za,bl,Ra,Rl,Er,kn,Ur,mr,Xr,on;if((Sa=(Pl=Be==null?void 0:Be.value)==null?void 0:Pl.toString())!=null&&Sa.includes(".stl")||(Za=(ul=Be==null?void 0:Be.value)==null?void 0:ul.toString())!=null&&Za.includes(".STL")||(Ra=(bl=Be==null?void 0:Be.value)==null?void 0:bl.toString())!=null&&Ra.includes(".obj")||(Er=(Rl=Be==null?void 0:Be.value)==null?void 0:Rl.toString())!=null&&Er.includes(".mtl")||(Ur=(kn=Be==null?void 0:Be.value)==null?void 0:kn.toString())!=null&&Ur.includes(".urdf")){let Or={},rr=[],Qr;Array.isArray(Be==null?void 0:Be.value)?Qr=Be==null?void 0:Be.value:Qr=(mr=Be==null?void 0:Be.value)==null?void 0:mr.split(","),Qr==null||Qr.forEach(qr=>{qr.includes(".mtl")?rr.push(qr):Or.blob=Or.blob==="undefined"?qr:Or.blob+","+qr}),(rr==null?void 0:rr.length)>0&&(Or.mtlBlobs=rr),(on=(Xr=Object.values(Or))==null?void 0:Xr[0])!=null&&on.includes("http:")}})}else f.value=[];let tl=re.value;if((tl==null?void 0:tl.length)>0&&(tl=tl==null?void 0:tl.map(Le=>{var ta,ga,ma,fl;let ha=(ta=Le==null?void 0:Le.key)==null?void 0:ta.split("/");return(r==null?void 0:r.compName)===(ha==null?void 0:ha[0])&&(ga=f.value)!=null&&ga.find(Fe=>(Fe==null?void 0:Fe.prop)===(ha==null?void 0:ha[1]))&&(Le.value=(fl=(ma=f.value)==null?void 0:ma.find(Fe=>(Fe==null?void 0:Fe.prop)===(ha==null?void 0:ha[1])))==null?void 0:fl.value),Le}),X.setTableViewContents(tl)),r!=null&&r.formRules)x.value=r==null?void 0:r.formRules;else{let Le={};(La=pl.safeClone(f).value)==null||La.forEach(ha=>{((ha==null?void 0:ha.isMain)===!0||(ha==null?void 0:ha.required)===!0)&&(Le[(ha==null?void 0:ha.prop)??(ha==null?void 0:ha.name)]=[{required:!0,message:`${(ha==null?void 0:ha.label)||(ha==null?void 0:ha.prop)||(ha==null?void 0:ha.name)}不能为空`}])}),x.value=Le}if(((al=Oe==null?void 0:Oe.contents)==null?void 0:al.length)>0){const Le=[];(xl=Oe==null?void 0:Oe.contents)==null||xl.forEach((ha,ta)=>{(ha==null?void 0:ha.label)!==""&&Le.push({label:(ha==null?void 0:ha.label)??"",id:(ha==null?void 0:ha.id)??ta,type:(ha==null?void 0:ha.type)??"",background:ha==null?void 0:ha.background})}),z.value=Le}else z.value=[];(Nl=f.value)!=null&&Nl.some(Le=>(Le==null?void 0:Le.functionName)&&(Le==null?void 0:Le.functionName)!=="")&&(f.value=await Je(f.value))},{deep:!0,immediate:!0}),e.watch(()=>B.value,xe=>{Ve.value=xe===Ea.value},{immediate:!0}),(xe,H)=>{var Ae;const Oe=e.resolveComponent("svg-icon"),Re=e.resolveComponent("el-switch"),Ia=e.resolveComponent("el-checkbox"),na=e.resolveComponent("el-popover"),za=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",fh,[b.value===e.unref(fi).TEXT?(e.openBlock(),e.createBlock(Uc,{key:0,itemData:a.itemData,compName:a.compName,fields:f.value,textSize:C.value,textColor:R.value,backGround:V.value,backGroundImage:ae.value,disabled:Ve.value||Me(),"onUpdate:backGroundImage":Ce,backgroundUrl:t.value},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled","backgroundUrl"])):b.value===e.unref(fi).BLOCK?(e.openBlock(),e.createBlock(qf,{key:1,items:(Ae=f.value)==null?void 0:Ae.map(Pe=>({label:Pe!=null&&Pe.isHideInForm?"":Pe==null?void 0:Pe.label,value:Pe==null?void 0:Pe.value,width:(Pe==null?void 0:Pe.width)??1,field:Pe})),textSize:C.value,textColor:R.value,backGround:V.value,backGroundImage:ae.value,disabled:Ve.value||Me(),"onUpdate:backGroundImage":Ce,backgroundUrl:t.value},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled","backgroundUrl"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":b.value===e.unref(fi).ORDINARY})},[e.createVNode(pl.ssForm,{rowContents:f.value,formRules:x.value,buttonValue:z.value,isRowFlex:!1,isEnableWrap:!0,textSize:C.value,textColor:R.value,backGround:V.value,backGroundImage:ae.value,onOnButtonClick:oa,onChange:Aa,formDisabled:Ve.value||Me(),formLabelsOperable:Ie.value,isButtonRow:d.value,onPreview:Pa,onBlurChange:Na,style:e.normalizeStyle({backGroundImage:t.value!==""?`url("${t.value}")`:void 0}),onHandleColEditChange:ca,onHandleColTypeChange:Ue,onRouteUrl:pe,onClickTrigger:Q,"onUpdate:backGroundImage":Ce},{operateCol:e.withCtx(({renderColumns:Pe,formDisabled:je,formLabelsOperable:ze})=>[e.createVNode(na,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:q},{reference:e.withCtx(()=>[e.createElementVNode("span",hh,[e.createVNode(Oe,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",vh,[H[1]||(H[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(Re,{"model-value":je,"active-text":"禁用","inactive-text":"",onChange:ka,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(Re,{"model-value":ze,"active-text":"编辑所有标签","inactive-text":"",onChange:Ba},null,8,["model-value"]),H[2]||(H[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(za,{modelValue:fe.value,"onUpdate:modelValue":H[0]||(H[0]=we=>fe.value=we),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:ke,onChange:F},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Pe,we=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:we.label},[e.createVNode(Ia,{value:we.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(we.label),1)]),_:2},1032,["value"]),e.createVNode(na,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(Oe,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var tl;return[e.createElementVNode("div",mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((tl=Object.keys(we))==null?void 0:tl.filter(Dl=>{var Ml;return(Ml=Ke.value)==null?void 0:Ml.find(jl=>(jl==null?void 0:jl.value)===Dl)}),Dl=>{var Ml,jl;return e.openBlock(),e.createElementBlock("div",{key:Dl},[e.createVNode(pl._sfc_main$1,{value:we==null?void 0:we[Dl],"active-text":(jl=(Ml=Ke.value)==null?void 0:Ml.find(gl=>(gl==null?void 0:gl.value)===Dl))==null?void 0:jl.label,inactiveText:"",onChange:gl=>xa(gl,Dl,we)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",yh,[e.createVNode(Oe,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow","style"])],2)),A.value?(e.openBlock(),e.createBlock(pl.ssFilePreview,{key:3,fileDataList:$.value,onDestroy:Ca},null,8,["fileDataList"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createBlock(Ir.ssDialog,{key:4,visible:c.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(Co.ThreeViewerHost,{files:m.value,onGetAnimationData:xe.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},As=nr._export_sfc(gh,[["__scopeId","data-v-4eb80a57"]]),bh={class:"table-header-child"},kh={class:"table-header-child-main"},xh={class:"table-header-child-content"},wh={class:"table-header-child-content-item"},_h={class:"fix-button"},Sh={key:0},Eh={class:"form-content"},Ch={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(!1),t=e.ref(""),f=le.useTableComp(M.pinia),{tableIndex:c}=M.storeToRefs(f);e.ref(0);const u=e.ref(""),m=e.ref([]),y=e.ref([]),x=S=>{var _;i.value=!0;let k=[];gr==null||gr.forEach(b=>{let C=M.cloneDeep(c.value)+1;f.setTableIndex(C),k.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:S[b.key],id:c.value,contents:b==null?void 0:b.options})}),S!=null&&S.children&&((_=S==null?void 0:S.children)==null?void 0:_.length)>0&&k.push({children:S==null?void 0:S.children,isFormColHidden:!0}),u.value=S==null?void 0:S.id,m.value=k,y.value=k},d=S=>{r("fixChange",M.cloneDeep(S))},A=S=>{r("deleteChange",M.cloneDeep(S))},w=S=>{i.value=!0;let k=[];gr==null||gr.forEach(_=>{let b=M.cloneDeep(c.value)+1;f.setTableIndex(b),k.push({label:_==null?void 0:_.label,name:_==null?void 0:_.label,type:_.type,value:"",id:c.value,contents:_==null?void 0:_.options})}),t.value=S==null?void 0:S.id,m.value=k,y.value=k},Y=S=>{let k=M.cloneDeep(y.value);k=k==null?void 0:k.map(_=>(_.children||(_.value=S==null?void 0:S[_.name]),_)),y.value=k},z=()=>{var k,_;m.value=y.value;let S={};if(u.value!=="")S.id=u.value,(k=m.value)==null||k.forEach(b=>{const C=gr==null?void 0:gr.find(R=>(R==null?void 0:R.label)===(b==null?void 0:b.label));C?S[C.key]=b.value:b!=null&&b.children&&b.children.length>0&&(S.children=b.children)}),i.value=!1,r("fixChange",{contents:M.cloneDeep(S),id:t.value,type:"fix"});else{let b=M.cloneDeep(c.value)+1;f.setTableIndex(b),S.id="id"+c.value,(_=m.value)==null||_.forEach(C=>{const R=gr==null?void 0:gr.find(V=>(V==null?void 0:V.label)===(C==null?void 0:C.label));R?S[R.key]=C.value:C!=null&&C.children&&C.children.length>0&&(S.children=C.children)}),i.value=!1,r("fixChange",{contents:M.cloneDeep(S),id:t.value,type:"add"})}u.value="",m.value=[],y.value=[]},$=()=>{i.value=!1,u.value="",t.value="",m.value=[],y.value=[]},O=S=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",S),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(S,k)=>{const _=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(b,C)=>(e.openBlock(),e.createElementBlock("div",kh,[e.createElementVNode("div",xh,[e.createElementVNode("div",wh,e.toDisplayString(b.label),1),e.createElementVNode("div",_h,[e.createVNode(_,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:R=>w(b)},null,8,["onClick"]),e.createVNode(_,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:R=>x(b)},null,8,["onClick"]),e.createVNode(_,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:R=>O(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",Sh,[e.createVNode(qc,{tableChildContents:b==null?void 0:b.children,onDeleteChange:A,onFixChange:d},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Ir.ssDialog,{visible:i.value,onBeforeDestroy:$,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Eh,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:Y},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:$,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:z},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Dh=nr._export_sfc(Ch,[["__scopeId","data-v-e0fef72d"]]),Th={class:"table-header-child"},Bh={class:"table-header-child-main"},Nh={class:"table-header-child-content"},Ah={class:"table-header-child-content-item"},zh={class:"fix-button"},Mh={key:0},Ih={class:"form-content"},Oh={class:"dialog-footer"},Lh={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(!1),t=e.ref(""),f=le.useTableComp(M.pinia),{tableIndex:c}=M.storeToRefs(f),u=e.ref(""),m=e.ref([]),y=e.ref([]),x=S=>{r("fixChange",M.cloneDeep(S))},d=S=>{var _;i.value=!0;let k=[];gr==null||gr.forEach(b=>{let C=M.cloneDeep(c.value)+1;f.setTableIndex(C),k.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:S[b.key],id:c.value,contents:b==null?void 0:b.options})}),S!=null&&S.children&&((_=S==null?void 0:S.children)==null?void 0:_.length)>0&&k.push({children:S==null?void 0:S.children,isFormColHidden:!0}),u.value=S==null?void 0:S.id,m.value=k,y.value=k},A=S=>{i.value=!0;let k=[];gr==null||gr.forEach(_=>{let b=M.cloneDeep(c.value)+1;f.setTableIndex(b),k.push({label:_==null?void 0:_.label,name:_==null?void 0:_.label,type:_.type,value:"",id:c.value,contents:_==null?void 0:_.options})}),t.value=S==null?void 0:S.id,m.value=k,y.value=k},w=S=>{let k=M.cloneDeep(y.value);k=k==null?void 0:k.map(_=>(_.children||(_.value=S==null?void 0:S[_.name]),_)),y.value=k},Y=()=>{var k,_;m.value=y.value;let S={};if(u.value!=="")S.id=u.value,(k=m.value)==null||k.forEach(b=>{const C=gr==null?void 0:gr.find(R=>(R==null?void 0:R.label)===(b==null?void 0:b.label));C?S[C.key]=b.value:b!=null&&b.children&&b.children.length>0&&(S.children=b.children)}),i.value=!1,r("fixChange",{contents:M.cloneDeep(S),id:t.value,type:"fix"});else{let b=M.cloneDeep(c.value)+1;f.setTableIndex(b),S.id="idChild"+c.value,(_=m.value)==null||_.forEach(C=>{const R=gr==null?void 0:gr.find(V=>(V==null?void 0:V.label)===(C==null?void 0:C.label));R?S[R.key]=C.value:C!=null&&C.children&&C.children.length>0&&(S.children=C.children)}),i.value=!1,r("fixChange",{contents:M.cloneDeep(S),id:t.value,type:"add"})}u.value="",m.value=[],y.value=[]},z=()=>{i.value=!1,u.value="",t.value="",m.value=[],y.value=[]},$=S=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",S),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},O=S=>{r("deleteChange",S)};return(S,k)=>{const _=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Th,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(C,R)=>(e.openBlock(),e.createElementBlock("div",Bh,[e.createElementVNode("div",Nh,[e.createElementVNode("div",Ah,e.toDisplayString(C.label),1),e.createElementVNode("div",zh,[e.createVNode(_,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>A(C)},null,8,["onClick"]),e.createVNode(_,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>d(C)},null,8,["onClick"]),e.createVNode(_,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>$(C)},null,8,["onClick"])])]),C!=null&&C.children&&C.children.length>0?(e.openBlock(),e.createElementBlock("div",Mh,[e.createVNode(Dh,{tableChildContents:C==null?void 0:C.children,onDeleteChange:O,onFixChange:x},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Ir.ssDialog,{visible:i.value,onBeforeDestroy:z,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ih,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Oh,[e.createVNode(b,{onClick:z,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>k[0]||(k[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:Y,id:"themeButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},qc=nr._export_sfc(Lh,[["__scopeId","data-v-ebd68fa1"]]),Rh={class:"table-operate-content"},$h={class:"table-operate-item"},Vh={class:"operate-title"},Fh={class:"operate-content"},Ph={class:"fix-content"},jh={class:"fix-content-label"},Hh={class:"fix-button"},Uh={key:0},qh={class:"operate-title"},Wh={class:"operate-content"},Kh={class:"fix-content"},Gh={class:"fix-content-label"},Yh={class:"fix-button"},Jh={class:"operate-title"},Xh={class:"operate-content"},Zh={class:"fix-content"},Qh={class:"fix-content-label"},e6={class:"fix-button"},a6={class:"operate-title"},l6={class:"operate-content"},r6={class:"fix-content"},n6={class:"fix-content-label"},i6={class:"fix-button"},o6={class:"operate-content"},t6={style:{display:"flex","justify-content":"space-between"}},s6={class:"form-content"},c6={class:"dialog-footer"},u6={class:"form-content"},d6={class:"dialog-footer"},p6={class:"form-content"},f6={class:"dialog-footer"},h6={class:"form-content"},v6={class:"dialog-footer"},m6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]),t=e.ref(!1),f=e.ref(!1),c=e.ref([]),u=e.ref(!1),m=e.ref([]),y=e.ref(!1),x=e.ref([]),d=e.ref(""),A=e.ref(""),w=e.ref([]),Y=e.ref([]),z=e.ref([]),$=e.ref([]),O=e.ref(!1),S=e.ref([]),k=e.ref([]),_=e.ref(0),b=e.ref([]),C=e.ref([]),R=e.ref([]),V=()=>{O.value=!0;let q=[];Un==null||Un.forEach(F=>{_.value++,q.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:(F==null?void 0:F.key)==="background"?"var(--ssComponent-primary-color)":"",id:_.value,contents:F==null?void 0:F.options})}),S.value=q,k.value=q},ae=()=>{var F,Q,pe;f.value=!0;let q=[];(pe=(Q=(F=le.FormContent)==null?void 0:F.find(ve=>(ve==null?void 0:ve.key)==="Input"))==null?void 0:Q.value)==null||pe.forEach(ve=>{_.value++,q.push({label:ve==null?void 0:ve.label,name:(ve==null?void 0:ve.name)||(ve==null?void 0:ve.label),type:ve.type,value:(ve==null?void 0:ve.label)==="类型"?"Input":"",id:_.value,contents:ve==null?void 0:ve.options})}),b.value=q,C.value=q},ee=q=>{q||(b.value=C.value)},_e=async q=>{var F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca;if((q==null?void 0:q.类型)!==((Q=(F=C.value)==null?void 0:F.find(oa=>(oa==null?void 0:oa.label)==="类型"))==null?void 0:Q.value)){let oa=[],Aa=await((da=(ve=(pe=le.FormContent)==null?void 0:pe.find(De=>(De==null?void 0:De.key)===((q==null?void 0:q.类型)===""?"Input":q==null?void 0:q.类型)))==null?void 0:ve.value)==null?void 0:da.value)?await((Ce=(Na=(xa=le.FormContent)==null?void 0:xa.find(De=>(De==null?void 0:De.key)===((q==null?void 0:q.类型)===""?"Input":q==null?void 0:q.类型)))==null?void 0:Na.value)==null?void 0:Ce.value):(Ue=(ca=le.FormContent)==null?void 0:ca.find(De=>(De==null?void 0:De.key)===((q==null?void 0:q.类型)===""?"Input":q==null?void 0:q.类型)))==null?void 0:Ue.value;if(Aa==null||Aa.forEach(De=>{_.value++,oa.push({label:De==null?void 0:De.label,name:(De==null?void 0:De.name)||(De==null?void 0:De.label),type:De.type,value:De!=null&&De.属性名?(q==null?void 0:q.prop)||(q==null?void 0:q.name)||(q==null?void 0:q.label):(q==null?void 0:q[De.label])??"",id:_.value,contents:De==null?void 0:De.options,prop:(De==null?void 0:De.prop)||(De==null?void 0:De.name)||(De==null?void 0:De.label)})}),q!=null&&q.菜单选项&&((Pa=q==null?void 0:q.菜单选项)==null?void 0:Pa.length)>0){const De=await le.menuToContentType(q==null?void 0:q.菜单选项);oa=oa==null?void 0:oa.map(wa=>((wa==null?void 0:wa.name)==="组信息选项"&&(wa.contents=De),wa))}C.value=await le.selectToBase(M.cloneDeep(oa)),b.value=await le.selectToBase(M.cloneDeep(oa))}else{let oa=M.cloneDeep(b.value);if(oa=oa==null?void 0:oa.map(Aa=>(Aa.value=q==null?void 0:q[Aa.name],Aa)),q!=null&&q.菜单选项&&((Ca=q==null?void 0:q.菜单选项)==null?void 0:Ca.length)>0){const Aa=await le.menuToContentType(q==null?void 0:q.菜单选项);oa=oa==null?void 0:oa.map(De=>((De==null?void 0:De.name)==="组信息选项"&&(De.contents=Aa),De))}oa=le.formToOptionsContents(oa),C.value=await le.selectToBase(M.cloneDeep(oa))}},ue=async q=>{await _e(q),b.value=C.value},U=(q,F)=>{if((F==null?void 0:F.type)=="Select"&&(q==null?void 0:q.key)==="selectRelateType"){const Q=F==null?void 0:F.optionUrl;return(Q==null?void 0:Q.selectRelateType)||F[q.key]}if((F==null?void 0:F.type)=="Select"&&(q==null?void 0:q.key)==="menuSelect"){const Q=F==null?void 0:F.optionUrl;return(Q==null?void 0:Q.menuSelect)||F[q.key]}if((F==null?void 0:F.type)=="Select"&&(q==null?void 0:q.key)==="groupSelect"){const Q=F==null?void 0:F.optionUrl;return(Q==null?void 0:Q.groupSelect)||F[q.key]}if((F==null?void 0:F.type)=="Select"&&(q==null?void 0:q.key)==="originalContent")return(F==null?void 0:F.value)||F[q.key];if((F==null?void 0:F.type)=="Select"&&(q==null?void 0:q.key)==="multiple"){const Q=F[q.key];return tc(Q)?Q:q.default}return(q==null?void 0:q.label)==="类型"&&F[q.key]===""?"Input":(q==null?void 0:q.key)==="isFormColHidden"&&!F[q.key]?!1:F[q.key]},P=async q=>{var pe,ve,da,ca,Ue,xa,Na,Ce,Pa;f.value=!0;let F=[];const Q=await((da=(ve=(pe=le.FormContent)==null?void 0:pe.find(Ca=>(Ca==null?void 0:Ca.key)===((q==null?void 0:q.type)===""?"Input":q==null?void 0:q.type)))==null?void 0:ve.value)==null?void 0:da.value)?await((Ce=(Na=(xa=le.FormContent)==null?void 0:xa.find(Ca=>(Ca==null?void 0:Ca.key)===((q==null?void 0:q.type)===""?"Input":q==null?void 0:q.type)))==null?void 0:Na.value)==null?void 0:Ce.value):(Ue=(ca=le.FormContent)==null?void 0:ca.find(Ca=>(Ca==null?void 0:Ca.key)===((q==null?void 0:q.type)===""?"Input":q==null?void 0:q.type)))==null?void 0:Ue.value;if(Q==null||Q.forEach(Ca=>{_.value++,F.push({label:Ca==null?void 0:Ca.label,name:(Ca==null?void 0:Ca.name)||(Ca==null?void 0:Ca.label),type:Ca.type,value:(Ca==null?void 0:Ca.label)==="属性名"?(q==null?void 0:q.prop)||(q==null?void 0:q.name)||(q==null?void 0:q.label):U(Ca,q),id:_.value,contents:Ca==null?void 0:Ca.options})}),q!=null&&q.menuSelect&&((Pa=q==null?void 0:q.menuSelect)==null?void 0:Pa.length)>0){const Ca=await le.menuToContentType(q==null?void 0:q.menuSelect);F=F==null?void 0:F.map(oa=>((oa==null?void 0:oa.name)==="组信息选项"&&(oa.contents=Ca),oa))}d.value=q==null?void 0:q.id,b.value=await le.selectToBase(le.formToOptionsContents(F)),C.value=await le.selectToBase(le.formToOptionsContents(F))},X=q=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,Q;R.value=(F=M.cloneDeep(R.value))==null?void 0:F.filter(pe=>(pe==null?void 0:pe.id)!==(q==null?void 0:q.id)),r("change",(Q=M.cloneDeep(n.originalItemContents))==null?void 0:Q.map(pe=>((pe==null?void 0:pe.key)==="tableToForm"&&(pe.contents=R.value),pe))),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},re=()=>{f.value=!1,b.value=[],d.value=""},he=async()=>{var pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca;b.value=C.value;let q={};d.value!==""?q.id=d.value:(_.value++,q.id="id"+_.value);let F=await((da=(ve=(pe=le.FormContent)==null?void 0:pe.find(oa=>{var Aa,De;return(oa==null?void 0:oa.key)===(((De=(Aa=b.value)==null?void 0:Aa.find(wa=>(wa==null?void 0:wa.label)==="类型"))==null?void 0:De.value)??"label")}))==null?void 0:ve.value)==null?void 0:da.value)??((Ue=(ca=le.FormContent)==null?void 0:ca.find(oa=>{var Aa,De;return(oa==null?void 0:oa.key)===(((De=(Aa=b.value)==null?void 0:Aa.find(wa=>(wa==null?void 0:wa.label)==="类型"))==null?void 0:De.value)??"label")}))==null?void 0:Ue.value);if((xa=b.value)==null||xa.forEach(oa=>{const Aa=F==null?void 0:F.find(De=>(De==null?void 0:De.label)===(oa==null?void 0:oa.label));Aa&&(q[Aa.key]=oa.value)}),q.name=q.label,(Na=R.value)!=null&&Na.find(oa=>oa.id===q.id))R.value=(Ce=R.value)==null?void 0:Ce.map(oa=>(oa.id===q.id&&(oa=q),oa));else{let oa=M.cloneDeep(R.value);R.value||(R.value=[]),oa.push(q),R.value=oa}R.value=R.value.map(({id:oa,...Aa})=>Aa),f.value=!1,d.value="";let Q=M.cloneDeep(n.originalItemContents);(Pa=M.cloneDeep(n.originalItemContents))!=null&&Pa.find(oa=>(oa==null?void 0:oa.key)==="tableToForm")?Q=(Ca=M.cloneDeep(n.originalItemContents))==null?void 0:Ca.map(oa=>((oa==null?void 0:oa.key)==="tableToForm"&&(oa.contents=R.value),oa)):Q.push({key:"tableToForm",contents:R.value}),r("change",Q)},$e=q=>{O.value=!0;let F=[];Un==null||Un.forEach(Q=>{_.value++,F.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:q[Q.key],id:_.value,contents:Q==null?void 0:Q.options})}),d.value=q==null?void 0:q.id,S.value=F,k.value=F};e.watch(()=>y.value,()=>{var F,Q;let q=M.cloneDeep(n.originalItemContents);(F=M.cloneDeep(n.originalItemContents))!=null&&F.find(pe=>(pe==null?void 0:pe.key)==="page")?q=(Q=M.cloneDeep(n.originalItemContents))==null?void 0:Q.map(pe=>((pe==null?void 0:pe.key)==="page"&&(pe.contents=y.value),pe)):q.push({key:"page",contents:y.value}),r("change",q)},{deep:!0});const se=q=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,Q;Y.value=(F=M.cloneDeep(Y.value))==null?void 0:F.filter(pe=>(pe==null?void 0:pe.id)!==(q==null?void 0:q.id)),r("change",(Q=M.cloneDeep(n.originalItemContents))==null?void 0:Q.map(pe=>((pe==null?void 0:pe.key)==="extraButton"&&(pe.contents=Y.value),pe))),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},B=()=>{var Q,pe,ve,da,ca;S.value=k.value;let q={};if(d.value!==""?q.id=d.value:(_.value++,q.id="id"+_.value),(Q=S.value)==null||Q.forEach(Ue=>{const xa=Un==null?void 0:Un.find(Na=>(Na==null?void 0:Na.label)===(Ue==null?void 0:Ue.label));xa?q[xa.key]=Ue.value:Ue!=null&&Ue.children&&Ue.children.length>0&&(q.children=Ue.children)}),(pe=Y.value)!=null&&pe.find(Ue=>Ue.id===q.id))Y.value=(ve=Y.value)==null?void 0:ve.map(Ue=>(Ue.id===q.id&&(Ue=q),Ue));else{let Ue=M.cloneDeep(Y.value)??[];Ue.push(q),Y.value=Ue}O.value=!1,d.value="";let F=M.cloneDeep(n.originalItemContents);(da=M.cloneDeep(n.originalItemContents))!=null&&da.find(Ue=>(Ue==null?void 0:Ue.key)==="extraButton")?F=(ca=M.cloneDeep(n.originalItemContents))==null?void 0:ca.map(Ue=>((Ue==null?void 0:Ue.key)==="extraButton"&&(Ue.contents=Y.value),Ue)):F.push({key:"extraButton",contents:Y.value}),r("change",F)},oe=q=>{let F=M.cloneDeep(k.value);F=F==null?void 0:F.map(Q=>(Q.children||(Q.value=q==null?void 0:q[Q.name]),Q)),k.value=F},W=()=>{O.value=!1,S.value=[],d.value=""},ke=q=>{u.value=!0;let F=[];qn==null||qn.forEach(Q=>{_.value++,F.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:q[Q.key],id:_.value,contents:Q==null?void 0:Q.options})}),d.value=q==null?void 0:q.id,z.value=F,$.value=F},Ie=q=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,Q;w.value=(F=M.cloneDeep(w.value))==null?void 0:F.filter(pe=>(pe==null?void 0:pe.id)!==(q==null?void 0:q.id)),r("change",(Q=M.cloneDeep(n.originalItemContents))==null?void 0:Q.map(pe=>((pe==null?void 0:pe.key)==="rowButton"&&(pe.contents=w.value),pe))),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Ve=()=>{t.value=!0;let q=[];gr==null||gr.forEach(F=>{_.value++,q.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:_.value,contents:F==null?void 0:F.options})}),m.value=q,x.value=q},Qe=()=>{u.value=!0;let q=[];qn==null||qn.forEach(F=>{_.value++,q.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:_.value,contents:F==null?void 0:F.options})}),z.value=q,$.value=q},Ea=q=>{let F=M.cloneDeep($.value);F=F==null?void 0:F.map(Q=>(Q.children||(Q.value=q==null?void 0:q[Q.name]),Q)),$.value=F},ie=()=>{var Q,pe,ve,da,ca;z.value=$.value;let q={};if(d.value!==""?q.id=d.value:(_.value++,q.id="id"+_.value),(Q=z.value)==null||Q.forEach(Ue=>{const xa=qn==null?void 0:qn.find(Na=>(Na==null?void 0:Na.label)===(Ue==null?void 0:Ue.label));xa?q[xa.key]=Ue.value:Ue!=null&&Ue.children&&Ue.children.length>0&&(q.children=Ue.children)}),(pe=w.value)!=null&&pe.find(Ue=>Ue.id===q.id))w.value=(ve=w.value)==null?void 0:ve.map(Ue=>(Ue.id===q.id&&(Ue=q),Ue));else{let Ue=M.cloneDeep(w.value);Ue.push(q),w.value=Ue}u.value=!1,d.value="";let F=M.cloneDeep(n.originalItemContents);(da=M.cloneDeep(n.originalItemContents))!=null&&da.find(Ue=>(Ue==null?void 0:Ue.key)==="rowButton")?F=(ca=M.cloneDeep(n.originalItemContents))==null?void 0:ca.map(Ue=>((Ue==null?void 0:Ue.key)==="rowButton"&&(Ue.contents=w.value),Ue)):F.push({key:"rowButton",contents:w.value}),r("change",F)},ua=()=>{u.value=!1,d.value="",$.value=[],z.value=[]},ce=q=>{t.value=!0;let F=[];gr==null||gr.forEach(Q=>{_.value++,F.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:"",id:_.value,contents:Q==null?void 0:Q.options})}),m.value=F,A.value=q==null?void 0:q.id,x.value=F},ea=q=>{var F;c.value=Vc(M.cloneDeep(c.value),q==null?void 0:q.id),r("change",(F=M.cloneDeep(n.originalItemContents))==null?void 0:F.map(Q=>{var pe;return(Q==null?void 0:Q.key)==="header"&&(Q.contents=(pe=c.value)!=null&&pe.some(ve=>ve==null?void 0:ve.children)?[c.value]:c.value),Q}))},Me=q=>{var Q,pe,ve;q.type==="fix"?q.id!==""?c.value=Pc(c.value,q):c.value=Fc(c.value,q==null?void 0:q.contents):c.value=jc(c.value,q),c.value=(Q=c.value)!=null&&Q.some(da=>da==null?void 0:da.children)?[c.value]:c.value,d.value="";let F=M.cloneDeep(n.originalItemContents);(pe=M.cloneDeep(n.originalItemContents))!=null&&pe.find(da=>(da==null?void 0:da.key)==="header")?F=(ve=M.cloneDeep(n.originalItemContents))==null?void 0:ve.map(da=>((da==null?void 0:da.key)==="header"&&(da.contents=c.value),da)):F.push({key:"header",contents:c.value}),r("change",F)},de=q=>{var Q;t.value=!0;let F=[];gr==null||gr.forEach(pe=>{_.value++,F.push({label:pe==null?void 0:pe.label,name:pe==null?void 0:pe.label,type:pe.type,value:q[pe.key],id:_.value,contents:pe==null?void 0:pe.options})}),q!=null&&q.children&&((Q=q==null?void 0:q.children)==null?void 0:Q.length)>0&&F.push({children:q==null?void 0:q.children,isFormColHidden:!0}),d.value=q==null?void 0:q.id,A.value="",m.value=F,x.value=F},fe=q=>{let F=M.cloneDeep(x.value);F=F==null?void 0:F.map(Q=>(Q.children||(Q.value=q==null?void 0:q[Q.name]),Q)),x.value=F},Ke=()=>{t.value=!1,d.value="",A.value="",x.value=[]},ka=()=>{var Q,pe,ve,da,ca,Ue;m.value=x.value;let q={};if(d.value!==""?q.id=d.value:(_.value++,q.id="id"+_.value),(Q=m.value)==null||Q.forEach(xa=>{const Na=gr==null?void 0:gr.find(Ce=>(Ce==null?void 0:Ce.label)===(xa==null?void 0:xa.label));Na?q[Na.key]=xa.value:xa!=null&&xa.children&&xa.children.length>0&&(q.children=xa.children)}),(pe=c.value)!=null&&pe.find(xa=>xa.id===q.id))c.value=(ve=c.value)==null?void 0:ve.map(xa=>(xa.id===q.id&&(xa=q),xa));else{let xa=M.cloneDeep(c.value)??[];A.value===""?xa.push(q):xa=xa==null?void 0:xa.map(Na=>(Na.id===A.value&&(Na.children||(Na.children=[]),Na.children.push(q)),Na)),c.value=xa}c.value=(da=c.value)!=null&&da.some(xa=>xa==null?void 0:xa.children)?[c.value]:c.value,t.value=!1,d.value="",A.value="";let F=M.cloneDeep(n.originalItemContents);(ca=M.cloneDeep(n.originalItemContents))!=null&&ca.find(xa=>(xa==null?void 0:xa.key)==="header")?F=(Ue=M.cloneDeep(n.originalItemContents))==null?void 0:Ue.map(xa=>((xa==null?void 0:xa.key)==="header"&&(xa.contents=c.value),xa)):F.push({key:"header",contents:c.value}),r("change",F)},Ba=q=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,Q;c.value=(F=M.cloneDeep(c.value))==null?void 0:F.filter(pe=>(pe==null?void 0:pe.id)!==(q==null?void 0:q.id)),r("change",(Q=M.cloneDeep(n.originalItemContents))==null?void 0:Q.map(pe=>{var ve;return(pe==null?void 0:pe.key)==="header"&&(pe.contents=(ve=c.value)!=null&&ve.some(da=>da==null?void 0:da.children)?[c.value]:c.value),pe})),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(i.value=M.cloneDeep(n.originalItemContents),c.value=(F=(q=i.value)==null?void 0:q.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:F.contents,w.value=(pe=(Q=i.value)==null?void 0:Q.find(H=>(H==null?void 0:H.key)==="rowButton"))==null?void 0:pe.contents,Y.value=(da=(ve=i.value)==null?void 0:ve.find(H=>(H==null?void 0:H.key)==="extraButton"))==null?void 0:da.contents,y.value=(Ue=(ca=i.value)==null?void 0:ca.find(H=>(H==null?void 0:H.key)==="page"))!=null&&Ue.contents?!!((Na=(xa=i.value)==null?void 0:xa.find(H=>(H==null?void 0:H.key)==="page"))!=null&&Na.contents):!1,R.value=(Pa=(Ce=i.value)==null?void 0:Ce.find(H=>(H==null?void 0:H.key)==="tableToForm"))==null?void 0:Pa.contents,c.value=(Ca=c.value)==null?void 0:Ca.map((H,Oe)=>(Array.isArray(H)?H=c3(H):H={label:(H==null?void 0:H.label)??"",prop:(H==null?void 0:H.label)==="操作"?"operate":H==null?void 0:H.prop,width:H!=null&&H.width?parseInt(H.width):"",fixed:(H==null?void 0:H.fixed)??void 0,sortable:(H==null?void 0:H.sortable)??!1,align:(H==null?void 0:H.align)??"left",showOverflowTooltip:(H==null?void 0:H.showOverflowTooltip)??!0,isNotDrag:(H==null?void 0:H.isNotDrag)??!1,isEditCol:(H==null?void 0:H.isEditCol)??!1,isOperate:(H==null?void 0:H.isOperate)??!1,id:(H==null?void 0:H.id)??Oe,formMenuSelect:(H==null?void 0:H.formMenuSelect)??void 0,groupSelect:(H==null?void 0:H.groupSelect)??void 0},H)),c.value=(oa=c.value)!=null&&oa.every(H=>Array.isArray(H))?(Aa=c.value)==null?void 0:Aa[0]:c.value,w.value=(De=w.value)==null?void 0:De.map((H,Oe)=>H={label:(H==null?void 0:H.label)??"",type:(H==null?void 0:H.type)??"",textColor:(H==null?void 0:H.textColor)??"#000000",id:(H==null?void 0:H.id)??Oe}),Y.value=(wa=Y.value)==null?void 0:wa.map((H,Oe)=>H={label:(H==null?void 0:H.label)??"",type:(H==null?void 0:H.type)??"",background:(H==null?void 0:H.background)??"var(--ssComponent-primary-color)",id:(H==null?void 0:H.id)??Oe}),R.value)R.value=(xe=R.value)==null?void 0:xe.map(H=>{_.value++;let Oe=H;return Oe.id=_.value,Oe});else{let H=[];const Oe=(Je=le.getColumnChild(M.cloneDeep(c.value)))==null?void 0:Je.filter(Re=>(Re==null?void 0:Re.prop)!=="operate");Oe==null||Oe.forEach(Re=>{var Ia;_.value++,H.push({label:Re==null?void 0:Re.label,name:(Re==null?void 0:Re.prop)||(Re==null?void 0:Re.label),type:Re!=null&&Re.groupSelect?"Select":"Input",value:"",id:_.value,contents:Re==null?void 0:Re.options,menuSelect:Re==null?void 0:Re.formMenuSelect,groupSelect:(Ia=Re==null?void 0:Re.groupSelect)==null?void 0:Ia.split(":"),selectRelateType:"关联绑定列"})}),R.value=H}},{deep:!0,immediate:!0}),(q,F)=>{const Q=e.resolveComponent("svg-icon"),pe=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Rh,[e.createElementVNode("div",$h,[e.createElementVNode("div",Vh,[F[2]||(F[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(pe,{class:"icon-content",onClick:Ve,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[1]||(F[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Fh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",Ph,[e.createElementVNode("div",jh,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",Hh,[e.createVNode(Q,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ca=>ce(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ca=>de(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ca=>Ba(ve)},null,8,["onClick"])])]),ve!=null&&ve.children&&ve.children.length>0?(e.openBlock(),e.createElementBlock("div",Uh,[e.createVNode(qc,{tableChildContents:ve==null?void 0:ve.children,onDeleteChange:ea,onFixChange:Me},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",qh,[F[4]||(F[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:Qe},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[3]||(F[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",Wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",Kh,[e.createElementVNode("div",Gh,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",Yh,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ca=>ke(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ca=>Ie(ve)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Jh,[F[6]||(F[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:V},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[5]||(F[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Xh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",Zh,[e.createElementVNode("div",Qh,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",e6,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ca=>$e(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ca=>se(ve)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",a6,[F[8]||(F[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:ae},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[7]||(F[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",l6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",r6,[e.createElementVNode("div",n6,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",i6,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ca=>P(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ca=>X(ve)},null,8,["onClick"])])])]))),128))]),F[10]||(F[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",o6,[e.createElementVNode("div",t6,[F[9]||(F[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(pl._sfc_main$1,{modelValue:y.value,"onUpdate:modelValue":F[0]||(F[0]=ve=>y.value=ve)},null,8,["modelValue"])])])]),e.createVNode(Ir.ssDialog,{visible:t.value,onBeforeDestroy:Ke,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",s6,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:fe},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",c6,[e.createVNode(pe,{onClick:Ke,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[11]||(F[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(pe,{class:"ok-button button",onClick:ka,id:"themeButton"},{default:e.withCtx(()=>F[12]||(F[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Ir.ssDialog,{visible:u.value,onBeforeDestroy:ua,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",u6,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:z.value,key:z.value,isEnableWrap:!0,onChange:Ea},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",d6,[e.createVNode(pe,{onClick:ua,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[13]||(F[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(pe,{class:"ok-button button",onClick:ie,id:"themeButton"},{default:e.withCtx(()=>F[14]||(F[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Ir.ssDialog,{visible:O.value,onBeforeDestroy:W,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",p6,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:oe},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",f6,[e.createVNode(pe,{onClick:W,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[15]||(F[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(pe,{class:"ok-button button",onClick:B,id:"themeButton"},{default:e.withCtx(()=>F[16]||(F[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Ir.ssDialog,{visible:f.value,onBeforeDestroy:re,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",h6,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:_e,onChangeVisible:ee,onBlurChange:ue},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",v6,[e.createVNode(pe,{onClick:re,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[17]||(F[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(pe,{class:"ok-button button",onClick:he,id:"themeButton"},{default:e.withCtx(()=>F[18]||(F[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},y6=nr._export_sfc(m6,[["__scopeId","data-v-7a6b87b5"]]),g6=M.useModelComp(M.pinia),{pageMapState:b6}=M.storeToRefs(g6),k6=M.useMenuState(M.pinia),{activeMenuPath:x6}=M.storeToRefs(k6),w6=e.ref(24),_6=e.ref(6),S6=e.ref(10),E6=e.ref(70),C6=e.ref(.18),D6=e.ref(45),T6=(a,l,n,r)=>{var i,t,f,c,u,m,y,x,d,A,w,Y,z,$,O,S;return{x:((t=(i=a==null?void 0:a.value)==null?void 0:i.tableData)==null?void 0:t.x)||l%2*12,y:((c=(f=a==null?void 0:a.value)==null?void 0:f.tableData)==null?void 0:c.y)||l,w:((m=(u=a==null?void 0:a.value)==null?void 0:u.tableData)==null?void 0:m.w)||w6.value,h:((x=(y=a==null?void 0:a.value)==null?void 0:y.tableData)==null?void 0:x.h)||n,minW:((A=(d=a==null?void 0:a.value)==null?void 0:d.tableData)==null?void 0:A.minW)||_6.value,minH:((Y=(w=a==null?void 0:a.value)==null?void 0:w.tableData)==null?void 0:Y.minH)||C6.value,maxH:(($=(z=a==null?void 0:a.value)==null?void 0:z.tableData)==null?void 0:$.maxH)||D6.value,i:((S=(O=a==null?void 0:a.value)==null?void 0:O.tableData)==null?void 0:S.i)||l,id:(a==null?void 0:a.id)||l+"",component:r}},B6=(a,l)=>{var r,i,t,f,c,u,m,y;let n=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){if(((f=(t=(i=a==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:t.contents)==null?void 0:f.length)===0)return 2}else((c=a==null?void 0:a.comp)==null?void 0:c.toUpperCase())==="FORM"&&(n=((y=(m=(u=a==null?void 0:a.compData)==null?void 0:u.find(d=>(d==null?void 0:d.key)==="formContent"))==null?void 0:m.contents)==null?void 0:y.length)/5);return n*2},Wc=(a,l,n)=>{var f,c;const r=(c=(f=b6.value)==null?void 0:f[x6.value])==null?void 0:c.filter(u=>{var m;return((m=u==null?void 0:u.key)==null?void 0:m.type)==="gridLayout"}),i=r==null?void 0:r.find(u=>{var m,y,x;return((x=(y=(m=u==null?void 0:u.value)==null?void 0:m.tableData)==null?void 0:y.component)==null?void 0:x.id)===a.id}),t=B6(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((u,m)=>Wc(u,m))),{...T6(i,l,t,a)}},N6=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const n=M.cloneDeep(a);return Array.isArray(a)?n==null?void 0:n.map((r,i)=>Wc(r,i)):[]},A6=a=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),z6=(a,l)=>a==null?void 0:a.map(n=>{for(const r in l)if(r===(n==null?void 0:n.prop))return{...n,value:l[r]};return n}),M6=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]);e.watch(()=>n.compType,c=>{var y;const u=A6(n==null?void 0:n.optionItems),m=c?(y=u[c==null?void 0:c.toUpperCase()])==null?void 0:y[n==null?void 0:n.target]:[];i.value=m==null?void 0:m.map(x=>{for(const[d,A]of Object.entries((n==null?void 0:n.comp)||{}))if((x==null?void 0:x.prop)===d)return{...x,value:A};return x})},{immediate:!0});const t=c=>pl.getComponent(c),f=c=>{var u,m;(c==null?void 0:c.prop)==="layout"&&(c==null?void 0:c.value)==="horizontal"?i.value=(u=i.value)==null?void 0:u.map(y=>{var x;return(y==null?void 0:y.prop)==="isStepLayout"?{...y,options:(x=y==null?void 0:y.options)==null?void 0:x.map(d=>({...d,disabled:!0}))}:(y==null?void 0:y.prop)==="isGridLayout"?{...y,disabled:!0}:y}):i.value=(m=i.value)==null?void 0:m.map(y=>{var x;return(y==null?void 0:y.prop)==="isStepLayout"?{...y,options:(x=y==null?void 0:y.options)==null?void 0:x.map(d=>({...d,disabled:!1}))}:(y==null?void 0:y.prop)==="isGridLayout"?{...y,disabled:!1}:y}),r("change",{target:n==null?void 0:n.target,styleConfigs:i.value,prop:c==null?void 0:c.prop})};return(c,u)=>{const m=e.resolveComponent("el-col"),y=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,x=>(e.openBlock(),e.createBlock(y,{class:"style-row",key:x==null?void 0:x.prop},{default:e.withCtx(()=>[e.createVNode(m,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x==null?void 0:x.label)+":",1)]),_:2},1024),e.createVNode(m,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t(x.type)),{modelValue:x.value,"onUpdate:modelValue":d=>x.value=d,content:x==null?void 0:x.options,optionUrl:x==null?void 0:x.optionUrl,disabled:x==null?void 0:x.disabled,activeText:x==null?void 0:x.activeText,inactiveText:x==null?void 0:x.inactiveText,onChange:d=>f(x)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),I6=nr._export_sfc(M6,[["__scopeId","data-v-da01b651"]]),O6=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(a,{emit:l}){const n=a,r=l,i=[{required:!0,message:"输入不能为空",trigger:"blur"}],t=e.ref([]),f=$=>$==null?void 0:$.reduce((O,S)=>(O[S==null?void 0:S.prop]=S==null?void 0:S.rule,O),{}),c=e.computed(()=>({formRules:f(t.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),u=e.ref([]),m=e.ref(""),y=($,O,S)=>{var b;let k=[];(n==null?void 0:n.activeTabName)==="任务配置"?(k=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:$},{label:"按钮名称",value:"按钮名称",children:O}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],t.value=[{prop:"任务名称",rule:i},{prop:"任务关键词",rule:i},{prop:"执行任务",rule:i},{prop:"执行动作",rule:i},{prop:"执行交互",rule:i}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(k=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=n==null?void 0:n.relatedData)==null?void 0:b.map(C=>({label:C==null?void 0:C.任务名称,value:C==null?void 0:C.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],t.value=[{prop:"关联名称",rule:i},{prop:"关联状态",rule:i},{prop:"关联形式",rule:i},{prop:"关联任务集合",rule:i}]);let _;return S&&(S==null?void 0:S.length)>0?_=[...k,...x($,O,S)]:_=k,_},x=($,O,S)=>{const k=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return S?k==null?void 0:k.filter(_=>S==null?void 0:S.includes(_==null?void 0:_.prop)):k},d=($,O)=>{var C,R,V,ae,ee,_e,ue,U,P;const S=((ee=(ae=(V=(R=(C=n==null?void 0:n.comp)==null?void 0:C.compData)==null?void 0:R.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:V.contents)==null?void 0:ae.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:ee.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],k=/button/i,_=((P=(U=(ue=(_e=n==null?void 0:n.comp)==null?void 0:_e.compData)==null?void 0:ue.filter(X=>k.test(X==null?void 0:X.key)))==null?void 0:U.flatMap(X=>X==null?void 0:X.contents))==null?void 0:P.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],b=y(S,_,$);u.value=O?z6(b,O):b,$&&($==null?void 0:$.length)>0&&t.value.push(...$==null?void 0:$.map(X=>({prop:X,rule:i})))};e.onMounted(()=>{d(null,n==null?void 0:n.extendItem)});const A=$=>{const O=$==null?void 0:$[m.value];if(m.value==="执行任务"){if(!(O!=null&&O.join("/")))return;const S=O==null?void 0:O.join("/");d(S==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:S==="进度设置/进度条"?["进度关键词"]:null,$)}},w=$=>{r("change",{target:n==null?void 0:n.target,extendConfigs:$})},Y=($,O)=>{m.value=O==null?void 0:O.changeProp,A($)},z=$=>{r("onButtonClick",$)};return($,O)=>(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:u.value,key:u.value,isStartJustify:!1,isEnableWrap:!1,formRules:c.value.formRules,buttonValue:c.value.buttonValue,onChange:w,onBlurChange:Y,onOnButtonClick:z},null,8,["rowContents","formRules","buttonValue"]))}}),L6=nr._export_sfc(O6,[["__scopeId","data-v-4b39853f"]]),R6={};function $6(a,l){return null}const V6=nr._export_sfc(R6,[["render",$6]]),F6={class:"form-operate-content"},P6={class:"form-operate-item"},j6={class:"operate-title"},H6={class:"operate-content"},U6={class:"fix-content"},q6={class:"fix-button"},W6={class:"operate-title"},K6={class:"operate-content"},G6={class:"fix-content"},Y6={class:"fix-button"},J6={style:{display:"flex","justify-content":"space-between"}},X6={class:"form-content"},Z6={class:"dialog-footer"},Q6={class:"form-content"},e4={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(!1),t=e.ref([]),f=e.ref([]),c=e.ref(!1),u=e.ref([]),m=e.ref([]),y=e.ref(""),x=e.ref(!1),d=e.ref(0),A=e.ref([]),w=e.ref([]),Y=(U,P)=>{if((P==null?void 0:P.type)=="Select"&&(U==null?void 0:U.key)==="selectRelateType"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.selectRelateType)||P[U.key]}if((P==null?void 0:P.type)=="Select"&&(U==null?void 0:U.key)==="menuSelect"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.menuSelect)||P[U.key]}if((P==null?void 0:P.type)=="Select"&&(U==null?void 0:U.key)==="groupSelect"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.groupSelect)||P[U.key]}if((P==null?void 0:P.type)=="Select"&&(U==null?void 0:U.key)==="originalContent")return(P==null?void 0:P.value)||P[U.key];if((P==null?void 0:P.type)=="Select"&&(U==null?void 0:U.key)==="multiple"){const X=P[U.key];return tc(X)?X:U.default}return(U==null?void 0:U.label)==="类型"&&P[U.key]===""?"Input":(U==null?void 0:U.key)==="isFormColHidden"&&!P[U.key]?!1:P[U.key]},z=async U=>{var re,he,$e,se,B,oe;i.value=!0;let P=[];const X=await(($e=(he=(re=le.FormContent)==null?void 0:re.find(W=>(W==null?void 0:W.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:he.value)==null?void 0:$e.value)??((B=(se=le.FormContent)==null?void 0:se.find(W=>(W==null?void 0:W.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:B.value);if(X==null||X.forEach(W=>{d.value++,P.push({label:W==null?void 0:W.label,name:W==null?void 0:W.label,type:W.type,prop:W==null?void 0:W.prop,value:Y(W,U),id:d.value,contents:W==null?void 0:W.options,width:(U==null?void 0:U.width)??1})}),U!=null&&U.menuSelect&&((oe=U==null?void 0:U.menuSelect)==null?void 0:oe.length)>0){const W=await le.menuToContentType(U==null?void 0:U.menuSelect);P=P==null?void 0:P.map(ke=>((ke==null?void 0:ke.name)==="组信息选项"&&(ke.contents=W),ke))}y.value=U==null?void 0:U.id,t.value=await le.selectToBase(le.formToOptionsContents(P)),f.value=await le.selectToBase(le.formToOptionsContents(P))},$=U=>{var X;c.value=!0;let P=[];(X=le.FormButton)==null||X.forEach(re=>{d.value++,P.push({label:re==null?void 0:re.label,name:re==null?void 0:re.label,type:re.type,value:(re==null?void 0:re.label)==="类型"&&U[re.key]===""?"normal":U[re.key],id:d.value,contents:re==null?void 0:re.options})}),A.value=P,w.value=P,y.value=U==null?void 0:U.id};e.watch(()=>x.value,()=>{var P,X;let U=M.cloneDeep(n.originalItemContents);(P=M.cloneDeep(n.originalItemContents))!=null&&P.find(re=>(re==null?void 0:re.key)==="enableWrap")?U=(X=M.cloneDeep(n.originalItemContents))==null?void 0:X.map(re=>((re==null?void 0:re.key)==="enableWrap"&&(re.contents=!x.value),re)):U.push({key:"enableWrap",contents:!x.value}),r("change",U)},{deep:!0});const O=()=>{var X,re,he,$e,se;A.value=w.value;let U={};if(y.value!==""?U.id=y.value:(d.value++,U.id="id"+d.value),(X=A.value)==null||X.forEach(B=>{var W;const oe=(W=le.FormButton)==null?void 0:W.find(ke=>(ke==null?void 0:ke.label)===(B==null?void 0:B.label));oe&&(U[oe.key]=B.value)}),(re=u.value)!=null&&re.find(B=>B.id===U.id))u.value=(he=u.value)==null?void 0:he.map(B=>(B.id===U.id&&(B=U),B));else{let B=M.cloneDeep(u.value);u.value||(u.value=[]),B.push(U),u.value=B}c.value=!1,y.value="";let P=M.cloneDeep(n.originalItemContents);($e=M.cloneDeep(n.originalItemContents))!=null&&$e.find(B=>(B==null?void 0:B.key)==="formButton")?P=(se=M.cloneDeep(n.originalItemContents))==null?void 0:se.map(B=>((B==null?void 0:B.key)==="formButton"&&(B.contents=u.value),B)):P.push({key:"formButton",contents:u.value}),r("change",P)},S=U=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;m.value=(P=M.cloneDeep(m.value))==null?void 0:P.filter(re=>(re==null?void 0:re.id)!==(U==null?void 0:U.id)),r("change",(X=M.cloneDeep(n.originalItemContents))==null?void 0:X.map(re=>((re==null?void 0:re.key)==="formContent"&&(re.contents=m.value),re))),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},k=U=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;u.value=(P=M.cloneDeep(u.value))==null?void 0:P.filter(re=>(re==null?void 0:re.id)!==(U==null?void 0:U.id)),r("change",(X=M.cloneDeep(n.originalItemContents))==null?void 0:X.map(re=>((re==null?void 0:re.key)==="formButton"&&(re.contents=u.value),re))),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>{var P;c.value=!0;let U=[];(P=le.FormButton)==null||P.forEach(X=>{d.value++,U.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:(X==null?void 0:X.label)==="类型"?"normal":"",id:d.value,contents:X==null?void 0:X.options})}),A.value=U,w.value=U},b=()=>{var P,X,re;i.value=!0;let U=[];(re=(X=(P=le.FormContent)==null?void 0:P.find(he=>(he==null?void 0:he.key)==="Input"))==null?void 0:X.value)==null||re.forEach(he=>{d.value++,U.push({label:he==null?void 0:he.label,name:he==null?void 0:he.label,type:he.type,value:(he==null?void 0:he.label)==="类型"?"Input":"",id:d.value,contents:he==null?void 0:he.options})}),t.value=U,f.value=U},C=U=>{let P=M.cloneDeep(w.value);P=P==null?void 0:P.map(X=>(X.value=U==null?void 0:U[X.name],X)),w.value=P},R=U=>{const P=U.find(he=>(he==null?void 0:he.name)==="类型");if((P==null?void 0:P.value)!="Select")return;const X=U.find(he=>(he==null?void 0:he.name)==="多选"),re=U.find(he=>(he==null?void 0:he.name)==="初始值");X!=null&&X.value&&Do.isString(re.value)&&(re.value=[re.value]),!(X!=null&&X.value)&&!Do.isString(re.value)&&(re.value="")},V=async U=>{var P,X,re,he,$e,se,B,oe,W,ke,Ie,Ve;if((U==null?void 0:U.类型)!==((X=(P=f.value)==null?void 0:P.find(Qe=>(Qe==null?void 0:Qe.label)==="类型"))==null?void 0:X.value)){let Qe=[];const Ea=await(($e=(he=(re=le.FormContent)==null?void 0:re.find(ie=>(ie==null?void 0:ie.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:he.value)==null?void 0:$e.value)?await((ke=(W=(oe=le.FormContent)==null?void 0:oe.find(ie=>(ie==null?void 0:ie.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:W.value)==null?void 0:ke.value):(B=(se=le.FormContent)==null?void 0:se.find(ie=>(ie==null?void 0:ie.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:B.value;if(Ea==null||Ea.forEach(ie=>{var ce,ea;d.value++;const ua=Ku(ie==null?void 0:ie.default)?(U==null?void 0:U[ie.label])??ie.value??"":ie==null?void 0:ie.default;Qe.push({label:ie==null?void 0:ie.label,name:ie==null?void 0:ie.label,type:ie.type,value:ua,prop:ie==null?void 0:ie.prop,id:d.value,contents:ie==null?void 0:ie.options,width:((ea=(ce=f.value)==null?void 0:ce[0])==null?void 0:ea.width)??1})}),U!=null&&U.菜单选项&&((Ie=U==null?void 0:U.菜单选项)==null?void 0:Ie.length)>0){const ie=await le.menuToContentType(U==null?void 0:U.菜单选项);Qe=Qe==null?void 0:Qe.map(ua=>((ua==null?void 0:ua.name)==="组信息选项"&&(ua.contents=ie),ua))}R(Qe),f.value=await le.selectToBase(M.cloneDeep(Qe)),t.value=await le.selectToBase(M.cloneDeep(Qe))}else{let Qe=M.cloneDeep(f.value);if(Qe=Qe==null?void 0:Qe.map(Ea=>(Ea.value=U==null?void 0:U[Ea.name],Ea)),U!=null&&U.菜单选项&&((Ve=U==null?void 0:U.菜单选项)==null?void 0:Ve.length)>0){const Ea=await le.menuToContentType(U==null?void 0:U.菜单选项);Qe=Qe==null?void 0:Qe.map(ie=>((ie==null?void 0:ie.name)==="组信息选项"&&(ie.contents=Ea),ie))}Qe=le.formToOptionsContents(Qe),R(Qe),f.value=await le.selectToBase(M.cloneDeep(Qe))}},ae=U=>{U||(t.value=f.value)},ee=async U=>{await V(U),t.value=f.value},_e=Fl.debounce(async()=>{var re,he,$e,se,B,oe,W,ke,Ie,Ve,Qe,Ea;t.value=f.value;let U={};U.width=((he=(re=t.value)==null?void 0:re[0])==null?void 0:he.width)??1,y.value!==""?U.id=y.value:(d.value++,U.id="id"+d.value);let P=await((B=(se=($e=le.FormContent)==null?void 0:$e.find(ie=>{var ua,ce;return(ie==null?void 0:ie.key)===(((ce=(ua=t.value)==null?void 0:ua.find(ea=>(ea==null?void 0:ea.label)==="类型"))==null?void 0:ce.value)??"label")}))==null?void 0:se.value)==null?void 0:B.value)??((W=(oe=le.FormContent)==null?void 0:oe.find(ie=>{var ua,ce;return(ie==null?void 0:ie.key)===(((ce=(ua=t.value)==null?void 0:ua.find(ea=>(ea==null?void 0:ea.label)==="类型"))==null?void 0:ce.value)??"label")}))==null?void 0:W.value);if((ke=t.value)==null||ke.forEach(ie=>{const ua=P==null?void 0:P.find(ce=>(ce==null?void 0:ce.label)===(ie==null?void 0:ie.label));ua&&(U[ua.key]=ie.value)}),U.width=U.width?U.width:1,U.key=U==null?void 0:U.label,U.isFormColHidden=U==null?void 0:U.isFormColHidden,(Ie=m.value)!=null&&Ie.find(ie=>ie.id===U.id))m.value=(Ve=m.value)==null?void 0:Ve.map(ie=>(ie.id===U.id&&(ie=U),ie));else{let ie=M.cloneDeep(m.value);ie.push(U),m.value=ie}m.value=m.value.map(({id:ie,...ua})=>ua),i.value=!1,y.value="";let X=M.cloneDeep(n.originalItemContents);(Qe=M.cloneDeep(n.originalItemContents))!=null&&Qe.find(ie=>(ie==null?void 0:ie.key)==="formContent")?X=(Ea=M.cloneDeep(n.originalItemContents))==null?void 0:Ea.map(ie=>((ie==null?void 0:ie.key)==="formContent"&&(ie.contents=m.value),ie)):X.push({key:"formContent",contents:m.value}),r("change",X)},300),ue=()=>{i.value=!1,c.value=!1,y.value="",f.value=[],w.value=[]};return e.watch(()=>n.originalItemContents,()=>{var P,X,re,he,$e,se;if(!n.originalItemContents||n.originalItemContents.length===0)return;const U=M.cloneDeep(n.originalItemContents);m.value=((P=U==null?void 0:U.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:P.contents)??[],u.value=((X=U==null?void 0:U.find(B=>(B==null?void 0:B.key)==="formButton"))==null?void 0:X.contents)??[],x.value=(re=U==null?void 0:U.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&re.contents?!((he=U==null?void 0:U.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&he.contents):!0,m.value=($e=M.cloneDeep(m.value))==null?void 0:$e.map((B,oe)=>{var ke;let W=B;return W.id=(B==null?void 0:B.id)??oe,B!=null&&B.label||(B.label=(B==null?void 0:B.key)??(B==null?void 0:B.label)??""),B!=null&&B.type||(B.type=(B==null?void 0:B.type)??""),B.contents=((ke=B==null?void 0:B.options)==null?void 0:ke.length)===0?(B==null?void 0:B.contents)??"":B==null?void 0:B.options,W}),m.value=le.formToOptionsContents(m.value),u.value=(se=u.value)==null?void 0:se.map((B,oe)=>B={label:(B==null?void 0:B.label)??"",type:(B==null?void 0:B.type)??"",background:(B==null?void 0:B.background)??"var(--ssComponent-primary-color)",id:oe})},{deep:!0,immediate:!0}),(U,P)=>{const X=e.resolveComponent("svg-icon"),re=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",F6,[e.createElementVNode("div",P6,[e.createElementVNode("div",j6,[P[2]||(P[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(re,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(X,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[P[1]||(P[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",H6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(he,$e)=>(e.openBlock(),e.createElementBlock("div",{key:$e},[e.createElementVNode("div",U6,[e.createElementVNode("div",null,e.toDisplayString(he.label),1),e.createElementVNode("div",q6,[e.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:se=>z(he)},null,8,["onClick"]),e.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:se=>S(he)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",W6,[P[4]||(P[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(re,{class:"icon-content",id:"themeButton",onClick:_},{icon:e.withCtx(()=>[e.createVNode(X,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[P[3]||(P[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",K6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(he,$e)=>(e.openBlock(),e.createElementBlock("div",{key:$e},[e.createElementVNode("div",G6,[e.createElementVNode("div",null,e.toDisplayString(he.label),1),e.createElementVNode("div",Y6,[e.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:se=>$(he)},null,8,["onClick"]),e.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:se=>k(he)},null,8,["onClick"])])])]))),128))]),P[6]||(P[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",J6,[P[5]||(P[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(pl._sfc_main$1,{modelValue:x.value,"onUpdate:modelValue":P[0]||(P[0]=he=>x.value=he)},null,8,["modelValue"])])]),e.createVNode(Ir.ssDialog,{visible:i.value,onBeforeDestroy:ue,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",X6,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:V,onChangeVisible:ae,onBlurChange:ee},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Z6,[e.createVNode(re,{onClick:ue,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>P[7]||(P[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(re,{class:"ok-button button",onClick:e.unref(_e),id:"themeButton"},{default:e.withCtx(()=>P[8]||(P[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(Ir.ssDialog,{visible:c.value,onBeforeDestroy:ue,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Q6,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:A.value,key:A.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:ue,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:O},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},zs=nr._export_sfc(e4,[["__scopeId","data-v-20850524"]]),a4={class:"step-module content"},l4={class:"module-data"},r4={class:"step-module layout"},n4={class:"form-content"},i4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),t=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),f=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.reactive({visible:!1,width:"40%",title:"步骤条"}),u=e.ref("create"),m=e.ref({}),y=e.ref([]),x=z=>{var $;m.value=z,r("change",($=w())==null?void 0:$.compData)},d=(z,$)=>{var O,S;switch(z){case"create":(O=t.value)==null||O.forEach(k=>{k.value=""}),u.value="create",c.visible=!0;break;case"update":(S=t.value)==null||S.forEach(k=>{k.value=$[k==null?void 0:k.prop]}),u.value="update",c.visible=!0;break;case"delete":y.value.splice($,1),u.value="delete";break}},A=z=>{var $,O,S;if((z==null?void 0:z.buttonName)==="确认"){const k=M.cloneDeep(z==null?void 0:z.content);switch(Object.keys(k).forEach(_=>{k[_]===""&&delete k[_]}),u.value){case"create":y.value.push({...k,index:(($=y.value)==null?void 0:$.length)+1});break;case"update":y.value=(O=y.value)==null?void 0:O.map(_=>_.index===(k==null?void 0:k.index)?{..._,title:k==null?void 0:k.title,description:k==null?void 0:k.description}:_);break}r("change",(S=w())==null?void 0:S.compData),c.visible=!1}else c.visible=!1},w=()=>({comp:"Step",compData:[{key:"stepList",contents:y.value},{key:"stepConfig",contents:m.value}]}),Y=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,z=>{var $,O;z&&(m.value=(($=z==null?void 0:z.find(S=>S.key==="stepConfig"))==null?void 0:$.contents)??{},y.value=((O=z==null?void 0:z.find(S=>S.key==="stepList"))==null?void 0:O.contents)??[])},{immediate:!0}),(z,$)=>{const O=e.resolveComponent("svg-icon"),S=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",a4,[$[2]||($[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(S,{class:"module-icon",id:"themeButton",onClick:$[0]||($[0]=k=>d("create"))},{icon:e.withCtx(()=>[e.createVNode(O,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[1]||($[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",l4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(k,_)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:_},[e.createElementVNode("span",null,e.toDisplayString(k==null?void 0:k.title),1),e.createElementVNode("div",null,[e.createVNode(S,{type:"primary",size:"small",onClick:b=>d("update",{...k,index:_+1})},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(S,{type:"danger",size:"small",onClick:b=>d("delete",_)},{default:e.withCtx(()=>$[4]||($[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",r4,[$[5]||($[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(pl.ssForm,{rowContents:i.value,onChange:x},null,8,["rowContents"])])]),e.createVNode(Ir.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:Y,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",n4,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:f.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),o4=nr._export_sfc(i4,[["__scopeId","data-v-7dbd17f2"]]),t4={class:"step-module content"},s4={class:"module-data"},c4={class:"step-module layout"},u4={class:"form-content"},d4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref("create"),t=e.ref({}),f=e.ref([]),c=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),u=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),m=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),y=e.reactive({visible:!1,width:"40%",title:"时间线"}),x=z=>{var $;t.value=z,r("change",($=w())==null?void 0:$.compData)},d=(z,$)=>{var O,S;switch(z){case"create":(O=u.value)==null||O.forEach(k=>{k.value=""}),i.value="create",y.visible=!0;break;case"update":(S=u.value)==null||S.forEach(k=>{k.value=$[k==null?void 0:k.prop]}),i.value="update",y.visible=!0;break;case"delete":f.value.splice($,1),i.value="delete";break}},A=z=>{var $,O,S,k;if((z==null?void 0:z.buttonName)==="确认"){const _=M.cloneDeep(z==null?void 0:z.content);switch(Object.keys(_).forEach(b=>{_[b]===""&&delete _[b]}),i.value){case"create":(O=f.value)==null||O.push({..._,index:(($=f.value)==null?void 0:$.length)+1});break;case"update":f.value=(S=f.value)==null?void 0:S.map(b=>b.index===(_==null?void 0:_.index)?{...b,content:_==null?void 0:_.content,timestamp:_==null?void 0:_.timestamp}:b);break}r("change",(k=w())==null?void 0:k.compData),y.visible=!1}else y.visible=!1},w=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:f.value},{key:"timeLineConfig",contents:t.value}]}),Y=()=>{y.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,z=>{var $,O;z&&(t.value=(($=z==null?void 0:z.find(S=>S.key==="timeLineConfig"))==null?void 0:$.contents)??{},f.value=((O=z==null?void 0:z.find(S=>S.key==="timeLineList"))==null?void 0:O.contents)??[])},{immediate:!0}),(z,$)=>{const O=e.resolveComponent("svg-icon"),S=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",t4,[$[2]||($[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(S,{class:"module-icon",id:"themeButton",onClick:$[0]||($[0]=k=>d("create"))},{icon:e.withCtx(()=>[e.createVNode(O,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[1]||($[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",s4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(k,_)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:_},[e.createElementVNode("span",null,e.toDisplayString(k==null?void 0:k.content),1),e.createElementVNode("div",null,[e.createVNode(S,{type:"primary",size:"small",onClick:b=>d("update",{...k,index:_+1})},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(S,{type:"danger",size:"small",onClick:b=>d("delete",_)},{default:e.withCtx(()=>$[4]||($[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",c4,[$[5]||($[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(pl.ssForm,{rowContents:c.value,onChange:x},null,8,["rowContents"])])]),e.createVNode(Ir.ssDialog,{visible:y.visible,title:y.title,onBeforeDestroy:Y,width:y.width},{default:e.withCtx(()=>[e.createElementVNode("div",u4,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),p4=nr._export_sfc(d4,[["__scopeId","data-v-39ffc861"]]),f4={};function h4(a,l){return e.openBlock(),e.createElementBlock("div")}const v4=nr._export_sfc(f4,[["render",h4]]),m4={class:"extra-content"},y4={key:0},g4={key:1},b4={class:"dialog-footer"},k4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const n=a,r=e.ref(0),i=e.ref(),t=e.ref(),f=l,c=e.ref(!1),u=e.ref({}),m=e.ref({}),y=e.ref();e.watch(()=>[n.itemData],()=>{var k;const S=M.cloneDeep(n.itemData);i.value=(k=M.cloneDeep(S))==null?void 0:k.map(_=>{var b;if(_.key==="extra"){let C=[];(b=_.value)==null||b.forEach(R=>{var V;C.push((V=Object.values(R))==null?void 0:V[0])}),_.value=C}return _})},{deep:!0,immediate:!0});const x=(S,k,_,b)=>{var R;let C={};((R=S==null?void 0:S[0])==null?void 0:R.contents)==="详情"&&(c.value=!0,C[k]=S,t.value=S==null?void 0:S.filter(V=>(V==null?void 0:V.key)!=="tableContentName"),u.value=C,m.value=_,y.value=b.id)},d=S=>{var V,ae,ee,_e;const k=(ae=(V=Object.values(M.cloneDeep(u.value)))==null?void 0:V[0])==null?void 0:ae.filter(ue=>(ue==null?void 0:ue.key)==="tableContentName"),_=(_e=(ee=Object.values(M.cloneDeep(u.value)))==null?void 0:ee[0])==null?void 0:_e.filter(ue=>(ue==null?void 0:ue.key)!=="tableContentName"),b=_==null?void 0:_.map((ue,U)=>{var P;return U===S.index&&(ue==null?void 0:ue.comp)==="Table"&&(ue.compData=(P=ue.compData)==null?void 0:P.map(X=>{var re,he;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(he=(re=S.content)==null?void 0:re.map($e=>{let se={};for(let B in $e)B!=="id"&&(se[B]=$e[B]);return se}))==null?void 0:he.map($e=>Object.values($e))),X})),ue});b.unshift(k==null?void 0:k[0]);let C=M.cloneDeep(u.value),R={};for(let ue in C)R[ue]=b;u.value=R},A=()=>{c.value=!1,u.value={},m.value={},y.value=void 0,r.value++},w=S=>{var V,ae,ee,_e;const k=(ae=(V=Object.values(M.cloneDeep(u.value)))==null?void 0:V[0])==null?void 0:ae.filter(ue=>(ue==null?void 0:ue.key)==="tableContentName"),_=(_e=(ee=Object.values(M.cloneDeep(u.value)))==null?void 0:ee[0])==null?void 0:_e.filter(ue=>(ue==null?void 0:ue.key)!=="tableContentName"),b=_==null?void 0:_.map((ue,U)=>(U===S.index&&(ue.compData=S.contents),ue));b.unshift(k==null?void 0:k[0]);let C=M.cloneDeep(u.value),R={};for(let ue in C)R[ue]=b;u.value=R},Y=()=>{var k,_;let S={};for(let b in m.value)b===((k=Object.keys(u.value))==null?void 0:k[0])?S[b]=(_=Object.values(u.value))==null?void 0:_[0]:S[b]=m.value[b];f("change",{buttonName:"编辑",index:y.value,singleContent:S},"methodData"),c.value=!1,u.value={},m.value={},y.value=void 0},z=()=>{c.value=!1,u.value={},m.value={},y.value=void 0},$=S=>{f("change",S,"methodData")},O=S=>Li(S);return(S,k)=>{const _=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",m4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(b,C)=>(e.openBlock(),e.createElementBlock("div",{key:r.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",y4)):(e.openBlock(),e.createElementBlock("div",g4,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:C,index:(b==null?void 0:b.id)??C,onContentClick:x,onChange:$},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Ir.ssDialog,{visible:c.value,onBeforeDestroy:z},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(b,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O(b.comp)),{itemData:b==null?void 0:b.compData,onChange:d,childItemData:b==null?void 0:b.itemChildData,key:C,onContentChange:w,index:(b==null?void 0:b.id)??C,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",b4,[e.createVNode(_,{class:"cancel-button footer-button",onClick:A,id:"themeBorderButton"},{default:e.withCtx(()=>k[0]||(k[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(_,{class:"confirm-button footer-button",onClick:Y,id:"themeButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},x4=nr._export_sfc(k4,[["__scopeId","data-v-2d9c5ab2"]]),w4={key:0,class:"method-content"},_4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),n=le.useOriginalState(M.pinia),{originalPath:r}=M.storeToRefs(n),i=a,t=e.ref(!1),f=e.ref(),c=le.useTableComp(M.pinia),{multipleTableConst:u}=M.storeToRefs(c),m=M.useModelComp(M.pinia),y=e.ref(!1),x=M.useMenuState(M.pinia),d=M.useLoginState(M.pinia),{itemData:A,isEdit:w,routeToChildPath:Y,tableViewContents:z,lockingPage:$,payloadTypes:O}=M.storeToRefs(m),{activeMenuPath:S,platform:k,childMenu:_}=M.storeToRefs(x),{loginUserInfo:b}=M.storeToRefs(d),C=e.ref(!1),R=async()=>{var se,B;(se=l.value)!=null&&se.find(oe=>(oe==null?void 0:oe.buttonName)==="保存")&&await X((B=l.value)==null?void 0:B.find(oe=>(oe==null?void 0:oe.buttonName)==="保存")),await le.onSaveBack()};e.watch(()=>A.value,async()=>{w.value==="view"&&!C.value&&await $e(M.cloneDeep(i.itemData)),C.value=!1},{deep:!0});const V=()=>{t.value=!1,f.value=void 0},ae=se=>se.map(B=>{const oe={};for(const W in B){const ke=B[W];if(W.includes(u.value)){const Ie=W.split(u.value);let Ve=oe;Ie.forEach((Qe,Ea)=>{Ea===Ie.length-1?Ve[Qe]=ke:(Ve[Qe]||(Ve[Qe]={}),Ve=Ve[Qe])})}else oe[W]=ke}return oe}),ee=async(se,B,oe=[])=>{var ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba;let W=(ke=M.cloneDeep(B))==null?void 0:ke.filter(q=>(q==null?void 0:q.comp)!=="methodButton");if(se!=null&&se.includes("[")){let q=(ie=(Ea=(Qe=(Ve=(Ie=M.cloneDeep(se))==null?void 0:Ie.split("["))==null?void 0:Ve[1])==null?void 0:Qe.split("]"))==null?void 0:Ea[0])==null?void 0:ie.split(":"),F="";if(q!=null&&q[0]){let Q=(ua=W==null?void 0:W.find(pe=>(pe==null?void 0:pe.name)===(q==null?void 0:q[0])))==null?void 0:ua.compData;if(!Q){let pe=(ce=se==null?void 0:se.split("["))==null?void 0:ce[0],ve=await le.getItemData(pe,sessionStorage.getItem("systemKey"),"",!1,"","",oe);Q=(ea=ve==null?void 0:ve.find(da=>(da==null?void 0:da.name)===(q==null?void 0:q[0])))==null?void 0:ea.compData}Q==null||Q.forEach(pe=>{var ve,da,ca,Ue,xa,Na;if((pe==null?void 0:pe.key)==="formContent")(ve=pe==null?void 0:pe.contents)==null||ve.forEach(Ce=>{var Pa;(Ce==null?void 0:Ce.key)===(q==null?void 0:q[1])&&(Array.isArray(Ce==null?void 0:Ce.value)?F=Ce==null?void 0:Ce.value:F=(Pa=Ce==null?void 0:Ce.value)==null?void 0:Pa.toString())});else if((pe==null?void 0:pe.key)==="tableContents"){let Ce=[],Pa=(da=Q==null?void 0:Q.find(oa=>(oa==null?void 0:oa.key)==="header"))==null?void 0:da.contents,Ca=(q==null?void 0:q[1])??"";if(Pa!=null&&Pa.every(oa=>Array.isArray(oa))){let oa=le.getColumnChild((xa=Pa==null?void 0:Pa[0])==null?void 0:xa.filter(Aa=>(Aa==null?void 0:Aa.label)!=="操作"));(Na=pe.contents)==null||Na.forEach(Aa=>{let De={};Aa=Aa==null?void 0:Aa.filter(wa=>!(wa!=null&&wa.id)),oa==null||oa.forEach((wa,Je)=>{let xe=Aa[Je];typeof Aa[Je]=="number"&&(xe=Aa[Je].toString()),(Ca===""||Ca===wa.prop)&&(De[wa.prop]=xe)}),Ce.push(De)}),Ce=ae(Ce)}else{let oa=(ca=Pa==null?void 0:Pa.map(Aa=>Aa==null?void 0:Aa.label))==null?void 0:ca.filter(Aa=>Aa!=="操作");(Ue=pe.contents)==null||Ue.forEach(Aa=>{let De={};Aa=Aa==null?void 0:Aa.filter(wa=>!(wa!=null&&wa.id)),oa==null||oa.forEach((wa,Je)=>{let xe=Aa[Je];typeof Aa[Je]=="number"&&(xe=Aa[Je].toString()),(Ca===""||Ca===wa)&&(De[wa]=xe)}),Ce.push(De)})}F=Ce}})}return F}else if(se!=null&&se.includes("/")){let q={};return(Me=M.cloneDeep(W))==null||Me.forEach((F,Q)=>{var pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe,Re;if((F==null?void 0:F.comp)==="Table"){let Ia=Array.isArray((da=(ve=(pe=F==null?void 0:F.compData)==null?void 0:pe.find(Pe=>(Pe==null?void 0:Pe.key)==="header"))==null?void 0:ve.contents)==null?void 0:da[0])?(Na=(xa=(Ue=(ca=F==null?void 0:F.compData)==null?void 0:ca.find(Pe=>(Pe==null?void 0:Pe.key)==="header"))==null?void 0:Ue.contents)==null?void 0:xa[0])==null?void 0:Na.some(Pe=>Pe==null?void 0:Pe.children):[],na=(Ca=(Pa=(Ce=F==null?void 0:F.compData)==null?void 0:Ce.find(Pe=>(Pe==null?void 0:Pe.key)==="tableContents"))==null?void 0:Pa.contents)==null?void 0:Ca.map(Pe=>(Pe!=null&&Pe.find(je=>je==null?void 0:je.id)&&(Pe=Pe.slice(1)),Pe)),za=(Je=(wa=(De=(Aa=(oa=F==null?void 0:F.compData)==null?void 0:oa.find(Pe=>(Pe==null?void 0:Pe.key)==="header"))==null?void 0:Aa.contents)==null?void 0:De[0])==null?void 0:wa[0])==null?void 0:Je.label,Ae=(H=(xe=F==null?void 0:F.compData)==null?void 0:xe.find(Pe=>(Pe==null?void 0:Pe.key)==="header"))==null?void 0:H.contents;if(Ia)(Ia==null?void 0:Ia.length)===0?q[F.name]=q!=null&&q[F.name]?q[F.name]:le.tableToForm(na,Ae):q[za]=le.tableToForm(na,Ae);else{const Pe=[];Ae=Ae.slice(1,Ae.length-1),Ae==null||Ae.forEach((je,ze)=>{na==null||na.forEach(we=>{Pe.push({key:je.label+we[0],value:we[ze+1]})})}),q["form"+Q]=Pe}}else{const Ia=(Re=(Oe=F.compData)==null?void 0:Oe.find(za=>(za==null?void 0:za.key)==="formContent"))==null?void 0:Re.contents;q!=null&&q.form||(q.form=[]);const na=[];Ia==null||Ia.forEach(za=>{za.key!==""&&(za={key:(za==null?void 0:za.key)??(za==null?void 0:za.label),value:za==null?void 0:za.value},na.push(za))}),q.form=[...na,...M.cloneDeep(q==null?void 0:q.form)]}}),q}else{if(se==="createInsofDataApi"){let q=(de=M.cloneDeep(B))==null?void 0:de[0];return q={comp:(fe=M.cloneDeep(q))==null?void 0:fe.comp,compData:(Ke=M.cloneDeep(q))==null?void 0:Ke.compData,name:(ka=M.cloneDeep(q))==null?void 0:ka.name,isShow:(Ba=M.cloneDeep(q))==null?void 0:Ba.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:S.value},value:{pageData:q}}}return se}},_e=async(se,B,oe)=>{var Ie,Ve,Qe;let W=await le.getItemData(B,sessionStorage.getItem("systemKey"),""),ke=W==null?void 0:W.find(Ea=>(Ea==null?void 0:Ea.name)===(oe==null?void 0:oe[0]));if(ke){if((ke==null?void 0:ke.comp)==="Table"){let Ea={};for(let fe in M.cloneDeep(se))M.cloneDeep(se)[fe]!=="loginUser"?Ea[fe]=M.cloneDeep(se)[fe]:Ea[fe]=((Ie=b.value)==null?void 0:Ie.account)||((Ve=b.value)==null?void 0:Ve.账号);let ie=[],ua=Ea;Array.isArray(se)||(ua=[Ea]),ua==null||ua.forEach(fe=>{ie.push({[fe[oe[1]]]:fe})});let ce=[],ea=ie==null?void 0:ie.map(fe=>{var Ke;return(Ke=Object.keys(fe))==null?void 0:Ke[0]});W==null||W.forEach(fe=>{var Ke;(fe==null?void 0:fe.name)===(oe==null?void 0:oe[0])&&((Ke=fe==null?void 0:fe.compData)==null||Ke.forEach(ka=>{var Ba;(ka==null?void 0:ka.key)==="tableContents"&&((Ba=ka==null?void 0:ka.contents)==null||Ba.forEach(q=>{q!=null&&q.some(F=>ea.includes(F))&&ce.push({[q.find(F=>F.id).id]:q.find(F=>ea.includes(F))})}))}))});let Me=ce==null?void 0:ce.map(fe=>{var Ke;return(Ke=Object.keys(fe))==null?void 0:Ke[0]}),de=[];if(Me==null||Me.forEach(fe=>{var Ba;let Ke=(Ba=ce==null?void 0:ce.find(q=>{var F;return((F=Object.keys(q))==null?void 0:F[0].toString())===fe.toString()}))==null?void 0:Ba[fe],ka=ie==null?void 0:ie.find(q=>{var F;return((F=Object.keys(q))==null?void 0:F[0])===Ke});de.push({id:parseInt(fe),value:{tableData:ka[Ke]}})}),(de==null?void 0:de.length)>0)return de}else if((ke==null?void 0:ke.comp)==="Form"){let Ea=M.cloneDeep(ke);Ea.compData=(Qe=Ea.compData)==null?void 0:Qe.map(ce=>{var ea;return(ce==null?void 0:ce.key)==="formContent"&&(ce.contents=(ea=ce.contents)==null?void 0:ea.map(Me=>((Me==null?void 0:Me.key)===(oe==null?void 0:oe[1])&&(Me.value=(se==null?void 0:se[Me==null?void 0:Me.prop])||se),Me))),ce});let ie={};for(let ce in Ea)ce!=="id"&&(ie[ce]=Ea[ce]);let ua=[];if(ua.push({id:ke==null?void 0:ke.id,keyType:oe==null?void 0:oe[1],value:{pageData:ie}}),(ua==null?void 0:ua.length)>0)return ua}}},ue=async(se,B,oe)=>{var Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de;let W=await le.getItemData(B,sessionStorage.getItem("systemKey"),""),ke=W==null?void 0:W.find(fe=>(fe==null?void 0:fe.name)===(oe==null?void 0:oe[0]));if(ke){if((ke==null?void 0:ke.comp)==="Table"){let fe={};for(let Ke in M.cloneDeep(se))M.cloneDeep(se)[Ke]!=="loginUser"?fe[Ke]=M.cloneDeep(se)[Ke]:fe[Ke]=((Ie=b.value)==null?void 0:Ie.account)||((Ve=b.value)==null?void 0:Ve.账号);await Hr.createInsofDataApi({key:{type:"data",pageKey:B,tableId:ke==null?void 0:ke.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:fe}})}else if((ke==null?void 0:ke.comp)==="Form"){let fe=M.cloneDeep(ke),Ke=Object.keys(se),ka="";(Ea=(Qe=M.cloneDeep(fe))==null?void 0:Qe.compData)==null||Ea.forEach(ve=>{var da,ca;(ve==null?void 0:ve.key)==="formContent"&&((ca=(da=M.cloneDeep(ve))==null?void 0:da.contents)==null||ca.forEach(Ue=>{var xa;Ke.includes(Ue==null?void 0:Ue.key)&&(Ue==null?void 0:Ue.value)===((xa=b.value)==null?void 0:xa.姓名)&&(ka=Ue==null?void 0:Ue.key)}))});let Ba=[];(ie=Object.values(se[ka]))==null||ie.forEach(ve=>{ve!=null&&ve.includes("(")&&Ba.push(ve)}),Ba=[...new Set(Ba)];const q=Ba==null?void 0:Ba.map(async ve=>{var Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe;let da="";(Aa=(oa=(Ca=(Pa=(Ce=(Na=M.cloneDeep(ve))==null?void 0:Na.split("("))==null?void 0:Ce[1])==null?void 0:Pa.split(")"))==null?void 0:Ca[0])==null?void 0:oa.split(":"))==null||Aa.forEach(Re=>{da=da===""?da+Re.replaceAll("'",""):da+"/"+Re.replaceAll("'","")});let ca=[];(Oe=(H=(xe=(Je=(wa=(De=M.cloneDeep(ve))==null?void 0:De.split("<"))==null?void 0:wa[1])==null?void 0:Je.split(">"))==null?void 0:xe[0])==null?void 0:H.split(":"))==null||Oe.forEach(Re=>{ca.push(Re.replaceAll("'",""))});const Ue=await le.getItemData(da,sessionStorage.getItem("systemKey"),"");let xa="";return Ue==null||Ue.forEach(Re=>{var Ia;Re.name===(ca==null?void 0:ca[0])&&((Ia=Re==null?void 0:Re.compData)==null||Ia.forEach(na=>{var za;(na==null?void 0:na.key)==="formContent"&&((za=na.contents)==null||za.forEach(Ae=>{(Ae==null?void 0:Ae.key)===(ca==null?void 0:ca[1])&&(xa=Ae==null?void 0:Ae.value)}))}))}),{[ve]:xa}}),F=await Promise.all(q);fe.compData=(ce=(ua=M.cloneDeep(fe))==null?void 0:ua.compData)==null?void 0:ce.map(ve=>{var da,ca;return(ve==null?void 0:ve.key)==="formContent"&&(ve.contents=(ca=(da=M.cloneDeep(ve))==null?void 0:da.contents)==null?void 0:ca.map(Ue=>{var xa,Na,Ce,Pa;return(xa=se[ka])!=null&&xa[Ue==null?void 0:Ue.key]&&(se[ka][Ue==null?void 0:Ue.key].includes("(")?Ue.value=(Na=F==null?void 0:F.find(Ca=>{var oa;return((oa=Object.keys(Ca))==null?void 0:oa[0])===se[ka][Ue==null?void 0:Ue.key]}))==null?void 0:Na[se[ka][Ue==null?void 0:Ue.key]]:Ue.value=(Pa=(Ce=M.cloneDeep(se))==null?void 0:Ce[ka])==null?void 0:Pa[Ue==null?void 0:Ue.key]),Ue})),ve});const Q=await Hr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let pe="";((ea=Q==null?void 0:Q.data)==null?void 0:ea.type)==="success"&&((de=(Me=Q==null?void 0:Q.data)==null?void 0:Me.result)==null||de.forEach(ve=>{var da,ca;((ca=(da=ve==null?void 0:ve.value)==null?void 0:da.pageData)==null?void 0:ca.name)===(oe==null?void 0:oe[0])&&(pe=ve.id)}),await Hr.updateInsofDataApi({id:pe,value:{pageData:fe}}))}}},U=(se,B="",oe={})=>{for(const[W,ke]of Object.entries(se)){const Ie=B?`${B}.${W}`:W;ke!==null&&typeof ke=="object"&&!Array.isArray(ke)&&Object.prototype.toString.call(ke)!=="[object Date]"?U(ke,Ie,oe):oe[Ie]=ke}return oe},P=async(se,B,oe,W)=>{var Ve,Qe,Ea,ie,ua,ce,ea,Me,de,fe,Ke,ka,Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa;let ke=await le.getItemData(B,sessionStorage.getItem("systemKey"),""),Ie=ke==null?void 0:ke.find(Ca=>(Ca==null?void 0:Ca.name)===(oe==null?void 0:oe[0]));if(Ie){if(!(oe!=null&&oe[1])&&(Ie==null?void 0:Ie.comp)==="Table"){let Ca={},oa=[],Aa=(Qe=(Ve=Ie==null?void 0:Ie.compData)==null?void 0:Ve.find(Je=>(Je==null?void 0:Je.key)==="header"))==null?void 0:Qe.contents;Aa!=null&&Aa.every(Je=>Array.isArray(Je))?oa=(ie=le.getColumnChild((Ea=Aa==null?void 0:Aa[0])==null?void 0:Ea.filter(Je=>(Je==null?void 0:Je.label)!=="操作")))==null?void 0:ie.map(Je=>Je==null?void 0:Je.prop):oa=Aa==null?void 0:Aa.map(Je=>Je==null?void 0:Je.label);for(let Je in M.cloneDeep(se))if(M.cloneDeep(se)[Je]!=="loginUser"){let xe=U(M.cloneDeep(se)[Je]),H={};for(let Oe in xe)if(oa!=null&&oa.find(Re=>Re===Oe))H[Oe]=xe[Oe];else if(oa!=null&&oa.find(Re=>(Re==null?void 0:Re.toUpperCase())===(Oe==null?void 0:Oe.toUpperCase()))){let Re=oa==null?void 0:oa.find(Ia=>(Ia==null?void 0:Ia.toUpperCase())===(Oe==null?void 0:Oe.toUpperCase()));H[Re]=xe[Oe]}Ca[Je]=H}else Ca[Je]=((ua=b.value)==null?void 0:ua.account)||((ce=b.value)==null?void 0:ce.账号);let De=await Hr.getInsofDataApi({keyLikes:{tableId:Ie==null?void 0:Ie.id}});if(((Me=(ea=De==null?void 0:De.data)==null?void 0:ea.result)==null?void 0:Me.length)>0){let Je=(fe=(de=De==null?void 0:De.data)==null?void 0:de.result)==null?void 0:fe.map(xe=>xe==null?void 0:xe.id);(Je==null?void 0:Je.length)>0&&await Hr.batchDeleteInsofDataApi({ids:Je})}let wa=[];if((Ke=Ie==null?void 0:Ie.compData)!=null&&Ke.find(Je=>(Je==null?void 0:Je.key)==="pageColumn")&&((q=(Ba=(ka=Ie==null?void 0:Ie.compData)==null?void 0:ka.find(Je=>(Je==null?void 0:Je.key)==="pageColumn"))==null?void 0:Ba.contents)!=null&&q.includes("["))){const Je=await Hr.getInsofDataApi({id:Ie==null?void 0:Ie.tableId});let xe=((ve=(pe=(Q=(F=Je==null?void 0:Je.data)==null?void 0:F.result)==null?void 0:Q[0])==null?void 0:pe.key)==null?void 0:ve.pageKey)??"";(da=Object.values(Ca))==null||da.forEach(H=>{wa.push({key:{type:"data",pageKey:xe,tableId:Ie==null?void 0:Ie.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:H}})})}else(ca=Object.values(Ca))==null||ca.forEach(Je=>{wa.push({key:{type:"data",pageKey:B,tableId:Ie==null?void 0:Ie.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Je}})});(wa==null?void 0:wa.length)>0&&await Hr.batchAddInsofDataApi({dataList:wa})}else if(!(oe!=null&&oe[1])&&(Ie==null?void 0:Ie.comp)==="Form"){let Ca=M.cloneDeep(Ie);Ca.compData=(xa=(Ue=M.cloneDeep(Ca))==null?void 0:Ue.compData)==null?void 0:xa.map(De=>{var wa,Je;return(De==null?void 0:De.key)==="formContent"&&(De.contents=(Je=(wa=M.cloneDeep(De))==null?void 0:wa.contents)==null?void 0:Je.map(xe=>{var H,Oe;return(H=M.cloneDeep(se))!=null&&H[xe==null?void 0:xe.key]&&(xe.value=(Oe=M.cloneDeep(se))==null?void 0:Oe[xe==null?void 0:xe.key]),xe})),De});const oa=await Hr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let Aa="";((Na=oa==null?void 0:oa.data)==null?void 0:Na.type)==="success"&&((Pa=(Ce=oa==null?void 0:oa.data)==null?void 0:Ce.result)==null||Pa.forEach(De=>{var wa,Je;((Je=(wa=De==null?void 0:De.value)==null?void 0:wa.pageData)==null?void 0:Je.name)===(oe==null?void 0:oe[0])&&(Aa=De.id)}),await Hr.updateInsofDataApi({id:Aa,value:{pageData:Ca}}))}}},X=async se=>{var B,oe,W,ke,Ie,Ve,Qe,Ea,ie,ua,ce,ea,Me,de;x.setImportLoading(!0);try{if(se.api){let fe=new WeakMap,Ke=await le.getItemData((_==null?void 0:_.value)===""?S.value:_==null?void 0:_.value,sessionStorage.getItem("systemKey"),"",!1,"","",fe),ka="";if(Ke=Ke==null?void 0:Ke.map(ca=>{var Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe;if((ca==null?void 0:ca.comp)==="Form")ca.compData=(Ue=ca.compData)==null?void 0:Ue.map(H=>{var Oe;return(H==null?void 0:H.key)==="formContent"&&(H.contents=(Oe=H.contents)==null?void 0:Oe.map(Re=>{var Ia;if((Re==null?void 0:Re.value)===""&&(Re==null?void 0:Re.type)==="Select"){let na=le.judgeContents((Ia=M.cloneDeep(Re))==null?void 0:Ia.optionUrl,fe);Re.value=Re.value||na}return Re})),H});else if((ca==null?void 0:ca.comp)==="Table"&&(xa=ca.compData)!=null&&xa.find(H=>(H==null?void 0:H.key)==="pageColumn")){let H=(Ce=(Na=ca.compData)==null?void 0:Na.find(na=>(na==null?void 0:na.key)==="pageColumn"))==null?void 0:Ce.contents,Oe=((Ca=(Pa=ca.compData)==null?void 0:Pa.find(na=>(na==null?void 0:na.key)==="pageGroup"))==null?void 0:Ca.contents)??"",Re=(De=(Aa=(oa=H==null?void 0:H.split("["))==null?void 0:oa[1])==null?void 0:Aa.split("]"))==null?void 0:De[0];ka=((wa=H==null?void 0:H.split("["))==null?void 0:wa[0])+((xe=(Je=z.value)==null?void 0:Je.find(na=>(na==null?void 0:na.key)===Re))==null?void 0:xe.value)}return ca}),!(ka===""||ka==="")){const ca=await le.getItemData(ka,sessionStorage.getItem("systemKey"),"",!1,"","",fe);Ke=Ke==null?void 0:Ke.map(Ue=>{var xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe;if((Ue==null?void 0:Ue.comp)==="Table"&&(xa=Ue.compData)!=null&&xa.find(Re=>(Re==null?void 0:Re.key)==="pageColumn")){let Re=(Ce=(Na=Ue.compData)==null?void 0:Na.find(Pe=>(Pe==null?void 0:Pe.key)==="pageColumn"))==null?void 0:Ce.contents,Ia=((Ca=(Pa=Ue.compData)==null?void 0:Pa.find(Pe=>(Pe==null?void 0:Pe.key)==="pageGroup"))==null?void 0:Ca.contents)??"",na=(De=(Aa=(oa=Re==null?void 0:Re.split("["))==null?void 0:oa[1])==null?void 0:Aa.split("]"))==null?void 0:De[0],za=((wa=Re==null?void 0:Re.split("["))==null?void 0:wa[0])+((xe=(Je=z.value)==null?void 0:Je.find(Pe=>(Pe==null?void 0:Pe.key)===na))==null?void 0:xe.value),Ae=(H=ca==null?void 0:ca.find(Pe=>(Pe==null?void 0:Pe.name)===(Ia===""?i==null?void 0:i.compName:Ia)))==null?void 0:H.compData;Ue.compData=(Oe=Ue.compData)==null?void 0:Oe.map(Pe=>{var je;return(Pe==null?void 0:Pe.key)==="tableContents"&&(Pe.contents=(je=Ae==null?void 0:Ae.find(ze=>(ze==null?void 0:ze.key)==="tableContents"))==null?void 0:je.contents),Pe})}return Ue})}let Ba={};if(((oe=(B=se==null?void 0:se.extraValues)==null?void 0:B.input)==null?void 0:oe.length)>0){const ca=(ke=(W=se==null?void 0:se.extraValues)==null?void 0:W.input)==null?void 0:ke.map(async Ue=>{var xa;re!=null&&re.find(Na=>Na===Ue)?Ba=await ee(Ue,Ke):Ba[Object.keys(Ue)[0]]=await ee((xa=Object.values(Ue))==null?void 0:xa[0],Ke,fe)});await Promise.all(ca)}else Ba=await ee("/",Ke);let q=!1;(Ve=(Ie=se==null?void 0:se.extraValues)==null?void 0:Ie.output)==null||Ve.forEach(ca=>{var Ue,xa;(xa=(Ue=Object.values(ca))==null?void 0:Ue[0])!=null&&xa.includes(".doc")&&(q=!0)});let F;if(q){const ca=M.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});F=await Ja.axios.post(se.api,Ba,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ca.close()})}else F=await Ja.axios.post(se.api,Ba,{headers:{"Content-Type":"application/json"}});let Q=(ua=(ie=(Ea=(Qe=M.cloneDeep(se))==null?void 0:Qe.extraValues)==null?void 0:Ea.output)==null?void 0:ie.map(ca=>{var Ue,xa,Na,Ce,Pa,Ca,oa,Aa,De,wa,Je,xe,H,Oe,Re,Ia;if(!((xa=(Ue=Object.values(ca))==null?void 0:Ue[0])!=null&&xa.includes(".doc"))){let na=(wa=(De=(Aa=(Ce=M.cloneDeep((Na=Object.values(ca))==null?void 0:Na[0]))==null?void 0:Ce.split("["))==null?void 0:Aa[((oa=(Ca=M.cloneDeep((Pa=Object.values(ca))==null?void 0:Pa[0]))==null?void 0:Ca.split("["))==null?void 0:oa.length)-1])==null?void 0:De.split("]"))==null?void 0:wa[0],za=na==null?void 0:na.split(":"),Ae=(H=M.cloneDeep((Je=Object.values(ca))==null?void 0:Je[0]))==null?void 0:H.substring(0,M.cloneDeep((xe=Object.values(ca))==null?void 0:xe[0]).lastIndexOf("["));if(Ae=(Re=M.cloneDeep(Ae))==null?void 0:Re.slice(0,((Oe=M.cloneDeep(Ae))==null?void 0:Oe.length)-1),Ae!=null&&Ae.includes("[")){let Pe="";if((Ia=le.contentTransArrayToAll(Ae,"/"))==null||Ia.forEach(je=>{var ze,we,tl,Dl,Ml,jl,gl;if(!(je!=null&&je.includes("[")))Pe=Pe===""?Pe+je.replaceAll("/",""):Pe+"/"+je.replaceAll("/","");else{let er=M.cloneDeep(je).slice(1,((ze=M.cloneDeep(je))==null?void 0:ze.length)-1),el=(jl=(Ml=(Dl=(tl=(we=M.cloneDeep(er))==null?void 0:we.split("["))==null?void 0:tl[1])==null?void 0:Dl.split("]"))==null?void 0:Ml[0])==null?void 0:jl.split(":"),$l="",Wa=(gl=Ke==null?void 0:Ke.find(Kl=>(Kl==null?void 0:Kl.name)===(el==null?void 0:el[0])))==null?void 0:gl.compData;Wa==null||Wa.forEach(Kl=>{var Yl;(Kl==null?void 0:Kl.key)==="formContent"&&((Yl=Kl==null?void 0:Kl.contents)==null||Yl.forEach(ar=>{(ar==null?void 0:ar.key)===(el==null?void 0:el[1])&&($l=ar==null?void 0:ar.value)}))}),Pe=Pe===""?Pe+$l.replaceAll("/",""):Pe+"/"+$l.replaceAll("/","")}}),Ae=Pe,Ae[(Ae==null?void 0:Ae.length)-1]!=="/")return Ae}}}))==null?void 0:ua.filter(ca=>ca);Q=[...new Set(M.cloneDeep(Q))];let pe=Q==null?void 0:Q.map(async ca=>{let Ue=await le.getItemData(ca,sessionStorage.getItem("systemKey"),"",!1,"","",fe);if((Ue==null?void 0:Ue.length)===0)return await le.getParentContents(ca)});await Promise.all(pe);let ve=[],da=(Me=(ea=(ce=M.cloneDeep(se))==null?void 0:ce.extraValues)==null?void 0:ea.output)==null?void 0:Me.map(async ca=>{var Aa,De,wa,Je,xe,H,Oe,Re,Ia,na,za,Ae,Pe,je,ze,we,tl,Dl,Ml,jl,gl,er,el,$l,Wa,Kl,Yl,ar,_l,br,va,sl,pa,Ha,la,Ka,Sl,Ee,ia,ja,Te,La,al,xl,Nl,Le,ha,ta,ga,ma,fl,Fe,ml,Be,Pl,Sa,ul,Za,bl,Ra,Rl,Er,kn,Ur,mr,Xr,on,Or,rr,Qr;if((De=(Aa=Object.values(ca))==null?void 0:Aa[0])!=null&&De.includes(".doc")){var Ue=new Blob([F.data],{type:"application/octet-stream;charset=UTF-8"}),xa=F.headers["content-disposition"],Na=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Ce=Na.exec(xa),Pa=Ce==null?void 0:Ce[1],Ca=document.createElement("a"),oa=window.URL.createObjectURL(Ue);f.value=[{name:Pa,blobUrl:oa}],t.value=!0}else{let qr=(na=(Ia=(Re=(Je=M.cloneDeep((wa=Object.values(ca))==null?void 0:wa[0]))==null?void 0:Je.split("["))==null?void 0:Re[((Oe=(H=M.cloneDeep((xe=Object.values(ca))==null?void 0:xe[0]))==null?void 0:H.split("["))==null?void 0:Oe.length)-1])==null?void 0:Ia.split("]"))==null?void 0:na[0],ir=qr==null?void 0:qr.split(":"),Cr=(Pe=M.cloneDeep((za=Object.values(ca))==null?void 0:za[0]))==null?void 0:Pe.substring(0,M.cloneDeep((Ae=Object.values(ca))==null?void 0:Ae[0]).lastIndexOf("["));if(Cr!=null&&Cr.includes("[")?Cr=(ze=M.cloneDeep(Cr))==null?void 0:ze.slice(0,((je=M.cloneDeep(Cr))==null?void 0:je.length)-1):Cr===""&&(Cr=S.value),Cr=Cr.replaceAll("<","[").replaceAll(">","]"),Cr!=null&&Cr.includes("[")){let ql="";(we=le.contentTransArrayToAll(Cr,"/"))==null||we.forEach((or,kr)=>{var Lr,Il,an,tr,_r,Mr,Br,zn,ri,Mn,wn;if(!(or!=null&&or.includes("[")))ql=ql===""?ql+or.replaceAll("/",""):ql+"/"+or.replaceAll("/","");else{let Kn="",dn="";(Lr=M.cloneDeep(or))!=null&&Lr.includes("]")?(Kn=M.cloneDeep(or).slice(1,((Il=M.cloneDeep(or))==null?void 0:Il.length)-1),dn=(Br=(Mr=(_r=(tr=(an=M.cloneDeep(Kn))==null?void 0:an.split("["))==null?void 0:tr[1])==null?void 0:_r.split("]"))==null?void 0:Mr[0])==null?void 0:Br.split(":")):(Kn=M.cloneDeep(or).slice(1,(zn=M.cloneDeep(or))==null?void 0:zn.length),dn=(ri=M.cloneDeep(Kn))==null?void 0:ri.split("/"));let In="",ni=(Mn=Ke==null?void 0:Ke.find(pn=>(pn==null?void 0:pn.name)===(dn==null?void 0:dn[0])))==null?void 0:Mn.compData;ni==null||ni.forEach(pn=>{var ii;(pn==null?void 0:pn.key)==="formContent"&&((ii=pn==null?void 0:pn.contents)==null||ii.forEach(Tn=>{(Tn==null?void 0:Tn.key)===(dn==null?void 0:dn[1])&&(In=Tn==null?void 0:Tn.value)}))}),((wn=le.contentTransArrayToAll(Cr,"/"))==null?void 0:wn.length)-1!==kr?ql=ql===""?ql+In.replaceAll("/",""):ql+"/"+In.replaceAll("/",""):ql=ql+r.value+In.replaceAll("/","")}}),(tl=S.value)!=null&&tl.includes(ql)?Cr=S.value:Cr=ql}let en=M.cloneDeep((Dl=Object.keys(ca))==null?void 0:Dl[0]);if(((Ml=F==null?void 0:F.data)==null?void 0:Ml.statusCode)===200||((jl=F==null?void 0:F.data)==null?void 0:jl.code)===200){if(((er=(gl=F==null?void 0:F.data)==null?void 0:gl.data)!=null&&er[en]||($l=(el=F==null?void 0:F.data)==null?void 0:el.result)!=null&&$l[en])&&(ir==null?void 0:ir.length)===1)return await P(((Kl=(Wa=F==null?void 0:F.data)==null?void 0:Wa.data)==null?void 0:Kl[en])||((ar=(Yl=F==null?void 0:F.data)==null?void 0:Yl.result)==null?void 0:ar[en]),M.cloneDeep(Cr),ir,ka);if((br=(_l=F==null?void 0:F.data)==null?void 0:_l.data)!=null&&br[en]||(sl=(va=F==null?void 0:F.data)==null?void 0:va.result)!=null&&sl[en]){let ql=await _e(((Ha=(pa=F==null?void 0:F.data)==null?void 0:pa.data)==null?void 0:Ha[en])||((Ka=(la=F==null?void 0:F.data)==null?void 0:la.result)==null?void 0:Ka[en]),M.cloneDeep(Cr),ir);return ql&&(ve=[...ve,...ql]),ql}else{if(!((Sl=F==null?void 0:F.data)!=null&&Sl.data)){let ql=await le.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,"","",fe);ql=ql==null?void 0:ql.map(kr=>{var Lr;return(kr==null?void 0:kr.name)===(ir==null?void 0:ir[0])&&(kr.compData=(Lr=kr.compData)==null?void 0:Lr.map(Il=>{var an;return(Il==null?void 0:Il.key)==="formContent"&&(Il.contents=(an=Il.contents)==null?void 0:an.map(tr=>{var _r,Mr;return(tr==null?void 0:tr.key)===(ir==null?void 0:ir[1])&&(tr.value=(Mr=(_r=F==null?void 0:F.data)==null?void 0:_r.result)==null?void 0:Mr[en==null?void 0:en.replaceAll(":","")]),tr})),Il})),kr});let or=[];(Ee=ql==null?void 0:ql.filter(kr=>(kr==null?void 0:kr.comp)==="Form"))==null||Ee.forEach(async kr=>{let Lr={};for(let Il in kr)Il!=="id"&&(Lr[Il]=kr[Il]);or.push({id:kr==null?void 0:kr.id,value:{pageData:Lr}})}),(or==null?void 0:or.length)>0&&await Hr.batchUpdateInsofDataApi({dataList:or});return}if((ir==null?void 0:ir.length)===1){const ql=(Te=(ja=(ia=F==null?void 0:F.data)==null?void 0:ia.data)==null?void 0:ja.path)==null?void 0:Te.path;let or="";(Le=(Nl=(xl=(al=(La=ql==null?void 0:ql.split("("))==null?void 0:La[1])==null?void 0:al.split(")"))==null?void 0:xl[0])==null?void 0:Nl.split(":"))==null||Le.forEach(Il=>{var an,tr;or=or===""?or+((an=Il==null?void 0:Il.replaceAll("'",""))==null?void 0:an.trim()):or+"/"+((tr=Il==null?void 0:Il.replaceAll("'",""))==null?void 0:tr.trim())});let kr=[(fl=(ma=(ga=(ta=(ha=ql==null?void 0:ql.split("<"))==null?void 0:ha[1])==null?void 0:ta.split(">"))==null?void 0:ga[0])==null?void 0:ma.replaceAll("'",""))==null?void 0:fl.trim()],Lr;return(Be=(ml=(Fe=F==null?void 0:F.data)==null?void 0:Fe.data)==null?void 0:ml.data)!=null&&Be[ir==null?void 0:ir[0]]?Lr=await P((ul=(Sa=(Pl=F==null?void 0:F.data)==null?void 0:Pl.data)==null?void 0:Sa.data)==null?void 0:ul[ir==null?void 0:ir[0]],or,ir,ka):Lr=await ue((bl=(Za=F==null?void 0:F.data)==null?void 0:Za.data)==null?void 0:bl.data,or,kr,fe),Lr}else{const ql=(Er=(Rl=(Ra=F==null?void 0:F.data)==null?void 0:Ra.data)==null?void 0:Rl.path)==null?void 0:Er.path;let or="";return(on=(Xr=(mr=(Ur=(kn=ql==null?void 0:ql.split("("))==null?void 0:kn[1])==null?void 0:Ur.split(")"))==null?void 0:mr[0])==null?void 0:Xr.split(":"))==null||on.forEach(Lr=>{var Il,an;or=or===""?or+((Il=Lr==null?void 0:Lr.replaceAll("'",""))==null?void 0:Il.trim()):or+"/"+((an=Lr==null?void 0:Lr.replaceAll("'",""))==null?void 0:an.trim())}),await _e((Qr=(rr=(Or=F==null?void 0:F.data)==null?void 0:Or.data)==null?void 0:rr.data)==null?void 0:Qr[ir==null?void 0:ir[0]],or,ir)}}}}});if(await Promise.all(da),(ve==null?void 0:ve.length)>0){let ca=[];ve==null||ve.forEach(Na=>{ca!=null&&ca.find(Ce=>{var Pa,Ca,oa,Aa;return((Ca=(Pa=Ce==null?void 0:Ce.value)==null?void 0:Pa.pageData)==null?void 0:Ca.name)===((Aa=(oa=Na==null?void 0:Na.value)==null?void 0:oa.pageData)==null?void 0:Aa.name)})||ca.push(Na)});let Ue=[];ca==null||ca.forEach(Na=>{var Ca,oa,Aa,De;let Ce=M.cloneDeep(Na);Ce.value.pageData.compData=(Ca=Ce.value.pageData.compData)==null?void 0:Ca.map(wa=>{var Je;return(wa==null?void 0:wa.key)==="formContent"&&(wa.contents=(Je=wa.contents)==null?void 0:Je.map(xe=>{var Oe,Re,Ia,na;let H=(Oe=M.cloneDeep(ve))==null?void 0:Oe.find(za=>(za==null?void 0:za.keyType)===(xe==null?void 0:xe.key));if(H){let za=(na=(Ia=(Re=H.value.pageData.compData)==null?void 0:Re.find(Ae=>(Ae==null?void 0:Ae.key)==="formContent"))==null?void 0:Ia.contents)==null?void 0:na.find(Ae=>(Ae==null?void 0:Ae.key)===(xe==null?void 0:xe.key));xe.value=za==null?void 0:za.value}return xe})),wa}),Ue.push({id:Ce==null?void 0:Ce.id,value:Ce==null?void 0:Ce.value});let Pa=[];(De=(Aa=(oa=Ce==null?void 0:Ce.value)==null?void 0:oa.pageData)==null?void 0:Aa.compData)==null||De.forEach(wa=>{var Je;(wa==null?void 0:wa.key)==="formContent"&&((Je=wa==null?void 0:wa.contents)==null||Je.forEach(xe=>{var H,Oe,Re,Ia,na,za;if((Oe=(H=xe==null?void 0:xe.optionUrl)==null?void 0:H.menuSelect)!=null&&Oe.find(Ae=>Ae==null?void 0:Ae.includes("[")))if(Pa!=null&&Pa.find(Ae=>{var Pe,je,ze;return((Pe=Ae==null?void 0:Ae.key)==null?void 0:Pe.join(","))===((ze=(je=xe==null?void 0:xe.optionUrl)==null?void 0:je.menuSelect)==null?void 0:ze.join(","))})){let Ae=(Re=Pa==null?void 0:Pa.find(Pe=>{var je,ze,we;return((je=Pe==null?void 0:Pe.key)==null?void 0:je.join(","))===((we=(ze=xe==null?void 0:xe.optionUrl)==null?void 0:ze.menuSelect)==null?void 0:we.join(","))}))==null?void 0:Re.value;Ae.push({key:xe==null?void 0:xe.prop,groups:(Ia=xe==null?void 0:xe.optionUrl)==null?void 0:Ia.groupSelect,value:xe==null?void 0:xe.value}),Pa=Pa==null?void 0:Pa.map(Pe=>{var je,ze,we;return((je=Pe==null?void 0:Pe.key)==null?void 0:je.join(","))===((we=(ze=xe==null?void 0:xe.optionUrl)==null?void 0:ze.menuSelect)==null?void 0:we.join(","))&&(Pe.value=Ae),Pe})}else Pa.push({key:(na=xe==null?void 0:xe.optionUrl)==null?void 0:na.menuSelect,value:[{key:xe==null?void 0:xe.prop,groups:(za=xe==null?void 0:xe.optionUrl)==null?void 0:za.groupSelect,value:xe==null?void 0:xe.value}]})}))}),(Pa==null?void 0:Pa.length)>0&&(Pa=Pa==null?void 0:Pa.map(wa=>{var xe;let Je="";return(xe=wa==null?void 0:wa.key)==null||xe.forEach(H=>{var Oe;if(!(H!=null&&H.includes("[")))Je=Je===""?Je+H:Je+"/"+H;else{let Re="",Ia=(Oe=H==null?void 0:H.replaceAll("[","").replaceAll("]",""))==null?void 0:Oe.split(":");Ke==null||Ke.forEach(na=>{var za;(na==null?void 0:na.name)===(Ia==null?void 0:Ia[0])&&((za=na==null?void 0:na.compData)==null||za.forEach(Ae=>{var Pe;(Ae==null?void 0:Ae.key)==="formContent"&&((Pe=Ae==null?void 0:Ae.contents)==null||Pe.forEach(je=>{(je==null?void 0:je.prop)===(Ia==null?void 0:Ia[1])&&(Re=je==null?void 0:je.value)}))}))}),Je=Je+r.value+Re}}),wa.key=Je,wa})),Pa==null||Pa.forEach(wa=>{var Oe,Re,Ia;let Je=(Oe=fe[wa.key])==null?void 0:Oe.find(na=>{var za,Ae,Pe,je,ze,we,tl;return((Ae=(za=na==null?void 0:na.value)==null?void 0:za.pageData)==null?void 0:Ae.name)===((ze=(je=(Pe=wa==null?void 0:wa.value)==null?void 0:Pe[0])==null?void 0:je.groups)==null?void 0:ze[0])&&((tl=(we=na==null?void 0:na.value)==null?void 0:we.pageData)==null?void 0:tl.name)!==void 0}),xe=Je==null?void 0:Je.id,H=(Re=Je==null?void 0:Je.value)==null?void 0:Re.pageData;H.compData=(Ia=H.compData)==null?void 0:Ia.map(na=>{var za;return(na==null?void 0:na.key)==="formContent"&&(na.contents=(za=na.contents)==null?void 0:za.map(Ae=>{var je;let Pe=(je=wa.value)==null?void 0:je.find(ze=>(ze==null?void 0:ze.key)===(Ae==null?void 0:Ae.prop));return Pe&&(Ae.value=Pe.value),Ae})),na}),Ue.push({id:xe,value:{pageData:H}})})});let xa=(de=M.cloneDeep(ve))==null?void 0:de[0];(Ue==null?void 0:Ue.length)>0&&await Hr.batchUpdateInsofDataApi({dataList:Ue})}m.setFreshContent(!0)}x.setImportLoading(!1)}catch{Ja.ElMessage.error("方法执行错误,请查看方法!"),x.setImportLoading(!1)}C.value=!0},re=["createInsofDataApi"],he=Fl.debounce(async se=>{X(se)},100),$e=async se=>{var Ve,Qe,Ea;const B=M.cloneDeep(se);let oe,W=new WeakMap;se!=null&&se[0].path&&(oe=await(B==null?void 0:B.map(async(ie,ua)=>{var Ba,q,F,Q,pe,ve,da,ca,Ue,xa,Na,Ce,Pa,Ca,oa,Aa;const ea=(Ba=W[ie==null?void 0:ie.path])==null?void 0:Ba.filter(De=>{var wa;return((wa=De==null?void 0:De.key)==null?void 0:wa.type)==="data"});let Me="";const de=await le.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,W);ea==null||ea.forEach(De=>{var wa,Je,xe,H,Oe;((Je=(wa=De==null?void 0:De.value)==null?void 0:wa.tableData)==null?void 0:Je.算法名称)===((xe=B==null?void 0:B[ua])==null?void 0:xe.method)&&(Me=(Oe=(H=De==null?void 0:De.value)==null?void 0:H.tableData)==null?void 0:Oe.算法体)});const fe=await le.getItemData(ie==null?void 0:ie.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,W);let Ke="",ka=(pe=(Q=(F=(q=fe==null?void 0:fe[0])==null?void 0:q.compData)==null?void 0:F.find(De=>(De==null?void 0:De.key)==="header"))==null?void 0:Q.contents)==null?void 0:pe.findIndex(De=>(De==null?void 0:De.prop)==="算法体");return(da=(ve=fe==null?void 0:fe[0])==null?void 0:ve.compData)==null||da.forEach(De=>{var wa;(De==null?void 0:De.key)==="tableContents"&&((wa=De==null?void 0:De.contents)==null||wa.forEach(Je=>{Je!=null&&Je.find(xe=>xe===(ie==null?void 0:ie.method))&&(Ke=Je[ka])}))}),{buttonName:((ca=B==null?void 0:B[ua])==null?void 0:ca.method)||((Na=(xa=(Ue=ea==null?void 0:ea[0])==null?void 0:Ue.value)==null?void 0:xa.tableData)==null?void 0:Na.算法名称),api:(Me===""?(Ca=(Pa=(Ce=ea==null?void 0:ea[0])==null?void 0:Ce.value)==null?void 0:Pa.tableData)==null?void 0:Ca.算法体:Me)||Ke,content:de==null?void 0:de.filter(De=>De.comp!=="methodButton"),extraContent:(oa=M.cloneDeep(ie.value))==null?void 0:oa.slice(1),methodName:(ie==null?void 0:ie.path)??"",extraValues:(Aa=B==null?void 0:B[ua])==null?void 0:Aa.data}})));const ke=B==null?void 0:B.map(async ie=>{var fe,Ke,ka,Ba,q,F;const ua=(fe=resAll.data.result)==null?void 0:fe.filter(Q=>{var pe,ve,da;return((pe=Q==null?void 0:Q.key)==null?void 0:pe.parentTable)===""&&((ve=Q==null?void 0:Q.key)==null?void 0:ve.type)==="method"&&((da=Q==null?void 0:Q.key)==null?void 0:da.methodName)===Q.method}),ce=ua==null?void 0:ua[0],ea=(Ke=resAll.data.result)==null?void 0:Ke.filter(Q=>{var pe,ve;return((pe=Q==null?void 0:Q.key)==null?void 0:pe.type)==="methodData"&&((ve=Q==null?void 0:Q.key)==null?void 0:ve.tableId)===(ce==null?void 0:ce.id)}),Me=await le.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,W),de=ea==null?void 0:ea[0];return{buttonName:(ka=ce==null?void 0:ce.key)==null?void 0:ka.methodKey,api:(q=(Ba=de==null?void 0:de.value)==null?void 0:Ba.tableData)==null?void 0:q[0],content:Me==null?void 0:Me.filter(Q=>Q.comp!=="methodButton"),extraContent:(F=M.cloneDeep(ie.value))==null?void 0:F.slice(1),methodName:(ie==null?void 0:ie.method)??""}}),Ie=(Ve=se==null?void 0:se[0])!=null&&Ve.path&&((Qe=se==null?void 0:se[0])==null?void 0:Qe.path)!==""?await Promise.all(oe):await Promise.all(ke);l.value=Ie==null?void 0:Ie.filter(ie=>ie==null?void 0:ie.extraContent),(Ea=l.value)==null||Ea.forEach(ie=>{var ua;ie.api===""&&((ua=ie.content)==null||ua.forEach(ce=>{var ea;ce.comp=="Table"&&m.setExtraContents(le.methodTableToContent(ce.compData,(ea=ie.extraContent)==null?void 0:ea[0]))}))})};return e.watch(()=>i.itemData,async()=>{w.value=="view"&&!C.value&&await $e(M.cloneDeep(i.itemData)),C.value=!1},{immediate:!0,deep:!0}),(se,B)=>{var oe,W,ke;return e.unref(w)!=="edit"?(e.openBlock(),e.createElementBlock("div",w4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((oe=l.value)==null?void 0:oe.filter(Ie=>(Ie==null?void 0:Ie.buttonName)!=="保存"),Ie=>{var Ve;return e.openBlock(),e.createElementBlock("div",null,[Ie.api!==""?(e.openBlock(),e.createBlock(e.unref(ps._sfc_main),{key:0,disabled:e.unref($)===e.unref(S)&&!((Ve=Ie==null?void 0:Ie.buttonName)!=null&&Ve.includes("预览")),class:"calculator-content",modelValue:Ie.buttonName,onClickTrigger:Qe=>e.unref(he)(Ie),loading:y.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(Y)!==""&&((ke=e.unref(S))==null?void 0:ke[((W=e.unref(S))==null?void 0:W.length)-1])!==e.unref(r)?(e.openBlock(),e.createBlock(e.unref(ps._sfc_main),{key:0,class:"calculator-content",onClickTrigger:R,modelValue:"保存"})):e.createCommentVNode("",!0)]),t.value?(e.openBlock(),e.createBlock(pl.ssFilePreview,{key:0,fileDataList:f.value,onDestroy:V},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},S4=nr._export_sfc(_4,[["__scopeId","data-v-063aa9af"]]),E4={};function C4(a,l){return" 567 "}const D4=nr._export_sfc(E4,[["render",C4]]),T4={class:"module content"},B4={class:"module data"},N4={class:"module layout"},A4={class:"form-content"},z4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.reactive({visible:!1,width:"40%",title:"签名配置"}),t=e.ref("create"),f=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),u=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),m=e.ref({}),y=e.ref([]),x=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:y.value},{key:"signConfig",contents:m.value}]}),d=z=>{var $;m.value=M.cloneDeep(z),r("change",($=x())==null?void 0:$.compData)},A=z=>{var $,O;if((z==null?void 0:z.buttonName)==="确认"){const S=M.cloneDeep(z==null?void 0:z.content);switch(t.value){case"create":y.value.push({...S,index:(($=y.value)==null?void 0:$.length)+1});break}r("change",(O=x())==null?void 0:O.compData),i.visible=!1}else i.visible=!1},w=(z,$)=>{var O,S;switch(z){case"create":(O=u.value)==null||O.forEach(k=>{k.value=""}),t.value="create",i.visible=!0;break;case"update":(S=u.value)==null||S.forEach(k=>{k.value=$[k==null?void 0:k.prop]}),t.value="update",i.visible=!0;break;case"delete":y.value.splice($,1),t.value="delete";break}},Y=()=>{i.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,z=>{var $,O;z&&(m.value=(($=z==null?void 0:z.find(S=>S.key==="signConfig"))==null?void 0:$.contents)??{},y.value=((O=z==null?void 0:z.find(S=>S.key==="signTypeList"))==null?void 0:O.contents)??[])},{immediate:!0}),(z,$)=>{const O=e.resolveComponent("svg-icon"),S=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",T4,[$[2]||($[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(S,{class:"module-icon",id:"themeButton",onClick:$[0]||($[0]=k=>w("create"))},{icon:e.withCtx(()=>[e.createVNode(O,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[$[1]||($[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",B4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(k,_)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:_},[e.createElementVNode("span",null,e.toDisplayString(k==null?void 0:k.label),1),e.createElementVNode("div",null,[e.createVNode(S,{type:"primary",size:"small",onClick:b=>w("update",{...k,index:_+1})},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(S,{type:"danger",size:"small",onClick:b=>w("delete",_)},{default:e.withCtx(()=>$[4]||($[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",N4,[e.createVNode(pl.ssForm,{rowContents:c.value,onChange:d},null,8,["rowContents"])])]),e.createVNode(Ir.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:Y,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",A4,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:f.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),M4=nr._export_sfc(z4,[["__scopeId","data-v-487e0536"]]),I4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(0),t=e.computed(()=>{var x,d;return(x=n==null?void 0:n.stepConfig)!=null&&x.allowTrigger?i.value:(d=n==null?void 0:n.stepConfig)==null?void 0:d.active}),f=(x,d)=>{i.value=d-1,r("clickStep",x,d)};e.onMounted(()=>{var x;r("clickStep",(x=n==null?void 0:n.stepList)==null?void 0:x[0],0)});const c=x=>pl.getComponent(x),u=()=>{var d;const x=(d=n==null?void 0:n.stepList)==null?void 0:d.find((A,w)=>w+1===t.value);return console.log("findStep",x),x?x==null?void 0:x.children:[]},m=x=>{r("clickTrigger",x)},y=x=>{r("changeTrigger",x)};return(x,d)=>{var Y,z,$,O,S;const A=e.resolveComponent("el-step"),w=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(w,{direction:(Y=a.stepConfig)==null?void 0:Y.direction,active:t.value,"finish-status":"success",simple:(z=a.stepConfig)==null?void 0:z.simple,"align-center":(($=a.stepConfig)==null?void 0:$.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(k,_)=>(e.openBlock(),e.createBlock(A,{key:_,class:"step-item",onClick:b=>f(k,_+1)},{title:e.withCtx(()=>[e.renderSlot(x.$slots,"title",{title:k==null?void 0:k.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(x.$slots,"description",{descriptions:k==null?void 0:k.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(O=a.stepConfig)!=null&&O.allowTrigger&&((S=a.stepConfig)!=null&&S.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u(),(k,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(k==null?void 0:k.type)),{modelValue:k.value,"onUpdate:modelValue":b=>k.value=b,onClickTrigger:m,onChangeTrigger:y,content:k==null?void 0:k.content},e.createSlots({_:2},[e.renderList(x.$slots,(b,C)=>({name:C,fn:e.withCtx(R=>[e.renderSlot(x.$slots,C,e.mergeProps({ref_for:!0},R||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),O4=nr._export_sfc(I4,[["__scopeId","data-v-a30ff621"]]),L4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const n=a,r=l,i=e.ref({}),t=e.ref([]),f=(c,u)=>{r("clickStep",c,u)};return e.watch(()=>n==null?void 0:n.itemData,c=>{var x,d,A,w;i.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let u=((x=c==null?void 0:c.find(Y=>(Y==null?void 0:Y.key)==="stepName"))==null?void 0:x.contents)??[],m=[];(A=(d=c==null?void 0:c.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:d.contents)==null||A.forEach(Y=>{m.push({label:Y==null?void 0:Y.label,prop:Y==null?void 0:Y.prop,name:Y==null?void 0:Y.prop,type:"text",disabled:!0})});let y=((w=c==null?void 0:c.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:w.contents)??[];u=u==null?void 0:u.map((Y,z)=>{let $=m==null?void 0:m.map(O=>{var S;return{...O,value:(S=y==null?void 0:y[z])==null?void 0:S[O==null?void 0:O.prop]}});return{title:Y,description:$}}),t.value=u},{immediate:!0,deep:!0}),(c,u)=>{const m=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(O4,{stepConfig:i.value,stepList:t.value,onClickStep:f},{icon:e.withCtx(()=>[e.createVNode(m,{name:"import"})]),title:e.withCtx(({title:y})=>[e.createTextVNode(e.toDisplayString(y),1)]),description:e.withCtx(({descriptions:y})=>[e.createVNode(pl.ssForm,{ref:"formRef",rowContents:y,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),R4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,n)=>{const r=e.resolveComponent("el-timeline-item"),i=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(i,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(t,f)=>(e.openBlock(),e.createBlock(r,{key:f,timestamp:t.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:t==null?void 0:t.content,timestamp:t==null?void 0:t.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),$4=nr._export_sfc(R4,[["__scopeId","data-v-4172a886"]]),V4={class:"line-content"},F4={class:"line-time"},P4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,n=e.ref({}),r=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,i=>{var t,f;r.value=(t=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="timeLineList"))==null?void 0:t.contents,n.value=(f=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="timeLineConfig"))==null?void 0:f.contents},{immediate:!0}),(i,t)=>(e.openBlock(),e.createBlock($4,{activities:r.value,timeLineConfig:n.value},{content:e.withCtx(({content:f,timestamp:c})=>[e.createElementVNode("span",V4,e.toDisplayString(f),1),e.createElementVNode("span",F4,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),j4=nr._export_sfc(P4,[["__scopeId","data-v-b4d9deed"]]),H4={class:"tabs-content"},U4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(a,{emit:l}){const n=a,r=l,i=e.ref();e.watch(()=>n==null?void 0:n.itemData,()=>{i.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const t=d=>{r("change",d)},f=(d,A)=>{r("contentChange",d,A)},c=d=>{r("pageChange",d)},u=d=>{r("rowClick",d)},m=(d,A)=>{r("routeUrl",d,A)},y=d=>{r("clickTrigger",d)},x=(d,A)=>{r("clickMainKey",d,A)};return(d,A)=>{var w,Y;return e.openBlock(),e.createElementBlock("div",H4,[(w=i.value)!=null&&w.length?(e.openBlock(),e.createBlock(pl.ssTab,{tabsContents:i.value,key:(Y=i.value)==null?void 0:Y.length},{pane:e.withCtx(({tab:z,index:$})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Zi)(z==null?void 0:z.comp)),{related:z==null?void 0:z.relatedTables,compNames:n==null?void 0:n.compNames,compName:z==null?void 0:z.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:a.isDevMode,itemData:z==null?void 0:z.compData,childItemData:z==null?void 0:z.itemChildData,onChange:t,index:(z==null?void 0:z.id)??$,config:{showIndex:z==null?void 0:z.showIndex,allowMove:z==null?void 0:z.allowMove,viewport:z==null?void 0:z.viewport,status:z==null?void 0:z.status},onContentChange:f,onPageChange:c,onRowClick:u,onRouteUrl:m,parentTableId:z==null?void 0:z.tableId,allMapContents:a.allMapContents,children:z==null?void 0:z.children,level:1,onClickTrigger:y,onClickMainKey:x},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),q4=nr._export_sfc(U4,[["__scopeId","data-v-1ea318b4"]]),W4={class:"type-select"},K4=["onClick"],G4={class:"list-icon"},Y4={__name:"modelSelect",setup(a){const l=li(M.pinia),{itemData:n}=M.storeToRefs(l),r=i=>{const t=M.cloneDeep(n.value);t.push({comp:i.comp,name:i.name,compData:[]}),l.setItemData(t)};return(i,t)=>{const f=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",W4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(fu),(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:u},[e.createElementVNode("div",{class:"list-content",onClick:m=>r(c)},[e.createElementVNode("div",G4,[e.createVNode(f,{name:c.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(c.name),1)],8,K4)]))),128))])}}},J4=nr._export_sfc(Y4,[["__scopeId","data-v-91799bf8"]]),X4={class:"fill-content"},Z4={class:"operate-content"},Q4={class:"collapse-title-content"},e2={class:"collapse-title-item"},a2={key:1},l2=["onClick"],r2={class:"icon-content"},n2={key:0,class:"edit-content"},i2=["onClick"],o2={class:"comp-child"},t2={__name:"modelFill",setup(a){const l=li(M.pinia),{itemData:n,originalData:r}=M.storeToRefs(l),i=e.ref([]);e.ref([]);const t=e.ref([]),f=e.ref([]),c=A=>{var Y;let w=(Y=M.cloneDeep(f.value))==null?void 0:Y.map((z,$)=>(A===$&&(z.content=!0),z));f.value=w},u=A=>{var Y;let w=(Y=M.cloneDeep(f.value))==null?void 0:Y.map((z,$)=>(A===$&&(z.content=!1),z));f.value=w,i.value=M.cloneDeep(n.value)},m=(A,w)=>{var O;let Y=(O=M.cloneDeep(f.value))==null?void 0:O.map((S,k)=>(A===k&&(S.content=!1),S));f.value=Y;const z=M.cloneDeep(n.value),$=z==null?void 0:z.filter((S,k)=>(k===A&&(S.name=w),S));l.setOriginalData($),l.setItemData($)};e.watch(()=>n.value,()=>{var A,w,Y;!n.value||((A=n.value)==null?void 0:A.length)===0?i.value=[]:i.value=(w=M.cloneDeep(n.value))==null?void 0:w.filter(z=>(z==null?void 0:z.comp)!=="methodButton"),t.value=i.value,f.value=(Y=M.cloneDeep(t.value))==null?void 0:Y.map((z,$)=>({id:$,content:!1}))},{deep:!0,immediate:!0});const y=A=>Li(A),x=(A,w,Y)=>{var $,O;if(!A)return;let z=M.cloneDeep(n.value);z=($=z==null?void 0:z.map((S,k)=>(k===Y&&(S.compData=A),S)))==null?void 0:$.filter(S=>(S==null?void 0:S.comp)!=="methodButton"),f.value=(O=M.cloneDeep(z))==null?void 0:O.map((S,k)=>({id:k,content:!1})),l.setOriginalData(z),l.setItemData(z)},d=A=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const w=M.cloneDeep(n.value),Y=w==null?void 0:w.filter((z,$)=>$!==A);l.setOriginalData(Y),l.setItemData(Y),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(A,w)=>{const Y=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",X4,[w[1]||(w[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",Z4,[e.createVNode(oc.default,{class:"collapse-content",collapseContents:i.value},{title:e.withCtx(({item:z,index:$})=>{var O,S,k,_,b,C,R,V,ae,ee;return[e.createElementVNode("div",Q4,[e.createElementVNode("div",e2,[(S=(O=f.value)==null?void 0:O.find(_e=>_e.id===$))!=null&&S.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:z.name&&z.name!==""?"8px":"0px"})},e.toDisplayString(z.name),5)),(_=(k=f.value)==null?void 0:k.find(_e=>_e.id===$))!=null&&_.content?(e.openBlock(),e.createElementBlock("div",a2,[e.createVNode(pl.ssInput,{modelValue:z.name,"onUpdate:modelValue":_e=>z.name=_e,onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(b=f.value)==null?void 0:b.find(_e=>_e.id===$))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(_e=>c($),["stop"]),class:"icon-content"},[e.createVNode(Y,{name:"Edit",style:{width:"16px",height:"16px"}})],8,l2))]),e.createElementVNode("div",r2,[(V=(R=f.value)==null?void 0:R.find(_e=>_e.id===$))!=null&&V.content?(e.openBlock(),e.createElementBlock("div",n2,[e.createVNode(Y,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(_e=>u($),["stop"])},null,8,["onClick"]),e.createVNode(Y,{name:"Save",onClick:e.withModifiers(_e=>m($,z.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(ee=(ae=f.value)==null?void 0:ae.find(_e=>_e.id===$))!=null&&ee.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(_e=>d($),["stop"]),class:"icon-content"},[e.createVNode(Y,{name:"Delete",style:{width:"16px",height:"16px"}})],8,i2))])])]}),content:e.withCtx(({item:z,index:$})=>{var O,S;return[e.createElementVNode("div",o2,[e.createTextVNode(e.toDisplayString(y(z.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y(z.comp+"Operate")),{itemContents:z==null?void 0:z.compData,originalItemContents:(S=(O=t.value)==null?void 0:O.find((k,_)=>_===$))==null?void 0:S.compData,onChange:k=>x(k,z,$)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},s2=nr._export_sfc(t2,[["__scopeId","data-v-a46a44b9"]]),c2={key:0,class:"show-content"},u2={style:{display:"flex"}},d2={__name:"modelShow",setup(a){const l=li(M.pinia),{itemData:n}=M.storeToRefs(l),r=e.ref([]);e.watch(()=>n.value,()=>{var t;!n.value||((t=n.value)==null?void 0:t.length)===0?r.value=[]:r.value=M.cloneDeep(n.value)},{deep:!0,immediate:!0});const i=t=>Li(t);return(t,f)=>{var c;return((c=r.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",c2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:m},[e.createElementVNode("div",u2,e.toDisplayString(u.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i(u.comp)),{itemData:u==null?void 0:u.compData,childItemData:u==null?void 0:u.itemChildData,key:m},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},p2=nr._export_sfc(d2,[["__scopeId","data-v-3f3e863e"]]),f2={class:"tabs-header"},h2={class:"tabs-list"},v2={class:"tab-name"},m2={class:"tab-actions"},y2=["onClick"],g2=["onClick"],b2=["onClick"],k2={class:"model-operate"},x2={class:"model-select",style:{display:"unset"}},w2={class:"existing-components"},_2={class:"component-list"},S2=["onClick"],E2={class:"component-info"},C2={class:"component-type"},D2={class:"component-name"},T2={class:"model-fill"},B2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.ref([]),t=e.ref(!1),f=e.ref(""),c=e.ref({title:""}),u=e.ref(-1),m=e.ref(!1),y=e.ref(-1),x=e.ref(new WeakMap),d=e.ref(null),A=li(M.pinia),{itemData:w}=M.storeToRefs(A),Y=()=>{f.value="新增标签页",c.value.title="",u.value=-1,t.value=!0},z=se=>{f.value="修改标签页",c.value.title=i.value[se].title,u.value=se,t.value=!0},$=se=>{const B=k(se);x.value.delete(B),i.value.splice(se,1),$e()},O=()=>{if(c.value.title.trim()){if(u.value===-1){const se={title:c.value.title,value:c.value.title,label:c.value.title,children:[],id:S()};i.value.push(se)}else i.value[u.value].title=c.value.title,i.value[u.value].value=c.value.title,i.value[u.value].label=c.value.title;t.value=!1,$e()}},S=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,k=se=>{const B=i.value[se];return B.id||(B.id=S()),B.id},_=se=>{var W;y.value=se;const B=k(se);d.value=M.cloneDeep(w.value);let oe=x.value.get(B);!oe&&((W=i.value[se].children)==null?void 0:W.length)>0&&(oe=V(i.value[se].children)),oe?A.setItemData(M.cloneDeep(oe)):A.setItemData([]),m.value=!0},b=e.computed(()=>{const se=M.useModelComp(M.pinia),B=M.storeToRefs(se).itemData.value;return console.log("可用组件数据",B),!B||!Array.isArray(B)?[]:B.filter(oe=>{var W;if(oe.comp==="Tabs"&&y.value>=0){const ke=k(y.value);if((W=oe.compData)==null?void 0:W.some(Ve=>{var Qe;return Ve.key==="stepList"&&((Qe=Ve.contents)==null?void 0:Qe.some(Ea=>Ea.id===ke))}))return!1}return!0})}),C=se=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[se]||se,R=se=>{var B;try{const oe=M.cloneDeep(se);oe.id=Date.now()+Math.random(),oe.comp==="Tabs"&&((B=oe.compData)==null||B.forEach(ke=>{ke.key==="stepList"&&ke.contents&&ke.contents.forEach(Ie=>{Ie.id=S()})}));const W=M.cloneDeep(w.value);W.push(oe),A.setItemData(W)}catch(oe){console.error("添加组件失败:",oe)}},V=se=>se.map(B=>{var oe;switch(B.type){case"form":return{comp:"Form",name:B.value||"表单",compData:ae(B.content)};case"table":return{comp:"Table",name:B.value||"表格",compData:ee(B.content)};default:return{comp:"Unknown",name:B.value||"",compData:((oe=B.content)==null?void 0:oe.originalData)||[]}}}),ae=se=>{if(!se)return[];const B=[];return se.rowContents&&B.push({key:"formContent",contents:se.rowContents}),se.buttonValue&&B.push({key:"formButton",contents:se.buttonValue}),typeof se.isEnableWrap<"u"&&B.push({key:"enableWrap",contents:se.isEnableWrap}),B},ee=se=>[],_e=()=>{if(y.value>=0&&y.value<i.value.length){const se=k(y.value);x.value.set(se,M.cloneDeep(w.value)),i.value[y.value].children=P(w.value),console.log("保存后的数据",P(w.value))}m.value=!1,y.value=-1,d.value=null,$e()},ue=()=>{d.value&&A.setItemData(M.cloneDeep(d.value)),m.value=!1,y.value=-1,d.value=null},U=()=>{m.value&&ue()},P=se=>{if(!Array.isArray(se))throw new Error("sourceData must be an array");return se.map((B,oe)=>{if(!B||typeof B!="object")return B;const{comp:W,name:ke,compData:Ie}=B;switch(W){case"Form":return{type:"form",content:X(Ie||[]),value:"表单"};case"Table":return{type:"table",content:re(Ie||[]),value:"表格"};default:return{type:"xxx",content:he(Ie||[]),value:""}}})},X=se=>{const B={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},oe={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return se.forEach((W,ke)=>{if(!W||typeof W!="object"){console.warn(`Invalid config at index ${ke}:`,W);return}const{key:Ie,contents:Ve}=W,Qe=oe[Ie];if(!Qe){console.warn(`Unknown Form config key: ${Ie}`);return}Ie==="enableWrap"?B[Qe]=!!Ve:B[Qe]=Array.isArray(Ve)?Ve:[]}),B},re=se=>{const B={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},oe={header:"columns",tableContents:"tableData"};return se.forEach((W,ke)=>{if(!W||typeof W!="object"){console.warn(`Invalid config at index ${ke}:`,W);return}const{key:Ie,contents:Ve}=W,Qe=oe[Ie];if(!Qe){console.warn(`Unknown Table config key: ${Ie}`);return}B[Qe]=Array.isArray(Ve)?Ve:[]}),B},he=se=>(console.log("Default conversion logic - to be implemented"),{originalData:se,processed:!1,componentType:"unknown"}),$e=()=>{const se=[{key:"stepList",contents:i.value}];r("change",se)};return e.watch(()=>n.itemContents,se=>{if(se&&se.length>0){const B=se.find(oe=>oe.key==="stepList");B&&B.contents&&(i.value=B.contents.map(oe=>({title:oe.title||"",value:oe.value||oe.title||"",label:oe.label||oe.title||"",children:oe.children||[],id:oe.id||S()})))}},{immediate:!0,deep:!0}),(se,B)=>{const oe=e.resolveComponent("svg-icon"),W=e.resolveComponent("el-input"),ke=e.resolveComponent("el-form-item"),Ie=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",f2,[B[6]||(B[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:Y},[e.createVNode(oe,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),B[5]||(B[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",h2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Ve,Qe)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:Qe},[e.createElementVNode("span",v2,e.toDisplayString(Ve.title),1),e.createElementVNode("div",m2,[e.createElementVNode("button",{onClick:Ea=>z(Qe)},"修改标题",8,y2),e.createElementVNode("button",{onClick:Ea=>_(Qe)},"布局调整",8,g2),e.createElementVNode("button",{onClick:Ea=>$(Qe)},"删除",8,b2)])]))),128))]),e.createVNode(Ir.ssDialog,{modelValue:t.value,"onUpdate:modelValue":B[2]||(B[2]=Ve=>t.value=Ve),title:f.value,onBeforeDestroy:B[3]||(B[3]=Ve=>t.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:B[1]||(B[1]=Ve=>t.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:O},"确定")]),default:e.withCtx(()=>[e.createVNode(Ie,{model:c.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(ke,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(W,{modelValue:c.value.title,"onUpdate:modelValue":B[0]||(B[0]=Ve=>c.value.title=Ve),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Ir.ssDialog,{modelValue:m.value,"onUpdate:modelValue":B[4]||(B[4]=Ve=>m.value=Ve),title:"布局调整",fullScreen:"",onBeforeDestroy:U},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:ue},"取消"),e.createElementVNode("button",{onClick:_e},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",k2,[e.createElementVNode("div",x2,[e.createVNode(J4),e.createElementVNode("div",w2,[B[8]||(B[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",_2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Ve=>(e.openBlock(),e.createElementBlock("div",{key:Ve.id,class:"component-item",onClick:Qe=>R(Ve)},[e.createElementVNode("div",E2,[e.createElementVNode("span",C2,e.toDisplayString(C(Ve.comp)),1),e.createElementVNode("span",D2,e.toDisplayString(Ve.name),1)]),B[7]||(B[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,S2))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:se.innerWidth},[e.createVNode(p2)])),e.createElementVNode("div",T2,[e.createVNode(s2)])])]),_:1},8,["modelValue"])])}}},N2=nr._export_sfc(B2,[["__scopeId","data-v-9096ed0d"]]);function A2(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}function z2(a){return{type:"line",color:["#5070DD","#B6D634","#505372","#FF994E","#0CA8DF","#FFD10A","#FB628B","#8466C1","#3EBE95"],...a}}function M2(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:[{type:"value"}],series:[]}}function I2(a){return{type:"bar",barWidth:"60%",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.1)"},itemStyle:{color:new Fl.LinearGradient(0,0,0,1,[{offset:0,color:"#94C2FD"},{offset:.7,color:"#6491E1"},{offset:1,color:"#3264C8"}])},emphasis:{itemStyle:{color:new Fl.LinearGradient(0,0,0,1,[{offset:0,color:"#3264C8"},{offset:.7,color:"#6491E1"},{offset:1,color:"#94C2FD"}])}},...a}}function O2(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function L2(a){return{type:"pie",color:["#5070DD","#B6D634","#505372","#FF994E","#0CA8DF","#FFD10A","#FB628B","#8466C1","#3EBE95"],radius:["40%","70%"],itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:function(l){return"{b|"+l.name+`}
|
|
26
|
-
{c|`+l.value+"}"},rich:{b:{fontFamily:"SourceHanSansSC",fontWeight:"bold",fontSize:14,color:"#333"},c:{fontFamily:"SourceHanSansSC",fontSize:12,color:"#666"},d:{fontFamily:"SourceHanSansSC",fontSize:12,color:"#999"}}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...a}}const R2=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),$2=a=>({type:"scatter",symbolSize:20,...a}),Dn={Line:{initBaseoptions:A2,initSeries:z2},Bar:{initBaseoptions:M2,initSeries:I2},Pie:{initBaseoptions:O2,initSeries:L2},Scatter:{initBaseoptions:R2,initSeries:$2}},V2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Dn==null?void 0:Dn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";const m=l==null?void 0:l.map(d=>d==null?void 0:d.prop);let y=[];if(m==null||m.forEach(d=>{var A;y.push((A=n==null?void 0:n[0])==null?void 0:A[d])}),!m||!y)return u;u.xAxis.data=m;const x=c({data:y});return u.series.push(x),u},F2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Dn==null?void 0:Dn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";const m=l==null?void 0:l.map(d=>d==null?void 0:d.prop);let y=[];if(m==null||m.forEach(d=>{var A;y.push((A=n==null?void 0:n[0])==null?void 0:A[d])}),!m||!y)return u;u.xAxis.data=m;const x=c({data:y});return u.series.push(x),u},P2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Dn==null?void 0:Dn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";const m=l==null?void 0:l.map(A=>A==null?void 0:A.prop);let y=[];if(m==null||m.forEach(A=>{var w;y.push((w=n==null?void 0:n[0])==null?void 0:w[A])}),!m||!y)return u;const x=[];for(let A=0;A<m.length;A++){const w=m[A],Y=y[A];x.push({name:w,value:Y})}const d=c({data:x});return u.series.push(d),u},j2=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:i}=a||{},t=Dn==null?void 0:Dn[r];if(!t)return;const{initBaseoptions:f,initSeries:c}=t,u=f();u.title.text=i??"";let m=[];const y=l==null?void 0:l.map(A=>A==null?void 0:A.prop);if(m=y==null?void 0:y.map(A=>{var Y;let w=[];return w.push(A),w.push((Y=n==null?void 0:n[0])==null?void 0:Y[A]),w}),!m)return u;const d=c({data:m});return u.series.push(d),u},H2=async(a=[])=>{var c,u,m,y,x;const l=((c=a==null?void 0:a.find(d=>d.key==="ChartType"))==null?void 0:c.contents)??{};let n=((u=a==null?void 0:a.find(d=>d.key==="header"))==null?void 0:u.contents)??[],r=((m=a==null?void 0:a.find(d=>d.key==="tableContents"))==null?void 0:m.contents)??[],i=((y=a==null?void 0:a.find(d=>d.key==="calculator"))==null?void 0:y.contents)??[];if((i==null?void 0:i.length)>0){i=i==null?void 0:i.map(A=>({methods:A==null?void 0:A.calculatorFilter,functionName:A==null?void 0:A.functionName,functionRelatedWords:A==null?void 0:A.functionRelatedWords}));let d=await It([],i,[],"Auto",[],[]);n=(x=d==null?void 0:d.xAxis)==null?void 0:x.map(A=>({label:A,prop:A})),r=d==null?void 0:d.yAxis}let{type:t}=l,f={};return t==="Line"&&(f=await V2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),t==="Bar"&&(f=await F2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),t==="Pie"&&(f=await P2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),t==="Scatter"&&(f=await j2({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),f},U2=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,n=e.ref({});e.onMounted(async()=>{const i=l==null?void 0:l.itemData;n.value=await H2(i)});const r=e.computed(()=>(l==null?void 0:l.height)||"300px");return(i,t)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:r.value})},[e.createVNode(Uu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),q2=nr._export_sfc(U2,[["__scopeId","data-v-d4c081e8"]]),W2={class:"chart-module layout"},K2={class:"chart-module content"},G2={class:"chart-module content"},Y2={class:"form-content"},J2={class:"dialog-footer"},X2={class:"form-content"},Z2={class:"dialog-footer"},Q2={class:"form-content"},e1={class:"dialog-footer"},a1=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,i=e.reactive({visible:!1,width:"840",title:"基础配置"}),t=e.ref([]),f=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],c=e.ref({}),u=Me=>{var de;t.value=f(),(de=t.value)==null||de.forEach(fe=>{var ka;const Ke=fe==null?void 0:fe.prop;fe.value=(ka=c==null?void 0:c.value)==null?void 0:ka[Ke]}),i.visible=!0},m=Me=>{c.value=Me},y=()=>{var Me;i.visible=!1,r("change",(Me=ce())==null?void 0:Me.compData)},x=e.reactive({visible:!1,width:"840",title:"数据配置"}),d=e.ref([]),A=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],w=e.ref({}),Y=()=>{const Me=d.value,de=M.cloneDeep(Me);return de==null||de.forEach(fe=>{var ka;const Ke=fe==null?void 0:fe.prop;fe.value=(ka=w.value)==null?void 0:ka[Ke]}),de},z=Me=>{var fe;w.value=Me;const de=Y();d.value=de,r("change",(fe=ce())==null?void 0:fe.compData)},$=async Me=>{const de=await le.getMenusContent(),fe=Y();fe==null||fe.forEach(Ke=>{(Ke==null?void 0:Ke.prop)==="menu"&&(Ke.contents=de)}),d.value=fe,x.visible=!0,await Ve(w.value.menu),await ie(w.value.group)},O=e.reactive({visible:!1,width:"840",title:"详情页配置"}),S=e.ref([]),k=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],_=e.ref({}),b=()=>{const Me=S.value,de=M.cloneDeep(Me);return de==null||de.forEach(fe=>{var ka;const Ke=fe==null?void 0:fe.prop;fe.value=(ka=_.value)==null?void 0:ka[Ke]}),de},C=Me=>{var fe;_.value=Me;const de=b();S.value=de,r("change",(fe=ce())==null?void 0:fe.compData)},R=async Me=>{await U();const de=M.cloneDeep(V.value),fe=b();fe==null||fe.forEach(Ke=>{var Ba;const ka=Ke==null?void 0:Ke.prop;Ke.value=(Ba=_==null?void 0:_.value)==null?void 0:Ba[ka],ka==="mainKey"&&(Ke.contents=de)}),S.value=fe,O.visible=!0},V=e.ref([]),ae=e.ref([]),ee=e.ref({}),_e=e.ref({}),ue=()=>{const{compData:Me}=W.value||{},de=Me==null?void 0:Me.find(Q=>{const{key:pe}=Q;return pe==="header"}),fe=(de==null?void 0:de.contents)||[],Ke=fe==null?void 0:fe.filter((Q,pe)=>{const{label:ve}=Q;return ve!=="操作"}),ka=Ke==null?void 0:Ke.findIndex((Q,pe)=>{const{isMainKey:ve}=Q;return ve});if(ka<0)return[];const Ba=Me==null?void 0:Me.find(Q=>{const{key:pe}=Q;return pe==="tableContents"}),q=(Ba==null?void 0:Ba.contents)||[];return q==null?void 0:q.map(Q=>{const pe=Q==null?void 0:Q[0];let ve=ka;Ja.isObject(pe)&&(pe!=null&&pe.id)&&(ve=ve+1);const da=Q==null?void 0:Q[ve];return{label:da,value:da}})},U=async()=>{const Me=await ue();V.value=Me},P=async Me=>{const de=sessionStorage.getItem("systemKey");return await le.getItemData(Me,de,"")},X=async Me=>{const de=Me;ae.value=de==null?void 0:de.map(fe=>{const{name:Ke}=fe;return ee.value[Ke]=fe,{label:Ke,value:Ke}})},re=Me=>{const{comp:de,compData:fe}=_e.value||{};if(de==="Table"){let Ke=b();Ke=Ke.filter(ka=>{const{prop:Ba}=ka;return Ba!=="formItems"}),Qe(Ke,fe),S.value=Ke}},he=async()=>{var fe,Ke;const Me=(fe=_==null?void 0:_.value)==null?void 0:fe.mainKey,de=(Ke=w==null?void 0:w.value)==null?void 0:Ke.menu;if(Me){const Ba=`${de==null?void 0:de.join("/")}^${Me}`,q=await P(Ba);await X(q);const F=b();F==null||F.forEach(Q=>{(Q==null?void 0:Q.prop)==="group"&&(Q.contents=ae.value)}),S.value=F}};e.watch(()=>{var Me;return(Me=_==null?void 0:_.value)==null?void 0:Me.mainKey},async(Me,de)=>{Me!=de&&Me&&await he()});const $e=async Me=>{const de=ee.value[Me];_e.value=de,await re()};e.watch(()=>{var Me;return(Me=_==null?void 0:_.value)==null?void 0:Me.group},async(Me,de)=>{Me!=de&&Me&&$e(Me)});const se=async()=>{var de;await he();const Me=(de=_.value)==null?void 0:de.group;await $e(Me)},B=e.ref([]),oe=e.ref({}),W=e.ref({}),ke=async Me=>{const de=Me==null?void 0:Me.join("/"),fe=sessionStorage.getItem("systemKey");return await le.getItemData(de,fe,"")},Ie=async Me=>{const de=await ke(Me);B.value=de==null?void 0:de.map(fe=>{const{name:Ke}=fe;return oe.value[Ke]=fe,{label:Ke,value:Ke}})},Ve=async(Me,de)=>{await Ie(Me);const fe=Y();fe==null||fe.forEach(Ke=>{(Ke==null?void 0:Ke.prop)==="group"&&(Ke.contents=B.value)}),d.value=fe};e.watch(()=>{var Me;return(Me=w==null?void 0:w.value)==null?void 0:Me.menu},async(Me,de)=>{const fe=Me==null?void 0:Me.join("/"),Ke=de==null?void 0:de.join("/");fe!=Ke&&await Ve(Me)});const Qe=(Me,de)=>{const fe=de==null?void 0:de.find(q=>{const{key:F}=q;return F==="header"}),Ke=(fe==null?void 0:fe.contents)||[],ka=Ke==null?void 0:Ke.filter((q,F)=>{const{label:Q}=q;return Q!=="操作"}),Ba=ka==null?void 0:ka.map((q,F)=>{const{label:Q}=q;return{label:Q,value:F}});Me==null||Me.forEach(q=>{const F=q==null?void 0:q.prop;(F==="nameCol"||F==="valueCol")&&(q.contents=Ba)})},Ea=Me=>{const{comp:de,compData:fe}=W.value||{};if(de==="Table"){w.value.formItems=[];let Ke=Y();Ke=Ke.filter(ka=>{const{prop:Ba}=ka;return Ba!=="formItems"}),Qe(Ke,fe),d.value=Ke}},ie=async Me=>{const de=oe.value[Me];W.value=de,await Ea()};e.watch(()=>{var Me;return(Me=w==null?void 0:w.value)==null?void 0:Me.group},async(Me,de)=>{Me!=de&&ie(Me)});const ua=async()=>{var fe,Ke;const Me=(fe=w.value)==null?void 0:fe.menu;await Ve(Me);const de=(Ke=w.value)==null?void 0:Ke.group;await ie(de)},ce=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:c.value},{key:"chartDataConfig",contents:w.value},{key:"chartDetailConfig",contents:_.value}]}),ea=()=>{i.visible=!1,x.visible=!1,O.visible=!1};return e.onMounted(async()=>{var de,fe,Ke;d.value=A(),S.value=k();const Me=n==null?void 0:n.itemContents;c.value=((de=Me==null?void 0:Me.find(ka=>ka.key==="chartBaseConfig"))==null?void 0:de.contents)??{},w.value=((fe=Me==null?void 0:Me.find(ka=>ka.key==="chartDataConfig"))==null?void 0:fe.contents)??{},await ua(),_.value=((Ke=Me==null?void 0:Me.find(ka=>ka.key==="chartDetailConfig"))==null?void 0:Ke.contents)??{},await se()}),(Me,de)=>{const fe=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",W2,[de[4]||(de[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(fe,{id:"themeButton",onClick:de[0]||(de[0]=Ke=>u())},{default:e.withCtx(()=>de[3]||(de[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",K2,[de[6]||(de[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(fe,{id:"themeButton",onClick:de[1]||(de[1]=Ke=>$())},{default:e.withCtx(()=>de[5]||(de[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",G2,[de[8]||(de[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(fe,{id:"themeButton",onClick:de[2]||(de[2]=Ke=>R())},{default:e.withCtx(()=>de[7]||(de[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(Ir.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:ea,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",Y2,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",J2,[e.createVNode(fe,{class:"cancel-button button",onClick:ea,id:"themeBorderButton"},{default:e.withCtx(()=>de[9]||(de[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(fe,{class:"ok-button button",onClick:y,id:"themeButton"},{default:e.withCtx(()=>de[10]||(de[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(Ir.ssDialog,{visible:x.visible,title:x.title,onBeforeDestroy:ea,width:x.width},{default:e.withCtx(()=>[e.createElementVNode("div",X2,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:z},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createVNode(fe,{class:"cancel-button button",onClick:ea,id:"themeBorderButton"},{default:e.withCtx(()=>de[11]||(de[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(fe,{class:"ok-button button",onClick:ea,id:"themeButton"},{default:e.withCtx(()=>de[12]||(de[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(Ir.ssDialog,{visible:O.visible,title:O.title,onBeforeDestroy:ea,width:O.width},{default:e.withCtx(()=>[e.createElementVNode("div",Q2,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",e1,[e.createVNode(fe,{class:"cancel-button button",onClick:ea,id:"themeBorderButton"},{default:e.withCtx(()=>de[13]||(de[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(fe,{class:"ok-button button",onClick:ea,id:"themeButton"},{default:e.withCtx(()=>de[14]||(de[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),l1=nr._export_sfc(a1,[["__scopeId","data-v-88c50cdb"]]),r1={class:"layout"},n1=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const n=l,r=a;e.onMounted(async()=>{});const i=e.computed(()=>M.cloneDeep(r==null?void 0:r.itemData)||[]),t=e.computed(()=>{var y;const m=(y=i==null?void 0:i.value)==null?void 0:y.find(x=>{const{key:d}=x;return d==="baseConfig"});return m==null?void 0:m.contents}),f=e.computed(()=>{var y;const m=(y=i==null?void 0:i.value)==null?void 0:y.find(x=>{const{key:d}=x;return d==="children"});return m==null?void 0:m.contents}),c=e.computed(()=>{let m=M.cloneDeep(f.value)||[];const y=m.length;let x=0;const d=[];if(m=m.map(A=>{const w=A.span;return w?(A.span=Number(w),x=x+A.span):d.push(A),A}),x<24){const A=Math.floor((24-x)/y);d.forEach(w=>{w.span=A})}return m}),u=m=>{n("rowClick",m)};return(m,y)=>{var A;const x=e.resolveComponent("el-col"),d=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",r1,[e.createVNode(d,{style:e.normalizeStyle({height:(A=t.value)==null?void 0:A.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(w,Y)=>(e.openBlock(),e.createBlock(x,{span:w==null?void 0:w.span},{default:e.withCtx(()=>{var z;return[e.unref(Oi)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Zi)(w.comp)),{key:e.unref(ai),compName:w.name,index:(w==null?void 0:w.id)??Y,height:(z=t.value)==null?void 0:z.height,itemData:w==null?void 0:w.compData,childItemData:w==null?void 0:w.itemChildData,onChange:e.unref(Ao),onContentChange:e.unref(zo),onPageChange:e.unref(Mo),onRowClick:u},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),i1=nr._export_sfc(n1,[["__scopeId","data-v-ab9a36ed"]]),o1={class:"layout-operate"},s1={class:"layout-module"},c1={class:"collapse-title-item"},u1={class:"collapse-title"},d1={class:"icon-content"},p1=["onClick"],f1={class:"comp-child"},h1=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l;e.onMounted(()=>{Y()});const i=e.ref({}),t=e.ref({}),f=e.ref([]),c=_=>[{label:"高度",prop:"height",type:"input",value:_==null?void 0:_.height}],u=_=>{t.value=_,r("change",k(),!0)},m=e.ref([]),y=e.ref([]),x=_=>[{label:"占比",prop:"span",type:"input",value:_==null?void 0:_.span}],d=e.computed(()=>{const _=n==null?void 0:n.itemContents;return M.cloneDeep(_)}),A=e.computed(()=>{const _=d==null?void 0:d.value,b=_==null?void 0:_.find(C=>{const{key:R}=C;return R==="baseConfig"});return b==null?void 0:b.contents}),w=e.computed(()=>{const _=d==null?void 0:d.value,b=_==null?void 0:_.find(C=>{const{key:R}=C;return R==="children"});return b==null?void 0:b.contents}),Y=()=>{var _;i.value=d.value||{},m.value=(w==null?void 0:w.value)||[],f.value=c(),f.value=(_=f.value)==null?void 0:_.map(b=>{var R;const{prop:C}=b;return b.value=(R=A.value)==null?void 0:R[C],b})};e.watch(()=>{var _;return(_=w==null?void 0:w.value)==null?void 0:_.length},()=>{var _;m.value=(w==null?void 0:w.value)||[],y.value=(_=w.value)==null?void 0:_.map(b=>x(b))},{immediate:!0});const z=(_,b)=>{const C=M.cloneDeep(w==null?void 0:w.value);C[b].span=_.span,m.value=C,r("change",k(),!0)},$=_=>Li(_),O=(_,b,C)=>{if(!_)return;const R=M.cloneDeep(w==null?void 0:w.value);R[C]&&(R[C].compData=_,m.value=R,r("change",k(),!0))},S=_=>{M.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=M.cloneDeep(w==null?void 0:w.value);b=b==null?void 0:b.filter((C,R)=>_!==R),m.value=b,r("change",k(),!0),Ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},k=()=>({compData:[{key:"baseConfig",contents:t.value},{key:"children",contents:m==null?void 0:m.value}]});return(_,b)=>{const C=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",o1,[e.createElementVNode("div",s1,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(pl.ssForm,{rowContents:f.value,isEnableWrap:!0,onChange:b[0]||(b[0]=R=>u(R))},null,8,["rowContents"])])]),e.createVNode(oc.default,{class:"collapse-content",collapseContents:w.value},{title:e.withCtx(({item:R,index:V})=>[e.createElementVNode("div",c1,[e.createElementVNode("div",u1,e.toDisplayString(R.name),1),e.createElementVNode("div",d1,[e.createElementVNode("div",{onClick:e.withModifiers(ae=>S(V),["stop"]),class:"icon-content"},[e.createVNode(C,{name:"Delete",style:{width:"16px",height:"16px"}})],8,p1)])])]),content:e.withCtx(({item:R,index:V})=>[e.createElementVNode("div",f1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(pl.ssForm,{rowContents:y.value[V],key:V,isEnableWrap:!0,onChange:ae=>z(ae,V)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent($(R.comp+"Operate")),{itemContents:R==null?void 0:R.compData,originalItemContents:R.compData,onChange:ae=>O(ae,R,V)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),v1=nr._export_sfc(h1,[["__scopeId","data-v-ba05456e"]]),m1=typeof window<"u";var Ms;m1&&((Ms=window==null?void 0:window.navigator)!=null&&Ms.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function _n(a){return a==null}function Kc(){}const y1=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(y1)));function g1(){const a=new Map;return{on(l,n){const r=a.get(l);r!=null&&r.add(n)||a.set(l,new Set([n]))},off(l,n){const r=a.get(l);r&&r.delete(n)},clear(l){const n=a.get(l);n&&n.clear()},clearAll(){a.clear()},emit(l,...n){const r=a.get(l);r&&r.forEach(i=>{i(...n)})}}}function Is(a,l=16){if(typeof a!="function")return Kc;const n=(...t)=>{a(...t)};if(l<=0)return Gc(n);let r=0,i;return function(...t){const f=Date.now(),c=f-r;clearTimeout(i),c>=l?(r=f,n(...t)):i=setTimeout(()=>{r=Date.now(),n(...t)},Math.max(0,l-c))}}function b1(a,l=100){if(typeof a!="function")return Kc;const n=(...i)=>{a(...i)};if(l<=0)return Gc(n);let r;return function(...i){clearTimeout(r),r=setTimeout(()=>{n(...i)},l)}}function Gc(a){if(typeof a!="function")return a;let l=!1,n,r;return function(...i){return n=i,l||(l=!0,r=Promise.resolve().then(()=>(l=!1,r=void 0,a(...n)))),r}}const Gi=new Set,Yc=new WeakMap;function k1(){Gi.forEach(a=>{a(...Yc.get(a))}),Gi.clear()}function vn(a,...l){if(typeof a!="function")return a;Yc.set(a,l),!Gi.has(a)&&(Gi.add(a),Gi.size===1&&Promise.resolve().then(k1))}const Jc=Symbol("LAYOUT_KEY"),Xc=Symbol("EMITTER_KEY");function x1(a){let l=0,n;for(let r=0,i=a.length;r<i;r++)n=a[r].y+a[r].h,n>l&&(l=n);return l}function At(a){const l=Array(a.length);for(let n=0,r=a.length;n<r;n++)l[n]=w1(a[n]);return l}function w1(a){return{...a}}function Zc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function Ni(a,l,n){const r=eu(a),i=au(a),t=Array(a.length);for(let f=0,c=i.length;f<c;f++){let u=i[f];u.static||(u=_1(r,u,l,n),r.push(u)),t[a.findIndex(m=>m.i===u.i)]=u,u.moved=!1}return t}function _1(a,l,n,r){if(n)for(;l.y>0&&!Yi(a,l);)l.y--;else if(r){const t=r[l.i].y;for(;l.y>t&&!Yi(a,l);)l.y--}let i;for(;i=Yi(a,l);)l.y=i.y+i.h;return l}function S1(a,l){const n=eu(a);for(let r=0,i=a.length;r<i;r++){const t=a[r];if(t.x+t.w>l.cols&&(t.x=l.cols-t.w),t.x<0&&(t.x=0,t.w=l.cols),!t.static)n.push(t);else for(;Yi(n,t);)t.y++}return a}function Os(a,l){for(let n=0,r=a.length;n<r;n++)if(a[n].i===l)return a[n]}function Yi(a,l){for(let n=0,r=a.length;n<r;n++)if(Zc(a[n],l))return a[n]}function Qc(a,l){return a.filter(n=>Zc(n,l))}function eu(a){return a.filter(l=>l.static)}function zt(a,l,n,r,i=!1,t=!1){if(l.static)return a;const f=l.x,c=l.y,u=r&&l.y>r;typeof n=="number"&&(l.x=n),typeof r=="number"&&(l.y=r),l.moved=!0;let m=au(a);u&&(m=m.reverse());const y=Qc(m,l);if(t&&y.length)return l.x=f,l.y=c,l.moved=!1,a;for(let x=0,d=y.length;x<d;x++){const A=y[x];A.moved||l.y>A.y&&l.y-A.y>A.h/4||(A.static?a=Ls(a,A,l,i):a=Ls(a,l,A,i))}return a}function Ls(a,l,n,r){if(r){const i={x:n.x,y:n.y,w:n.w,h:n.h};if(i.y=Math.max(l.y-n.h,0),!Yi(a,i))return zt(a,n,void 0,i.y,!1)}return zt(a,n,void 0,n.y+1,!1)}function E1(a,l,n,r){const i="translate3d("+l+"px,"+a+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function C1(a,l,n,r){const i="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function D1(a,l,n,r){return{top:a+"px",left:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function T1(a,l,n,r){return{top:a+"px",right:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function au(a){return Array.from(a).sort(function(l,n){return l.y===n.y&&l.x===n.x?0:l.y>n.y||l.y===n.y&&l.x>n.x?1:-1})}function B1(a,l){l=l||"Layout";const n=["x","y","w","h"],r=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let i=0,t=a.length;i<t;i++){const f=a[i];for(let c=0;c<n.length;c++)if(typeof f[n[c]]!="number")throw new Error("VueGridLayout: "+l+"["+i+"]."+n[c]+" must be a number!");if(f.i===void 0||f.i===null)throw new Error("VueGridLayout: "+l+"["+i+"].i cannot be null!");if(typeof f.i!="number"&&typeof f.i!="string")throw new Error("VueGridLayout: "+l+"["+i+"].i must be a string or number!");if(r.indexOf(f.i)>=0)throw new Error("VueGridLayout: "+l+"["+i+"].i must be unique!");if(r.push(f.i),f.static!==void 0&&typeof f.static!="boolean")throw new Error("VueGridLayout: "+l+"["+i+"].static must be a boolean!")}}function N1(a,l="vgl"){const n=()=>`${l}-${a}`;return{b:n,be:r=>`${n()}__${r}`,bm:r=>`${n()}--${r}`,bem:(r,i)=>`${n()}__${r}--${i}`}}function Rs(a){return A1(a)}function A1(a){var l;const n=((l=a.target)==null?void 0:l.offsetParent)||document.body,r=a.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),i=a.clientX+n.scrollLeft-r.left,t=a.clientY+n.scrollTop-r.top;return{x:i,y:t}}function $s(a,l,n,r){return z1(a)?{deltaX:n-a,deltaY:r-l,lastX:a,lastY:l,x:n,y:r}:{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}}function z1(a){return typeof a=="number"&&!Number.isNaN(a)}function M1(a,l){const n=ru(a);let r=n[0];for(let i=1,t=n.length;i<t;i++){const f=n[i];l>a[f]&&(r=f)}return r}function lu(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function I1(a,l,n,r,i,t,f){if(l[r])return At(l[r]);let c=a;const u=ru(n),m=u.slice(u.indexOf(r));for(let y=0,x=m.length;y<x;y++){const d=m[y];if(l[d]){c=l[d];break}}return c=At(c||[]),Ni(S1(c,{cols:t}),f)}function ru(a){return Object.keys(a).sort((l,n)=>a[l]-a[n])}let O1="auto";function L1(){return typeof document<"u"}function Vs(){return L1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):O1}var Wi={exports:{}},R1=Wi.exports,Fs;function $1(){return Fs||(Fs=1,function(a,l){(function(n,r){a.exports=r()})(R1,function(){function n(s,o){var h=Object.keys(s);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(s);o&&(g=g.filter(function(E){return Object.getOwnPropertyDescriptor(s,E).enumerable})),h.push.apply(h,g)}return h}function r(s){for(var o=1;o<arguments.length;o++){var h=arguments[o]!=null?arguments[o]:{};o%2?n(Object(h),!0).forEach(function(g){u(s,g,h[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(g){Object.defineProperty(s,g,Object.getOwnPropertyDescriptor(h,g))})}return s}function i(s){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(s)}function t(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function f(s,o){for(var h=0;h<o.length;h++){var g=o[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(s,Y(g.key),g)}}function c(s,o,h){return o&&f(s.prototype,o),Object.defineProperty(s,"prototype",{writable:!1}),s}function u(s,o,h){return(o=Y(o))in s?Object.defineProperty(s,o,{value:h,enumerable:!0,configurable:!0,writable:!0}):s[o]=h,s}function m(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),o&&x(s,o)}function y(s){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},y(s)}function x(s,o){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},x(s,o)}function d(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function A(s){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=y(s);if(o){var E=y(this).constructor;h=Reflect.construct(g,arguments,E)}else h=g.apply(this,arguments);return function(L,G){if(G&&(typeof G=="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(L)}(this,h)}}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(s,o,h){var g=function(L,G){for(;!Object.prototype.hasOwnProperty.call(L,G)&&(L=y(L))!==null;);return L}(s,o);if(g){var E=Object.getOwnPropertyDescriptor(g,o);return E.get?E.get.call(arguments.length<3?s:h):E.value}},w.apply(this,arguments)}function Y(s){var o=function(h,g){if(typeof h!="object"||h===null)return h;var E=h[Symbol.toPrimitive];if(E!==void 0){var L=E.call(h,g);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}(s,"string");return typeof o=="symbol"?o:o+""}var z=function(s){return!(!s||!s.Window)&&s instanceof s.Window},$=void 0,O=void 0;function S(s){$=s;var o=s.document.createTextNode("");o.ownerDocument!==s.document&&typeof s.wrap=="function"&&s.wrap(o)===o&&(s=s.wrap(s)),O=s}function k(s){return z(s)?s:(s.ownerDocument||s).defaultView||O.window}typeof window<"u"&&window&&S(window);var _=function(s){return!!s&&i(s)==="object"},b=function(s){return typeof s=="function"},C={window:function(s){return s===O||z(s)},docFrag:function(s){return _(s)&&s.nodeType===11},object:_,func:b,number:function(s){return typeof s=="number"},bool:function(s){return typeof s=="boolean"},string:function(s){return typeof s=="string"},element:function(s){if(!s||i(s)!=="object")return!1;var o=k(s)||O;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?s instanceof Element||s instanceof o.Element:s.nodeType===1&&typeof s.nodeName=="string"},plainObject:function(s){return _(s)&&!!s.constructor&&/function Object\b/.test(s.constructor.toString())},array:function(s){return _(s)&&s.length!==void 0&&b(s.splice)}};function R(s){var o=s.interaction;if(o.prepared.name==="drag"){var h=o.prepared.axis;h==="x"?(o.coords.cur.page.y=o.coords.start.page.y,o.coords.cur.client.y=o.coords.start.client.y,o.coords.velocity.client.y=0,o.coords.velocity.page.y=0):h==="y"&&(o.coords.cur.page.x=o.coords.start.page.x,o.coords.cur.client.x=o.coords.start.client.x,o.coords.velocity.client.x=0,o.coords.velocity.page.x=0)}}function V(s){var o=s.iEvent,h=s.interaction;if(h.prepared.name==="drag"){var g=h.prepared.axis;if(g==="x"||g==="y"){var E=g==="x"?"y":"x";o.page[E]=h.coords.start.page[E],o.client[E]=h.coords.start.client[E],o.delta[E]=0}}}var ae={id:"actions/drag",install:function(s){var o=s.actions,h=s.Interactable,g=s.defaults;h.prototype.draggable=ae.draggable,o.map.drag=ae,o.methodDict.drag="draggable",g.actions.drag=ae.defaults},listeners:{"interactions:before-action-move":R,"interactions:action-resume":R,"interactions:action-move":V,"auto-start:check":function(s){var o=s.interaction,h=s.interactable,g=s.buttons,E=h.options.drag;if(E&&E.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(g&h.options.drag.mouseButtons)!=0))return s.action={name:"drag",axis:E.lockAxis==="start"?E.startAxis:E.lockAxis},!1}},draggable:function(s){return C.object(s)?(this.options.drag.enabled=s.enabled!==!1,this.setPerAction("drag",s),this.setOnEvents("drag",s),/^(xy|x|y|start)$/.test(s.lockAxis)&&(this.options.drag.lockAxis=s.lockAxis),/^(xy|x|y)$/.test(s.startAxis)&&(this.options.drag.startAxis=s.startAxis),this):C.bool(s)?(this.options.drag.enabled=s,this):this.options.drag},beforeMove:R,move:V,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(s){return s.search("drag")===0}},ee=ae,_e={init:function(s){var o=s;_e.document=o.document,_e.DocumentFragment=o.DocumentFragment||ue,_e.SVGElement=o.SVGElement||ue,_e.SVGSVGElement=o.SVGSVGElement||ue,_e.SVGElementInstance=o.SVGElementInstance||ue,_e.Element=o.Element||ue,_e.HTMLElement=o.HTMLElement||_e.Element,_e.Event=o.Event,_e.Touch=o.Touch||ue,_e.PointerEvent=o.PointerEvent||o.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ue(){}var U=_e,P={init:function(s){var o=U.Element,h=s.navigator||{};P.supportsTouch="ontouchstart"in s||C.func(s.DocumentTouch)&&U.document instanceof s.DocumentTouch,P.supportsPointerEvent=h.pointerEnabled!==!1&&!!U.PointerEvent,P.isIOS=/iP(hone|od|ad)/.test(h.platform),P.isIOS7=/iP(hone|od|ad)/.test(h.platform)&&/OS 7[^\d]/.test(h.appVersion),P.isIe9=/MSIE 9/.test(h.userAgent),P.isOperaMobile=h.appName==="Opera"&&P.supportsTouch&&/Presto/.test(h.userAgent),P.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",P.pEventTypes=P.supportsPointerEvent?U.PointerEvent===s.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,P.wheelEvent=U.document&&"onmousewheel"in U.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},X=P;function re(s,o){if(s.contains)return s.contains(o);for(;o;){if(o===s)return!0;o=o.parentNode}return!1}function he(s,o){for(;C.element(s);){if(se(s,o))return s;s=$e(s)}return null}function $e(s){var o=s.parentNode;if(C.docFrag(o)){for(;(o=o.host)&&C.docFrag(o););return o}return o}function se(s,o){return O!==$&&(o=o.replace(/\/deep\//g," ")),s[X.prefixedMatchesSelector](o)}var B=function(s){return s.parentNode||s.host};function oe(s,o){for(var h,g=[],E=s;(h=B(E))&&E!==o&&h!==E.ownerDocument;)g.unshift(E),E=h;return g}function W(s,o,h){for(;C.element(s);){if(se(s,o))return!0;if((s=$e(s))===h)return se(s,o)}return!1}function ke(s){return s.correspondingUseElement||s}function Ie(s){var o=s instanceof U.SVGElement?s.getBoundingClientRect():s.getClientRects()[0];return o&&{left:o.left,right:o.right,top:o.top,bottom:o.bottom,width:o.width||o.right-o.left,height:o.height||o.bottom-o.top}}function Ve(s){var o,h=Ie(s);if(!X.isIOS7&&h){var g={x:(o=(o=k(s))||O).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};h.left+=g.x,h.right+=g.x,h.top+=g.y,h.bottom+=g.y}return h}function Qe(s){for(var o=[];s;)o.push(s),s=$e(s);return o}function Ea(s){return!!C.string(s)&&(U.document.querySelector(s),!0)}function ie(s,o){for(var h in o)s[h]=o[h];return s}function ua(s,o,h){return s==="parent"?$e(h):s==="self"?o.getRect(h):he(h,s)}function ce(s,o,h,g){var E=s;return C.string(E)?E=ua(E,o,h):C.func(E)&&(E=E.apply(void 0,g)),C.element(E)&&(E=Ve(E)),E}function ea(s){return s&&{x:"x"in s?s.x:s.left,y:"y"in s?s.y:s.top}}function Me(s){return!s||"x"in s&&"y"in s||((s=ie({},s)).x=s.left||0,s.y=s.top||0,s.width=s.width||(s.right||0)-s.x,s.height=s.height||(s.bottom||0)-s.y),s}function de(s,o,h){s.left&&(o.left+=h.x),s.right&&(o.right+=h.x),s.top&&(o.top+=h.y),s.bottom&&(o.bottom+=h.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function fe(s,o,h){var g=h&&s.options[h];return ea(ce(g&&g.origin||s.options.origin,s,o,[s&&o]))||{x:0,y:0}}function Ke(s,o){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(be){return!0},g=arguments.length>3?arguments[3]:void 0;if(g=g||{},C.string(s)&&s.search(" ")!==-1&&(s=ka(s)),C.array(s))return s.forEach(function(be){return Ke(be,o,h,g)}),g;if(C.object(s)&&(o=s,s=""),C.func(o)&&h(s))g[s]=g[s]||[],g[s].push(o);else if(C.array(o))for(var E=0,L=o;E<L.length;E++){var G=L[E];Ke(s,G,h,g)}else if(C.object(o))for(var J in o)Ke(ka(J).map(function(be){return"".concat(s).concat(be)}),o[J],h,g);return g}function ka(s){return s.trim().split(/ +/)}var Ba=function(s,o){return Math.sqrt(s*s+o*o)},q=["webkit","moz"];function F(s,o){s.__set||(s.__set={});var h=function(E){if(q.some(function(L){return E.indexOf(L)===0}))return 1;typeof s[E]!="function"&&E!=="__set"&&Object.defineProperty(s,E,{get:function(){return E in s.__set?s.__set[E]:s.__set[E]=o[E]},set:function(L){s.__set[E]=L},configurable:!0})};for(var g in o)h(g);return s}function Q(s,o){s.page=s.page||{},s.page.x=o.page.x,s.page.y=o.page.y,s.client=s.client||{},s.client.x=o.client.x,s.client.y=o.client.y,s.timeStamp=o.timeStamp}function pe(s){s.page.x=0,s.page.y=0,s.client.x=0,s.client.y=0}function ve(s){return s instanceof U.Event||s instanceof U.Touch}function da(s,o,h){return s=s||"page",(h=h||{}).x=o[s+"X"],h.y=o[s+"Y"],h}function ca(s,o){return o=o||{x:0,y:0},X.isOperaMobile&&ve(s)?(da("screen",s,o),o.x+=window.scrollX,o.y+=window.scrollY):da("page",s,o),o}function Ue(s){return C.number(s.pointerId)?s.pointerId:s.identifier}function xa(s,o,h){var g=o.length>1?Ce(o):o[0];ca(g,s.page),function(E,L){L=L||{},X.isOperaMobile&&ve(E)?da("screen",E,L):da("client",E,L)}(g,s.client),s.timeStamp=h}function Na(s){var o=[];return C.array(s)?(o[0]=s[0],o[1]=s[1]):s.type==="touchend"?s.touches.length===1?(o[0]=s.touches[0],o[1]=s.changedTouches[0]):s.touches.length===0&&(o[0]=s.changedTouches[0],o[1]=s.changedTouches[1]):(o[0]=s.touches[0],o[1]=s.touches[1]),o}function Ce(s){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},h=0;h<s.length;h++){var g=s[h];for(var E in o)o[E]+=g[E]}for(var L in o)o[L]/=s.length;return o}function Pa(s){if(!s.length)return null;var o=Na(s),h=Math.min(o[0].pageX,o[1].pageX),g=Math.min(o[0].pageY,o[1].pageY),E=Math.max(o[0].pageX,o[1].pageX),L=Math.max(o[0].pageY,o[1].pageY);return{x:h,y:g,left:h,top:g,right:E,bottom:L,width:E-h,height:L-g}}function Ca(s,o){var h=o+"X",g=o+"Y",E=Na(s),L=E[0][h]-E[1][h],G=E[0][g]-E[1][g];return Ba(L,G)}function oa(s,o){var h=o+"X",g=o+"Y",E=Na(s),L=E[1][h]-E[0][h],G=E[1][g]-E[0][g];return 180*Math.atan2(G,L)/Math.PI}function Aa(s){return C.string(s.pointerType)?s.pointerType:C.number(s.pointerType)?[void 0,void 0,"touch","pen","mouse"][s.pointerType]:/touch/.test(s.type||"")||s instanceof U.Touch?"touch":"mouse"}function De(s){var o=C.func(s.composedPath)?s.composedPath():s.path;return[ke(o?o[0]:s.target),ke(s.currentTarget)]}var wa=function(){function s(o){t(this,s),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return c(s,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),s}();Object.defineProperty(wa.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Je=function(s,o){for(var h=0;h<o.length;h++){var g=o[h];s.push(g)}return s},xe=function(s){return Je([],s)},H=function(s,o){for(var h=0;h<s.length;h++)if(o(s[h],h,s))return h;return-1},Oe=function(s,o){return s[H(s,o)]},Re=function(s){m(h,s);var o=A(h);function h(g,E,L){var G;t(this,h),(G=o.call(this,E._interaction)).dropzone=void 0,G.dragEvent=void 0,G.relatedTarget=void 0,G.draggable=void 0,G.propagationStopped=!1,G.immediatePropagationStopped=!1;var J=L==="dragleave"?g.prev:g.cur,be=J.element,qe=J.dropzone;return G.type=L,G.target=be,G.currentTarget=be,G.dropzone=qe,G.dragEvent=E,G.relatedTarget=E.target,G.draggable=E.interactable,G.timeStamp=E.timeStamp,G}return c(h,[{key:"reject",value:function(){var g=this,E=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&E.cur.dropzone===this.dropzone&&E.cur.element===this.target)if(E.prev.dropzone=this.dropzone,E.prev.element=this.target,E.rejected=!0,E.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var L=E.activeDrops,G=H(L,function(be){var qe=be.dropzone,Se=be.element;return qe===g.dropzone&&Se===g.target});E.activeDrops.splice(G,1);var J=new h(E,this.dragEvent,"dropdeactivate");J.dropzone=this.dropzone,J.target=this.target,this.dropzone.fire(J)}else this.dropzone.fire(new h(E,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),h}(wa);function Ia(s,o){for(var h=0,g=s.slice();h<g.length;h++){var E=g[h],L=E.dropzone,G=E.element;o.dropzone=L,o.target=G,L.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function na(s,o){for(var h=function(L,G){for(var J=[],be=0,qe=L.interactables.list;be<qe.length;be++){var Se=qe[be];if(Se.options.drop.enabled){var ra=Se.options.drop.accept;if(!(C.element(ra)&&ra!==G||C.string(ra)&&!se(G,ra)||C.func(ra)&&!ra({dropzone:Se,draggableElement:G})))for(var Oa=0,ll=Se.getAllElements();Oa<ll.length;Oa++){var Qa=ll[Oa];Qa!==G&&J.push({dropzone:Se,element:Qa,rect:Se.getRect(Qa)})}}}return J}(s,o),g=0;g<h.length;g++){var E=h[g];E.rect=E.dropzone.getRect(E.element)}return h}function za(s,o,h){for(var g=s.dropState,E=s.interactable,L=s.element,G=[],J=0,be=g.activeDrops;J<be.length;J++){var qe=be[J],Se=qe.dropzone,ra=qe.element,Oa=qe.rect,ll=Se.dropCheck(o,h,E,L,ra,Oa);G.push(ll?ra:null)}var Qa=function(cl){for(var Tl,El,Vl,Jl=[],sr=0;sr<cl.length;sr++){var Hl=cl[sr],Zl=cl[Tl];if(Hl&&sr!==Tl)if(Zl){var sn=B(Hl),Wl=B(Zl);if(sn!==Hl.ownerDocument)if(Wl!==Hl.ownerDocument)if(sn!==Wl){Jl=Jl.length?Jl:oe(Zl);var hn=void 0;if(Zl instanceof U.HTMLElement&&Hl instanceof U.SVGElement&&!(Hl instanceof U.SVGSVGElement)){if(Hl===Wl)continue;hn=Hl.ownerSVGElement}else hn=Hl;for(var Wr=oe(hn,Zl.ownerDocument),Nn=0;Wr[Nn]&&Wr[Nn]===Jl[Nn];)Nn++;var fn=[Wr[Nn-1],Wr[Nn],Jl[Nn]];if(fn[0])for(var ui=fn[0].lastChild;ui;){if(ui===fn[1]){Tl=sr,Jl=Wr;break}if(ui===fn[2])break;ui=ui.previousSibling}}else Vl=Zl,(parseInt(k(El=Hl).getComputedStyle(El).zIndex,10)||0)>=(parseInt(k(Vl).getComputedStyle(Vl).zIndex,10)||0)&&(Tl=sr);else Tl=sr}else Tl=sr}return Tl}(G);return g.activeDrops[Qa]||null}function Ae(s,o,h){var g=s.dropState,E={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return h.type==="dragstart"&&(E.activate=new Re(g,h,"dropactivate"),E.activate.target=null,E.activate.dropzone=null),h.type==="dragend"&&(E.deactivate=new Re(g,h,"dropdeactivate"),E.deactivate.target=null,E.deactivate.dropzone=null),g.rejected||(g.cur.element!==g.prev.element&&(g.prev.dropzone&&(E.leave=new Re(g,h,"dragleave"),h.dragLeave=E.leave.target=g.prev.element,h.prevDropzone=E.leave.dropzone=g.prev.dropzone),g.cur.dropzone&&(E.enter=new Re(g,h,"dragenter"),h.dragEnter=g.cur.element,h.dropzone=g.cur.dropzone)),h.type==="dragend"&&g.cur.dropzone&&(E.drop=new Re(g,h,"drop"),h.dropzone=g.cur.dropzone,h.relatedTarget=g.cur.element),h.type==="dragmove"&&g.cur.dropzone&&(E.move=new Re(g,h,"dropmove"),h.dropzone=g.cur.dropzone)),E}function Pe(s,o){var h=s.dropState,g=h.activeDrops,E=h.cur,L=h.prev;o.leave&&L.dropzone.fire(o.leave),o.enter&&E.dropzone.fire(o.enter),o.move&&E.dropzone.fire(o.move),o.drop&&E.dropzone.fire(o.drop),o.deactivate&&Ia(g,o.deactivate),h.prev.dropzone=E.dropzone,h.prev.element=E.element}function je(s,o){var h=s.interaction,g=s.iEvent,E=s.event;if(g.type==="dragmove"||g.type==="dragend"){var L=h.dropState;o.dynamicDrop&&(L.activeDrops=na(o,h.element));var G=g,J=za(h,G,E);L.rejected=L.rejected&&!!J&&J.dropzone===L.cur.dropzone&&J.element===L.cur.element,L.cur.dropzone=J&&J.dropzone,L.cur.element=J&&J.element,L.events=Ae(h,0,G)}}var ze={id:"actions/drop",install:function(s){var o=s.actions,h=s.interactStatic,g=s.Interactable,E=s.defaults;s.usePlugin(ee),g.prototype.dropzone=function(L){return function(G,J){if(C.object(J)){if(G.options.drop.enabled=J.enabled!==!1,J.listeners){var be=Ke(J.listeners),qe=Object.keys(be).reduce(function(ra,Oa){return ra[/^(enter|leave)/.test(Oa)?"drag".concat(Oa):/^(activate|deactivate|move)/.test(Oa)?"drop".concat(Oa):Oa]=be[Oa],ra},{}),Se=G.options.drop.listeners;Se&&G.off(Se),G.on(qe),G.options.drop.listeners=qe}return C.func(J.ondrop)&&G.on("drop",J.ondrop),C.func(J.ondropactivate)&&G.on("dropactivate",J.ondropactivate),C.func(J.ondropdeactivate)&&G.on("dropdeactivate",J.ondropdeactivate),C.func(J.ondragenter)&&G.on("dragenter",J.ondragenter),C.func(J.ondragleave)&&G.on("dragleave",J.ondragleave),C.func(J.ondropmove)&&G.on("dropmove",J.ondropmove),/^(pointer|center)$/.test(J.overlap)?G.options.drop.overlap=J.overlap:C.number(J.overlap)&&(G.options.drop.overlap=Math.max(Math.min(1,J.overlap),0)),"accept"in J&&(G.options.drop.accept=J.accept),"checker"in J&&(G.options.drop.checker=J.checker),G}return C.bool(J)?(G.options.drop.enabled=J,G):G.options.drop}(this,L)},g.prototype.dropCheck=function(L,G,J,be,qe,Se){return function(ra,Oa,ll,Qa,cl,Tl,El){var Vl=!1;if(!(El=El||ra.getRect(Tl)))return!!ra.options.drop.checker&&ra.options.drop.checker(Oa,ll,Vl,ra,Tl,Qa,cl);var Jl=ra.options.drop.overlap;if(Jl==="pointer"){var sr=fe(Qa,cl,"drag"),Hl=ca(Oa);Hl.x+=sr.x,Hl.y+=sr.y;var Zl=Hl.x>El.left&&Hl.x<El.right,sn=Hl.y>El.top&&Hl.y<El.bottom;Vl=Zl&&sn}var Wl=Qa.getRect(cl);if(Wl&&Jl==="center"){var hn=Wl.left+Wl.width/2,Wr=Wl.top+Wl.height/2;Vl=hn>=El.left&&hn<=El.right&&Wr>=El.top&&Wr<=El.bottom}return Wl&&C.number(Jl)&&(Vl=Math.max(0,Math.min(El.right,Wl.right)-Math.max(El.left,Wl.left))*Math.max(0,Math.min(El.bottom,Wl.bottom)-Math.max(El.top,Wl.top))/(Wl.width*Wl.height)>=Jl),ra.options.drop.checker&&(Vl=ra.options.drop.checker(Oa,ll,Vl,ra,Tl,Qa,cl)),Vl}(this,L,G,J,be,qe,Se)},h.dynamicDrop=function(L){return C.bool(L)?(s.dynamicDrop=L,h):s.dynamicDrop},ie(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",s.dynamicDrop=!1,E.actions.drop=ze.defaults},listeners:{"interactions:before-action-start":function(s){var o=s.interaction;o.prepared.name==="drag"&&(o.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(s,o){var h=s.interaction,g=(s.event,s.iEvent);if(h.prepared.name==="drag"){var E=h.dropState;E.activeDrops=[],E.events={},E.activeDrops=na(o,h.element),E.events=Ae(h,0,g),E.events.activate&&(Ia(E.activeDrops,E.events.activate),o.fire("actions/drop:start",{interaction:h,dragEvent:g}))}},"interactions:action-move":je,"interactions:after-action-move":function(s,o){var h=s.interaction,g=s.iEvent;if(h.prepared.name==="drag"){var E=h.dropState;Pe(h,E.events),o.fire("actions/drop:move",{interaction:h,dragEvent:g}),E.events={}}},"interactions:action-end":function(s,o){if(s.interaction.prepared.name==="drag"){var h=s.interaction,g=s.iEvent;je(s,o),Pe(h,h.dropState.events),o.fire("actions/drop:end",{interaction:h,dragEvent:g})}},"interactions:stop":function(s){var o=s.interaction;if(o.prepared.name==="drag"){var h=o.dropState;h&&(h.activeDrops=null,h.events=null,h.cur.dropzone=null,h.cur.element=null,h.prev.dropzone=null,h.prev.element=null,h.rejected=!1)}}},getActiveDrops:na,getDrop:za,getDropEvents:Ae,fireDropEvents:Pe,filterEventType:function(s){return s.search("drag")===0||s.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},we=ze;function tl(s){var o=s.interaction,h=s.iEvent,g=s.phase;if(o.prepared.name==="gesture"){var E=o.pointers.map(function(qe){return qe.pointer}),L=g==="start",G=g==="end",J=o.interactable.options.deltaSource;if(h.touches=[E[0],E[1]],L)h.distance=Ca(E,J),h.box=Pa(E),h.scale=1,h.ds=0,h.angle=oa(E,J),h.da=0,o.gesture.startDistance=h.distance,o.gesture.startAngle=h.angle;else if(G||o.pointers.length<2){var be=o.prevEvent;h.distance=be.distance,h.box=be.box,h.scale=be.scale,h.ds=0,h.angle=be.angle,h.da=0}else h.distance=Ca(E,J),h.box=Pa(E),h.scale=h.distance/o.gesture.startDistance,h.angle=oa(E,J),h.ds=h.scale-o.gesture.scale,h.da=h.angle-o.gesture.angle;o.gesture.distance=h.distance,o.gesture.angle=h.angle,C.number(h.scale)&&h.scale!==1/0&&!isNaN(h.scale)&&(o.gesture.scale=h.scale)}}var Dl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(s){var o=s.actions,h=s.Interactable,g=s.defaults;h.prototype.gesturable=function(E){return C.object(E)?(this.options.gesture.enabled=E.enabled!==!1,this.setPerAction("gesture",E),this.setOnEvents("gesture",E),this):C.bool(E)?(this.options.gesture.enabled=E,this):this.options.gesture},o.map.gesture=Dl,o.methodDict.gesture="gesturable",g.actions.gesture=Dl.defaults},listeners:{"interactions:action-start":tl,"interactions:action-move":tl,"interactions:action-end":tl,"interactions:new":function(s){s.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(s){if(!(s.interaction.pointers.length<2)){var o=s.interactable.options.gesture;if(o&&o.enabled)return s.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(s){return s.search("gesture")===0}},Ml=Dl;function jl(s,o,h,g,E,L,G){if(!o)return!1;if(o===!0){var J=C.number(L.width)?L.width:L.right-L.left,be=C.number(L.height)?L.height:L.bottom-L.top;if(G=Math.min(G,Math.abs((s==="left"||s==="right"?J:be)/2)),J<0&&(s==="left"?s="right":s==="right"&&(s="left")),be<0&&(s==="top"?s="bottom":s==="bottom"&&(s="top")),s==="left"){var qe=J>=0?L.left:L.right;return h.x<qe+G}if(s==="top"){var Se=be>=0?L.top:L.bottom;return h.y<Se+G}if(s==="right")return h.x>(J>=0?L.right:L.left)-G;if(s==="bottom")return h.y>(be>=0?L.bottom:L.top)-G}return!!C.element(g)&&(C.element(o)?o===g:W(g,o,E))}function gl(s){var o=s.iEvent,h=s.interaction;if(h.prepared.name==="resize"&&h.resizeAxes){var g=o;h.interactable.options.resize.square?(h.resizeAxes==="y"?g.delta.x=g.delta.y:g.delta.y=g.delta.x,g.axes="xy"):(g.axes=h.resizeAxes,h.resizeAxes==="x"?g.delta.y=0:h.resizeAxes==="y"&&(g.delta.x=0))}}var er,el,$l={id:"actions/resize",before:["actions/drag"],install:function(s){var o=s.actions,h=s.browser,g=s.Interactable,E=s.defaults;$l.cursors=function(L){return L.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(h),$l.defaultMargin=h.supportsTouch||h.supportsPointerEvent?20:10,g.prototype.resizable=function(L){return function(G,J,be){return C.object(J)?(G.options.resize.enabled=J.enabled!==!1,G.setPerAction("resize",J),G.setOnEvents("resize",J),C.string(J.axis)&&/^x$|^y$|^xy$/.test(J.axis)?G.options.resize.axis=J.axis:J.axis===null&&(G.options.resize.axis=be.defaults.actions.resize.axis),C.bool(J.preserveAspectRatio)?G.options.resize.preserveAspectRatio=J.preserveAspectRatio:C.bool(J.square)&&(G.options.resize.square=J.square),G):C.bool(J)?(G.options.resize.enabled=J,G):G.options.resize}(this,L,s)},o.map.resize=$l,o.methodDict.resize="resizable",E.actions.resize=$l.defaults},listeners:{"interactions:new":function(s){s.interaction.resizeAxes="xy"},"interactions:action-start":function(s){(function(o){var h=o.iEvent,g=o.interaction;if(g.prepared.name==="resize"&&g.prepared.edges){var E=h,L=g.rect;g._rects={start:ie({},L),corrected:ie({},L),previous:ie({},L),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},E.edges=g.prepared.edges,E.rect=g._rects.corrected,E.deltaRect=g._rects.delta}})(s),gl(s)},"interactions:action-move":function(s){(function(o){var h=o.iEvent,g=o.interaction;if(g.prepared.name==="resize"&&g.prepared.edges){var E=h,L=g.interactable.options.resize.invert,G=L==="reposition"||L==="negate",J=g.rect,be=g._rects,qe=be.start,Se=be.corrected,ra=be.delta,Oa=be.previous;if(ie(Oa,Se),G){if(ie(Se,J),L==="reposition"){if(Se.top>Se.bottom){var ll=Se.top;Se.top=Se.bottom,Se.bottom=ll}if(Se.left>Se.right){var Qa=Se.left;Se.left=Se.right,Se.right=Qa}}}else Se.top=Math.min(J.top,qe.bottom),Se.bottom=Math.max(J.bottom,qe.top),Se.left=Math.min(J.left,qe.right),Se.right=Math.max(J.right,qe.left);for(var cl in Se.width=Se.right-Se.left,Se.height=Se.bottom-Se.top,Se)ra[cl]=Se[cl]-Oa[cl];E.edges=g.prepared.edges,E.rect=Se,E.deltaRect=ra}})(s),gl(s)},"interactions:action-end":function(s){var o=s.iEvent,h=s.interaction;if(h.prepared.name==="resize"&&h.prepared.edges){var g=o;g.edges=h.prepared.edges,g.rect=h._rects.corrected,g.deltaRect=h._rects.delta}},"auto-start:check":function(s){var o=s.interaction,h=s.interactable,g=s.element,E=s.rect,L=s.buttons;if(E){var G=ie({},o.coords.cur.page),J=h.options.resize;if(J&&J.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(L&J.mouseButtons)!=0)){if(C.object(J.edges)){var be={left:!1,right:!1,top:!1,bottom:!1};for(var qe in be)be[qe]=jl(qe,J.edges[qe],G,o._latestPointer.eventTarget,g,E,J.margin||$l.defaultMargin);be.left=be.left&&!be.right,be.top=be.top&&!be.bottom,(be.left||be.right||be.top||be.bottom)&&(s.action={name:"resize",edges:be})}else{var Se=J.axis!=="y"&&G.x>E.right-$l.defaultMargin,ra=J.axis!=="x"&&G.y>E.bottom-$l.defaultMargin;(Se||ra)&&(s.action={name:"resize",axes:(Se?"x":"")+(ra?"y":"")})}return!s.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(s){var o=s.edges,h=s.axis,g=s.name,E=$l.cursors,L=null;if(h)L=E[g+h];else if(o){for(var G="",J=0,be=["top","bottom","left","right"];J<be.length;J++){var qe=be[J];o[qe]&&(G+=qe)}L=E[G]}return L},filterEventType:function(s){return s.search("resize")===0},defaultMargin:null},Wa=$l,Kl={id:"actions",install:function(s){s.usePlugin(Ml),s.usePlugin(Wa),s.usePlugin(ee),s.usePlugin(we)}},Yl=0,ar={request:function(s){return er(s)},cancel:function(s){return el(s)},init:function(s){if(er=s.requestAnimationFrame,el=s.cancelAnimationFrame,!er)for(var o=["ms","moz","webkit","o"],h=0;h<o.length;h++){var g=o[h];er=s["".concat(g,"RequestAnimationFrame")],el=s["".concat(g,"CancelAnimationFrame")]||s["".concat(g,"CancelRequestAnimationFrame")]}er=er&&er.bind(s),el=el&&el.bind(s),er||(er=function(E){var L=Date.now(),G=Math.max(0,16-(L-Yl)),J=s.setTimeout(function(){E(L+G)},G);return Yl=L+G,J},el=function(E){return clearTimeout(E)})}},_l={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(s){_l.isScrolling=!0,ar.cancel(_l.i),s.autoScroll=_l,_l.interaction=s,_l.prevTime=_l.now(),_l.i=ar.request(_l.scroll)},stop:function(){_l.isScrolling=!1,_l.interaction&&(_l.interaction.autoScroll=null),ar.cancel(_l.i)},scroll:function(){var s=_l.interaction,o=s.interactable,h=s.element,g=s.prepared.name,E=o.options[g].autoScroll,L=br(E.container,o,h),G=_l.now(),J=(G-_l.prevTime)/1e3,be=E.speed*J;if(be>=1){var qe={x:_l.x*be,y:_l.y*be};if(qe.x||qe.y){var Se=va(L);C.window(L)?L.scrollBy(qe.x,qe.y):L&&(L.scrollLeft+=qe.x,L.scrollTop+=qe.y);var ra=va(L),Oa={x:ra.x-Se.x,y:ra.y-Se.y};(Oa.x||Oa.y)&&o.fire({type:"autoscroll",target:h,interactable:o,delta:Oa,interaction:s,container:L})}_l.prevTime=G}_l.isScrolling&&(ar.cancel(_l.i),_l.i=ar.request(_l.scroll))},check:function(s,o){var h;return(h=s.options[o].autoScroll)==null?void 0:h.enabled},onInteractionMove:function(s){var o=s.interaction,h=s.pointer;if(o.interacting()&&_l.check(o.interactable,o.prepared.name))if(o.simulation)_l.x=_l.y=0;else{var g,E,L,G,J=o.interactable,be=o.element,qe=o.prepared.name,Se=J.options[qe].autoScroll,ra=br(Se.container,J,be);if(C.window(ra))G=h.clientX<_l.margin,g=h.clientY<_l.margin,E=h.clientX>ra.innerWidth-_l.margin,L=h.clientY>ra.innerHeight-_l.margin;else{var Oa=Ie(ra);G=h.clientX<Oa.left+_l.margin,g=h.clientY<Oa.top+_l.margin,E=h.clientX>Oa.right-_l.margin,L=h.clientY>Oa.bottom-_l.margin}_l.x=E?1:G?-1:0,_l.y=L?1:g?-1:0,_l.isScrolling||(_l.margin=Se.margin,_l.speed=Se.speed,_l.start(o))}}};function br(s,o,h){return(C.string(s)?ua(s,o,h):s)||k(h)}function va(s){return C.window(s)&&(s=window.document.body),{x:s.scrollLeft,y:s.scrollTop}}var sl={id:"auto-scroll",install:function(s){var o=s.defaults,h=s.actions;s.autoScroll=_l,_l.now=function(){return s.now()},h.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=_l.defaults},listeners:{"interactions:new":function(s){s.interaction.autoScroll=null},"interactions:destroy":function(s){s.interaction.autoScroll=null,_l.stop(),_l.interaction&&(_l.interaction=null)},"interactions:stop":_l.stop,"interactions:action-move":function(s){return _l.onInteractionMove(s)}}},pa=sl;function Ha(s,o){var h=!1;return function(){return h||(O.console.warn(o),h=!0),s.apply(this,arguments)}}function la(s,o){return s.name=o.name,s.axis=o.axis,s.edges=o.edges,s}function Ka(s){return C.bool(s)?(this.options.styleCursor=s,this):s===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Sl(s){return C.func(s)?(this.options.actionChecker=s,this):s===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Ee={id:"auto-start/interactableMethods",install:function(s){var o=s.Interactable;o.prototype.getAction=function(h,g,E,L){var G=function(J,be,qe,Se,ra){var Oa=J.getRect(Se),ll=be.buttons||{0:1,1:4,3:8,4:16}[be.button],Qa={action:null,interactable:J,interaction:qe,element:Se,rect:Oa,buttons:ll};return ra.fire("auto-start:check",Qa),Qa.action}(this,g,E,L,s);return this.options.actionChecker?this.options.actionChecker(h,g,G,this,L,E):G},o.prototype.ignoreFrom=Ha(function(h){return this._backCompatOption("ignoreFrom",h)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=Ha(function(h){return this._backCompatOption("allowFrom",h)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=Sl,o.prototype.styleCursor=Ka}};function ia(s,o,h,g,E){return o.testIgnoreAllow(o.options[s.name],h,g)&&o.options[s.name].enabled&&al(o,h,s,E)?s:null}function ja(s,o,h,g,E,L,G){for(var J=0,be=g.length;J<be;J++){var qe=g[J],Se=E[J],ra=qe.getAction(o,h,s,Se);if(ra){var Oa=ia(ra,qe,Se,L,G);if(Oa)return{action:Oa,interactable:qe,element:Se}}}return{action:null,interactable:null,element:null}}function Te(s,o,h,g,E){var L=[],G=[],J=g;function be(Se){L.push(Se),G.push(J)}for(;C.element(J);){L=[],G=[],E.interactables.forEachMatch(J,be);var qe=ja(s,o,h,L,G,g,E);if(qe.action&&!qe.interactable.options[qe.action.name].manualStart)return qe;J=$e(J)}return{action:null,interactable:null,element:null}}function La(s,o,h){var g=o.action,E=o.interactable,L=o.element;g=g||{name:null},s.interactable=E,s.element=L,la(s.prepared,g),s.rect=E&&g.name?E.getRect(L):null,Le(s,h),h.fire("autoStart:prepared",{interaction:s})}function al(s,o,h,g){var E=s.options,L=E[h.name].max,G=E[h.name].maxPerElement,J=g.autoStart.maxInteractions,be=0,qe=0,Se=0;if(!(L&&G&&J))return!1;for(var ra=0,Oa=g.interactions.list;ra<Oa.length;ra++){var ll=Oa[ra],Qa=ll.prepared.name;if(ll.interacting()&&(++be>=J||ll.interactable===s&&((qe+=Qa===h.name?1:0)>=L||ll.element===o&&(Se++,Qa===h.name&&Se>=G))))return!1}return J>0}function xl(s,o){return C.number(s)?(o.autoStart.maxInteractions=s,this):o.autoStart.maxInteractions}function Nl(s,o,h){var g=h.autoStart.cursorElement;g&&g!==s&&(g.style.cursor=""),s.ownerDocument.documentElement.style.cursor=o,s.style.cursor=o,h.autoStart.cursorElement=o?s:null}function Le(s,o){var h=s.interactable,g=s.element,E=s.prepared;if(s.pointerType==="mouse"&&h&&h.options.styleCursor){var L="";if(E.name){var G=h.options[E.name].cursorChecker;L=C.func(G)?G(E,h,g,s._interacting):o.actions.map[E.name].getCursor(E)}Nl(s.element,L||"",o)}else o.autoStart.cursorElement&&Nl(o.autoStart.cursorElement,"",o)}var ha={id:"auto-start/base",before:["actions"],install:function(s){var o=s.interactStatic,h=s.defaults;s.usePlugin(Ee),h.base.actionChecker=null,h.base.styleCursor=!0,ie(h.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(g){return xl(g,s)},s.autoStart={maxInteractions:1/0,withinInteractionLimit:al,cursorElement:null}},listeners:{"interactions:down":function(s,o){var h=s.interaction,g=s.pointer,E=s.event,L=s.eventTarget;h.interacting()||La(h,Te(h,g,E,L,o),o)},"interactions:move":function(s,o){(function(h,g){var E=h.interaction,L=h.pointer,G=h.event,J=h.eventTarget;E.pointerType!=="mouse"||E.pointerIsDown||E.interacting()||La(E,Te(E,L,G,J,g),g)})(s,o),function(h,g){var E=h.interaction;if(E.pointerIsDown&&!E.interacting()&&E.pointerWasMoved&&E.prepared.name){g.fire("autoStart:before-start",h);var L=E.interactable,G=E.prepared.name;G&&L&&(L.options[G].manualStart||!al(L,E.element,E.prepared,g)?E.stop():(E.start(E.prepared,L,E.element),Le(E,g)))}}(s,o)},"interactions:stop":function(s,o){var h=s.interaction,g=h.interactable;g&&g.options.styleCursor&&Nl(h.element,"",o)}},maxInteractions:xl,withinInteractionLimit:al,validateAction:ia},ta=ha,ga={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(s,o){var h=s.interaction,g=s.eventTarget,E=s.dx,L=s.dy;if(h.prepared.name==="drag"){var G=Math.abs(E),J=Math.abs(L),be=h.interactable.options.drag,qe=be.startAxis,Se=G>J?"x":G<J?"y":"xy";if(h.prepared.axis=be.lockAxis==="start"?Se[0]:be.lockAxis,Se!=="xy"&&qe!=="xy"&&qe!==Se){h.prepared.name=null;for(var ra=g,Oa=function(Qa){if(Qa!==h.interactable){var cl=h.interactable.options.drag;if(!cl.manualStart&&Qa.testIgnoreAllow(cl,ra,g)){var Tl=Qa.getAction(h.downPointer,h.downEvent,h,ra);if(Tl&&Tl.name==="drag"&&function(El,Vl){if(!Vl)return!1;var Jl=Vl.options.drag.startAxis;return El==="xy"||Jl==="xy"||Jl===El}(Se,Qa)&&ta.validateAction(Tl,Qa,ra,g,o))return Qa}}};C.element(ra);){var ll=o.interactables.forEachMatch(ra,Oa);if(ll){h.prepared.name="drag",h.interactable=ll,h.element=ra;break}ra=$e(ra)}}}}}};function ma(s){var o=s.prepared&&s.prepared.name;if(!o)return null;var h=s.interactable.options;return h[o].hold||h[o].delay}var fl={id:"auto-start/hold",install:function(s){var o=s.defaults;s.usePlugin(ta),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(s){s.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(s){var o=s.interaction,h=ma(o);h>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},h))},"interactions:move":function(s){var o=s.interaction,h=s.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!h&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(s){var o=s.interaction;ma(o)>0&&(o.prepared.name=null)}},getHoldDuration:ma},Fe=fl,ml={id:"auto-start",install:function(s){s.usePlugin(ta),s.usePlugin(Fe),s.usePlugin(ga)}},Be=function(s){return/^(always|never|auto)$/.test(s)?(this.options.preventDefault=s,this):C.bool(s)?(this.options.preventDefault=s?"always":"never",this):this.options.preventDefault};function Pl(s){var o=s.interaction,h=s.event;o.interactable&&o.interactable.checkAndPreventDefault(h)}var Sa={id:"core/interactablePreventDefault",install:function(s){var o=s.Interactable;o.prototype.preventDefault=Be,o.prototype.checkAndPreventDefault=function(h){return function(g,E,L){var G=g.options.preventDefault;if(G!=="never")if(G!=="always"){if(E.events.supportsPassive&&/^touch(start|move)$/.test(L.type)){var J=k(L.target).document,be=E.getDocOptions(J);if(!be||!be.events||be.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(L.type)||C.element(L.target)&&se(L.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||L.preventDefault()}else L.preventDefault()}(this,s,h)},s.interactions.docEvents.push({type:"dragstart",listener:function(h){for(var g=0,E=s.interactions.list;g<E.length;g++){var L=E[g];if(L.element&&(L.element===h.target||re(L.element,h.target)))return void L.interactable.checkAndPreventDefault(h)}}})},listeners:["down","move","up","cancel"].reduce(function(s,o){return s["interactions:".concat(o)]=Pl,s},{})};function ul(s,o){if(o.phaselessTypes[s])return!0;for(var h in o.map)if(s.indexOf(h)===0&&s.substr(h.length)in o.phases)return!0;return!1}function Za(s){var o={};for(var h in s){var g=s[h];C.plainObject(g)?o[h]=Za(g):C.array(g)?o[h]=xe(g):o[h]=g}return o}var bl=function(){function s(o){t(this,s),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=o,this.result=Ra(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(s,[{key:"start",value:function(o,h){var g,E,L=o.phase,G=this.interaction,J=function(qe){var Se=qe.interactable.options[qe.prepared.name],ra=Se.modifiers;return ra&&ra.length?ra:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Oa){var ll=Se[Oa];return ll&&ll.enabled&&{options:ll,methods:ll._methods}}).filter(function(Oa){return!!Oa})}(G);this.prepareStates(J),this.startEdges=ie({},G.edges),this.edges=ie({},this.startEdges),this.startOffset=(g=G.rect,E=h,g?{left:E.x-g.left,top:E.y-g.top,right:g.right-E.x,bottom:g.bottom-E.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var be=this.fillArg({phase:L,pageCoords:h,preEnd:!1});return this.result=Ra(),this.startAll(be),this.result=this.setAll(be)}},{key:"fillArg",value:function(o){var h=this.interaction;return o.interaction=h,o.interactable=h.interactable,o.element=h.element,o.rect||(o.rect=h.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var h=0,g=this.states;h<g.length;h++){var E=g[h];E.methods.start&&(o.state=E,E.methods.start(o))}}},{key:"setAll",value:function(o){var h=o.phase,g=o.preEnd,E=o.skipModifiers,L=o.rect,G=o.edges;o.coords=ie({},o.pageCoords),o.rect=ie({},L),o.edges=ie({},G);for(var J=E?this.states.slice(E):this.states,be=Ra(o.coords,o.rect),qe=0;qe<J.length;qe++){var Se,ra=J[qe],Oa=ra.options,ll=ie({},o.coords),Qa=null;(Se=ra.methods)!=null&&Se.set&&this.shouldDo(Oa,g,h)&&(o.state=ra,Qa=ra.methods.set(o),de(o.edges,o.rect,{x:o.coords.x-ll.x,y:o.coords.y-ll.y})),be.eventProps.push(Qa)}ie(this.edges,o.edges),be.delta.x=o.coords.x-o.pageCoords.x,be.delta.y=o.coords.y-o.pageCoords.y,be.rectDelta.left=o.rect.left-L.left,be.rectDelta.right=o.rect.right-L.right,be.rectDelta.top=o.rect.top-L.top,be.rectDelta.bottom=o.rect.bottom-L.bottom;var cl=this.result.coords,Tl=this.result.rect;if(cl&&Tl){var El=be.rect.left!==Tl.left||be.rect.right!==Tl.right||be.rect.top!==Tl.top||be.rect.bottom!==Tl.bottom;be.changed=El||cl.x!==be.coords.x||cl.y!==be.coords.y}return be}},{key:"applyToInteraction",value:function(o){var h=this.interaction,g=o.phase,E=h.coords.cur,L=h.coords.start,G=this.result,J=this.startDelta,be=G.delta;g==="start"&&ie(this.startDelta,G.delta);for(var qe=0,Se=[[L,J],[E,be]];qe<Se.length;qe++){var ra=Se[qe],Oa=ra[0],ll=ra[1];Oa.page.x+=ll.x,Oa.page.y+=ll.y,Oa.client.x+=ll.x,Oa.client.y+=ll.y}var Qa=this.result.rectDelta,cl=o.rect||h.rect;cl.left+=Qa.left,cl.right+=Qa.right,cl.top+=Qa.top,cl.bottom+=Qa.bottom,cl.width=cl.right-cl.left,cl.height=cl.bottom-cl.top}},{key:"setAndApply",value:function(o){var h=this.interaction,g=o.phase,E=o.preEnd,L=o.skipModifiers,G=this.setAll(this.fillArg({preEnd:E,phase:g,pageCoords:o.modifiedCoords||h.coords.cur.page}));if(this.result=G,!G.changed&&(!L||L<this.states.length)&&h.interacting())return!1;if(o.modifiedCoords){var J=h.coords.cur.page,be={x:o.modifiedCoords.x-J.x,y:o.modifiedCoords.y-J.y};G.coords.x+=be.x,G.coords.y+=be.y,G.delta.x+=be.x,G.delta.y+=be.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var h=o.interaction,g=o.event,E=this.states;if(E&&E.length){for(var L=!1,G=0;G<E.length;G++){var J=E[G];o.state=J;var be=J.options,qe=J.methods,Se=qe.beforeEnd&&qe.beforeEnd(o);if(Se)return this.endResult=Se,!1;L=L||!L&&this.shouldDo(be,!0,o.phase,!0)}L&&h.move({event:g,preEnd:!0})}}},{key:"stop",value:function(o){var h=o.interaction;if(this.states&&this.states.length){var g=ie({states:this.states,interactable:h.interactable,element:h.element,rect:null},o);this.fillArg(g);for(var E=0,L=this.states;E<L.length;E++){var G=L[E];g.state=G,G.methods.stop&&G.methods.stop(g)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var h=0;h<o.length;h++){var g=o[h],E=g.options,L=g.methods,G=g.name;this.states.push({options:E,methods:L,index:h,name:G})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var h=o.interaction,g=h.coords,E=h.rect,L=h.modification;if(L.result){for(var G=L.startDelta,J=L.result,be=J.delta,qe=J.rectDelta,Se=0,ra=[[g.start,G],[g.cur,be]];Se<ra.length;Se++){var Oa=ra[Se],ll=Oa[0],Qa=Oa[1];ll.page.x-=Qa.x,ll.page.y-=Qa.y,ll.client.x-=Qa.x,ll.client.y-=Qa.y}E.left-=qe.left,E.right-=qe.right,E.top-=qe.top,E.bottom-=qe.bottom}}},{key:"shouldDo",value:function(o,h,g,E){return!(!o||o.enabled===!1||E&&!o.endOnly||o.endOnly&&!h||g==="start"&&!o.setStart)}},{key:"copyFrom",value:function(o){this.startOffset=o.startOffset,this.startDelta=o.startDelta,this.startEdges=o.startEdges,this.edges=o.edges,this.states=o.states.map(function(h){return Za(h)}),this.result=Ra(ie({},o.result.coords),ie({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),s}();function Ra(s,o){return{rect:o,coords:s,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Rl(s,o){var h=s.defaults,g={start:s.start,set:s.set,beforeEnd:s.beforeEnd,stop:s.stop},E=function(L){var G=L||{};for(var J in G.enabled=G.enabled!==!1,h)J in G||(G[J]=h[J]);var be={options:G,methods:g,name:o,enable:function(){return G.enabled=!0,be},disable:function(){return G.enabled=!1,be}};return be};return o&&typeof o=="string"&&(E._defaults=h,E._methods=g),E}function Er(s){var o=s.iEvent,h=s.interaction.modification.result;h&&(o.modifiers=h.eventProps)}var kn={id:"modifiers/base",before:["actions"],install:function(s){s.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(s){var o=s.interaction;o.modification=new bl(o)},"interactions:before-action-start":function(s){var o=s.interaction,h=s.interaction.modification;h.start(s,o.coords.start.page),o.edges=h.edges,h.applyToInteraction(s)},"interactions:before-action-move":function(s){var o=s.interaction,h=o.modification,g=h.setAndApply(s);return o.edges=h.edges,g},"interactions:before-action-end":function(s){var o=s.interaction,h=o.modification,g=h.beforeEnd(s);return o.edges=h.startEdges,g},"interactions:action-start":Er,"interactions:action-move":Er,"interactions:action-end":Er,"interactions:after-action-start":function(s){return s.interaction.modification.restoreInteractionCoords(s)},"interactions:after-action-move":function(s){return s.interaction.modification.restoreInteractionCoords(s)},"interactions:stop":function(s){return s.interaction.modification.stop(s)}}},Ur=kn,mr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Xr=function(s){m(h,s);var o=A(h);function h(g,E,L,G,J,be,qe){var Se;t(this,h),(Se=o.call(this,g)).relatedTarget=null,Se.screenX=void 0,Se.screenY=void 0,Se.button=void 0,Se.buttons=void 0,Se.ctrlKey=void 0,Se.shiftKey=void 0,Se.altKey=void 0,Se.metaKey=void 0,Se.page=void 0,Se.client=void 0,Se.delta=void 0,Se.rect=void 0,Se.x0=void 0,Se.y0=void 0,Se.t0=void 0,Se.dt=void 0,Se.duration=void 0,Se.clientX0=void 0,Se.clientY0=void 0,Se.velocity=void 0,Se.speed=void 0,Se.swipe=void 0,Se.axes=void 0,Se.preEnd=void 0,J=J||g.element;var ra=g.interactable,Oa=(ra&&ra.options||mr).deltaSource,ll=fe(ra,J,L),Qa=G==="start",cl=G==="end",Tl=Qa?d(Se):g.prevEvent,El=Qa?g.coords.start:cl?{page:Tl.page,client:Tl.client,timeStamp:g.coords.cur.timeStamp}:g.coords.cur;return Se.page=ie({},El.page),Se.client=ie({},El.client),Se.rect=ie({},g.rect),Se.timeStamp=El.timeStamp,cl||(Se.page.x-=ll.x,Se.page.y-=ll.y,Se.client.x-=ll.x,Se.client.y-=ll.y),Se.ctrlKey=E.ctrlKey,Se.altKey=E.altKey,Se.shiftKey=E.shiftKey,Se.metaKey=E.metaKey,Se.button=E.button,Se.buttons=E.buttons,Se.target=J,Se.currentTarget=J,Se.preEnd=be,Se.type=qe||L+(G||""),Se.interactable=ra,Se.t0=Qa?g.pointers[g.pointers.length-1].downTime:Tl.t0,Se.x0=g.coords.start.page.x-ll.x,Se.y0=g.coords.start.page.y-ll.y,Se.clientX0=g.coords.start.client.x-ll.x,Se.clientY0=g.coords.start.client.y-ll.y,Se.delta=Qa||cl?{x:0,y:0}:{x:Se[Oa].x-Tl[Oa].x,y:Se[Oa].y-Tl[Oa].y},Se.dt=g.coords.delta.timeStamp,Se.duration=Se.timeStamp-Se.t0,Se.velocity=ie({},g.coords.velocity[Oa]),Se.speed=Ba(Se.velocity.x,Se.velocity.y),Se.swipe=cl||G==="inertiastart"?Se.getSwipe():null,Se}return c(h,[{key:"getSwipe",value:function(){var g=this._interaction;if(g.prevEvent.speed<600||this.timeStamp-g.prevEvent.timeStamp>150)return null;var E=180*Math.atan2(g.prevEvent.velocityY,g.prevEvent.velocityX)/Math.PI;E<0&&(E+=360);var L=112.5<=E&&E<247.5,G=202.5<=E&&E<337.5;return{up:G,down:!G&&22.5<=E&&E<157.5,left:L,right:!L&&(292.5<=E||E<67.5),angle:E,speed:g.prevEvent.speed,velocity:{x:g.prevEvent.velocityX,y:g.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),h}(wa);Object.defineProperties(Xr.prototype,{pageX:{get:function(){return this.page.x},set:function(s){this.page.x=s}},pageY:{get:function(){return this.page.y},set:function(s){this.page.y=s}},clientX:{get:function(){return this.client.x},set:function(s){this.client.x=s}},clientY:{get:function(){return this.client.y},set:function(s){this.client.y=s}},dx:{get:function(){return this.delta.x},set:function(s){this.delta.x=s}},dy:{get:function(){return this.delta.y},set:function(s){this.delta.y=s}},velocityX:{get:function(){return this.velocity.x},set:function(s){this.velocity.x=s}},velocityY:{get:function(){return this.velocity.y},set:function(s){this.velocity.y=s}}});var on=c(function s(o,h,g,E,L){t(this,s),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=o,this.pointer=h,this.event=g,this.downTime=E,this.downTarget=L}),Or=function(s){return s.interactable="",s.element="",s.prepared="",s.pointerIsDown="",s.pointerWasMoved="",s._proxy="",s}({}),rr=function(s){return s.start="",s.move="",s.end="",s.stop="",s.interacting="",s}({}),Qr=0,qr=function(){function s(o){var h=this,g=o.pointerType,E=o.scopeFire;t(this,s),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Ha(function(Se){this.move(Se)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Qr++,this._scopeFire=E,this.pointerType=g;var L=this;this._proxy={};var G=function(Se){Object.defineProperty(h._proxy,Se,{get:function(){return L[Se]}})};for(var J in Or)G(J);var be=function(Se){Object.defineProperty(h._proxy,Se,{value:function(){return L[Se].apply(L,arguments)}})};for(var qe in rr)be(qe);this._scopeFire("interactions:new",{interaction:this})}return c(s,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,h,g){var E=this.updatePointer(o,h,g,!0),L=this.pointers[E];this._scopeFire("interactions:down",{pointer:o,event:h,eventTarget:g,pointerIndex:E,pointerInfo:L,type:"down",interaction:this})}},{key:"start",value:function(o,h,g){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!h.options[o.name].enabled)&&(la(this.prepared,o),this.interactable=h,this.element=g,this.rect=h.getRect(g),this.edges=this.prepared.edges?ie({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(o,h,g){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,h,g,!1);var E,L,G=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(E=this.coords.cur.client.x-this.coords.start.client.x,L=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ba(E,L)>this.pointerMoveTolerance);var J,be,qe,Se=this.getPointerIndex(o),ra={pointer:o,pointerIndex:Se,pointerInfo:this.pointers[Se],event:h,type:"move",eventTarget:g,dx:E,dy:L,duplicate:G,interaction:this};G||(J=this.coords.velocity,be=this.coords.delta,qe=Math.max(be.timeStamp/1e3,.001),J.page.x=be.page.x/qe,J.page.y=be.page.y/qe,J.client.x=be.client.x/qe,J.client.y=be.client.y/qe,J.timeStamp=qe),this._scopeFire("interactions:move",ra),G||this.simulation||(this.interacting()&&(ra.type=null,this.move(ra)),this.pointerWasMoved&&Q(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||pe(this.coords.delta),(o=ie({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},o||{})).phase="move",this._doPhase(o)}},{key:"pointerUp",value:function(o,h,g,E){var L=this.getPointerIndex(o);L===-1&&(L=this.updatePointer(o,h,g,!1));var G=/cancel$/i.test(h.type)?"cancel":"up";this._scopeFire("interactions:".concat(G),{pointer:o,pointerIndex:L,pointerInfo:this.pointers[L],event:h,eventTarget:g,type:G,curEventTarget:E,interaction:this}),this.simulation||this.end(h),this.removePointer(o,h)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var h;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(h=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,h===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(o){var h=Ue(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:H(this.pointers,function(g){return g.id===h})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,h,g,E){var L,G,J,be=Ue(o),qe=this.getPointerIndex(o),Se=this.pointers[qe];return E=E!==!1&&(E||/(down|start)$/i.test(h.type)),Se?Se.pointer=o:(Se=new on(be,o,h,null,null),qe=this.pointers.length,this.pointers.push(Se)),xa(this.coords.cur,this.pointers.map(function(ra){return ra.pointer}),this._now()),L=this.coords.delta,G=this.coords.prev,J=this.coords.cur,L.page.x=J.page.x-G.page.x,L.page.y=J.page.y-G.page.y,L.client.x=J.client.x-G.client.x,L.client.y=J.client.y-G.client.y,L.timeStamp=J.timeStamp-G.timeStamp,E&&(this.pointerIsDown=!0,Se.downTime=this.coords.cur.timeStamp,Se.downTarget=g,F(this.downPointer,o),this.interacting()||(Q(this.coords.start,this.coords.cur),Q(this.coords.prev,this.coords.cur),this.downEvent=h,this.pointerWasMoved=!1)),this._updateLatestPointer(o,h,g),this._scopeFire("interactions:update-pointer",{pointer:o,event:h,eventTarget:g,down:E,pointerInfo:Se,pointerIndex:qe,interaction:this}),qe}},{key:"removePointer",value:function(o,h){var g=this.getPointerIndex(o);if(g!==-1){var E=this.pointers[g];this._scopeFire("interactions:remove-pointer",{pointer:o,event:h,eventTarget:null,pointerIndex:g,pointerInfo:E,interaction:this}),this.pointers.splice(g,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,h,g){this._latestPointer.pointer=o,this._latestPointer.event=h,this._latestPointer.eventTarget=g}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,h,g,E){return new Xr(this,o,this.prepared.name,h,this.element,g,E)}},{key:"_fireEvent",value:function(o){var h;(h=this.interactable)==null||h.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var h=o.event,g=o.phase,E=o.preEnd,L=o.type,G=this.rect;if(G&&g==="move"&&(de(this.edges,G,this.coords.delta[this.interactable.options.deltaSource]),G.width=G.right-G.left,G.height=G.bottom-G.top),this._scopeFire("interactions:before-action-".concat(g),o)===!1)return!1;var J=o.iEvent=this._createPreparedEvent(h,g,E,L);return this._scopeFire("interactions:action-".concat(g),o),g==="start"&&(this.prevEvent=J),this._fireEvent(J),this._scopeFire("interactions:after-action-".concat(g),o),!0}},{key:"_now",value:function(){return Date.now()}}]),s}();function ir(s){Cr(s.interaction)}function Cr(s){if(!function(h){return!(!h.offset.pending.x&&!h.offset.pending.y)}(s))return!1;var o=s.offset.pending;return ql(s.coords.cur,o),ql(s.coords.delta,o),de(s.edges,s.rect,o),o.x=0,o.y=0,!0}function en(s){var o=s.x,h=s.y;this.offset.pending.x+=o,this.offset.pending.y+=h,this.offset.total.x+=o,this.offset.total.y+=h}function ql(s,o){var h=s.page,g=s.client,E=o.x,L=o.y;h.x+=E,h.y+=L,g.x+=E,g.y+=L}rr.offsetBy="";var or={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(s){s.Interaction.prototype.offsetBy=en},listeners:{"interactions:new":function(s){s.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(s){return function(o){o.pointerIsDown&&(ql(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(s.interaction)},"interactions:before-action-start":ir,"interactions:before-action-move":ir,"interactions:before-action-end":function(s){var o=s.interaction;if(Cr(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(s){var o=s.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},kr=or,Lr=function(){function s(o){t(this,s),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=o}return c(s,[{key:"start",value:function(o){var h=this.interaction,g=Il(h);if(!g||!g.enabled)return!1;var E=h.coords.velocity.client,L=Ba(E.x,E.y),G=this.modification||(this.modification=new bl(h));if(G.copyFrom(h.modification),this.t0=h._now(),this.allowResume=g.allowResume,this.v0=L,this.currentOffset={x:0,y:0},this.startCoords=h.coords.cur.page,this.modifierArg=G.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-h.coords.cur.timeStamp<50&&L>g.minSpeed&&L>g.endSpeed)this.startInertia();else{if(G.result=G.setAll(this.modifierArg),!G.result.changed)return!1;this.startSmoothEnd()}return h.modification.result.rect=null,h.offsetBy(this.targetOffset),h._doPhase({interaction:h,event:o,phase:"inertiastart"}),h.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),h.modification.result.rect=null,this.active=!0,h.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,h=this.interaction.coords.velocity.client,g=Il(this.interaction),E=g.resistance,L=-Math.log(g.endSpeed/this.v0)/E;this.targetOffset={x:(h.x-L)/E,y:(h.y-L)/E},this.te=L,this.lambda_v0=E/this.v0,this.one_ve_v0=1-g.endSpeed/this.v0;var G=this.modification,J=this.modifierArg;J.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},G.result=G.setAll(J),G.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+G.result.delta.x,y:this.targetOffset.y+G.result.delta.y}),this.onNextFrame(function(){return o.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var o=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return o.smoothEndTick()})}},{key:"onNextFrame",value:function(o){var h=this;this.timeout=ar.request(function(){h.active&&o()})}},{key:"inertiaTick",value:function(){var o,h,g,E,L,G,J,be=this,qe=this.interaction,Se=Il(qe).resistance,ra=(qe._now()-this.t0)/1e3;if(ra<this.te){var Oa,ll=1-(Math.exp(-Se*ra)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,h=0,g=this.targetOffset.x,E=this.targetOffset.y,L=this.modifiedOffset.x,G=this.modifiedOffset.y,Oa={x:tr(J=ll,o,g,L),y:tr(J,h,E,G)}):Oa={x:this.targetOffset.x*ll,y:this.targetOffset.y*ll};var Qa={x:Oa.x-this.currentOffset.x,y:Oa.y-this.currentOffset.y};this.currentOffset.x+=Qa.x,this.currentOffset.y+=Qa.y,qe.offsetBy(Qa),qe.move(),this.onNextFrame(function(){return be.inertiaTick()})}else qe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var o=this,h=this.interaction,g=h._now()-this.t0,E=Il(h).smoothEndDuration;if(g<E){var L={x:_r(g,0,this.targetOffset.x,E),y:_r(g,0,this.targetOffset.y,E)},G={x:L.x-this.currentOffset.x,y:L.y-this.currentOffset.y};this.currentOffset.x+=G.x,this.currentOffset.y+=G.y,h.offsetBy(G),h.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return o.smoothEndTick()})}else h.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var h=o.pointer,g=o.event,E=o.eventTarget,L=this.interaction;L.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),L.updatePointer(h,g,E,!0),L._doPhase({interaction:L,event:g,phase:"resume"}),Q(L.coords.prev,L.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,ar.cancel(this.timeout)}}]),s}();function Il(s){var o=s.interactable,h=s.prepared;return o&&o.options&&h.name&&o.options[h.name].inertia}var an={id:"inertia",before:["modifiers","actions"],install:function(s){var o=s.defaults;s.usePlugin(kr),s.usePlugin(Ur),s.actions.phases.inertiastart=!0,s.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(s){var o=s.interaction;o.inertia=new Lr(o)},"interactions:before-action-end":function(s){var o=s.interaction,h=s.event;return(!o._interacting||o.simulation||!o.inertia.start(h))&&null},"interactions:down":function(s){var o=s.interaction,h=s.eventTarget,g=o.inertia;if(g.active)for(var E=h;C.element(E);){if(E===o.element){g.resume(s);break}E=$e(E)}},"interactions:stop":function(s){var o=s.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(s){var o=s.interaction.modification;o.stop(s),o.start(s,s.interaction.coords.cur.page),o.applyToInteraction(s)},"interactions:before-action-inertiastart":function(s){return s.interaction.modification.setAndApply(s)},"interactions:action-resume":Er,"interactions:action-inertiastart":Er,"interactions:after-action-inertiastart":function(s){return s.interaction.modification.restoreInteractionCoords(s)},"interactions:after-action-resume":function(s){return s.interaction.modification.restoreInteractionCoords(s)}}};function tr(s,o,h,g){var E=1-s;return E*E*o+2*E*s*h+s*s*g}function _r(s,o,h,g){return-h*(s/=g)*(s-2)+o}var Mr=an;function Br(s,o){for(var h=0;h<o.length;h++){var g=o[h];if(s.immediatePropagationStopped)break;g(s)}}var zn=function(){function s(o){t(this,s),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ie({},o||{})}return c(s,[{key:"fire",value:function(o){var h,g=this.global;(h=this.types[o.type])&&Br(o,h),!o.propagationStopped&&g&&(h=g[o.type])&&Br(o,h)}},{key:"on",value:function(o,h){var g=Ke(o,h);for(o in g)this.types[o]=Je(this.types[o]||[],g[o])}},{key:"off",value:function(o,h){var g=Ke(o,h);for(o in g){var E=this.types[o];if(E&&E.length)for(var L=0,G=g[o];L<G.length;L++){var J=G[L],be=E.indexOf(J);be!==-1&&E.splice(be,1)}}}},{key:"getRect",value:function(o){return null}}]),s}(),ri=function(){function s(o){t(this,s),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,F(this,o)}return c(s,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),s}();function Mn(s){return C.object(s)?{capture:!!s.capture,passive:!!s.passive}:{capture:!!s,passive:!1}}function wn(s,o){return s===o||(typeof s=="boolean"?!!o.capture===s&&!o.passive:!!s.capture==!!o.capture&&!!s.passive==!!o.passive)}var Kn={id:"events",install:function(s){var o,h=[],g={},E=[],L={add:G,remove:J,addDelegate:function(Se,ra,Oa,ll,Qa){var cl=Mn(Qa);if(!g[Oa]){g[Oa]=[];for(var Tl=0;Tl<E.length;Tl++){var El=E[Tl];G(El,Oa,be),G(El,Oa,qe,!0)}}var Vl=g[Oa],Jl=Oe(Vl,function(sr){return sr.selector===Se&&sr.context===ra});Jl||(Jl={selector:Se,context:ra,listeners:[]},Vl.push(Jl)),Jl.listeners.push({func:ll,options:cl})},removeDelegate:function(Se,ra,Oa,ll,Qa){var cl,Tl=Mn(Qa),El=g[Oa],Vl=!1;if(El)for(cl=El.length-1;cl>=0;cl--){var Jl=El[cl];if(Jl.selector===Se&&Jl.context===ra){for(var sr=Jl.listeners,Hl=sr.length-1;Hl>=0;Hl--){var Zl=sr[Hl];if(Zl.func===ll&&wn(Zl.options,Tl)){sr.splice(Hl,1),sr.length||(El.splice(cl,1),J(ra,Oa,be),J(ra,Oa,qe,!0)),Vl=!0;break}}if(Vl)break}}},delegateListener:be,delegateUseCapture:qe,delegatedEvents:g,documents:E,targets:h,supportsOptions:!1,supportsPassive:!1};function G(Se,ra,Oa,ll){if(Se.addEventListener){var Qa=Mn(ll),cl=Oe(h,function(Tl){return Tl.eventTarget===Se});cl||(cl={eventTarget:Se,events:{}},h.push(cl)),cl.events[ra]||(cl.events[ra]=[]),Oe(cl.events[ra],function(Tl){return Tl.func===Oa&&wn(Tl.options,Qa)})||(Se.addEventListener(ra,Oa,L.supportsOptions?Qa:Qa.capture),cl.events[ra].push({func:Oa,options:Qa}))}}function J(Se,ra,Oa,ll){if(Se.addEventListener&&Se.removeEventListener){var Qa=H(h,function(sn){return sn.eventTarget===Se}),cl=h[Qa];if(cl&&cl.events)if(ra!=="all"){var Tl=!1,El=cl.events[ra];if(El){if(Oa==="all"){for(var Vl=El.length-1;Vl>=0;Vl--){var Jl=El[Vl];J(Se,ra,Jl.func,Jl.options)}return}for(var sr=Mn(ll),Hl=0;Hl<El.length;Hl++){var Zl=El[Hl];if(Zl.func===Oa&&wn(Zl.options,sr)){Se.removeEventListener(ra,Oa,L.supportsOptions?sr:sr.capture),El.splice(Hl,1),El.length===0&&(delete cl.events[ra],Tl=!0);break}}}Tl&&!Object.keys(cl.events).length&&h.splice(Qa,1)}else for(ra in cl.events)cl.events.hasOwnProperty(ra)&&J(Se,ra,"all")}}function be(Se,ra){for(var Oa=Mn(ra),ll=new ri(Se),Qa=g[Se.type],cl=De(Se)[0],Tl=cl;C.element(Tl);){for(var El=0;El<Qa.length;El++){var Vl=Qa[El],Jl=Vl.selector,sr=Vl.context;if(se(Tl,Jl)&&re(sr,cl)&&re(sr,Tl)){var Hl=Vl.listeners;ll.currentTarget=Tl;for(var Zl=0;Zl<Hl.length;Zl++){var sn=Hl[Zl];wn(sn.options,Oa)&&sn.func(ll)}}}Tl=$e(Tl)}}function qe(Se){return be(Se,!0)}return(o=s.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return L.supportsOptions=!0},get passive(){return L.supportsPassive=!0}}),s.events=L,L}},dn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(s){for(var o=0,h=dn.methodOrder;o<h.length;o++){var g=h[o],E=dn[g](s);if(E)return E}return null},simulationResume:function(s){var o=s.pointerType,h=s.eventType,g=s.eventTarget,E=s.scope;if(!/down|start/i.test(h))return null;for(var L=0,G=E.interactions.list;L<G.length;L++){var J=G[L],be=g;if(J.simulation&&J.simulation.allowResume&&J.pointerType===o)for(;be;){if(be===J.element)return J;be=$e(be)}}return null},mouseOrPen:function(s){var o,h=s.pointerId,g=s.pointerType,E=s.eventType,L=s.scope;if(g!=="mouse"&&g!=="pen")return null;for(var G=0,J=L.interactions.list;G<J.length;G++){var be=J[G];if(be.pointerType===g){if(be.simulation&&!In(be,h))continue;if(be.interacting())return be;o||(o=be)}}if(o)return o;for(var qe=0,Se=L.interactions.list;qe<Se.length;qe++){var ra=Se[qe];if(!(ra.pointerType!==g||/down/i.test(E)&&ra.simulation))return ra}return null},hasPointer:function(s){for(var o=s.pointerId,h=0,g=s.scope.interactions.list;h<g.length;h++){var E=g[h];if(In(E,o))return E}return null},idle:function(s){for(var o=s.pointerType,h=0,g=s.scope.interactions.list;h<g.length;h++){var E=g[h];if(E.pointers.length===1){var L=E.interactable;if(L&&(!L.options.gesture||!L.options.gesture.enabled))continue}else if(E.pointers.length>=2)continue;if(!E.interacting()&&o===E.pointerType)return E}return null}};function In(s,o){return s.pointers.some(function(h){return h.id===o})}var ni=dn,pn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ii(s,o){return function(h){var g=o.interactions.list,E=Aa(h),L=De(h),G=L[0],J=L[1],be=[];if(/^touch/.test(h.type)){o.prevTouchTime=o.now();for(var qe=0,Se=h.changedTouches;qe<Se.length;qe++){var ra=Se[qe],Oa={pointer:ra,pointerId:Ue(ra),pointerType:E,eventType:h.type,eventTarget:G,curEventTarget:J,scope:o},ll=Tn(Oa);be.push([Oa.pointer,Oa.eventTarget,Oa.curEventTarget,ll])}}else{var Qa=!1;if(!X.supportsPointerEvent&&/mouse/.test(h.type)){for(var cl=0;cl<g.length&&!Qa;cl++)Qa=g[cl].pointerType!=="mouse"&&g[cl].pointerIsDown;Qa=Qa||o.now()-o.prevTouchTime<500||h.timeStamp===0}if(!Qa){var Tl={pointer:h,pointerId:Ue(h),pointerType:E,eventType:h.type,curEventTarget:J,eventTarget:G,scope:o},El=Tn(Tl);be.push([Tl.pointer,Tl.eventTarget,Tl.curEventTarget,El])}}for(var Vl=0;Vl<be.length;Vl++){var Jl=be[Vl],sr=Jl[0],Hl=Jl[1],Zl=Jl[2];Jl[3][s](sr,h,Hl,Zl)}}}function Tn(s){var o=s.pointerType,h=s.scope,g={interaction:ni.search(s),searchDetails:s};return h.fire("interactions:find",g),g.interaction||h.interactions.new({pointerType:o})}function Ri(s,o){var h=s.doc,g=s.scope,E=s.options,L=g.interactions.docEvents,G=g.events,J=G[o];for(var be in g.browser.isIOS&&!E.events&&(E.events={passive:!1}),G.delegatedEvents)J(h,be,G.delegateListener),J(h,be,G.delegateUseCapture,!0);for(var qe=E&&E.events,Se=0;Se<L.length;Se++){var ra=L[Se];J(h,ra.type,ra.listener,qe)}}var gi={id:"core/interactions",install:function(s){for(var o={},h=0;h<pn.length;h++){var g=pn[h];o[g]=ii(g,s)}var E,L=X.pEventTypes;function G(){for(var J=0,be=s.interactions.list;J<be.length;J++){var qe=be[J];if(qe.pointerIsDown&&qe.pointerType==="touch"&&!qe._interacting)for(var Se=function(){var ll=Oa[ra];s.documents.some(function(Qa){return re(Qa.doc,ll.downTarget)})||qe.removePointer(ll.pointer,ll.event)},ra=0,Oa=qe.pointers;ra<Oa.length;ra++)Se()}}(E=U.PointerEvent?[{type:L.down,listener:G},{type:L.down,listener:o.pointerDown},{type:L.move,listener:o.pointerMove},{type:L.up,listener:o.pointerUp},{type:L.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:G},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(J){for(var be=0,qe=s.interactions.list;be<qe.length;be++)qe[be].documentBlur(J)}}),s.prevTouchTime=0,s.Interaction=function(J){m(qe,J);var be=A(qe);function qe(){return t(this,qe),be.apply(this,arguments)}return c(qe,[{key:"pointerMoveTolerance",get:function(){return s.interactions.pointerMoveTolerance},set:function(Se){s.interactions.pointerMoveTolerance=Se}},{key:"_now",value:function(){return s.now()}}]),qe}(qr),s.interactions={list:[],new:function(J){J.scopeFire=function(qe,Se){return s.fire(qe,Se)};var be=new s.Interaction(J);return s.interactions.list.push(be),be},listeners:o,docEvents:E,pointerMoveTolerance:1},s.usePlugin(Sa)},listeners:{"scope:add-document":function(s){return Ri(s,"add")},"scope:remove-document":function(s){return Ri(s,"remove")},"interactable:unset":function(s,o){for(var h=s.interactable,g=o.interactions.list.length-1;g>=0;g--){var E=o.interactions.list[g];E.interactable===h&&(E.stop(),o.fire("interactions:destroy",{interaction:E}),E.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(g,1))}}},onDocSignal:Ri,doOnInteractions:ii,methodNames:pn},Vo=gi,Bn=function(s){return s[s.On=0]="On",s[s.Off=1]="Off",s}(Bn||{}),Fo=function(){function s(o,h,g,E){t(this,s),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new zn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=h.actions,this.target=o,this._context=h.context||g,this._win=k(Ea(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=E,this.set(h)}return c(s,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,h){return C.func(h.onstart)&&this.on("".concat(o,"start"),h.onstart),C.func(h.onmove)&&this.on("".concat(o,"move"),h.onmove),C.func(h.onend)&&this.on("".concat(o,"end"),h.onend),C.func(h.oninertiastart)&&this.on("".concat(o,"inertiastart"),h.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,h,g){var E,L=this,G=(E=this._actions.map[o])==null?void 0:E.filterEventType,J=function(be){return(G==null||G(be))&&ul(be,L._actions)};(C.array(h)||C.object(h))&&this._onOff(Bn.Off,o,h,void 0,J),(C.array(g)||C.object(g))&&this._onOff(Bn.On,o,g,void 0,J)}},{key:"setPerAction",value:function(o,h){var g=this._defaults;for(var E in h){var L=E,G=this.options[o],J=h[L];L==="listeners"&&this.updatePerActionListeners(o,G.listeners,J),C.array(J)?G[L]=xe(J):C.plainObject(J)?(G[L]=ie(G[L]||{},Za(J)),C.object(g.perAction[L])&&"enabled"in g.perAction[L]&&(G[L].enabled=J.enabled!==!1)):C.bool(J)&&C.object(g.perAction[L])?G[L].enabled=J:G[L]=J}}},{key:"getRect",value:function(o){return o=o||(C.element(this.target)?this.target:null),C.string(this.target)&&(o=o||this._context.querySelector(this.target)),Ve(o)}},{key:"rectChecker",value:function(o){var h=this;return C.func(o)?(this.getRect=function(g){var E=ie({},o.apply(h,g));return"width"in E||(E.width=E.right-E.left,E.height=E.bottom-E.top),E},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,h){if(Ea(h)||C.object(h)){for(var g in this.options[o]=h,this._actions.map)this.options[g][o]=h;return this}return this.options[o]}},{key:"origin",value:function(o){return this._backCompatOption("origin",o)}},{key:"deltaSource",value:function(o){return o==="page"||o==="client"?(this.options.deltaSource=o,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var o=this.target;return C.string(o)?Array.from(this._context.querySelectorAll(o)):C.func(o)&&o.getAllElements?o.getAllElements():C.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||re(this._context,o)}},{key:"testIgnoreAllow",value:function(o,h,g){return!this.testIgnore(o.ignoreFrom,h,g)&&this.testAllow(o.allowFrom,h,g)}},{key:"testAllow",value:function(o,h,g){return!o||!!C.element(g)&&(C.string(o)?W(g,o,h):!!C.element(o)&&re(o,g))}},{key:"testIgnore",value:function(o,h,g){return!(!o||!C.element(g))&&(C.string(o)?W(g,o,h):!!C.element(o)&&re(o,g))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,h,g,E,L){C.object(h)&&!C.array(h)&&(E=g,g=null);var G=Ke(h,g,L);for(var J in G){J==="wheel"&&(J=X.wheelEvent);for(var be=0,qe=G[J];be<qe.length;be++){var Se=qe[be];ul(J,this._actions)?this.events[o===Bn.On?"on":"off"](J,Se):C.string(this.target)?this._scopeEvents[o===Bn.On?"addDelegate":"removeDelegate"](this.target,this._context,J,Se,E):this._scopeEvents[o===Bn.On?"add":"remove"](this.target,J,Se,E)}}return this}},{key:"on",value:function(o,h,g){return this._onOff(Bn.On,o,h,g)}},{key:"off",value:function(o,h,g){return this._onOff(Bn.Off,o,h,g)}},{key:"set",value:function(o){var h=this._defaults;for(var g in C.object(o)||(o={}),this.options=Za(h.base),this._actions.methodDict){var E=g,L=this._actions.methodDict[E];this.options[E]={},this.setPerAction(E,ie(ie({},h.perAction),h.actions[E])),this[L](o[E])}for(var G in o)G!=="getRect"?C.func(this[G])&&this[G](o[G]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(C.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var h=this._scopeEvents.delegatedEvents[o],g=h.length-1;g>=0;g--){var E=h[g],L=E.selector,G=E.context,J=E.listeners;L===this.target&&G===this._context&&h.splice(g,1);for(var be=J.length-1;be>=0;be--)this._scopeEvents.removeDelegate(this.target,this._context,o,J[be][0],J[be][1])}else this._scopeEvents.remove(this.target,"all")}}]),s}(),Po=function(){function s(o){var h=this;t(this,s),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(g){var E=g.interactable,L=E.target,G=C.string(L)?h.selectorMap[L]:L[h.scope.id],J=H(G,function(be){return be===E});G.splice(J,1)}})}return c(s,[{key:"new",value:function(o,h){h=ie(h||{},{actions:this.scope.actions});var g=new this.scope.Interactable(o,h,this.scope.document,this.scope.events);return this.scope.addDocument(g._doc),this.list.push(g),C.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(g)):(g.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(g)),this.scope.fire("interactable:new",{target:o,options:h,interactable:g,win:this.scope._win}),g}},{key:"getExisting",value:function(o,h){var g=h&&h.context||this.scope.document,E=C.string(o),L=E?this.selectorMap[o]:o[this.scope.id];if(L)return Oe(L,function(G){return G._context===g&&(E||G.inContext(o))})}},{key:"forEachMatch",value:function(o,h){for(var g=0,E=this.list;g<E.length;g++){var L=E[g],G=void 0;if((C.string(L.target)?C.element(o)&&se(o,L.target):o===L.target)&&L.inContext(o)&&(G=h(L)),G!==void 0)return G}}}]),s}(),jo=function(){function s(){var o=this;t(this,s),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=X,this.defaults=Za(mr),this.Eventable=zn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(g){var E=function L(G,J){var be=g.interactables.getExisting(G,J);return be||((be=g.interactables.new(G,J)).events.global=L.globalEvents),be};return E.getPointerAverage=Ce,E.getTouchBBox=Pa,E.getTouchDistance=Ca,E.getTouchAngle=oa,E.getElementRect=Ve,E.getElementClientRect=Ie,E.matchesSelector=se,E.closest=he,E.globalEvents={},E.version="1.10.27",E.scope=g,E.use=function(L,G){return this.scope.usePlugin(L,G),this},E.isSet=function(L,G){return!!this.scope.interactables.get(L,G&&G.context)},E.on=Ha(function(L,G,J){if(C.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),C.array(L)){for(var be=0,qe=L;be<qe.length;be++){var Se=qe[be];this.on(Se,G,J)}return this}if(C.object(L)){for(var ra in L)this.on(ra,L[ra],G);return this}return ul(L,this.scope.actions)?this.globalEvents[L]?this.globalEvents[L].push(G):this.globalEvents[L]=[G]:this.scope.events.add(this.scope.document,L,G,{options:J}),this},"The interact.on() method is being deprecated"),E.off=Ha(function(L,G,J){if(C.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),C.array(L)){for(var be=0,qe=L;be<qe.length;be++){var Se=qe[be];this.off(Se,G,J)}return this}if(C.object(L)){for(var ra in L)this.off(ra,L[ra],G);return this}var Oa;return ul(L,this.scope.actions)?L in this.globalEvents&&(Oa=this.globalEvents[L].indexOf(G))!==-1&&this.globalEvents[L].splice(Oa,1):this.scope.events.remove(this.scope.document,L,G,J),this},"The interact.off() method is being deprecated"),E.debug=function(){return this.scope},E.supportsTouch=function(){return X.supportsTouch},E.supportsPointerEvent=function(){return X.supportsPointerEvent},E.stop=function(){for(var L=0,G=this.scope.interactions.list;L<G.length;L++)G[L].stop();return this},E.pointerMoveTolerance=function(L){return C.number(L)?(this.scope.interactions.pointerMoveTolerance=L,this):this.scope.interactions.pointerMoveTolerance},E.addDocument=function(L,G){this.scope.addDocument(L,G)},E.removeDocument=function(L){this.scope.removeDocument(L)},E}(this),this.InteractEvent=Xr,this.Interactable=void 0,this.interactables=new Po(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(g){return o.removeDocument(g.target)};var h=this;this.Interactable=function(g){m(L,g);var E=A(L);function L(){return t(this,L),E.apply(this,arguments)}return c(L,[{key:"_defaults",get:function(){return h.defaults}},{key:"set",value:function(G){return w(y(L.prototype),"set",this).call(this,G),h.fire("interactable:set",{options:G,interactable:this}),this}},{key:"unset",value:function(){w(y(L.prototype),"unset",this).call(this);var G=h.interactables.list.indexOf(this);G<0||(h.interactables.list.splice(G,1),h.fire("interactable:unset",{interactable:this}))}}]),L}(Fo)}return c(s,[{key:"addListeners",value:function(o,h){this.listenerMaps.push({id:h,map:o})}},{key:"fire",value:function(o,h){for(var g=0,E=this.listenerMaps;g<E.length;g++){var L=E[g].map[o];if(L&&L(h,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(h,g){return h.isInitialized=!0,C.window(g)&&S(g),U.init(g),X.init(g),ar.init(g),h.window=g,h.document=g.document,h.usePlugin(Vo),h.usePlugin(Kn),h}(this,o)}},{key:"pluginIsInstalled",value:function(o){var h=o.id;return h?!!this._plugins.map[h]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,h){if(!this.isInitialized)return this;if(this.pluginIsInstalled(o))return this;if(o.id&&(this._plugins.map[o.id]=o),this._plugins.list.push(o),o.install&&o.install(this,h),o.listeners&&o.before){for(var g=0,E=this.listenerMaps.length,L=o.before.reduce(function(J,be){return J[be]=!0,J[eo(be)]=!0,J},{});g<E;g++){var G=this.listenerMaps[g].id;if(G&&(L[G]||L[eo(G)]))break}this.listenerMaps.splice(g,0,{id:o.id,map:o.listeners})}else o.listeners&&this.listenerMaps.push({id:o.id,map:o.listeners});return this}},{key:"addDocument",value:function(o,h){if(this.getDocIndex(o)!==-1)return!1;var g=k(o);h=h?ie({},h):{},this.documents.push({doc:o,options:h}),this.events.documents.push(o),o!==this.document&&this.events.add(g,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:g,scope:this,options:h})}},{key:"removeDocument",value:function(o){var h=this.getDocIndex(o),g=k(o),E=this.documents[h].options;this.events.remove(g,"unload",this.onWindowUnload),this.documents.splice(h,1),this.events.documents.splice(h,1),this.fire("scope:remove-document",{doc:o,window:g,scope:this,options:E})}},{key:"getDocIndex",value:function(o){for(var h=0;h<this.documents.length;h++)if(this.documents[h].doc===o)return h;return-1}},{key:"getDocOptions",value:function(o){var h=this.getDocIndex(o);return h===-1?null:this.documents[h].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),s}();function eo(s){return s&&s.replace(/\/.*$/,"")}var ao=new jo,tn=ao.interactStatic,Ho=typeof globalThis<"u"?globalThis:window;ao.init(Ho);var lo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(s){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(g){var E=g[0],L=g[1];return E in s||L in s}),h=function(g,E){for(var L=s.range,G=s.limits,J=G===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:G,be=s.offset,qe=be===void 0?{x:0,y:0}:be,Se={range:L,grid:s,x:null,y:null},ra=0;ra<o.length;ra++){var Oa=o[ra],ll=Oa[0],Qa=Oa[1],cl=Math.round((g-qe.x)/s[ll]),Tl=Math.round((E-qe.y)/s[Qa]);Se[ll]=Math.max(J.left,Math.min(J.right,cl*s[ll]+qe.x)),Se[Qa]=Math.max(J.top,Math.min(J.bottom,Tl*s[Qa]+qe.y))}return Se};return h.grid=s,h.coordFields=o,h}}),Uo={id:"snappers",install:function(s){var o=s.interactStatic;o.snappers=ie(o.snappers||{},lo),o.createSnapGrid=o.snappers.grid}},qo=Uo,Wo={start:function(s){var o=s.state,h=s.rect,g=s.edges,E=s.pageCoords,L=o.options,G=L.ratio,J=L.enabled,be=o.options,qe=be.equalDelta,Se=be.modifiers;G==="preserve"&&(G=h.width/h.height),o.startCoords=ie({},E),o.startRect=ie({},h),o.ratio=G,o.equalDelta=qe;var ra=o.linkedEdges={top:g.top||g.left&&!g.bottom,left:g.left||g.top&&!g.right,bottom:g.bottom||g.right&&!g.top,right:g.right||g.bottom&&!g.left};if(o.xIsPrimaryAxis=!(!g.left&&!g.right),o.equalDelta){var Oa=(ra.left?1:-1)*(ra.top?1:-1);o.edgeSign={x:Oa,y:Oa}}else o.edgeSign={x:ra.left?-1:1,y:ra.top?-1:1};if(J!==!1&&ie(g,ra),Se!=null&&Se.length){var ll=new bl(s.interaction);ll.copyFrom(s.interaction.modification),ll.prepareStates(Se),o.subModification=ll,ll.startAll(r({},s))}},set:function(s){var o=s.state,h=s.rect,g=s.coords,E=o.linkedEdges,L=ie({},g),G=o.equalDelta?Ko:$i;if(ie(s.edges,E),G(o,o.xIsPrimaryAxis,g,h),!o.subModification)return null;var J=ie({},h);de(E,J,{x:g.x-L.x,y:g.y-L.y});var be=o.subModification.setAll(r(r({},s),{},{rect:J,edges:E,pageCoords:g,prevCoords:g,prevRect:J})),qe=be.delta;return be.changed&&(G(o,Math.abs(qe.x)>Math.abs(qe.y),be.coords,be.rect),ie(g,be.coords)),be.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Ko(s,o,h){var g=s.startCoords,E=s.edgeSign;o?h.y=g.y+(h.x-g.x)*E.y:h.x=g.x+(h.y-g.y)*E.x}function $i(s,o,h,g){var E=s.startRect,L=s.startCoords,G=s.ratio,J=s.edgeSign;if(o){var be=g.width/G;h.y=L.y+(be-E.height)*J.y}else{var qe=g.height*G;h.x=L.x+(qe-E.width)*J.x}}var Go=Rl(Wo,"aspectRatio"),bi=function(){};bi._defaults={};var oi=bi;function On(s,o,h){return C.func(s)?ce(s,o.interactable,o.element,[h.x,h.y,o]):ce(s,o.interactable,o.element)}var ki={start:function(s){var o=s.rect,h=s.startOffset,g=s.state,E=s.interaction,L=s.pageCoords,G=g.options,J=G.elementRect,be=ie({left:0,top:0,right:0,bottom:0},G.offset||{});if(o&&J){var qe=On(G.restriction,E,L);if(qe){var Se=qe.right-qe.left-o.width,ra=qe.bottom-qe.top-o.height;Se<0&&(be.left+=Se,be.right+=Se),ra<0&&(be.top+=ra,be.bottom+=ra)}be.left+=h.left-o.width*J.left,be.top+=h.top-o.height*J.top,be.right+=h.right-o.width*(1-J.right),be.bottom+=h.bottom-o.height*(1-J.bottom)}g.offset=be},set:function(s){var o=s.coords,h=s.interaction,g=s.state,E=g.options,L=g.offset,G=On(E.restriction,h,o);if(G){var J=function(be){return!be||"left"in be&&"top"in be||((be=ie({},be)).left=be.x||0,be.top=be.y||0,be.right=be.right||be.left+be.width,be.bottom=be.bottom||be.top+be.height),be}(G);o.x=Math.max(Math.min(J.right-L.right,o.x),J.left+L.left),o.y=Math.max(Math.min(J.bottom-L.bottom,o.y),J.top+L.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Yo=Rl(ki,"restrict"),ro={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Gn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Vi(s,o){for(var h=0,g=["top","left","bottom","right"];h<g.length;h++){var E=g[h];E in s||(s[E]=o[E])}return s}var Fn={noInner:ro,noOuter:Gn,start:function(s){var o,h=s.interaction,g=s.startOffset,E=s.state,L=E.options;L&&(o=ea(On(L.offset,h,h.coords.start.page))),o=o||{x:0,y:0},E.offset={top:o.y+g.top,left:o.x+g.left,bottom:o.y-g.bottom,right:o.x-g.right}},set:function(s){var o=s.coords,h=s.edges,g=s.interaction,E=s.state,L=E.offset,G=E.options;if(h){var J=ie({},o),be=On(G.inner,g,J)||{},qe=On(G.outer,g,J)||{};Vi(be,ro),Vi(qe,Gn),h.top?o.y=Math.min(Math.max(qe.top+L.top,J.y),be.top+L.top):h.bottom&&(o.y=Math.max(Math.min(qe.bottom+L.bottom,J.y),be.bottom+L.bottom)),h.left?o.x=Math.min(Math.max(qe.left+L.left,J.x),be.left+L.left):h.right&&(o.x=Math.max(Math.min(qe.right+L.right,J.x),be.right+L.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Jo=Rl(Fn,"restrictEdges"),Xo=ie({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(s){}},ki.defaults),Zo=Rl({start:ki.start,set:ki.set,defaults:Xo},"restrictRect"),Qo={width:-1/0,height:-1/0},no={width:1/0,height:1/0},ti=Rl({start:function(s){return Fn.start(s)},set:function(s){var o=s.interaction,h=s.state,g=s.rect,E=s.edges,L=h.options;if(E){var G=Me(On(L.min,o,s.coords))||Qo,J=Me(On(L.max,o,s.coords))||no;h.options={endOnly:L.endOnly,inner:ie({},Fn.noInner),outer:ie({},Fn.noOuter)},E.top?(h.options.inner.top=g.bottom-G.height,h.options.outer.top=g.bottom-J.height):E.bottom&&(h.options.inner.bottom=g.top+G.height,h.options.outer.bottom=g.top+J.height),E.left?(h.options.inner.left=g.right-G.width,h.options.outer.left=g.right-J.width):E.right&&(h.options.inner.right=g.left+G.width,h.options.outer.right=g.left+J.width),Fn.set(s),h.options=L}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),xi={start:function(s){var o,h=s.interaction,g=s.interactable,E=s.element,L=s.rect,G=s.state,J=s.startOffset,be=G.options,qe=be.offsetWithOrigin?function(Oa){var ll=Oa.interaction.element,Qa=ea(ce(Oa.state.options.origin,null,null,[ll])),cl=Qa||fe(Oa.interactable,ll,Oa.interaction.prepared.name);return cl}(s):{x:0,y:0};if(be.offset==="startCoords")o={x:h.coords.start.page.x,y:h.coords.start.page.y};else{var Se=ce(be.offset,g,E,[h]);(o=ea(Se)||{x:0,y:0}).x+=qe.x,o.y+=qe.y}var ra=be.relativePoints;G.offsets=L&&ra&&ra.length?ra.map(function(Oa,ll){return{index:ll,relativePoint:Oa,x:J.left-L.width*Oa.x+o.x,y:J.top-L.height*Oa.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(s){var o=s.interaction,h=s.coords,g=s.state,E=g.options,L=g.offsets,G=fe(o.interactable,o.element,o.prepared.name),J=ie({},h),be=[];E.offsetWithOrigin||(J.x-=G.x,J.y-=G.y);for(var qe=0,Se=L;qe<Se.length;qe++)for(var ra=Se[qe],Oa=J.x-ra.x,ll=J.y-ra.y,Qa=0,cl=E.targets.length;Qa<cl;Qa++){var Tl=E.targets[Qa],El=void 0;(El=C.func(Tl)?Tl(Oa,ll,o._proxy,ra,Qa):Tl)&&be.push({x:(C.number(El.x)?El.x:Oa)+ra.x,y:(C.number(El.y)?El.y:ll)+ra.y,range:C.number(El.range)?El.range:E.range,source:Tl,index:Qa,offset:ra})}for(var Vl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Jl=0;Jl<be.length;Jl++){var sr=be[Jl],Hl=sr.range,Zl=sr.x-J.x,sn=sr.y-J.y,Wl=Ba(Zl,sn),hn=Wl<=Hl;Hl===1/0&&Vl.inRange&&Vl.range!==1/0&&(hn=!1),Vl.target&&!(hn?Vl.inRange&&Hl!==1/0?Wl/Hl<Vl.distance/Vl.range:Hl===1/0&&Vl.range!==1/0||Wl<Vl.distance:!Vl.inRange&&Wl<Vl.distance)||(Vl.target=sr,Vl.distance=Wl,Vl.range=Hl,Vl.inRange=hn,Vl.delta.x=Zl,Vl.delta.y=sn)}return Vl.inRange&&(h.x=Vl.target.x,h.y=Vl.target.y),g.closest=Vl,Vl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},io=Rl(xi,"snap"),Ln={start:function(s){var o=s.state,h=s.edges,g=o.options;if(!h)return null;s.state={options:{targets:null,relativePoints:[{x:h.left?0:1,y:h.top?0:1}],offset:g.offset||"self",origin:{x:0,y:0},range:g.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],xi.start(s),o.offsets=s.state.offsets,s.state=o},set:function(s){var o=s.interaction,h=s.state,g=s.coords,E=h.options,L=h.offsets,G={x:g.x-L[0].x,y:g.y-L[0].y};h.options=ie({},E),h.options.targets=[];for(var J=0,be=E.targets||[];J<be.length;J++){var qe=be[J],Se=void 0;if(Se=C.func(qe)?qe(G.x,G.y,o):qe){for(var ra=0,Oa=h.targetFields;ra<Oa.length;ra++){var ll=Oa[ra],Qa=ll[0],cl=ll[1];if(Qa in Se||cl in Se){Se.x=Se[Qa],Se.y=Se[cl];break}}h.options.targets.push(Se)}}var Tl=xi.set(s);return h.options=E,Tl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},et=Rl(Ln,"snapSize"),wi={aspectRatio:Go,restrictEdges:Jo,restrict:Yo,restrictRect:Zo,restrictSize:ti,snapEdges:Rl({start:function(s){var o=s.edges;return o?(s.state.targetFields=s.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],Ln.start(s)):null},set:Ln.set,defaults:ie(Za(Ln.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:io,snapSize:et,spring:oi,avoid:oi,transform:oi,rubberband:oi},si={id:"modifiers",install:function(s){var o=s.interactStatic;for(var h in s.usePlugin(Ur),s.usePlugin(qo),o.modifiers=wi,wi){var g=wi[h],E=g._defaults,L=g._methods;E._methods=L,s.defaults.perAction[h]=E}}},at=si,oo=function(s){m(h,s);var o=A(h);function h(g,E,L,G,J,be){var qe;if(t(this,h),F(d(qe=o.call(this,J)),L),L!==E&&F(d(qe),E),qe.timeStamp=be,qe.originalEvent=L,qe.type=g,qe.pointerId=Ue(E),qe.pointerType=Aa(E),qe.target=G,qe.currentTarget=null,g==="tap"){var Se=J.getPointerIndex(E);qe.dt=qe.timeStamp-J.pointers[Se].downTime;var ra=qe.timeStamp-J.tapTime;qe.double=!!J.prevTap&&J.prevTap.type!=="doubletap"&&J.prevTap.target===qe.target&&ra<500}else g==="doubletap"&&(qe.dt=E.timeStamp-J.tapTime,qe.double=!0);return qe}return c(h,[{key:"_subtractOrigin",value:function(g){var E=g.x,L=g.y;return this.pageX-=E,this.pageY-=L,this.clientX-=E,this.clientY-=L,this}},{key:"_addOrigin",value:function(g){var E=g.x,L=g.y;return this.pageX+=E,this.pageY+=L,this.clientX+=E,this.clientY+=L,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),h}(wa),ci={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(s){s.pointerEvents=ci,s.defaults.actions.pointerEvents=ci.defaults,ie(s.actions.phaselessTypes,ci.types)},listeners:{"interactions:new":function(s){var o=s.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(s){var o=s.down,h=s.pointerInfo;!o&&h.hold||(h.hold={duration:1/0,timeout:null})},"interactions:move":function(s,o){var h=s.interaction,g=s.pointer,E=s.event,L=s.eventTarget;s.duplicate||h.pointerIsDown&&!h.pointerWasMoved||(h.pointerIsDown&&Fi(s),Rn({interaction:h,pointer:g,event:E,eventTarget:L,type:"move"},o))},"interactions:down":function(s,o){(function(h,g){for(var E=h.interaction,L=h.pointer,G=h.event,J=h.eventTarget,be=h.pointerIndex,qe=E.pointers[be].hold,Se=Qe(J),ra={interaction:E,pointer:L,event:G,eventTarget:J,type:"hold",targets:[],path:Se,node:null},Oa=0;Oa<Se.length;Oa++){var ll=Se[Oa];ra.node=ll,g.fire("pointerEvents:collect-targets",ra)}if(ra.targets.length){for(var Qa=1/0,cl=0,Tl=ra.targets;cl<Tl.length;cl++){var El=Tl[cl].eventable.options.holdDuration;El<Qa&&(Qa=El)}qe.duration=Qa,qe.timeout=setTimeout(function(){Rn({interaction:E,eventTarget:J,pointer:L,event:G,type:"hold"},g)},Qa)}})(s,o),Rn(s,o)},"interactions:up":function(s,o){Fi(s),Rn(s,o),function(h,g){var E=h.interaction,L=h.pointer,G=h.event,J=h.eventTarget;E.pointerWasMoved||Rn({interaction:E,eventTarget:J,pointer:L,event:G,type:"tap"},g)}(s,o)},"interactions:cancel":function(s,o){Fi(s),Rn(s,o)}},PointerEvent:oo,fire:Rn,collectEventTargets:to,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Rn(s,o){var h=s.interaction,g=s.pointer,E=s.event,L=s.eventTarget,G=s.type,J=s.targets,be=J===void 0?to(s,o):J,qe=new oo(G,g,E,L,h,o.now());o.fire("pointerEvents:new",{pointerEvent:qe});for(var Se={interaction:h,pointer:g,event:E,eventTarget:L,targets:be,type:G,pointerEvent:qe},ra=0;ra<be.length;ra++){var Oa=be[ra];for(var ll in Oa.props||{})qe[ll]=Oa.props[ll];var Qa=fe(Oa.eventable,Oa.node);if(qe._subtractOrigin(Qa),qe.eventable=Oa.eventable,qe.currentTarget=Oa.node,Oa.eventable.fire(qe),qe._addOrigin(Qa),qe.immediatePropagationStopped||qe.propagationStopped&&ra+1<be.length&&be[ra+1].node!==qe.currentTarget)break}if(o.fire("pointerEvents:fired",Se),G==="tap"){var cl=qe.double?Rn({interaction:h,pointer:g,event:E,eventTarget:L,type:"doubletap"},o):qe;h.prevTap=cl,h.tapTime=cl.timeStamp}return qe}function to(s,o){var h=s.interaction,g=s.pointer,E=s.event,L=s.eventTarget,G=s.type,J=h.getPointerIndex(g),be=h.pointers[J];if(G==="tap"&&(h.pointerWasMoved||!be||be.downTarget!==L))return[];for(var qe=Qe(L),Se={interaction:h,pointer:g,event:E,eventTarget:L,type:G,path:qe,targets:[],node:null},ra=0;ra<qe.length;ra++){var Oa=qe[ra];Se.node=Oa,o.fire("pointerEvents:collect-targets",Se)}return G==="hold"&&(Se.targets=Se.targets.filter(function(ll){var Qa,cl;return ll.eventable.options.holdDuration===((Qa=h.pointers[J])==null||(cl=Qa.hold)==null?void 0:cl.duration)})),Se.targets}function Fi(s){var o=s.interaction,h=s.pointerIndex,g=o.pointers[h].hold;g&&g.timeout&&(clearTimeout(g.timeout),g.timeout=null)}var lt=Object.freeze({__proto__:null,default:ci});function rt(s){var o=s.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var so={id:"pointer-events/holdRepeat",install:function(s){s.usePlugin(ci);var o=s.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=s.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(s,o){return s["pointerEvents:".concat(o)]=rt,s},{"pointerEvents:new":function(s){var o=s.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(s,o){var h=s.interaction,g=s.pointerEvent,E=s.eventTarget,L=s.targets;if(g.type==="hold"&&L.length){var G=L[0].eventable.options.holdRepeatInterval;G<=0||(h.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:h,eventTarget:E,type:"hold",pointer:g,event:g},o)},G))}}})},nt=so,it={id:"pointer-events/interactableTargets",install:function(s){var o=s.Interactable;o.prototype.pointerEvents=function(g){return ie(this.events.options,g),this};var h=o.prototype._backCompatOption;o.prototype._backCompatOption=function(g,E){var L=h.call(this,g,E);return L===this&&(this.events.options[g]=E),L}},listeners:{"pointerEvents:collect-targets":function(s,o){var h=s.targets,g=s.node,E=s.type,L=s.eventTarget;o.interactables.forEachMatch(g,function(G){var J=G.events,be=J.options;J.types[E]&&J.types[E].length&&G.testIgnoreAllow(be,g,L)&&h.push({node:g,eventable:J,props:{interactable:G}})})},"interactable:new":function(s){var o=s.interactable;o.events.getRect=function(h){return o.getRect(h)}},"interactable:set":function(s,o){var h=s.interactable,g=s.options;ie(h.events.options,o.pointerEvents.defaults),ie(h.events.options,g.pointerEvents||{})}}},ot=it,tt={id:"pointer-events",install:function(s){s.usePlugin(lt),s.usePlugin(nt),s.usePlugin(ot)}},_i=tt,st={id:"reflow",install:function(s){var o=s.Interactable;s.actions.phases.reflow=!0,o.prototype.reflow=function(h){return function(g,E,L){for(var G=g.getAllElements(),J=L.window.Promise,be=J?[]:null,qe=function(){var ra=G[Se],Oa=g.getRect(ra);if(!Oa)return 1;var ll,Qa=Oe(L.interactions.list,function(El){return El.interacting()&&El.interactable===g&&El.element===ra&&El.prepared.name===E.name});if(Qa)Qa.move(),be&&(ll=Qa._reflowPromise||new J(function(El){Qa._reflowResolve=El}));else{var cl=Me(Oa),Tl=function(El){return{coords:El,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:cl.x,y:cl.y},client:{x:cl.x,y:cl.y},timeStamp:L.now()});ll=function(El,Vl,Jl,sr,Hl){var Zl=El.interactions.new({pointerType:"reflow"}),sn={interaction:Zl,event:Hl,pointer:Hl,eventTarget:Jl,phase:"reflow"};Zl.interactable=Vl,Zl.element=Jl,Zl.prevEvent=Hl,Zl.updatePointer(Hl,Hl,Jl,!0),pe(Zl.coords.delta),la(Zl.prepared,sr),Zl._doPhase(sn);var Wl=El.window,hn=Wl.Promise,Wr=hn?new hn(function(Nn){Zl._reflowResolve=Nn}):void 0;return Zl._reflowPromise=Wr,Zl.start(sr,Vl,Jl),Zl._interacting?(Zl.move(sn),Zl.end(Hl)):(Zl.stop(),Zl._reflowResolve()),Zl.removePointer(Hl,Hl),Wr}(L,g,ra,E,Tl)}be&&be.push(ll)},Se=0;Se<G.length&&!qe();Se++);return be&&J.all(be).then(function(){return g})}(this,h,s)}},listeners:{"interactions:stop":function(s,o){var h=s.interaction;h.pointerType==="reflow"&&(h._reflowResolve&&h._reflowResolve(),function(g,E){g.splice(g.indexOf(E),1)}(o.interactions.list,h))}}},ct=st;if(tn.use(Sa),tn.use(kr),tn.use(_i),tn.use(Mr),tn.use(at),tn.use(ml),tn.use(Kl),tn.use(pa),tn.use(ct),tn.default=tn,i(a)==="object"&&a)try{a.exports=tn}catch{}return tn.default=tn,tn})}(Wi,Wi.exports)),Wi.exports}var V1=$1();const Ps=M.getDefaultExportFromCjs(V1),Oo=e.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(a,{expose:l,emit:n}){const r=a,i=n,t=e.inject(Jc),f=e.inject(Xc);if(!t)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const c=e.shallowRef(null),u=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let m=!1,y=!1,x=NaN,d=NaN,A=NaN,w=NaN,Y=-1,z=-1,$=-1,O=-1,S=r.x,k=r.y,_=r.w,b=r.h;const C=e.ref(),R=e.reactive({i:e.toRef(r,"i"),state:u,wrapper:C,calcXY:ce});function V(ve){Ke(ve)}function ae(){ka()}function ee(ve){_n(r.isDraggable)&&(u.draggable=ve)}function _e(ve){_n(r.isResizable)&&(u.resizable=ve)}function ue(ve){_n(r.isBounded)&&(u.bounded=ve)}function U(ve){u.transformScale=ve}function P(ve){u.rowHeight=ve}function X(ve){u.maxRows=ve}function re(){u.rtl=Vs()==="rtl",ka()}function he(ve){u.cols=Math.floor(ve)}t.increaseItem(R),e.onBeforeMount(()=>{u.rtl=Vs()==="rtl"}),e.onMounted(()=>{t.responsive&&t.lastBreakpoint?u.cols=lu(t.lastBreakpoint,t.cols):u.cols=t.colNum,u.rowHeight=t.rowHeight,u.containerWidth=t.width!==null?t.width:100,u.margin=t.margin!==void 0?t.margin.map(Number):[10,10],u.maxRows=t.maxRows,_n(r.isDraggable)?u.draggable=t.isDraggable:u.draggable=r.isDraggable,_n(r.isResizable)?u.resizable=t.isResizable:u.resizable=r.isResizable,_n(r.isBounded)?u.bounded=t.isBounded:u.bounded=r.isBounded,u.transformScale=t.transformScale,u.useCssTransforms=t.useCssTransforms,u.useStyleCursor=t.useStyleCursor,e.watchEffect(()=>{S=r.x,k=r.y,b=r.h,_=r.w,vn(Ve)}),f.on("updateWidth",V),f.on("compact",ae),f.on("setDraggable",ee),f.on("setResizable",_e),f.on("setBounded",ue),f.on("setTransformScale",U),f.on("setRowHeight",P),f.on("setMaxRows",X),f.on("directionchange",re),f.on("setColNum",he)}),e.onBeforeUnmount(()=>{f.off("updateWidth",V),f.off("compact",ae),f.off("setDraggable",ee),f.off("setResizable",_e),f.off("setBounded",ue),f.off("setTransformScale",U),f.off("setRowHeight",P),f.off("setMaxRows",X),f.off("directionchange",re),f.off("setColNum",he),c.value&&(c.value.unset(),c.value=null),t.decreaseItem(R)}),l({state:u,wrapper:C});const $e=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,se=e.computed(()=>u.resizable&&!r.static),B=e.computed(()=>t.isMirrored?!u.rtl:u.rtl),oe=e.computed(()=>(u.draggable||u.resizable)&&!r.static),W=N1("item"),ke=e.computed(()=>({[W.b()]:!0,[W.bm("resizable")]:se.value,[W.bm("static")]:r.static,[W.bm("resizing")]:u.isResizing,[W.bm("dragging")]:u.isDragging,[W.bm("transform")]:u.useCssTransforms,[W.bm("rtl")]:B.value,[W.bm("no-touch")]:$e&&oe.value})),Ie=e.computed(()=>[W.be("resizer"),B.value&&W.bem("resizer","rtl")].filter(Boolean));e.watch(()=>r.isDraggable,ve=>{u.draggable=ve}),e.watch(()=>r.static,()=>{vn(F),vn(pe)}),e.watch(()=>u.draggable,()=>{vn(F)}),e.watch(()=>r.isResizable,ve=>{u.resizable=ve}),e.watch(()=>r.isBounded,ve=>{u.bounded=ve}),e.watch(()=>u.resizable,()=>{vn(pe)}),e.watch(()=>u.rowHeight,()=>{vn(Ve),vn(Qe)}),e.watch([()=>u.cols,()=>u.containerWidth],()=>{vn(pe),vn(Ve),vn(Qe)}),e.watch([()=>r.minH,()=>r.maxH,()=>r.minW,()=>r.maxW],()=>{vn(pe)}),e.watch(B,()=>{vn(pe),vn(Ve)}),e.watch([()=>t.margin,()=>t.margin[0],()=>t.margin[1]],()=>{const ve=t.margin;!ve||ve[0]===u.margin[0]&&ve[1]===u.margin[1]||(u.margin=ve.map(Number),vn(Ve),vn(Qe))});function Ve(){r.x+r.w>u.cols?(S=0,_=r.w>u.cols?u.cols:r.w):(S=r.x,_=r.w);const ve=ua(S,k,_,b);u.isDragging&&(ve.top=u.dragging.top,B.value?ve.right=u.dragging.left:ve.left=u.dragging.left),u.isResizing&&(ve.width=u.resizing.width,ve.height=u.resizing.height);let da;u.useCssTransforms?B.value?da=C1(ve.top,ve.right,ve.width,ve.height):da=E1(ve.top,ve.left,ve.width,ve.height):B.value?da=T1(ve.top,ve.right,ve.width,ve.height):da=D1(ve.top,ve.left,ve.width,ve.height),u.style=da}function Qe(){const ve={};for(const da of["width","height"]){const ca=u.style[da].match(/^(\d+)px$/);if(!ca)return;ve[da]=ca[1]}i("container-resized",r.i,r.h,r.w,ve.height,ve.width)}function Ea(ve){if(r.static)return;const da=ve.type;if(da==="resizestart"&&u.isResizing||da!=="resizestart"&&!u.isResizing)return;const ca=Rs(ve);if(_n(ca))return;const{x:Ue,y:xa}=ca,Na={width:0,height:0};let Ce;switch(da){case"resizestart":{pe(),Y=_,z=b,Ce=ua(S,k,_,b),Na.width=Ce.width,Na.height=Ce.height,u.resizing=Na,u.isResizing=!0;break}case"resizemove":{!ve.edges.right&&!ve.edges.left&&(A=Ue),!ve.edges.top&&!ve.edges.bottom&&(w=xa);const Pa=$s(A,w,Ue,xa);B.value?Na.width=u.resizing.width-Pa.deltaX/u.transformScale:Na.width=u.resizing.width+Pa.deltaX/u.transformScale,Na.height=u.resizing.height+Pa.deltaY/u.transformScale,u.resizing=Na;break}case"resizeend":{Ce=ua(S,k,_,b),Na.width=Ce.width,Na.height=Ce.height,u.resizing={width:-1,height:-1},u.isResizing=!1;break}}Ce=fe(Na.height,Na.width),Ce.w<r.minW&&(Ce.w=r.minW),Ce.w>r.maxW&&(Ce.w=r.maxW),Ce.h<r.minH&&(Ce.h=r.minH),Ce.h>r.maxH&&(Ce.h=r.maxH),Ce.h<1&&(Ce.h=1),Ce.w<1&&(Ce.w=1),A=Ue,w=xa,(_!==Ce.w||b!==Ce.h)&&i("resize",r.i,Ce.h,Ce.w,Na.height,Na.width),ve.type==="resizeend"&&(Y!==_||z!==b)&&i("resized",r.i,Ce.h,Ce.w,Na.height,Na.width),f.emit("resizeEvent",ve.type,r.i,S,k,Ce.h,Ce.w)}function ie(ve){if(r.static||u.isResizing)return;const da=ve.type;if(da==="dragstart"&&u.isDragging||da!=="dragstart"&&!u.isDragging)return;const ca=Rs(ve);if(_n(ca))return;const{x:Ue,y:xa}=ca,Na=ve.target;if(!Na.offsetParent)return;const Ce={top:0,left:0};switch(da){case"dragstart":{$=S,O=k;const Ca=Na.offsetParent.getBoundingClientRect(),oa=Na.getBoundingClientRect(),Aa=oa.left/u.transformScale,De=Ca.left/u.transformScale,wa=oa.right/u.transformScale,Je=Ca.right/u.transformScale,xe=oa.top/u.transformScale,H=Ca.top/u.transformScale;B.value?Ce.left=(wa-Je)*-1:Ce.left=Aa-De,Ce.top=xe-H,u.dragging=Ce,u.isDragging=!0;break}case"dragmove":{const Ca=$s(x,d,Ue,xa);if(B.value?Ce.left=u.dragging.left-Ca.deltaX/u.transformScale:Ce.left=u.dragging.left+Ca.deltaX/u.transformScale,Ce.top=u.dragging.top+Ca.deltaY/u.transformScale,u.bounded){const oa=Na.offsetParent.clientHeight-Me(r.h,u.rowHeight,u.margin[1]);Ce.top=de(Ce.top,0,oa);const Aa=ea(),De=u.containerWidth-Me(r.w,Aa,u.margin[0]);Ce.left=de(Ce.left,0,De)}u.dragging=Ce;break}case"dragend":{const Ca=Na.offsetParent.getBoundingClientRect(),oa=Na.getBoundingClientRect(),Aa=oa.left/u.transformScale,De=Ca.left/u.transformScale,wa=oa.right/u.transformScale,Je=Ca.right/u.transformScale,xe=oa.top/u.transformScale,H=Ca.top/u.transformScale;B.value?Ce.left=(wa-Je)*-1:Ce.left=Aa-De,Ce.top=xe-H,u.dragging={top:-1,left:-1},u.isDragging=!1;break}}let Pa;B.value,Pa=ce(Ce.top,Ce.left),x=Ue,d=xa,(S!==Pa.x||k!==Pa.y)&&i("move",r.i,Pa.x,Pa.y),ve.type==="dragend"&&($!==S||O!==k)&&i("moved",r.i,Pa.x,Pa.y),f.emit("dragEvent",ve.type,r.i,Pa.x,Pa.y,b,_)}function ua(ve,da,ca,Ue){const xa=ea();let Na;return B.value?Na={right:Math.round(xa*ve+(ve+1)*u.margin[0]),top:Math.round(u.rowHeight*da+(da+1)*u.margin[1]),width:ca===1/0?ca:Math.round(xa*ca+Math.max(0,ca-1)*u.margin[0]),height:Ue===1/0?Ue:Math.round(u.rowHeight*Ue+Math.max(0,Ue-1)*u.margin[1])}:Na={left:Math.round(xa*ve+(ve+1)*u.margin[0]),top:Math.round(u.rowHeight*da+(da+1)*u.margin[1]),width:ca===1/0?ca:Math.round(xa*ca+Math.max(0,ca-1)*u.margin[0]),height:Ue===1/0?Ue:Math.round(u.rowHeight*Ue+Math.max(0,Ue-1)*u.margin[1])},Na}function ce(ve,da){const ca=ea();let Ue=Math.round((da-u.margin[0])/(ca+u.margin[0])),xa=Math.round((ve-u.margin[1])/(u.rowHeight+u.margin[1]));return Ue=Math.max(Math.min(Ue,u.cols-_),0),xa=Math.max(Math.min(xa,u.maxRows-b),0),{x:Ue,y:xa}}function ea(){return(u.containerWidth-u.margin[0]*(u.cols+1))/u.cols}function Me(ve,da,ca){return Number.isFinite(ve)?Math.round(da*ve+Math.max(0,ve-1)*ca):ve}function de(ve,da,ca){return Math.max(Math.min(ve,ca),da)}function fe(ve,da,ca=!1){const Ue=ea();let xa=Math.round((da+u.margin[0])/(Ue+u.margin[0])),Na=0;return ca?Na=Math.ceil((ve+u.margin[1])/(u.rowHeight+u.margin[1])):Na=Math.round((ve+u.margin[1])/(u.rowHeight+u.margin[1])),xa=Math.max(Math.min(xa,u.cols-S),0),Na=Math.max(Math.min(Na,u.maxRows-k),0),{w:xa,h:Na}}function Ke(ve,da){u.containerWidth=ve}function ka(){Ve()}function Ba(){!c.value&&C.value&&(c.value=Ps(C.value),u.useStyleCursor||c.value.styleCursor(!1))}const q=Is(ie);function F(){if(Ba(),!!c.value)if(u.draggable&&!r.static){const ve={ignoreFrom:r.dragIgnoreFrom,allowFrom:r.dragAllowFrom,...r.dragOption};c.value.draggable(ve),m||(m=!0,c.value.on("dragstart dragmove dragend",da=>{da.type==="dragmove"?q(da):ie(da)}))}else c.value.draggable({enabled:!1})}const Q=Is(Ea);function pe(){if(Ba(),!!c.value)if(u.resizable&&!r.static){const ve=ua(0,0,r.maxW,r.maxH),da=ua(0,0,r.minW,r.minH),ca={edges:{left:B.value?`.${Ie.value[0]}`:!1,right:B.value?!1:`.${Ie.value[0]}`,bottom:`.${Ie.value[0]}`,top:!1},ignoreFrom:r.resizeIgnoreFrom,restrictSize:{min:{height:da.height*u.transformScale,width:da.width*u.transformScale},max:{height:ve.height*u.transformScale,width:ve.width*u.transformScale}},...r.resizeOption};r.preserveAspectRatio&&(ca.modifiers=[Ps.modifiers.aspectRatio({ratio:"preserve"})]),c.value.resizable(ca),y||(y=!0,c.value.on("resizestart resizemove resizeend",Ue=>{Ue.type==="resizemove"?Q(Ue):Ea(Ue)}))}else c.value.resizable({enabled:!1})}return(ve,da)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:C,class:e.normalizeClass(ke.value),style:e.normalizeStyle(u.style)},[e.renderSlot(ve.$slots,"default"),se.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Ie.value)},null,2)):e.createCommentVNode("",!0)],6))}}),yi=typeof window<"u";var js;yi&&(js=window==null?void 0:window.navigator)!=null&&js.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Hs(a){return a!=null}function Us(){}const F1=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(F1)));const P1=yi&&("ontouchstart"in window||H1()>0),j1=P1?"pointerdown":"click";function H1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function U1(a,l,n=window.Event){const{type:r,bubbles:i=!1,cancelable:t=!1,...f}=l;if(!Hs(r)||r==="")return!1;let c;return Hs(n)?c=new n(r,{bubbles:i,cancelable:t}):(c=document.createEvent("HTMLEvents"),c.initEvent(r,i,t)),Object.assign(c,f),a.dispatchEvent(c)}const q1="clickoutside",W1=new Set;yi&&document.addEventListener(j1,a=>{const l=a.target,n=a.composedPath&&a.composedPath();W1.forEach(r=>{r!==l&&(n?!n.includes(r):!r.contains(l))&&(!r.__transferElement||r.__transferElement!==l&&!r.__transferElement.contains(l))&&U1(r,{type:q1})})},!0);const K1=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let So;if(yi){for(const a of K1)if(a[1]in document){So=a;break}}e.computed(()=>!1);const G1=new Set,Y1=new WeakMap;if(yi&&So){const a=So[2],l=So[4];document.addEventListener(l,()=>{if(G1.forEach(n=>{n.value=!1}),document[a]){const n=Y1.get(document[a]);n&&(n.value=!0)}},!1)}const nu=new Map;nu.set("x",0);nu.set("y",0);var vi=[],J1=function(){return vi.some(function(a){return a.activeTargets.length>0})},X1=function(){return vi.some(function(a){return a.skippedTargets.length>0})},qs="ResizeObserver loop completed with undelivered notifications.",Z1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:qs}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=qs),window.dispatchEvent(a)},Qi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Qi||(Qi={}));var mi=function(a){return Object.freeze(a)},Q1=function(){function a(l,n){this.inlineSize=l,this.blockSize=n,mi(this)}return a}(),iu=function(){function a(l,n,r,i){return this.x=l,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,mi(this)}return a.prototype.toJSON=function(){var l=this,n=l.x,r=l.y,i=l.top,t=l.right,f=l.bottom,c=l.left,u=l.width,m=l.height;return{x:n,y:r,top:i,right:t,bottom:f,left:c,width:u,height:m}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Rt=function(a){return a instanceof SVGElement&&"getBBox"in a},ou=function(a){if(Rt(a)){var l=a.getBBox(),n=l.width,r=l.height;return!n&&!r}var i=a,t=i.offsetWidth,f=i.offsetHeight;return!(t||f||a.getClientRects().length)},Ws=function(a){var l;if(a instanceof Element)return!0;var n=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(n&&a instanceof n.Element)},ev=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ji=typeof window<"u"?window:{},ko=new WeakMap,Ks=/auto|scroll/,av=/^tb|vertical/,lv=/msie|trident/i.test(Ji.navigator&&Ji.navigator.userAgent),Vn=function(a){return parseFloat(a||"0")},Mi=function(a,l,n){return a===void 0&&(a=0),l===void 0&&(l=0),n===void 0&&(n=!1),new Q1((n?l:a)||0,(n?a:l)||0)},Gs=mi({devicePixelContentBoxSize:Mi(),borderBoxSize:Mi(),contentBoxSize:Mi(),contentRect:new iu(0,0,0,0)}),tu=function(a,l){if(l===void 0&&(l=!1),ko.has(a)&&!l)return ko.get(a);if(ou(a))return ko.set(a,Gs),Gs;var n=getComputedStyle(a),r=Rt(a)&&a.ownerSVGElement&&a.getBBox(),i=!lv&&n.boxSizing==="border-box",t=av.test(n.writingMode||""),f=!r&&Ks.test(n.overflowY||""),c=!r&&Ks.test(n.overflowX||""),u=r?0:Vn(n.paddingTop),m=r?0:Vn(n.paddingRight),y=r?0:Vn(n.paddingBottom),x=r?0:Vn(n.paddingLeft),d=r?0:Vn(n.borderTopWidth),A=r?0:Vn(n.borderRightWidth),w=r?0:Vn(n.borderBottomWidth),Y=r?0:Vn(n.borderLeftWidth),z=x+m,$=u+y,O=Y+A,S=d+w,k=c?a.offsetHeight-S-a.clientHeight:0,_=f?a.offsetWidth-O-a.clientWidth:0,b=i?z+O:0,C=i?$+S:0,R=r?r.width:Vn(n.width)-b-_,V=r?r.height:Vn(n.height)-C-k,ae=R+z+_+O,ee=V+$+k+S,_e=mi({devicePixelContentBoxSize:Mi(Math.round(R*devicePixelRatio),Math.round(V*devicePixelRatio),t),borderBoxSize:Mi(ae,ee,t),contentBoxSize:Mi(R,V,t),contentRect:new iu(x,u,R,V)});return ko.set(a,_e),_e},su=function(a,l,n){var r=tu(a,n),i=r.borderBoxSize,t=r.contentBoxSize,f=r.devicePixelContentBoxSize;switch(l){case Qi.DEVICE_PIXEL_CONTENT_BOX:return f;case Qi.BORDER_BOX:return i;default:return t}},rv=function(){function a(l){var n=tu(l);this.target=l,this.contentRect=n.contentRect,this.borderBoxSize=mi([n.borderBoxSize]),this.contentBoxSize=mi([n.contentBoxSize]),this.devicePixelContentBoxSize=mi([n.devicePixelContentBoxSize])}return a}(),cu=function(a){if(ou(a))return 1/0;for(var l=0,n=a.parentNode;n;)l+=1,n=n.parentNode;return l},nv=function(){var a=1/0,l=[];vi.forEach(function(t){if(t.activeTargets.length!==0){var f=[];t.activeTargets.forEach(function(c){var u=new rv(c.target),m=cu(c.target);f.push(u),c.lastReportedSize=su(c.target,c.observedBox),m<a&&(a=m)}),l.push(function(){t.callback.call(t.observer,f,t.observer)}),t.activeTargets.splice(0,t.activeTargets.length)}});for(var n=0,r=l;n<r.length;n++){var i=r[n];i()}return a},Ys=function(a){vi.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(n){n.isActive()&&(cu(n.target)>a?l.activeTargets.push(n):l.skippedTargets.push(n))})})},iv=function(){var a=0;for(Ys(a);J1();)a=nv(),Ys(a);return X1()&&Z1(),a>0},bt,uu=[],ov=function(){return uu.splice(0).forEach(function(a){return a()})},tv=function(a){if(!bt){var l=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ov()}).observe(n,r),bt=function(){n.textContent="".concat(l?l--:l++)}}uu.push(a),bt()},sv=function(a){tv(function(){requestAnimationFrame(a)})},Eo=0,cv=function(){return!!Eo},uv=250,dv={attributes:!0,characterData:!0,childList:!0,subtree:!0},Js=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Xs=function(a){return a===void 0&&(a=0),Date.now()+a},kt=!1,pv=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var n=this;if(l===void 0&&(l=uv),!kt){kt=!0;var r=Xs(l);sv(function(){var i=!1;try{i=iv()}finally{if(kt=!1,l=r-Xs(),!cv())return;i?n.run(1e3):l>0?n.run(l):n.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,n=function(){return l.observer&&l.observer.observe(document.body,dv)};document.body?n():Ji.addEventListener("DOMContentLoaded",n)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Js.forEach(function(n){return Ji.addEventListener(n,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),Js.forEach(function(n){return Ji.removeEventListener(n,l.listener,!0)}),this.stopped=!0)},a}(),Mt=new pv,Zs=function(a){!Eo&&a>0&&Mt.start(),Eo+=a,!Eo&&Mt.stop()},fv=function(a){return!Rt(a)&&!ev(a)&&getComputedStyle(a).display==="inline"},hv=function(){function a(l,n){this.target=l,this.observedBox=n||Qi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=su(this.target,this.observedBox,!0);return fv(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),vv=function(){function a(l,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=n}return a}(),xo=new WeakMap,Qs=function(a,l){for(var n=0;n<a.length;n+=1)if(a[n].target===l)return n;return-1},wo=function(){function a(){}return a.connect=function(l,n){var r=new vv(l,n);xo.set(l,r)},a.observe=function(l,n,r){var i=xo.get(l),t=i.observationTargets.length===0;Qs(i.observationTargets,n)<0&&(t&&vi.push(i),i.observationTargets.push(new hv(n,r&&r.box)),Zs(1),Mt.schedule())},a.unobserve=function(l,n){var r=xo.get(l),i=Qs(r.observationTargets,n),t=r.observationTargets.length===1;i>=0&&(t&&vi.splice(vi.indexOf(r),1),r.observationTargets.splice(i,1),Zs(-1))},a.disconnect=function(l){var n=this,r=xo.get(l);r.observationTargets.slice().forEach(function(i){return n.unobserve(l,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},a}(),mv=function(){function a(l){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof l!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wo.connect(this,l)}return a.prototype.observe=function(l,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ws(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wo.observe(this,l,n)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ws(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wo.unobserve(this,l)},a.prototype.disconnect=function(){wo.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Lo=new WeakMap;function yv(a){var l;for(let n=0,r=a.length;n<r;++n){const i=a[n],t=Lo.get(i.target);if(typeof t=="function"){const{inlineSize:f,blockSize:c}=((l=i.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:u,offsetHeight:m}=i.target;t(Object.assign(i,{offsetWidth:u,offsetHeight:m,width:f??u,height:c??m}))}}}const du=new(yi&&window.ResizeObserver||mv)(yv);function ec(a,l){Lo.set(a,l),du.observe(a)}function ac(a){Lo.has(a)&&(du.unobserve(a),Lo.delete(a))}function gv(a={}){let l=Us;const n=e.watch(()=>e.unref(a.target),i=>{l(),!(!i||typeof a.onResize!="function")&&(ec(i,a.onResize),l=()=>{ac(i),l=Us})},{immediate:!0}),r=()=>{n(),l()};return e.getCurrentScope()&&e.onScopeDispose(r),{observeResize:ec,unobserveResize:ac,unobserve:r}}const bv=e.ref(!1);e.computed(()=>bv.value);const lc="__theme_style__",xt="__theme_observer__",rc=e.reactive(new Map),nc=new Map;e.watch(rc,()=>{if(!yi)return;nc.clear();const a=document.head.querySelector(`#${lc}`);a&&document.head.removeChild(a);const l=document.createElement("style");let n=`.${xt} { width: 1px }`,r=1;for(const[i,[t,f]]of rc.entries())n+=` html.${t} .${xt}, .${f} .${xt} { width: ${++r}px }`,nc.set(r,i);l.textContent=n,l.id=lc,document.head.appendChild(l)});const pu=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(a,{expose:l,emit:n}){const r=a,i=n,t=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),f=new Map,c=e.ref(r.layout),u=e.ref(),{observeResize:m,unobserveResize:y}=gv(),x=g1();x.on("resizeEvent",d),x.on("dragEvent",A),e.onBeforeMount(()=>{i("layout-before-mount",c.value)}),e.onMounted(()=>{i("layout-mounted",c.value),e.nextTick(()=>{B1(c.value),t.originalLayout=c.value,e.nextTick(()=>{V(),u.value&&m(u.value,b1(S,16)),Ni(c.value,r.verticalCompact),i("layout-updated",c.value),O(),S()})})}),e.onBeforeUnmount(()=>{x.clearAll(),u.value&&y(u.value)});function d(ee,_e,ue,U,P,X){C(ee,_e,ue,U,P,X)}function A(ee,_e,ue,U,P,X){b(ee,_e,ue,U,P,X)}e.watch(()=>t.width,(ee,_e)=>{e.nextTick(()=>{x.emit("updateWidth",ee),_e===-1&&e.nextTick(()=>{i("layout-ready",c.value)}),O()})}),e.watch(()=>[r.layout,r.layout.length],()=>{c.value=r.layout,$()}),e.watch(()=>r.colNum,ee=>{x.emit("setColNum",ee)}),e.watch(()=>r.rowHeight,ee=>{x.emit("setRowHeight",ee)}),e.watch(()=>r.isDraggable,ee=>{x.emit("setDraggable",ee)}),e.watch(()=>r.isResizable,ee=>{x.emit("setResizable",ee)}),e.watch(()=>r.isBounded,ee=>{x.emit("setBounded",ee)}),e.watch(()=>r.transformScale,ee=>{x.emit("setTransformScale",ee)}),e.watch(()=>r.responsive,ee=>{ee||(i("update:layout",t.originalLayout),x.emit("setColNum",r.colNum)),S()}),e.watch(()=>r.maxRows,ee=>{x.emit("setMaxRows",ee)}),e.watch([()=>r.margin,()=>r.margin[1]],O),e.provide(Jc,e.reactive({...e.toRefs(r),...e.toRefs(t),increaseItem:w,decreaseItem:Y})),e.provide(Xc,x),l({state:t,getItem:z,resizeEvent:C,dragEvent:b,layoutUpdate:$});function w(ee){f.set(ee.i,ee)}function Y(ee){f.delete(ee.i)}function z(ee){return f.get(ee)}function $(){if(!_n(c.value)&&!_n(t.originalLayout)){if(c.value.length!==t.originalLayout.length){const ee=ae(c.value,t.originalLayout);if(ee.length>0)if(c.value.length>t.originalLayout.length)t.originalLayout=t.originalLayout.concat(ee);else{const _e=new Set(ee.map(ue=>ue.i));t.originalLayout=t.originalLayout.filter(ue=>!_e.has(ue.i))}t.lastLayoutLength=c.value.length,V()}Ni(c.value,r.verticalCompact),x.emit("updateWidth",t.width),O(),i("layout-updated",c.value)}}function O(){t.mergedStyle={height:k()}}function S(){u.value&&(t.width=u.value.offsetWidth),x.emit("resizeEvent")}function k(){if(!r.autoSize)return;const ee=parseFloat(r.margin[1]);return x1(c.value)*(r.rowHeight+ee)+ee+"px"}let _;function b(ee,_e,ue,U,P,X){let re=Os(c.value,_e);_n(re)&&(re={h:0,w:0,x:0,y:0,i:""}),ee==="dragstart"&&!r.verticalCompact&&(_=c.value.reduce((he,{i:$e,x:se,y:B})=>({...he,[$e]:{x:se,y:B}}),{})),ee==="dragmove"||ee==="dragstart"?(t.placeholder.i=_e,t.placeholder.x=re.x,t.placeholder.y=re.y,t.placeholder.w=X,t.placeholder.h=P,e.nextTick(()=>{t.isDragging=!0}),x.emit("updateWidth",t.width)):e.nextTick(()=>{t.isDragging=!1}),c.value=zt(c.value,re,ue,U,!0,r.preventCollision),r.restoreOnDrag?(re.static=!0,Ni(c.value,r.verticalCompact,_),re.static=!1):Ni(c.value,r.verticalCompact),x.emit("compact"),O(),ee==="dragend"&&(_=void 0,i("layout-updated",c.value))}function C(ee,_e,ue,U,P,X){let re=Os(c.value,_e);_n(re)&&(re={h:0,w:0,x:0,y:0,i:""});let he;if(r.preventCollision){const $e=Qc(c.value,{...re,w:X,h:P}).filter(se=>se.i!==re.i);if(he=$e.length>0,he){let se=1/0,B=1/0;$e.forEach(oe=>{oe.x>re.x&&(se=Math.min(se,oe.x)),oe.y>re.y&&(B=Math.min(B,oe.y))}),Number.isFinite(se)&&(re.w=se-re.x),Number.isFinite(B)&&(re.h=B-re.y)}}he||(re.w=X,re.h=P),ee==="resizestart"||ee==="resizemove"?(t.placeholder.i=_e,t.placeholder.x=ue,t.placeholder.y=U,t.placeholder.w=re.w,t.placeholder.h=re.h,e.nextTick(()=>{t.isDragging=!0}),x.emit("updateWidth",t.width)):ee&&e.nextTick(()=>{t.isDragging=!1}),r.responsive&&R(),Ni(c.value,r.verticalCompact),x.emit("compact"),O(),ee==="resizeend"&&i("layout-updated",c.value)}function R(){const ee=M1(r.breakpoints,t.width);if(ee===t.lastBreakpoint)return;const _e=lu(ee,r.cols);!_n(t.lastBreakpoint)&&!t.layouts[t.lastBreakpoint]&&(t.layouts[t.lastBreakpoint]=At(c.value));const ue=I1(t.originalLayout,t.layouts,r.breakpoints,ee,t.lastBreakpoint,_e,r.verticalCompact);t.layouts[ee]=ue,t.lastBreakpoint!==ee&&i("breakpoint-changed",ee,ue),c.value=ue,i("update:layout",ue),t.lastBreakpoint=ee,x.emit("setColNum",_e)}function V(){t.layouts=Object.assign({},r.responsiveLayouts)}function ae(ee,_e){const ue=new Set(_e.map(re=>re.i)),U=new Set(ee.map(re=>re.i)),P=ee.filter(re=>!ue.has(re.i)),X=_e.filter(re=>!U.has(re.i));return P.concat(X)}return(ee,_e)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:u,class:"vgl-layout",style:e.normalizeStyle(t.mergedStyle)},[ee.$slots.default?e.renderSlot(ee.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(c.value,ue=>(e.openBlock(),e.createBlock(Oo,e.mergeProps({key:ue.i,ref_for:!0},ue),{default:e.withCtx(()=>[e.renderSlot(ee.$slots,"item",{item:ue})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Oo,{class:"vgl-item--placeholder",x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,t.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const kv={key:0,class:"item-view-group"},xv={key:0,class:"item-view-group"},wv=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const n=M.useModelComp(M.pinia),{isEdit:r}=M.storeToRefs(n),i=li(M.pinia),t=l,f=a,c=e.ref(""),u=e.computed(()=>f==null?void 0:f.children),m=e.computed(()=>{var O,S,k,_;return((O=f==null?void 0:f.children)==null?void 0:O.length)>0&&((S=f==null?void 0:f.children)!=null&&S.every(b=>b==null?void 0:b.layout))?(_=(k=f==null?void 0:f.children)==null?void 0:k[0])==null?void 0:_.layout:"vertical"}),y=O=>{c.value=O,t("radioChange",O)},x=e.computed(()=>{var O,S;return((S=(O=f==null?void 0:f.children)==null?void 0:O[0])==null?void 0:S.isGridLayout)||!1}),d=e.ref((f==null?void 0:f.level)+1),A=e.computed(()=>{if(!(f!=null&&f.children)||!Array.isArray(f.children)||f.children.length<2)return!1;const O=f.children.some(k=>(k==null?void 0:k.name)==="测量系统配置表"&&(k==null?void 0:k.comp)==="ParentItem"),S=f.children.some(k=>(k==null?void 0:k.name)==="测量系统传递表"&&(k==null?void 0:k.comp)==="ParentItem");return O&&S}),w=e.computed(()=>{var S,k,_,b,C,R;let O=(S=f==null?void 0:f.children)==null?void 0:S.filter(V=>V==null?void 0:V.choice);if(i.setSelectTab((k=O==null?void 0:O[0])==null?void 0:k.choiceName),(c==null?void 0:c.value)!=="")return(_=f==null?void 0:f.children)==null?void 0:_.filter(V=>!(V!=null&&V.choiceName)||(V==null?void 0:V.choiceName)===(c==null?void 0:c.value));{let V=(C=(b=f==null?void 0:f.children)==null?void 0:b.find(ae=>ae==null?void 0:ae.choice))==null?void 0:C.choiceName;return(R=f==null?void 0:f.children)==null?void 0:R.filter(ae=>!(ae!=null&&ae.choiceName)||(ae==null?void 0:ae.choiceName)===V)}}),Y=O=>{const S=(O==null?void 0:O.menuFilter)||[];return Array.isArray(S)&&(S==null?void 0:S.some(k=>{const _=typeof k=="string"?k:JSON.stringify(k);return _==null?void 0:_.includes("HideGroup=Yes")}))};e.watch(()=>f==null?void 0:f.children,()=>{A.value},{deep:!0});const z=O=>{t("rowClick",O)},$=(O,S)=>{t("routeUrl",O,S)};return(O,S)=>x.value?(e.openBlock(),e.createBlock(e.unref(pu),{key:0,layout:u.value,"onUpdate:layout":S[0]||(S[0]=k=>u.value=k),"is-draggable":e.unref(r)==="edit","is-resizable":e.unref(r)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(k,_)=>(e.openBlock(),e.createBlock(e.unref(Oo),{key:k.i,x:k.x,y:k.y,"min-h":k.minH,"max-h":k.maxH,"min-w":k.minW,w:k.w,h:k.h,i:k.i},{default:e.withCtx(()=>{var b,C,R,V,ae,ee,_e,ue,U,P,X,re,he,$e;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:_===((b=f==null?void 0:f.children)==null?void 0:b.length)-1?"0px":"24px"})},[((R=(C=k==null?void 0:k.component)==null?void 0:C.comp)==null?void 0:R.toUpperCase())!=="TABLE"&&((V=k==null?void 0:k.component)!=null&&V.name)?(e.openBlock(),e.createElementBlock("div",kv,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(d.value.toString())-1)*12+"px",fontWeight:600-(d.value-1)*100>=400?600-(d.value-1)*100:400,fontSize:17-d.value>=14?17-d.value+"px":"14px"})},e.toDisplayString((ae=k==null?void 0:k.component)==null?void 0:ae.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Zi)((ee=k==null?void 0:k.component)==null?void 0:ee.comp)),{pageLayout:m.value,config:{showIndex:(_e=e.unref(vr)[_])==null?void 0:_e.showIndex,allowMove:(ue=e.unref(vr)[_])==null?void 0:ue.allowMove,viewport:(U=e.unref(vr)[_])==null?void 0:U.viewport,status:(P=e.unref(vr)[_])==null?void 0:P.status},related:k==null?void 0:k.relatedTables,compName:k==null?void 0:k.component.name,compNames:e.unref(zc),itemData:(X=k==null?void 0:k.component)==null?void 0:X.compData,childItemData:(re=k==null?void 0:k.component)==null?void 0:re.itemChildData,key:e.unref(ai),cacheNewData:e.unref(Ac),onChange:e.unref(Ao),index:(k==null?void 0:k.id)??_,onContentChange:e.unref(zo),onPageChange:e.unref(Mo),parentTableId:(he=k==null?void 0:k.component)==null?void 0:he.tableId,allMapContents:e.unref(Tt),children:($e=k==null?void 0:k.component)==null?void 0:$e.children,level:d.value,onRowClick:z,onRouteUrl:$,onClickTrigger:e.unref(Mc),onClickMainKey:e.unref(Ic),onRadioChange:y},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(w.value,(k,_)=>{var b,C;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(k==null?void 0:k.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(_)===((b=f==null?void 0:f.children)==null?void 0:b.length)-1?"0px":"24px"})},[((C=k==null?void 0:k.comp)==null?void 0:C.toUpperCase())!=="TABLE"&&k.name?(e.openBlock(),e.createElementBlock("div",xv,[Y(k)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(d.value.toString())>1?"12px":"0px",fontWeight:600-(d.value-1)*100>=400?600-(d.value-1)*100:400,fontSize:17-d.value>=14?17-d.value+"px":"14px"})},e.toDisplayString(k.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Zi)(k.comp)),{compName:k.name,groupNames:k==null?void 0:k.nameContents,config:{showIndex:k==null?void 0:k.showIndex,allowMove:k==null?void 0:k.allowMove,viewport:k==null?void 0:k.viewport,status:k==null?void 0:k.status},itemData:k==null?void 0:k.compData,related:k==null?void 0:k.relatedTables,childItemData:k==null?void 0:k.itemChildData,key:e.unref(ai),onChange:e.unref(Ao),index:(k==null?void 0:k.id)??_,onContentChange:e.unref(zo),onPageChange:e.unref(Mo),parentTableId:k==null?void 0:k.tableId,allMapContents:e.unref(Tt),children:k==null?void 0:k.children,level:d.value,onRowClick:z,onRouteUrl:$,onRadioChange:y},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),_v=nr._export_sfc(wv,[["__scopeId","data-v-bafbdd45"]]),Sv={class:"radio-group-container"},Ev=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const n=a,r=l,i=e.ref(),t=li(M.pinia),{selectTab:f}=M.storeToRefs(t);e.watch(()=>n==null?void 0:n.itemData,()=>{i.value=f.value},{immediate:!0,deep:!0});const c=u=>{i.value=u,r("radioChange",i.value)};return(u,m)=>(e.openBlock(),e.createElementBlock("div",Sv,[e.createVNode(pl.ssRadio,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=y=>i.value=y),content:n==null?void 0:n.itemData,onChange:c},null,8,["modelValue","content"])]))}}),Cv=nr._export_sfc(Ev,[["__scopeId","data-v-ed48c2f8"]]),Dv=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,n=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,()=>{var r,i;n.value=((i=(r=l==null?void 0:l.itemData)==null?void 0:r.find(t=>(t==null?void 0:t.key)==="backGround"))==null?void 0:i.contents)??[]},{deep:!0,immediate:!0}),(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(pl.ssCarousel,{carouselList:n.value},null,8,["carouselList"])]))}}),fu=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),Tv={TABLE:Hc,FORM:As,STATICFORM:Uc,TABLEOPERATE:y6,TABLESTYLE:I6,TABLEEXTEND:L6,TABLEINTERACTION:V6,FORMOPERATE:zs,FOLD:v4,CALCULATOR:x4,METHODBUTTON:S4,AVATARUPLOAD:ds.ssAvatar,SIGNATURE:ds.ssSignature,FORMTOP:As,STEP:L4,STEPOPERATE:o4,TIMELINE:j4,TIMELINEOPERATE:p4,FORMTOPOPERATE:zs,SIGNATUREOPERATE:M4,AVATARUPLOADOPERATE:D4,TABS:q4,TABSOPERATE:N2,CHART:q2,CHARTOPERATE:l1,LAYOUT:i1,LAYOUTOPERATE:v1,PARENTITEM:_v,RADIO:Cv,CAROUSEL:Dv};function Li(a){return Tv[a==null?void 0:a.toUpperCase()]||null}exports.De=pu;exports.activeStepInfo=Ai;exports.addContents=Xi;exports.addVisibleDialog=Lt;exports.affixItems=W0;exports.allMapContents=Tt;exports.analyzeMenu=dc;exports.cacheNewData=Ac;exports.clickMainKey=Ic;exports.clickSavePage=q0;exports.clickStep=Lc;exports.clickTrigger=Mc;exports.compId=ai;exports.compNames=zc;exports.compShow=Oi;exports.existLayouts=e3;exports.fixChangeValue=Ro;exports.generateLayouts=N6;exports.getComponent=Li;exports.getComponents=Zi;exports.getPageConstruct=op;exports.getPageData=Jr;exports.getSliceContLength=o3;exports.gridRowHeight=E6;exports.gridRowHeightHmPg=S6;exports.isStepLayout=Rc;exports.onBack=H0;exports.onButtonChange=J0;exports.onChange=Ao;exports.onClick=U0;exports.onClickStep=a3;exports.onContentChange=zo;exports.onExtendTaskEnd=Q0;exports.onOk=X0;exports.onPageBack=r3;exports.onPageChange=Mo;exports.onSelectFixContent=j0;exports.renderShowItems=Bc;exports.showItems=vr;exports.sliceTableLength=Nc;exports.slotContent=fu;exports.ssTable=Hc;exports.st=Oo;exports.stepItems=t3;exports.tabChange=l3;exports.toolBar=Z0;exports.useFormComp=Ot;exports.useModelLoader=jf;exports.verifyButton=n3;
|