ss-component-new 1.3.496 → 1.3.498
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-C06o53Yl.js → array-BzLo9FoD.js} +2 -2
- package/dist/{array-Cj_51HQg.cjs → array-D97z0nJZ.cjs} +1 -1
- package/dist/{index-DWfVwgfW.js → index-7_EcwGcL.js} +7 -7
- package/dist/{index-C_pZ5_Rr.js → index-89NCtw1f.js} +1 -1
- package/dist/{index-C63WgolW.js → index-B3bhdvYB.js} +2 -2
- package/dist/{index-8ojpIkjk.cjs → index-BBFeM4OJ.cjs} +1 -1
- package/dist/index-BRf391bW.js +25040 -0
- package/dist/{index-CX4TTz13.js → index-BXpHEHQK.js} +1 -1
- package/dist/{index-DgHgr6o3.cjs → index-BYk8W1jo.cjs} +1 -1
- package/dist/{index-D19kpGlM.cjs → index-BZWnLO_1.cjs} +1 -1
- package/dist/index-BxqV6K8a.cjs +39 -0
- package/dist/{index-C2RFvRnz.cjs → index-C8Gs2kb9.cjs} +1 -1
- package/dist/{index-CFXOJ9On.js → index-C9ymYFoj.js} +1 -1
- package/dist/{index-bdJ6Rv_b.cjs → index-CXzyIaKS.cjs} +1 -1
- package/dist/{index-CIBLDYUr.cjs → index-D61oefkm.cjs} +1 -1
- package/dist/{index-gU0NjccR.js → index-DOTzO0oC.js} +1 -1
- package/dist/{index-1io6qGUF.cjs → index-DYfyGCzh.cjs} +1 -1
- package/dist/{index-Dz5sgTgm.cjs → index-DZE8ct-a.cjs} +1 -1
- package/dist/{index-ZgqPuX7q.cjs → index-DcVTdbvL.cjs} +1 -1
- package/dist/{index-CKKhk7r7.js → index-Dd1I1FpL.js} +2 -2
- package/dist/{index-B80uGb97.js → index-DrNcZwW9.js} +3 -3
- package/dist/{index-B4P4-6XS.js → index-DvALRudH.js} +1 -1
- package/dist/{index-u58HGJ-V.js → index-O8ibsut4.js} +2 -2
- package/dist/{index-PgA-t00-.cjs → index-XFWr2jDi.cjs} +1 -1
- package/dist/{index-Bqfi_lg2.cjs → index-ZGugCcFS.cjs} +1 -1
- package/dist/{index-C8Nd5lVx.js → index-yDS_g8Zg.js} +1 -1
- package/dist/{main-DWisOrSP.js → main-BYr0zGF7.js} +2 -2
- package/dist/{main-sCnkGFZB.cjs → main-DkUGanos.cjs} +1 -1
- package/dist/ss-component.cjs +1 -14
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +54 -958
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-CQSHt2TL.cjs → threeModel-C_hzvL0g.cjs} +1 -1
- package/dist/{threeModel-Dv9sgokW.js → threeModel-DJufegTZ.js} +1 -1
- package/dist/{threeSceneView-BdUq3MMn.js → threeSceneView-D7W8LkVN.js} +3 -3
- package/dist/{threeSceneView-BfbtVvon.cjs → threeSceneView-DP3w9PCW.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DvT_6wlE.js → threeSceneViewForCPMPIP-BCE-01xK.js} +1 -1
- package/dist/{threeSceneViewForCPMPIP-D0Wf1B1n.cjs → threeSceneViewForCPMPIP-DLA4I3u-.cjs} +1 -1
- package/dist/{threeViewerHost-C4bcTMG5.cjs → threeViewerHost-BZFm839b.cjs} +1 -1
- package/dist/{threeViewerHost-CK0krO72.js → threeViewerHost-DNxvuNKu.js} +1 -1
- package/package.json +1 -1
- package/dist/index-ByA0_yBV.cjs +0 -26
- package/dist/index-Dwc8LN6-.js +0 -24136
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";var sd=Object.defineProperty;var cd=(a,l,r)=>l in a?sd(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var hn=(a,l,r)=>cd(a,typeof l!="symbol"?l+"":l,r);const e=require("vue"),Xa=require("./request-Dl8yi2iS.cjs"),R=require("./index-CMUsYepp.cjs"),ul=require("./index-DYfyGCzh.cjs"),re=require("./index-BuZHI6xx.cjs"),fr=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fl=require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-J7Knzs4U.cjs"),Vr=require("./index-B-pflqKE.cjs"),Do=require("./threeViewerHost-BZFm839b.cjs"),Zr=require("./index-DmwxzDGW.cjs"),_s=require("./index-ZGugCcFS.cjs"),bc=require("./index-DkTHtURJ.cjs");;/* empty css */const No=require("./isString-CGrvcmBw.cjs"),Ss=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),kc=require("./index-BVaHwt5f.cjs"),ud=require("./index-CPTra5LJ.cjs"),Yn=require("./MTLLoader-DqJ6tn_v.cjs"),dd=require("./URDFLoader-CnIz461N.cjs");var pd="[object Boolean]";function xc(a){return a===!0||a===!1||Xa.isObjectLike(a)&&Xa.baseGetTag(a)==pd}function fd(a){return a===void 0}const hd=a=>a.match(/\((.*)\)/)[1],vd={__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,r=e.ref(null),n=e.ref(!1),i=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{n.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>i.value,()=>{e.nextTick(()=>{var o,p;(p=(o=r.value)==null?void 0:o.updatePopper)==null||p.call(o)})},{deep:!0,immediate:!0}),(o,p)=>{const s=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(s,{visible:n.value,"onUpdate:visible":p[0]||(p[0]=u=>n.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:r,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"reference",{ref_key:"referenceRef",ref:i})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},md=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,r=e.computed(()=>{var u,y,b,g,d,C;const n=l.value??"";let i=(u=l==null?void 0:l.columnContent)==null?void 0:u.filter;if(i=(y=re.analyzeSplitToContent(i,","))==null?void 0:y.map(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)),i=i==null?void 0:i.find(v=>(v==null?void 0:v[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 o=(g=(b=l==null?void 0:l.columnContent)==null?void 0:b.options)==null?void 0:g.findIndex(v=>(v==null?void 0:v.value)===n);o=i==null?void 0:i[o],o=re.analyzeSplitToContent(o,","),o=o==null?void 0:o.map(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));let p=o==null?void 0:o.find(v=>v==null?void 0:v.includes("@TextBackRGBA"));p?p=re.rgbaToColor((d=p==null?void 0:p.split("="))==null?void 0:d[1]):p=void 0;let s=o==null?void 0:o.find(v=>v==null?void 0:v.includes("@TextRGBA"));return s?s=re.rgbaToColor((C=s==null?void 0:s.split("="))==null?void 0:C[1]):s=void 0,{backgroundColor:p,color:s}});return(n,i)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(r.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),wc=fr._export_sfc(md,[["__scopeId","data-v-3290070b"]]);function yd(a,l,r,n={}){if(!a||!l||!r||r.length!==4)return;const i=a.getContext("2d");if(!i)return;const{color:o="rgba(255, 235, 59, 0.3)",strokeWidth:p=2,fillOpacity:s=.2}=n,u=a.getBoundingClientRect(),y=l.getBoundingClientRect(),b=l.naturalWidth,g=l.naturalHeight,d=y.width/b,C=y.height/g,v=Math.min(d,C),H=b*v,T=g*v,j=(u.width-H)/2,D=(u.height-T)/2,_=r.map(([x,k])=>{const E=j+x*H,M=D+k*T;return{x:E,y:M}});i.clearRect(0,0,a.width,a.height),i.beginPath(),i.moveTo(_[0].x,_[0].y);for(let x=1;x<_.length;x++)i.lineTo(_[x].x,_[x].y);i.closePath();const S=o.replace(/[\d.]+\)$/,`${s})`);i.fillStyle=S,i.fill(),i.strokeStyle=o.replace(/[\d.]+\)$/,"1)"),i.lineWidth=p,i.stroke()}function Ni(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function Es(a,l){if(!a||!l)return null;const r=a[l];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const gd={key:0,class:"ocr-img-preview-root"},bd={class:"ocr-img-preview-window"},kd={key:0,class:"img-preview-body"},xd={class:"img-preview-header"},wd={class:"img-header-left"},_d={class:"img-name"},Sd={key:0,class:"img-header-right"},Ed={class:"img-index"},Cd={key:0,class:"img-thumb-list"},Td=["onClick"],Bd={key:1,class:"thumb-placeholder"},Dd={class:"thumb-name"},Nd={class:"img-preview-container"},Ad={key:0,class:"img-placeholder"},zd={key:2,class:"img-placeholder"},Md={key:0},Id={key:1},Od={key:1,class:"img-placeholder"},Ld=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 r=a,n=l,i=e.computed({get:()=>r.visible,set:N=>n("update:visible",N)});let o=!1,p="",s=0,u=0,y=0,b=0,g=0,d=0,C=null;const v=N=>{var G,ve;const se=(ve=(G=N==null?void 0:N.target)==null?void 0:G.closest)==null?void 0:ve.call(G,".ocr-img-preview-window");return se||document.querySelector(".ocr-img-preview-window")},H=N=>{if(!N||N==="none")return{tx:0,ty:0};let se=N.match(/matrix\(([^)]+)\)/);if(se){const G=se[1].split(",").map(ve=>Number(ve.trim()));return{tx:(G==null?void 0:G[4])||0,ty:(G==null?void 0:G[5])||0}}if(se=N.match(/matrix3d\(([^)]+)\)/),se){const G=se[1].split(",").map(ve=>Number(ve.trim()));return{tx:(G==null?void 0:G[12])||0,ty:(G==null?void 0:G[13])||0}}return se=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),se?{tx:Number(se[1])||0,ty:Number(se[2])||0}:{tx:0,ty:0}},T=(N,se,G)=>{N.style.transform=`translate(${se}px, ${G}px)`},j=N=>{const se=v(N);if(!se)return;o=!0,C=se,p="move",s=N.clientX,u=N.clientY;const G=window.getComputedStyle(se),{tx:ve,ty:ke}=H(G.transform);g=ve,d=ke,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S)},D=(N,se)=>{const G=v(N);if(!G)return;o=!0,C=G,p=se,s=N.clientX,u=N.clientY;const ve=G.getBoundingClientRect();y=ve.width,b=ve.height;const ke=window.getComputedStyle(G),{tx:Be,ty:We}=H(ke.transform);g=Be,d=We,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S)},_=N=>{if(!o||!C)return;const se=N.clientX-s,G=N.clientY-u,ve=360,ke=420;let Be=y,We=b,he=g,I=d;if(p==="move"){he=g+se,I=d+G,T(C,he,I);return}if(p.includes("right")&&(Be=Math.max(ve,y+se)),p.includes("bottom")&&(We=Math.max(ke,b+G)),p.includes("left")){const Oe=y-se;Oe<ve?(Be=ve,he=g+(y-ve)):(Be=Oe,he=g+se)}if(p.includes("top")){const Oe=b-G;Oe<ke?(We=ke,I=d+(b-ke)):(We=Oe,I=d+G)}C.style.width=`${Be}px`,C.style.height=`${We}px`,T(C,he,I)},S=()=>{o=!1,p="",C=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S)},x=e.ref([]),k=e.ref(!1);e.watch(()=>r.images,async N=>{if(!Array.isArray(N)||N.length===0){x.value=[];return}k.value=!0;const se=[];for(const G of N)if(G.url&&!G.url.startsWith("blob:")&&!G.url.startsWith("http"))try{const ve=await Fl.downloadFile(G.url),ke=URL.createObjectURL(ve);se.push({...G,blobUrl:ke})}catch(ve){console.error(`Failed to load image for preview: ${G.url}`,ve),se.push({...G,blobUrl:""})}else se.push({...G,blobUrl:G.url});x.value=se,k.value=!1},{deep:!0,immediate:!0});const E=e.ref(0),M=e.ref(null),O=e.ref(null),Q=e.computed(()=>x.value[E.value]||null),J=()=>{if(!x.value.length){E.value=0;return}if(r.defaultImageName){const N=x.value.findIndex(se=>(se==null?void 0:se.name)===r.defaultImageName);E.value=N>=0?N:0}else E.value=0},ye=N=>{if(!x.value.length)return;const se=Math.max(0,Math.min(N,x.value.length-1));E.value=se},te=()=>ye(E.value-1),U=()=>ye(E.value+1),q=N=>{if(!N)return;const se=x.value.findIndex(G=>(G==null?void 0:G.name)===N);se>=0&&(E.value=se)},X=()=>{if(!O.value)return;const N=O.value.parentElement;if(!N)return;const se=N.getBoundingClientRect();O.value.width=se.width,O.value.height=se.height},ee=()=>{var ve,ke;if(!O.value||!M.value||!r.focusedFieldName){O.value&&Ni(O.value);return}const N=(ve=M.value.$el)==null?void 0:ve.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{ee()})};return}const se=((ke=Q.value)==null?void 0:ke.name)||"",G=Es(r.fieldMeta,r.focusedFieldName);if(!G){Ni(O.value);return}if(G.imageName!==se){Ni(O.value);return}X(),yd(O.value,N,G.bboxNorm)},pe=()=>{e.nextTick(()=>{X(),ee()})};e.watch(()=>r.focusedFieldName,()=>{if(!i.value)return;const N=Es(r.fieldMeta,r.focusedFieldName);N!=null&&N.imageName&&q(N.imageName),e.nextTick(()=>{ee()})}),e.watch(()=>{var N;return(N=Q.value)==null?void 0:N.name},()=>{i.value&&e.nextTick(()=>{O.value&&Ni(O.value),ee()})}),e.watch(()=>r.visible,N=>{N?(J(),e.nextTick(()=>{X(),ee()})):O.value&&Ni(O.value)}),e.watch(()=>r.defaultImageName,()=>{i.value&&J()});let ze=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(ze=new ResizeObserver(()=>{X(),e.nextTick(()=>{ee()})}),(N=O.value)!=null&&N.parentElement&&ze.observe(O.value.parentElement))}),e.onUnmounted(()=>{ze&&(ze.disconnect(),ze=null),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S)});const ue=()=>{O.value&&Ni(O.value),n("update:visible",!1),n("close")};return(N,se)=>{var We,he;const G=e.resolveComponent("el-button"),ve=e.resolveComponent("el-image"),ke=e.resolveComponent("Loading"),Be=e.resolveComponent("el-icon");return i.value?(e.openBlock(),e.createElementBlock("div",gd,[se[12]||(se[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",bd,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(j,["stop"])},[se[8]||(se[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ue},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:se[0]||(se[0]=e.withModifiers(I=>D(I,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:se[1]||(se[1]=e.withModifiers(I=>D(I,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:se[2]||(se[2]=e.withModifiers(I=>D(I,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:se[3]||(se[3]=e.withModifiers(I=>D(I,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:se[4]||(se[4]=e.withModifiers(I=>D(I,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:se[5]||(se[5]=e.withModifiers(I=>D(I,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:se[6]||(se[6]=e.withModifiers(I=>D(I,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:se[7]||(se[7]=e.withModifiers(I=>D(I,"bottom-right"),["stop"]))},null,32),Q.value?(e.openBlock(),e.createElementBlock("div",kd,[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[e.createElementVNode("span",_d,e.toDisplayString(Q.value.name?Q.value.name+(Q.value.url&&Q.value.url.lastIndexOf(".")!==-1?Q.value.url.substring(Q.value.url.lastIndexOf(".")):""):""),1)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Sd,[e.createVNode(G,{size:"small",disabled:E.value===0,onClick:te},{default:e.withCtx(()=>se[9]||(se[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Ed,e.toDisplayString(E.value+1)+" / "+e.toDisplayString(x.value.length),1),e.createVNode(G,{size:"small",disabled:E.value===x.value.length-1,onClick:U},{default:e.withCtx(()=>se[10]||(se[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(I,Oe)=>(e.openBlock(),e.createElementBlock("div",{key:(I.name||"")+"-"+Oe,class:e.normalizeClass(["img-thumb-item",{active:Oe===E.value}]),onClick:oe=>ye(Oe)},[I!=null&&I.blobUrl?(e.openBlock(),e.createBlock(ve,{key:0,src:I.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[I.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Bd,"加载失败")),e.createElementVNode("div",Dd,e.toDisplayString(I.name||"-"),1)],10,Td))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Nd,[k.value?(e.openBlock(),e.createElementBlock("div",Ad,[e.createVNode(Be,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(ke)]),_:1}),se[11]||(se[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(We=Q.value)!=null&&We.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ve,{ref_key:"imageRef",ref:M,src:Q.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[Q.value.blobUrl],onLoad:pe},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:O,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",zd,[(he=Q.value)!=null&&he.url?(e.openBlock(),e.createElementBlock("span",Md,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",Id,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",Od,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),Rd=fr._export_sfc(Ld,[["__scopeId","data-v-48a4ecb1"]]),$d={class:"cert-preview-body"},Vd={key:0,class:"pdf-preview-container"},Fd={class:"thumbs"},Pd=["onClick"],Hd={class:"thumb-img"},jd=["src"],Ud={key:1,class:"thumb-loading"},qd={class:"thumb-title"},Wd={class:"viewer"},Gd={key:0,class:"viewer-img-wrap"},Kd=["src"],Yd={key:1,class:"viewer-loading"},Jd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(""),o=e.ref(""),p=e.computed(()=>(r.versions||[]).find(v=>String(v.versionId)===String(i.value))),s=e.ref({}),u=e.ref(""),y=e.ref("证书附件.pdf"),b=()=>{try{Object.values(s.value||{}).forEach(v=>{v&&URL.revokeObjectURL(v)}),u.value&&URL.revokeObjectURL(u.value)}catch{}s.value={},u.value=""},g=async v=>{if(!v||v.fileType==="pdf")return;const H=Array.isArray(v.images)?v.images:[];for(const T of H){const j=T==null?void 0:T.url;if(!(!j||s.value[j]))try{const D=await R.platformDownloadFile({url:j}),_=URL.createObjectURL(D.data);s.value={...s.value,[j]:_}}catch{}}},d=async v=>{var T;if(!v||v.fileType!=="pdf"){u.value="";return}const H=v.sourceUrl||"";if(!H){u.value="";return}if(u.value){try{URL.revokeObjectURL(u.value)}catch{}u.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:H,versionId:v==null?void 0:v.versionId,certNo:v==null?void 0:v.certNo});const j=await R.platformDownloadFile({url:H});console.log("[CertificatePreview] PDF响应:",{url:H,status:j==null?void 0:j.status,size:(T=j==null?void 0:j.data)==null?void 0:T.size});const D=URL.createObjectURL(j.data);u.value=D;const _=v.certNo?String(v.certNo):"";y.value=_?`${_}.pdf`:"证书附件.pdf"}catch(j){console.error("[CertificatePreview] PDF加载失败:",{url:H,error:j}),u.value=""}};e.watch(()=>r.visible,async v=>{var T;if(!v){b();return}const H=(T=r.versions)==null?void 0:T[0];i.value=(H==null?void 0:H.versionId)||"",await g(H),await d(H)},{immediate:!0}),e.watch(()=>i.value,async()=>{var H,T;const v=p.value;if(!v){o.value="",u.value="";return}if(v.fileType==="pdf"){o.value="",await d(v);return}u.value="",o.value=((T=(H=v.images)==null?void 0:H[0])==null?void 0:T.url)||"",await g(v)},{immediate:!0});const C=()=>{n("update:visible",!1),b()};return e.onBeforeUnmount(()=>{b()}),(v,H)=>{const T=e.resolveComponent("el-empty"),j=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),_=e.resolveComponent("el-button"),S=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(S,{"model-value":v.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:C},{footer:e.withCtx(()=>[e.createVNode(_,{id:"themeBorderButton",onClick:C},{default:e.withCtx(()=>H[1]||(H[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[v.versions&&v.versions.length>0?(e.openBlock(),e.createBlock(D,{key:0,modelValue:i.value,"onUpdate:modelValue":H[0]||(H[0]=x=>i.value=x),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.versions,x=>(e.openBlock(),e.createBlock(j,{key:x.versionId,name:x.versionId,label:x.label},{default:e.withCtx(()=>[e.createElementVNode("div",$d,[x.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",Vd,[u.value?(e.openBlock(),e.createBlock(ul.SsFilePreview,{key:1,fileName:y.value,blobUrl:u.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(T,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Fd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.images||[],k=>(e.openBlock(),e.createElementBlock("div",{key:k.url,class:e.normalizeClass(["thumb",{active:k.url===o.value}]),onClick:E=>o.value=k.url},[e.createElementVNode("div",Hd,[s.value[k.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.value[k.url]},null,8,jd)):(e.openBlock(),e.createElementBlock("div",Ud,"加载中"))]),e.createElementVNode("div",qd,e.toDisplayString(k.name),1)],10,Pd))),128))]),e.createElementVNode("div",Wd,[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.value[o.value]?(e.openBlock(),e.createElementBlock("div",Gd,[e.createElementVNode("img",{class:"viewer-img",src:s.value[o.value]},null,8,Kd)])):(e.openBlock(),e.createElementBlock("div",Yd,"加载中"))],64)):(e.openBlock(),e.createBlock(T,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),Xd=fr._export_sfc(Jd,[["__scopeId","data-v-220703c0"]]),Zd={class:"ocr-candidate-wrap"},Qd={class:"ocr-candidate-left"},ep={key:1},ap={key:0},lp={key:1},rp={key:2},np={key:3},ip={key:0,class:"ocr-candidate-right"},op={class:"ocr-candidate-actions"},tp={key:1},sp={class:"dialog-footer"},cp={__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 r=(E=[])=>{const M=[],O=Q=>{(Q||[]).forEach(J=>{if(!J)return;const ye=J.children||J.childrens||J.columns;Array.isArray(ye)&&ye.length>0?O(ye):M.push(J)})};return O(E),M},n=a,i=l,o=e.computed(()=>{var E;return((E=d.value)==null?void 0:E.allowAdd)!==!1}),p=e.computed(()=>{var E;return((E=d.value)==null?void 0:E.allowReplace)!==!1}),s=E=>{if(!E)return[];if(Array.isArray(E))return E;if(typeof E=="string")try{const M=JSON.parse(E);return Array.isArray(M)?M:[]}catch{return[]}return[]},u=E=>{i("preview-file",E)},y=e.ref([]),b=e.ref(0),g=e.ref("");e.watch(()=>n.candidates,E=>{var M,O;y.value=(E||[]).map(Q=>({...Q,...(Q==null?void 0:Q.ocrRow)||{},selectedTargetId:(Q==null?void 0:Q.selectedTargetId)||"",__decision:Q==null?void 0:Q.__decision})),b.value=0,g.value=((O=(M=y.value)==null?void 0:M[0])==null?void 0:O.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>n.visible,E=>{var M,O;E&&(b.value=0,g.value=((O=(M=y.value)==null?void 0:M[0])==null?void 0:O.selectedTargetId)||"")});const d=e.computed(()=>{var M;const E=Number(b.value||0);return((M=y.value||[])==null?void 0:M[E])||null}),C=e.computed(()=>(r(n.columns||[])||[]).filter(O=>O&&O.prop).filter(O=>O.type!=="operate"&&O.label!=="操作"&&O.prop!=="operate")),v=e.computed(()=>C.value.filter(E=>E.label!=="证书附件"&&E.prop!=="证书附件")),H=E=>{if(!E)return;const M=(y.value||[]).findIndex(O=>(O==null?void 0:O.idx)===(E==null?void 0:E.idx));M>-1&&(b.value=M,g.value=(E==null?void 0:E.selectedTargetId)||"")},T=E=>{if(!E){g.value="";return}g.value=String((E==null?void 0:E.id)??"")},j=(E,M="")=>{const O=Number(b.value||0),Q=y.value||[],J=Q[O];J&&(J.__decision=E,J.selectedTargetId=M,g.value=M,y.value=[...Q])},D=()=>j("skip",""),_=()=>j("add",""),S=()=>{if(!g.value){Xa.ElMessage.warning("请先选择要替换的目标记录");return}j("replace",g.value)},x=()=>{i("update:visible",!1)},k=()=>{const E=y.value||[];if(E.find(O=>(O==null?void 0:O.__decision)==="replace"&&!(O!=null&&O.selectedTargetId))){Xa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}i("submit",E),i("update:visible",!1)};return(E,M)=>{const O=e.resolveComponent("el-table-column"),Q=e.resolveComponent("svg-icon"),J=e.resolveComponent("el-table"),ye=e.resolveComponent("el-button"),te=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Vr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:x},{default:e.withCtx(()=>{var U,q;return[e.createElementVNode("div",Zd,[e.createElementVNode("div",Qd,[M[0]||(M[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(J,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:H},{default:e.withCtx(()=>[e.createVNode(O,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,X=>(e.openBlock(),e.createBlock(O,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:ee})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s(ee==null?void 0:ee[X.prop]).length>0?(e.openBlock(),e.createBlock(Q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(pe=>u({row:ee,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",ep,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ee==null?void 0:ee[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(O,{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(O,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",ap,"替换")):(X==null?void 0:X.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",lp,"新增")):(X==null?void 0:X.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",rp,"跳过")):(e.openBlock(),e.createElementBlock("span",np,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(e.openBlock(),e.createElementBlock("div",ip,[M[4]||(M[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",op,[e.createVNode(ye,{id:"themeBorderButton",onClick:D},{default:e.withCtx(()=>M[1]||(M[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ye,{id:"themeBorderButton",onClick:_,disabled:!o.value},{default:e.withCtx(()=>M[2]||(M[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:S,disabled:!p.value||!g.value},{default:e.withCtx(()=>M[3]||(M[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((U=d.value)==null?void 0:U.candidates)||[]).length===0?(e.openBlock(),e.createBlock(te,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(J,{data:((q=d.value)==null?void 0:q.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:T,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(O,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,X=>(e.openBlock(),e.createBlock(O,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:ee})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s(ee==null?void 0:ee[X.prop]).length>0?(e.openBlock(),e.createBlock(Q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(pe=>u({row:ee,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",tp,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ee==null?void 0:ee[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(ye,{id:"themeBorderButton",onClick:x},{default:e.withCtx(()=>M[5]||(M[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:k},{default:e.withCtx(()=>M[6]||(M[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},up=fr._export_sfc(cp,[["__scopeId","data-v-89e0489c"]]),dp={class:"ocr-preview-content"},pp={class:"ocr-preview-tip"},fp={class:"ocr-preview-table"},hp={style:{display:"flex","align-items":"center",gap:"8px"}},vp={class:"dialog-footer"},mp={__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 r=a,n=l,i=e.ref([]),o=e.ref([]),p=e.ref([]);e.watch(()=>r.visible,C=>{C&&(i.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),o.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),p.value=[...r.ocrSelectedFields])});const s=(C,v)=>{const H=[...p.value];if(v)H.includes(C)||H.push(C);else{const T=H.indexOf(C);T>-1&&H.splice(T,1)}p.value=H,n("update:ocrSelectedFields",H)},u=(C,v,H)=>{n("fieldChange",{rowIndex:C,prop:v,value:H})},y=()=>{n("update:ocrPreviewData",i.value),n("confirm",i.value),n("update:visible",!1)},b=()=>{n("update:visible",!1)},g=C=>typeof C!="number"?"-":`${(C*100).toFixed(1)}%`,d=C=>typeof C!="number"?"#606266":C>=.9?"#67c23a":C>=.7?"#e6a23c":"#f56c6c";return(C,v)=>{const H=e.resolveComponent("el-alert"),T=e.resolveComponent("el-table-column"),j=e.resolveComponent("el-checkbox"),D=e.resolveComponent("el-input"),_=e.resolveComponent("el-table"),S=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Vr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:b,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createElementVNode("div",pp,[e.createVNode(H,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",fp,[e.createVNode(_,{data:i.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(T,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,x=>(e.openBlock(),e.createBlock(T,{key:x.prop,prop:x.prop,"min-width":x.minWidth||230,"class-name":x.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",hp,[x.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:0,"model-value":p.value.includes(x.prop),onChange:k=>s(x.prop,k),onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(x.label),1)])]),default:e.withCtx(({row:k,$index:E})=>[x.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:d(k[x.prop]),fontWeight:500})},e.toDisplayString(g(k[x.prop])),5)):(e.openBlock(),e.createBlock(D,{key:1,modelValue:k[x.prop],"onUpdate:modelValue":M=>k[x.prop]=M,size:"small",placeholder:"请输入"+x.label,onChange:M=>u(E,x.prop,M)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",vp,[e.createVNode(S,{onClick:b,id:"themeBorderButton"},{default:e.withCtx(()=>v[1]||(v[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(S,{class:"ok-button",onClick:y,id:"themeButton"},{default:e.withCtx(()=>v[2]||(v[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},yp=fr._export_sfc(mp,[["__scopeId","data-v-df66eb1f"]]),ri=a=>{var n;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 r=(n=re.analyzeSplitToContent(l,","))==null?void 0:n.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)),vn(i)));return r=r==null?void 0:r.join(","),r};function _c(a){return Xa.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function gp(a){return Xa.axios.get(a,{responseType:"blob"})}let dr="$R",bp="http://222.92.178.198:55002/AIRobot",kt=["Form","BarChart","FormText","FormBlock"];const Tt=a=>{var r,n;let l=(n=re.analyzeSplitToContent(a,"@"))==null?void 0:n[((r=re.analyzeSplitToContent(a,"@"))==null?void 0:r.length)-1];return!!(kt!=null&&kt.some(i=>l==null?void 0:l.includes(i)))},kp=async(a,l,r,n)=>{var o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe;let i=a;if(Tt(i==null?void 0:i[0])){let ge=Cc(i),xe=(o=ge==null?void 0:ge.filter)==null?void 0:o.join(","),ne=[];(p=ge==null?void 0:ge.hideContents)==null||p.forEach(ya=>{if(ya){const Ge=ya;Ge&&ne.push(`(HideGroup=Yes, prop=${Ge})`)}});let we=(s=ge==null?void 0:ge.formContents)==null?void 0:s.filter(ya=>{var Ge;return(Ge=ya==null?void 0:ya.filters)==null?void 0:Ge.includes("@ShowHide=Hide")});(we==null?void 0:we.length)>0&&(we==null||we.forEach(ya=>{if(ya){const Ge=ya==null?void 0:ya.prop;Ge&&ne.push(`(Hide=Yes, prop=${Ge})`)}}));let Ke=(n==null?void 0:n.menuFilter)??[];return Array.isArray(Ke)||(Ke=Ke?[Ke]:[]),Ke=[...Ke,...ne],xe===""&&((u=ge==null?void 0:ge.formContents)==null?void 0:u.length)===0?void 0:{key:"Form",name:ge==null?void 0:ge.groupName,value:ge==null?void 0:ge.formContents,contents:Array.isArray((y=ge==null?void 0:ge.contents)==null?void 0:y[0])&&((g=(b=ge==null?void 0:ge.contents)==null?void 0:b[0])!=null&&g.every(ya=>Array.isArray(ya)))?[(C=(d=ge==null?void 0:ge.contents)==null?void 0:d[0])==null?void 0:C[r]]:[ge==null?void 0:ge.contents],filter:"("+xe+")",menuFilter:Ke,groupFilter:ge==null?void 0:ge.groupFilters}}else if(((v=i==null?void 0:i[0])==null?void 0:v[0])!=="&"){let ge=Tc(i,n),xe="";(H=ge==null?void 0:ge.tableFilter)!=null&&H.includes(dr)?ge.tableFilter=(T=ge==null?void 0:ge.tableFilter)==null?void 0:T.replace(dr,""):xe=(_=(D=(j=ge==null?void 0:ge.tableFilter)==null?void 0:j.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:_[0];let ne=[];ge!=null&&ge.tableFilter&&((S=re.analyzeSplitToContent(ge==null?void 0:ge.tableFilter,","))==null||S.forEach(Ke=>{Ke!=null&&Ke.includes("@ShowHide=Hide")&&ne.push("HideGroup=Yes")}));let we=(n==null?void 0:n.menuFilter)??[];return Array.isArray(we)||(we=we?[we]:[]),we=[...we,...ne],{key:"Table",name:ge==null?void 0:ge.groupName,tableColumns:ge==null?void 0:ge.tableColumns,assistColumn:ge==null?void 0:ge.columns,tableContents:l===1?ge==null?void 0:ge.tableContents:(k=(x=ge==null?void 0:ge.tableContents)==null?void 0:x[r])!=null&&k.every(Ke=>Array.isArray(Ke))?(E=ge==null?void 0:ge.tableContents)==null?void 0:E[r]:[(M=ge==null?void 0:ge.tableContents)==null?void 0:M[r]],filter:ge==null?void 0:ge.tableFilter,menuFilter:we,quotePage:xe!==""?((J=(Q=(O=xe==null?void 0:xe.replace("*",dr))==null?void 0:O.split(dr))==null?void 0:Q[0])==null?void 0:J.replaceAll(":","/"))??"":void 0,quoteGroup:xe!==""?((pe=(ee=(X=(q=(U=(te=(ye=xe==null?void 0:xe.replace("*",dr))==null?void 0:ye.split(dr))==null?void 0:te[1])==null?void 0:U.replace("{",dr))==null?void 0:q.split(dr))==null?void 0:X[0])==null?void 0:ee.split(":"))==null?void 0:pe.filter(Ke=>Ke!==""))??[]:[],relatedQuotes:ge==null?void 0:ge.relatedQuotes,fatherSyncContents:ge==null?void 0:ge.fatherSyncContents,sonSyncContents:ge==null?void 0:ge.sonSyncContents,calculatorFilters:(ge==null?void 0:ge.calculatorFilters)??[]}}else{let ge=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],xe=i==null?void 0:i[0];xe=xe==null?void 0:xe.slice(1,xe==null?void 0:xe.length),xe=re.analyzeSplitToContent(xe,":"),xe=xe==null?void 0:xe[(xe==null?void 0:xe.length)-1];let ne=[];ne.push("1");let we=xe==null?void 0:xe.replace("(",dr);we=(ze=we==null?void 0:we.split(dr))==null?void 0:ze[0],ne.push(we);let Ke=xe==null?void 0:xe.replace("(",dr);if(Ke=(ue=Ke==null?void 0:Ke.split(dr))==null?void 0:ue[1],Ke=(se=(N=Ke==null?void 0:Ke.replace(")",dr))==null?void 0:N.split(dr))==null?void 0:se[0],(ve=(G=Ke==null?void 0:Ke.replace(",",dr))==null?void 0:G.split(dr))==null||ve.forEach(ya=>{ne.push(ya)}),ne.push(""),ne.push(""),(ke=ne==null?void 0:ne[2])!=null&&ke.includes(".xlsx")||(Be=ne==null?void 0:ne[2])!=null&&Be.includes(".xls"))try{let ya=bp+"/"+(ne==null?void 0:ne[2]),Ge=await gp(ya),V=`生成js函数名称为${ne==null?void 0:ne[1]}的函数,规则为:`+(ne==null?void 0:ne[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((Ge==null?void 0:Ge.status)===200){let F=Ge==null?void 0:Ge.data;const le=new FormData;le.append("file",F,ne==null?void 0:ne[2]),le.append("query",V);let fe=await _c(le);fe=(I=(he=(We=fe==null?void 0:fe.data)==null?void 0:We.data)==null?void 0:he.response)==null?void 0:I.replace("generateResult",ne==null?void 0:ne[1]),ne[ne.length-2]=fe,ne[ne.length-1]=[{name:(oe=(Oe=ne==null?void 0:ne[2])==null?void 0:Oe.split("."))==null?void 0:oe[0],url:ya}]}}catch{}return ne=[ne],{key:"Method",name:[],tableContents:ne,tableColumns:ge}}},xp=(a,l)=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya;let r=(i=(n=re.analyzeSplitToContent(a,"="))==null?void 0:n.filter(Ge=>Ge!=="="))==null?void 0:i.map(Ge=>((Ge==null?void 0:Ge[(Ge==null?void 0:Ge.length)-1])==="="&&(Ge=Ge==null?void 0:Ge.slice(0,(Ge==null?void 0:Ge.length)-1)),Ge));if(Tt(r==null?void 0:r[1])||Tt(r==null?void 0:r[0])){let Ge=Tp(r);if(Ge!=null&&Ge.formContents){let be=(o=Ge==null?void 0:Ge.filter)==null?void 0:o.join(","),ua=[];(p=Ge==null?void 0:Ge.hideContents)==null||p.forEach(va=>{if(va){const Ea=va;Ea&&ua.push(`(HideGroup=Yes, prop=${Ea})`)}});let ia=(s=Ge==null?void 0:Ge.formContents)==null?void 0:s.filter(va=>{var Ea;return(Ea=va==null?void 0:va.filters)==null?void 0:Ea.includes("@ShowHide=Hide")});(ia==null?void 0:ia.length)>0&&(ia==null||ia.forEach(va=>{if(va){const Ea=va==null?void 0:va.prop;Ea&&ua.push(`(Hide=Yes, prop=${Ea})`)}}));let Pe=(l==null?void 0:l.menuFilter)??[];return Array.isArray(Pe)||(Pe=Pe?[Pe]:[]),Pe=[...Pe,...ua],be===""&&((u=Ge==null?void 0:Ge.formContents)==null?void 0:u.length)===0?void 0:{key:"Form",name:Ge==null?void 0:Ge.groupName,value:Ge==null?void 0:Ge.formContents,contents:[Ge==null?void 0:Ge.contents],filter:"("+be+")",menuFilter:Pe,groupFilter:Ge==null?void 0:Ge.groupFilters,calculatorFilters:Ge==null?void 0:Ge.calculatorFilters}}let V=(g=(b=(y=Ge==null?void 0:Ge.filter)==null?void 0:y.replace("@",dr))==null?void 0:b.split(dr))==null?void 0:g[0],F=(v=(C=(d=Ge==null?void 0:Ge.filter)==null?void 0:d.replace("(",dr))==null?void 0:C.split(dr))==null?void 0:v[1],le=(j=(T=(H=Ge==null?void 0:Ge.filter)==null?void 0:H.replace("(",dr))==null?void 0:T.split(dr))==null?void 0:j[0];le="@"+((D=le==null?void 0:le.split("@"))==null?void 0:D[1]),F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1),F=(S=(_=re.analyzeSplitToContent(F,","))==null?void 0:_.map(be=>(be=le+be,be)))==null?void 0:S.join("");let fe=V+"("+F+")";return{key:"Form",name:Ge==null?void 0:Ge.group,filter:fe,formPage:((E=(k=(x=V==null?void 0:V.replace("*",dr))==null?void 0:x.split(dr))==null?void 0:k[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((U=(te=(ye=(J=(Q=(O=(M=V==null?void 0:V.replace("*",dr))==null?void 0:M.split(dr))==null?void 0:O[1])==null?void 0:Q.replace("{",dr))==null?void 0:J.split(dr))==null?void 0:ye[0])==null?void 0:te.split(":"))==null?void 0:U.filter(be=>be!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter,contents:[]}}else{let Ge=r==null?void 0:r.filter((ia,Pe)=>Pe!==0);Ge=Ge==null?void 0:Ge.join("");let V=Tc(r,l,Ge),F="";(q=V==null?void 0:V.tableFilter)!=null&&q.includes(dr)?V.tableFilter=(X=V==null?void 0:V.tableFilter)==null?void 0:X.replace(dr,""):F=(ze=(pe=(ee=V==null?void 0:V.tableFilter)==null?void 0:ee.replace("(",dr))==null?void 0:pe.split(dr))==null?void 0:ze[0];let le=(se=(N=(ue=V==null?void 0:V.tableFilter)==null?void 0:ue.replace("(",dr))==null?void 0:N.split(dr))==null?void 0:se[0];le=[{menus:(ve=(G=le==null?void 0:le.split("*"))==null?void 0:G[0])==null?void 0:ve.replaceAll(":","/"),groups:((Be=(ke=le==null?void 0:le.split("*"))==null?void 0:ke[1])==null?void 0:Be.split(":"))??[]}];let fe=(I=(he=(We=V==null?void 0:V.tableFilter)==null?void 0:We.replace("(",dr))==null?void 0:he.split(dr))==null?void 0:I[1];(fe==null?void 0:fe[(fe==null?void 0:fe.length)-1])===")"&&(fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1));let be=[];V!=null&&V.tableFilter&&((Oe=re.analyzeSplitToContent(V==null?void 0:V.tableFilter,","))==null||Oe.forEach(ia=>{ia!=null&&ia.includes("@ShowHide=Hide")&&be.push("HideGroup=Yes")}));let ua=(l==null?void 0:l.menuFilter)??[];return Array.isArray(ua)||(ua=ua?[ua]:[]),ua=[...ua,...be],{key:"Table",name:V==null?void 0:V.groupName,filter:V==null?void 0:V.tableFilter,tableColumns:V==null?void 0:V.tableColumns,tableContents:V==null?void 0:V.tableContents,quotePage:F!==""?((xe=(ge=(oe=F==null?void 0:F.replace("*",dr))==null?void 0:oe.split(dr))==null?void 0:ge[0])==null?void 0:xe.replaceAll(":","/"))??"":void 0,quoteGroup:F!==""?((ya=(Ke=(we=(ne=F==null?void 0:F.replace("*",dr))==null?void 0:ne.split(dr))==null?void 0:we[1])==null?void 0:Ke.split(":"))==null?void 0:ya.filter(ia=>ia!==""))??[]:[],menuFilter:ua,relatedQuotes:le,fatherSyncContents:(V==null?void 0:V.fatherSyncContents)??[],sonSyncContents:(V==null?void 0:V.sonSyncContents)??[],calculatorFilters:(V==null?void 0:V.calculatorFilters)??[]}}},wp=async(a,l)=>{let r=[],n=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(i,o)=>{let p=[];i=i==null?void 0:i.map(async s=>{var u,y;if(p.push(s),((u=re.analyzeSplitToContent(a,"="))==null?void 0:u.length)<=2){if(((y=re.analyzeSplitToContent(a,"="))==null?void 0:y.length)!==0){const b=await kp(re.analyzeSplitToContent(a,"="),n,o,s);b&&p.push(b)}}else p.push(xp(a,s))}),await Promise.all(i),r.push(p)}),await Promise.all(l),r};let Ki="/",_p="$",zn="$R";const Sc=a=>{var r,n,i;let l="";if((a==null?void 0:a.length)>1){let o=a==null?void 0:a.filter((p,s)=>s!==0);o=o==null?void 0:o.join(""),o=re.analyzerSplitToWord(o,")"),(o==null?void 0:o.length)!==1?(o==null?void 0:o[(o==null?void 0:o.length)-1])===")"?o=o==null?void 0:o.join(""):o=(r=o==null?void 0:o.filter((p,s)=>s!==(o==null?void 0:o.length)-1))==null?void 0:r.join(""):o=o==null?void 0:o[0],l="("+o,((i=a==null?void 0:a[0])==null?void 0:i[((n=a==null?void 0:a[0])==null?void 0:n.length)-2])==="@"&&(l="@"+l)}return{filter:l}},Ec=(a,l=[])=>{let r=(a==null?void 0:a.map(o=>{var p,s;return(s=o==null?void 0:o.key)==null?void 0:s.slice(1,(p=o==null?void 0:o.key)==null?void 0:p.length)}))??[],n=[];r==null||r.forEach(o=>{var p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye;if(o===""&&(o="算法库:通用算法"),o!=null&&o.includes(_p)){let te="",U=!0,q=re.analyzerSplitToWord(o,"(");(q==null?void 0:q.length)>1&&(te="("+((p=re.analyzerSplitToWord(q==null?void 0:q[1],")"))==null?void 0:p[0]),((u=q==null?void 0:q[0])==null?void 0:u[((s=q==null?void 0:q[0])==null?void 0:s.length)-2])==="@"&&(te="@"+te));let X=o;X=X==null?void 0:X.replace(te,""),te=vn(te),te=(y=re.analyzeSplitToContent(te,","))==null?void 0:y.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)),te!=null&&te.includes("@ShowHide=Hide")&&(U=!1);let ee=(b=X==null?void 0:X.replace("$",zn))==null?void 0:b.split(zn),pe=ee==null?void 0:ee[1],ze=ee==null?void 0:ee[0];ze!=null&&ze.includes("[")&&(ze=(d=(g=ze==null?void 0:ze.replace("[",zn))==null?void 0:g.split(zn))==null?void 0:d[0],pe=pe+":["+((H=(v=(C=ee==null?void 0:ee[0])==null?void 0:C.replace("[",zn))==null?void 0:v.split(zn))==null?void 0:H[1])),ze=(j=(T=ze==null?void 0:ze.replaceAll(":","/"))==null?void 0:T.replaceAll("{",""))==null?void 0:j.replaceAll("}",""),(ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])!=="/"&&(ze=ze+"/"),pe=((D=ze==null?void 0:ze.split("/"))==null?void 0:D[0])+":"+pe;let N="";if(!(pe!=null&&pe.includes("[")))N=pe==null?void 0:pe.replaceAll(":","/"),n==null||n.push({path:N,isShow:U,filter:te,fatherPath:ze});else{let se=(S=(_=pe==null?void 0:pe.replace("[",zn))==null?void 0:_.split(zn))==null?void 0:S[1];se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1),se=(x=re.analyzeSplitToContent(se,","))==null?void 0:x.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G)),se==null||se.forEach(G=>{var ve,ke;N=((ke=(ve=pe==null?void 0:pe.replace("[",zn))==null?void 0:ve.split(zn))==null?void 0:ke[0])+G,N=N==null?void 0:N.replaceAll(":","/"),n==null||n.push({path:N,isShow:U,filter:te,fatherPath:ze})})}}else{let te="",U=!0,q=re.analyzerSplitToWord(o,"(");(q==null?void 0:q.length)>1&&(te=(k=Sc(q))==null?void 0:k.filter);let X=o;if(X=X==null?void 0:X.replace(te,""),(te==null?void 0:te[0])==="("){te=te==null?void 0:te.slice(1,(te==null?void 0:te.length)-1);let pe=[];(E=re.analyzeSplitToContent(te,","))==null||E.forEach(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==null?void 0:ze[0])==="("&&(ze=ze==null?void 0:ze.slice(1,(ze==null?void 0:ze.length)-1)),(ze==null?void 0:ze[0])!=="@"&&(ze="@"+ze),pe.push(vn(ze))}),te=pe==null?void 0:pe.join(",")}else te=vn(te);te=(M=re.analyzeSplitToContent(te,","))==null?void 0:M.map(pe=>((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)),pe)),te!=null&&te.includes("@ShowHide=Hide")&&(U=!1),(X==null?void 0:X[(X==null?void 0:X.length)-1])==="}"&&(X=X+":"),X=(O=X==null?void 0:X.replaceAll("{",""))==null?void 0:O.replaceAll("}","");let ee="";if(X!=null&&X.includes("[")){let pe=(Q=X==null?void 0:X.replace("[",zn))==null?void 0:Q.split(zn),ze=pe==null?void 0:pe[1];ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),(ye=(J=re.analyzeSplitToContent(ze,","))==null?void 0:J.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue)))==null||ye.forEach(ue=>{ee=(pe==null?void 0:pe[0])+ue,ee=ee==null?void 0:ee.replaceAll(":","/"),n==null||n.push({path:ee,isShow:U,filter:te})})}else ee=X==null?void 0:X.replaceAll(":","/"),n==null||n.push({path:ee,isShow:U,filter:te})}});let i=R.cloneDeep(n);return(l==null?void 0:l.length)>0&&(i=l),i=i==null?void 0:i.filter(o=>{var p,s,u,y;return!(o!=null&&o.fatherPath)&&((s=(p=o==null?void 0:o.path)==null?void 0:p.split(Ki))==null?void 0:s.length)>1&&((y=(u=o==null?void 0:o.path)==null?void 0:u.split(Ki))==null?void 0:y[1])===""}),i=i==null?void 0:i.map(o=>{var p;return o.path=(p=o.path)==null?void 0:p.replace(Ki,""),o.path}),(i==null?void 0:i.length)>0&&(n=n==null?void 0:n.map(o=>{var s,u,y,b,g,d,C;let p=i==null?void 0:i.find(v=>{var H;return(H=o==null?void 0:o.path)==null?void 0:H.includes(v)});return!(o!=null&&o.fatherPath)&&p&&!((s=o==null?void 0:o.path)!=null&&s.includes(Ki))&&!(i!=null&&i.find(v=>(o==null?void 0:o.path)===v))&&(o.path=p+Ki+((C=(y=(u=o==null?void 0:o.path)==null?void 0:u.split(p))==null?void 0:y[1])==null?void 0:C.slice(1,(d=(g=(b=o==null?void 0:o.path)==null?void 0:b.split(p))==null?void 0:g[1])==null?void 0:d.length))),o})),n},Sp=(a,l)=>Ec([{key:a}],l),Ep=async(a,l)=>{const r=[],n=Sp(a==null?void 0:a.key,l);return n&&(n==null?void 0:n.length)>0&&(n==null||n.forEach(o=>{r.push([{key:"path",value:o==null?void 0:o.path,parentPath:(o==null?void 0:o.parentPath)??"",isShow:o==null?void 0:o.isShow,menuFilter:o==null?void 0:o.filter}])})),await wp(a==null?void 0:a.value,r)};let yl="$R",Xi="[Any]";const Cp=a=>{var n;let l=[],r=a;return(n=re.chunkArray(r))==null||n.forEach(i=>{var y,b,g,d,C;let o="",p=[],s="";(i==null?void 0:i.length)>1&&(s="@"+(i==null?void 0:i[0]),s=vn(s));let u=(i==null?void 0:i.length)===1?i==null?void 0:i[0]:i==null?void 0:i[1];u=u==null?void 0:u.slice(1,u==null?void 0:u.length),o=(b=(y=u==null?void 0:u.replace("(",yl))==null?void 0:y.split(yl))==null?void 0:b[0],u=(d=(g=u==null?void 0:u.replace("(",yl))==null?void 0:g.split(yl))==null?void 0:d[1],u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1),p=(C=re.analyzeSplitToContent(u,","))==null?void 0:C.map(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)),l.push({functionName:o,functionRelatedWords:p,calculatorFilter:s})}),l},Tp=a=>{var r,n,i;let l={};if(((r=a==null?void 0:a[1])==null?void 0:r[0])==="&"){let o=a==null?void 0:a[0],p=a==null?void 0:a[1];p=re.analyzeSplitToContent(p,":"),p!=null&&p[1]&&(p==null?void 0:p[1])!==""&&(o=o+":"+(p==null?void 0:p[1])),p=p==null?void 0:p[0],p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),p=[p],o=[o],o=Cc(o),l.filter=o==null?void 0:o.filter,l.contents=o==null?void 0:o.contents,l.formContents=o==null?void 0:o.formContents,l.groupFilters=o==null?void 0:o.groupFilters,l.groupName=o==null?void 0:o.groupName,l.hideContents=o==null?void 0:o.hideContents,l.calculatorFilters=Cp(p)??[]}else{let p=a==null?void 0:a[0];(p==null?void 0:p[0])==="*"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=p==null?void 0:p.split(":"),l.group=p;let s=a==null?void 0:a[1],u;s!=null&&s.includes("{")?u=(i=(n=s==null?void 0:s.replaceAll("{",""))==null?void 0:n.replaceAll("}",""))==null?void 0:i.replaceAll(Xi,""):u=s==null?void 0:s.replaceAll(Xi,""),(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),l.filter=u}return l},Cc=a=>{var d,C,v,H,T,j;let l=[],r=[],n=[],i=[],o=[],p=[],s="",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 y=re.analyzeSplitToContent(u,":");(d=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])!=="{"&&(D==null?void 0:D[0])!=="["))==null||d.forEach(D=>{var S,x,k;(D==null?void 0:D[(D==null?void 0:D.length)-1])===":"&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1));let _=re.analyzerSplitToWord(D,"(");if((_==null?void 0:_.length)>1){s=(S=Sc(_))==null?void 0:S.filter;let E=D==null?void 0:D.replace(s,"");if(n.push(E),(s==null?void 0:s[0])==="("){s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1);let M=[];(x=re.analyzeSplitToContent(s,","))==null||x.forEach(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?void 0:O[0])==="("&&(O=O==null?void 0:O.slice(1,(O==null?void 0:O.length)-1)),(O==null?void 0:O[0])!=="@"&&(O="@"+O),M.push(vn(O))}),s=M==null?void 0:M.join(",")}else s=vn(s);s=(k=re.analyzeSplitToContent(s,","))==null?void 0:k.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)),s!=null&&s.includes("@ShowHide=Hide")&&p.push(E),i=[...i,...s]}else n.push(_==null?void 0:_[0])});let b=(C=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])==="{"))==null?void 0:C[0],g=(v=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])==="["))==null?void 0:v[0];return l=Ri(g??""),l!=null&&l.every(D=>Array.isArray(D))&&(l=[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)),o=(H=re.analyzeSplitToContent(b,"@"))==null?void 0:H[1],o="@"+o,b=b==null?void 0:b.replace(o,""),o=vn(o),o=(T=re.analyzeSplitToContent(o,","))==null?void 0:T.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D)),(b==null?void 0:b[0])==="{"&&(b=b==null?void 0:b.slice(1,(b==null?void 0:b.length)-1)),b=(j=re.analyzeSplitToContent(b,","))==null?void 0:j.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D)),b==null||b.forEach((D,_)=>{var ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha;let S=[],x=[],k=[],E="",M="",O=!1,Q,J=[],ye=[],te=[],U="Input",q=[],X=[];if(D!=null&&D.includes("==")){Q=(ee=D==null?void 0:D.split("=="))==null?void 0:ee[0];let sa=(pe=D==null?void 0:D.split("=="))==null?void 0:pe[1],He="";((ze=re.analyzeSplitToContent(sa,"$"))==null?void 0:ze.length)>1&&((ue=re.analyzeSplitToContent(sa,"$"))==null?void 0:ue[0])!=="$"?(He=(N=re.analyzeSplitToContent(sa,"$"))==null?void 0:N[0],He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)):((se=re.analyzeSplitToContent(sa,"}"))==null?void 0:se.length)>1&&(He=(G=re.analyzeSplitToContent(sa,"}"))==null?void 0:G[1]);let ha=sa==null?void 0:sa.replace(He,"");if((He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),(ve=re.analyzeSplitToContent(He,","))==null||ve.forEach(ea=>{var Fe;(ea==null?void 0:ea[0])!=="@"&&(ea="@"+ea),(ea==null?void 0:ea[(ea==null?void 0:ea.length)-1])===","&&(ea=ea==null?void 0:ea.slice(0,(ea==null?void 0:ea.length)-1));let $e=vn(ea);(Fe=re.analyzeSplitToContent($e,","))==null||Fe.forEach(ie=>{(ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),S.push(ie)})}),(ha==null?void 0:ha[0])==="$"&&(ha=ha==null?void 0:ha.slice(1,ha==null?void 0:ha.length)),ha!=null&&ha.includes("&")){let ea=ha;if((ha==null?void 0:ha[0])==="("){let Fe=(ke=re.analyzeSplitToContent(ha,"&"))==null?void 0:ke.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])==="&"&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),ie));ea=Fe==null?void 0:Fe[1],Fe=Fe==null?void 0:Fe[0],(Fe==null?void 0:Fe[0])!=="@"&&(Fe="@"+Fe),E=vn(Fe)}(ea==null?void 0:ea[0])==="&"&&(ea=ea==null?void 0:ea.slice(1,ea==null?void 0:ea.length)),M=(We=(Be=ea==null?void 0:ea.replace("(",yl))==null?void 0:Be.split(yl))==null?void 0:We[0],k=(I=(he=ea==null?void 0:ea.replace("(",yl))==null?void 0:he.split(yl))==null?void 0:I[1],k=[k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)],U="Input"}else{let ea=(Oe=ha==null?void 0:ha.replace("*",yl))==null?void 0:Oe.split(yl);J=(oe=ea==null?void 0:ea[0])==null?void 0:oe.split(":"),ye=(xe=(ge=re.analyzeSplitToContent(ea==null?void 0:ea[1],":"))==null?void 0:ge.filter(($e,Fe)=>{var ie,Ye;return Fe!==((Ye=(ie=ea==null?void 0:ea[1])==null?void 0:ie.split(":"))==null?void 0:Ye.length)-1}))==null?void 0:xe.map($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)),te=(we=(ne=re.analyzeSplitToContent(ea==null?void 0:ea[1],":"))==null?void 0:ne.filter(($e,Fe)=>{var ie,Ye;return Fe===((Ye=(ie=ea==null?void 0:ea[1])==null?void 0:ie.split(":"))==null?void 0:Ye.length)-1}))==null?void 0:we[0],te=(ya=(Ke=te==null?void 0:te.replaceAll("{",""))==null?void 0:Ke.replaceAll("}",""))==null?void 0:ya.split(":"),U="Select"}if(Q!=null&&Q.includes("@")){let ea=re.analyzeSplitToContent(Q,"@");Q=ea==null?void 0:ea[0],Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),ea="@"+(ea==null?void 0:ea[1]),ea=vn(ea),S=(Ge=re.analyzeSplitToContent(ea,","))==null?void 0:Ge.map($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))}}else if(((V=re.analyzeSplitToContent(D,"="))==null?void 0:V.length)>1)if(U="Select",Q=(le=(F=D==null?void 0:D.replace("=",yl))==null?void 0:F.split(yl))==null?void 0:le[0],!(D!=null&&D.includes("If")))q=(be=(fe=D==null?void 0:D.replace("=",yl))==null?void 0:fe.split(yl))==null?void 0:be[1],q=q==null?void 0:q.split("||");else{let sa=(ia=(ua=D==null?void 0:D.replace("=",yl))==null?void 0:ua.split(yl))==null?void 0:ia[1];X=(Pe=re.analyzeSplitToContent(sa,")"))==null?void 0:Pe.filter(He=>!(He!=null&&He.includes("If"))),X=X==null?void 0:X.map(He=>((He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),He=He==null?void 0:He.split("||"),He)),x=(va=re.analyzeSplitToContent(sa,")"))==null?void 0:va.filter(He=>He==null?void 0:He.includes("If")),x=x==null?void 0:x.map(He=>((He==null?void 0:He[0])==="|"&&(He=He==null?void 0:He.slice(2,He==null?void 0:He.length)),(He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),(He==null?void 0:He[0])!=="@"&&(He="@"+He),He))}else if(((Ea=re.analyzeSplitToContent(D,"@"))==null?void 0:Ea.length)>1){Q=(Ae=re.analyzeSplitToContent(D,"@"))==null?void 0:Ae[0],(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])==="@"&&(Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1));let sa="@"+((Fa=re.analyzeSplitToContent(D,"@"))==null?void 0:Fa[1]);sa=vn(sa),S=(Ta=re.analyzeSplitToContent(sa,","))==null?void 0:Ta.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)),S!=null&&S.find(He=>He==null?void 0:He.includes("@Type"))&&(U=(Ha=(da=S==null?void 0:S.find(He=>He==null?void 0:He.includes("@Type")))==null?void 0:da.split("="))==null?void 0:Ha[1])}else Q=D;S!=null&&S.includes("@ShowHide=Hide")&&(O=!0),r.push({prop:Q,label:Q,value:"",menuPath:J,groups:ye,columns:te,type:U,options:q,allContents:X,filters:S,width:b==null?void 0:b.length,isFormColHidden:O,filterContents:x,functionName:M,functionRelatedWords:k,calculatorFilter:E})}),{groupName:n,groupFilters:i,formContents:r,contents:l,filter:o,hideContents:p}},Ri=a=>{var n,i;if(!a||typeof a!="string")return[];let l=[],r=a.slice(1,(a==null?void 0:a.length)-1);if((r==null?void 0:r[0])!=="[")(n=re.analyzeSplitToContent(r,","))==null||n.forEach(o=>{(o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o.slice(0,(o==null?void 0:o.length)-1)),l.push(o??"")}),(r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&l.push("");else{let o=[];(i=re.analyzeSplitToContent(r,","))==null||i.forEach(p=>{(p==null?void 0:p[(p==null?void 0:p.length)-1])===","&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),o.push(Ri(p))}),l=o}return l},Bt=(a,l)=>{var j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa;let r,n=[],i=[],o=[],p=[],s=[],u=[],y=[],b="Input",g,d="",C="",v="",H=[],T="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(r=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],g=(D=a==null?void 0:a.split("=="))==null?void 0:D[0],b="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((x=(S=(_=a==null?void 0:a.replace("=",yl))==null?void 0:_.split(yl))==null?void 0:S[1])!=null&&x.includes("If")))if(r=re.analyzeSplitToContent(a,"@"),r=r==null?void 0:r[0],(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=(E=(k=r==null?void 0:r.replace("=",yl))==null?void 0:k.split(yl))==null?void 0:E[0],r!=null&&r.includes("&")&&(r=(O=(M=r==null?void 0:r.replace("&",yl))==null?void 0:M.split(yl))==null?void 0:O[0]),g=r,((Q=re.analyzeSplitToContent(a,"@"))==null?void 0:Q.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Re=(J=re.analyzeSplitToContent(a,"@"))==null?void 0:J[1];if((Re==null?void 0:Re[0])!=="@"&&(Re="@"+Re),Re=vn(Re),C=Re,C!=null&&C.includes("@Type")){let Ie=re.analyzeSplitToContent(C,",");Ie=Ie==null?void 0:Ie.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)),Ie=(ye=Ie==null?void 0:Ie.filter(Je=>Je==null?void 0:Je.includes("@Type")))==null?void 0:ye[0],b=(te=Ie==null?void 0:Ie.split("="))==null?void 0:te[1],b==="File"&&(b="Upload")}else b="Input"}}else if(a!=null&&a.includes("||")){let Re=[];n=(X=(q=(U=re.analyzeSplitToContent(a,"="))==null?void 0:U[1])==null?void 0:q.split("||"))==null?void 0:X.map(Je=>{var _e,$a,wl,el;let Ne=Je;if(Ne!=null&&Ne.includes("@")){let Pl="@"+(($a=(_e=Ne==null?void 0:Ne.replace("@",yl))==null?void 0:_e.split(yl))==null?void 0:$a[1]);Ne=(el=(wl=Ne==null?void 0:Ne.replace("@",yl))==null?void 0:wl.split(yl))==null?void 0:el[0],Pl=ri(Pl),Re.push(Pl)}return{label:Ne==null?void 0:Ne.replaceAll("'",""),value:Ne==null?void 0:Ne.replaceAll("'","")}}),(Re==null?void 0:Re.length)>0&&(C="("+(Re==null?void 0:Re.join("||"))+")");let Ie=(ee=re.analyzeSplitToContent(a,"="))==null?void 0:ee[0];if(Ie!=null&&Ie.includes("@")){(Ie==null?void 0:Ie[(Ie==null?void 0:Ie.length)-1])==="="&&(Ie=Ie==null?void 0:Ie.slice(0,(Ie==null?void 0:Ie.length)-1));let Je=(pe=re.analyzeSplitToContent(Ie,"@"))==null?void 0:pe[1];Je="@"+Je,Je=ri(Je),C=C===""?Je:Je+","+C}}else b="Input",d=(N=(ue=(ze=a==null?void 0:a.replace("=",yl))==null?void 0:ze.split(yl))==null?void 0:ue[1])==null?void 0:N.replaceAll("'","");else if((G=(se=re.analyzeSplitToContent(a,"="))==null?void 0:se[1])!=null&&G.includes("||")){let Re=(ve=re.analyzeSplitToContent(a,"="))==null?void 0:ve[0];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&&Re.includes("@")){let _e=(ke=re.analyzeSplitToContent(Re,"@"))==null?void 0:ke[1];_e="@"+_e,C=ri(_e),r=(I=(Be=re.analyzeSplitToContent(Re,"@"))==null?void 0:Be[0])==null?void 0:I.slice(0,((he=(We=re.analyzeSplitToContent(Re,"@"))==null?void 0:We[0])==null?void 0:he.length)-1),g=(xe=(Oe=re.analyzeSplitToContent(Re,"@"))==null?void 0:Oe[0])==null?void 0:xe.slice(0,((ge=(oe=re.analyzeSplitToContent(Re,"@"))==null?void 0:oe[0])==null?void 0:ge.length)-1)}else r=Re,g=Re;let Ie=(ne=re.analyzeSplitToContent(a,"="))==null?void 0:ne[1];Ie=re.analyzeSplitToContent(Ie,")");let Je=Ie==null?void 0:Ie.filter(_e=>!(_e!=null&&_e.includes("If")));Je==null||Je.forEach(_e=>{(_e==null?void 0:_e[0])==="("&&(_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1)),i==null||i.push(_e==null?void 0:_e.split("||"))});let Ne=Ie==null?void 0:Ie.filter(_e=>_e==null?void 0:_e.includes("If"));Ne=Ne==null?void 0:Ne.map(_e=>((_e==null?void 0:_e[0])==="|"&&(_e==null?void 0:_e[1])==="|"&&(_e=_e==null?void 0:_e.slice(2,_e==null?void 0:_e.length)),(_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),_e)),o=Ne}else{let Re=a==null?void 0:a.split("=="),Ie=(we=Re==null?void 0:Re.filter(Je=>(Je==null?void 0:Je.includes("$"))&&(Je==null?void 0:Je[0])!=="{"))==null?void 0:we[0];if(Ie&&!(Ie!=null&&Ie.includes("&"))){let Je=(ya=re.analyzeSplitToContent(Ie,")"))==null?void 0:ya[((Ke=re.analyzeSplitToContent(Ie,")"))==null?void 0:Ke.length)-1],Ne=(Ge=Je==null?void 0:Je.replace("*",yl))==null?void 0:Ge.split(yl),_e=(Ne==null?void 0:Ne[0])===""?l==null?void 0:l.value:Ne==null?void 0:Ne[0];(_e==null?void 0:_e[0])==="("&&(_e=(V=re.analyzeSplitToContent(_e,")"))==null?void 0:V[1]),_e=(le=(F=_e==null?void 0:_e.replaceAll("{",""))==null?void 0:F.replaceAll("}",""))==null?void 0:le.replaceAll(Xi,""),(_e==null?void 0:_e[0])==="$"&&(_e=(fe=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:fe.replaceAll(":","/")),p=_e==null?void 0:_e.split("/");let $a=(ua=(be=Ne==null?void 0:Ne[1])==null?void 0:be.replace("{",yl))==null?void 0:ua.split(yl),wl=$a==null?void 0:$a[0];(wl==null?void 0:wl[(wl==null?void 0:wl.length)-1])===":"&&(wl=wl==null?void 0:wl.slice(0,(wl==null?void 0:wl.length)-1)),s=wl==null?void 0:wl.split(":"),u=(Ea=(va=(Pe=(ia=$a==null?void 0:$a[1])==null?void 0:ia.replace("}",yl))==null?void 0:Pe.split(yl))==null?void 0:va[0])==null?void 0:Ea.split(":");let el="";((Ae=re.analyzeSplitToContent(Ie,")"))==null?void 0:Ae.length)>1&&(el=(Fa=re.analyzeSplitToContent(Ie,")"))==null?void 0:Fa[0]),el&&el!==""&&((el==null?void 0:el[0])!=="@"&&(el="@"+el),C=ri(el))}if(Re!=null&&Re.some(Je=>Je==null?void 0:Je.includes("&"))){let Je=(Ta=Re==null?void 0:Re.filter($a=>$a==null?void 0:$a.includes("&")))==null?void 0:Ta[0];Je=(da=re.analyzeSplitToContent(Je,"&"))==null?void 0:da.map($a=>(($a==null?void 0:$a[($a==null?void 0:$a.length)-1])==="&"&&($a=$a==null?void 0:$a.slice(0,($a==null?void 0:$a.length)-1)),$a)),v=(He=(sa=(Ha=Je==null?void 0:Je[1])==null?void 0:Ha.replace("(",yl))==null?void 0:sa.split(yl))==null?void 0:He[0];let Ne=(ha=re.analyzeSplitToContent(Je==null?void 0:Je[1],")"))==null?void 0:ha[0];Ne=($e=(ea=Ne==null?void 0:Ne.replace("(",yl))==null?void 0:ea.split(yl))==null?void 0:$e[1],Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1),(Ne==null?void 0:Ne[0])==="{"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),(Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])==="}"&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),H=Ne==null?void 0:Ne.split(",");let _e=Je==null?void 0:Je[0];_e&&_e!==""&&((_e==null?void 0:_e[0])!=="@"&&(_e="@"+_e),T=ri(_e))}else if(!Ie&&((Fe=Re==null?void 0:Re.filter(Je=>(Je==null?void 0:Je[0])==="{"))==null?void 0:Fe.length)>0){let Je=Re==null?void 0:Re[(Re==null?void 0:Re.length)-1];Je=Je==null?void 0:Je.slice(1,(Je==null?void 0:Je.length)-1),Je=re.analyzeSplitToContent(Je,","),Je=Je==null?void 0:Je.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])===","&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne)),Je=Je==null?void 0:Je.map(Ne=>{var _e,$a,wl,el;if(Ne=Ne==null?void 0:Ne.replaceAll("$",""),Ne!=null&&Ne.includes("{")){let Pl="";Ne=Ne==null?void 0:Ne.replaceAll("{","");let bl=Ne==null?void 0:Ne.split("}");Pl=(($a=(_e=bl==null?void 0:bl[0])==null?void 0:_e.split(":"))==null?void 0:$a[0])+":"+(bl==null?void 0:bl[1]),Ne=Pl,Ne=Ne+":"}if(Ne!=null&&Ne.includes(Xi)){let Pl="",bl=Ne==null?void 0:Ne.split(Xi);Pl=((el=(wl=bl==null?void 0:bl[0])==null?void 0:wl.split(":"))==null?void 0:el[0])+":"+(bl==null?void 0:bl[1]),Ne=Pl,Ne=Ne+":"}return Ne=Ne==null?void 0:Ne.replaceAll(":","/"),Ne}),y=Je}else!((ie=Re==null?void 0:Re[1])!=null&&ie.includes("$"))&&((Ye=Re==null?void 0:Re[1])==null?void 0:Ye[0])!=="("&&u.push(Re==null?void 0:Re[1])}else r=(na=a==null?void 0:a.split("&"))==null?void 0:na[0],g=(fa=a==null?void 0:a.split("&"))==null?void 0:fa[0];return(n==null?void 0:n.length)===0&&(i==null?void 0:i.length)===0&&(p==null?void 0:p.length)===0&&b==="Select"&&(b="Input"),{label:r,prop:g,options:n,allContents:i,filterContents:o,menus:p,groups:s,words:u,align:"center",formType:b,filter:C,functionName:v,functionRelatedWords:H,calculatorFilter:T,relatedPages:y,value:d}},Ao=(a,l)=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X;let r=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((p=(o=(i=(n=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:n.replace(":",yl))==null?void 0:i.split(yl))==null?void 0:o[0])!=null&&p.includes(","))){let ee=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),pe=(s=ee==null?void 0:ee.replace(":",yl))==null?void 0:s.split(yl);if(((u=re.analyzeSplitToContent(pe==null?void 0:pe[1],"="))==null?void 0:u.length)===1){let ze=pe==null?void 0:pe[0],ue=[];(g=re.analyzeSplitToContent((b=pe==null?void 0:pe[1])==null?void 0:b.slice(1,((y=pe==null?void 0:pe[1])==null?void 0:y.length)-1),","))==null||g.forEach(N=>{var se,G;((se=re.analyzeSplitToContent(N,"="))==null?void 0:se.length)>1?((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)),ue=[...ue,...Ao(N,l)]):((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)),ue.push((G=Ao(N,l))==null?void 0:G[0]))}),r==null||r.push({label:ze,prop:ze,children:ue,align:"center"})}else{let ze=[];if(((d=re.analyzeSplitToContent(ee,"="))==null?void 0:d.length)>=2){let N=(C=re.analyzeSplitToContent(ee,"="))==null?void 0:C[1],se=(v=re.analyzeSplitToContent(N,"/"))==null?void 0:v.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])==="/"&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G));ze=se==null?void 0:se.map(G=>(G=Ri(G),G))}let ue=(S=(_=(D=(j=(T=(H=ee==null?void 0:ee.replace("{",yl))==null?void 0:H.split(yl))==null?void 0:T[1])==null?void 0:j.replace("}",yl))==null?void 0:D.split(yl))==null?void 0:_[0])==null?void 0:S.split(",");ue==null||ue.forEach((N,se)=>{(ze==null?void 0:ze.length)>0&&se===0?r==null||r.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:ze==null?void 0:ze.map(G=>{let ve={};return ue==null||ue.forEach((ke,Be)=>{ve[ke]=G==null?void 0:G[Be]}),ve}),options:ze==null?void 0:ze.map(G=>({label:G==null?void 0:G[0],value:G==null?void 0:G[0]})),mainKey:!0}):r==null||r.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((x=re.analyzeSplitToContent(a,"="))==null?void 0:x.length)===2&&((E=(k=re.analyzeSplitToContent(a,"="))==null?void 0:k[1])==null?void 0:E[0])==="["){let ee=[];if(((M=re.analyzeSplitToContent(a,"="))==null?void 0:M.length)>=2){let ze=(O=re.analyzeSplitToContent(a,"="))==null?void 0:O[1],ue=(J=(Q=re.analyzeSplitToContent(ze,"|"))==null?void 0:Q.filter(N=>N!=="|"))==null?void 0:J.map(N=>((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));ee=ue==null?void 0:ue.map(N=>(N=Ri(N),N))}let pe=(te=(ye=a==null?void 0:a.replace("}",yl))==null?void 0:ye.split(yl))==null?void 0:te[0];pe=(U=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:U.split(","),pe==null||pe.forEach((ze,ue)=>{(ee==null?void 0:ee.length)>0&&ue===0?r==null||r.push({label:ze,prop:ze,align:"center",formType:"Select",relatedContents:ee==null?void 0:ee.map(N=>{let se={};return pe==null||pe.forEach((G,ve)=>{se[G]=N==null?void 0:N[ve]}),se}),options:ee==null?void 0:ee.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):r==null||r.push({label:ze,prop:ze,align:"center"})})}else(q=re.analyzeSplitToContent(a,","))==null||q.forEach(ee=>{var pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea;if((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?void 0:ee[0])==="{"){let $e=re.analyzeSplitToContent(ee,"="),Fe=$e==null?void 0:$e[($e==null?void 0:$e.length)-1],ie=[],Ye=[],na=[],fa="",Re="",Ie=[],Je=[],Ne=(pe=Fe==null?void 0:Fe.replace("*",yl))==null?void 0:pe.split(yl),_e=(Ne==null?void 0:Ne[0])===""?l==null?void 0:l.value:Ne==null?void 0:Ne[0];_e=re.analyzeSplitToContent(_e,")");let $a="";if((_e==null?void 0:_e.length)>1&&((ze=_e==null?void 0:_e[0])==null?void 0:ze[0])!=="&"&&($a=_e==null?void 0:_e[0],($a==null?void 0:$a[0])!=="@"&&($a="@"+$a),Re=$a??""),_e=(ue=_e==null?void 0:_e.filter(ll=>(ll==null?void 0:ll[0])==="$"))==null?void 0:ue[0],((N=re.analyzeSplitToContent(_e,"}"))==null?void 0:N.length)>1&&((G=(se=re.analyzeSplitToContent(_e,"}"))==null?void 0:se[1])==null?void 0:G[0])==="("&&($a=(ve=re.analyzeSplitToContent(_e,"}"))==null?void 0:ve[1],($a==null?void 0:$a[0])!=="@"&&($a="@"+$a),Re!==""&&(Re=Re+","),Re=Re+$a),(ke=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1))!=null&&ke.includes("$")||(_e=(Be=re.analyzeSplitToContent(_e,"}"))==null?void 0:Be[0]),(_e==null?void 0:_e[0])==="$"&&(_e=(We=_e==null?void 0:_e.replace("{",""))==null?void 0:We.replace("}",":"),_e=(he=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:he.replaceAll(":","/")),_e!=null&&_e.includes("$")){let ll=(I=_e==null?void 0:_e.split("$"))==null?void 0:I[0];ll=(Oe=ll==null?void 0:ll.split("/"))==null?void 0:Oe[0],_e=ll+"/"+((oe=_e==null?void 0:_e.split("$"))==null?void 0:oe[1])+"/"}ie=(_e==null?void 0:_e.split("/"))??[];let wl=(xe=(ge=Ne==null?void 0:Ne[1])==null?void 0:ge.replace("{",yl))==null?void 0:xe.split(yl);if((Ke=(we=(ne=Ne==null?void 0:Ne[1])==null?void 0:ne.split("(@"))==null?void 0:we[0])!=null&&Ke.includes("&&")||(V=(Ge=(ya=Ne==null?void 0:Ne[1])==null?void 0:ya.split("@"))==null?void 0:Ge[0])!=null&&V.includes("&&")){let ll=(F=Ne==null?void 0:Ne[1])!=null&&F.includes("(@")?(be=(fe=(le=Ne==null?void 0:Ne[1])==null?void 0:le.split("(@"))==null?void 0:fe[0])==null?void 0:be.split("&&"):(Pe=(ia=(ua=Ne==null?void 0:Ne[1])==null?void 0:ua.split("@"))==null?void 0:ia[0])==null?void 0:Pe.split("&&");Ie=ll==null?void 0:ll.map(Ga=>{var Jl,Xl;return(Ga==null?void 0:Ga[0])==="*"&&(Ga=Ga==null?void 0:Ga.slice(1,Ga==null?void 0:Ga.length)),Ga=(Xl=(Jl=Ga==null?void 0:Ga.replace("{",yl))==null?void 0:Jl.split(yl))==null?void 0:Xl[0],(Ga==null?void 0:Ga[(Ga==null?void 0:Ga.length)-1])===":"&&(Ga=Ga==null?void 0:Ga.slice(0,(Ga==null?void 0:Ga.length)-1)),Ga=Ga==null?void 0:Ga.split(":"),Ga});let jl=[];ll==null||ll.forEach((Ga,Jl)=>{var Xl,ar;(Ga==null?void 0:Ga[0])==="*"&&(Ga=Ga==null?void 0:Ga.slice(1,Ga==null?void 0:Ga.length)),Ga=(ar=(Xl=Ga==null?void 0:Ga.replace("{",yl))==null?void 0:Xl.split(yl))==null?void 0:ar[1],(Ga==null?void 0:Ga[(Ga==null?void 0:Ga.length)-1])==="}"&&(Ga=Ga==null?void 0:Ga.slice(0,(Ga==null?void 0:Ga.length)-1)),Ga=Ga==null?void 0:Ga.split(","),jl.push(Jl===0?(Ga==null?void 0:Ga.length)-1:Ga==null?void 0:Ga.length),Je=[...Je,...Ga]}),jl=(va=re.prefixSum(jl))==null?void 0:va.map(Ga=>Ga==null?void 0:Ga.total),Ie=Ie==null?void 0:Ie.map((Ga,Jl)=>({number:jl==null?void 0:jl[Jl],contents:Ga}))}let el=wl==null?void 0:wl[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)),Ye=(el==null?void 0:el.split(":"))??[],na=((Ta=(Fa=(Ae=(Ea=wl==null?void 0:wl[1])==null?void 0:Ea.replace("}",yl))==null?void 0:Ae.split(yl))==null?void 0:Fa[0])==null?void 0:Ta.split(","))??[];let Pl=(Ha=$e==null?void 0:$e[0])==null?void 0:Ha.slice(1,((da=$e==null?void 0:$e[0])==null?void 0:da.length)-2);Re&&Re!==""&&(fa=ri(Re));let bl=(sa=re.analyzeSplitToContent(fa,","))==null?void 0:sa.map(ll=>((ll==null?void 0:ll[(ll==null?void 0:ll.length)-1])===","&&(ll=ll==null?void 0:ll.slice(0,(ll==null?void 0:ll.length)-1)),ll)),Hl=[];bl!=null&&bl.find(ll=>ll==null?void 0:ll.includes("@MainParam"))&&(bl=bl==null?void 0:bl.find(ll=>ll==null?void 0:ll.includes("@MainParam")),bl=(ha=(He=bl==null?void 0:bl.replace("=",yl))==null?void 0:He.split(yl))==null?void 0:ha[1],bl=bl==null?void 0:bl.slice(1,(bl==null?void 0:bl.length)-1),Hl=re.analyzeSplitToContent(bl,",")),(ea=Pl==null?void 0:Pl.split(","))==null||ea.forEach((ll,jl)=>{var Ga,Jl,Xl,ar,Sl,pr;if(((Ga=re.analyzeSplitToContent(ll,"@"))==null?void 0:Ga.length)>1){let ga=(Jl=re.analyzeSplitToContent(ll,"@"))==null?void 0:Jl[1];ga="@"+ga,fa=ri(ga),ll=(Xl=re.analyzeSplitToContent(ll,"@"))==null?void 0:Xl[0],(ll==null?void 0:ll[(ll==null?void 0:ll.length)-1])==="@"&&(ll=ll==null?void 0:ll.slice(0,(ll==null?void 0:ll.length)-1))}r.push({label:ll,prop:ll,align:"center",menus:ie,groups:(Ie==null?void 0:Ie.length)===0?Ye:(ar=Ie==null?void 0:Ie.find(ga=>(ga==null?void 0:ga.number)>=jl))==null?void 0:ar.contents,words:(Je==null?void 0:Je.length)===0?(Sl=na==null?void 0:na[jl])==null?void 0:Sl.split(":"):(pr=Je==null?void 0:Je[jl])==null?void 0:pr.split(":"),formType:(ie==null?void 0:ie.length)>0?"Select":"Input",mainKey:!!(jl===0||Hl!=null&&Hl.find(ga=>ga===ll)),filter:fa,isMainPath:(Ie==null?void 0:Ie.findIndex(ga=>(ga==null?void 0:ga.number)>=jl))===0})})}else r.push({label:ee,prop:ee,align:"center"})});else{let ee=(X=re.analyzeSplitToContent(a,","))==null?void 0:X.map(pe=>((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)),pe));ee==null||ee.forEach(pe=>{r.push(Bt(pe,l))})}return r},Bp=(a,l)=>{var p,s,u,y,b;let r=a;if(!a)return;let n="";((p=re.analyzeSplitToContent(a,"}"))==null?void 0:p.length)>1&&(r=(s=re.analyzeSplitToContent(a,"}"))==null?void 0:s[0],n=(u=re.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])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let i=[],o=[];return i.push({label:"排序",prop:"sort"}),i.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=re.analyzeSplitToContent(r,","))==null||y.forEach(g=>{var d;(g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),(g==null?void 0:g[0])==="{"?(d=Ao(g,l))==null||d.forEach(C=>{i.push(C)}):i.push(Bt(g,l))}),i!=null&&i.some(g=>{var d;return(d=g==null?void 0:g.prop)==null?void 0:d.includes("@")})&&(i=i==null?void 0:i.filter(g=>{var d;return!((d=g==null?void 0:g.prop)!=null&&d.includes("@"))})),n!==""&&((n==null?void 0:n[0])=="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),(b=re.analyzeSplitToContent(n,","))==null||b.forEach(g=>{var d;(g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),(g==null?void 0:g[0])==="{"?(d=Ao(g,l))==null||d.forEach(C=>{o.push(C)}):o.push(Bt(g,l))})),{columns:i,secondColumns:o}},vn=a=>{var l,r,n,i,o;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let p=(r=(l=a==null?void 0:a.replace("(",yl))==null?void 0:l.split(yl))==null?void 0:r[1],s=(i=(n=a==null?void 0:a.replace("(",yl))==null?void 0:n.split(yl))==null?void 0:i[0];return p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),p=(o=re.analyzeSplitToContent(p,","))==null?void 0:o.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)),s+u)),p=p==null?void 0:p.join(","),a!=null&&a.includes("@Quote")&&(p!=null&&p.includes("@QuoteType")||(p=p===""?p+"@QuoteType=Manual":p+",@QuoteType=Manual"),p!=null&&p.includes("@QuoteSonSync")||(p=p===""?p+"@QuoteSonSync=No":p+",@QuoteSonSync=No"),p!=null&&p.includes("@QuoteFatherSync")||(p=p===""?p+"@QuoteFatherSync=Yes":p+",@QuoteFatherSync=Yes")),p}},Cs=a=>{let l=a==null?void 0:a.map(r=>{var n,i;return{menus:r==null?void 0:r.menus,content:((n=r==null?void 0:r.menus)==null?void 0:n.join("/"))+yl+((i=r==null?void 0:r.groups)==null?void 0:i.join("/"))}});return l=l==null?void 0:l.filter(r=>{var n;return(r==null?void 0:r.menus)&&((n=r==null?void 0:r.menus)==null?void 0:n.length)>0}),l=l==null?void 0:l.map(r=>r==null?void 0:r.content),l=[...new Set(l)],l=l==null?void 0:l.map(r=>{var n,i;return{menus:(n=r==null?void 0:r.split(yl))==null?void 0:n[0],groups:((i=r==null?void 0:r.split(yl))==null?void 0:i[1])??[]}}),l},Ts=a=>{var r;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=(r=re.analyzeSplitToContent(l,","))==null?void 0:r.map(n=>((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==null?void 0:n[0])!=="@"&&(n="@"+n),(n==null?void 0:n[1])==="("&&(n=vn(n)),n)),l==null?void 0:l.join(",")},Tc=(a,l,r="")=>{var _,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e;let n=[],i=[],o=[],p="",s="",u="",y=[],b=[],g=[],d=[],C="";if(((_=a==null?void 0:a[0])==null?void 0:_[0])!=="*"&&((S=a==null?void 0:a[0])==null?void 0:S[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((k=a==null?void 0:a[0])==null?void 0:k[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&(p=(M=re.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:M[0],(p==null?void 0:p[0])!=="@"&&(p="@"+p),p=ri(p),u=(O=re.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:O[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 H=re.analyzeSplitToContent(a==null?void 0:a[0],":");if(n=(Q=H==null?void 0:H.filter(Fe=>(Fe==null?void 0:Fe[0])!=="{"&&(Fe==null?void 0:Fe[0])!=="["))==null?void 0:Q.join(""),s=(J=a==null?void 0:a[0])==null?void 0:J.replace(n,""),(n==null?void 0:n[0])==="("&&(n=""),C=(ye=H==null?void 0:H.filter(Fe=>(Fe==null?void 0:Fe[0])!=="["))==null?void 0:ye.join(""),C=(te=a==null?void 0:a[0])==null?void 0:te.replace(C,""),s=s==null?void 0:s.replace(C,""),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(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)),((U=re.analyzeSplitToContent(s,"@"))==null?void 0:U.length)>1&&(p=(q=re.analyzeSplitToContent(s,"@"))==null?void 0:q[1],(p==null?void 0:p[(p==null?void 0:p.length)-1])===":"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),p="@"+p,p=vn(p),s=(X=re.analyzeSplitToContent(s,"@"))==null?void 0:X[0],s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),((ee=re.analyzeSplitToContent(n,"@"))==null?void 0:ee.length)>1){p!==""&&(p=p+",");let Fe=(pe=re.analyzeSplitToContent(n,"@"))==null?void 0:pe[1];Fe="@"+Fe,Fe=vn(Fe),p=p+Fe,n=(ze=re.analyzeSplitToContent(n,"@"))==null?void 0:ze[0]}if((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=n===""?[]:n==null?void 0:n.split(":"),(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)),r!==""){let Fe=(ue=re.analyzeSplitToContent(r,")"))==null?void 0:ue[0],ie=re.analyzeSplitToContent(r,")");ie=ie==null?void 0:ie.filter((Re,Ie)=>Ie!==(ie==null?void 0:ie.length)-1),ie=ie==null?void 0:ie.join("");let Ye=(N=re.analyzeSplitToContent(r,"@"))==null?void 0:N[1];u=(G=(se=re.analyzeSplitToContent(r,"@"))==null?void 0:se[0])==null?void 0:G.replace(ie,""),(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 na="";if(na=re.analyzeSplitToContent(r,")"),na=na==null?void 0:na.filter((Re,Ie)=>Ie!==0&&Ie!==(na==null?void 0:na.length)-1),((ve=re.analyzeSplitToContent(r,"&"))==null?void 0:ve.length)>1&&(na==null?void 0:na.length)<2&&(Fe="",u="",na=re.analyzeSplitToContent(r,")")),na!=null&&na.some(Re=>(Re==null?void 0:Re[0])===":")){let Re=(ke=na==null?void 0:na.filter(Ie=>(Ie==null?void 0:Ie[0])===":"))==null?void 0:ke.join("");C=Re==null?void 0:Re.slice(1,Re==null?void 0:Re.length),na=na==null?void 0:na.filter(Ie=>(Ie==null?void 0:Ie[0])!==":")}(na==null?void 0:na.length)>0&&((Be=re.chunkArray(na))==null||Be.forEach(Re=>{var $a,wl,el,Pl,bl;let Ie="",Je=[],Ne="";(Re==null?void 0:Re.length)>1&&(Ne="@"+(Re==null?void 0:Re[0]),Ne=vn(Ne));let _e=(Re==null?void 0:Re.length)===1?Re==null?void 0:Re[0]:Re==null?void 0:Re[1];_e=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length),Ie=(wl=($a=_e==null?void 0:_e.replace("(",yl))==null?void 0:$a.split(yl))==null?void 0:wl[0],_e=(Pl=(el=_e==null?void 0:_e.replace("(",yl))==null?void 0:el.split(yl))==null?void 0:Pl[1],_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),Je=(bl=re.analyzeSplitToContent(_e,","))==null?void 0:bl.map(Hl=>((Hl==null?void 0:Hl[(Hl==null?void 0:Hl.length)-1])===","&&(Hl=Hl==null?void 0:Hl.slice(0,(Hl==null?void 0:Hl.length)-1)),Hl)),y.push({functionName:Ie,functionRelatedWords:Je,calculatorFilter:Ne})})),Fe=Ts(Fe),Ye=Ts(Ye);let fa=Fe??"";if(fa!==""&&(fa=fa+","),fa=fa+Ye,(fa==null?void 0:fa[(fa==null?void 0:fa.length)-1])===","&&(fa=fa==null?void 0:fa.slice(0,(fa==null?void 0:fa.length)-1)),fa!==""&&p!==""&&(p=p+","),p=p+fa,(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=(We=re.analyzeSplitToContent(u,":"))==null?void 0:We.filter((Re,Ie)=>{var Je;return!((Re==null?void 0:Re[0])==="{"&&Ie===((Je=re.analyzeSplitToContent(u,":"))==null?void 0:Je.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)),p!=null&&p.includes("@Sync")||(p=p===""?p+"@Sync=(Yes,Yes)":p+",@Sync=(Yes,Yes)"),u!=null&&u.includes("$")){let Re=(I=(he=u==null?void 0:u.replace("*",yl))==null?void 0:he.split(yl))==null?void 0:I[1],Ie=(oe=(Oe=u==null?void 0:u.replace("*",yl))==null?void 0:Oe.split(yl))==null?void 0:oe[0];Ie=Ie==null?void 0:Ie.split("$"),Ie=((xe=(ge=Ie==null?void 0:Ie[0])==null?void 0:ge.split(":"))==null?void 0:xe[0])+":"+(Ie==null?void 0:Ie[1])+":",u=Ie+"*"+Re}else u=(ne=u==null?void 0:u.replaceAll("{",""))==null?void 0:ne.replaceAll("}","");(u==null?void 0:u[0])===":"&&(C=u==null?void 0:u.slice(1,u==null?void 0:u.length),u="")}p!==""&&p&&(p="("+p+")"),p=u+p,((we=re.analyzeSplitToContent(s,"}"))==null?void 0:we.length)>1&&(s=(Ke=re.analyzeSplitToContent(s,"}"))==null?void 0:Ke.filter(Fe=>(Fe==null?void 0:Fe[0])!=="@"),s=s==null?void 0:s.join(""));let T=Bp(s,l);o=s===""?[]:(T==null?void 0:T.columns)??[],d=re.getColumnChild(o);let j=re.getColumnChild(o);o!=null&&o.some(Fe=>{var ie;return Array.isArray(Fe==null?void 0:Fe.children)&&((ie=Fe==null?void 0:Fe.children)==null?void 0:ie.length)>0})&&(o=[o]),i=C?Ri(C):[],!(i!=null&&i.every(Fe=>Array.isArray(Fe)))&&(i==null?void 0:i.length)>0&&(i=[i]),(i==null?void 0:i.length)>0&&(Array.isArray(i==null?void 0:i[0])&&((ya=i==null?void 0:i[0])!=null&&ya.every(Fe=>Array.isArray(Fe)))?i=i==null?void 0:i.map((Fe,ie)=>(Fe=Fe.map((Ye,na)=>(Ye.unshift("{}"),Ye.unshift((na+1).toString()),Ye)),Fe)):i=i==null?void 0:i.map((Fe,ie)=>(Fe.unshift("{}"),Fe.unshift((ie+1).toString()),Fe))),T!=null&&T.secondColumns&&((Ge=T==null?void 0:T.secondColumns)==null?void 0:Ge.length)>0&&((i==null?void 0:i.length)>0?i=i==null?void 0:i.map((Fe,ie)=>{var Ye,na;return Array.isArray(Fe==null?void 0:Fe[0])?Fe=Fe==null?void 0:Fe.map((fa,Re)=>{var Ie,Je;return fa.unshift((Je=(Ie=T==null?void 0:T.secondColumns)==null?void 0:Ie[Re])==null?void 0:Je.prop),fa}):Fe.unshift((na=(Ye=T==null?void 0:T.secondColumns)==null?void 0:Ye[ie])==null?void 0:na.prop),Fe}):i=(V=T==null?void 0:T.secondColumns)==null?void 0:V.map((Fe,ie)=>(Fe=[Fe==null?void 0:Fe.label],Fe.push(ie),Fe)),o.unshift({label:"",prop:"disabled",sortable:!1})),d=d==null?void 0:d.map(Fe=>{var ie,Ye;return{menus:Fe==null?void 0:Fe.menus,content:((ie=Fe==null?void 0:Fe.menus)==null?void 0:ie.join("/"))+yl+((Ye=Fe==null?void 0:Fe.groups)==null?void 0:Ye.join("/"))}});let D=[];if(((le=(F=p==null?void 0:p.replace("(",yl))==null?void 0:F.split(yl))==null?void 0:le[0])!==""&&(D=(be=(fe=p==null?void 0:p.replace("(",yl))==null?void 0:fe.split(yl))==null?void 0:be[0],D=[D],D=D==null?void 0:D.map(Fe=>{var Ye,na,fa;let ie=Fe==null?void 0:Fe.split("*");return{menus:(Ye=ie==null?void 0:ie[0])==null?void 0:Ye.split(":"),content:((na=ie==null?void 0:ie[0])==null?void 0:na.replaceAll(":","/"))+yl+((fa=ie==null?void 0:ie[1])==null?void 0:fa.replaceAll(":","/"))}}),d=[...d,...D]),d=d==null?void 0:d.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.menus)&&((ie=Fe==null?void 0:Fe.menus)==null?void 0:ie.length)>0}),d=d==null?void 0:d.map(Fe=>Fe==null?void 0:Fe.content),d=[...new Set(d)],d=d==null?void 0:d.map(Fe=>{var ie,Ye;return{menus:(ie=Fe==null?void 0:Fe.split(yl))==null?void 0:ie[0],groups:((Ye=Fe==null?void 0:Fe.split(yl))==null?void 0:Ye[1])??[]}}),b=j==null?void 0:j.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.filter)&&((ie=Fe==null?void 0:Fe.filter)==null?void 0:ie.includes("@Sync"))}),(b==null?void 0:b.length)>0&&(b=b==null?void 0:b.filter(Fe=>{var ie,Ye,na,fa;return(fa=(na=(Ye=(ie=re.analyzeSplitToContent(Fe==null?void 0:Fe.filter,","))==null?void 0:ie.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ye.split(","))==null?void 0:na[0])==null?void 0:fa.includes("Yes")}),b=Cs(b)),g=j==null?void 0:j.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.filter)&&((ie=Fe==null?void 0:Fe.filter)==null?void 0:ie.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(Fe=>{var ie,Ye,na,fa;return(fa=(na=(Ye=(ie=re.analyzeSplitToContent(Fe==null?void 0:Fe.filter,","))==null?void 0:ie.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ye.split(","))==null?void 0:na[1])==null?void 0:fa.includes("Yes")}),g=Cs(g)),p!==""&&(p!=null&&p.includes("@Sync"))&&(p==null?void 0:p[0])!=="("){let Fe=(ua=p==null?void 0:p.replace("(",yl))==null?void 0:ua.split(yl),ie=Fe==null?void 0:Fe[1];if(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1),ie=re.analyzeSplitToContent(ie,","),(va=(Pe=(ia=ie==null?void 0:ie.find(Ye=>Ye==null?void 0:Ye.includes("@Sync")))==null?void 0:ia.split(","))==null?void 0:Pe[0])!=null&&va.includes("Yes")){let Ye=Fe==null?void 0:Fe[0];Ye=[{menus:(Ae=(Ea=Ye==null?void 0:Ye.split("*"))==null?void 0:Ea[0])==null?void 0:Ae.replaceAll(":","/"),groups:((Ta=(Fa=Ye==null?void 0:Ye.split("*"))==null?void 0:Fa[1])==null?void 0:Ta.split(":"))??[]}],b=[...b,...Ye]}if((sa=(Ha=(da=ie==null?void 0:ie.find(Ye=>Ye==null?void 0:Ye.includes("@Sync")))==null?void 0:da.split(","))==null?void 0:Ha[1])!=null&&sa.includes("Yes")){let Ye=Fe==null?void 0:Fe[0];Ye=[{menus:(ha=(He=Ye==null?void 0:Ye.split("*"))==null?void 0:He[0])==null?void 0:ha.replaceAll(":","/"),groups:(($e=(ea=Ye==null?void 0:Ye.split("*"))==null?void 0:ea[1])==null?void 0:$e.split(":"))??[]}],g=[...g,...Ye]}}return{groupName:n,tableColumns:o,tableFilter:p,tableContents:i,columns:(T==null?void 0:T.secondColumns)??[],relatedQuotes:d,fatherSyncContents:b,sonSyncContents:g,calculatorFilters:y}},Bc=(a,l)=>(a=a==null?void 0:a.map((r,n)=>{var i,o,p,s;if(Array.isArray(r))r=r==null?void 0:r.map(u=>{var y,b,g,d;return u!=null&&u.isMainPath||(((y=u==null?void 0:u.children)==null?void 0:y.length)>0?u.children=Bc(u.children,l):((b=u==null?void 0:u.menus)==null?void 0:b.length)>0&&!((g=r==null?void 0:r[0])!=null&&g.isMainPath)&&(u.menus=(d=u.menus)==null?void 0:d.map((C,v)=>{var H,T;return((H=u.menus)==null?void 0:H.length)-1===v&&C===""&&(l==null?void 0:l.parentContent)+"/"!==((T=u.menus)==null?void 0:T.join("/"))&&(C=l==null?void 0:l.value),u}),u.bindMenus=u.menus)),u});else{if(n===0&&((i=r.menus)==null?void 0:i.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((o=r.menus)==null?void 0:o.length)>0&&!((p=a==null?void 0:a[0])!=null&&p.isMainPath)&&(r.menus=(s=r.menus)==null?void 0:s.map((u,y)=>{var b,g;return((b=r.menus)==null?void 0:b.length)-1===y&&u===""&&(l==null?void 0:l.parentContent)+"/"!==((g=r.menus)==null?void 0:g.join("/"))&&(u=l==null?void 0:l.value),u}),r.bindMenus=r.menus)}return r}),a),Dp=(a,l)=>(a=a==null?void 0:a.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Bc(r.contents,l)),r)),a),Dt=(a,l)=>{let r=a;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(n=>(n=Dt(n,l),n)):r=r==null?void 0:r.map(n=>{var i,o;return n!=null&&n.children&&((i=n==null?void 0:n.children)==null?void 0:i.length)>0?n.children=Dt(n==null?void 0:n.children,l):n!=null&&n.words&&((o=n==null?void 0:n.words)==null?void 0:o.length)>0&&(l!=null&&l.find(p=>{var s,u,y,b;return((b=(s=n==null?void 0:n.prop)==null?void 0:s.split("."))==null?void 0:b[((y=(u=n==null?void 0:n.prop)==null?void 0:u.split("."))==null?void 0:y.length)-1])===p}))&&(n.mainKey=!0),n}),r};let Ar="$R";const Np=R.useUnit(R.pinia),{selectTitle:xn}=R.storeToRefs(Np),Ap=R.useMenuState(R.pinia),{localFiles:zp}=R.storeToRefs(Ap),Mp=R.useLoginState(R.pinia),{loginUserInfo:xt}=R.storeToRefs(Mp),Mn=[{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:"@TextBackRGBA",value:"onTextBackRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@ColumnNum",value:"onColumnNum",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 mi=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(mi||{});const Ip=async a=>{var r,n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D;let l=re.analyzeSplitToContent((a==null?void 0:a.filter)??"",")");if((l==null?void 0:l.length)>1){let _=l==null?void 0:l[0];_=_==null?void 0:_.slice(1,(_==null?void 0:_.length)-1),_=(n=(r=_==null?void 0:_.replace("(",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1],_="("+((i=_==null?void 0:_.replaceAll("{",""))==null?void 0:i.replaceAll("}",""));let S=re.calculatorAndToOr(_),x=Object.keys(S==null?void 0:S[0]);if(_=S,((o=x==null?void 0:x[0])==null?void 0:o[0])==="$"){let k=(s=x==null?void 0:x[0])==null?void 0:s.slice(1,((p=x==null?void 0:x[0])==null?void 0:p.length)-1),E=(y=(u=k==null?void 0:k.split("*"))==null?void 0:u[0])==null?void 0:y.replaceAll(".","/"),M=(d=(g=(b=k==null?void 0:k.split("*"))==null?void 0:b[1])==null?void 0:g.split("."))==null?void 0:d[0],O=await qr(E,!1);O=(C=O==null?void 0:O.filter(U=>(U==null?void 0:U.name)===M))==null?void 0:C[0];let Q=(H=(v=O==null?void 0:O.compData)==null?void 0:v.find(U=>(U==null?void 0:U.key)==="tableContents"))==null?void 0:H.contents;_=_==null?void 0:_.map(U=>{var X,ee;let q={};for(let pe in U)if((pe==null?void 0:pe[0])==="$"){let ze=(ee=pe==null?void 0:pe.split("."))==null?void 0:ee[((X=pe==null?void 0:pe.split("."))==null?void 0:X.length)-1];q[ze]=U==null?void 0:U[pe]}else q[pe]=U==null?void 0:U[pe];return q});let J=(j=(T=O==null?void 0:O.compData)==null?void 0:T.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:j.contents;J=(D=re.getEqualChild(J))==null?void 0:D.filter(U=>(U==null?void 0:U.label)!=="操作");let te=re.tableToForm(Q,J);if(_==null||_.forEach(U=>{var q,X,ee,pe,ze;for(let ue in U)(U==null?void 0:U[ue])==="LoginUser"&&(U[ue]=((q=xt.value)==null?void 0:q.姓名)||((X=xt.value)==null?void 0:X.account)||((ee=xt.value)==null?void 0:ee.账号)),!((pe=te==null?void 0:te[0])!=null&&pe.find(N=>{var se;return(N==null?void 0:N.key)===ue||((se=N==null?void 0:N.key)==null?void 0:se.includes(ue))}))&&!(te!=null&&te.find(N=>{var se;return(N==null?void 0:N.key)===ue||((se=N==null?void 0:N.key)==null?void 0:se.includes(ue))}))||(((ze=U[ue])==null?void 0:ze[0])!=="!"?te=te==null?void 0:te.filter(N=>{var se,G;return((se=N==null?void 0:N.find(ve=>{var ke;return(ve==null?void 0:ve.key)===ue||((ke=ve==null?void 0:ve.key)==null?void 0:ke.includes(ue))}))==null?void 0:se.value)===U[ue]||Array.isArray(U==null?void 0:U[ue])&&((G=U==null?void 0:U[ue])==null?void 0:G.find(ve=>{var ke;return((ke=N==null?void 0:N.find(Be=>{var We;return(Be==null?void 0:Be.key)===ue||((We=Be==null?void 0:Be.key)==null?void 0:We.includes(ue))}))==null?void 0:ke.value)===ve}))}):te=te==null?void 0:te.filter(N=>{var se;return((se=N==null?void 0:N.find(G=>{var ve;return(G==null?void 0:G.key)===ue||((ve=G==null?void 0:G.key)==null?void 0:ve.includes(ue))}))==null?void 0:se.value)!==U[ue]}))}),(te==null?void 0:te.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},Op=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:"textBackRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Lp=a=>{var l,r,n,i,o;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let p=a==null?void 0:a.contents,s=a==null?void 0:a.filter;(s==null?void 0:s[0])==="("&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(l=re.analyzeSplitToContent(s,","))==null?void 0:l.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let u=(s==null?void 0:s[2])??"Center",y=(s==null?void 0:s[0])??"Picture";s=s==null?void 0:s[1],(s==null?void 0:s[0])==="("&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(r=re.analyzeSplitToContent(s,","))==null?void 0:r.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let b=(o=(i=(n=zp.value)==null?void 0:n.filter(g=>{var d;return(g==null?void 0:g.path)===((d=a==null?void 0:a.groupName)==null?void 0:d[0])}))==null?void 0:i[0])==null?void 0:o.children;return b=(b==null?void 0:b.filter(g=>s==null?void 0:s.find(d=>d===(g==null?void 0:g.name))))??[],(s==null?void 0:s.length)>0&&(b==null?void 0:b.length)===0&&(s==null||s.forEach(g=>{b.push({url:"file:///"+(g==null?void 0:g.replaceAll("\\","/"))})})),b[0]={...b==null?void 0:b[0],position:u,fileType:y},p.push({key:"backGround",contents:b}),p}return a==null?void 0:a.contents},Rp=a=>{const l=Nc(a==null?void 0:a.filter);return l?ff(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},$p=a=>{let l=parseInt(a==null?void 0:a.filter);l=1/l;let r=a==null?void 0:a.contents;return r.push({key:"rowPosition",contents:l}),r},Vp=a=>{const l=Nc(a==null?void 0:a.filter);if(!l)return a==null?void 0:a.contents;let r=a==null?void 0:a.contents;return r.push({key:"numPosition",contents:l}),r},Fp=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 r=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(r)?a==null?void 0:a.filter:r}),l}return a==null?void 0:a.contents},Pp=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},Hp=a=>{var r;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(n=>{var i;return(n==null?void 0:n.key)==="tableContents"&&(n.contents=(i=n.contents)==null?void 0:i.slice(0,parseInt(a==null?void 0:a.filter))),n})},jp=async a=>{var l,r,n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,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=re.shuffle(X.contents)),X));if((a==null?void 0:a.filter)==="Auto"){let q=(n=(r=a==null?void 0:a.contents)==null?void 0:r.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:n.contents;Array.isArray(q==null?void 0:q[0])&&(q=q==null?void 0:q[0]),q=re.getColumnChild(q);let X=q==null?void 0:q.filter(ve=>(ve==null?void 0:ve.filter)&&(ve==null?void 0:ve.filter)!==""),ee=new Map,pe=[];X==null||X.forEach(ve=>{var ke,Be;ee.get((ke=ve==null?void 0:ve.menus)==null?void 0:ke.join("/"))||(ee.set((Be=ve==null?void 0:ve.menus)==null?void 0:Be.join("/"),ve),pe.push(ve))});let ze=(o=(i=xn==null?void 0:xn.value)==null?void 0:i.find(ve=>(ve==null?void 0:ve.condition)==="child"))==null?void 0:o.value,ue=pe==null?void 0:pe.map(ve=>{var ke,Be,We;return ve=(ke=ve==null?void 0:ve.menus)==null?void 0:ke.join("/"),(ve==null?void 0:ve[(ve==null?void 0:ve.length)-1])==="/"&&((We=(Be=xn==null?void 0:xn.value)==null?void 0:Be.find(he=>(he==null?void 0:he.condition)==="child"))==null?void 0:We.parentContent)+"/"!==ve?ve=ve+ze:(ve==null?void 0:ve[(ve==null?void 0:ve.length)-1])==="/"&&(ve=ve==null?void 0:ve.slice(0,(ve==null?void 0:ve.length)-1)),ve}),N=pe==null?void 0:pe.map(ve=>ve==null?void 0:ve.groups),se=ue==null?void 0:ue.map(async ve=>{let ke=await qr(ve,!1);return{path:ve,contents:ke}});se=await Promise.all(se);let G=se==null?void 0:se.map((ve,ke)=>{var We,he,I,Oe,oe,ge,xe;let Be=(We=ve==null?void 0:ve.contents)==null?void 0:We.filter(ne=>{var we,Ke;return(ne==null?void 0:ne.name)===((Ke=N==null?void 0:N[ke])==null?void 0:Ke[((we=N==null?void 0:N[ke])==null?void 0:we.length)-1])});return Be=(Oe=(I=(he=Be==null?void 0:Be[0])==null?void 0:he.compData)==null?void 0:I.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:Oe.contents,(ve==null?void 0:ve.path)===((ge=(oe=xn==null?void 0:xn.value)==null?void 0:oe.find(ne=>(ne==null?void 0:ne.condition)==="child"))==null?void 0:ge.parentContent)&&(Be=((xe=Be==null?void 0:Be.map(ne=>{for(let we in ne)if(ne[we]===ze)return ne}))==null?void 0:xe.filter(ne=>ne))??[]),Be??[]});if(G=G==null?void 0:G.map(ve=>(ve=ve==null?void 0:ve.map(ke=>{var We;let Be={};for(let he in ke)if(X!=null&&X.find(I=>{var Oe,oe;return((oe=(Oe=I==null?void 0:I.words)==null?void 0:Oe[0])==null?void 0:oe.replaceAll("'",""))===he})){let I=(We=X==null?void 0:X.find(Oe=>{var oe,ge;return((ge=(oe=Oe==null?void 0:Oe.words)==null?void 0:oe[0])==null?void 0:ge.replaceAll("'",""))===he}))==null?void 0:We.prop;Be[I]=ke==null?void 0:ke[he]}return Be}),ve)),G=re.cartesianProduct(G),Array.isArray(G==null?void 0:G[0])&&(G=G==null?void 0:G[0]),(G==null?void 0:G.length)>0&&((g=(s=(p=X==null?void 0:X[0])==null?void 0:p.menus)==null?void 0:s.join("/"))==null?void 0:g[((b=(y=(u=X==null?void 0:X[0])==null?void 0:u.menus)==null?void 0:y.join("/"))==null?void 0:b.length)-1])==="/")return(d=a==null?void 0:a.contents)==null?void 0:d.map(ke=>{var Be;return(ke==null?void 0:ke.key)==="tableContents"&&(G==null?void 0:G.length)>0&&(ke.contents=((Be=ke.contents)==null?void 0:Be.length)>0?ke.contents:G),ke})}if((a==null?void 0:a.filter)==="Manual"){let q=[],X=[],ee=(v=(C=a==null?void 0:a.contents)==null?void 0:C.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:v.contents;(ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===")"?ee=(T=(H=ee==null?void 0:ee.replace("(",Ar))==null?void 0:H.split(Ar))==null?void 0:T[0]:ee="",ee!==""&&(q=((D=(j=ee==null?void 0:ee.split("*"))==null?void 0:j[0])==null?void 0:D.split(":"))??[],X=((E=(k=(x=(S=(_=ee==null?void 0:ee.split("*"))==null?void 0:_[1])==null?void 0:S.replace("{",Ar))==null?void 0:x.split(Ar))==null?void 0:k[0])==null?void 0:E.split(":"))??[]);let pe=(O=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:O.contents;pe=(J=(Q=pe==null?void 0:pe.replace("(",Ar))==null?void 0:Q.split(Ar))==null?void 0:J[1],pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1);let ze=(ye=a==null?void 0:a.contents)==null?void 0:ye.map(N=>{var se,G,ve,ke,Be,We,he,I,Oe;return(N==null?void 0:N.key)==="header"&&((se=N==null?void 0:N.contents)!=null&&se.every(oe=>(oe==null?void 0:oe.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((G=N==null?void 0:N.contents)==null?void 0:G[0])?N.contents=(ve=N==null?void 0:N.contents)==null?void 0:ve.map((oe,ge)=>{var xe,ne,we;return oe!=null&&oe.isMainPath||(ge===0?(oe.mainKey=!0,oe.formType="Select",oe.bindMenus=q,oe.groups=((xe=oe.groups)==null?void 0:xe.length)===0?X:oe.groups,oe.words=((ne=oe.words)==null?void 0:ne.length)===0?[oe==null?void 0:oe.prop]:oe.words,oe.filter=pe,(!(oe!=null&&oe.menus)||((we=oe==null?void 0:oe.menus)==null?void 0:we.length)===0)&&(oe.menus=q)):(oe.mainKey=!1,oe.bindMenus=q)),oe}):Array.isArray((ke=N==null?void 0:N.contents)==null?void 0:ke[0])&&((he=(We=(Be=N==null?void 0:N.contents)==null?void 0:Be[0])==null?void 0:We.filter(()=>(q==null?void 0:q.length)>0))==null?void 0:he.length)>0&&(N.contents[0]=(Oe=(I=N==null?void 0:N.contents)==null?void 0:I[0])==null?void 0:Oe.map((oe,ge)=>{var xe,ne,we;return oe!=null&&oe.isMainPath||(ge===0?(oe.mainKey=!0,oe.formType="Select",oe.bindMenus=q,oe.groups=((xe=oe.groups)==null?void 0:xe.length)===0?X:oe.groups,oe.words=((ne=oe.words)==null?void 0:ne.length)===0?[oe==null?void 0:oe.prop]:oe.words,oe.filter=pe,(!(oe!=null&&oe.menus)||Array.isArray(oe==null?void 0:oe.menus)&&((we=oe==null?void 0:oe.menus)==null?void 0:we.length)===0)&&(q==null?void 0:q.length)>0&&(oe.menus=q)):(oe.mainKey=!1,oe.bindMenus=q)),oe}))),N}),ue=(te=ze==null?void 0:ze.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:te.contents;if(Array.isArray(ue==null?void 0:ue[0])&&(ue=ue==null?void 0:ue[0]),ue=re.getColumnChild(ue),ue!=null&&ue.some(N=>{var se,G;return((G=N==null?void 0:N.menus)==null?void 0:G[((se=N==null?void 0:N.menus)==null?void 0:se.length)-1])===""})){let N=(U=xn==null?void 0:xn.value)==null?void 0:U.find(se=>(se==null?void 0:se.condition)==="child");ze=Dp(ze,N)}return ze}if((a==null?void 0:a.filter)==="Chart"){let q=a==null?void 0:a.contents;return q.push({key:"newType",contents:"Chart"}),q}if((a==null?void 0:a.filter)==="Carousel"){let q=a==null?void 0:a.contents;return q.push({key:"newType",contents:"Carousel"}),q}return a==null?void 0:a.contents},Up=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}if((a==null?void 0:a.filter)==="Frameless"){let l=a==null?void 0:a.contents;return l.push({key:"TableType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},qp=a=>{var n,i,o,p,s,u,y,b,g,d,C,v;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((i=(n=l==null?void 0:l.replace(":",Ar))==null?void 0:n.split(Ar))==null?void 0:i[1])),l=(o=l==null?void 0:l.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(s=(p=l==null?void 0:l.split("="))==null?void 0:p[1])!=null&&s.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let H=(u=l==null?void 0:l.split("="))==null?void 0:u[0],T=(y=l==null?void 0:l.split("="))==null?void 0:y[1];(b=T==null?void 0:T.slice(1,T==null?void 0:T.length))!=null&&b.includes("$")&&(T=(C=(d=(g=xn==null?void 0:xn.value)==null?void 0:g.filter(j=>(j==null?void 0:j.condition)==="child"))==null?void 0:d[0])==null?void 0:C.value),l=H+"="+T}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 r=re.calculatorAndToOr(l);if((r==null?void 0:r.length)>0){let H=[];return r==null||r.forEach(j=>{let D={};for(let _ in j){let S=_;S!=null&&S.includes("[")||(D[S]=j[_])}H.push(D)}),(v=a==null?void 0:a.contents)==null?void 0:v.map(j=>{var _,S,x;let D=(S=(_=a==null?void 0:a.contents)==null?void 0:_.find(k=>(k==null?void 0:k.key)==="header"))==null?void 0:S.contents;if(D=(x=re.getEqualChild(D))==null?void 0:x.filter(k=>(k==null?void 0:k.label)!=="操作"),(j==null?void 0:j.key)==="tableContents"){let E=re.tableToForm(j==null?void 0:j.contents,D);H==null||H.forEach(M=>{var O,Q;for(let J in M)!((O=E==null?void 0:E[0])!=null&&O.find(ye=>{var te;return(ye==null?void 0:ye.key)===J||((te=ye==null?void 0:ye.key)==null?void 0:te.includes(J))}))&&!(E!=null&&E.find(ye=>{var te;return(ye==null?void 0:ye.key)===J||((te=ye==null?void 0:ye.key)==null?void 0:te.includes(J))}))||(((Q=M[J])==null?void 0:Q[0])!=="!"?E=E==null?void 0:E.filter(ye=>{var te,U;return((te=ye==null?void 0:ye.find(q=>{var X;return(q==null?void 0:q.key)===J||((X=q==null?void 0:q.key)==null?void 0:X.includes(J))}))==null?void 0:te.value)===M[J]||Array.isArray(M==null?void 0:M[J])&&((U=M==null?void 0:M[J])==null?void 0:U.find(q=>{var X;return((X=ye==null?void 0:ye.find(ee=>{var pe;return(ee==null?void 0:ee.key)===J||((pe=ee==null?void 0:ee.key)==null?void 0:pe.includes(J))}))==null?void 0:X.value)===q}))}):E=E==null?void 0:E.filter(ye=>{var te;return((te=ye==null?void 0:ye.find(U=>{var q;return(U==null?void 0:U.key)===J||((q=U==null?void 0:U.key)==null?void 0:q.includes(J))}))==null?void 0:te.value)!==(M[J]==="!"?"":M==null?void 0:M[J])}))}),(E==null?void 0:E.length)===0?j.contents=[]:j.contents=E==null?void 0:E.map(M=>{let O={};return M==null||M.forEach(Q=>{O[Q==null?void 0:Q.key]=Q==null?void 0:Q.value}),O})}return j})}return a==null?void 0:a.contents},Wp=a=>a==null?void 0:a.contents,Gp=a=>a==null?void 0:a.contents,Kp=a=>{var l,r,n,i;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let o=(n=(r=a==null?void 0:a.filter)==null?void 0:r.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:n.split(",");return(i=a==null?void 0:a.contents)==null?void 0:i.map(s=>((s==null?void 0:s.key)==="header"&&(s.contents=Dt(s.contents,o)),s))}return a==null?void 0:a.contents},Yp=a=>{var r,n,i,o,p;let l=(a==null?void 0:a.filter)??"";if(l!==""){let s=(n=(r=l==null?void 0:l.replace("(",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1];s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(i=re.analyzeSplitToContent(s,","))==null?void 0:i.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let u=s==null?void 0:s[0];(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1));let y=(s==null?void 0:s[1])??"Up",b=(o=a==null?void 0:a.contents)==null?void 0:o.map(g=>{var d,C;if(y==="Up"){if((g==null?void 0:g.key)==="extraButton"){let v=(d=u==null?void 0:u.split(","))==null?void 0:d.map(H=>({label:H,prop:H}));g.contents=[...v??[],...g.contents]}}else if(y==="Line"&&(g==null?void 0:g.key)==="rowButton"){let v=(C=u==null?void 0:u.split(","))==null?void 0:C.map(H=>({label:H,prop:H}));g.contents=[...v??[],...g.contents]}return g});if(y==="Bottom"||y==="Down"){let g=(p=u==null?void 0:u.split(","))==null?void 0:p.map(d=>({label:d,prop:d}));b.push({key:"bottomButton",contents:g})}return b}return a==null?void 0:a.contents},Jp=a=>a==null?void 0:a.contents,Xp=a=>{var r;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!==""?(r=a==null?void 0:a.contents)==null?void 0:r.map(i=>{var o;return(i==null?void 0:i.key)==="rowButton"&&(i.contents=(o=l==null?void 0:l.split(","))==null?void 0:o.map(p=>({label:p,prop:p}))),i}):a==null?void 0:a.contents},Zp=a=>{var r;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 n=a==null?void 0:a.contents,i=(r=l==null?void 0:l.split(","))==null?void 0:r.map(o=>({label:o,prop:o}));return n.push({key:"bottomButton",contents:i}),n}return a==null?void 0:a.contents},Qp=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(r=>{var n;return(r==null?void 0:r.key)==="formContent"&&(r.contents=(n=r.contents)==null?void 0:n.map(i=>(i.isNoClick=!0,i))),r}),l!=null&&l.find(r=>(r==null?void 0:r.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(r=>(r==null?void 0:r.key)!=="extraButton"&&(r==null?void 0:r.key)!=="rowButton")),l}return a==null?void 0:a.contents},ef=a=>{var l;if(a!=null&&a.filter){const r=parseInt(a==null?void 0:a.filter);return!r||Number.isNaN(r)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var o;return(i==null?void 0:i.key)==="formContent"&&(i.contents=(o=i.contents)==null?void 0:o.map(p=>(p.width=r,p))),i})}return a==null?void 0:a.contents},af=a=>{var l,r,n,i;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const o=parseInt(a==null?void 0:a.filter);return!o||Number.isNaN(o)?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="formContent"&&(s.contents=(u=s.contents)==null?void 0:u.map(y=>(y.width=o,y))),s})}if(((n=a==null?void 0:a.filter)==null?void 0:n[0])==="["){let o=Ri(a==null?void 0:a.filter),p=Array.isArray(o)?o.map(u=>parseInt(u)).filter(u=>!!u&&!Number.isNaN(u)):[];return p.length?(i=a==null?void 0:a.contents)==null?void 0:i.map(u=>{if((u==null?void 0:u.key)==="formContent"){const y=u.contents??[];u.contents=y.map((b,g)=>{const d=g+1;let C=0,v=0;for(let T=0;T<p.length;T++){if(v+=p[T],d<=v){C=T;break}T===p.length-1&&(C=p.length-1)}const H=p[C]||p[p.length-1]||1;return b.width=H,b})}return u}):a==null?void 0:a.contents}return a==null?void 0:a.contents},lf=a=>{var l;if((a==null?void 0:a.filter)!==""){let 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=r==null?void 0:r.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var o,p,s;return(i==null?void 0:i.key)==="header"&&(Array.isArray((o=i==null?void 0:i.contents)==null?void 0:o[0])?i.contents[0]=(s=i.contents[0])==null?void 0:s.map(u=>(r!=null&&r.find(y=>y===(u==null?void 0:u.prop))&&(u.fixed="left"),u)):i.contents=(p=i.contents)==null?void 0:p.map(u=>(r!=null&&r.find(y=>y===(u==null?void 0:u.prop))&&(u.fixed="left"),u))),i})}return a==null?void 0:a.contents},rf=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const n=o=>(r!=null&&r.find(p=>p===(o==null?void 0:o.prop))&&(o.required=!0),o!=null&&o.children&&Array.isArray(o.children)&&(o.children=o.children.map(p=>n(p))),o);return(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var p,s,u;return(o==null?void 0:o.key)==="header"&&(Array.isArray((p=o==null?void 0:o.contents)==null?void 0:p[0])?o.contents[0]=(u=o.contents[0])==null?void 0:u.map(y=>n(y)):o.contents=(s=o.contents)==null?void 0:s.map(y=>n(y))),o})}return a==null?void 0:a.contents},nf=async a=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_;const l=R.useUnit(R.pinia),{chooseTitle:r}=R.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let S=await qr(((i=(n=r==null?void 0:r.value)==null?void 0:n[0])==null?void 0:i.parentContent)??((p=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:p.relatedContent),!1),x=(u=(s=r==null?void 0:r.value)==null?void 0:s[0])==null?void 0:u.value;(b=(y=S==null?void 0:S[0])==null?void 0:y.compData)!=null&&b.find(O=>(O==null?void 0:O.key)==="header")?S=(g=S==null?void 0:S[0])==null?void 0:g.compData:S=(C=(d=S==null?void 0:S.filter(O=>{var Q;return(Q=O==null?void 0:O.compData)==null?void 0:Q.find(J=>(J==null?void 0:J.key)==="header")}))==null?void 0:d[0])==null?void 0:C.compData;let k=(v=S==null?void 0:S.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:v.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((H=k==null?void 0:k.find(O=>O==null?void 0:O.isMainKey))==null?void 0:H.prop)??((T=k==null?void 0:k[0])==null?void 0:T.prop);let E=(D=(j=S==null?void 0:S.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:j.contents)==null?void 0:D.find(O=>(O==null?void 0:O[k])===x);return(_=a==null?void 0:a.contents)==null?void 0:_.map(O=>{var Q;return(O==null?void 0:O.key)==="formContent"&&(O.contents=(Q=O.contents)==null?void 0:Q.map(J=>(J.value=E==null?void 0:E[J==null?void 0:J.prop],J))),O})}return a==null?void 0:a.contents},of=a=>{var l,r,n,i,o;if((l=a==null?void 0:a.extra)!=null&&l.row){let p=a==null?void 0:a.filter;if(p!=null&&p.includes("*")&&(p="({"+((n=(r=p==null?void 0:p.replace("{",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1])),p=(i=p==null?void 0:p.replaceAll("{",""))==null?void 0:i.replaceAll("}",""),(p==null?void 0:p[0])!=="("&&(p="("+p+")"),p.slice(1,(p==null?void 0:p.length)-1)==="undefined")return a==null?void 0:a.contents;let s=re.calculatorAndToOr(p),u=s==null?void 0:s[0],y=(o=a==null?void 0:a.extra)==null?void 0:o.row,b=[];for(let g in u)(u==null?void 0:u[g])===(y==null?void 0:y[g])?b.push(!0):b.push(!1);return b!=null&&b.every(g=>g===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},tf=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},sf=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},cf=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},uf=a=>{var l;if(a!=null&&a.filter){let r=a==null?void 0:a.contents,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=(l=re.analyzeSplitToContent(n,","))==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)),r.push({key:"stepName",contents:n}),r}return a==null?void 0:a.contents},df=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},Dc={onNumSlice:Hp,onRandomContents:jp,onConditionContents:qp,onFatherPaceContents:Wp,onPaceContents:Gp,onMainTagContents:Kp,onButtonContents:Yp,onPamButtonContents:Jp,onRowButtonContents:Xp,onRelated:nf,onRowNum:af,onFixRow:lf,onReqItem:rf,onBottomButtonContents:Zp,onConditionContent:of,onTabs:tf,onSinChoice:sf,onTextSize:Fp,onTextRGBA:Pp,onTextBackRGBA:Op,onPosition:Rp,onColumnNum:$p,onSize:Vp,onShowType:cf,onStepName:uf,onStep:df,onInterfaceTypeContents:Up,onBackGround:Lp,onMaxColumn:ef,onEditRead:Qp,onShowHide:Ip},pf=async(a,l,r="")=>{var p,s,u,y,b,g,d,C,v,H,T,j;let n="";if(((p=a==null?void 0:a.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:p.contents)!==""&&(n=(s=a==null?void 0:a.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:s.contents),n===""||!n)return a;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(y=(u=n==null?void 0:n.replace("(",Ar))==null?void 0:u.split(Ar))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let i=(b=re.analyzeSplitToContent(n,","))==null?void 0:b.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D!=null&&D.includes("(")||(D=D==null?void 0:D.replaceAll(":","=")),D)),o=a;for(let D in i){let _,S="";_=(C=(d=(g=i==null?void 0:i[D])==null?void 0:g.replace("=",Ar))==null?void 0:d.split(Ar))==null?void 0:C[0],S=(T=(H=(v=i==null?void 0:i[D])==null?void 0:v.replace("=",Ar))==null?void 0:H.split(Ar))==null?void 0:T[1];let x=(j=Mn==null?void 0:Mn.find(k=>(k==null?void 0:k.key)===_))==null?void 0:j.value;if(x){const k=Dc[x];o=await k({contents:o,filter:S,extra:l,groupName:r})}}return o},Po=async(a,l,r="")=>{var s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q;let n="";if(((s=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:s.contents)!==""&&(n=(u=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:u.contents),n===""||!n)return a;(n==null?void 0:n[0])===","&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(b=(y=n==null?void 0:n.replace("(",Ar))==null?void 0:y.split(Ar))==null?void 0:b[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let i=(g=re.analyzeSplitToContent(n,","))==null?void 0:g.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J!=null&&J.includes("(")||(J=J==null?void 0:J.replaceAll(":","=")),J)),o=a,p=new Map;i==null||i.forEach(J=>{var te,U,q;let ye=(te=J==null?void 0:J.split("="))==null?void 0:te[0];if(ye==="@MainParam"&&p.get(ye)){let X=p.get(ye);X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1);let ee=(q=(U=J==null?void 0:J.replace("{",Ar))==null?void 0:U.split(Ar))==null?void 0:q[1];ee=X+","+ee,p.set(ye,ee)}else ye==="@Button"&&p.get(ye)?p.set(J,J):p.set(ye,J)}),i=Array.from(p.values()),i=i==null?void 0:i.sort((J,ye)=>{var te,U;return((te=Mn==null?void 0:Mn.find(q=>ye==null?void 0:ye.includes(q==null?void 0:q.key)))==null?void 0:te.order)-((U=Mn==null?void 0:Mn.find(q=>J==null?void 0:J.includes(q==null?void 0:q.key)))==null?void 0:U.order)});for(let J in i){let ye,te="";(d=i==null?void 0:i[J])!=null&&d.includes("(")&&((C=i==null?void 0:i[J])!=null&&C.includes("@If"))?(ye=(T=(H=(v=i==null?void 0:i[J])==null?void 0:v.replace("(",Ar))==null?void 0:H.split(Ar))==null?void 0:T[0],te="("+((_=(D=(j=i==null?void 0:i[J])==null?void 0:j.replace("(",Ar))==null?void 0:D.split(Ar))==null?void 0:_[1])):(ye=(k=(x=(S=i==null?void 0:i[J])==null?void 0:S.replace("=",Ar))==null?void 0:x.split(Ar))==null?void 0:k[0],te=(O=(M=(E=i==null?void 0:i[J])==null?void 0:E.replace("=",Ar))==null?void 0:M.split(Ar))==null?void 0:O[1]);let U=(Q=Mn==null?void 0:Mn.find(q=>(q==null?void 0:q.key)===ye))==null?void 0:Q.value;if(U){const q=Dc[U];o=await q({contents:o,filter:te,extra:l,groupName:r})}}return o},Nc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const r=l.slice(1,-1).split(",").map(n=>Number(n.trim()));return r.length<2||r.some(n=>Number.isNaN(n))?null:[r[0],r[1]]},ff=(a,l)=>{var H,T,j,D,_;const r=Array.isArray(a)?a:[],n=r.find(S=>(S==null?void 0:S.key)==="formContent"),i=Array.isArray(n==null?void 0:n.contents)?n.contents:[],o=((H=r.find(S=>(S==null?void 0:S.key)==="_gridLayoutMeta"))==null?void 0:H.contents)??{},p=(i==null?void 0:i[0])??{};let s=((T=l==null?void 0:l.position)==null?void 0:T[0])??(o==null?void 0:o._positionStartRow)??(p==null?void 0:p._positionStartRow),u=((j=l==null?void 0:l.position)==null?void 0:j[1])??(o==null?void 0:o._positionRowSpan)??(p==null?void 0:p._positionRowSpan);(!s||Number.isNaN(s)||s<1)&&(s=1),(!u||Number.isNaN(u)||u<1)&&(u=1);let y=((D=l==null?void 0:l.size)==null?void 0:D[0])??(o==null?void 0:o._sizeStart)??(p==null?void 0:p._sizeStart),b=((_=l==null?void 0:l.size)==null?void 0:_[1])??(o==null?void 0:o._sizeEnd)??(p==null?void 0:p._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(b===void 0||Number.isNaN(b))&&(b=1),y=Math.max(0,Math.min(1,y)),b=Math.max(0,Math.min(1,b)),b<=y&&(y=0,b=1);const g=b-y,d=Math.max(1,Math.round(1/g));let C=r.map(S=>{if((S==null?void 0:S.key)!=="formContent")return S;const x=Array.isArray(S==null?void 0:S.contents)?S.contents:[];return{...S,contents:x.map(k=>({...k,width:d,_positionStartRow:s,_positionRowSpan:u,_sizeStart:y,_sizeEnd:b}))}});const v={_positionStartRow:s,_positionRowSpan:u,_sizeStart:y,_sizeEnd:b};return C.some(S=>(S==null?void 0:S.key)==="_gridLayoutMeta")?C=C.map(S=>(S==null?void 0:S.key)==="_gridLayoutMeta"?{...S,contents:v}:S):C.push({key:"_gridLayoutMeta",contents:v}),C};let Ai="$R";const hf=R.useUnit(R.pinia),{selectTitle:vf}=R.storeToRefs(hf);let mf=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],yf=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],gf=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],bf=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const Bs=async(a,l,r=!0)=>{let n=[],i=a==null?void 0:a.map(async o=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa,Re,Ie,Je,Ne,_e,$a,wl,el,Pl,bl,Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr,ga,ol,vl,Dl,Ua,Sa,rl,Me,oa,Ya,me,_a,Pa,pl,Il,Qa,kl,Ma;let p=(v=(C=(d=(g=o==null?void 0:o.contents)==null?void 0:g.find(aa=>{var ma;return(ma=aa==null?void 0:aa.key)==null?void 0:ma.includes("struct")}))==null?void 0:d.value)==null?void 0:C[0])==null?void 0:v.类型,s=Object.values(o==null?void 0:o.name);s=s==null?void 0:s.reverse();let u=(H=o==null?void 0:o.contents)==null?void 0:H.map(aa=>aa==null?void 0:aa.key),y={comp:p,isShow:o==null?void 0:o.is_show,name:s==null?void 0:s[0],id:o==null?void 0:o.object_id,order_no:o==null?void 0:o.order_no,relatedTables:u,menuFilter:(T=o==null?void 0:o.filter)==null?void 0:T.menuFilter,status:o==null?void 0:o.status,fatherSyncContents:(j=o==null?void 0:o.filter)==null?void 0:j.fatherSyncs,relatedQuotes:(D=o==null?void 0:o.filter)==null?void 0:D.quotes,sonSyncContents:(_=o==null?void 0:o.filter)==null?void 0:_.sonSyncs,nameContents:(S=R.cloneDeep(s))==null?void 0:S.reverse(),isHidden:!1,calculatorFilters:(O=(M=(E=(k=(x=o==null?void 0:o.contents)==null?void 0:x.find(aa=>{var ma;return(ma=aa==null?void 0:aa.key)==null?void 0:ma.includes("struct")}))==null?void 0:k.value)==null?void 0:E[0])==null?void 0:M.算法)==null?void 0:O.contents};for(let aa in s)parseInt(aa)>=1&&(y[`name${parseInt(aa)-1}`]=s[aa]);let b=Array.isArray((Q=o==null?void 0:o.filter)==null?void 0:Q.menuFilter)?(J=o==null?void 0:o.filter)==null?void 0:J.menuFilter:[];if(((ye=b==null?void 0:b.filter(aa=>aa==null?void 0:aa.includes("@If")))==null?void 0:ye.length)>0){let aa=b==null?void 0:b.filter(Da=>Da==null?void 0:Da.includes("@If"));aa=aa==null?void 0:aa[0],aa=(U=(te=aa==null?void 0:aa.replace("(",Ai))==null?void 0:te.split(Ai))==null?void 0:U[1],aa=aa==null?void 0:aa.slice(0,(aa==null?void 0:aa.length)-1),aa!=null&&aa.includes("*")&&(aa=(X=(q=aa==null?void 0:aa.replace("{",Ai))==null?void 0:q.split(Ai))==null?void 0:X[1],aa=aa==null?void 0:aa.replace("}","")),aa=re.calculatorAndToOr(aa);let ma=(l==null?void 0:l.originPath)??"";(ma==null?void 0:ma[(ma==null?void 0:ma.length)-1])==="/"&&(ma=ma==null?void 0:ma.slice(0,(ma==null?void 0:ma.length)-1));let ja=await qr(ma,!1),xa=(ee=ja==null?void 0:ja.filter(Da=>(Da==null?void 0:Da.comp)==="Table"))==null?void 0:ee[0];xa=(ze=(pe=xa==null?void 0:xa.compData)==null?void 0:pe.find(Da=>(Da==null?void 0:Da.key)==="tableContents"))==null?void 0:ze.contents;let Ul=(N=(ue=vf.value)==null?void 0:ue.find(Da=>(Da==null?void 0:Da.condition)==="child"))==null?void 0:N.value;xa=(se=xa==null?void 0:xa.map(Da=>{for(let Rl in Da)if((Da==null?void 0:Da[Rl])===Ul)return Da}))==null?void 0:se.filter(Da=>Da),xa=xa==null?void 0:xa[0],aa=aa==null?void 0:aa[0];let Gl=[];for(let Da in aa){let Rl="";Xa.isObject(xa)&&(Rl=(ve=(G=Object.keys(xa))==null?void 0:G.filter(Fr=>Fr==null?void 0:Fr.includes("."+Da)))==null?void 0:ve[0]),Rl!==""&&(xa!=null&&xa[Rl])&&(aa==null?void 0:aa[Da])===(xa==null?void 0:xa[Rl])||xa!=null&&xa[Da]&&(aa==null?void 0:aa[Da])===(xa==null?void 0:xa[Da])?Gl.push(!0):Gl.push(!1)}if(Gl!=null&&Gl.some(Da=>Da===!1)&&((Be=l==null?void 0:l.originPath)==null?void 0:Be[((ke=l==null?void 0:l.originPath)==null?void 0:ke.length)-1])!=="/")return}if(p==="Table"||p==="Method"){!r&&((We=y==null?void 0:y.fatherSyncContents)==null?void 0:We.length)>0;let aa=((he=o==null?void 0:o.contents)==null?void 0:he.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("content")}))||[],ma=[];y.comp="Table",aa.value=(I=aa==null?void 0:aa.value)==null?void 0:I.sort((Qe,La)=>parseInt(Qe==null?void 0:Qe.id)-parseInt(La==null?void 0:La.id)),aa.value=(Oe=aa==null?void 0:aa.value)==null?void 0:Oe.map(Qe=>{let La={};for(let hl in Qe)JSON.stringify(Qe==null?void 0:Qe[hl])==="{}"?La[hl]="":La[hl]=Qe==null?void 0:Qe[hl];return La}),ma.push({key:"tableContents",contents:aa==null?void 0:aa.value});let ja=(we=(ne=(xe=(ge=(oe=o==null?void 0:o.contents)==null?void 0:oe.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("struct")}))==null?void 0:ge.value)==null?void 0:xe[0])==null?void 0:ne.结构)==null?void 0:we.contents;Array.isArray(ja==null?void 0:ja[0])?ja[0]=(Ke=ja==null?void 0:ja[0])==null?void 0:Ke.filter(Qe=>(Qe==null?void 0:Qe.prop)!=="sort"&&(Qe==null?void 0:Qe.prop)!=="relatedId"):ja=ja==null?void 0:ja.filter(Qe=>(Qe==null?void 0:Qe.prop)!=="sort"&&(Qe==null?void 0:Qe.prop)!=="relatedId"),ma.push({key:"header",contents:ja}),ma.push({key:"filter",contents:(le=(F=(V=(Ge=(ya=o==null?void 0:o.contents)==null?void 0:ya.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("struct")}))==null?void 0:Ge.value)==null?void 0:V[0])==null?void 0:F.引用)==null?void 0:le.contents}),ma.push({key:"calculator",contents:y==null?void 0:y.calculatorFilters});let xa=mf,Ul=R.cloneDeep(yf);p==="Method"&&Ul.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ja==null?void 0:ja[0])&&((fe=ja==null?void 0:ja[0])==null?void 0:fe.prop)==="disabled"&&(xa=gf,Ul=bf);const Gl=["推力","真空","压力","温度","流量"],Da=y.name;Da&&Gl.includes(Da)&&(xa=[...xa],xa.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Rl=[];if(!Array.isArray(ja==null?void 0:ja[0])&&(ja!=null&&ja.some(Qe=>{var La;return(Qe==null?void 0:Qe.calculatorFilter)&&((La=Qe==null?void 0:Qe.calculatorFilter)==null?void 0:La.includes("Manual"))}))){let Qe=(be=ja==null?void 0:ja.map(La=>La==null?void 0:La.calculatorFilter))==null?void 0:be.filter(La=>La&&(La==null?void 0:La.includes("Manual")));Qe==null||Qe.forEach(La=>{var Ll;let hl=re.analyzeSplitToContent(La,",");if(hl=hl==null?void 0:hl.map(Ba=>((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)),Ba)),hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Extent"))&&(Ba==null?void 0:Ba.includes("Row")))&&(hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Button"))&&(Ba==null?void 0:Ba.includes(","))))){let Ba=hl==null?void 0:hl.find(Yr=>Yr==null?void 0:Yr.includes("@FunctionButton"));Ba=(Ll=Ba==null?void 0:Ba.split("="))==null?void 0:Ll[1],Ba=Ba==null?void 0:Ba.slice(1,(Ba==null?void 0:Ba.length)-1),Ba=Ba==null?void 0:Ba.split(","),Ba=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1],Rl.push(Ba)}}),Rl=[...new Set(Rl)],Rl=Rl==null?void 0:Rl.map(La=>({label:La,prop:La,type:"methodButton"}))}else if(Array.isArray(ja==null?void 0:ja[0])&&((ua=re.getColumnChild(ja==null?void 0:ja[0]))!=null&&ua.some(Qe=>{var La;return(Qe==null?void 0:Qe.calculatorFilter)&&((La=Qe==null?void 0:Qe.calculatorFilter)==null?void 0:La.includes("Manual"))}))){let Qe=(Pe=(ia=re.getColumnChild(ja==null?void 0:ja[0]))==null?void 0:ia.map(La=>La==null?void 0:La.calculatorFilter))==null?void 0:Pe.filter(La=>La&&(La==null?void 0:La.includes("Manual")));Qe==null||Qe.forEach(La=>{var Ll;let hl=re.analyzeSplitToContent(La,",");if(hl=hl==null?void 0:hl.map(Ba=>((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)),Ba)),hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Extent"))&&(Ba==null?void 0:Ba.includes("Row")))&&(hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Button"))&&(Ba==null?void 0:Ba.includes(","))))){let Ba=hl==null?void 0:hl.find(Yr=>Yr==null?void 0:Yr.includes("@FunctionButton"));Ba=(Ll=Ba==null?void 0:Ba.split("="))==null?void 0:Ll[1],Ba=Ba==null?void 0:Ba.slice(1,(Ba==null?void 0:Ba.length)-1),Ba=Ba==null?void 0:Ba.split(","),Ba=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1],Rl.push(Ba)}}),Rl=[...new Set(Rl)],Rl=Rl==null?void 0:Rl.map(La=>({label:La,prop:La,type:"methodButton"}))}if(ma.push({key:"extraButton",contents:xa}),ma.push({key:"rowButton",contents:[...Ul,...Rl]}),y.compData=await Po(ma,l,y==null?void 0:y.nameContents),(va=y.compData)!=null&&va.find(Qe=>(Qe==null?void 0:Qe.key)==="tab")&&(y.tab=(Ae=(Ea=y.compData)==null?void 0:Ea.find(Qe=>(Qe==null?void 0:Qe.key)==="tab"))==null?void 0:Ae.contents),(Fa=y.compData)!=null&&Fa.find(Qe=>(Qe==null?void 0:Qe.key)==="step")&&(y.step=(da=(Ta=y.compData)==null?void 0:Ta.find(Qe=>(Qe==null?void 0:Qe.key)==="step"))==null?void 0:da.contents),(Ha=y.compData)!=null&&Ha.find(Qe=>(Qe==null?void 0:Qe.key)==="choice")&&(y.choice=(He=(sa=y.compData)==null?void 0:sa.find(Qe=>(Qe==null?void 0:Qe.key)==="choice"))==null?void 0:He.contents),(ha=y.compData)!=null&&ha.find(Qe=>(Qe==null?void 0:Qe.key)==="hideContents")&&(y.isHidden=(($e=(ea=y.compData)==null?void 0:ea.find(Qe=>(Qe==null?void 0:Qe.key)==="hideContents"))==null?void 0:$e.contents)??!1),(Fe=y.compData)!=null&&Fe.find(Qe=>(Qe==null?void 0:Qe.key)==="newType")){let Qe=(Ye=(ie=y.compData)==null?void 0:ie.find(La=>(La==null?void 0:La.key)==="newType"))==null?void 0:Ye.contents;y.comp=Qe,y.compData=(na=y.compData)==null?void 0:na.filter(La=>(La==null?void 0:La.key)!=="newType")}((Re=(fa=y.compData)==null?void 0:fa.find(Qe=>(Qe==null?void 0:Qe.key)==="TableType"))==null?void 0:Re.contents)==="Frameless"&&(y.comp="seamScroll",y.compData=(Ie=y.compData)==null?void 0:Ie.filter(Qe=>(Qe==null?void 0:Qe.key)!=="TableType"));let Fr="",Dr=(Je=y==null?void 0:y.compData)==null?void 0:Je.filter(Qe=>(Qe==null?void 0:Qe.key)==="fixType");if((Dr==null?void 0:Dr.length)>0&&r&&(Fr=(Ne=Dr==null?void 0:Dr[0])==null?void 0:Ne.contents,y.comp=Fr),((_e=y==null?void 0:y.calculatorFilters)==null?void 0:_e.length)>0){let Qe=[],La=[],hl=[];($a=y==null?void 0:y.calculatorFilters)==null||$a.forEach(Ll=>{var Yr,ln,zr,Ve,Zl,ql,Jr;let Ba=(zr=(ln=(Yr=Ll==null?void 0:Ll.calculatorFilter)==null?void 0:Yr.replace("(",Ai))==null?void 0:ln.split(Ai))==null?void 0:zr[1];Ba=(Ve=Ba==null?void 0:Ba.split(","))==null?void 0:Ve[0],Ba=Ba??(Ll==null?void 0:Ll.functionName),(Zl=Ll==null?void 0:Ll.calculatorFilter)!=null&&Zl.includes("Up")&&Qe.push({label:Ba,prop:Ba,type:"methodButton"}),(ql=Ll==null?void 0:Ll.calculatorFilter)!=null&&ql.includes("Line")&&La.push({label:Ba,prop:Ba,type:"methodButton"}),(Jr=Ll==null?void 0:Ll.calculatorFilter)!=null&&Jr.includes("Down")&&hl.push({label:Ba,prop:Ba,type:"methodButton"})}),y.compData=(wl=y.compData)==null?void 0:wl.map(Ll=>((Ll==null?void 0:Ll.key)==="extraButton"&&(Ll.contents=[...Qe??[],...Ll.contents]),(Ll==null?void 0:Ll.key)==="rowButton"&&(Ll.contents=[...La??[],...Ll.contents]),(Ll==null?void 0:Ll.key)==="bottomButton"&&(Ll.contents=[...hl??[],...Ll.contents]),Ll)),(hl==null?void 0:hl.length)>0&&!((Pl=(el=y.compData)==null?void 0:el.find(Ll=>(Ll==null?void 0:Ll.key)==="bottomButton"))!=null&&Pl.contents)&&y.compData.push({key:"bottomButton",contents:hl})}}else if(p==="Form"){let aa=[],ma=(ll=(Hl=(bl=o==null?void 0:o.contents)==null?void 0:bl.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("content")}))==null?void 0:Hl.value)==null?void 0:ll[0],ja=[],xa=Array.isArray((jl=o==null?void 0:o.filter)==null?void 0:jl.menuFilter)?(Ga=o==null?void 0:o.filter)==null?void 0:Ga.menuFilter:[];xa==null||xa.forEach(Da=>{if(Da!=null&&Da.includes("@Param(Hide=Yes, prop=")||Da!=null&&Da.includes("(Hide=Yes, prop=")){const Rl=Da==null?void 0:Da.match(/prop=([^,)]+)/);Rl!=null&&Rl[1]&&ja.push(Rl==null?void 0:Rl[1])}});let Ul=(pr=(Sl=(ar=(Xl=(Jl=o==null?void 0:o.contents)==null?void 0:Jl.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("struct")}))==null?void 0:Xl.value)==null?void 0:ar[0])==null?void 0:Sl.结构)==null?void 0:pr.contents,Gl=(ga=Ul==null?void 0:Ul.map(Da=>(Da.value=ma==null?void 0:ma[Da==null?void 0:Da.prop],Da)))==null?void 0:ga.filter(Da=>(Da==null?void 0:Da.prop)!=="sort"&&(Da==null?void 0:Da.prop)!=="relatedId");Gl=Gl==null?void 0:Gl.map(Da=>(ja!=null&&ja.includes(Da==null?void 0:Da.prop)&&(Da.isHideInForm=!0),Da)),aa.push({key:"calculator",contents:y==null?void 0:y.calculatorFilters}),aa.push({key:"filter",contents:(Sa=(Ua=(Dl=(vl=(ol=o==null?void 0:o.contents)==null?void 0:ol.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("struct")}))==null?void 0:vl.value)==null?void 0:Dl[0])==null?void 0:Ua.引用)==null?void 0:Sa.contents}),aa.push({key:"formContent",contents:Gl}),aa.push({key:"paramHideProps",contents:ja}),y.compData=await pf(aa,l,y==null?void 0:y.nameContents),(rl=y.compData)!=null&&rl.find(Da=>(Da==null?void 0:Da.key)==="tab")&&(y.tab=(oa=(Me=y.compData)==null?void 0:Me.find(Da=>(Da==null?void 0:Da.key)==="tab"))==null?void 0:oa.contents),(Ya=y.compData)!=null&&Ya.find(Da=>(Da==null?void 0:Da.key)==="step")&&(y.step=(_a=(me=y.compData)==null?void 0:me.find(Da=>(Da==null?void 0:Da.key)==="step"))==null?void 0:_a.contents),(Pa=y.compData)!=null&&Pa.find(Da=>(Da==null?void 0:Da.key)==="choice")&&(y.choice=(Il=(pl=y.compData)==null?void 0:pl.find(Da=>(Da==null?void 0:Da.key)==="choice"))==null?void 0:Il.contents),(Qa=y.compData)!=null&&Qa.find(Da=>(Da==null?void 0:Da.key)==="hideContents")&&(y.isHidden=((Ma=(kl=y.compData)==null?void 0:kl.find(Da=>(Da==null?void 0:Da.key)==="hideContents"))==null?void 0:Ma.contents)??!1)}return y});return n=await Promise.all(i),n=n==null?void 0:n.filter(o=>!(o!=null&&o.isHidden)),n};let kf="http://139.196.154.85:20031";function xf(a){return Xa.axios({method:"post",url:kf+"/api/word-report/build-by-upload",responseType:"blob",data:a})}const wf=R.useUnit(R.pinia),{selectTitle:Ds}=R.storeToRefs(wf),_f=async a=>{var r;let l=(r=re.analyzerStringToArray(a,[":","@","="]))==null?void 0:r[0];return l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),l=re.analyzeSplitToContent(l,","),l=l==null?void 0:l.map(n=>((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)),l=l==null?void 0:l.map(async n=>{var o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se;let i=re.analyzeSplitToContent(n,"=");if(n!=null&&n.includes("==")){i=n==null?void 0:n.split("==");let G=i==null?void 0:i[0],ve=i==null?void 0:i[1],ke=(x=ve==null?void 0:ve.split("*"))==null?void 0:x[0],Be=(k=ve==null?void 0:ve.split("*"))==null?void 0:k[1];Be=(E=re.analyzeSplitToContent(Be,":"))==null?void 0:E.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));let We=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])!=="{"),he=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])==="{");if(he=he==null?void 0:he[0],he=he==null?void 0:he.slice(1,(he==null?void 0:he.length)-1),he=(M=re.analyzeSplitToContent(he,","))==null?void 0:M.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)),ke!=null&&ke.includes("{")){let I=(Q=(O=Ds.value)==null?void 0:O.find(we=>(we==null?void 0:we.condition)==="child"))==null?void 0:Q.value;ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(ye=(J=ke==null?void 0:ke.replace("{",""))==null?void 0:J.replace("}",""))==null?void 0:ye.replace(":","/"),ke=ke+"/"+I;let Oe=await qr(ke,!1);Oe=Oe==null?void 0:Oe.find(we=>(we==null?void 0:we.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1]));let oe=(U=(te=Oe==null?void 0:Oe.compData)==null?void 0:te.find(we=>(we==null?void 0:we.key)==="tableContents"))==null?void 0:U.contents,ge=(X=(q=Oe==null?void 0:Oe.compData)==null?void 0:q.find(we=>(we==null?void 0:we.key)==="header"))==null?void 0:X.contents,xe=re.tableToForm(oe,ge),ne=[];xe==null||xe.forEach(we=>{let Ke=[];he==null||he.forEach(ya=>{var Ge;Ke.push(((Ge=we==null?void 0:we.find(V=>(V==null?void 0:V.key)===ya))==null?void 0:Ge.value)??"")}),ne.push(Ke)}),ne=re.arrayToString(ne),n=G+"=="+ne}else{ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(pe=(ee=ke==null?void 0:ke.replace("{",""))==null?void 0:ee.replace("}",""))==null?void 0:pe.replace(":","/");let I=await qr(ke,!1);I=I==null?void 0:I.find(ne=>(ne==null?void 0:ne.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1]));let Oe=(ue=(ze=I==null?void 0:I.compData)==null?void 0:ze.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:ue.contents,oe=(se=(N=I==null?void 0:I.compData)==null?void 0:N.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:se.contents,ge=re.tableToForm(Oe,oe),xe=[];ge==null||ge.forEach(ne=>{let we=[];he==null||he.forEach(Ke=>{var ya;we.push(((ya=ne==null?void 0:ne.find(Ge=>(Ge==null?void 0:Ge.key)===Ke))==null?void 0:ya.value)??"")}),xe.push(we)}),xe=re.arrayToString(xe),n=G+"=="+xe}}else{let G=i==null?void 0:i[0],ve=i==null?void 0:i[1],ke=(o=ve==null?void 0:ve.split("*"))==null?void 0:o[0],Be=(p=ve==null?void 0:ve.split("*"))==null?void 0:p[1];Be=(s=re.analyzeSplitToContent(Be,":"))==null?void 0:s.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));let We=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])!=="{"),he=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])==="{");if(he=he==null?void 0:he[0],he=he==null?void 0:he.slice(1,(he==null?void 0:he.length)-1),he=(u=re.analyzeSplitToContent(he,":"))==null?void 0:u.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)),ke!=null&&ke.includes("{")){let I=(b=(y=Ds.value)==null?void 0:y.find(oe=>(oe==null?void 0:oe.condition)==="child"))==null?void 0:b.value;ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(d=(g=ke==null?void 0:ke.replace("{",""))==null?void 0:g.replace("}",""))==null?void 0:d.replace(":","/"),ke=ke+"/"+I;let Oe=await qr(ke,!1);Oe=Oe==null?void 0:Oe.find(oe=>(oe==null?void 0:oe.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1])),Oe=(v=(C=Oe==null?void 0:Oe.compData)==null?void 0:C.find(oe=>(oe==null?void 0:oe.key)==="formContent"))==null?void 0:v.contents,Oe=(H=Oe==null?void 0:Oe.find(oe=>(oe==null?void 0:oe.prop)===(he==null?void 0:he[(he==null?void 0:he.length)-1])))==null?void 0:H.value,ve=Oe}else{ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(j=(T=ke==null?void 0:ke.replace("{",""))==null?void 0:T.replace("}",""))==null?void 0:j.replace(":","/");let I=await qr(ke,!1);I=I==null?void 0:I.find(Oe=>(Oe==null?void 0:Oe.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1])),I=(_=(D=I==null?void 0:I.compData)==null?void 0:D.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:_.contents,I=(S=I==null?void 0:I.find(Oe=>(Oe==null?void 0:Oe.prop)===(he==null?void 0:he[(he==null?void 0:he.length)-1])))==null?void 0:S.value,ve=I}n=G+ve}return n}),l=await Promise.all(l),l=l==null?void 0:l.join(","),l="{"+l+"}",l},Sf=R.useLoginState(R.pinia),{loginUserInfo:Zn}=R.storeToRefs(Sf),Ef=R.useUnit(R.pinia),{selectTitle:Ac}=R.storeToRefs(Ef),Yi=R.useMenuState(R.pinia),{localFiles:Cf}=R.storeToRefs(Yi),Ft=async(a=[],l="Manual",r=[],n=[])=>{var s;let i=a,o=(s=i==null?void 0:i.filter(u=>{var y;return(u==null?void 0:u.functionName)&&(l==="Manual"&&((y=u==null?void 0:u.calculatorFilter)==null?void 0:y.includes(l))||l!=="Manual")}))==null?void 0:s.map(u=>({prop:u==null?void 0:u.prop,label:u==null?void 0:u.label,methods:u==null?void 0:u.calculatorFilter,functionName:u==null?void 0:u.functionName,functionRelatedWords:u==null?void 0:u.functionRelatedWords}));(n==null?void 0:n.length)>0&&(o=[...n==null?void 0:n.map(y=>({prop:"",label:"",methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),...o]),(n==null?void 0:n.length)>0&&(i=[i==null?void 0:i[0]]);let p=i==null?void 0:i.map(async u=>{let y=(n==null?void 0:n.length)>0?n:o==null?void 0:o.filter(b=>(b==null?void 0:b.prop)===(u==null?void 0:u.prop));return u=await zo(u,y,i,l,i,r),u});return p=await Promise.all(p),p},Nt=async(a,l,r="Manual",n=[],i=[],o=[])=>{var b;let p=a,s;Array.isArray(l==null?void 0:l[0])?s=re.getColumnChild(l==null?void 0:l[0]):s=l;let u=(b=s==null?void 0:s.filter(g=>{var d;return(g==null?void 0:g.calculatorFilter)&&((d=g==null?void 0:g.calculatorFilter)==null?void 0:d.includes(r))||(g==null?void 0:g.calculatorFilter)===""&&(g==null?void 0:g.functionName)}))==null?void 0:b.map(g=>({prop:g==null?void 0:g.prop,label:g==null?void 0:g.label,methods:g==null?void 0:g.calculatorFilter,functionName:g==null?void 0:g.functionName,functionRelatedWords:g==null?void 0:g.functionRelatedWords}));(i==null?void 0:i.length)>0&&(u=[...i==null?void 0:i.map(d=>({prop:"",label:"",methods:d==null?void 0:d.calculatorFilter,functionName:d==null?void 0:d.functionName,functionRelatedWords:d==null?void 0:d.functionRelatedWords})),...u]),(i==null?void 0:i.length)>0&&(p=[p==null?void 0:p[0]]);let y=p==null?void 0:p.map(async g=>(g=await zo(g,u,s,r,p,n,o),g));return y=await Promise.all(y),y},Tf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(p=>{var s;if(l!=null&&l[p]){let u=l==null?void 0:l[p];o=o?u?Fl.isEqual(u.toString(),o.toString()):void 0:u}else{let u=(s=i==null?void 0:i.find(b=>(b==null?void 0:b.label)===p))==null?void 0:s.prop,y=(l==null?void 0:l[u])??0;o=o?y?Fl.isEqual(y.toString(),o.toString()):void 0:y}}),l[n]=o===void 0?void 0:o?1:0,l},$r=a=>{const[l,r,n]=R.cloneDeep(a).split(":").map(Number);let i=+a;return!a||!(a!=null&&a.includes(":"))?i:(l??0)*3600+(r??0)*60+(n??0)},ii=a=>{const l=o=>o.toString().padStart(2,"0"),r=Math.floor(a/3600),n=Math.floor(a%3600/60),i=a%60;return`${l(r)}:${l(n)}:${parseInt(l(i))}`},Bf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H,T,j;if(l!=null&&l[u]){if(o==="Row")if(!((b=((y=l==null?void 0:l[u])==null?void 0:y.toString())??"")!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let D=+(l==null?void 0:l[u]);s=s+D}else s=$r(s.toString())+$r((d=l==null?void 0:l[u])==null?void 0:d.toString()),s=ii(s)}else if(o==="Row"){let D=(C=i==null?void 0:i.find(_=>(_==null?void 0:_.label)===u))==null?void 0:C.prop;if(!((H=Number.isNaN(l==null?void 0:l[D])?"":(v=l==null?void 0:l[D])==null?void 0:v.toString())!=null&&H.includes(":"))&&!((T=s==null?void 0:s.toString())!=null&&T.includes(":"))){let _=+((l==null?void 0:l[D])??0);s=s+_}else s=$r(s==null?void 0:s.toString())+$r((j=(l==null?void 0:l[D])??0)==null?void 0:j.toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g+d},0)}return l[n]=s,l},Df=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s-T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())-$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s-j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())-$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g-d},0)}return l[n]=s,l},Nf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s*T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())*$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!(l!=null&&l[T]))s=void 0;else if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s*j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())*$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g*d},0)}return l[n]=s,l},Af=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s/T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())/$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s/j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())/$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g/d},0)}return l[n]=s.toFixed(2),l},zf=async a=>{var o,p,s,u,y,b,g,d,C,v,H;let l=(o=a==null?void 0:a.valueString)==null?void 0:o[0],r=(p=a==null?void 0:a.contents)==null?void 0:p.calculatorFilter,n=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 T=(u=(s=l==null?void 0:l.split("*"))==null?void 0:s[0])==null?void 0:u.replaceAll(":","/"),j=await qr(T,!1),D=(y=l==null?void 0:l.split("*"))==null?void 0:y[1];if(j=(b=j==null?void 0:j.filter(_=>(_==null?void 0:_.name)===D))==null?void 0:b[0],r!==""){let _=j.compData;_=_==null?void 0:_.filter(S=>(S==null?void 0:S.key)!=="filter"),_.push({key:"filter",contents:"("+r+")"}),_=await Po(_,{}),n=(d=(g=_==null?void 0:_.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:d.length}else n=(H=(v=(C=j==null?void 0:j.compData)==null?void 0:C.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:v.contents)==null?void 0:H.length}return i.value=n,i},Mf=async a=>{var g,d,C,v,H,T,j,D,_;let l=(g=a==null?void 0:a.valueString)==null?void 0:g[0],r=a==null?void 0:a.filter;r=(r==null?void 0:r.find(S=>S==null?void 0:S.includes("@If")))??"",(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let n=(C=(d=l==null?void 0:l.split("*"))==null?void 0:d[0])==null?void 0:C.replaceAll(":","/"),i=(v=l==null?void 0:l.split("*"))==null?void 0:v[1],o=(H=i==null?void 0:i.split("{"))==null?void 0:H[0],p=i==null?void 0:i.replace(o,"");o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1),o=o==null?void 0:o.split(":"),o=o==null?void 0:o[(o==null?void 0:o.length)-1];let s=await qr(n,!1);if(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1),p=p==null?void 0:p.split(":"),p=p==null?void 0:p[(p==null?void 0:p.length)-1],s=s==null?void 0:s.find(S=>(S==null?void 0:S.name)===o),s=(j=(T=s==null?void 0:s.compData)==null?void 0:T.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:j.contents,(r==null?void 0:r.length)>0){r=(_=(D=r==null?void 0:r.replace("(","$R"))==null?void 0:D.split("$R"))==null?void 0:_[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1);let S=re.calculatorAndToOr(r);S==null||S.forEach(x=>{for(let k in x)x[k]!=="!"?s=s==null?void 0:s.filter(E=>{var M;return(E==null?void 0:E[k])===(x==null?void 0:x[k])||(E==null?void 0:E[(M=Object.keys(E))==null?void 0:M.find(O=>O==null?void 0:O.includes("."+k))])===(x==null?void 0:x[k])}):s=s==null?void 0:s.filter(E=>{var M;return(E==null?void 0:E[k])!==(x==null?void 0:x[k])&&(E==null?void 0:E[(M=Object.keys(E))==null?void 0:M.find(O=>O==null?void 0:O.includes("."+k))])!==(x==null?void 0:x[k])})})}s=s==null?void 0:s.map(S=>S==null?void 0:S[p]);let u=[...new Set(s)],y=[],b={};return u==null||u.forEach(S=>{var k;let x=(k=s==null?void 0:s.filter(E=>S===E))==null?void 0:k.length;b[S]=x}),y.push(b),{xAxis:u,yAxis:y}},If=async a=>{var n,i;let l=a==null?void 0:a.valueString;l=l==null?void 0:l[0];let r={};if((l==null?void 0:l[0])==="{"){l=l==null?void 0:l.slice(1,l.length-1),l=(n=re.analyzeSplitToContent(l,","))==null?void 0:n.map(s=>((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)),s));let o=l==null?void 0:l.map(async s=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye;let u=(d=(g=s==null?void 0:s.replace("=","$R"))==null?void 0:g.split("$R"))==null?void 0:d[0],y=(v=(C=s==null?void 0:s.replace("=","$R"))==null?void 0:C.split("$R"))==null?void 0:v[1],b="";if(y==="LoginUser")b=((H=Zn.value)==null?void 0:H.姓名)||((T=Zn.value)==null?void 0:T.account)||((j=Zn.value)==null?void 0:j.账号);else if((y==null?void 0:y[0])==="$"){let te=(D=y==null?void 0:y.split("*"))==null?void 0:D[0],U=(_=y==null?void 0:y.split("*"))==null?void 0:_[1],q=U;if((te==null?void 0:te[0])==="$"&&(te=te==null?void 0:te.slice(1,te==null?void 0:te.length)),te!=null&&te.includes("$")){let ee=(S=te==null?void 0:te.split("$"))==null?void 0:S[0],pe=(x=te==null?void 0:te.split("$"))==null?void 0:x[1],ze=(k=ee==null?void 0:ee.split(":"))==null?void 0:k[0],ue=(O=(M=(E=Ac.value)==null?void 0:E.filter(N=>(N==null?void 0:N.condition)==="child"))==null?void 0:M[0])==null?void 0:O.value;pe=pe==null?void 0:pe.replaceAll(":","/"),te=ze+"/"+pe+"/"+ue}else te=te==null?void 0:te.replaceAll(":","/");U=U==null?void 0:U.split(":"),U=U==null?void 0:U.find((ee,pe)=>pe===(U==null?void 0:U.length)-2),q=q==null?void 0:q.split(":"),q=q==null?void 0:q.find((ee,pe)=>pe===(q==null?void 0:q.length)-1),(q==null?void 0:q[0])==="{"&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1));let X=await qr(te,!1);X=X==null?void 0:X.find(ee=>(ee==null?void 0:ee.name)===U),X=(J=(Q=X==null?void 0:X.compData)==null?void 0:Q.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:J.contents,b=(ye=X==null?void 0:X[0])==null?void 0:ye[q]}else b=y;r[u]=b});await Promise.all(o);let p=(i=a==null?void 0:a.valueString)==null?void 0:i[1];r.menuPathContent=p}return r},Of=async a=>{var y,b,g,d,C,v,H;let l=a==null?void 0:a.valueString,r=l==null?void 0:l.filter(T=>(T==null?void 0:T.includes(".docx"))||(T==null?void 0:T.includes(".doc")));r=r==null?void 0:r[0];let n=l==null?void 0:l.filter(T=>!(T!=null&&T.includes(".docx"))&&!(T!=null&&T.includes(".doc")));n=n==null?void 0:n[0];let i=(b=a==null?void 0:a.compNames)==null?void 0:b[((y=a==null?void 0:a.compNames)==null?void 0:y.length)-1],o=((C=(d=(g=Ac.value)==null?void 0:g.filter(T=>(T==null?void 0:T.condition)==="child"))==null?void 0:d[0])==null?void 0:C.value)??"",p=Cf.value;o!==""&&(p=(v=p==null?void 0:p.find(T=>(T==null?void 0:T.path)===o))==null?void 0:v.children),p=(H=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===i))==null?void 0:H.children;let s=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===r),u=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===n);u=(u==null?void 0:u.url)??"",u!==""?u=u==null?void 0:u.replace(/^file:\/\//,"file:///").replace(/\\/g,"/"):u="file:///"+(n==null?void 0:n.replaceAll("\\","/")),s=(s==null?void 0:s.url)??"",s!==""?s=s==null?void 0:s.replace(/^file:\/\//,"file:///").replace(/\\/g,"/"):s="file:///"+(r==null?void 0:r.replaceAll("\\","/"));try{const j=await(await fetch(s)).blob();let D=s.split(/[\\/]/).pop();const _=new File([j],D,{type:j.type||"application/octet-stream"}),S=new FormData;S.append("TemplateFile",_);let x=await fetch(u);x=await x.text(),x=await _f(x),S.append("RawContent",x);let k=await xf(S),E=new Blob([k.data],{type:"application/zip"});const M=window.URL.createObjectURL(E),O=document.createElement("a");O.href=M,O.download=r,document.body.appendChild(O),O.click(),document.body.removeChild(O),window.URL.revokeObjectURL(M)}catch{Xa.ElMessage.error("文件路径未找到")}},Lf=async a=>{var i,o;let l=a==null?void 0:a.valueString,r=l==null?void 0:l[0];r=(i=r==null?void 0:r.split("*"))==null?void 0:i[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.replaceAll(":","/"),r=r;let n=await qr(r,!1);if((n==null?void 0:n.length)>0){Yi.setActiveTopMenuPath((o=r==null?void 0:r.split("/"))==null?void 0:o[0]);let p=localStorage.getItem("menus-store");p=JSON.parse(p),p=p==null?void 0:p.menus,p=p==null?void 0:p.find(s=>{var u;return(s==null?void 0:s.path)===((u=r==null?void 0:r.split("/"))==null?void 0:u[0])}),p=p==null?void 0:p.childMenus,Yi.setAsideMenus(p),Yi.setJumpMenuInform(!0),Yi.setActiveMenuPath(r)}else Xa.ElMessage.error("页面不存在");return a},go={Sum:Bf,Substract:Df,Multiple:Nf,Divide:Af,Compare:Tf,VecDimCount:zf,Approval:If,VecRepCount:Mf,AutoReportGen:Of,OpenPortal:Lf},zo=async(a,l,r,n="Auto",i,o=[],p=[])=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q;let s=a,u=[],y=await R.getPageDataApi({platId:parseInt((g=Zn==null?void 0:Zn.value)==null?void 0:g.plat_id),pageName:"menu"});y=(v=(C=(d=y==null?void 0:y.data)==null?void 0:d.result)==null?void 0:C.filter(X=>(X==null?void 0:X.property_name)===""))==null?void 0:v[0];let b=[];if(y!=null&&y.object_name){y=y==null?void 0:y.object_name;let X=await R.getPageDataApi({platId:parseInt((H=Zn==null?void 0:Zn.value)==null?void 0:H.plat_id),pageName:y});X=(S=(_=(D=(j=(T=X==null?void 0:X.data)==null?void 0:T.result)==null?void 0:j[0])==null?void 0:D.contents)==null?void 0:_.find(ee=>{var pe;return(pe=ee==null?void 0:ee.key)==null?void 0:pe.includes("content")}))==null?void 0:S.value,u=(x=X==null?void 0:X.map(ee=>({functionName:ee==null?void 0:ee.函数名称,functionContent:ee==null?void 0:ee.输出值})))==null?void 0:x.filter(ee=>(ee==null?void 0:ee.functionContent)!==""),u==null||u.forEach(ee=>{b.push(ee.functionName),go[ee.functionName]=new Function("return "+ee.functionContent)()})}if((l==null?void 0:l.length)===0)return s;for(let X in l){let ee=(k=l==null?void 0:l[X])==null?void 0:k.functionName;const pe=go==null?void 0:go[ee];let ze=(E=l==null?void 0:l[X])==null?void 0:E.methods;if(ze=re.analyzeSplitToContent(ze,","),(M=ze==null?void 0:ze.find(ue=>ue==null?void 0:ue.includes("@Type")))!=null&&M.includes(n)||!(ze!=null&&ze.find(ue=>ue==null?void 0:ue.includes("@Type")))&&n==="Manual"||n==="Auto"||(ze==null?void 0:ze.length)===0){let ue=((J=(Q=(O=ze==null?void 0:ze.find(N=>N==null?void 0:N.includes("@Extent")))==null?void 0:O.replace(":","="))==null?void 0:Q.split("="))==null?void 0:J[1])??[];if(await new Function("return ")(),(b==null?void 0:b.length)>0&&b.find(N=>N===ee)){let N="";try{let G=(ye=l==null?void 0:l[X])==null?void 0:ye.functionRelatedWords,ve=(o==null?void 0:o.length)>0?o==null?void 0:o.map(Be=>{var We;return Be==null?void 0:Be[(We=l==null?void 0:l[X])==null?void 0:We.prop]}):["0"];ve=ve==null?void 0:ve.map(Be=>Be==null?void 0:Be.slice((Be==null?void 0:Be.length)-5,Be==null?void 0:Be.length)),ve=ve==null?void 0:ve.map(Be=>re.isNumber(parseInt(Be))&&parseInt(Be)?parseInt(Be):0);let ke=Math.max(...ve);G=G==null?void 0:G.map(Be=>{if(Be!=null&&Be.includes("'"))return Be==null?void 0:Be.replaceAll("'","");if(Be!=null&&Be.includes("@"))return ke+1;{let We=Object.keys(s);return Be=(s==null?void 0:s[Be])??(s==null?void 0:s[We==null?void 0:We.find(he=>he==null?void 0:he.includes("."+Be))]),Be}}),N=pe(...G)}catch(G){Xa.ElMessage.warning("关联数据出现错误,"+G.message)}let se=(te=l==null?void 0:l[X])==null?void 0:te.prop;s[se]=N}else s=await pe({contents:s,valueString:(U=l==null?void 0:l[X])==null?void 0:U.functionRelatedWords,prop:(q=l==null?void 0:l[X])==null?void 0:q.prop,filter:ze,headers:r,typeString:ue,allContents:i,compNames:p})}}return s},Rf=R.useLoginState(R.pinia),{loginUserInfo:wn}=R.storeToRefs(Rf),$f=R.useMenuState(R.pinia),{activeMenuPath:Ns,currentMenuPath:bo}=R.storeToRefs($f),zc=R.useUnit(R.pinia);let As="$R";const{selectTitle:Oi}=R.storeToRefs(zc),Mc=async(a,l)=>{var p,s,u,y,b,g,d,C,v,H,T,j,D;let r=Ns.value,n="",i=((p=Oi==null?void 0:Oi.value)==null?void 0:p.find(_=>(_==null?void 0:_.condition)==="child"&&!(_!=null&&_.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(r=l?r:(s=a==null?void 0:a[0])==null?void 0:s.object_name,n=(u=a==null?void 0:a[0])==null?void 0:u.father_name);let o=[];if(n!==""){let _=n;(_==null?void 0:_[(_==null?void 0:_.length)-1])==="/"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let S=await qr(_,!1);S=(y=S==null?void 0:S[0])==null?void 0:y.compData;let x=(b=S==null?void 0:S.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:b.contents;x=((g=x==null?void 0:x.find(E=>E==null?void 0:E.isMainKey))==null?void 0:g.prop)??((d=x==null?void 0:x[0])==null?void 0:d.prop);let k=(v=(C=S==null?void 0:S.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:C.contents)==null?void 0:v.map(E=>({label:E==null?void 0:E[x],value:E==null?void 0:E[x]}));o=(H=n==null?void 0:n.split("/"))==null?void 0:H.map(E=>(E===""?i?(i.isShow=!0,E=i):E={value:E,condition:"child",options:k,parentContent:(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"?n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1):n,isShow:!0}:E={condition:"parent",value:E.trim(),isShow:!0},E))}if(r!==""){let _=(T=r==null?void 0:r.split("/"))==null?void 0:T.map(S=>(S={condition:"normal",value:S.trim(),isShow:!0},S));((j=_==null?void 0:_[0])==null?void 0:j.value)===((D=o==null?void 0:o[0])==null?void 0:D.value)&&(_=_==null?void 0:_.filter((S,x)=>x!==0)),o=[...o??[],..._??[]]}n===""&&i&&((i==null?void 0:i.parentContent)!==Ns.value&&(i.isShow=!1),(i==null?void 0:i.value)!==""&&o.push(i)),zc.setSelectTitle(o)},Vf=async a=>{var o,p,s,u,y,b,g,d,C;let l=await R.getPageDataApi({platId:parseInt((o=wn==null?void 0:wn.value)==null?void 0:o.plat_id),pageName:"menu"}),r=(p=l==null?void 0:l.data)==null?void 0:p.result,n=(b=(y=(u=(s=a==null?void 0:a.filter(v=>(v==null?void 0:v.comp)==="Table"))==null?void 0:s[0])==null?void 0:u.compData)==null?void 0:y.find(v=>(v==null?void 0:v.key)==="filter"))==null?void 0:b.contents;n=(C=(d=(g=n==null?void 0:n.replace("(",As))==null?void 0:g.split(As))==null?void 0:d[0])==null?void 0:C.replaceAll(":","/");let i=r==null?void 0:r.filter(v=>{var H;return(v==null?void 0:v.object_name)===bo.value+"/"||((H=bo.value)==null?void 0:H.includes(n))&&n+"/"===(v==null?void 0:v.object_name)||n===(v==null?void 0:v.object_name)});return(i==null?void 0:i.length)>0&&(a=a==null?void 0:a.map(v=>{var H;return(v==null?void 0:v.comp)==="Table"&&(v.compData=(H=v==null?void 0:v.compData)==null?void 0:H.map(T=>{var j,D,_;return(T==null?void 0:T.key)==="header"&&(Array.isArray((j=T.contents)==null?void 0:j[0])?T.contents[0]=(_=T.contents[0])==null?void 0:_.map((S,x)=>{var k;return x===0&&(S.isExistChild=!0,((k=bo.value)!=null&&k.includes(n)||n)&&(S.fatherPath=n)),S}):T.contents=(D=T.contents)==null?void 0:D.map((S,x)=>{var k;return x===0&&(S.isExistChild=!0,((k=bo.value)!=null&&k.includes(n)||n)&&(S.fatherPath=n)),S})),T})),v})),a},qr=async(a,l,r={})=>{var p,s,u,y,b,g,d,C,v,H,T,j;let n=await R.getPageDataApi({platId:parseInt((p=wn==null?void 0:wn.value)==null?void 0:p.plat_id),pageName:a}),i=(s=n==null?void 0:n.data)==null?void 0:s.result;if((i==null?void 0:i.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==a){let D=await R.getPageDataApi({platId:parseInt((u=wn==null?void 0:wn.value)==null?void 0:u.plat_id),pageName:r==null?void 0:r.originPath});if(((b=(y=D==null?void 0:D.data)==null?void 0:y.result)==null?void 0:b.length)>0){let _=await Bs((g=D==null?void 0:D.data)==null?void 0:g.result,r,!1);_=_==null?void 0:_.map(async k=>{var O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge;let E=[],M=(O=Object.keys(k))==null?void 0:O.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)M!=null&&M.find(F=>F===V)&&E.push(k==null?void 0:k[V]);if(E=E.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(ye=(J=(Q=k==null?void 0:k.compData)==null?void 0:Q.find(le=>(le==null?void 0:le.key)==="tableContents"))==null?void 0:J.contents)==null?void 0:ye.map(le=>{let fe={};for(let be in le)be!=="id"&&be!=="create_time"&&be!=="update_time"&&be!=="sort"&&be!=="create_user_id"&&be!=="update_user_id"&&be!=="department_id"&&be!=="relatedId"&&(fe[be]=le==null?void 0:le[be]);return le=Object.values(fe),le}),F=(U=(te=k==null?void 0:k.compData)==null?void 0:te.find(le=>(le==null?void 0:le.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"}),(q=F[0])!=null&&q.find(le=>(le==null?void 0:le.prop)==="disabled")&&(F[0]=(X=F[0])==null?void 0:X.filter(le=>(le==null?void 0:le.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(le=>(le==null?void 0:le.prop)==="disabled")&&(F=F==null?void 0:F.filter(le=>(le==null?void 0:le.prop)!=="disabled"),F.unshift({label:"",prop:"disabled",sortable:!1}))),F!=null&&F.some(le=>{var fe;return(le==null?void 0:le.calculatorFilter)&&((fe=le==null?void 0:le.calculatorFilter)==null?void 0:fe.includes("Auto"))})&&(V=await Nt(V,F,"Auto"),V=V==null?void 0:V.map(le=>Object.values(le))),k!=null&&k.fatherSyncContents){Array.isArray((ee=k==null?void 0:k.fatherSyncContents)==null?void 0:ee[0])&&(k.fatherSyncContents=(pe=k==null?void 0:k.fatherSyncContents)==null?void 0:pe[0]);let le=(ze=Oi.value)==null?void 0:ze.find(fe=>(fe==null?void 0:fe.condition)==="child");k.fatherSyncContents=(ue=k==null?void 0:k.fatherSyncContents)==null?void 0:ue.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}if(k!=null&&k.sonSyncContents){Array.isArray((N=k==null?void 0:k.sonSyncContents)==null?void 0:N[0])&&(k.sonSyncContents=(se=k==null?void 0:k.sonSyncContents)==null?void 0:se[0]);let le=(G=Oi.value)==null?void 0:G.find(fe=>(fe==null?void 0:fe.condition)==="child");k.sonSyncContents=(ve=k==null?void 0:k.sonSyncContents)==null?void 0:ve.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}if(k!=null&&k.relatedQuotes){Array.isArray((ke=k==null?void 0:k.relatedQuotes)==null?void 0:ke[0])&&(k.relatedQuotes=(Be=k==null?void 0:k.relatedQuotes)==null?void 0:Be[0]);let le=(We=Oi.value)==null?void 0:We.find(fe=>(fe==null?void 0:fe.condition)==="child");k.relatedQuotes=(he=k==null?void 0:k.relatedQuotes)==null?void 0:he.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}k={filter:(Oe=(I=k==null?void 0:k.compData)==null?void 0:I.find(le=>(le==null?void 0:le.key)==="filter"))==null?void 0:Oe.contents,key:k==null?void 0:k.comp,name:E,tableColumns:F,tableContents:V,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents,calculatorFilters:k==null?void 0:k.calculatorFilters}}else{let V=(xe=(ge=(oe=k==null?void 0:k.compData)==null?void 0:oe.find(le=>(le==null?void 0:le.key)==="formContent"))==null?void 0:ge.contents)==null?void 0:xe.map(le=>(le==null?void 0:le.value)??"");V=[V];let F=(Ke=(we=(ne=k==null?void 0:k.compData)==null?void 0:ne.find(le=>(le==null?void 0:le.key)==="formContent"))==null?void 0:we.contents)==null?void 0:Ke.map(le=>(le.value="",le));k={contents:V,filter:(Ge=(ya=k==null?void 0:k.compData)==null?void 0:ya.find(le=>(le==null?void 0:le.key)==="filter"))==null?void 0:Ge.contents,key:k==null?void 0:k.comp,name:E,value:F,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents,calculatorFilters:k==null?void 0:k.calculatorFilters}}return k.isShow=!1,k}),_=await Promise.all(_);let S=[{key:"menuPath",contents:[{path:a,fatherPath:(v=(C=(d=D==null?void 0:D.data)==null?void 0:d.result)==null?void 0:C[0])==null?void 0:v.father_name,isShow:!1}]},{key:a,contents:_}];await R.createPlatFormDataApi({platId:parseInt((H=wn==null?void 0:wn.value)==null?void 0:H.plat_id),changeData:S});let x=await R.getPageDataApi({platId:parseInt((T=wn==null?void 0:wn.value)==null?void 0:T.plat_id),pageName:a});i=(j=x==null?void 0:x.data)==null?void 0:j.result}}l&&await Mc(i,!!(r!=null&&r.originPath));let o=await Bs(i,r);return l&&(o=await Vf(o)),o==null?void 0:o.filter(D=>D)},zs=async a=>{var n,i,o,p,s,u,y,b,g,d,C;let l=(n=a==null?void 0:a.menus)==null?void 0:n.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+((o=(i=a.value)==null?void 0:i.split(" "))==null?void 0:o[0]));let r=await qr(l,!1);if(r=(p=r==null?void 0:r.filter(v=>{var H,T;return(v==null?void 0:v.name)===((T=a==null?void 0:a.groups)==null?void 0:T[((H=a==null?void 0:a.groups)==null?void 0:H.length)-1])}))==null?void 0:p[0],(u=(s=r==null?void 0:r.compData)==null?void 0:s.find(v=>(v==null?void 0:v.key)==="tableContents"))!=null&&u.contents){r=(b=(y=r==null?void 0:r.compData)==null?void 0:y.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:b.contents;let v=((g=a==null?void 0:a.words)==null?void 0:g[0])??(a==null?void 0:a.prop);return r=r==null?void 0:r.filter(H=>{var T,j,D,_;return(H==null?void 0:H[a!=null&&a.endChildMenu?v:(T=a==null?void 0:a.words)==null?void 0:T[0]])===(a!=null&&a.relatedWords&&((j=a==null?void 0:a.relatedWords)==null?void 0:j.length)>0?(_=(D=a.value)==null?void 0:D.split(" "))==null?void 0:_[0]:a.value)}),r==null?void 0:r[0]}else{let v=(C=(d=r==null?void 0:r.compData)==null?void 0:d.find(T=>(T==null?void 0:T.key)==="formContent"))==null?void 0:C.contents,H={};return v==null||v.forEach(T=>{H[T.prop]=T.value}),H}},Ff={key:0,class:"extra-button-content"},Pf={class:"table-operator-wrap"},Hf={key:0,class:"extra-button-filter"},jf={key:1,class:"extra-header"},Uf=["onClick"],qf={class:"table-op-text"},Wf={class:"table-op-text"},Gf={class:"drop-menu",style:{width:"120px"}},Kf=["onClick"],Yf={key:0},Jf={key:1},Xf=["onClick"],Zf={class:"table-op-text"},Qf={key:1,class:"extra-button-content tabs-button-wrapper"},e0={class:"table-operator-wrap"},a0={class:"extra-button-filter"},l0={key:0,class:"extra-header"},r0={class:"table-op-action"},n0={class:"table-op-text"},i0={class:"drop-menu",style:{width:"120px"}},o0={key:0},t0={key:1},s0=["onClick"],c0={class:"table-op-text"},u0={__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 r=l,n=a,i=()=>{const M=(n==null?void 0:n.menuFilter)||[];return Array.isArray(M)&&(M==null?void 0:M.some(O=>{const Q=typeof O=="string"?O:JSON.stringify(O);return Q==null?void 0:Q.includes("HideGroup=Yes")}))},o=e.ref(""),p=e.ref(!1),s=e.ref(!1),u=e.ref([]),y=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),b=[{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 g(M,O){return M.map(Q=>{const J={...Q};return O.forEach(ye=>{delete J[ye]}),J})}function d(M){if(!M||M.t!=="n")return(M==null?void 0:M.v)??"";const O=M.v;if(M.z){const Q=String(M.z).toLowerCase(),J=["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 J)if(Q.includes(U))return C(O);const ye=/[ymdhms]/.test(Q),te=/^[0#\.\,\s]+$/.test(Q.replace(/[\\\/\-:]/g,""));if(ye&&!te)return C(O)}if(O>=1&&O<=73050){if(O<5e3)return O;if(O>=5e3&&O<4e4){const Q=Math.floor((O-25569)/365.25)+1970;return Q>=1970&&Q<=2e3&&M.z&&/[ymd]/.test(String(M.z).toLowerCase())?C(O):O}if(O>=4e4)return C(O)}return O}function C(M){if(typeof M!="number")return M;try{const O=new Date((M-25569)*86400*1e3);if(isNaN(O.getTime()))return M;const Q=O.getFullYear(),J=String(O.getMonth()+1).padStart(2,"0"),ye=String(O.getDate()).padStart(2,"0");return`${Q}-${J}-${ye}`}catch{return M}}const v=M=>{const O=M.raw;if(!O)return;const Q=new FileReader;Q.onload=J=>{try{const ye=new Uint8Array(J.target.result),te=re.readSync(ye,{type:"array"}),U=te.SheetNames[0],q=te.Sheets[U],ee=re.utils.decode_range(q["!ref"]).e.c+1,pe=new Array(ee).fill(""),ze=[];for(const ve in q){if(ve[0]==="!")continue;const{r:ke,c:Be}=re.utils.decode_cell(ve),We=q[ve];let he=d(We);if((he==null||he==="")&&(he=""),ke===0)pe[Be]=he;else{if(!ze[ke-1]){ze[ke-1]={};for(let I=0;I<ee;I++)ze[ke-1][`col_${I}`]=""}ze[ke-1][`col_${Be}`]=he}}for(let ve=0;ve<ee;ve++)pe[ve]===void 0&&(pe[ve]="");const ue=[];for(let ve=0;ve<pe.length;ve++)(!pe[ve]||pe[ve].toString().trim()==="")&&ue.push(ve);let N,se;(ue==null?void 0:ue.length)>0?(Xa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=pe.filter((ve,ke)=>!ue.includes(ke)),se=g(ze,ue==null?void 0:ue.map(ve=>`col_${ve}`))):(N=pe,se=ze);const G=ze==null?void 0:ze[0];if(!(G!=null&&G.hasOwnProperty("col_0")))return Xa.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",N,se)}catch(ye){throw Xa.ElMessage.error(ye.message),new Error(ye.message)}},Q.readAsArrayBuffer(O)},H=M=>{var Q;const O=(Q=u.value)==null?void 0:Q.reduce((J,ye,te)=>(te===0?J[ye.label]=M:J[ye.label]=ye==null?void 0:ye.value,J),{});r("filter",O,M,!0)},T=(M,O={})=>{r("buttonClick",M,"",O)},j=M=>{var O,Q;u.value=(Q=(O=re.getColumnChild(R.cloneDeep(M)))==null?void 0:O.filter(J=>(J==null?void 0:J.label)!==""&&(J==null?void 0:J.label)!=="操作"))==null?void 0:Q.map(J=>({label:(J==null?void 0:J.label)??"",value:"",name:(J==null?void 0:J.prop)??"",isFormColHidden:J==null?void 0:J.isTableColHidden,width:3,prop:(J==null?void 0:J.prop)??""}))},D=e.ref(!1),_=M=>{var O;if((M==null?void 0:M.buttonName)==="确认"&&(r("filter",M==null?void 0:M.content),D.value=(M==null?void 0:M.content)&&Object.values(M==null?void 0:M.content).length>0),(M==null?void 0:M.buttonName)==="清空"){const Q=R.cloneDeep(M==null?void 0:M.content);for(const J in Q)Q[J]="";u.value=(O=u.value)==null?void 0:O.map(J=>({...J,value:""})),r("filter",Q),D.value=!1}p.value=!1},S=()=>{p.value=!p.value,s.value=!0},x=()=>{var O,Q;u.value=(O=u.value)==null?void 0:O.map(J=>({...J,value:""}));const M=(Q=u.value)==null?void 0:Q.reduce((J,ye)=>(J[ye.label]=ye.value,J),{});r("filter",M)},k=e.ref(null);let E;return E=M=>{var ye;if(!p.value)return;const O=(ye=k==null?void 0:k.value)==null?void 0:ye.$el,Q=O==null?void 0:O.contains(M.target);let J=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(te=>{te.contains(M.target)&&(J=!0)}),!Q&&!J&&(p.value=!1)},e.onMounted(()=>{document.addEventListener("click",E),j(n.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E)}),e.watch(()=>n.columns,()=>{j(n.columns)},{deep:!0,immediate:!0}),(M,O)=>{var q,X,ee,pe,ze,ue,N,se;const Q=e.resolveComponent("el-icon"),J=e.resolveComponent("svg-icon"),ye=e.resolveComponent("el-input"),te=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:(n==null?void 0:n.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((n==null?void 0:n.level)-1)*12+"px",fontWeight:600-((n==null?void 0:n.level)-1)*100>=400?600-((n==null?void 0:n.level)-1)*100:400,fontSize:17-(n==null?void 0:n.level)>=14?17-(n==null?void 0:n.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Pf,[n!=null&&n.filterShow?(e.openBlock(),e.createElementBlock("div",Hf,[e.createVNode(vd,{trigger:"contextmenu",ref_key:"popOverRef",ref:k,title:"",width:800,placement:"bottom-start",isVisible:p.value,"onUpdate:isVisible":O[4]||(O[4]=G=>p.value=G)},{reference:e.withCtx(()=>{var G,ve,ke,Be;return[e.createVNode(ye,{modelValue:o.value,"onUpdate:modelValue":O[0]||(O[0]=We=>o.value=We),style:{"min-width":"80px"},placeholder:D.value?(ke=(ve=(G=a.filterValues)==null?void 0:G.filter(We=>We))==null?void 0:ve.slice(0,3))==null?void 0:ke.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:H,disabled:((Be=u.value)==null?void 0:Be.length)===0},{suffix:e.withCtx(()=>{var We,he;return[!o.value&&((he=(We=a.filterValues)==null?void 0:We.filter(I=>I))!=null&&he.join("/"))?(e.openBlock(),e.createBlock(Q,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(S,["stop"])},[e.createVNode(J,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:O[1]||(O[1]=e.withModifiers(()=>{},["stop"])),onKeyup:O[2]||(O[2]=e.withModifiers(()=>{},["stop"])),onKeypress:O[3]||(O[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:u.value,buttonValue:y.value,isEnableWrap:!1,isButtonRow:!1,key:y.value,isStartJustify:!1,onOnButtonClick:_},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((q=a.buttons)==null?void 0:q.length)>0?(e.openBlock(),e.createElementBlock("div",jf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((X=a.buttons)==null?void 0:X.filter(G=>a.isDevMode||(G==null?void 0:G.label)!=="修改模板"),(G,ve)=>{var ke;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ve},[(G==null?void 0:G.type)==="upload"?(e.openBlock(),e.createBlock(te,{key:0,class:"upload-button-wrap","on-change":v,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Be;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:We=>T(G==null?void 0:G.label)},[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",qf,e.toDisplayString(G==null?void 0:G.label),1)],10,Uf)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(ul._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Be;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",Wf,e.toDisplayString(G==null?void 0:G.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Gf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G==null?void 0:G.contents,Be=>{var We,he;return e.openBlock(),e.createElementBlock("div",{key:Be==null?void 0:Be.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:I=>!a.lockingPage&&T(Be==null?void 0:Be.label)},[e.createTextVNode(e.toDisplayString(Be==null?void 0:Be.label),1),(We=Be==null?void 0:Be.label)!=null&&We.includes("选中")?(e.openBlock(),e.createElementBlock("span",Yf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(he=Be==null?void 0:Be.label)!=null&&he.includes("全部")?(e.openBlock(),e.createElementBlock("span",Jf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,Kf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(G!=null&&G.type)||(G==null?void 0:G.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Be=>!a.lockingPage&&T(G==null?void 0:G.label,G)},[e.createVNode(J,{class:"table-op-icon",name:((ke=b==null?void 0:b.find(Be=>(Be==null?void 0:Be.label)===(G==null?void 0:G.label)))==null?void 0:ke.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",Zf,e.toDisplayString(G==null?void 0:G.label),1)],10,Xf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Qf,[e.createElementVNode("div",e0,[e.createElementVNode("div",a0,[e.createVNode(ye,{modelValue:o.value,"onUpdate:modelValue":O[5]||(O[5]=G=>o.value=G),style:{"min-width":"80px"},placeholder:D.value?(ze=(pe=(ee=a.filterValues)==null?void 0:ee.filter(G=>G))==null?void 0:pe.slice(0,3))==null?void 0:ze.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:H,disabled:((ue=u.value)==null?void 0:ue.length)===0},{suffix:e.withCtx(()=>{var G,ve;return[!o.value&&((ve=(G=a.filterValues)==null?void 0:G.filter(ke=>ke))!=null&&ve.join("/"))?(e.openBlock(),e.createBlock(Q,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(S,["stop"])},[e.createVNode(J,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",l0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=a.buttons)==null?void 0:se.filter(G=>a.isDevMode||(G==null?void 0:G.label)!=="修改模板"),(G,ve)=>{var ke;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ve},[(G==null?void 0:G.type)==="upload"?(e.openBlock(),e.createBlock(te,{key:0,class:"upload-button-wrap","on-change":v,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Be;return[e.createElementVNode("div",r0,[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",n0,e.toDisplayString(G==null?void 0:G.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(ul._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(U,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Be;return[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(G==null?void 0:G.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",i0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G==null?void 0:G.contents,Be=>(e.openBlock(),e.createBlock(U,{key:Be==null?void 0:Be.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:We=>T(Be==null?void 0:Be.label)},{default:e.withCtx(()=>{var We,he;return[e.createTextVNode(e.toDisplayString(Be==null?void 0:Be.label),1),(We=Be==null?void 0:Be.label)!=null&&We.includes("选中")?(e.openBlock(),e.createElementBlock("span",o0,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(he=Be==null?void 0:Be.label)!=null&&he.includes("全部")?(e.openBlock(),e.createElementBlock("span",t0,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(G!=null&&G.type)||(G==null?void 0:G.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Be=>!a.lockingPage&&T(G==null?void 0:G.label,G)},[e.createVNode(J,{class:"table-op-icon",name:(ke=b==null?void 0:b.find(Be=>(Be==null?void 0:Be.label)===(G==null?void 0:G.label)))==null?void 0:ke.icon},null,8,["name"]),e.createElementVNode("span",c0,e.toDisplayString(G==null?void 0:G.label),1)],10,s0)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},d0=fr._export_sfc(u0,[["__scopeId","data-v-c54c7b35"]]),p0={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,r)=>{const n=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,o=>{var p;return e.openBlock(),e.createBlock(n,{key:o==null?void 0:o.prop,label:o==null?void 0:o.label,prop:o==null?void 0:o.prop,fixed:(o==null?void 0:o.prop)==="operate"?"right":o==null?void 0:o.fixed,align:(o==null?void 0:o.align)??"left","show-overflow-tooltip":(o==null?void 0:o.showOverflowTooltip)??!0,width:o==null?void 0:o.width,"min-width":(o==null?void 0:o.minWidth)||((o==null?void 0:o.prop)==="operate"?80:(((p=o==null?void 0:o.label)==null?void 0:p.length)*2||4)*27)},{default:e.withCtx(s=>[e.renderSlot(l.$slots,"content",{row:s.row,column:s.column,$index:s.$index,scope:s}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,(u,y)=>(e.openBlock(),e.createBlock(ul._sfc_main$2,{key:y,column:u,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(b,g)=>({name:g,fn:e.withCtx(({row:d,slotData:C,item:v,column:H})=>[e.renderSlot(l.$slots,g,e.mergeProps({ref_for:!0},C??d,{item:v??u,slotData:C??d,row:d,column:H,columnProp:u}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class f0 extends Fl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,r,n,i){const o=this,p=new Fl.FileLoader(o.manager);p.setPath(o.path),p.setResponseType("arraybuffer"),p.setRequestHeader(o.requestHeader),p.setWithCredentials(o.withCredentials),p.load(l,function(s){try{r(o.parse(s))}catch(u){i?i(u):console.error(u),o.manager.itemError(l)}},n,i)}_getDataView(l,r,n,i){switch(n){case"F":return i===8?l.getFloat64(r,this.littleEndian):l.getFloat32(r,this.littleEndian);case"I":return i===1?l.getInt8(r):i===2?l.getInt16(r,this.littleEndian):l.getInt32(r,this.littleEndian);case"U":return i===1?l.getUint8(r):i===2?l.getUint16(r,this.littleEndian):l.getUint32(r,this.littleEndian)}}parse(l){function r(C,v){const H=C.length,T=new Uint8Array(v);let j=0,D=0,_,S,x;do if(_=C[j++],_<32){if(_++,D+_>v)throw new Error("Output buffer is not large enough");if(j+_>H)throw new Error("Invalid compressed data");do T[D++]=C[j++];while(--_)}else{if(S=_>>5,x=D-((_&31)<<8)-1,j>=H)throw new Error("Invalid compressed data");if(S===7&&(S+=C[j++],j>=H))throw new Error("Invalid compressed data");if(x-=C[j++],D+S+2>v)throw new Error("Output buffer is not large enough");if(x<0)throw new Error("Invalid compressed data");if(x>=D)throw new Error("Invalid compressed data");do T[D++]=T[x++];while(--S+2)}while(j<H);return T}function n(C){const v={},H=new Uint8Array(C);let T="",j="",D=0,_=!1;const S=H.length;for(;D<S&&_===!1;){const M=String.fromCharCode(H[D++]);M===`
|
|
2
|
+
`||M==="\r"?(j.trim().toLowerCase().startsWith("data")&&(_=!0),j=""):j+=M,T+=M}const x=T.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(T.slice(x-1));if(v.data=k[1],v.headerLen=k[0].length+x,v.str=T.slice(0,v.headerLen),v.str=v.str.replace(/#.*/gi,""),v.version=/^VERSION (.*)/im.exec(v.str),v.fields=/^FIELDS (.*)/im.exec(v.str),v.size=/^SIZE (.*)/im.exec(v.str),v.type=/^TYPE (.*)/im.exec(v.str),v.count=/^COUNT (.*)/im.exec(v.str),v.width=/^WIDTH (.*)/im.exec(v.str),v.height=/^HEIGHT (.*)/im.exec(v.str),v.viewpoint=/^VIEWPOINT (.*)/im.exec(v.str),v.points=/^POINTS (.*)/im.exec(v.str),v.version!==null&&(v.version=parseFloat(v.version[1])),v.fields=v.fields!==null?v.fields[1].split(" "):[],v.type!==null&&(v.type=v.type[1].split(" ")),v.width!==null&&(v.width=parseInt(v.width[1])),v.height!==null&&(v.height=parseInt(v.height[1])),v.viewpoint!==null&&(v.viewpoint=v.viewpoint[1]),v.points!==null&&(v.points=parseInt(v.points[1],10)),v.points===null&&(v.points=v.width*v.height),v.size!==null&&(v.size=v.size[1].split(" ").map(function(M){return parseInt(M,10)})),v.count!==null)v.count=v.count[1].split(" ").map(function(M){return parseInt(M,10)});else{v.count=[];for(let M=0,O=v.fields.length;M<O;M++)v.count.push(1)}v.offset={};let E=0;for(let M=0,O=v.fields.length;M<O;M++)v.data==="ascii"?v.offset[v.fields[M]]=M:(v.offset[v.fields[M]]=E,E+=v.size[M]*v.count[M]);return v.rowSize=E,v}const i=n(l),o=[],p=[],s=[],u=[],y=[],b=new Fl.Color;if(i.data==="ascii"){const C=i.offset,T=new TextDecoder().decode(l).slice(i.headerLen).split(`
|
|
3
|
+
`);for(let j=0,D=T.length;j<D;j++){if(T[j]==="")continue;const _=T[j].split(" ");if(C.x!==void 0&&(o.push(parseFloat(_[C.x])),o.push(parseFloat(_[C.y])),o.push(parseFloat(_[C.z]))),C.rgb!==void 0){const S=i.fields.findIndex(J=>J==="rgb"),x=i.type[S],k=parseFloat(_[C.rgb]);let E=k;if(x==="F"){const J=new Float32Array(1);J[0]=k,E=new Int32Array(J.buffer)[0]}const M=(E>>16&255)/255,O=(E>>8&255)/255,Q=(E>>0&255)/255;b.setRGB(M,O,Q,Fl.SRGBColorSpace),s.push(b.r,b.g,b.b)}C.normal_x!==void 0&&(p.push(parseFloat(_[C.normal_x])),p.push(parseFloat(_[C.normal_y])),p.push(parseFloat(_[C.normal_z]))),C.intensity!==void 0&&u.push(parseFloat(_[C.intensity])),C.label!==void 0&&y.push(parseInt(_[C.label]))}}if(i.data==="binary_compressed"){const C=new Uint32Array(l.slice(i.headerLen,i.headerLen+8)),v=C[0],H=C[1],T=r(new Uint8Array(l,i.headerLen+8,v),H),j=new DataView(T.buffer),D=i.offset;for(let _=0;_<i.points;_++){if(D.x!==void 0){const S=i.fields.indexOf("x"),x=i.fields.indexOf("y"),k=i.fields.indexOf("z");o.push(this._getDataView(j,i.points*D.x+i.size[S]*_,i.type[S],i.size[S])),o.push(this._getDataView(j,i.points*D.y+i.size[x]*_,i.type[x],i.size[x])),o.push(this._getDataView(j,i.points*D.z+i.size[k]*_,i.type[k],i.size[k]))}if(D.rgb!==void 0){const S=i.fields.indexOf("rgb"),x=j.getUint8(i.points*D.rgb+i.size[S]*_+2)/255,k=j.getUint8(i.points*D.rgb+i.size[S]*_+1)/255,E=j.getUint8(i.points*D.rgb+i.size[S]*_+0)/255;b.setRGB(x,k,E,Fl.SRGBColorSpace),s.push(b.r,b.g,b.b)}if(D.normal_x!==void 0){const S=i.fields.indexOf("normal_x"),x=i.fields.indexOf("normal_y"),k=i.fields.indexOf("normal_z");p.push(this._getDataView(j,i.points*D.normal_x+i.size[S]*_,i.type[S],i.size[S])),p.push(this._getDataView(j,i.points*D.normal_y+i.size[x]*_,i.type[x],i.size[x])),p.push(this._getDataView(j,i.points*D.normal_z+i.size[k]*_,i.type[k],i.size[k]))}if(D.intensity!==void 0){const S=i.fields.indexOf("intensity");u.push(this._getDataView(j,i.points*D.intensity+i.size[S]*_,i.type[S],i.size[S]))}if(D.label!==void 0){const S=i.fields.indexOf("label");y.push(j.getInt32(i.points*D.label+i.size[S]*_,this.littleEndian))}}}if(i.data==="binary"){const C=new DataView(l,i.headerLen),v=i.offset;for(let H=0,T=0;H<i.points;H++,T+=i.rowSize){if(v.x!==void 0){const j=i.fields.indexOf("x"),D=i.fields.indexOf("y"),_=i.fields.indexOf("z");o.push(this._getDataView(C,T+v.x,i.type[j],i.size[j])),o.push(this._getDataView(C,T+v.y,i.type[D],i.size[D])),o.push(this._getDataView(C,T+v.z,i.type[_],i.size[_]))}if(v.rgb!==void 0){const j=C.getUint8(T+v.rgb+2)/255,D=C.getUint8(T+v.rgb+1)/255,_=C.getUint8(T+v.rgb+0)/255;b.setRGB(j,D,_,Fl.SRGBColorSpace),s.push(b.r,b.g,b.b)}if(v.normal_x!==void 0){const j=i.fields.indexOf("normal_x"),D=i.fields.indexOf("normal_y"),_=i.fields.indexOf("normal_z");p.push(this._getDataView(C,T+v.normal_x,i.type[j],i.size[j])),p.push(this._getDataView(C,T+v.normal_y,i.type[D],i.size[D])),p.push(this._getDataView(C,T+v.normal_z,i.type[_],i.size[_]))}if(v.intensity!==void 0){const j=i.fields.indexOf("intensity");u.push(this._getDataView(C,T+v.intensity,i.type[j],i.size[j]))}v.label!==void 0&&y.push(C.getInt32(T+v.label,this.littleEndian))}}const g=new Fl.BufferGeometry;o.length>0&&g.setAttribute("position",new Fl.Float32BufferAttribute(o,3)),p.length>0&&g.setAttribute("normal",new Fl.Float32BufferAttribute(p,3)),s.length>0&&g.setAttribute("color",new Fl.Float32BufferAttribute(s,3)),u.length>0&&g.setAttribute("intensity",new Fl.Float32BufferAttribute(u,1)),y.length>0&&g.setAttribute("label",new Fl.Int32BufferAttribute(y,1)),g.computeBoundingSphere();const d=new Fl.PointsMaterial({size:.005});return s.length>0&&(d.vertexColors=!0),new Fl.Points(g,d)}}const h0=R.useModelComp(R.pinia),{systemPath:Ms}=R.storeToRefs(h0),ko=e.ref(),Is=new WeakMap;function v0(a,l,r,n,i){const o=async d=>{try{const C=await R.platformDownloadFile({url:d});if(C.status!==200)throw new Error(`下载失败: ${C.status}`);return C.data}catch(C){throw console.error("addModelFromUrl失败:",C),C}},p=d=>new Promise((C,v)=>{const H=new FileReader;H.onload=T=>{try{const j=T.target.result,_=new Yn.MTLLoader().parse(j);_.preload(),C(_)}catch(j){v(j)}},H.onerror=()=>{v(new Error("MTL文件读取失败"))},H.readAsText(d)}),s=async d=>{const C={materials:{},create:function(v){return this.materials[v]?this.materials[v]:(console.warn(`Material '${v}' not found, using default material`),new Fl.MeshPhongMaterial({color:8947848,side:Fl.DoubleSide}))},getAsArray:function(){const v=[];for(const H in this.materials)v.push(this.materials[H]);return v},preload:function(){for(const v in this.materials)this.materials[v].map&&(this.materials[v].map.needsUpdate=!0)}};for(const v of d){const H=await p(v);Object.assign(C.materials,H.materials)}return C.preload(),C},u=async(d,C=[])=>new Promise((v,H)=>{const T=new FileReader;T.onload=async j=>{try{const D=j.target.result;let _=null;C&&C.length>0&&(C.length===1?_=await p(C[0]):_=await s(C));const S=new Yn.OBJLoader;_&&S.setMaterials(_);const x=S.parse(D);_||x.traverse(k=>{k.isMesh&&(k.material=new Fl.MeshPhongMaterial({color:8947848,side:Fl.DoubleSide}))}),v(x)}catch(D){H(D)}},T.onerror=()=>{H(new Error("OBJ文件读取失败"))},T.readAsText(d)}),y=async d=>{var C;try{r.value=!0;const{scene:v}=a();if(!v)throw new Error("Scene not initialized");i();const H=[];for(let T=0;T<d.length;T++){const j=d[T];n.value=`正在加载模型 ${T+1}/${d.length}...`;const D=await o(j.objUrl),_=((C=j.objUrl)==null?void 0:C.split("/").pop())||`model_${T}.obj`,S=new File([D],_,{type:D.type});let x=[];if(j.mtlUrls){const E=Array.isArray(j.mtlUrls)?j.mtlUrls:[j.mtlUrls];for(let M=0;M<E.length;M++){const O=E[M],Q=await o(O),J=(O==null?void 0:O.split("/").pop())||`material_${T}_${M}.mtl`,ye=new File([Q],J,{type:Q.type});x.push(ye)}}const k=await u(S,x);v.add(k),l.value.push(k),H.push(k)}return r.value=!1,H}catch(v){throw console.error("加载模型失败:",v),r.value=!1,v}},b=async(d,C,v=[],H=[])=>{let T;const j=d.toLowerCase();switch(j){case".txt":case".cpt":case".obj":const D=await C.text();if(j===".txt"||j===".cpt"){const I=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,oe=[...D.matchAll(I)].map(ne=>({x:parseFloat(ne[1]),y:parseFloat(ne[2]),z:parseFloat(ne[3])})),ge=new Fl.BufferGeometry,xe=oe.flatMap(ne=>[ne.x,ne.y,ne.z]);if(ge.setAttribute("position",new Fl.Float32BufferAttribute(xe,3)),j===".txt"){const ne=new Fl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});T=new Fl.Points(ge,ne)}else if(j===".cpt"){const ne=new Fl.LineBasicMaterial({color:"#5B5C99",linewidth:100});T=new Fl.Line(ge,ne)}}else if(j===".obj"){const I=new Yn.OBJLoader;if(v&&v.length>0){const Oe=new Yn.MTLLoader;for(const oe of v){const ge=await oe.text(),xe=Oe.parse(ge);xe.preload(),I.setMaterials(xe);break}}T=I.parse(D),(!v||v.length===0)&&T.traverse(Oe=>{Oe.isMesh&&(Oe.material=new Fl.MeshPhongMaterial({color:"#B3B3D4"})),Oe instanceof Fl.Mesh&&(Oe.material.side=Fl.DoubleSide)})}break;case".stl":const _=await C.arrayBuffer(),x=new Yn.STLLoader().parse(_),k=new Fl.MeshPhongMaterial({color:"#B3B3D4",side:Fl.DoubleSide});T=new Fl.Mesh(x,k);break;case".nc":const E=["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"],M={"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)"},O=new Fl.Group,Q=E.map(I=>new Promise((Oe,oe)=>{new Yn.STLLoader().load(Ms.value===""?`/model/${I}`:`${Ms.value}\\${I}`,xe=>{const ne=new Fl.MeshPhongMaterial({color:M[I]||"#B3B3D4",side:Fl.DoubleSide}),we=new Fl.Mesh(xe,ne);Oe(we)},void 0,oe)}));try{(await Promise.all(Q)).forEach(Oe=>O.add(Oe)),T=O}catch(I){throw console.error("加载NC文件对应的STL文件失败:",I),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const J=new f0,ye=new Fl.Group;try{const I=await Xa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),Oe=new Blob([I.data],{type:"application/octet-stream;charset=UTF-8"}),oe=await Xa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ge=new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"}),xe=await new Promise((we,Ke)=>{const ya=URL.createObjectURL(Oe);J.load(ya,Ge=>{const V=new Float32Array(Ge.geometry.attributes.position.count*3);for(let F=0;F<Ge.geometry.attributes.position.count;F++)V[F*3]=1,V[F*3+1]=0,V[F*3+2]=0;Ge.geometry.setAttribute("color",new Fl.BufferAttribute(V,3)),Ge.material.vertexColors=!0,Ge.scale.set(.3,.3,.3),URL.revokeObjectURL(ya),we(Ge)},void 0,Ke)}),ne=await new Promise((we,Ke)=>{const ya=URL.createObjectURL(ge);J.load(ya,Ge=>{const V=new Float32Array(Ge.geometry.attributes.position.count*3);for(let F=0;F<Ge.geometry.attributes.position.count;F++)V[F*3]=0,V[F*3+1]=1,V[F*3+2]=0;Ge.geometry.setAttribute("color",new Fl.BufferAttribute(V,3)),Ge.material.vertexColors=!0,Ge.scale.set(.3,.3,.3),URL.revokeObjectURL(ya),we(Ge)},void 0,Ke)});ye.add(xe),ye.add(ne),T=ye}catch(I){throw console.error("PCD文件加载失败:",I),new Error("无法加载PCD文件")}break;case".urdf":const te=URL.createObjectURL(C),U=new dd.URDFLoader,q="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},ee=new WeakMap,pe=new WeakMap,ze=new WeakMap,ue=async I=>{if(ee.has(I))return console.log(`从缓存加载: ${I}`),ee.get(I);try{const Oe=await Xa.axios.get(`${q}/${I}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),oe=new Blob([Oe.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&ee.set(I,oe),oe}catch(Oe){throw console.error(`加载文件失败: ${I}`,Oe),new Error(`无法加载文件: ${I}`)}},N=(I="default")=>{if(pe.has(I))return pe.get(I);const Oe=new Fl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Fl.FrontSide});return pe.set(I,Oe),Oe},se=I=>{try{I.isBufferGeometry&&I.mergeVertices&&I.mergeVertices(),I.computeVertexNormals&&I.computeVertexNormals(),I.computeBoundingSphere&&I.computeBoundingSphere(),I.deleteAttribute&&I.deleteAttribute("uv2")}catch(Oe){console.warn("几何体优化失败,使用原始几何体:",Oe)}return I},G=async(I,Oe,oe)=>{const ge=`stl_${Oe}`;if(ze.has(ge)){const Ke=ze.get(ge);return new Fl.Mesh(Ke,N())}const xe=await I.arrayBuffer();let we=new Yn.STLLoader(oe).parse(xe);return we=se(we),ze.set(ge,we),new Fl.Mesh(we,N())},ve=async(I,Oe,oe)=>{const ge=`obj_${Oe}`;if(ee.has(ge))return ee.get(ge).clone();const xe=await I.text(),ne=new Yn.OBJLoader(oe),we=Oe.replace(".obj",".mtl");try{const Ge=await(await ue(we)).text(),F=new Yn.MTLLoader(oe).parse(Ge);F.preload(),ne.setMaterials(F)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${we}`)}const Ke=ne.parse(xe);return Ke.traverse(ya=>{ya.isMesh&&(ya.geometry=se(ya.geometry),ya.castShadow=!0,ya.receiveShadow=!0,ya.renderOrder=1)}),ee.set(ge,Ke),Ke},ke=(I,Oe)=>{const oe=new Fl.LOD;if(oe.addLevel(I,0),I.geometry){const ge=I.geometry.clone(),xe=new Fl.Mesh(ge,I.material);oe.addLevel(xe,50)}return oe};let Be=0,We=0;const he=[];U.loadMeshCb=async(I,Oe,oe,ge,xe)=>{const ne=I.split("/").pop(),we=oe||(()=>{});Be++;const Ke=new Promise(async(ya,Ge)=>{try{const V=await ue(ne);if(!V||V.size===0)throw new Error(`文件为空: ${ne}`);const F=ne.split(".").pop().toLowerCase();let le;switch(F){case"stl":le=await G(V,ne,Oe);break;case"obj":le=await ve(V,ne,Oe);break;default:throw new Error(`不支持的文件格式: ${F}`)}X.enableLOD&&le.isMesh&&(le=ke(le,ne)),we(le),We++,ge&&ge({loaded:We,total:Be,progress:We/Be}),ya(le)}catch(V){console.error(`mesh文件加载失败: ${ne}`,V);const F=new Fl.Group;we(F),ya(F);const le=new Fl.BoxGeometry(.1,.1,.1),fe=new Fl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Fl.Mesh(le,fe)}});he.push(Ke)};try{if(!te){ko.value=void 0;break}if(T=await U.loadAsync(te),console.log(`URDF文件加载完成,等待${Be}个mesh文件加载...`),he.length>0)try{await Promise.allSettled(he),console.log(`所有mesh文件处理完成,成功加载: ${We}/${Be}`)}catch(oe){console.warn("部分mesh文件加载失败,但继续显示模型",oe)}T.traverse(oe=>{oe.isMesh&&(oe.castShadow=!0,oe.receiveShadow=!0,oe.renderOrder=1,oe.material&&(oe.material.needsUpdate=!0))}),console.time("计算包围盒");const I=new Fl.Box3;I.expandByObject(T);const Oe=`urdf_${Date.now()}`;T.userData.boundingBox=I.clone(),T.userData.modelId=Oe,Is.set(Oe,{box:I.clone(),center:I.getCenter(new Fl.Vector3),size:I.getSize(new Fl.Vector3),maxSize:Math.max(...I.getSize(new Fl.Vector3).toArray())}),ko.value=T,console.log("URDF模型加载完成并优化")}catch(I){console.error("URDF加载失败:",I),ko.value=void 0}finally{te&&URL.revokeObjectURL(te)}break;default:throw new Error(`不支持的文件格式: ${d}`)}return T};return{addModelsFromUrls:y,loadModelByDefaultPath:async d=>{console.log(d);try{r.value=!0,n.value="正在加载模型...";const{scene:C}=a();if(!C)throw new Error("Scene not initialized");i(),await new Promise(H=>setTimeout(H,100));const v=[];for(let H=0;H<d.length;H++){const T=d[H],j=await b(T.suffix,T.blob,T.mtlBlobs||[],T.meshFiles||[]);j&&(C.add(j),l.value.push(j),v.push(j))}return r.value=!1,n.value="",v}catch(C){throw console.error("加载模型失败:",C),r.value=!1,n.value="",C}},urdfModel:ko,modelBoundingBoxes:Is}}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=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,i,o,p,s,u=function(g,d){d.parentNode.insertBefore(g,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(g){console&&console.log(g)}}n=function(){var g,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,(g=document.body).firstChild?u(d,g.firstChild):g.appendChild(d))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),n()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=n,p=a.document,s=!1,b(),p.onreadystatechange=function(){p.readyState=="complete"&&(p.onreadystatechange=null,y())})}function y(){s||(s=!0,o())}function b(){try{p.documentElement.doScroll("left")}catch{return void setTimeout(b,50)}y()}})(window);const m0=["onClick"],y0=["src"],g0=["src"],b0=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:""},backgroundPosition:{default:"Center"},iconUrl:{default:void 0},calculator:{default:()=>[]},textBackColor:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(null),o=e.ref(null),p=x=>{var E,M,O,Q;let k={};if(x!=null&&x.find(J=>J==null?void 0:J.includes("@TextSize"))){let J=(M=(E=x==null?void 0:x.find(ye=>ye==null?void 0:ye.includes("@TextSize")))==null?void 0:E.split("="))==null?void 0:M[1];k.fontSize=`${J}px`}if(x!=null&&x.find(J=>J==null?void 0:J.includes("@TextRGBA"))){let J=(Q=(O=x==null?void 0:x.find(ye=>ye==null?void 0:ye.includes("@TextRGBA")))==null?void 0:O.split("="))==null?void 0:Q[1];k.color=re.rgbaToColor(J)}return k},s=e.computed(()=>{const x=Number(r==null?void 0:r.textSize),k=re.rgbaToColor(r==null?void 0:r.textColor),E={},M={};return!Number.isNaN(x)&&x&&(E.fontSize=`${x}px`,M.fontSize=`${x}px`),k&&(E.color=k,M.color=k),{label:E,value:M}}),u=e.ref(""),y=e.ref(""),b=e.ref(!1),g=async x=>{if(x){y.value&&(URL.revokeObjectURL(y.value),y.value="");try{const k=await R.platformDownloadFile({url:x}),E=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});y.value=URL.createObjectURL(E)}catch{y.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,x=>{x&&(u.value=x)},{immediate:!0}),e.watch(u,x=>{g(x)},{immediate:!0});const d=async()=>{var x,k;((x=r==null?void 0:r.calculator)==null?void 0:x.length)>0&&await Ft(r==null?void 0:r.items,"Auto",[],r==null?void 0:r.calculator),(k=o.value)==null||k.click()},C=async x=>{var M,O,Q;const k=x.target,E=(M=k==null?void 0:k.files)==null?void 0:M[0];if(!E){k.value="";return}b.value=!0;try{const J=new FormData;J.append("file",E);const ye=await R.platformUploadFile(J),te=(Q=(O=ye==null?void 0:ye.data)==null?void 0:O.result)==null?void 0:Q.url;te?(u.value=te,n("update:backGroundImage",te),g(te),Xa.ElMessage.success("背景图片上传成功")):Xa.ElMessage.error("背景图片上传失败")}catch{Xa.ElMessage.error("背景图片上传失败")}finally{b.value=!1,k.value=""}},v=e.computed(()=>{var x,k,E,M;return y.value||(r==null?void 0:r.backgroundUrl)!==""?{backgroundImage:`url("${(x=r==null?void 0:r.backgroundUrl)==null?void 0:x.replace(/\\/g,"/")}")`,backgroundPosition:`${((k=r==null?void 0:r.backgroundPosition)==null?void 0:k.toLowerCase())??"center"} center`,backgroundRepeat:"no-repeat",cursor:((E=r==null?void 0:r.calculator)==null?void 0:E.length)>0?"pointer":"auto"}:{cursor:((M=r==null?void 0:r.calculator)==null?void 0:M.length)>0?"pointer":"auto",background:r!=null&&r.textBackColor?re.rgbaToColor(r==null?void 0:r.textBackColor):void 0}}),H=x=>ul.getComponent(x),T=x=>{if(!x)return;const k=x.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},j=(x,k,E)=>{r.disabled||x.field&&(i.value=k,e.nextTick(()=>{T(E.currentTarget)}))},D=()=>{i.value=null},_=x=>{var E;const k=((E=x==null?void 0:x.field)==null?void 0:E.value)??(x==null?void 0:x.value);return k==null||k===""?"-":k},S=x=>{var Q,J,ye,te;const k=x!=null&&x.width&&x.width>0?x.width:1,M=`calc((100% - ${(k-1)*16}px) / ${k})`;let O;return(Q=x==null?void 0:x.filters)!=null&&Q.find(U=>U==null?void 0:U.includes("@TextBackRGBA"))&&(O=(te=(ye=(J=x==null?void 0:x.filters)==null?void 0:J.find(U=>U==null?void 0:U.includes("@TextBackRGBA")))==null?void 0:ye.split("="))==null?void 0:te[1],O=re.rgbaToColor(O)),{flex:`0 0 ${M}`,maxWidth:M,minWidth:"140px",boxSizing:"border-box",background:O}};return(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(v.value),onClick:k[1]||(k[1]=E=>d())},[r!=null&&r.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=e.withModifiers(E=>d(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:o,type:"file",accept:"image/*",style:{display:"none"},onChange:C},null,544),k[2]||(k[2]=e.createElementVNode("img",{src:ul._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.items,(E,M)=>{var O,Q,J,ye,te,U,q,X;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:M,style:e.normalizeStyle(S(E))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle({...s.value.label,...p(E==null?void 0:E.filters)})},e.toDisplayString(E==null?void 0:E.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(s.value.value),onClick:ee=>{var pe;return(pe=E.field)!=null&&pe.isNoClick?null:j(E,M,ee)}},[x.iconUrl&&x.backgroundPosition==="Left"?(e.openBlock(),e.createElementBlock("img",{key:0,src:x.iconUrl,class:"bg-upload-icon"},null,8,y0)):e.createCommentVNode("",!0),i.value===M&&E.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(((O=E.field)==null?void 0:O.type)??"Input")),{key:1,modelValue:E.field.value,"onUpdate:modelValue":ee=>E.field.value=ee,isEdit:!0,disabled:(Q=E.field)==null?void 0:Q.disabled,content:((J=E.field)==null?void 0:J.contents)??[],optionUrl:E.field,originalValue:(ye=E.field)==null?void 0:ye.value,config:(te=E.field)==null?void 0:te.config,configModel:((U=E.field)==null?void 0:U.prop)??((q=E.field)==null?void 0:q.name),selectedTagList:((X=E.field)==null?void 0:X.selectValue)??[],onBlur:D,onBlurChange:D},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(_(E)),1)],64)),x.iconUrl&&x.backgroundPosition==="Right"?(e.openBlock(),e.createElementBlock("img",{key:3,src:x.iconUrl,class:"bg-upload-icon"},null,8,g0)):e.createCommentVNode("",!0)],12,m0)],4)}),128))],4))}}),k0=fr._export_sfc(b0,[["__scopeId","data-v-3e28c1c9"]]),Ic=R.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),x0={class:"calculator-content"},w0={class:"calculator-child"},_0={class:"calculator-child"},S0=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),r=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(n,i)=>(e.openBlock(),e.createElementBlock("div",x0,[e.createElementVNode("div",w0,[e.createVNode(ul.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",_0,[e.createVNode(ul.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),E0=fr._export_sfc(S0,[["__scopeId","data-v-73db0fe7"]]),At=(a,l)=>{let r=a,n=l;return Array.isArray(r)&&(r=r==null?void 0:r.map((i,o)=>{if(Array.isArray(i)){let p={};return i=i==null?void 0:i.forEach((s,u)=>{var y;(y=n==null?void 0:n[u])!=null&&y.prop?p[n[u].prop]=s:Array.isArray(s)&&(p.children=At(s,n))}),Object.assign(p,{id:o})}else return i})),r},Pt=(a,l,r)=>{let n=a,i=l;return n=n==null?void 0:n.map((o,p)=>{var s,u;return!Array.isArray(o)||!((s=i==null?void 0:i[p])!=null&&s.label)&&!r||(o.unshift(((u=i==null?void 0:i[p])==null?void 0:u.label)??""),o.some(y=>Array.isArray(y))&&(o=o==null?void 0:o.map(y=>{var b;return Array.isArray(y)&&(y=Pt(y,(b=i==null?void 0:i[p])==null?void 0:b.children,r)),y}))),o}),n},C0=(a,l,r)=>{if(l==="")return a==null?void 0:a.filter(n=>(n==null?void 0:n.id)!==r);{const n=l.split("-");return T0(a,n,r)}},T0=(a,l,r)=>{let n=a,i=l;return(i==null?void 0:i.length)===0?n=n==null?void 0:n.filter(o=>o.id!==r):n=n==null?void 0:n.map(o=>(o.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),o=Oc(o,i,r)),o)),n},Oc=(a,l,r)=>{var o,p;let n=a,i=l;return(i==null?void 0:i.length)===0?n.children=(o=n.children)==null?void 0:o.filter(s=>s.id!==r):n.children=(p=n.children)==null?void 0:p.map(s=>(s.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),s=Oc(s,i,r)),s)),n},B0=(a,l,r)=>{if(l==="")return r;{const n=l.split("-");return D0(a,n,r)}},D0=(a,l,r)=>{let n=a,i=l;return(i==null?void 0:i.length)===0?n=r:n=n==null?void 0:n.map(o=>(o.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),o=Lc(o,i,r)),o)),n},Lc=(a,l,r)=>{var o;let n=a,i=l;return(i==null?void 0:i.length)===0?n.children=r:n.children=(o=n.children)==null?void 0:o.map(p=>(p.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),p=Lc(p,i,r)),p)),n};class N0{constructor(l={}){hn(this,"url");hn(this,"heartbeatInterval");hn(this,"socket",null);hn(this,"isConnected",!1);hn(this,"heartTimer",null);hn(this,"canvas",null);hn(this,"ctx",null);hn(this,"mainCamCutMode",0);hn(this,"pMainShowStartX",0);hn(this,"pMainShowStartY",0);hn(this,"onLog");hn(this,"onDevCount");hn(this,"onResolution");hn(this,"onCameraStatus");hn(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,r,n){var p;(p=this.canvas)!=null&&p.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const i=document.createElement("canvas");i.style.border="solid 1px #A0A0A0",i.id="MainCamCanvas",i.width=r,i.height=n;const o=i.getContext("2d");if(!o)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(i),this.canvas=i,this.ctx=o}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,r)=>{const n=new WebSocket(this.url);n.binaryType="arraybuffer",n.onopen=()=>{this.socket=n,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},n.onerror=i=>{this.isConnected=!1,this.log("socket.onerror"),r(i)},n.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},n.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 r=l.find(i=>i.width===2592&&i.height===1944);return r||[...l].sort((i,o)=>o.width*o.height-i.width*i.height)[0]||null}openCamera(l=0,r=1280,n=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]=r>>8&255,i[9]=r&255,i[10]=n>>8&255,i[11]=n&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 r;(r=this.onLog)==null||r.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,o,p,s,u,y;const r=new Uint8Array(l.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const n=r[2];if(n===80){const b=r[3],g=r.length-4,d=new Uint8Array(g);for(let H=0;H<g;H++)d[H]=r[4+H];const v=decodeURIComponent(this.byteToString(d)).split("|");(i=this.onDevCount)==null||i.call(this,b,v);return}if(n===81){const b=r[3]||0,g=[];for(let d=0;d<b;d++){const C=(r[4+d*4+0]||0)*256+(r[4+d*4+1]||0),v=(r[4+d*4+2]||0)*256+(r[4+d*4+3]||0);g.push({width:C,height:v,text:`${C}*${v}`})}(o=this.onResolution)==null||o.call(this,b,g);return}if(n===1){r[3]===1&&((p=this.onCameraStatus)==null||p.call(this,"opened")),r[3]===3&&((s=this.onCameraStatus)==null||s.call(this,"closed"));return}if(n===16){if(r[3]===1){const g=r[4]*256+r[5],d=r[6]*65536+r[7]*256+r[8];let C="";if(g>0){const T=new Uint8Array(g);for(let j=0;j<g;j++)T[j]=r[9+j];C=decodeURIComponent(this.byteToString(T))}const v=new Uint8Array(d);for(let T=0;T<d;T++)v[T]=r[9+g+T];const H=this.uint8ArrayToString(v);(u=this.onPhoto)==null||u.call(this,{flag:0,imgPath:C,base64:H})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(n===204){if(!this.canvas||!this.ctx)return;const b=r[3]*256+r[4],g=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const d=this.ctx.createImageData(b,g);let C=11;for(let v=0;v<d.data.length;v+=4)d.data[v+0]=r[C],d.data[v+1]=r[C+1],d.data[v+2]=r[C+2],d.data[v+3]=255,C+=3;this.ctx.putImageData(d,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}byteToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}}const A0={style:{display:"flex",gap:"16px",height:"100%"}},z0={key:0,style:{color:"var(--el-text-color-secondary)"}},M0={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"}},L0={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},R0={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},$0=["src","onClick"],V0=["onClick"],F0={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"},H0=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(null),o=e.ref(!1),p=e.ref([]),s=e.ref(""),u=e.ref(!1),y=e.ref([]),b=new N0({url:"ws://127.0.0.1:22225"});function g(O,Q){var X;const J=O.split(","),ye=((X=J[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",te=atob(J[1]);let U=te.length;const q=new Uint8Array(U);for(;U--;)q[U]=te.charCodeAt(U);return new File([q],Q,{type:ye})}function d(){b.onLog=O=>{console.log("[GPY]",O)},b.onDevCount=(O,Q)=>{if(s.value+=`设备数量=${O},设备=${Q.join(",")}
|
|
4
|
+
`,O>0){s.value+=`检测到设备,正在获取分辨率...
|
|
5
|
+
`;try{b.getResolution(0)}catch(J){s.value+=`获取分辨率失败:${(J==null?void 0:J.message)??J}
|
|
6
|
+
`}}else s.value+=`未检测到高拍仪设备!
|
|
7
|
+
`},b.onResolution=(O,Q)=>{if(O<=0||!Array.isArray(Q)||Q.length===0){s.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
|
|
8
|
+
`;try{b.openCamera(0,1280,720)}catch(ye){s.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
|
|
9
|
+
`}return}const J=b.chooseResolution(Q);if(!J){s.value+=`分辨率选择失败,回退使用 1280*720 打开...
|
|
10
|
+
`;try{b.openCamera(0,1280,720)}catch(ye){s.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
|
|
11
|
+
`}return}s.value+=`获取分辨率 ${J.text}成功,打开摄像头...
|
|
12
|
+
`;try{b.closeCamera(),setTimeout(()=>{try{b.openCamera(0,J.width,J.height)}catch(ye){s.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
|
|
13
|
+
`}},100)}catch{try{b.openCamera(0,J.width,J.height)}catch(ye){s.value+=`打开摄像头失败:${(ye==null?void 0:ye.message)??ye}
|
|
14
|
+
`}}},b.onCameraStatus=O=>{O==="opened"?(o.value=!0,s.value+=`摄像头已打开
|
|
15
|
+
`):(o.value=!1,s.value+=`摄像头已关闭
|
|
16
|
+
`)},b.onPhoto=O=>{if(O.flag===0&&O.base64){const Q=`data:image/jpeg;base64,${O.base64}`,J=g(Q,`gpy-capture-${Date.now()}.jpg`);p.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:Q,file:J}),s.value+=`拍照完成,已接收图片(当前 ${p.value.length} 张)
|
|
17
|
+
`}else s.value+=`拍照失败 flag=${O.flag}
|
|
18
|
+
`}}const C=async()=>{if(await e.nextTick(),!i.value)return;v(),d();const O=i.value.getBoundingClientRect();b.init(i.value,Math.floor(O.width),Math.floor(O.height)),s.value+=`正在连接设备服务...
|
|
19
|
+
`,await b.connect(),s.value+=`正在获取设备数量...
|
|
20
|
+
`,b.getDevCount()},v=()=>{try{b.destroy()}catch(O){console.error(O)}o.value=!1,p.value=[],s.value="",u.value=!1,y.value=[]};e.watch(()=>r.visible,O=>{O?C():v()});const H=()=>{try{b.bestSize()}catch(O){console.error(O)}},T=()=>{try{b.rotateLeft()}catch(O){console.error(O)}},j=()=>{try{b.rotateRight()}catch(O){console.error(O)}},D=()=>{try{b.focus()}catch(O){console.error(O)}},_=()=>{s.value+=`正在拍照...
|
|
21
|
+
`;try{b.photo()}catch(O){s.value+=`拍照调用失败:${(O==null?void 0:O.message)??O}
|
|
22
|
+
`}},S=()=>{p.value.length>0?n("confirm",p.value.map(O=>O.file)):n("confirm",[])},x=O=>{O<0||O>=p.value.length||(p.value.splice(O,1),s.value+=`已删除一张图片(剩余 ${p.value.length} 张)
|
|
23
|
+
`)},k=O=>{if(!O)return;const Q=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:Q,blobUrl:O}],u.value=!0},E=()=>{u.value=!1},M=()=>{v(),n("cancel")};return(O,Q)=>{const J=e.resolveComponent("el-input"),ye=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Vr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:M,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",A0,[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)"}},[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",z0,"初始化摄像头..."))],512),e.createElementVNode("div",M0,[e.createElementVNode("div",I0,[Q[0]||(Q[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",O0,[p.value.length===0?(e.openBlock(),e.createElementBlock("div",L0,"暂无图片")):(e.openBlock(),e.createElementBlock("div",R0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(te,U)=>(e.openBlock(),e.createElementBlock("div",{key:te.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:te.url,onClick:q=>k(te.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,$0),e.createElementVNode("div",{onClick:q=>x(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,V0)]))),128))]))],512)]),e.createElementVNode("div",F0,[Q[1]||(Q[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(J,{type:"textarea",value:s.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",P0,[e.createVNode(ye,{onClick:H,disabled:!o.value,id:"themeBorderButton"},{default:e.withCtx(()=>Q[2]||(Q[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ye,{onClick:T,disabled:!o.value,id:"themeBorderButton"},{default:e.withCtx(()=>Q[3]||(Q[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(ye,{onClick:j,disabled:!o.value,id:"themeBorderButton"},{default:e.withCtx(()=>Q[4]||(Q[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(ye,{onClick:D,disabled:!o.value,id:"themeBorderButton"},{default:e.withCtx(()=>Q[5]||(Q[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(ye,{onClick:_,disabled:!o.value,id:"themeButton"},{default:e.withCtx(()=>Q[6]||(Q[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),Q[9]||(Q[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(ye,{onClick:S,disabled:p.value.length===0,id:"themeButton"},{default:e.withCtx(()=>Q[7]||(Q[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(ye,{onClick:M,id:"themeBorderButton"},{default:e.withCtx(()=>Q[8]||(Q[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),u.value?(e.openBlock(),e.createBlock(ul.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:E},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),j0=fr._export_sfc(H0,[["__scopeId","data-v-24a2050a"]]),Os=R.useMenuState(R.pinia);let zi="$R";const U0=async a=>{var o,p,s,u,y,b;let l=a==null?void 0:a.导入文件,r=a==null?void 0:a.函数参数,n=(o=l==null?void 0:l[0])==null?void 0:o.url,i="";if(!(n!=null&&n.includes("http"))||!(n!=null&&n.includes("https"))){Os.setContentLoading(!0);const g=await R.platformDownloadFile({url:n});let d=g==null?void 0:g.data;const C=new FormData;C.append("file",d,((p=l==null?void 0:l[0])==null?void 0:p.name)+"."+((s=n==null?void 0:n.split("."))==null?void 0:s[1])),C.append("query",r);let v=await _c(C);v=(b=(y=(u=v==null?void 0:v.data)==null?void 0:u.data)==null?void 0:y.response)==null?void 0:b.replace("generateResult",a==null?void 0:a.函数名称),i=v,Os.setContentLoading(!1)}return i},q0=a=>{var r,n;if(a==="")return;let l=a;return l=(n=(r=l==null?void 0:l.replace("(",zi))==null?void 0:r.split(zi))==null?void 0:n[1],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1),l=re.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 s,u,y,b,g;let o=i;o=(u=(s=o==null?void 0:o.replace("=",zi))==null?void 0:s.split(zi))==null?void 0:u[1],o=(y=re.analyzeSplitToContent(o,")"))==null?void 0:y[0];let p=i==null?void 0:i.replaceAll(o,"");return(o==null?void 0:o[0])==="("&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(g=(b=o==null?void 0:o.replace("(",zi))==null?void 0:b.split(zi))==null?void 0:g[1],o="("+o,o=re.calculatorAndToOr(o),{key:p,content:o}}),l},Ls=(a,l)=>{let r=[l];return a==null||a.forEach(n=>{for(let i in n)n[i]!=="!"?r=r==null?void 0:r.filter(o=>{var p;return(o==null?void 0:o[i])===(n==null?void 0:n[i])||(o==null?void 0:o[(p=Object.keys(o))==null?void 0:p.find(s=>s==null?void 0:s.includes("."+i))])===(n==null?void 0:n[i])}):r=r==null?void 0:r.filter(o=>{var p;return(o==null?void 0:o[i])!==(n==null?void 0:n[i])&&(o==null?void 0:o[(p=Object.keys(o))==null?void 0:p.find(s=>s==null?void 0:s.includes("."+i))])!==(n==null?void 0:n[i])})}),r},Ht=R.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),W0=R.useModelComp(R.pinia),{extraContents:_m}=R.storeToRefs(W0),G0=R.useLoginState(R.pinia),{extraUrl:yi}=R.storeToRefs(G0);let Rc=yi.value===""||!yi.value?"http://139.196.154.85:20015":yi.value;e.watch(()=>yi.value,()=>{Rc=yi.value===""||!yi.value?"http://139.196.154.85:20015":yi.value},{deep:!0,immediate:!0});const Mo={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},Rs={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:Rc+"/api/public/paddleOCR"};class K0{constructor(l){hn(this,"config");this.config={...Rs,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const r=this.config.maxSize*1024*1024;return l.size<=r}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=Xa.Local.get(Xa.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,r){return{title:r,form:{OCR图片文件:l}}}async recognize(l,r){const n=this.getAuthorizationToken(),i=this.buildOCRRequest(l,r),o=this.config.apiUrl||Rs.apiUrl||"";return(await Xa.axios.post(o,i,{headers:{"Content-Type":"application/json",Authorization:n}})).data}getFieldAliases(l){return Mo[l]?Mo[l]:[l]}extractTableHeaders(l){const r=[],n=new Set,i=p=>{const s=p==null?void 0:p.label;return!(!s||s==="操作"||s===this.config.columnName||(p==null?void 0:p.type)==="operate"||(p==null?void 0:p.prop)==="operate")},o=p=>{(p||[]).forEach(s=>{if(!s)return;const u=(s==null?void 0:s.children)||(s==null?void 0:s.child)||(s==null?void 0:s.columns);if(Array.isArray(u)&&u.length>0){o(u);return}if(i(s)){const y=s.label;if(!n.has(y)){n.add(y);const b=this.getFieldAliases(y);r.push(b)}}})};return o(l||[]),r}}function $c(a){return new K0(a)}$c();const zt=async(a,l)=>{var p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k;let r=(s=(p=R.cloneDeep(a))==null?void 0:p.optionUrl)==null?void 0:s.menuSelect,n=[];r==null||r.forEach(E=>{});let i="",o=await re.menuToParent(r);if(o==null||o.forEach(E=>{var M,O,Q,J;(E==null?void 0:E.name)===(((J=(Q=(O=(M=R.cloneDeep(a))==null?void 0:M.optionUrl)==null?void 0:O.groupSelect)==null?void 0:Q[0])==null?void 0:J.replaceAll("'",""))??"")&&(i=E==null?void 0:E.id)}),l){i=l;const E=await Zr.getInsofDataApi({id:i}),M=(g=(b=(y=(u=E==null?void 0:E.data)==null?void 0:u.result)==null?void 0:y[0])==null?void 0:b.key)==null?void 0:g.pageKey;o=await re.getItemData(M,sessionStorage.getItem("systemKey"),"")}if(i!==""){let E;l?E=(d=o==null?void 0:o.find(Q=>(Q==null?void 0:Q.id)===l))==null?void 0:d.compData:E=(C=o==null?void 0:o.find(Q=>{var J,ye,te,U;return(Q==null?void 0:Q.name)===(((ye=(J=a==null?void 0:a.groupSelect)==null?void 0:J.split(":"))==null?void 0:ye[0])||((U=(te=a==null?void 0:a.optionUrl)==null?void 0:te.groupSelect)==null?void 0:U[0]))}))==null?void 0:C.compData;let M=(H=(v=E==null?void 0:E.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:v.contents)==null?void 0:H.map(Q=>Q==null?void 0:Q.label);(j=(T=E==null?void 0:E.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:T.contents)!=null&&j.every(Q=>Array.isArray(Q))&&(M=(S=re.getColumnChild((_=(D=E==null?void 0:E.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:D.contents)==null?void 0:_[0]))==null?void 0:S.map(Q=>Q==null?void 0:Q.prop));let O=(k=(x=E==null?void 0:E.find(Q=>(Q==null?void 0:Q.key)==="tableContents"))==null?void 0:x.contents)==null?void 0:k.map(Q=>{if(Array.isArray(Q))Q=Q==null?void 0:Q.filter(J=>!(J!=null&&J.id));else{let J={};for(let ye in Q)ye!=="id"&&(J[ye]=Q==null?void 0:Q[ye]);Q=J}return Q});O==null||O.forEach(Q=>{Array.isArray(Q)?n.push(re.getValueToObjectValue(Q,M)):n.push(Q)})}return n},Y0=R.useMenuState(R.pinia),{activeMenuPath:Sm}=R.storeToRefs(Y0),J0=R.useUnit(R.pinia),{chooseTitle:Em}=R.storeToRefs(J0),X0="col-operate",Vc=a=>`${X0}-${a}`,Z0=(a,l)=>{const r=new Map;a.forEach(i=>{const{prop:o}=i;r.set(o,i)});const n=i=>{Array.isArray(i)&&i.forEach(o=>{const{prop:p}=o||{},s=r.get(p);Q0(s,o),Array.isArray(o==null?void 0:o.children)&&o.children.length>0&&n(o.children)})};return n(l),l},Q0=(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),e3=(a,l)=>{const{sortable:r=!1,filterable:n=!1,showSummary:i=!1,operable:o=!1,fixed:p=!1}=l||{};return{prop:a,sortable:r,filterable:n,showSummary:i,operable:o,fixed:p}},a3=async a=>{var o,p;if(!a)return;const l=Vc(a),r=await Zr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),n=(o=r==null?void 0:r.data)==null?void 0:o.code,i=(p=r==null?void 0:r.data)==null?void 0:p.result;if(n==200)return i==null?void 0:i[0]},l3=async a=>{if(a)return[]},r3=async(a,l)=>{if(!a||!l)return;const r=Vc(a);return await Zr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:l}})},n3=async(a,l)=>!a||!l?void 0:await Zr.updateInsofDataApi({id:a,value:{columns:l}}),$s=async(a,l)=>{const r=sessionStorage.getItem("systemKey");if(!a||!l||!r)return;const n=await a3(a);return n?await n3(n==null?void 0:n.id,l):await r3(a,l)};var Co={exports:{}},i3=Co.exports,Vs;function o3(){return Vs||(Vs=1,function(a,l){(function(r,n){n()})(i3,function(){function r(y,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function n(y,b,g){var d=new XMLHttpRequest;d.open("GET",y),d.responseType="blob",d.onload=function(){u(d.response,b,g)},d.onerror=function(){console.error("could not download file")},d.send()}function i(y){var b=new XMLHttpRequest;b.open("HEAD",y,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function o(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(b)}}var p=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof R.commonjsGlobal=="object"&&R.commonjsGlobal.global===R.commonjsGlobal?R.commonjsGlobal:void 0,s=p.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=p.saveAs||(typeof window!="object"||window!==p?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(y,b,g){var d=p.URL||p.webkitURL,C=document.createElement("a");b=b||y.name||"download",C.download=b,C.rel="noopener",typeof y=="string"?(C.href=y,C.origin===location.origin?o(C):i(C.href)?n(y,b,g):o(C,C.target="_blank")):(C.href=d.createObjectURL(y),setTimeout(function(){d.revokeObjectURL(C.href)},4e4),setTimeout(function(){o(C)},0))}:"msSaveOrOpenBlob"in navigator?function(y,b,g){if(b=b||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,g),b);else if(i(y))n(y,b,g);else{var d=document.createElement("a");d.href=y,d.target="_blank",setTimeout(function(){o(d)})}}:function(y,b,g,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof y=="string")return n(y,b,g);var C=y.type==="application/octet-stream",v=/constructor/i.test(p.HTMLElement)||p.safari,H=/CriOS\/[\d]+/.test(navigator.userAgent);if((H||C&&v||s)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var _=T.result;_=H?_:_.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=_:location=_,d=null},T.readAsDataURL(y)}else{var j=p.URL||p.webkitURL,D=j.createObjectURL(y);d?d.location=D:location.href=D,d=null,setTimeout(function(){j.revokeObjectURL(D)},4e4)}});p.saveAs=u.saveAs=u,a.exports=u})}(Co)),Co.exports}o3();const si=R.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}}}),t3=R.useLoginState(R.pinia),{loginUserInfo:wt}=R.storeToRefs(t3),s3=async a=>{var n,i,o;let l=await R.getAllTables({platId:parseInt((n=wt==null?void 0:wt.value)==null?void 0:n.plat_id),tableNames:[a]});return l=(o=(i=l==null?void 0:l.data)==null?void 0:i.result)==null?void 0:o[0],await Mc(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}]}]},c3=R.useLoginState(),{loginUserInfo:gl}=R.storeToRefs(c3);let xo="$R";const Kr=R.useModelComp(R.pinia),Fc=e.ref(!1),{itemData:u3,itemGridData:vi,curStructureCompIds:Fs,isSubmitCurStructure:d3,routeToChildPath:p3,pageMapState:Mt,itemExtendData:wo,refreshTable:Ps,refreshCurrentPageInform:f3}=R.storeToRefs(Kr),Ho=si(R.pinia),rn=R.useMenuState(R.pinia),xr=e.shallowRef([]),{asideMenus:h3,activeTopMenuPath:v3,activeMenuPath:Cl,platform:Cm,buttonTriggerType:m3,currentMenuPath:_n}=R.storeToRefs(rn),Nn=R.useUnit(R.pinia),{selectTitle:ni,chooseTitle:Io}=R.storeToRefs(Nn);e.ref();const $i=e.ref(!0),oi=e.ref(0),It=e.ref([]);e.ref(!1);const jt=e.ref(!1),ao=e.ref(),Pc=e.ref(),Hc=e.ref(),y3=()=>{Kr.setItemGridData([]),Kr.setIsEdit("edit"),Kr.setSubmitCurStructure(Cl.value!=="/平台管理/菜单管理")},g3=()=>{Kr.setIsEdit("view"),Kr.setRefreshCurStructure(!0)},b3=async a=>{var i;let l=ni.value,r=l==null?void 0:l.findIndex(o=>(o==null?void 0:o.value)===(a==null?void 0:a.value)),n=l==null?void 0:l.filter((o,p)=>p<=r);Nn.setSelectTitle(ul.safeClone(n)),n=(i=n==null?void 0:n.map(o=>o==null?void 0:o.value))==null?void 0:i.join("/"),rn.setActiveMenuPath(null),rn.setActiveMenuPath(n)},_t=async(a,l,r,n="contentConfig")=>{var i;try{if(!Array.isArray(a))return;let o,p;l==="create"?(o={dataList:a==null?void 0:a.map(u=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:n,parentTable:"",version:1},value:{pageData:{...u,compData:(y=u==null?void 0:u.compData)==null?void 0:y.filter(b=>(b==null?void 0:b.key)!=="tableContents")}}}})},p=Zr.batchAddInsofDataApi):l==="update"?(o={dataList:a==null?void 0:a.map(u=>{var y;return{id:u==null?void 0:u.id,value:{pageData:{...u,compData:(y=u==null?void 0:u.compData)==null?void 0:y.filter(b=>(b==null?void 0:b.key)!=="tableContents")}}}})},p=Zr.batchUpdateInsofDataApi):l==="delete"&&(o={ids:a},p=Zr.batchDeleteInsofDataApi);const s=await p(o);if(((i=s==null?void 0:s.data)==null?void 0:i.code)===200)return s.data.result;throw Xa.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Xa.ElMessage.error("保存响应失败")}},Hs=async(a,l,r,n)=>{var i,o,p,s,u,y,b,g,d,C,v;try{const H=(o=(i=a==null?void 0:a.results)==null?void 0:i.filter(x=>!(x!=null&&x.id)||typeof(x==null?void 0:x.id)=="string"))==null?void 0:o.map(x=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:r},value:{tableData:x}})),T=(s=(p=a==null?void 0:a.results)==null?void 0:p.filter(x=>(x==null?void 0:x.id)&&typeof(x==null?void 0:x.id)=="number"))==null?void 0:s.map(x=>({id:x==null?void 0:x.id,value:{tableData:x}})),j=JSON.parse(JSON.stringify(a)),D=(u=j==null?void 0:j.results)==null?void 0:u.map(x=>x.id);let _;r?_=(g=(b=(y=Mt.value)==null?void 0:y[Cl.value])==null?void 0:b.filter(x=>{var k,E,M;return((k=x==null?void 0:x.key)==null?void 0:k.type)===l&&((M=(E=x==null?void 0:x.key)==null?void 0:E.relatedInfo)==null?void 0:M.target)===n}))==null?void 0:g.map(x=>x==null?void 0:x.id):_=(v=(C=(d=Mt.value)==null?void 0:d[Cl.value])==null?void 0:C.filter(x=>{var k;return((k=x==null?void 0:x.key)==null?void 0:k.type)===l}))==null?void 0:v.map(x=>x==null?void 0:x.id);const S=_==null?void 0:_.filter(x=>!(D!=null&&D.includes(x))&&typeof x=="number");(H==null?void 0:H.length)>0&&await Zr.batchAddInsofDataApi({dataList:H}),(T==null?void 0:T.length)>0&&await Zr.batchUpdateInsofDataApi({dataList:T}),(S==null?void 0:S.length)>0&&await Zr.batchDeleteInsofDataApi({ids:S})}catch(H){throw new Error(H)}},k3=async a=>{var y,b,g,d,C,v,H,T,j,D;rn.setContentLoading(!0);const l=JSON.parse(JSON.stringify(u3.value));if(!d3.value)return rn.setCacheStructures({key:m3.value,data:l}),Xa.ElMessage.success("已暂存");const r=l==null?void 0:l.map(_=>_.id),n=r.filter(_=>{var S;return!((S=Fs.value)!=null&&S.includes(_))}),i=(y=Fs.value)==null?void 0:y.filter(_=>!r.includes(_)),o=[...n,...i].filter(_=>typeof _!==null&&typeof _<"u"),p=l==null?void 0:l.filter(_=>!_.id),s=l==null?void 0:l.filter(_=>_.id);let u=[];if(o&&(o==null?void 0:o.length)>0&&u.push(_t(o,"delete",a)),p&&(p==null?void 0:p.length)>0&&u.push(_t(p,"create",a)),s&&(s==null?void 0:s.length)>0&&u.push(_t(s,"update",a)),vi.value&&((b=vi.value)!=null&&b.isDelete&&((d=(g=vi.value)==null?void 0:g.results)==null?void 0:d.length)>0&&((v=(C=vi.value)==null?void 0:C.results)!=null&&v.every(_=>typeof _=="number"))?await Zr.batchDeleteInsofDataApi({ids:(H=vi.value)==null?void 0:H.results}):(console.log("itemGridData.value",vi.value),u.push(await Hs(vi.value,"gridLayout")))),wo.value)for(const _ in wo.value)u.push(await Hs((T=wo.value)==null?void 0:T[_],"extend",{target:_,compId:(D=(j=wo.value)==null?void 0:j[_])==null?void 0:D.compId},_));await Promise.all(u).then(()=>{Xa.ElMessage.success("保存成功"),Kr.setRefreshCurStructure(!0)}).catch(_=>{Xa.ElMessage.success(_)}),rn.setContentLoading(!1)},lo=a=>Fi(a),x3=e.computed(()=>{var a;return(a=xr.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),jc=e.computed(()=>{var a;return(a=xr.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),Uc=e.ref(0),qc=e.ref(null),w3="ocr_committed_temp_ids_v1",_3=(a,l)=>`${w3}:${String(a??"")}:${String(l??"")}`,S3=(a,l,r)=>{try{const n=_3(a,l),i=sessionStorage.getItem(n),o=i?JSON.parse(i):[],p=Array.isArray(o)?o:[],s=Array.from(new Set([...p,...r||[]].map(u=>String(u)))).slice(-200);sessionStorage.setItem(n,JSON.stringify(s))}catch{}},Oo=async(a,l="data",r)=>{var i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa,Re,Ie,Je,Ne,_e,$a,wl,el,Pl,bl,Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr;let n=((p=(o=(i=ni.value)==null?void 0:i.filter(ga=>(ga==null?void 0:ga.condition)==="child"))==null?void 0:o[0])==null?void 0:p.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let ga=(s=a==null?void 0:a.fixContent)==null?void 0:s.map(ol=>{let vl={};for(let Dl in ol)Array.isArray(ol==null?void 0:ol[Dl])?vl[Dl]=JSON.stringify(ol==null?void 0:ol[Dl]):vl[Dl]=ol==null?void 0:ol[Dl];return vl});if(ga!=null&&ga.every(ol=>ol==null?void 0:ol.menuPathContent)){let ol=(u=ga==null?void 0:ga[0])==null?void 0:u.menuPathContent;ga=ga==null?void 0:ga.map(oa=>(oa.id="0",oa==null||delete oa.menuPathContent,oa)),(ol==null?void 0:ol[0])==="$"&&(ol=ol==null?void 0:ol.slice(1,ol==null?void 0:ol.length));let vl=(y=re.analyzeSplitToContent(ol,"*"))==null?void 0:y[0],Dl=(b=re.analyzeSplitToContent(ol,"*"))==null?void 0:b[1];vl=vl==null?void 0:vl.slice(0,(vl==null?void 0:vl.length)-1),vl=(g=re.analyzeSplitToContent(vl,":"))==null?void 0:g.map(oa=>{var Ya,me,_a,Pa,pl;if((oa==null?void 0:oa[(oa==null?void 0:oa.length)-1])===":"&&(oa=oa==null?void 0:oa.slice(0,(oa==null?void 0:oa.length)-1)),(oa==null?void 0:oa[0])==="{"){oa=oa==null?void 0:oa.slice(1,(oa==null?void 0:oa.length)-1),(oa==null?void 0:oa[0])==="*"&&(oa=oa==null?void 0:oa.slice(1,oa==null?void 0:oa.length));let Il=oa==null?void 0:oa.split(":"),Qa=Il==null?void 0:Il[0],kl=Il==null?void 0:Il[1];kl=kl==null?void 0:kl.slice(1,(kl==null?void 0:kl.length)-1);let Ma=(Ya=xr.value)==null?void 0:Ya.filter(aa=>(aa==null?void 0:aa.name)===Qa);Ma=Ma==null?void 0:Ma[0],Ma=(pl=(Pa=(_a=(me=Ma==null?void 0:Ma.compData)==null?void 0:me.find(aa=>(aa==null?void 0:aa.key)==="tableContents"))==null?void 0:_a.contents)==null?void 0:Pa[0])==null?void 0:pl[kl],oa=Ma}return oa}),vl=vl==null?void 0:vl.join("/");let Ua=await R.getPageDataApi({platId:parseInt((d=gl==null?void 0:gl.value)==null?void 0:d.plat_id),pageName:"menu"});Ua=(C=Ua==null?void 0:Ua.data)==null?void 0:C.result,Ua=Ua==null?void 0:Ua.find(oa=>(oa==null?void 0:oa.object_name)===vl&&(oa==null?void 0:oa.property_name)===Dl);let Sa=(Ua==null?void 0:Ua.object_id)??"";if(Sa===""){Xa.ElMessage.warning("添加页面数据不存在");return}let rl=[{tableName:"content_"+Sa,tableContents:ga}];await R.pageBatchAddApi({platId:parseInt((v=gl==null?void 0:gl.value)==null?void 0:v.plat_id),changeContents:rl});let Me=[];rl==null||rl.forEach(oa=>{var Ya;(Ya=oa==null?void 0:oa.tableContents)==null||Ya.forEach(me=>{Me.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(me),request_result:"{}",is_delete:!1,request_table:oa==null?void 0:oa.tableName,request_type:"add"})})}),await R.pageBatchAddApi({platId:parseInt((H=gl==null?void 0:gl.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:Me}]})}else{let ol=await R.quoteApi({platId:parseInt((T=gl==null?void 0:gl.value)==null?void 0:T.plat_id),type:"fatherSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});ol=(j=ol==null?void 0:ol.data)==null?void 0:j.result,ol=ol==null?void 0:ol.filter(Me=>{var oa,Ya;return!((Me==null?void 0:Me.fatherPath)!==""&&((Ya=(oa=Me==null?void 0:Me.quote)==null?void 0:oa[0])==null?void 0:Ya.menus)===(Cl==null?void 0:Cl.value))});let vl=ol==null?void 0:ol.map(Me=>{var _a,Pa;let oa={},Ya=ga==null?void 0:ga[0],me;return Array.isArray((_a=Me==null?void 0:Me.struct)==null?void 0:_a[0])?me=re.getColumnChild((Pa=Me==null?void 0:Me.struct)==null?void 0:Pa[0]):me=Me==null?void 0:Me.struct,me=me==null?void 0:me.filter(pl=>(pl==null?void 0:pl.prop)!=="relatedId"),me==null||me.forEach(pl=>{var Il,Qa;oa[pl.prop]=((Il=pl==null?void 0:pl.words)!=null&&Il[0]?(Ya==null?void 0:Ya[(Qa=pl==null?void 0:pl.words)==null?void 0:Qa[0]])??(Ya==null?void 0:Ya[pl==null?void 0:pl.prop]):Ya==null?void 0:Ya[pl==null?void 0:pl.prop])??""}),oa.id="1",oa.relatedId=`[${oa.id}]`,delete oa.sort,{tableName:"content_"+(Me==null?void 0:Me.id),tableContents:[oa]}}),Dl=[{tableName:(D=a==null?void 0:a.relatedContents)==null?void 0:D.find(Me=>Me==null?void 0:Me.includes("content")),tableContents:ga}];Dl=[...Dl,...vl];let Ua=await R.quoteApi({platId:parseInt((_=gl==null?void 0:gl.value)==null?void 0:_.plat_id),type:"sonSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});Ua=(x=(S=Ua==null?void 0:Ua.data)==null?void 0:S.result)==null?void 0:x.filter(Me=>!(Dl!=null&&Dl.find(oa=>(oa==null?void 0:oa.tableName)==="content_"+(Me==null?void 0:Me.id)))),Ua=Ua==null?void 0:Ua.filter(Me=>{var oa,Ya;return!((Me==null?void 0:Me.fatherPath)!==""&&((Ya=(oa=Me==null?void 0:Me.quote)==null?void 0:oa[0])==null?void 0:Ya.menus)===(Cl==null?void 0:Cl.value))});let Sa=Ua==null?void 0:Ua.map(Me=>{var _a,Pa,pl,Il,Qa,kl,Ma;let oa={},Ya=ga==null?void 0:ga[0],me;return Array.isArray((_a=Me==null?void 0:Me.struct)==null?void 0:_a[0])?me=re.getColumnChild((Pa=Me==null?void 0:Me.struct)==null?void 0:Pa[0]):me=Me==null?void 0:Me.struct,me=me==null?void 0:me.filter(aa=>(aa==null?void 0:aa.prop)!=="relatedId"),((Il=(pl=me==null?void 0:me[0])==null?void 0:pl.words)!=null&&Il[0]?Ya!=null&&Ya[(kl=(Qa=me==null?void 0:me[0])==null?void 0:Qa.words)==null?void 0:kl[0]]:Ya!=null&&Ya[(Ma=me==null?void 0:me[0])==null?void 0:Ma.prop])?(me==null||me.forEach(aa=>{var ma,ja;oa[aa.prop]=((ma=aa==null?void 0:aa.words)!=null&&ma[0]?(Ya==null?void 0:Ya[(ja=aa==null?void 0:aa.words)==null?void 0:ja[0]])??(Ya==null?void 0:Ya[aa==null?void 0:aa.prop]):Ya==null?void 0:Ya[aa==null?void 0:aa.prop])??""}),oa.id="1",oa.relatedId=`[${oa.id}]`,delete oa.sort):oa=void 0,{tableName:"content_"+(Me==null?void 0:Me.id),tableContents:[oa]}});Sa=Sa==null?void 0:Sa.filter(Me=>{var oa;return!((oa=Me==null?void 0:Me.tableContents)!=null&&oa.every(Ya=>Ya===void 0))}),Dl=[...Dl,...Sa],await R.pageBatchAddApi({platId:parseInt((k=gl==null?void 0:gl.value)==null?void 0:k.plat_id),changeContents:Dl});let rl=[];Dl==null||Dl.forEach(Me=>{var oa;(oa=Me==null?void 0:Me.tableContents)==null||oa.forEach(Ya=>{rl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ya),request_result:"{}",is_delete:!1,request_table:Me==null?void 0:Me.tableName,request_type:"add"})})}),await R.pageBatchAddApi({platId:parseInt((E=gl==null?void 0:gl.value)==null?void 0:E.plat_id),changeContents:[{tableName:"log",tableContents:rl}]})}}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const ga=((a==null?void 0:a.ocrRows)||[]).map(Ua=>Ua==null?void 0:Ua.id).filter(Ua=>Ua!=null),ol=((a==null?void 0:a.ocrRows)||[]).map(Ua=>{const Sa={...Ua};return delete Sa._isOCRRow,delete Sa._ocrTableId,Object.keys(Sa).forEach(rl=>{/(^|\.)证书附件$/.test(rl)&&Array.isArray(Sa[rl])&&(Sa[rl]=JSON.stringify(Sa[rl].map(Me=>({url:(Me==null?void 0:Me.url)||"",name:(Me==null?void 0:Me.name)||(Me==null?void 0:Me.fileName)||"",fileName:(Me==null?void 0:Me.fileName)||(Me==null?void 0:Me.name)||""})).filter(Me=>Me.url||Me.name)))}),Sa});let vl=[{tableName:(M=a==null?void 0:a.relatedContents)==null?void 0:M.find(Ua=>Ua==null?void 0:Ua.includes("content")),tableContents:ol}];await R.pageBatchAddApi({platId:parseInt((O=gl==null?void 0:gl.value)==null?void 0:O.plat_id),changeContents:vl});let Dl=[];vl==null||vl.forEach(Ua=>{var Sa;(Sa=Ua==null?void 0:Ua.tableContents)==null||Sa.forEach(rl=>{Dl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(rl),request_result:"{}",is_delete:!1,request_table:Ua==null?void 0:Ua.tableName,request_type:"ocrBatchAdd"})})}),await R.pageBatchAddApi({platId:parseInt((Q=gl==null?void 0:gl.value)==null?void 0:Q.plat_id),changeContents:[{tableName:"log",tableContents:Dl}]}),S3(a==null?void 0:a.parentTableId,a==null?void 0:a.index,ga)}if((a==null?void 0:a.buttonName)==="编辑"){const ol=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(me=>{const _a={...me};return delete _a._isOCRRow,delete _a._ocrTableId,delete _a._isTemp,delete _a.tableEditType,delete _a.index,_a});let vl=ol==null?void 0:ol.map(me=>{let _a={};for(let Pa in me)Array.isArray(me==null?void 0:me[Pa])?_a[Pa]=JSON.stringify(me==null?void 0:me[Pa]):_a[Pa]=me==null?void 0:me[Pa];return _a}),Dl=await R.quoteApi({platId:parseInt((J=gl==null?void 0:gl.value)==null?void 0:J.plat_id),type:"fatherSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});Dl=(ye=Dl==null?void 0:Dl.data)==null?void 0:ye.result,Dl=Dl==null?void 0:Dl.filter(me=>{var _a,Pa;return!((me==null?void 0:me.fatherPath)!==""&&((Pa=(_a=me==null?void 0:me.quote)==null?void 0:_a[0])==null?void 0:Pa.menus)===(Cl==null?void 0:Cl.value))});let Ua=(te=vl==null?void 0:vl[0])==null?void 0:te.id,Sa=[{tableName:(U=a==null?void 0:a.relatedContents)==null?void 0:U.find(me=>me==null?void 0:me.includes("content")),tableContents:vl}],rl=(q=Dl==null?void 0:Dl.map(me=>{var Pa,pl,Il,Qa,kl;let _a=(Pa=me==null?void 0:me.contents)==null?void 0:Pa.filter(Ma=>{var aa,ma;return JSON.stringify(Ma==null?void 0:Ma.relatedId)!=="{}"&&(Ma==null?void 0:Ma.relatedId)!==""&&(Ma!=null&&Ma.relatedId)?(aa=Ma==null?void 0:Ma.relatedId)==null?void 0:aa.includes(parseInt(Ua)):(Ma==null?void 0:Ma.sort)===((ma=vl==null?void 0:vl[0])==null?void 0:ma.sort)});if((_a==null?void 0:_a.length)>0){let Ma=vl==null?void 0:vl[0];Ma={...Ma,id:(pl=_a==null?void 0:_a[0])==null?void 0:pl.id};let aa={},ma=Ma,ja;return Array.isArray((Il=me==null?void 0:me.struct)==null?void 0:Il[0])?ja=re.getColumnChild((Qa=me==null?void 0:me.struct)==null?void 0:Qa[0]):ja=me==null?void 0:me.struct,ja=ja==null?void 0:ja.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ja==null||ja.forEach(xa=>{var Ul,Gl;aa[xa.prop]=((Ul=xa==null?void 0:xa.words)!=null&&Ul[0]?(ma==null?void 0:ma[(Gl=xa==null?void 0:xa.words)==null?void 0:Gl[0]])??(ma==null?void 0:ma[xa==null?void 0:xa.prop]):ma==null?void 0:ma[xa==null?void 0:xa.prop])??""}),aa.id=(kl=_a==null?void 0:_a[0])==null?void 0:kl.id,delete aa.sort,delete aa.relatedId,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[aa]}}else return}))==null?void 0:q.filter(me=>me);Sa=[...Sa,...rl];let Me=await R.quoteApi({platId:parseInt((X=gl==null?void 0:gl.value)==null?void 0:X.plat_id),type:"sonSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});Me=(pe=(ee=Me==null?void 0:Me.data)==null?void 0:ee.result)==null?void 0:pe.filter(me=>!(Sa!=null&&Sa.find(_a=>(_a==null?void 0:_a.tableName)==="content_"+(me==null?void 0:me.id)))),Me=Me==null?void 0:Me.filter(me=>{var _a,Pa;return!((me==null?void 0:me.fatherPath)!==""&&((Pa=(_a=me==null?void 0:me.quote)==null?void 0:_a[0])==null?void 0:Pa.menus)===(Cl==null?void 0:Cl.value))});let oa=(ze=Me==null?void 0:Me.map(me=>{var Pa,pl,Il,Qa,kl;let _a=(Pa=me==null?void 0:me.contents)==null?void 0:Pa.filter(Ma=>{var aa,ma,ja;return JSON.stringify(Ma==null?void 0:Ma.relatedId)!=="{}"&&(Ma==null?void 0:Ma.relatedId)!==""&&(Ma!=null&&Ma.relatedId)?(aa=Ma==null?void 0:Ma.relatedId)==null?void 0:aa.includes(parseInt(Ua)):(Ma==null?void 0:Ma.sort)===((ma=vl==null?void 0:vl[0])==null?void 0:ma.sort)||(Ma==null?void 0:Ma.sort)===(parseInt(((ja=vl==null?void 0:vl[0])==null?void 0:ja.sort)??"0")+1).toString()});if((_a==null?void 0:_a.length)>0){let Ma=vl==null?void 0:vl[0];Ma={...Ma,id:(pl=_a==null?void 0:_a[0])==null?void 0:pl.id};let aa={},ma=Ma,ja;return Array.isArray((Il=me==null?void 0:me.struct)==null?void 0:Il[0])?ja=re.getColumnChild((Qa=me==null?void 0:me.struct)==null?void 0:Qa[0]):ja=me==null?void 0:me.struct,ja=ja==null?void 0:ja.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ja==null||ja.forEach(xa=>{var Ul,Gl,Da,Rl;((Ul=xa==null?void 0:xa.words)!=null&&Ul[0]?(ma==null?void 0:ma[(Gl=xa==null?void 0:xa.words)==null?void 0:Gl[0]])??(ma==null?void 0:ma[xa==null?void 0:xa.prop]):ma!=null&&ma[xa==null?void 0:xa.prop])&&(aa[xa.prop]=((Da=xa==null?void 0:xa.words)!=null&&Da[0]?(ma==null?void 0:ma[(Rl=xa==null?void 0:xa.words)==null?void 0:Rl[0]])??(ma==null?void 0:ma[xa==null?void 0:xa.prop]):ma==null?void 0:ma[xa==null?void 0:xa.prop])??"")}),aa.id=(kl=_a==null?void 0:_a[0])==null?void 0:kl.id,delete aa.sort,delete aa.relatedId,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[aa]}}else return}))==null?void 0:ze.filter(me=>me);Sa=[...Sa,...oa],await R.pageBatchUpdateApi({platId:parseInt((ue=gl==null?void 0:gl.value)==null?void 0:ue.plat_id),changeContents:Sa});let Ya=[];Sa==null||Sa.forEach(me=>{var _a;(_a=me==null?void 0:me.tableContents)==null||_a.forEach(Pa=>{Ya.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Pa),request_result:"{}",is_delete:!1,request_table:me==null?void 0:me.tableName,request_type:"update"})})}),await R.pageBatchAddApi({platId:parseInt((N=gl==null?void 0:gl.value)==null?void 0:N.plat_id),changeContents:[{tableName:"log",tableContents:Ya}]})}if((a==null?void 0:a.buttonName)==="删除"){let ga=[{tableName:(se=a==null?void 0:a.relatedContents)==null?void 0:se.find(Me=>Me==null?void 0:Me.includes("content")),tableContents:a==null?void 0:a.fixContent}],ol=await R.quoteApi({platId:parseInt((G=gl==null?void 0:gl.value)==null?void 0:G.plat_id),type:"fatherSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});ol=(ve=ol==null?void 0:ol.data)==null?void 0:ve.result,ol=ol==null?void 0:ol.filter(Me=>{var oa,Ya;return!((Me==null?void 0:Me.fatherPath)!==""&&((Ya=(oa=Me==null?void 0:Me.quote)==null?void 0:oa[0])==null?void 0:Ya.menus)===(Cl==null?void 0:Cl.value))});let vl=(Be=(ke=a==null?void 0:a.fixContent)==null?void 0:ke[0])==null?void 0:Be.id,Dl=(We=ol==null?void 0:ol.map(Me=>{var Ya,me,_a,Pa,pl,Il;let oa=(Ya=Me==null?void 0:Me.contents)==null?void 0:Ya.filter(Qa=>{var kl,Ma,aa;return JSON.stringify(Qa==null?void 0:Qa.relatedId)!=="{}"&&(Qa==null?void 0:Qa.relatedId)!==""&&(Qa!=null&&Qa.relatedId)?(kl=Qa==null?void 0:Qa.relatedId)==null?void 0:kl.includes(parseInt(vl)):(Qa==null?void 0:Qa.sort)===((aa=(Ma=a==null?void 0:a.fixContent)==null?void 0:Ma[0])==null?void 0:aa.sort)});if((oa==null?void 0:oa.length)>0){let Qa=(me=a==null?void 0:a.fixContent)==null?void 0:me[0];Qa={...Qa,id:(_a=oa==null?void 0:oa[0])==null?void 0:_a.id};let kl={},Ma=Qa,aa;return Array.isArray((Pa=Me==null?void 0:Me.struct)==null?void 0:Pa[0])?aa=re.getColumnChild((pl=Me==null?void 0:Me.struct)==null?void 0:pl[0]):aa=Me==null?void 0:Me.struct,aa=aa==null?void 0:aa.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),aa==null||aa.forEach(ma=>{var ja,xa;kl[ma.prop]=((ja=ma==null?void 0:ma.words)!=null&&ja[0]?(Ma==null?void 0:Ma[(xa=ma==null?void 0:ma.words)==null?void 0:xa[0]])??(Ma==null?void 0:Ma[ma==null?void 0:ma.prop]):Ma==null?void 0:Ma[ma==null?void 0:ma.prop])??""}),kl.id=(Il=oa==null?void 0:oa[0])==null?void 0:Il.id,delete kl.sort,delete kl.relatedId,{tableName:"content_"+(Me==null?void 0:Me.id),tableContents:[kl]}}else return}))==null?void 0:We.filter(Me=>Me);ga=[...ga,...Dl];let Ua=await R.quoteApi({platId:parseInt((he=gl==null?void 0:gl.value)==null?void 0:he.plat_id),type:"sonSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});Ua=(Oe=(I=Ua==null?void 0:Ua.data)==null?void 0:I.result)==null?void 0:Oe.filter(Me=>!(ga!=null&&ga.find(oa=>(oa==null?void 0:oa.tableName)==="content_"+(Me==null?void 0:Me.id)))),Ua=Ua==null?void 0:Ua.filter(Me=>{var oa,Ya;return!((Me==null?void 0:Me.fatherPath)!==""&&((Ya=(oa=Me==null?void 0:Me.quote)==null?void 0:oa[0])==null?void 0:Ya.menus)===(Cl==null?void 0:Cl.value))});let Sa=(oe=Ua==null?void 0:Ua.map(Me=>{var Ya,me,_a,Pa,pl,Il;let oa=(Ya=Me==null?void 0:Me.contents)==null?void 0:Ya.filter(Qa=>{var kl,Ma,aa;return JSON.stringify(Qa==null?void 0:Qa.relatedId)!=="{}"&&(Qa==null?void 0:Qa.relatedId)!==""&&(Qa!=null&&Qa.relatedId)?(kl=Qa==null?void 0:Qa.relatedId)==null?void 0:kl.includes(parseInt(vl)):(Qa==null?void 0:Qa.sort)===((aa=(Ma=a==null?void 0:a.fixContent)==null?void 0:Ma[0])==null?void 0:aa.sort)});if((oa==null?void 0:oa.length)>0){let Qa=(me=a==null?void 0:a.fixContent)==null?void 0:me[0];Qa={...Qa,id:(_a=oa==null?void 0:oa[0])==null?void 0:_a.id};let kl={},Ma=Qa,aa;return Array.isArray((Pa=Me==null?void 0:Me.struct)==null?void 0:Pa[0])?aa=re.getColumnChild((pl=Me==null?void 0:Me.struct)==null?void 0:pl[0]):aa=Me==null?void 0:Me.struct,aa=aa==null?void 0:aa.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),aa==null||aa.forEach(ma=>{var ja,xa;kl[ma.prop]=((ja=ma==null?void 0:ma.words)!=null&&ja[0]?(Ma==null?void 0:Ma[(xa=ma==null?void 0:ma.words)==null?void 0:xa[0]])??(Ma==null?void 0:Ma[ma==null?void 0:ma.prop]):Ma==null?void 0:Ma[ma==null?void 0:ma.prop])??""}),kl.id=(Il=oa==null?void 0:oa[0])==null?void 0:Il.id,delete kl.sort,delete kl.relatedId,{tableName:"content_"+(Me==null?void 0:Me.id),tableContents:[kl]}}else return}))==null?void 0:oe.filter(Me=>Me);ga=[...ga,...Sa],await R.pageBatchDeleteApi({platId:parseInt((ge=gl==null?void 0:gl.value)==null?void 0:ge.plat_id),changeContents:ga});let rl=[];ga==null||ga.forEach(Me=>{var oa;(oa=Me==null?void 0:Me.tableContents)==null||oa.forEach(Ya=>{rl.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(Ya),request_result:"{}",is_delete:!1,request_table:Me==null?void 0:Me.tableName,request_type:"delete"})})}),await R.pageBatchAddApi({platId:parseInt((xe=gl==null?void 0:gl.value)==null?void 0:xe.plat_id),changeContents:[{tableName:"log",tableContents:rl}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let ga=await R.getPageDataApi({platId:parseInt((ne=gl==null?void 0:gl.value)==null?void 0:ne.plat_id),pageName:"menu"});if(ga=(we=ga==null?void 0:ga.data)==null?void 0:we.result,ga!=null&&ga.find(ol=>(ol==null?void 0:ol.father_name)===Cl.value+"/")){Hc.value=a,Pc.value=ga==null?void 0:ga.filter(Dl=>(Dl==null?void 0:Dl.father_name)===Cl.value+"/");let ol=(ya=(Ke=a==null?void 0:a.columns)==null?void 0:Ke.find(Dl=>Dl==null?void 0:Dl.mainKey))==null?void 0:ya.prop,vl=(V=(Ge=a==null?void 0:a.fixContent)==null?void 0:Ge[0])==null?void 0:V[ol];jt.value=!0,ao.value=[{prop:ol,label:ol,name:ol,value:vl}]}else{let ol=(F=a==null?void 0:a.fixContent)==null?void 0:F.map(Ua=>{let Sa={};for(let rl in Ua)Array.isArray(Ua==null?void 0:Ua[rl])?Sa[rl]=JSON.stringify(Ua==null?void 0:Ua[rl]):Sa[rl]=Ua==null?void 0:Ua[rl];return Sa.relatedId="",Sa}),vl=[{tableName:(le=a==null?void 0:a.relatedContents)==null?void 0:le.find(Ua=>Ua==null?void 0:Ua.includes("content")),tableContents:ol}];await R.pageBatchAddApi({platId:parseInt((fe=gl==null?void 0:gl.value)==null?void 0:fe.plat_id),changeContents:vl});let Dl=[];vl==null||vl.forEach(Ua=>{var Sa;(Sa=Ua==null?void 0:Ua.tableContents)==null||Sa.forEach(rl=>{Dl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(rl),request_result:"{}",is_delete:!1,request_table:Ua==null?void 0:Ua.tableName,request_type:"copyAdd"})})}),await R.pageBatchAddApi({platId:parseInt((be=gl==null?void 0:gl.value)==null?void 0:be.plat_id),changeContents:[{tableName:"log",tableContents:Dl}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let ga=((Pe=(ia=(ua=a==null?void 0:a.columns)==null?void 0:ua.map(me=>me==null?void 0:me.filter))==null?void 0:ia.filter(me=>me!==""))==null?void 0:Pe[0])??"";ga=re.analyzeSplitToContent(ga,","),ga=(ga==null?void 0:ga.find(me=>me==null?void 0:me.includes("@Filter")))??"";let ol=(va=a==null?void 0:a.fixContent)==null?void 0:va.map(me=>{let _a={};for(let Pa in me)Array.isArray(me==null?void 0:me[Pa])?_a[Pa]=JSON.stringify(me==null?void 0:me[Pa]):_a[Pa]=me==null?void 0:me[Pa];return _a}),vl=await R.quoteApi({platId:parseInt((Ea=gl==null?void 0:gl.value)==null?void 0:Ea.plat_id),type:"fatherSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});vl=(Ae=vl==null?void 0:vl.data)==null?void 0:Ae.result,vl=vl==null?void 0:vl.filter(me=>{var _a,Pa;return!((me==null?void 0:me.fatherPath)!==""&&((Pa=(_a=me==null?void 0:me.quote)==null?void 0:_a[0])==null?void 0:Pa.menus)===(Cl==null?void 0:Cl.value))});let Dl=(Ta=(Fa=a==null?void 0:a.columns)==null?void 0:Fa[0])==null?void 0:Ta.prop,Ua=(da=ol==null?void 0:ol[0])==null?void 0:da[Dl],Sa=[{tableName:(Ha=a==null?void 0:a.relatedContents)==null?void 0:Ha.find(me=>me==null?void 0:me.includes("content")),tableContents:ol}],rl=(sa=vl==null?void 0:vl.map(me=>{var Pa,pl,Il,Qa,kl;let _a=(Pa=me==null?void 0:me.contents)==null?void 0:Pa.filter(Ma=>{var aa;return(aa=Object.values(Ma))==null?void 0:aa.find(ma=>ma===Ua)});if((_a==null?void 0:_a.length)>0){let Ma=ol==null?void 0:ol[0];Ma={...Ma,id:(pl=_a==null?void 0:_a[0])==null?void 0:pl.id};let aa={},ma=Ma,ja;return Array.isArray((Il=me==null?void 0:me.struct)==null?void 0:Il[0])?ja=re.getColumnChild((Qa=me==null?void 0:me.struct)==null?void 0:Qa[0]):ja=me==null?void 0:me.struct,ja=ja==null?void 0:ja.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ja==null||ja.forEach(xa=>{var Ul,Gl;aa[xa.prop]=((Ul=xa==null?void 0:xa.words)!=null&&Ul[0]?(ma==null?void 0:ma[(Gl=xa==null?void 0:xa.words)==null?void 0:Gl[0]])??(ma==null?void 0:ma[xa==null?void 0:xa.prop]):ma==null?void 0:ma[xa==null?void 0:xa.prop])??""}),aa.id=(kl=_a==null?void 0:_a[0])==null?void 0:kl.id,delete aa.sort,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[aa]}}else return}))==null?void 0:sa.filter(me=>me);Sa=[...Sa,...rl];let Me=await R.quoteApi({platId:parseInt((He=gl==null?void 0:gl.value)==null?void 0:He.plat_id),type:"sonSyncs",related:[{menus:n!==""?Cl.value+"/"+n:Cl.value,groups:a==null?void 0:a.name}]});if(Me=(ea=(ha=Me==null?void 0:Me.data)==null?void 0:ha.result)==null?void 0:ea.filter(me=>!(Sa!=null&&Sa.find(_a=>(_a==null?void 0:_a.tableName)==="content_"+(me==null?void 0:me.id)))),Me=Me==null?void 0:Me.filter(me=>{var _a,Pa;return!((me==null?void 0:me.fatherPath)!==""&&((Pa=(_a=me==null?void 0:me.quote)==null?void 0:_a[0])==null?void 0:Pa.menus)===(Cl==null?void 0:Cl.value))}),ga&&ga!==""){(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])===","&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1)),ga=(Fe=($e=ga==null?void 0:ga.replace("(",xo))==null?void 0:$e.split(xo))==null?void 0:Fe[1],ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1),(ga==null?void 0:ga[0])==="*"&&(ga="{"+((Ye=(ie=ga==null?void 0:ga.replace("{",xo))==null?void 0:ie.split(xo))==null?void 0:Ye[1])),ga=(na=ga==null?void 0:ga.replaceAll("{",""))==null?void 0:na.replaceAll("}","");let me=re.calculatorAndToOr(ga);me=me==null?void 0:me[0];let _a;if((fa=Object.values(me))!=null&&fa.some(Pa=>(Pa==null?void 0:Pa[0])==="*")){let Pa=(Ie=(Re=ni.value)==null?void 0:Re.find(pl=>(pl==null?void 0:pl.condition)==="child"))!=null&&Ie.value?(_n==null?void 0:_n.value)+"/"+((Ne=(Je=ni.value)==null?void 0:Je.find(pl=>(pl==null?void 0:pl.condition)==="child"))==null?void 0:Ne.value):_n==null?void 0:_n.value;_a=await qr(Pa,!1)}for(let Pa in me)if(((_e=me==null?void 0:me[Pa])==null?void 0:_e[0])==="*"){let pl=(Pl=(el=(wl=me[Pa])==null?void 0:wl.slice(1,($a=me[Pa])==null?void 0:$a.length))==null?void 0:el.split(":"))==null?void 0:Pl[0],Il=(Hl=(bl=me[Pa])==null?void 0:bl.split(":"))==null?void 0:Hl[1],Qa=(ll=_a==null?void 0:_a.filter(kl=>(kl==null?void 0:kl.name)===pl))==null?void 0:ll[0];Qa=(Ga=(jl=Qa==null?void 0:Qa.compData)==null?void 0:jl.find(kl=>(kl==null?void 0:kl.key)==="tableContents"))==null?void 0:Ga.contents,Qa=(Jl=Qa==null?void 0:Qa[0])==null?void 0:Jl[Il],me[Pa]=Qa}ga=((Xl=Object.values(me))==null?void 0:Xl[0])??""}let oa=(ar=Me==null?void 0:Me.map(me=>{var Pa,pl,Il,Qa,kl;let _a=(Pa=me==null?void 0:me.contents)==null?void 0:Pa.filter(Ma=>{var aa;return(aa=Object.values(Ma))==null?void 0:aa.find(ma=>ma===(ga===""?Ua:ga))});if((_a==null?void 0:_a.length)>0){let Ma=ol==null?void 0:ol[0];Ma={...Ma,id:(pl=_a==null?void 0:_a[0])==null?void 0:pl.id};let aa={},ma=Ma,ja;return Array.isArray((Il=me==null?void 0:me.struct)==null?void 0:Il[0])?ja=re.getColumnChild((Qa=me==null?void 0:me.struct)==null?void 0:Qa[0]):ja=me==null?void 0:me.struct,ja=ja==null?void 0:ja.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ja==null||ja.forEach(xa=>{var Gl,Da,Rl,Fr;let Ul=(Gl=a==null?void 0:a.columns)==null?void 0:Gl.find(Dr=>{var Qe,La,hl;return((La=(Qe=Dr==null?void 0:Dr.words)==null?void 0:Qe[0])==null?void 0:La.replaceAll("'",""))===(xa==null?void 0:xa.prop)&&((hl=Dr==null?void 0:Dr.functionRelatedWords)==null?void 0:hl.length)>0});Ul=(Da=Ul==null?void 0:Ul.prop)==null?void 0:Da.replaceAll("'",""),aa[xa.prop]=((Rl=xa==null?void 0:xa.words)!=null&&Rl[0]?(ma==null?void 0:ma[(Fr=xa==null?void 0:xa.words)==null?void 0:Fr[0]])??(ma==null?void 0:ma[xa==null?void 0:xa.prop])??(ma==null?void 0:ma[Ul]):(ma==null?void 0:ma[xa==null?void 0:xa.prop])??(ma==null?void 0:ma[Ul]))??void 0}),aa.id=(kl=_a==null?void 0:_a[0])==null?void 0:kl.id,delete aa.sort,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[aa]}}else return}))==null?void 0:ar.filter(me=>me);Sa=[...Sa,...oa],await R.pageBatchUpdateApi({platId:parseInt((Sl=gl==null?void 0:gl.value)==null?void 0:Sl.plat_id),changeContents:Sa});let Ya=[];Sa==null||Sa.forEach(me=>{var _a;(_a=me==null?void 0:me.tableContents)==null||_a.forEach(Pa=>{Ya.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Pa),request_result:"{}",is_delete:!1,request_table:me==null?void 0:me.tableName,request_type:"method"})})}),await R.pageBatchAddApi({platId:parseInt((pr=gl==null?void 0:gl.value)==null?void 0:pr.plat_id),changeContents:[{tableName:"log",tableContents:Ya}]})}Kr.setRefreshCurStructure(!0),Kr.setRefreshCurrentPageInform(f3.value++),await Lt(a)},Ot=async(a,l,r)=>{var i;let n=a==null?void 0:a.find(o=>(o==null?void 0:o.id)===l);if(n){let o=(i=n.compData)==null?void 0:i.map(p=>{var s;if((p==null?void 0:p.key)==="tableContents"){let u={...p,contents:r};return u.contents=(s=(u==null?void 0:u.contents)??[])==null?void 0:s.map(y=>{let b={};for(let g in y)JSON.stringify(y==null?void 0:y[g])==="{}"?b[g]="":b[g]=y==null?void 0:y[g];return b}),u}return p});return n.compData=await Po(o,{}),a=a==null?void 0:a.map(p=>((p==null?void 0:p.id)===(n==null?void 0:n.id)&&(p=n),p)),a}else{let o=a==null?void 0:a.filter(s=>{var u;return(s==null?void 0:s.children)&&((u=s==null?void 0:s.children)==null?void 0:u.length)>0||(s==null?void 0:s.comp)==="Tabs"}),p=o==null?void 0:o.map(async s=>{var u;return s!=null&&s.children&&((u=s==null?void 0:s.children)==null?void 0:u.length)>0?s.children=await Ot(s==null?void 0:s.children,l,r):s.compData=await Ot(s==null?void 0:s.compData,l,r),s});return o=await Promise.all(p),o}},Lt=async a=>{var o,p,s,u,y,b,g;let l=(o=a==null?void 0:a.relatedContents)==null?void 0:o.filter(d=>d==null?void 0:d.includes("content_"));if(!l)return;let r=await R.getAllTables({platId:parseInt((p=gl==null?void 0:gl.value)==null?void 0:p.plat_id),tableNames:l??[]});if(r=(u=(s=r==null?void 0:r.data)==null?void 0:s.result)==null?void 0:u[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(d=>{d==null||delete d.source_table;const C={};for(let v in d){const H=d==null?void 0:d[v],T=H&&Object.prototype.toString.call(H)==="[object Object]"&&Object.keys(H).length===0,j=Array.isArray(H)&&H.length===0;H==null||H==="{}"||T||j?C[v]="":C[v]=H}return C});let n=(b=(y=l==null?void 0:l[0])==null?void 0:y.split("_"))==null?void 0:b[1],i=await Ot(xr.value,n,r);xr.value=(g=xr.value)==null?void 0:g.map(d=>{var C,v;return(C=i==null?void 0:i[0])!=null&&C.tabInform&&((v=i==null?void 0:i[0])==null?void 0:v.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})},E3=a=>{let l=ao.value;ao.value=l==null?void 0:l.map(r=>(r.value=a==null?void 0:a[r==null?void 0:r.prop],r))},C3=async()=>{var d,C,v,H,T,j,D,_,S,x;let a=Hc.value,l=Pc.value,r=(C=(d=a==null?void 0:a.columns)==null?void 0:d.find(k=>k==null?void 0:k.mainKey))==null?void 0:C.prop,n=(H=(v=ao.value)==null?void 0:v[0])==null?void 0:H.value,i=(T=a==null?void 0:a.fixContent)==null?void 0:T.map(k=>{var M;let E={};for(let O in k)Array.isArray(k==null?void 0:k[O])?E[O]=JSON.stringify(k==null?void 0:k[O]):E[O]=k==null?void 0:k[O];return(M=a==null?void 0:a.columns)==null||M.forEach(O=>{(O==null?void 0:O.formType)==="Upload"&&(E==null?void 0:E[O==null?void 0:O.prop])===""&&(E[O==null?void 0:O.prop]="{}")}),E[r]=n,E}),o=[{tableName:(j=a==null?void 0:a.relatedContents)==null?void 0:j.find(k=>k==null?void 0:k.includes("content")),tableContents:i}];await R.pageBatchAddApi({platId:parseInt((D=gl==null?void 0:gl.value)==null?void 0:D.plat_id),changeContents:o}),l=l==null?void 0:l.filter(k=>{var E,M,O;return(O=k==null?void 0:k.object_name)==null?void 0:O.includes((M=(E=a==null?void 0:a.fixContent)==null?void 0:E[0])==null?void 0:M[r])});let p=[],s=new Map;l==null||l.forEach(k=>{p.push(`content_${k==null?void 0:k.object_id}`),p.push(`struct_${k==null?void 0:k.object_id}`),s.set(k==null?void 0:k.object_id,k)});let u=await R.getAllTables({platId:parseInt((_=gl==null?void 0:gl.value)==null?void 0:_.plat_id),tableNames:p??[]});u=(S=u==null?void 0:u.data)==null?void 0:S.result;let y=[],b=[];u=re.chunk(u,2),u==null||u.forEach(k=>{var O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I;let E=s.get((ye=(J=(Q=(O=k==null?void 0:k[1])==null?void 0:O[0])==null?void 0:Q.source_table)==null?void 0:J.split("_"))==null?void 0:ye[1]),M=(q=(U=(te=E==null?void 0:E.object_name)==null?void 0:te.split("/"))==null?void 0:U.filter((Oe,oe)=>{var ge,xe;return((xe=(ge=E==null?void 0:E.object_name)==null?void 0:ge.split("/"))==null?void 0:xe.length)-1!==oe}))==null?void 0:q.join("/");if(M=M+"/"+n,b!=null&&b.find(Oe=>(Oe==null?void 0:Oe.path)===M)||b.push({fatherPath:E==null?void 0:E.father_name,isShow:E==null?void 0:E.is_show,path:M}),((ee=(X=k==null?void 0:k[1])==null?void 0:X[0])==null?void 0:ee.类型)==="Table"){let Oe=((ue=(ze=(pe=k==null?void 0:k[1])==null?void 0:pe[0])==null?void 0:ze.结构)==null?void 0:ue.contents)??[],oe=ul.safeClone(Oe);Array.isArray(oe==null?void 0:oe[0])&&(oe=re.getColumnChild(oe==null?void 0:oe[0]));let ge=[];if(((N=k==null?void 0:k[0])==null?void 0:N.length)>0&&(ge=(se=k==null?void 0:k[0])==null?void 0:se.map(xe=>oe==null?void 0:oe.map(we=>(we=(xe==null?void 0:xe[we==null?void 0:we.prop])??"",we)))),y!=null&&y.find(xe=>(xe==null?void 0:xe.key)===M)){let xe=(G=y==null?void 0:y.find(we=>(we==null?void 0:we.key)===M))==null?void 0:G.contents;xe.push({isShow:E==null?void 0:E.is_show,filter:((Be=(ke=(ve=k==null?void 0:k[1])==null?void 0:ve[0])==null?void 0:ke.引用)==null?void 0:Be.contents)??"",key:"Table",name:Object.values(E==null?void 0:E.name),tableColumns:Oe,tableContents:ge});let ne=y==null?void 0:y.findIndex(we=>(we==null?void 0:we.key)===M);y[ne].contents=xe}else y.push({key:M,contents:[{isShow:E==null?void 0:E.is_show,filter:((I=(he=(We=k==null?void 0:k[1])==null?void 0:We[0])==null?void 0:he.引用)==null?void 0:I.contents)??"",key:"Table",name:Object.values(E==null?void 0:E.name),tableColumns:Oe,tableContents:ge}]})}});let g=[];g.push({key:"menuPath",contents:b}),g=[...g,...y],await R.createPlatFormDataApi({platId:parseInt((x=gl==null?void 0:gl.value)==null?void 0:x.plat_id),changeData:g}),jt.value=!1,Kr.setRefreshTable(!0)},Lo=async(a,l)=>{},Ro=async a=>{xr.value=await re.getDeepDiffItems(a),Kr.setItemData(xr.value),Kr.setOriginalData(xr.value)};e.ref();const T3=e.ref(null),B3=()=>{var a,l;console.log("倒计时结束时"),R.ElMessageBox.alert(`超时未提交,【${(l=(a=Cl.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},Wc=e.ref([]),D3=e.computed(()=>{var a,l;return(l=(a=Mt.value)==null?void 0:a[Cl.value])==null?void 0:l.filter(r=>{var n;return((n=r==null?void 0:r.key)==null?void 0:n.type)==="gridLayout"})});e.watch(()=>[v3.value],()=>{Nn.setSelectTitle([]),Nn.setChooseTitle([])},{deep:!0});e.watch(()=>Io.value,async(a,l)=>{var n,i,o,p,s,u;let r=(n=Io.value)==null?void 0:n.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==_n.value);if((r==null?void 0:r.length)>0){rn.setContentLoading(!0);let y=((i=r==null?void 0:r[0])==null?void 0:i.relatedContent)??(Cl==null?void 0:Cl.value),b=y+"/"+((o=r==null?void 0:r[0])==null?void 0:o.value),g=!!((p=r==null?void 0:r[0])!=null&&p.parentContent),d=await qr(b,g,{originPath:y});d=(s=d==null?void 0:d.filter(H=>H))==null?void 0:s.map(H=>(H.isShow=!0,H)),console.log(d,"loadingContents");let C=await re.getDeepDiffItems(d),v=C==null?void 0:C.filter(H=>H==null?void 0:H.choice);Ho.setSelectTab((u=v==null?void 0:v[0])==null?void 0:u.choiceName),C=C==null?void 0:C.filter(H=>{var T;return!(H!=null&&H.choiceName)||(H==null?void 0:H.choiceName)===((T=v==null?void 0:v[0])==null?void 0:T.choiceName)}),xr.value=C,rn.setContentLoading(!1)}});const N3=(a,l)=>{setTimeout(async()=>{var s,u,y;let r=(s=Io.value)==null?void 0:s.filter(b=>(b==null?void 0:b.condition)==="child"&&(b==null?void 0:b.value)!==""&&(b==null?void 0:b.parentContent)!==_n.value),n=Cl==null?void 0:Cl.value,i=Cl==null?void 0:Cl.value;(r==null?void 0:r.length)>0&&(i=((u=r==null?void 0:r[0])==null?void 0:u.relatedContent)??(Cl==null?void 0:Cl.value),n=i+"/"+((y=r==null?void 0:r[0])==null?void 0:y.value));let o=await qr(n,!1,{originPath:i});o=o==null?void 0:o.map(b=>(b.isShow=!0,b));let p=await re.getDeepDiffItems(o);xr.value=p==null?void 0:p.filter(b=>!(b!=null&&b.step)||(b==null?void 0:b.step)===(a==null?void 0:a.title))},10)},A3=a=>{setTimeout(async()=>{var p,s,u;let l=(p=Io.value)==null?void 0:p.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==_n.value),r=Cl==null?void 0:Cl.value,n=Cl==null?void 0:Cl.value;(l==null?void 0:l.length)>0&&(n=((s=l==null?void 0:l[0])==null?void 0:s.relatedContent)??(Cl==null?void 0:Cl.value),r=n+"/"+((u=l==null?void 0:l[0])==null?void 0:u.value));let i=await qr(r,!1,{originPath:n});i=i==null?void 0:i.map(y=>(y.isShow=!0,y)),Ho.setSelectTab(a);let o=await re.getDeepDiffItems(i);xr.value=o==null?void 0:o.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===a)},10)};e.watch(()=>h3.value,a=>{a!=null&&a.length||(xr.value=[])},{immediate:!0});e.watch(()=>[Cl.value],async a=>{var o,p,s,u;if(!Cl.value)return;if(Cl.value==="/"){xr.value=[];return}rn.setCurrentMenuPath(Cl.value),Kr.setLockingPage(""),xr.value=[];let l=e.getCurrentInstance();(o=l==null?void 0:l.scope)==null||o.stop(),l=null,$i.value=!1,rn.setContentLoading(!0),Fc.value=!0;let r=a==null?void 0:a[0],n=r,i=(p=ni.value)==null?void 0:p.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Cl.value&&!(y!=null&&y.relatedContent));if((i==null?void 0:i.length)>0&&(r=r+"/"+((s=i==null?void 0:i[0])==null?void 0:s.value)),r==="系统管理/日志管理")xr.value=await s3("log");else{let y=await qr(r,!0,{originPath:n});y=y==null?void 0:y.map(d=>(d.isShow=!0,d));let b=await re.getDeepDiffItems(y),g=b==null?void 0:b.filter(d=>d==null?void 0:d.choice);Ho.setSelectTab((u=g==null?void 0:g[0])==null?void 0:u.choiceName),xr.value=b==null?void 0:b.filter(d=>{var C;return!(d!=null&&d.choiceName)||(d==null?void 0:d.choiceName)===((C=g==null?void 0:g[0])==null?void 0:C.choiceName)})}rn.setContentLoading(!1),Kr.setExtraContents([]),Nn.setSelectIndex(""),Nn.setSelectMenu(""),Kr.setItemData(xr.value),Kr.setOriginalData(xr.value),Kr.setRefreshTable(!1),e.nextTick(()=>{oi.value=oi.value++,$i.value=!0})},{immediate:!0});e.watch(()=>[Ps.value],async()=>{var a,l,r,n;if(Ps.value){xr.value=[];let i=e.getCurrentInstance();(a=i==null?void 0:i.scope)==null||a.stop(),i=null,$i.value=!1,rn.setContentLoading(!0),Fc.value=!0;let o=_n==null?void 0:_n.value,p=o,s=(l=ni.value)==null?void 0:l.filter(g=>(g==null?void 0:g.condition)==="child"&&(g==null?void 0:g.value)!==""&&(g==null?void 0:g.parentContent)!==(_n==null?void 0:_n.value));(s==null?void 0:s.length)>0&&(o=o+"/"+((r=s==null?void 0:s[0])==null?void 0:r.value));let u=await qr(o,!0,{originPath:p});u=u==null?void 0:u.map(g=>(g.isShow=!0,g));let y=await re.getDeepDiffItems(u),b=y==null?void 0:y.filter(g=>g==null?void 0:g.choice);if(Ho.setSelectTab((n=b==null?void 0:b[0])==null?void 0:n.choiceName),xr.value=y==null?void 0:y.filter(g=>{var d;return!(g!=null&&g.choiceName)||(g==null?void 0:g.choiceName)===((d=b==null?void 0:b[0])==null?void 0:d.choiceName)}),rn.setContentLoading(!1),Kr.setExtraContents([]),Nn.setSelectIndex(""),Nn.setSelectMenu(""),Kr.setItemData(xr.value),Kr.setOriginalData(xr.value),Kr.setRefreshTable(!1),(s==null?void 0:s.length)>0){let g=[...ni.value,...s];Nn.setSelectTitle(g)}e.nextTick(()=>{oi.value=oi.value++,$i.value=!0})}},{immediate:!0,deep:!0});const z3=async()=>{rn.setLinkMenuInfo(null),rn.setActiveMenuPath(p3.value),xr.value=null,Kr.setRouteToChildPath(""),rn.setChildMenu("")},M3=a=>new RegExp("button","i").test(a),I3=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),Gc=a=>{if(I3(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&rn.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},Kc=async(a,l,r)=>{var d,C,v,H,T,j,D,_,S,x,k,E;let n="",i="";for(let M in l)(l==null?void 0:l[M])===a&&(i=M);r==null||r.forEach(M=>{(M==null?void 0:M.prop)===i&&(n=M==null?void 0:M.fatherPath)});let o=n===""?Cl.value:n;n!==""&&rn.setCurrentMenuPath(o),rn.setCurrentMenuPath(o+"/"+a),rn.setContentLoading(!0),xr.value=await qr(o+"/"+a,!0,{originPath:o+"/",row:l});let p=await qr(o,!1),s=(d=p==null?void 0:p.filter(M=>(M==null?void 0:M.comp)==="Table"))==null?void 0:d[0],u=((T=(H=(v=(C=s==null?void 0:s.compData)==null?void 0:C.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:v.contents)==null?void 0:H[0])==null?void 0:T.prop)??((x=(S=(_=(D=(j=s==null?void 0:s.compData)==null?void 0:j.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:D.contents)==null?void 0:_[0])==null?void 0:S[0])==null?void 0:x.prop),y=(E=(k=s==null?void 0:s.compData)==null?void 0:k.find(M=>(M==null?void 0:M.key)==="tableContents"))==null?void 0:E.contents;y=y==null?void 0:y.map(M=>({label:M==null?void 0:M[u],value:M==null?void 0:M[u]}));let b=ni.value,g={value:a,condition:"child",options:y,relatedContent:o,isShow:!0};b=b==null?void 0:b.filter(M=>(M==null?void 0:M.condition)!=="child"),b.push(g),Nn.setSelectTitle(b),Nn.setChooseTitle([g]),rn.setContentLoading(!1),Kr.setExtraContents([]),Nn.setSelectIndex(""),Nn.setSelectMenu(""),Kr.setItemData(xr.value),Kr.setOriginalData(xr.value)},O3=a=>{Uc.value=a},Ii=e.reactive({index:0,comp:null}),L3=e.computed(()=>{var a;return(a=xr.value)==null?void 0:a.map((l,r)=>({id:l.id,name:l.name,status:R3(l,r)}))}),Yc=(a,l)=>{var u,y,b,g,d;const r=l?a:a-2,n=(u=xr.value)==null?void 0:u[r],i=(b=(y=n==null?void 0:n.compData)==null?void 0:y.find(C=>(C==null?void 0:C.key)==="header"))==null?void 0:b.contents,o=i==null?void 0:i.findIndex(C=>(C==null?void 0:C.isMainKey)&&(C==null?void 0:C.label)!=="操作"),p=o===-1?0:o,s=(d=(g=n==null?void 0:n.compData)==null?void 0:g.find(C=>(C==null?void 0:C.key)==="tableContents"))==null?void 0:d.contents;return{valid:s==null?void 0:s.every(C=>C==null?void 0:C[p+1]),length:(s==null?void 0:s.length)||0}},R3=(a,l)=>{var n;let r="process";if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){const{valid:i,length:o}=Yc(l,!0);Ii.index===l?r="process":o===0?r="wait":r=i?"success":"error"}return r},Jc=a=>{var r,n,i,o,p;const l=a+1;if(l>1&&((i=(n=(r=xr.value)==null?void 0:r[a])==null?void 0:n.comp)==null?void 0:i.toUpperCase())==="TABLE"){const{valid:s}=Yc(l);s?(Ii.index=l,Ii.comp=(o=xr.value)==null?void 0:o[a]):Xa.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Ii.index=l,Ii.comp=(p=xr.value)==null?void 0:p[a]},Xc=e.computed(()=>{var a,l;return(l=(a=jc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Xc.value,a=>{a&&Jc(0)},{immediate:!0});const $o=e.ref(0),Zc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=R.cloneDeep(a))==null?void 0:l.map(n=>($o.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??$o.value,children:Zc(n==null?void 0:n.children)},n))},$3=a=>{var r;return(r=R.cloneDeep(a))==null?void 0:r.map(n=>($o.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??$o.value,children:Zc(n==null?void 0:n.children)},n))},Qc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===l)?(r=R.cloneDeep(a))==null?void 0:r.filter(i=>(i==null?void 0:i.id)!==l):(a=a==null?void 0:a.map(n=>(n.children=Qc(n==null?void 0:n.children,l),n)),a)},eu=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=R.cloneDeep(a))==null?void 0:r.map(i=>((i==null?void 0:i.id)===(l==null?void 0:l.id)&&(i=l),i)):(a=a==null?void 0:a.map(n=>(n.children=eu(n==null?void 0:n.children,l),n)),a)},au=(a,l)=>{var r;return a!=null&&a.find(n=>{var i;return(n==null?void 0:n.id)===((i=l==null?void 0:l.contents)==null?void 0:i.id)})?(r=R.cloneDeep(a))==null?void 0:r.map(i=>{var o;return(i==null?void 0:i.id)===((o=l==null?void 0:l.contents)==null?void 0:o.id)&&(i=l==null?void 0:l.contents),i}):(a=a==null?void 0:a.map(n=>(n.children=au(n==null?void 0:n.children,l),n)),a)},lu=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=R.cloneDeep(a))==null?void 0:r.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(n=>(n.children=lu(n==null?void 0:n.children,l),n)),a)},_r=[{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"}],V3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],F3=[{label:"新增",value:"add"}],Jn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:F3},{key:"background",label:"按钮背景色",type:"Color"}],Xn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:V3},{key:"textColor",label:"按钮颜色",type:"Color"}],P3={class:"table-content"},H3={class:"menu-config-wrap"},j3=["onClick"],U3={key:0,class:"viewport-wrap"},q3=["onClick"],W3={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"}},K3=["title"],Y3={class:"col-operate-wrap"},J3={key:0,class:"col-operate-radio-wrapper"},X3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Z3={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},Q3={class:"pop-view"},eh={class:"pop-wrapper"},ah={class:"file-list-pop"},lh=["title","onClick"],rh=["onClick"],nh=["onClick"],ih={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},oh={class:"form-content"},th={key:0,class:"dialog-footer"},sh={class:"dialog-footer"},ch={class:"ocr-dialog-content"},uh={class:"ocr-steps"},dh={key:0,class:"ocr-action-buttons"},ph={key:1,class:"ocr-preview-area"},fh={class:"ocr-file-grid"},hh={class:"file-thumbnail"},vh=["src"],mh={key:1,class:"thumbnail-placeholder"},yh={class:"progress-svg",viewBox:"0 0 36 36"},gh=["stroke","stroke-width","stroke-dasharray"],bh={key:0,class:"progress-icon"},kh={key:1,class:"progress-icon"},xh=["onClick"],wh={class:"file-name"},_h={key:0,class:"ocr-recognize-button"},Sh={key:2,class:"ocr-progress-section"},Eh={key:3,class:"ocr-confirm-area"},Ch={class:"ocr-preview-tip"},Th={class:"ocr-preview-table"},Bh={style:{display:"flex","align-items":"center",gap:"8px"}},Dh={key:0},Nh={key:4,class:"ocr-success-area"},Ah={key:0,class:"ocr-dialog-footer"},zh={class:"form-content"},Mh={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"}},js="ss-ocr-upload-history",Lh="ss-ocr-cert-history-v1",Rh={__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 os;const r=e.ref([]),n=Ht(R.pinia),i=e.ref(null),o=e.ref(new Set),p=e.ref(new Map),s=e.ref(!1),u=e.ref([]),y=e.ref(new Map),b=new Map,g=e.ref(new Map),d=a,C=e.ref((d==null?void 0:d.allowSelect)??!0),v=e.ref(((os=d==null?void 0:d.config)==null?void 0:os.showIndex)??!0),H=e.ref(),T=e.ref(!0),j=e.ref(!1),D=e.ref([]),_={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},S=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"}]}]),x=re.useOriginalState(R.pinia);let k="$R";const{originalPath:E}=R.storeToRefs(x),M=E.value,O=e.computed(()=>{var m;const f=(m=re.getAllLeafNodes(q.value)||[])==null?void 0:m.filter(L=>(L==null?void 0:L.type)!=="operate"&&(L==null?void 0:L.label)!=="操作"&&(L==null?void 0:L.prop)!=="operate");return f.length>0?f.every(L=>!!(L!=null&&L.sortable)):!1});e.computed(()=>{var m;return(m=q.value)==null?void 0:m.every(L=>L==null?void 0:L.filterable)}),e.computed(()=>{var m;return(m=q.value)==null?void 0:m.every(L=>L==null?void 0:L.operable)});const Q=e.ref(!0),J=e.ref([]),ye=e.reactive({column:{},status:!1,text:"合计"}),te=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),U=l,q=e.ref([]),X=e.ref([]),ee=e.ref([]),pe=e.reactive({prop:"",order:null}),ze=e.ref([]),ue=e.ref(!1),N=e.ref(!1),se=e.ref(null),{isUseBackdrop:G,initTrackFileType:ve,getFileExtension:ke,setData:Be,getFileInfo:We,getFilesInfo:he}=Do.useThreeSystem(),I=e.ref([]),Oe=e.ref(!1),oe=e.ref(),ge=R.useMenuState(),{importLoading:xe,activeMenuPath:ne,contentLoading:we,linkMenuInfo:Ke}=R.storeToRefs(ge),ya=re.useTableComp(R.pinia),Ge=R.useModelComp(R.pinia),V=si(R.pinia),{extraContents:F,cacheUpdatingData:le,tableViewContents:fe,tableLoading:be,pageMapState:ua,lockingPage:ia}=R.storeToRefs(Ge),{selectTab:Pe}=R.storeToRefs(V),{compType:va,hasEditable:Ea}=bc.useRole(),Ae=e.ref([]),Fa=e.ref([]),Ta=e.ref(new Map);e.ref(!1);const da=e.ref("");e.ref();const Ha=e.ref(!0),sa=e.ref(0),He=e.ref(!0),ha=e.ref(""),ea=e.ref(!1),$e=e.ref(null);e.ref([]);const Fe=e.ref({label:"查看三维模型"}),ie=e.ref(!1),Ye=e.ref(),na=e.ref([]),fa=e.ref([]),Re=e.ref(!1),Ie=e.ref([]),Je=e.ref([]),Ne=e.ref([]),_e=e.ref([]),$a=e.ref({dialogShow:!1,dialogTitle:""}),wl=()=>{$a.value.dialogShow=!1,$a.value.dialogTitle=""},el=f=>{console.log("Received signature data:",f),$a.value.dialogShow=!1},Pl=e.ref([]),bl=()=>{try{const f=localStorage.getItem(js),m=f?JSON.parse(f):[];Pl.value=Array.isArray(m)?m:[]}catch{Pl.value=[]}},Hl=()=>{try{localStorage.setItem(js,JSON.stringify(Pl.value||[]))}catch{}},ll=f=>{var ce,de,K;if(!f)return;const m=f.url||((ce=f==null?void 0:f.uploadResult)==null?void 0:ce.url)||"",L=f.name||((de=f==null?void 0:f.uploadResult)==null?void 0:de.name)||((K=f==null?void 0:f.uploadResult)==null?void 0:K.fileName)||"";if(!m&&!L)return;const $={name:L,url:m,ts:Date.now()},W=String($.name||"").trim().toLowerCase(),A=(Pl.value||[]).findIndex(Ce=>String((Ce==null?void 0:Ce.name)||"").trim().toLowerCase()===W);A>-1&&Pl.value.splice(A,1),Pl.value.unshift($),Pl.value.length>20&&(Pl.value=Pl.value.slice(0,20)),Hl()};bl();const jl=(f,m)=>`${Lh}:${String(f??"")}:${String(m??"")}`,Ga=(f,m)=>{try{const L=sessionStorage.getItem(jl(f,m)),$=L?JSON.parse(L):[];return Array.isArray($)?$:[]}catch{return[]}},Jl=(f,m,L)=>{try{sessionStorage.setItem(jl(f,m),JSON.stringify(Array.isArray(L)?L:[]))}catch{}},Xl=(f,m,L)=>{if(!m)return;const $=Ga(f,m),W=[L,...$||[]].filter(Boolean).slice(0,1);return Jl(f,m,W),W},ar=(f,m,L)=>{if(!m||!L)return;const $=jl(f,m),W=jl(f,L);try{const A=sessionStorage.getItem($);if(!A)return;const ce=(()=>{try{const Ce=JSON.parse(A);return Array.isArray(Ce)?Ce:[]}catch{return[]}})(),de=Ga(f,L),K=[...ce,...de||[]].filter(Boolean).sort((Ce,Se)=>Number((Se==null?void 0:Se.ts)||0)-Number((Ce==null?void 0:Ce.ts)||0)).slice(0,1);sessionStorage.setItem(W,JSON.stringify(K)),sessionStorage.removeItem($)}catch{}},Sl=e.ref(!1),pr=e.ref(!1),ga=e.ref([]),ol=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const vl=e.ref(!1),Dl=e.ref([]),Ua=e.ref(1),Sa=e.ref(new Map),rl=e.ref(new Map),Me=e.ref(0),oa=e.ref(!1),Ya=e.ref([]),me=e.ref([]),_a=f=>{var m;try{const L=(m=re.getAllLeafNodes(q.value)||[])==null?void 0:m.filter($=>($==null?void 0:$.type)!=="operate"&&($==null?void 0:$.label)!=="操作"&&($==null?void 0:$.prop)!=="operate");return(L==null?void 0:L.find($=>($==null?void 0:$.prop)===f||($==null?void 0:$.label)===f))||null}catch{return null}},Pa=f=>{const m=_a(f),L=(m==null?void 0:m.formType)||(m==null?void 0:m.columnType)||"Input";return ul.getComponent(L)||ul.getComponent("Input")},pl=e.ref([]),Il=e.ref(null),Qa=e.ref([]),kl=e.ref(null),Ma=e.ref(""),aa=e.ref(!1),ma=e.ref([]),ja=e.ref(""),xa=e.ref(!1),Ul=e.ref([]),Gl=e.ref([]),Da=e.ref([]),Rl=e.ref(null),Fr=e.ref([]),Dr=e.ref("");e.computed(()=>{var f;try{const m=(f=re.getAllLeafNodes(q.value)||[])==null?void 0:f.filter($=>($==null?void 0:$.type)!=="operate"&&($==null?void 0:$.label)!=="操作"&&($==null?void 0:$.prop)!=="operate"),L=new Map;return m==null||m.forEach($=>{$!=null&&$.label&&($!=null&&$.prop)&&L.set($.label,$.prop)}),L.get("编号")||""}catch{return""}});const Qe=e.computed(()=>{var f;try{const m=(f=re.getAllLeafNodes(q.value)||[])==null?void 0:f.filter($=>($==null?void 0:$.type)!=="operate"&&($==null?void 0:$.label)!=="操作"&&($==null?void 0:$.prop)!=="operate"),L=new Map;return m==null||m.forEach($=>{$!=null&&$.label&&($!=null&&$.prop)&&L.set($.label,$.prop)}),L.get("名称")||""}catch{return""}}),La=e.computed(()=>{var f;try{const m=(f=re.getAllLeafNodes(q.value)||[])==null?void 0:f.filter($=>($==null?void 0:$.type)!=="operate"&&($==null?void 0:$.label)!=="操作"&&($==null?void 0:$.prop)!=="operate"),L=new Map;return m==null||m.forEach($=>{$!=null&&$.label&&($!=null&&$.prop)&&L.set($.label,$.prop)}),L.get("制造厂")||""}catch{return""}}),hl=()=>{xa.value=!1,Ul.value=[],Gl.value=[],Da.value=[],Rl.value=null,Fr.value=[],Dr.value=""},Ll=f=>f==null?!1:typeof f=="string"?f.trim()!=="":Array.isArray(f)?f.length>0:!0,Ba=(f,m)=>{const L=(f==null?void 0:f.ocrRow)||{};for(const W of Object.keys(L))W==="id"||W==="_isOCRRow"||W==="_ocrTableId"||Ll(L[W])&&(m[W]=L[W]);const $=Fa.value.find(W=>W.id===m.id);if($)for(const W of Object.keys(L))W==="id"||W==="_isOCRRow"||W==="_ocrTableId"||Ll(L[W])&&($[W]=L[W]);Ta.value&&Ta.value.set(m.id,m),Xl(d==null?void 0:d.index,m.id,f==null?void 0:f.versionItem),Gl.value=[...Gl.value||[],JSON.parse(JSON.stringify(m))]},Yr=async(f,m=null)=>{var L,$,W,A,ce,de,K;try{const Ce=(L=re.getAllLeafNodes(q.value)||[])==null?void 0:L.filter(ka=>(ka==null?void 0:ka.type)!=="operate"&&(ka==null?void 0:ka.label)!=="操作"&&(ka==null?void 0:ka.prop)!=="operate"),Se=new Map;Ce==null||Ce.forEach(ka=>{ka!=null&&ka.label&&(ka!=null&&ka.prop)&&Se.set(ka.label,ka.prop)});const Xe=Se.get("系统编号")||Se.get("编号");if(!Xe){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const qe=m||Rl.value;if((Array.isArray(qe==null?void 0:qe.result)?qe.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let ka=0;ka<f.length;ka++){const Na=f[ka],Aa=Na[Xe];if(!Aa){console.warn(`第 ${ka+1} 条匹配行缺少系统编号,跳过`);continue}const ra=`设备管理/试验设备/${Aa}`,tl=await R.getPageDataApi({platId:parseInt(($=Nl.value)==null?void 0:$.plat_id),pageName:ra});if(!((W=tl==null?void 0:tl.data)!=null&&W.result)||!Array.isArray(tl.data.result)){console.warn(`未找到详情页数据: ${ra}`);continue}const wa=tl.data.result.find(pa=>(pa==null?void 0:pa.property_name)==="校检记录");if(!wa){console.warn(`详情页 ${ra} 中未找到校检记录表`);continue}const sl=(A=wa.contents)==null?void 0:A.find(pa=>(pa==null?void 0:pa.key)&&pa.key.startsWith("content_"));if(!sl||!sl.key){console.warn("校检记录表中未找到 content item");continue}const Ee=sl.key,Va=Array.isArray(sl.value)?sl.value:[];if(Va.length>=5){const z=[...Va].sort((za,qa)=>{const cl=Number((za==null?void 0:za.create_time)||0),Ka=Number((qa==null?void 0:qa.create_time)||0);return cl-Ka})[0];z!=null&&z.id&&await R.pageBatchDeleteApi({platId:parseInt((ce=Nl.value)==null?void 0:ce.plat_id),changeContents:[{tableName:Ee,tableContents:[{id:z.id}]}]})}const ba=(de=Ce==null?void 0:Ce.find(pa=>(pa==null?void 0:pa.label)==="证书附件"))==null?void 0:de.prop,Ja=String(Date.now()),Oa={id:Ja},Le=Va[0]||{},ae=new Date().toISOString().split("T")[0];if(Object.keys(Le||{}).forEach(pa=>{if(pa!=="id"){if(pa==="证书附件"){Oa[pa]="";return}if(pa==="校检日期"||pa==="检校日期"){Oa[pa]=Na[pa]||Na.校检日期||Na.检校日期||ae;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(pa)){Oa[pa]=Na[pa]??"";return}Oa[pa]=Na[pa]??""}}),ba&&Na[ba]){const pa=Na[ba];if(Array.isArray(pa)&&pa.length>0)Oa.证书附件=JSON.stringify(pa.map(z=>({url:(z==null?void 0:z.url)||"",name:(z==null?void 0:z.name)||(z==null?void 0:z.fileName)||"",fileName:(z==null?void 0:z.fileName)||(z==null?void 0:z.name)||""})).filter(z=>z.url||z.name));else if(typeof pa=="string")try{const z=JSON.parse(pa);Oa.证书附件=pa}catch{Oa.证书附件=JSON.stringify([{url:pa,name:pa,fileName:pa}])}}console.log(Ee,"tableName","inspectionRecordRow",Oa),await R.pageBatchAddApi({platId:parseInt((K=Nl.value)==null?void 0:K.plat_id),changeContents:[{tableName:Ee,tableContents:[Oa]}]});const je=wa==null?void 0:wa.object_id;if(je&&Ja){const pa=ba&&Na[ba]?Na[ba]:null;let z=[],za="",qa=!1;if(Array.isArray(pa)&&pa.length>0){z=pa.map(fl=>({name:(fl==null?void 0:fl.name)||(fl==null?void 0:fl.fileName)||"",url:(fl==null?void 0:fl.url)||""})).filter(fl=>fl.url||fl.name);const Ka=pa[0];za=(Ka==null?void 0:Ka.url)||"";const Ca=(Ka==null?void 0:Ka.name)||(Ka==null?void 0:Ka.fileName)||"";qa=String(Ca).toLowerCase().endsWith(".pdf")||String(za).toLowerCase().endsWith(".pdf")}else if(typeof pa=="string")try{const Ka=JSON.parse(pa);Array.isArray(Ka)?(z=Ka.map(Ca=>({name:(Ca==null?void 0:Ca.name)||(Ca==null?void 0:Ca.fileName)||"",url:(Ca==null?void 0:Ca.url)||""})).filter(Ca=>Ca.url||Ca.name),z.length>0&&(za=z[0].url||"",qa=String(z[0].name).toLowerCase().endsWith(".pdf")||String(za).toLowerCase().endsWith(".pdf"))):(za=pa,qa=String(pa).toLowerCase().endsWith(".pdf"))}catch{za=pa,qa=String(pa).toLowerCase().endsWith(".pdf")}const cl={ts:Date.now(),versionId:String(Date.now())+"_"+String(ka),label:new Date().toLocaleString(),certType:Na.证书类型||"",certNo:Na.证书编号||"",fileType:qa?"pdf":"image",sourceUrl:qa?za:"",images:z};Xl(je,Ja,cl)}}}catch(Ce){console.error("向校检记录表插入OCR识别结果失败:",Ce),Xa.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},ln=f=>{const m=Array.isArray(f)?f:Ul.value||[];if(m.length===0){hl();return}if(m.find(A=>(A==null?void 0:A.__decision)==="replace"&&!(A!=null&&A.selectedTargetId))){Xa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}m.forEach(A=>{var de;const ce=A==null?void 0:A.__decision;if(!(!ce||ce==="skip")){if(ce==="add"){Xl(d==null?void 0:d.index,(de=A==null?void 0:A.ocrRow)==null?void 0:de.id,A==null?void 0:A.versionItem),Da.value=[...Da.value||[],A.ocrRow];return}if(ce==="replace"){const K=A==null?void 0:A.selectedTargetId,Ce=(Ae.value||[]).find(Se=>String(Se==null?void 0:Se.id)===String(K));if(!Ce)return;Ba(A,Ce)}}}),(Gl.value||[]).length>0&&(Ae.value=[...Ae.value||[]]),(Da.value||[]).length>0&&(Ae.value=[...Ae.value||[],...Da.value||[]],Fa.value=[...Fa.value||[],...Da.value||[]],(Da.value||[]).forEach(A=>{var ce,de;return(de=(ce=Ta.value)==null?void 0:ce.set)==null?void 0:de.call(ce,A.id,A)})),Sr.value=Ae.value;const $=Gl.value||[],W=Da.value||[];if($.length>0&&(U("change",{buttonName:"编辑",singleContent:$,content:Ae.value,relatedContents:d==null?void 0:d.related,index:d==null?void 0:d.index,parentTableId:d==null?void 0:d.parentTableId,columns:q.value,name:d==null?void 0:d.compName}),Yr($)),W.length>0){const A=Rl.value;U("change",{buttonName:"OCR批量新增",content:Ae.value,index:d==null?void 0:d.index,parentTableId:d==null?void 0:d.parentTableId,column:q.value,ocrRows:W,relatedContents:d==null?void 0:d.related,uploadedFiles:(Array.isArray(A==null?void 0:A.result)?A.result:[]).map(ce=>(Array.isArray(ce==null?void 0:ce.图片信息)?ce.图片信息:[]).map(de=>({url:(de==null?void 0:de.url)||"",name:(de==null?void 0:de.name)||"",fileName:(de==null?void 0:de.name)||""})).filter(de=>de.url)),ocrResult:A,matchedCount:($||[]).length,newCount:(W||[]).length})}Xa.ElMessage.success("已提交候选处理结果"),hl()},zr=$c(),Ve=e.computed(()=>zr.getConfig()),Zl=e.ref(),ql=e.ref(),Jr=Ic(R.pinia),Sr=e.ref(),Ql=e.ref(0),Er=R.useUnit(R.pinia),{selectIndex:er,selectMenu:$l,selectTitle:or}=R.storeToRefs(Er),{selectString:lr}=R.storeToRefs(Jr),Wl=R.useLoginState(R.pinia),{loginUserInfo:Nl}=R.storeToRefs(Wl),Pr=e.ref(720),rr=e.ref(!1),Wr=e.ref(!1),Nr=e.ref([]),Br=e.ref(),gn=e.ref(!0),Sn=e.ref(!0);e.ref([]);const Cn=e.inject("contentRef");e.provide("contentRef",Cn),e.provide("getSuggestListForCell",rd),e.provide("getSuggestLoadingForCell",(f,m)=>{const L=`${f==null?void 0:f.id}:${(m==null?void 0:m.prop)||(m==null?void 0:m.property)}`;return g.value.get(L)||!1}),e.watch(()=>{var f;return(f=Ae.value)==null?void 0:f.length},f=>{te.total=f}),e.watch(()=>fe.value,async()=>{var m,L,$,W,A,ce,de,K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra;if(((m=fe.value)==null?void 0:m.length)===0||!((L=d==null?void 0:d.itemData)!=null&&L.find(tl=>(tl==null?void 0:tl.key)==="columnPath"))||!(($=d==null?void 0:d.itemData)!=null&&$.find(tl=>(tl==null?void 0:tl.key)==="pageColumn")))return;let f=(Ce=(K=(de=(ce=(A=(W=d==null?void 0:d.itemData)==null?void 0:W.find(tl=>(tl==null?void 0:tl.key)==="pageColumn"))==null?void 0:A.contents)==null?void 0:ce.split("["))==null?void 0:de[1])==null?void 0:K.split("]"))==null?void 0:Ce[0];((la=(qe=(Xe=(Se=d==null?void 0:d.itemData)==null?void 0:Se.find(tl=>(tl==null?void 0:tl.key)==="pageColumn"))==null?void 0:Xe.contents)==null?void 0:qe.split("["))==null?void 0:la[0])+((Na=(ka=fe.value)==null?void 0:ka.find(tl=>(tl==null?void 0:tl.key)===f))==null?void 0:Na.value),(ra=(Aa=d==null?void 0:d.itemData)==null?void 0:Aa.find(tl=>(tl==null?void 0:tl.key)==="pageGroup"))==null||ra.contents,is(compData,d.allMapContents)},{deep:!0});const mn=f=>{var L,$,W,A,ce;const m=($=(L=q.value)==null?void 0:L.filter(de=>de==null?void 0:de.mainKey))==null?void 0:$.map(de=>de==null?void 0:de.prop);if(m.length===0){const de=(W=q.value)==null?void 0:W.map(K=>K==null?void 0:K.prop);return(A=de==null?void 0:de.map(K=>f==null?void 0:f[K]))==null?void 0:A.join("|")}return(ce=m==null?void 0:m.map(de=>f==null?void 0:f[de]))==null?void 0:ce.join("|")},On=f=>{var de,K,Ce,Se,Xe;const m=(K=(de=q.value)==null?void 0:de.filter(qe=>qe==null?void 0:qe.required))==null?void 0:K.map(qe=>qe==null?void 0:qe.prop),L=[];if(f==null||f.forEach(qe=>{m==null||m.forEach(la=>{const ka=qe[la];(ka==null||ka==="")&&(L.includes(la)||L.push(la))})}),L.length>0)return Xa.ElMessage.warning(`请填写必填项:${L.join("、")}`);const $=new Map,W=new Map;(Ce=Ae.value)==null||Ce.forEach(qe=>{const la=mn(qe);$.set(la,qe)}),f==null||f.forEach(qe=>{const la=mn(qe);W.set(la,qe)});const A=f==null?void 0:f.filter(qe=>$.has(mn(qe))),ce=(Se=Ae.value)==null?void 0:Se.filter(qe=>W.has(mn(qe)));return(A==null?void 0:A.length)>0&&(Z.columns=(Xe=q.value)==null?void 0:Xe.filter(qe=>(qe==null?void 0:qe.label)!=="操作"),Z.existRows=ce,Z.tableData=A,Z.show=!0),Z.newRows=f==null?void 0:f.filter(qe=>{const la=mn(qe);return!$.has(la)}),Z.newRows},nn=e.ref(""),Tn=e.ref(null),Vn=async()=>{var f,m,L,$,W,A;try{const ce=await R.quoteApi({related:[{menus:ne.value,groups:d==null?void 0:d.compName}],platId:parseInt((f=Nl.value)==null?void 0:f.plat_id)});if(((m=ce==null?void 0:ce.data)==null?void 0:m.code)===200){Tn.value=(L=ce==null?void 0:ce.data)==null?void 0:L.result;const de=($=q.value)==null?void 0:$.map(Se=>(Se==null?void 0:Se.prop)||(Se==null?void 0:Se.label)),K=on(de,(W=ce==null?void 0:ce.data)==null?void 0:W.result),Ce=K==null?void 0:K.flatMap(Se=>Se==null?void 0:Se.quote);(Ce==null?void 0:Ce.length)>0&&(nn.value=(A=Ce==null?void 0:Ce.map(Se=>Se==null?void 0:Se.menus))==null?void 0:A.join("、"))}}catch(ce){throw new Error(ce)}};function on(f,m){var L;return(L=m.filter($=>$.struct&&Array.isArray($.struct)?$.struct.some(W=>W.words&&Array.isArray(W.words)?W.words.some(A=>f.includes(A)):!1):!1))==null?void 0:L.map($=>{const W={...$};return W.struct&&Array.isArray(W.struct)&&(W.struct=W.struct.filter(A=>A.words&&Array.isArray(A.words)?A.words.some(ce=>f.includes(ce)):!1)),W})}const Fn=async(f,m)=>{var L,$;try{Tn.value||await Vn();const W=m==null?void 0:m.map(ce=>{const de=Object.keys(ce),K={};return de.forEach((Ce,Se)=>{K[f[Se]]=ce[Ce]}),K}),A=On(W);if(!A||(A==null?void 0:A.length)===0)return;Z.show||await Ue(A)}catch(W){throw Xa.ElMessage.error("数据导入处理失败"),await R.pageBatchAddApi({platId:parseInt((L=Nl==null?void 0:Nl.value)==null?void 0:L.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(W),is_delete:!1,request_table:($=d==null?void 0:d.related)==null?void 0:$.find(A=>A==null?void 0:A.includes("content")),request_type:"error"}]}]}),new Error(W)}},Mr=async f=>{var A,ce,de,K,Ce,Se,Xe;let m=ee.value;m!=null&&m.find(qe=>(f==null?void 0:f.key)===(qe==null?void 0:qe.key))&&(m=m==null?void 0:m.filter(qe=>(f==null?void 0:f.key)!==(qe==null?void 0:qe.key))),m.push({key:f==null?void 0:f.key,value:[(ce=f==null?void 0:f.value)==null?void 0:ce[((A=f==null?void 0:f.value)==null?void 0:A.length)-1]]});let L=_e.value;L=L==null?void 0:L.map(qe=>{var la,ka;return(qe==null?void 0:qe.type)==="Select"&&(f==null?void 0:f.key)===(qe==null?void 0:qe.prop)&&Array.isArray(qe.value)&&(la=qe.value)!=null&&la.every(Na=>typeof Na=="string")&&(qe.selectValue=(ka=m==null?void 0:m.find(Na=>(Na==null?void 0:Na.key)===(qe==null?void 0:qe.prop)))==null?void 0:ka.value),qe});let $=(K=(de=L==null?void 0:L.find(qe=>(qe==null?void 0:qe.prop)===(f==null?void 0:f.key)))==null?void 0:de.optionUrl)==null?void 0:K.menuId,W=L==null?void 0:L.find(qe=>(qe==null?void 0:qe.prop)===(f==null?void 0:f.key));if($){let qe=await zt(W==null?void 0:W.optionUrl,$),la,ka=J.value,Na=(Xe=(Se=(Ce=_e.value)==null?void 0:Ce.find(Aa=>{var ra;return(ra=W==null?void 0:W.optionUrl)==null?void 0:ra.menuId}))==null?void 0:Se.selectValue)==null?void 0:Xe[0];if(qe==null||qe.forEach(Aa=>{var ra,tl,wa,sl,Ee,Va,ba,Ja,Oa,Le;if($){let ae=(tl=(ra=_e.value)==null?void 0:ra.find(pa=>{var z,za;return((z=W==null?void 0:W.optionUrl)==null?void 0:z.menuId)===((za=pa==null?void 0:pa.optionUrl)==null?void 0:za.menuId)}))==null?void 0:tl.prop,je=(sl=(wa=L==null?void 0:L.find(pa=>(pa==null?void 0:pa.prop)===ae))==null?void 0:wa.selectValue)==null?void 0:sl[0];ae!=null&&ae.includes("·")&&(ae=(Ee=ae==null?void 0:ae.split("·"))==null?void 0:Ee[0],je=(Oa=(Ja=(ba=f==null?void 0:f.value)==null?void 0:ba[((Va=f==null?void 0:f.value)==null?void 0:Va.length)-1])==null?void 0:Ja.split(" "))==null?void 0:Oa[0]),ka!=null&&ka.find(pa=>(pa==null?void 0:pa.value)===Na)?la=(Le=ka==null?void 0:ka.find(pa=>(pa==null?void 0:pa.value)===Na))==null?void 0:Le.objectValue:Aa[ae]===je&&(la=Aa)}}),la){let Aa=L;Aa=Aa==null?void 0:Aa.map(ra=>{var tl,wa,sl,Ee,Va,ba;return $&&(la!=null&&la[ra==null?void 0:ra.prop])&&ha.value==="新增"&&(ra==null?void 0:ra.prop)!==(W==null?void 0:W.prop)?ra.value=(la==null?void 0:la[ra==null?void 0:ra.prop])||(la==null?void 0:la[(Ee=(sl=(wa=(tl=ra==null?void 0:ra.optionUrl)==null?void 0:tl.groupSelect)==null?void 0:wa[1])==null?void 0:sl.replaceAll("[",""))==null?void 0:Ee.replaceAll("]","")]):ra.value=(ba=(Va=_e.value)==null?void 0:Va.find(Ja=>(Ja==null?void 0:Ja.prop)===(ra==null?void 0:ra.prop)))==null?void 0:ba.value,ra}),_e.value=Aa}}ee.value=m},An=async(f,m)=>{var L,$,W,A,ce;if((L=f==null?void 0:f.toString())!=null&&L.includes(".txt")||($=f==null?void 0:f.toString())!=null&&$.includes(".cpt")||(W=f==null?void 0:f.toString())!=null&&W.includes(".cyd")){const de=await Xa.axios.get(f,{responseType:"blob",headers:{"Content-Type":"application/json"}}),K=new Blob([de.data],{type:"application/octet-stream;charset=UTF-8"});let Ce=URL.createObjectURL(K);oe.value=[{name:(ce=f==null?void 0:f.split("/"))==null?void 0:ce[((A=f==null?void 0:f.split("/"))==null?void 0:A.length)-1],blobUrl:Ce}],Oe.value=!0}else Array.isArray(m)&&(m==null?void 0:m.length)>0&&U("routeUrl",{isEdit:!1,routerUrl:m})};e.onBeforeUnmount(()=>{Sn.value=!1;let f=Ql.value;Ql.value=f+1});const Bn=e.reactive({prop:"",order:null}),Uo=e.computed(()=>{const f=(Ae.value??[]).slice(),m=Bn.prop||pe.prop,L=Bn.order||pe.order;if(!m||!L)return f;const $=L==="ascending",W=ce=>{if(m)return ce&&Object.prototype.hasOwnProperty.call(ce,m)?ce[m]:m.includes(".")?m.split(".").reduce((de,K)=>de==null?de:de[K],ce):ce==null?void 0:ce[m]},A=ce=>{if(ce==null)return{ok:!1,value:NaN};if(typeof ce=="number")return{ok:Number.isFinite(ce),value:ce};const de=String(ce).trim();if(de==="")return{ok:!1,value:NaN};const K=de.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(K))return{ok:!1,value:NaN};const Ce=Number(K);return{ok:Number.isFinite(Ce),value:Ce}};return f.sort((ce,de)=>{const K=W(ce),Ce=W(de);if(K==null&&Ce==null)return 0;if(K==null)return $?-1:1;if(Ce==null)return $?1:-1;const Se=A(K),Xe=A(Ce);if(Se.ok&&Xe.ok)return $?Se.value-Xe.value:Xe.value-Se.value;const qe=Ee=>{if(Ee==null)return{ok:!1,value:NaN};const Va=String(Ee).trim();if(Va==="")return{ok:!1,value:NaN};const ba=Va.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ba)return{ok:!1,value:NaN};const Ja=ba[1]?-1:1,Oa=Number(ba[2]),Le=Number(ba[3]),ae=Number(ba[4]);return[Oa,Le,ae].some(je=>Number.isNaN(je))?{ok:!1,value:NaN}:Le>=60||ae>=60?{ok:!1,value:NaN}:{ok:!0,value:Ja*(Oa*3600+Le*60+ae)}},la=qe(K),ka=qe(Ce);if(la.ok&&ka.ok)return $?la.value-ka.value:ka.value-la.value;const Na=new Date(K).getTime(),Aa=new Date(Ce).getTime(),ra=!Number.isNaN(Na),tl=!Number.isNaN(Aa);if(ra&&tl)return $?Na-Aa:Aa-Na;const wa=String(K),sl=String(Ce);return $?wa.localeCompare(sl):sl.localeCompare(wa)})}),Ln=e.computed(()=>{var L;const f=(te.currentPage-1)*te.pageSize,m=f+te.pageSize;return U("getSliceContLength",te),(L=Uo.value)==null?void 0:L.slice(f,m)}),qo=f=>{te.currentPage=f,U("getSliceContLength",te)},Wo=f=>{var $;te.pageSize=f;const m=(($=Ae.value)==null?void 0:$.length)??0,L=f>0?Math.ceil(m/f):1;te.currentPage>L&&(te.currentPage=L||1,Xa.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),U("getSliceContLength",te)},Go=({prop:f,order:m})=>{Bn.prop=f,Bn.order=m,te.currentPage=1};function no(f){const m=[];function L($,W=""){$.forEach(A=>{A.children&&A.children.length>0?L(A.children,A.prop):m.push(A.prop)})}return L(f),m}const io=(f,m)=>{var de,K,Ce,Se;let L=(K=(de=q.value)==null?void 0:de.map(Xe=>Xe==null?void 0:Xe.prop))==null?void 0:K.filter(Xe=>Xe!=="operate");((Ce=q.value)==null?void 0:Ce.some(Xe=>{var qe;return((qe=Xe==null?void 0:Xe.children)==null?void 0:qe.length)>0}))&&(L=no((Se=q.value)==null?void 0:Se.filter(Xe=>(Xe==null?void 0:Xe.prop)!=="operate")));let W;if(W=(f==null?void 0:f.length)===(L==null?void 0:L.length)?f:f.slice(0,L==null?void 0:L.length),!(W==null?void 0:W.every(Xe=>L==null?void 0:L.find(qe=>Xe===qe))))return Xa.ElMessage.error("导入的数据表头不匹配");Fn(W,m)},dn=(f,m)=>{var W;const L=f==null?void 0:f.filter(A=>A!=="序号"),$=m==null?void 0:m.map(A=>{const ce=Object.entries(A);return ce.shift(),Object.fromEntries(ce)});Ge.setRefreshCurStructure(!1),((W=q.value)==null?void 0:W.length)===0||io(L,$)},Ko=(f,m,L,$)=>{const W=[],A=[],ce=Ce=>Object.keys(Ce).length;for(const Ce in f)if(f[Ce]!==void 0){const Se=f[Ce],Xe=[];for(const[qe,la]of Object.entries(Se))Xe.push(la),A.length<ce(Se)&&A.push(qe);W.push(Xe)}W.unshift(A);const de=re.utils.aoa_to_sheet(W),K=re.utils.book_new();re.utils.book_append_sheet(K,de,$),re.writeFileSync(K,`${m}.xlsx`),Nr.value=[]},oo=async(f,m,L,$=!1,W)=>{try{Ge.setRefreshCurStructure(!1)}catch(A){Xa.ElMessage.error(A)}},Yo=async(f,m)=>{await oo()},Jo=async(f,m)=>{await oo("columnType",m,f,!1)},Xo=async({newRow:f,targetIndex:m})=>{var W;if(!Ea(d.config,{type:va.TABLE}))return;const $=(te.currentPage-1)*te.pageSize+(m??0);f._isTemp=!0;try{(f.sort===void 0||f.sort===null||String(f.sort).trim()==="")&&(f.sort=di($,Ae.value||[]))}catch{}Ae.value.splice($,0,f),await e.nextTick(),p.value.has(f.id)||p.value.set(f.id,R.cloneDeep(f)),Ae.value=(W=Ae.value)==null?void 0:W.map(A=>({...A,tableEditType:(A==null?void 0:A.id)===f.id?"edit":(A==null?void 0:A.tableEditType)??"text"})),o.value.add(f.id),rr.value=!0},Zo=(f,m,L,$=[])=>(!Array.isArray(m)||m.length===0||m.forEach(W=>{const A=W==null?void 0:W.prop;if(!A)return;let ce=f==null?void 0:f[A];if(ce==null||String(ce).trim()==="")return;ce=String(ce);const de=new Set([...(Array.isArray(L)?L:[]).filter(Se=>(Se==null?void 0:Se.id)!==(f==null?void 0:f.id)).map(Se=>Se==null?void 0:Se[A]).filter(Se=>Se!=null).map(Se=>String(Se)),...(Array.isArray($)?$:[]).map(Se=>Se==null?void 0:Se[A]).filter(Se=>Se!=null).map(Se=>String(Se))]);if(!de.has(ce))return;let K=1,Ce="";for(;Ce=`${ce}(${K})`,!!de.has(Ce);)K++;f[A]=Ce}),f),Pi=async()=>{var W,A,ce,de,K,Ce,Se,Xe;const f=Array.from(o.value||[]);if(f.length===0)return;const m=(A=re.getColumnChild((W=R.cloneDeep(q.value))==null?void 0:W.filter(qe=>(qe==null?void 0:qe.label)!=="操作")))==null?void 0:A.filter(qe=>(qe==null?void 0:qe.required)===!0);if((m==null?void 0:m.length)>0)for(let qe=0;qe<f.length;qe++){const la=f[qe],ka=(ce=Ae.value)==null?void 0:ce.find(Na=>(Na==null?void 0:Na.id)===la);if(ka)for(let Na=0;Na<m.length;Na++){const Aa=m[Na],ra=Aa==null?void 0:Aa.prop,tl=(Aa==null?void 0:Aa.label)??ra,wa=ka==null?void 0:ka[ra];if(wa===""||wa===null||wa===void 0||Array.isArray(wa)&&wa.length===0){Xa.ElMessage.error(`${tl}不能为空`);let Ee={};Ee.id=ka==null?void 0:ka.id;const Va={fixContent:[Ee],buttonName:"修改",relatedContents:d==null?void 0:d.related,name:d==null?void 0:d.compName,columns:q.value};U("change",Va);return}}}const L=[],$=[];if(f.forEach(qe=>{var tl;const la=(tl=Ae.value)==null?void 0:tl.find(wa=>(wa==null?void 0:wa.id)===qe);if(!la)return;if(la!=null&&la._isTemp){const sl=(re.getAllLeafNodes(q.value)||[]).filter(Le=>(Le==null?void 0:Le.mainKey)===!0||(Le==null?void 0:Le.isMainKey)===!0),Ee=Ae.value.findIndex(Le=>(Le==null?void 0:Le.id)===qe),Va=Ee>=0?Ee+1:Ae.value.length+1;Zo(la,sl,Ae.value,L);const ba={id:Va.toString()};(la==null?void 0:la.sort)!==void 0&&(la==null?void 0:la.sort)!==null&&String(la.sort).trim()!==""?ba.sort=String(la.sort):ba.sort=di(Ee>=0?Ee:Ae.value.length-1,Ae.value||[]),(re.getAllLeafNodes(q.value)||[]).filter(Le=>(Le==null?void 0:Le.type)!=="operate"&&(Le==null?void 0:Le.label)!=="操作"&&(Le==null?void 0:Le.prop)!=="operate").forEach(Le=>{const ae=Le==null?void 0:Le.prop;if(ae){const je=la[ae];je!==void 0?ba[ae]=je??"":ba[ae]=""}}),L.push(ba);return}const Na=(re.getAllLeafNodes(q.value)||[]).filter(wa=>(wa==null?void 0:wa.type)!=="operate"&&(wa==null?void 0:wa.label)!=="操作"&&(wa==null?void 0:wa.prop)!=="operate"),Aa=new Set(Na.map(wa=>wa==null?void 0:wa.prop).filter(Boolean)),ra={};for(const wa of Aa)Object.prototype.hasOwnProperty.call(la,wa)&&(ra[wa]=la[wa]);$.push({id:la.id,value:{tableData:ra}})}),Ge.setTableLoading(d==null?void 0:d.index),$.length>0){const qe=$.map(ka=>{const Na={id:ka.id,...ka.value.tableData};return delete Na._isOCRRow,delete Na._ocrTableId,delete Na._isTemp,delete Na.tableEditType,delete Na.index,Na}),la=[{tableName:((de=d==null?void 0:d.related)==null?void 0:de.find(ka=>ka==null?void 0:ka.includes("content")))??"content_"+(d==null?void 0:d.index),tableContents:qe}];try{await R.pageBatchUpdateApi({platId:parseInt((K=Nl.value)==null?void 0:K.plat_id),changeContents:la})}catch(ka){Xa.ElMessage.error(((Se=(Ce=ka==null?void 0:ka.response)==null?void 0:Ce.data)==null?void 0:Se.message)||(ka==null?void 0:ka.message)||"保存失败"),Ge.setTableLoading(!1);return}}if(L.length>0){const qe={fixContent:L,buttonName:"新增",relatedContents:d==null?void 0:d.related,name:d==null?void 0:d.compName,columns:q.value};U("change",qe)}Xa.ElMessage.success("保存成功"),o.value.clear(),p.value.clear(),Ae.value=(Xe=Ae.value)==null?void 0:Xe.map(qe=>({...qe,tableEditType:"text"})),rr.value=!1,Ge.setRefreshCurStructure(!0)},Qo=()=>{var m;const f=Array.from(o.value||[]);if(f.length===0){rr.value=!1;return}f.forEach(L=>{var A,ce;const $=p.value.get(L),W=(A=Ae.value)==null?void 0:A.find(de=>(de==null?void 0:de.id)===L);if(W!=null&&W._isTemp){Ae.value=Ae.value.filter(de=>(de==null?void 0:de.id)!==W.id);return}if($){const de=(ce=Ae.value)==null?void 0:ce.findIndex(K=>(K==null?void 0:K.id)===L);de!==-1&&(Ae.value[de]={...Ae.value[de],...$})}}),o.value.clear(),p.value.clear(),Ae.value=(m=Ae.value)==null?void 0:m.map(L=>({...L,tableEditType:"text"})),rr.value=!1},xi=e.ref(!1),ci=async f=>{var W,A,ce,de;if(!rr.value||f!=null&&f.isComposing||(f==null?void 0:f.key)!=="Enter")return;const m=f==null?void 0:f.target;if(((A=(W=m==null?void 0:m.tagName)==null?void 0:W.toLowerCase)==null?void 0:A.call(W))==="textarea")return;const $=document.getElementById("excel-table");$&&!$.contains(m)||((ce=m==null?void 0:m.blur)==null||ce.call(m),(de=f.preventDefault)==null||de.call(f),await e.nextTick(),await Pn())},Pn=async()=>{if(le.value){rr.value=!1;return}if(!xi.value){xi.value=!0;try{Array.from(o.value||[]).length>0?await Pi():rr.value=!1}finally{Promise.resolve().then(()=>{xi.value=!1})}}},wi=f=>{Nr.value=f},et=(f,m)=>{Br.value===m?gn.value=!1:gn.value=!0,Br.value=m==null?void 0:m.changeProp},to=f=>{if(!f)return;const{item:m,value:L}=f,$=_e.value.find(W=>W.prop==m.prop);$&&$.contents.push({label:L,value:L})},Qn=e.computed(()=>{var L,$,W;const f=(L=q.value)==null?void 0:L.some(A=>A==null?void 0:A.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",f?"inline-block":"none"),(W=($=q.value)==null?void 0:$.filter(A=>(A==null?void 0:A.label)!=="操作"))==null?void 0:W.map(A=>({...A,filterable:!!(A!=null&&A.filterable),showSummary:!!(A!=null&&A.showSummary),operable:!!(A!=null&&A.operable),fixed:A==null?void 0:A.fixed}))}),Hi=async(f,m,L)=>{const $=R.cloneDeep(q.value);await e.nextTick();const W=$==null?void 0:$.map(ce=>(L==null?void 0:L.label)===(ce==null?void 0:ce.label)?{...ce,[m]:f}:ce),A=Wn(W);await $s(d.index,A),q.value=W,X.value=A},Wn=f=>{var W;const m=f||[];return((W=re.getAllLeafNodes(m)||[])==null?void 0:W.filter(A=>(A==null?void 0:A.prop)&&(A==null?void 0:A.type)!=="operate"&&(A==null?void 0:A.label)!=="操作"&&(A==null?void 0:A.prop)!=="operate")).map(A=>{const{prop:ce}=A;return e3(ce,A)})},at=async f=>{let m=await l3(d.index);m||(m=Wn(f)),X.value=m},lt=async(f,m)=>{const L=R.cloneDeep(q.value),$=ce=>Array.isArray(ce)?ce.map(de=>{const K=Array.isArray(de==null?void 0:de.children)&&de.children.length>0,Ce={...de};return(Ce==null?void 0:Ce.prop)==="operate"||(Ce==null?void 0:Ce.label)==="操作"||(Ce==null?void 0:Ce.type)==="operate"?(Ce.sortable=!1,Ce.filterable=!1,Ce.operable=!1):Ce.sortable=K?!1:!!f,K&&(Ce.children=$(Ce.children)),Ce}):ce,W=$(L),A=Wn(W);await $s(d.index,A),q.value=W,X.value=A,await e.nextTick(),Ql.value=Ql.value+1},rt=()=>{ea.value=!1},nt=f=>{U("clickTrigger",f)},so=async f=>{var A,ce,de,K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl,wa;const m=f==null?void 0:f.row,L=f==null?void 0:f.rowData,$=f==null?void 0:f.suffix;if((A=m==null?void 0:m.toString())!=null&&A.includes(".urdf")||f!=null&&f.isUrdf||$!=null&&$.includes(".urdf")){if(m.includes(",")){Xa.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(G(m)){const Ee={files:[We(m)],data:{}};Be(Ee);return}Ie.value=[{url:m,extension:ke(m)}],N.value=!0,se.value={data:R.cloneDeep(L)},ue.value=!0;return}let W=[];if((ce=m==null?void 0:m.toString())!=null&&ce.includes(".stl")||(de=m==null?void 0:m.toString())!=null&&de.includes(".STL")||(K=m==null?void 0:m.toString())!=null&&K.includes(".obj")||(Ce=m==null?void 0:m.toString())!=null&&Ce.includes(".mtl")){const sl=(Se=m==null?void 0:m.toString())==null?void 0:Se.split(","),Ee=he(sl),Va=Ee==null?void 0:Ee[0];if(G(Va==null?void 0:Va.extension)){Be({files:Ee,data:{}});return}Ie.value=Ee,N.value=!1,ue.value=!0;return}if((Xe=m==null?void 0:m.toString())!=null&&Xe.includes(".stl")||(qe=m==null?void 0:m.toString())!=null&&qe.includes(".STL")||(la=m==null?void 0:m.toString())!=null&&la.includes(".obj")||(ka=m==null?void 0:m.toString())!=null&&ka.includes(".mtl")||$!=null&&$.includes(".stl")||$!=null&&$.includes(".STL")||$!=null&&$.includes(".obj")||$!=null&&$.includes(".mtl")){let sl,Ee=[],Va={};if(Array.isArray(m)?sl=m:sl=m==null?void 0:m.split(","),sl==null||sl.forEach(ba=>{ba.includes(".mtl")?Ee.push(ba):Va.blob=Va.blob?Va.blob+","+ba:ba}),(Ee==null?void 0:Ee.length)>0&&(Va.mtlBlobs=Ee),$&&(Va.suffix=$),(Aa=(Na=Object.values(Va))==null?void 0:Na[0])!=null&&Aa.includes("http:"))W.push(Va);else{const ba=new Blob([Va.blob],{type:"application/octet-stream;charset=UTF-8"});let Ja=URL.createObjectURL(ba),Oa="";(ra=m==null?void 0:m.split("/"))==null||ra.forEach((Le,ae)=>{var je;ae===((je=m==null?void 0:m.split("/"))==null?void 0:je.length)-1&&(Oa=Le)}),(tl=Va.blob)!=null&&tl.includes(".stl")&&(Oa=(Oa==null?void 0:Oa.replaceAll(">",""))+".urdf"),oe.value=[{name:Oa,blobUrl:Ja}],Oe.value=!0}}else{const sl=await Xa.axios.get(m,{responseType:"blob",headers:{"Content-Type":"application/json"}}),Ee=new Blob([sl.data],{type:"application/octet-stream;charset=UTF-8"});let Va=URL.createObjectURL(Ee),ba="";if((wa=m==null?void 0:m.split("/"))==null||wa.forEach((Ja,Oa)=>{var Le;Oa===((Le=m==null?void 0:m.split("/"))==null?void 0:Le.length)-1&&(ba=Ja)}),G(ba)){const Ja=ve(ba),Oa=We(m);Be({files:[Oa],data:{trackFileType:Ja}});return}oe.value=[{name:ba,blobUrl:Va}],Oe.value=!0}(W==null?void 0:W.length)>0&&n.setBlobUrls(W)},ui=f=>{var $,W,A,ce;if(f!=null&&f.downloadUrl)return f==null?void 0:f.name;const m=(ce=($=f==null?void 0:f.url)==null?void 0:$.split("."))==null?void 0:ce[((A=(W=f==null?void 0:f.url)==null?void 0:W.split("."))==null?void 0:A.length)-1];return(f==null?void 0:f.name)+"."+m},_i=f=>{if(!f)return"未知文件";try{const $=ui(f);if(typeof $=="string"&&$.includes("."))return $}catch{}const m=(f==null?void 0:f.fileName)||(f==null?void 0:f.name)||"未知文件",L=(f==null?void 0:f.suffix)||"";return m.includes(".")?m:`${m}${L}`},co=f=>{if(f==null||typeof f=="number"||typeof f!="string")return f;const m=f.match(/^(\d+)\_(\d+)$/);if(!m)return f;const L=Number(m[1]),$=Number(m[2]);return!Number.isFinite(L)||!Number.isFinite($)?f:String(L*1e3+$)},Hn=f=>{if(f==null)return null;const m=String(f).trim();if(!m)return null;const L=Number(m);return Number.isFinite(L)?L:null},it=f=>{if(f==null)return null;const m=String(f).trim();if(!m)return null;if(/^\d+$/.test(m)){const W=Number(m);return Number.isFinite(W)?m.length<=10?W*1e3:W:null}const L=m.includes("T")?m:m.replace(" ","T"),$=Date.parse(L);return Number.isFinite($)?$:null},Si=(f,m=[])=>{const L=Array.isArray(f)?f.slice():[];if(L.length<=1)return L;const $=new Map((m||[]).map((ce,de)=>[String(ce),de])),W=L.some(ce=>Hn(ce==null?void 0:ce.sort)!==null),A=L.map((ce,de)=>({r:ce,idx:de,id:String((ce==null?void 0:ce.id)??""),sortVal:Hn(ce==null?void 0:ce.sort),createTimeMs:it(ce==null?void 0:ce.create_time),prevIdx:$.has(String(ce==null?void 0:ce.id))?$.get(String(ce==null?void 0:ce.id)):Number.POSITIVE_INFINITY}));return A.sort((ce,de)=>{if(W){const Se=ce.sortVal,Xe=de.sortVal;if(Se===null&&Xe!==null)return 1;if(Se!==null&&Xe===null)return-1;if(Se!==null&&Xe!==null&&Se!==Xe)return Se-Xe}const K=ce.createTimeMs,Ce=de.createTimeMs;return K!==null&&Ce!==null&&K!==Ce?Ce-K:K!==null&&Ce===null?-1:K===null&&Ce!==null?1:ce.prevIdx!==de.prevIdx?ce.prevIdx-de.prevIdx:ce.idx-de.idx}),A.map(ce=>ce.r)},di=(f,m=[])=>{const L=m==null?void 0:m[f-1],$=m==null?void 0:m[f],W=Hn(L==null?void 0:L.sort),A=Hn($==null?void 0:$.sort);let ce=null;W!==null&&A!==null&&A>W?ce=(W+A)/2:W!==null?ce=W+1:A!==null?ce=Math.max(A-1,0):ce=(f??0)+1;const de=Number(ce.toFixed(6));return String(Number.isFinite(de)?de:ce)},ot=async f=>{let m=null,L=null;if(f!=null&&f.id){const W=R.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const A=await R.platformDownloadFile(f);m=URL.createObjectURL(A.data),L=_i(f)}finally{W.close()}}else if(f!=null&&f.downloadUrl){const W=await Ei(),A=R.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ce=await Xa.axios.post(f==null?void 0:f.url,null,{responseType:"blob",headers:{Authorization:W,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{A.close()}),de=new Blob([ce.data],{type:"application/octet-stream;charset=UTF-8"});m=URL.createObjectURL(de),L=f==null?void 0:f.name}else{const W=await R.platformDownloadFile({url:f==null?void 0:f.url});!f.url.toUpperCase().includes(".OBJ")&&!f.url.toUpperCase().includes(".STL")&&!f.url.toUpperCase().includes(".MTL")&&!f.url.toUpperCase().includes(".URDF")?(m=URL.createObjectURL(W.data),L=ui(f)):m=f==null?void 0:f.url}if(G(m)){const W={row:`${m}`,suffix:ke(L)};so(W);return}const $={name:L,blobUrl:m};oe.value=[$],Oe.value=!0},uo=async f=>{let m=null,L=null;if(f!=null&&f.id){const A=await R.platformDownloadFile(f);m=URL.createObjectURL(A.data),L=_i(f)}else if(f!=null&&f.downloadUrl){const A=await Ei(),ce=await Xa.axios.post(f==null?void 0:f.url,null,{responseType:"blob",headers:{Authorization:A,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),de=new Blob([ce.data],{type:"application/octet-stream;charset=UTF-8"});m=URL.createObjectURL(de),L=f==null?void 0:f.name}else{const A=await R.platformDownloadFile({url:f==null?void 0:f.url});m=URL.createObjectURL(A.data),L=ui(f)}const $={name:L,blobUrl:m},W=document.createElement("a");W.href=$.blobUrl,W.download=$.name,W.style.display="none",document.body.appendChild(W),W.click(),setTimeout(()=>{document.body.removeChild(W)},100)},pi=(f,m)=>{var $;if(Object.values(m).length===0)return;let L=f;return Object.values(m).find(W=>{var A,ce,de;return((A=W==null?void 0:W.toString())==null?void 0:A.includes(".txt"))||((ce=W==null?void 0:W.toString())==null?void 0:ce.includes(".cpt"))||((de=W==null?void 0:W.toString())==null?void 0:de.includes(".obj"))})?L=[...f,Fe.value]:($=d==null?void 0:d.config)!=null&&$.allowMove&&(L=[...f,{label:"迁移"}]),L},jn=()=>{j.value=!0},po=e.ref([]),ji=async(f,m,L=!1)=>{var ce,de,K,Ce;if(!f)return;if(L){Ae.value=[...Ta.value.values()].filter(Se=>Object.values(Se).some(Xe=>typeof Xe=="string"?Xe==null?void 0:Xe.toLowerCase().includes(m==null?void 0:m.toLowerCase()):!1));return}let $={};for(let Se in f)(f==null?void 0:f[Se])!==""&&($[Se]=f==null?void 0:f[Se]);if(JSON.stringify($)==="{}"){Ae.value=Array.from(((ce=Ta.value)==null?void 0:ce.values())??[]);return}let W=(de=d==null?void 0:d.related)==null?void 0:de.find(Se=>Se==null?void 0:Se.includes("content_")),A=await R.getFillFind({platId:parseInt((K=Nl==null?void 0:Nl.value)==null?void 0:K.plat_id),tableName:W,params:$});A=(Ce=A==null?void 0:A.data)==null?void 0:Ce.result,Ae.value=A,Ge.setTableLoading(!1)},tt=e.computed(()=>{var m,L;return((L=(m=d==null?void 0:d.itemData)==null?void 0:m.find($=>($==null?void 0:$.key)==="isEdit"))==null?void 0:L.contents)??!0}),st=async f=>{var W,A,ce,de,K,Ce;if(!Ea(d.config,{type:va.TABLE})||!(((A=(W=d==null?void 0:d.itemData)==null?void 0:W.find(Se=>(Se==null?void 0:Se.key)==="isEdit"))==null?void 0:A.contents)??!0))return;let L=(de=(ce=u.value)==null?void 0:ce.find(Se=>{var Xe;return(Xe=Se==null?void 0:Se.key)==null?void 0:Xe.includes("@EditRead")}))==null?void 0:de.content;if((L==null?void 0:L.length)>0){let Se=Ls(L,f);if((Se==null?void 0:Se.length)>0)return}if(!f)return;((K=Array.from(o.value))==null?void 0:K.length)>0&&await Pi();const $=f==null?void 0:f.id;$!=null&&(o.value.clear(),p.value.clear(),p.value.has($)||p.value.set($,R.cloneDeep(f)),Ae.value=(Ce=Ae.value)==null?void 0:Ce.map(Se=>({...Se,tableEditType:(Se==null?void 0:Se.id)===$?"edit":"text"})),o.value.add($),rr.value=!0)},fo=async(f,m,L,$)=>{$!=null&&$.isExistChild&&U("clickMainKey",f,L,q.value)},ct=()=>{Oe.value=!1},ut=f=>{U("rowClick",f)};e.watch(()=>d.changedContent,()=>{var L,$;if(!d.changedContent)return;let f=(L=Ae.value)==null?void 0:L.map(W=>{var A;return W.id===((A=d.changedContent)==null?void 0:A.id)&&(W={...d.changedContent,id:d.changedContent.newId?d.changedContent.newId:d.changedContent.id},delete W.newId),W});const m=($=d.itemData)==null?void 0:$.map(W=>((W==null?void 0:W.key)==="tableContents"&&(W.contents=f),W));Ae.value=f,U("contentChange",{contents:m,index:d.index}),U("change",{content:f,index:d==null?void 0:d.index,buttonName:"",id:d==null?void 0:d.index})},{deep:!0,immediate:!0});const dt=()=>{},pt=async()=>{const f=ne.value,m=sessionStorage.getItem("systemKey"),L=await re.getItemData(f,m,""),$=(L==null?void 0:L.find(de=>(de==null?void 0:de.name)==="方法明细"))||(L==null?void 0:L[0]),W=($==null?void 0:$.compData)||[],A=W==null?void 0:W.find(de=>{const K=de==null?void 0:de.key;return K==="formContent"||K==="tableContents"});return A==null?void 0:A.contents},Ei=async()=>{const m=Xa.Local.get("access-token");return m?`Bearer ${m}`:""},ft=async(f,{token:m,inputData:L}={})=>await Xa.axios.post(f,L,{headers:{Authorization:m}}).catch(W=>(ge.setImportLoading(!1),Promise.reject(W))),ht=f=>{var $;let m={};const L=[];return m.form={},($=R.cloneDeep(f))==null||$.forEach((W,A)=>{var ce,de,K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl,wa;if((W==null?void 0:W.comp)==="Table"){(de=(ce=W==null?void 0:W.compData)==null?void 0:ce.find(ba=>(ba==null?void 0:ba.key)==="header"))==null||de.contents;let sl=(Se=(Ce=(K=W==null?void 0:W.compData)==null?void 0:K.find(ba=>(ba==null?void 0:ba.key)==="tableContents"))==null?void 0:Ce.contents)==null?void 0:Se.map(ba=>ba.slice(1));(Na=(ka=(la=(qe=(Xe=W==null?void 0:W.compData)==null?void 0:Xe.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:qe.contents)==null?void 0:la[0])==null?void 0:ka[0])==null||Na.label;let Ee=(ra=(Aa=W==null?void 0:W.compData)==null?void 0:Aa.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:ra.contents,Va=[];sl==null||sl.forEach(ba=>{let Ja=[];ba==null||ba.forEach((Oa,Le)=>{var je;let ae={};((je=Ee[Le])==null?void 0:je.label)!=="操作"&&(ae[Ee[Le].label]=Oa,Ja.push(ae))}),Va.push(Ja)}),m[W.name]=Va}else{const sl=(wa=(tl=W.compData)==null?void 0:tl.find(Ee=>(Ee==null?void 0:Ee.key)==="formContent"))==null?void 0:wa.contents;sl==null||sl.forEach(Ee=>{var Va,ba;if(Ee.prop!==""){let Ja=Ee==null?void 0:Ee.value;Array.isArray(Ja)?Ja=((Va=Ja==null?void 0:Ja[0])==null?void 0:Va.oldUrl)||"http://222.92.178.198:62001/"+((ba=Ja==null?void 0:Ja[0])==null?void 0:ba.url):Ja=Ja.toString(),Ee={key:(Ee==null?void 0:Ee.prop)??(Ee==null?void 0:Ee.label),value:Ja},L.push(Ee)}})}}),m.form=re.getFormContents(L),m},c=f=>{const m=[],L=$=>{$&&typeof $=="object"&&!Array.isArray($)?Object.values($).forEach(L):m.push($)};return L(f),m},t=async(f,m,L)=>{var Ee,Va,ba,Ja,Oa,Le,ae,je,pa,z,za,qa,cl,Ka,Ca,fl,Yl;ge.setImportLoading(!0),Ge.setFreshContent(!1);let $=await pt().catch(Wa=>(ge.setImportLoading(!1),Promise.reject(Wa)));$=$==null?void 0:$.filter(Wa=>{var Bl;return((Bl=Wa==null?void 0:Wa.find(Ra=>Ra==null?void 0:Ra.id))==null?void 0:Bl.id)===(m==null?void 0:m.id)});let W=re.getEqualChild([(Ee=q.value)==null?void 0:Ee.filter(Wa=>(Wa==null?void 0:Wa.label)!=="操作")]);const A=(ba=(Va=re.tableToForm($,W))==null?void 0:Va[0])==null?void 0:ba.find(Wa=>{const Bl=Wa==null?void 0:Wa.key;return Bl==="Interface"||Bl==="方法体"}),ce=A==null?void 0:A.value;if(!ce){console.log("未搜索到isMain, 缺少算法执行接口"),ge.setImportLoading(!1);return}const de=q.value?re.getEqualChild([q.value]):[],K=de.find(Wa=>{const Bl=Wa==null?void 0:Wa.prop;return Bl==="Input1"||Bl==="输入数据.输入1"||Bl==="样本输入数据"}),Ce=K==null?void 0:K.prop;let Se=m==null?void 0:m[Ce];const Xe=await Ei().catch(Wa=>(ge.setImportLoading(!1),Promise.reject(Wa)));let qe=!0,la="";(Ja=q.value)==null||Ja.forEach(Wa=>{(Wa==null?void 0:Wa.prop)===Ce&&(qe=!!(Wa!=null&&Wa.childPath),la=Wa==null?void 0:Wa.childPath)});let ka="";if(qe){let Wa=(Le=(Oa=q.value)==null?void 0:Oa.find(ml=>(ml==null?void 0:ml.isMainKey)===!0))==null?void 0:Le.prop;ka=m==null?void 0:m[Wa];let Bl=la==null?void 0:la.split(M),Ra=[];Bl==null||Bl.forEach((ml,zl)=>{(Bl==null?void 0:Bl.length)-1===zl&&Ra.push(ka),Ra.push(ml)}),Ra=Ra==null?void 0:Ra[0];let Ol=await re.getItemData(Ra,sessionStorage.getItem("systemKey"),""),il=Ol==null?void 0:Ol.filter(ml=>(ml==null?void 0:ml.name)===Ce);il=il==null?void 0:il.map(ml=>{var zl;return ml.compData=(zl=ml==null?void 0:ml.compData)==null?void 0:zl.map(xl=>{var Cr;return(xl==null?void 0:xl.key)==="tableContents"&&(xl.contents=(Cr=xl==null?void 0:xl.contents)==null?void 0:Cr.filter(vr=>(vr==null?void 0:vr[1])===(m==null?void 0:m[Ce]))),xl}),ml}),(!il||(il==null?void 0:il.length)===0)&&(il=Ol,il=il==null?void 0:il.map(ml=>{var zl;return ml.compData=(zl=ml==null?void 0:ml.compData)==null?void 0:zl.map(xl=>{var Cr;return(xl==null?void 0:xl.key)==="tableContents"&&(xl.contents=(Cr=xl==null?void 0:xl.contents)==null?void 0:Cr.filter(vr=>{var ur,_l;return(vr==null?void 0:vr[1])===(m==null?void 0:m[(_l=(ur=q==null?void 0:q.value)==null?void 0:ur[0])==null?void 0:_l.prop])})),xl}),ml})),Se=ht(il)}const Na=await ft(ce,{token:Xe,inputData:Se}).catch(Wa=>(ge.setImportLoading(!1),Promise.reject(Wa))),Aa=(ae=Na==null?void 0:Na.data)==null?void 0:ae.data,ra=de.find(Wa=>(Wa==null?void 0:Wa.prop)==="Output1"),tl=ra==null?void 0:ra.prop;let wa=[],sl=[];if(Aa&&((je=Object.values(Aa))==null?void 0:je.length)>0){let Wa=[];const Bl=new FormData,Ra=(pa=c(Aa))==null?void 0:pa.map(async il=>{var ml,zl;if(!Array.isArray(il)&&(il!=null&&il.includes("http"))){let xl=await Xa.axios.get(il,{responseType:"blob"}),Cr=(zl=il==null?void 0:il.split("/"))==null?void 0:zl[((ml=il==null?void 0:il.split("/"))==null?void 0:ml.length)-1];Bl.append("files",xl.data,Cr)}else Wa.push(il)});if(await Promise.all(Ra),!re.isFormDataEmpty(Bl)){let il=await ul.uploadAmountApi(Bl),ml=(za=(z=il==null?void 0:il.data)==null?void 0:z.result)==null?void 0:za.map(zl=>{var xl,Cr,vr,ur,_l,ir;return{name:(ir=(_l=(ur=(xl=zl==null?void 0:zl.url)==null?void 0:xl.split("/"))==null?void 0:ur[((vr=(Cr=zl==null?void 0:zl.url)==null?void 0:Cr.split("/"))==null?void 0:vr.length)-1])==null?void 0:_l.split("."))==null?void 0:ir[0],url:zl==null?void 0:zl.url}});Wa=[...Wa,...ml]}let Ol={};for(let il in m)il!=="id"&&(Ol[il]=m[il]);Ol[tl]=Wa,sl.push({id:m==null?void 0:m.id,value:{tableData:Ol}})}if((sl==null?void 0:sl.length)>0){const Wa=sl.map(Ra=>{const Ol={id:Ra.id,...Ra.value.tableData};return delete Ol._isOCRRow,delete Ol._ocrTableId,delete Ol._isTemp,delete Ol.tableEditType,delete Ol.index,Ol}),Bl=[{tableName:(qa=d==null?void 0:d.related)==null?void 0:qa.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:Wa}];await R.pageBatchUpdateApi({platId:parseInt((cl=Nl.value)==null?void 0:cl.plat_id),changeContents:Bl})}if((wa==null?void 0:wa.length)>0)try{await R.pageBatchAddApi({platId:parseInt((Ka=Nl.value)==null?void 0:Ka.plat_id),changeContents:[{tableName:(Ca=d==null?void 0:d.related)==null?void 0:Ca.find(Wa=>Wa==null?void 0:Wa.includes("content")),tableContents:wa.map(Wa=>{var Ra,Ol,il;const Bl={id:((Ra=Wa==null?void 0:Wa.key)==null?void 0:Ra.id)??((Ol=Wa==null?void 0:Wa.key)==null?void 0:Ol.rowId)??(Wa==null?void 0:Wa.id),...((il=Wa==null?void 0:Wa.value)==null?void 0:il.tableData)||{}};return delete Bl._isOCRRow,delete Bl._ocrTableId,delete Bl._isTemp,delete Bl.tableEditType,delete Bl.index,Object.keys(Bl).forEach(ml=>{ml==="证书附件"&&Array.isArray(Bl[ml])&&(Bl[ml]=JSON.stringify(Bl[ml]))}),Bl})}]})}catch(Wa){Xa.ElMessage.error(((Yl=(fl=Wa==null?void 0:Wa.response)==null?void 0:fl.data)==null?void 0:Yl.message)||(Wa==null?void 0:Wa.message)||"保存失败"),Ge.setTableLoading(!1);return}Wi(!0),ge.setImportLoading(!1),Ge.setFreshContent(!0)},h=(f,m)=>(f=f==null?void 0:f.map(L=>{var $,W;return L!=null&&L.children&&(($=L.children)!=null&&$.find(A=>A.id===(m==null?void 0:m.id))?L.children=(W=L.children)==null?void 0:W.filter(A=>(A==null?void 0:A.id)!==(m==null?void 0:m.id)):L.children=h(L.children,m)),L}),f),w=e.ref(!1),B=()=>{w.value=!0},P=async f=>{var L,$,W,A;w.value=!1;const m=Array.isArray(f)?f:f?[f]:[];if(m.length!==0)for(const ce of m){const de={name:ce.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ce),raw:ce,uid:Date.now()+Math.random()};ga.value.push(de),yn(de,"uploading"),Qr(de,0);try{const K=new FormData;K.append("file",ce,de.name);const Ce=await R.platformUploadFile(K);de.uploadResult=((L=Ce==null?void 0:Ce.data)==null?void 0:L.result)||{name:de.name,url:"",fileName:de.name},ll({name:(($=de.uploadResult)==null?void 0:$.name)||de.name,url:((W=de.uploadResult)==null?void 0:W.url)||"",id:(A=de.uploadResult)==null?void 0:A.id}),yn(de,"uploaded"),Qr(de,100)}catch(K){console.error("文件上传失败:",K),Xa.ElMessage.error(`文件 ${de.name} 上传失败,请重试`),yn(de,"pending"),Qr(de,0);const Ce=ga.value.findIndex(Se=>Se.uid===de.uid);Ce>-1&&ga.value.splice(Ce,1)}}},Y=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:(f,m,L)=>{m===(d==null?void 0:d.index)?L(new Error("选择源不能和目标源一致")):L()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),Z=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:""}),Te=()=>{Z.show=!1},Ue=async f=>{var m,L,$,W,A,ce,de,K;try{const Ce=[];let Se=(m=Ae.value||[])==null?void 0:m.slice();(f||[]).forEach(Na=>{const Aa={...Na};try{Aa.sort=di(0,Se)}catch{}Ce.push(Aa),Se.unshift(Aa)});let Xe=await R.quoteApi({platId:parseInt((L=Nl==null?void 0:Nl.value)==null?void 0:L.plat_id),type:"fatherSyncs",related:[{menus:ne.value,groups:""},{menus:ne.value,groups:d==null?void 0:d.compName}]});Xe=($=Xe==null?void 0:Xe.data)==null?void 0:$.result;let qe=Xe==null?void 0:Xe.map(Na=>({tableName:"content_"+(Na==null?void 0:Na.id),tableContents:Ce==null?void 0:Ce.map((Aa,ra)=>({id:ra,...Aa}))})),la=[{tableName:(W=d==null?void 0:d.related)==null?void 0:W.find(Na=>Na==null?void 0:Na.includes("content")),tableContents:Ce==null?void 0:Ce.map((Na,Aa)=>({id:Aa,...Na}))}];la=[...la,...qe];const ka=await R.pageBatchAddApi({platId:parseInt((A=Nl.value)==null?void 0:A.plat_id),changeContents:la});if(((ce=ka==null?void 0:ka.data)==null?void 0:ce.code)===200){const Na={buttonName:"新增",columns:q.value,fixContent:Ce==null?void 0:Ce.map((ra,tl)=>({id:tl,...ra})),relatedContents:d==null?void 0:d.related};await Lt(Na),Xa.ElMessage.success("数据导入成功");let Aa=[];la==null||la.forEach(ra=>{var tl;(tl=ra==null?void 0:ra.tableContents)==null||tl.forEach(wa=>{Aa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(wa),request_result:"{}",is_delete:!1,request_table:ra==null?void 0:ra.tableName,request_type:"export"})})}),await R.pageBatchAddApi({platId:parseInt((de=Nl==null?void 0:Nl.value)==null?void 0:de.plat_id),changeContents:[{tableName:"log",tableContents:Aa}]})}else{let Na=[];la==null||la.forEach(Aa=>{var ra;(ra=Aa==null?void 0:Aa.tableContents)==null||ra.forEach(tl=>{Na.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(tl),request_result:"{}",is_delete:!1,request_table:Aa==null?void 0:Aa.tableName,request_type:"error"})})}),await R.pageBatchAddApi({platId:parseInt((K=Nl==null?void 0:Nl.value)==null?void 0:K.plat_id),changeContents:[{tableName:"log",tableContents:Na}]}),Xa.ElMessage.error("数据导入响应失败")}}catch(Ce){throw new Error(Ce)}},De=async f=>{var m,L,$,W,A,ce,de,K,Ce,Se;try{if(f==="cancel"&&(Z.show=!1),f==="replace"&&((m=Z==null?void 0:Z.existRows)==null?void 0:m.length)>0){await R.pageBatchDeleteApi({platId:parseInt((L=Nl.value)==null?void 0:L.plat_id),changeContents:[{tableName:(($=d==null?void 0:d.related)==null?void 0:$.find(qe=>qe==null?void 0:qe.includes("content_")))||((W=d==null?void 0:d.related)==null?void 0:W.find(qe=>qe==null?void 0:qe.includes("content"))),tableContents:Z==null?void 0:Z.existRows}]});const Xe=await R.pageBatchAddApi({platId:parseInt((A=Nl.value)==null?void 0:A.plat_id),changeContents:[{tableName:(ce=d==null?void 0:d.related)==null?void 0:ce.find(qe=>qe==null?void 0:qe.includes("content")),tableContents:(()=>{const qe=(Ae.value||[]).filter(Aa=>!((Z==null?void 0:Z.existRows)||[]).some(ra=>String(ra==null?void 0:ra.id)===String(Aa==null?void 0:Aa.id))),la=(Z==null?void 0:Z.tableData)||[],ka=[];let Na=qe.slice();return la.forEach(Aa=>{const ra={...Aa};try{ra.sort=di(0,Na)}catch{}ka.push(ra),Na.unshift(ra)}),ka.map((Aa,ra)=>({id:ra,...Aa}))})()}]});if(((de=Xe==null?void 0:Xe.data)==null?void 0:de.code)!==200)return;(K=Z.newRows)!=null&&K.length&&await Ue(Z.newRows),await Lt({buttonName:"新增",columns:q.value,fixContent:(Ce=Z==null?void 0:Z.tableData)==null?void 0:Ce.map((qe,la)=>({id:la,...qe})),relatedContents:d==null?void 0:d.related}),(Se=Z.newRows)!=null&&Se.length||Xa.ElMessage.success("数据导入成功")}}catch(Xe){throw new Error(Xe)}finally{Z.show=!1,Z.columns=[],Z.tableData=[],Z.existRows=[]}},ca=()=>{Y.show=!1},Ia=f=>{var m,L;if((f==null?void 0:f.buttonName)==="取消")return Y.show=!1;Y.to=f==null?void 0:f.content,!(!(d!=null&&d.index)||!((m=Y.to)!=null&&m.groupName))&&(d==null?void 0:d.index)!==((L=Y.to)==null?void 0:L.groupName)&&(U("change",{buttonName:"迁移",value:{from:Y.from,to:Y.to,data:Y.selectRow}}),Y.show=!1)},nl=async f=>{var m,L,$,W;if(f){if(!zr.validateFileSize(f.raw)){Xa.ElMessage.warning(`文件大小不能超过 ${Ve.value.maxSize}MB`);const A=ga.value.findIndex(ce=>ce.uid===f.uid);A>-1&&ga.value.splice(A,1),al();return}if(!zr.validateFileType(f.raw)){Xa.ElMessage.warning("请上传图片文件");const A=ga.value.findIndex(ce=>ce.uid===f.uid);A>-1&&ga.value.splice(A,1),al();return}yn(f,"uploading"),Qr(f,0);try{const A=new FormData;A.append("file",f.raw,f.name);const ce=await R.platformUploadFile(A);f.uploadResult=((m=ce==null?void 0:ce.data)==null?void 0:m.result)||{name:f.name,url:"",fileName:f.name},ll({name:((L=f.uploadResult)==null?void 0:L.name)||f.name,url:(($=f.uploadResult)==null?void 0:$.url)||"",id:(W=f.uploadResult)==null?void 0:W.id}),yn(f,"uploaded"),Qr(f,100)}catch(A){console.error("文件上传失败:",A),Xa.ElMessage.error(`文件 ${f.name} 上传失败,请重试`),yn(f,"pending"),Qr(f,0);const ce=ga.value.findIndex(de=>de.uid===f.uid);ce>-1&&ga.value.splice(ce,1)}finally{al()}}},al=()=>{e.nextTick(()=>{const f=document.querySelector('.ocr-upload-input input[type="file"]');f&&(f.value="")})},dl=async()=>{var L,$;if(sessionStorage.setItem("ocr_root_table_id",String((d==null?void 0:d.index)??"")),ga.value.length===0){Xa.ElMessage.warning("请先选择要上传的图片");return}if(ga.value.filter(W=>{const A=nr(W);return A!=="uploaded"&&A!=="completed"&&A!=="failed"}).length>0){Xa.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}pr.value=!0,Me.value=0;let m=null;try{ga.value.forEach(ra=>{yn(ra,"processing")});const W=Math.floor(Math.random()*10)+90;m=setInterval(()=>{Me.value<W?Me.value+=1:clearInterval(m)},50);const A=ga.value.map(ra=>{var tl,wa,sl;return{name:((tl=ra.uploadResult)==null?void 0:tl.name)||ra.name,url:((wa=ra.uploadResult)==null?void 0:wa.url)||"",fileName:((sl=ra.uploadResult)==null?void 0:sl.fileName)||ra.name}}),ce=zr.extractTableHeaders(q.value),de=A.map(ra=>({name:(ra==null?void 0:ra.fileName)||(ra==null?void 0:ra.name),url:(ra==null?void 0:ra.url)||""})),K=await zr.recognize(de,ce);if(console.log(K,"ocrResult"),clearInterval(m),m=null,(K==null?void 0:K.code)===500||(K==null?void 0:K.type)==="error"||!(K!=null&&K.result)){Me.value=0,ga.value.forEach(ra=>{yn(ra,"failed"),Qr(ra,0)}),Xa.ElMessage.error((K==null?void 0:K.message)||"OCR识别失败,请重试"),pr.value=!1;return}Me.value=W;const Ce=Array.isArray(K==null?void 0:K.result)?K.result:[];if(Ce.length===0){Me.value=0,ga.value.forEach(ra=>{yn(ra,"failed"),Qr(ra,0)}),Xa.ElMessage.warning("OCR识别未返回有效数据"),pr.value=!1;return}const Se=new Set,Xe=[];Ce.forEach((ra,tl)=>{const wa=ra!=null&&ra.数据&&typeof(ra==null?void 0:ra.数据)=="object"?ra.数据:{},sl=Array.isArray(ra==null?void 0:ra.图片信息)?ra.图片信息:[],Ee=new Map;sl.forEach(ba=>{ba!=null&&ba.name&&Ee.set(ba.name,ba.url||"")});const Va={_index:tl,_certType:(ra==null?void 0:ra.证书类型)||"",_certNo:(ra==null?void 0:ra.证书编号)||"",_ocrImages:sl,__ocrFieldMeta:{}};Object.entries(wa).forEach(([ba,Ja])=>{let Oa="",Le=0,ae=[],je="";Ja&&typeof Ja=="object"&&!Array.isArray(Ja)?(Oa=(Ja==null?void 0:Ja.value)??"",Le=(Ja==null?void 0:Ja.score)??0,ae=Array.isArray(Ja==null?void 0:Ja.bboxNorm)?Ja==null?void 0:Ja.bboxNorm:[],je=(Ja==null?void 0:Ja.imageName)||""):Array.isArray(Ja)&&Ja.length>=2?(Oa=Ja[0]??"",Le=Ja[1]??0):(Oa=Ja??"",Le=0),Va[ba]=Oa,Va[`${ba}_accuracy`]=Le,Se.add(ba),Va.__ocrFieldMeta[ba]={value:Oa,score:Le,bboxNorm:ae,imageName:je,imageUrl:je&&Ee.get(je)||"",images:sl}}),Xe.push(Va)});const qe=[],la=new Set;Xe.forEach(ra=>{ra&&Se.forEach(tl=>{const wa=ra[`${tl}_accuracy`];(typeof wa=="number"?wa>0:wa!=null&&String(wa).trim()!==""&&String(wa)!=="0")&&la.add(tl)})}),Se.forEach(ra=>{qe.push({prop:ra,label:ra,editable:!0,minWidth:230}),la.has(ra)&&qe.push({prop:`${ra}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),ga.value.forEach(ra=>{yn(ra,"completed")}),Me.value=100,me.value=qe,Ya.value=Xe,pl.value=A,Il.value=K;const ka=["出厂编号","设备名称","制造厂"],Na=qe.filter(ra=>ra&&!ra.isAccuracy&&typeof ra.prop=="string").map(ra=>ra.prop),Aa=["出厂编号","设备名称","制造厂"];Qa.value=Na.filter(ra=>Aa.includes(ra)),console.log("[OCR] 默认勾选字段 props:",Qa.value),Ua.value=2,pr.value=!1,oa.value=!1}catch(W){console.error("OCR处理失败:",W),m&&(clearInterval(m),m=null),Xa.ElMessage.error((($=(L=W==null?void 0:W.response)==null?void 0:L.data)==null?void 0:$.message)||"OCR识别失败,请重试"),pr.value=!1,Me.value=0,ga.value.forEach(A=>{yn(A,"pending"),Qr(A,0)})}},Tl=f=>{if(f==null)return"";let m=String(f);return m=m.replace(/\s+/g," ").trim(),m=m.replace(/[!-~]/g,L=>String.fromCharCode(L.charCodeAt(0)-65248)),m=m.replace(/ /g," "),m=m.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),m},El=()=>{var ra,tl;const f=pl.value,m=Il.value,L=Ya.value;if(!L||L.length===0){Xa.ElMessage.warning("暂无数据可添加");return}const $=(ra=re.getAllLeafNodes(q.value)||[])==null?void 0:ra.filter(wa=>(wa==null?void 0:wa.type)!=="operate"&&(wa==null?void 0:wa.label)!=="操作"&&(wa==null?void 0:wa.prop)!=="operate"),W=new Map,A=new Map,ce=(tl=$==null?void 0:$.find(wa=>(wa==null?void 0:wa.label)==="证书附件"))==null?void 0:tl.prop;$==null||$.forEach(wa=>{wa!=null&&wa.label&&(wa!=null&&wa.prop)&&(W.set(wa.label,wa.prop),A.set(wa.prop,wa.label))});const de=Date.now(),K=wa=>String(de*1e3+wa),Ce=[],Se=[],Xe=wa=>{const sl=Mo&&Mo[wa]||[wa];for(const Ee of sl){const Va=W.get(Ee);if(Va)return Va}return""},qe=Xe("出厂编号"),la=Xe("设备名称"),ka=Xe("制造厂"),Na=[],Aa=wa=>{var Oa,Le;if(!ce)return[];const sl=(Array.isArray(f)?f[wa]:null)||null,Ee=(sl==null?void 0:sl.url)||"",Va=(sl==null?void 0:sl.fileName)||(sl==null?void 0:sl.name)||"";return(String(Va).toLowerCase().endsWith(".pdf")||String(Ee).toLowerCase().endsWith(".pdf"))&&Ee?[{url:Ee,name:Va,fileName:Va}]:(Array.isArray((Le=(Oa=m==null?void 0:m.result)==null?void 0:Oa[wa])==null?void 0:Le.图片信息)?m.result[wa].图片信息:[]).map(ae=>({url:(ae==null?void 0:ae.url)||"",name:(ae==null?void 0:ae.name)||"",fileName:(ae==null?void 0:ae.name)||""})).filter(ae=>ae.url)};if(L.forEach((wa,sl)=>{var cl;const Ee={id:K(sl),_isOCRRow:!0,_ocrTableId:d==null?void 0:d.index};for(const[Ka,Ca]of W.entries())Object.prototype.hasOwnProperty.call(wa,Ka)&&(Ee[Ca]=wa[Ka]);ce&&(Ee[ce]=Aa(sl));const Va=(Array.isArray(m==null?void 0:m.result)?m.result[sl]:null)||null,ba=(Array.isArray(f)?f[sl]:null)||null,Ja=(ba==null?void 0:ba.url)||"",Oa=(ba==null?void 0:ba.fileName)||(ba==null?void 0:ba.name)||"",Le=String(Oa).toLowerCase().endsWith(".pdf")||String(Ja).toLowerCase().endsWith(".pdf"),ae={ts:Date.now(),versionId:String(Date.now())+"_"+String(sl),label:new Date().toLocaleString(),certType:(Va==null?void 0:Va.证书类型)||"",certNo:(Va==null?void 0:Va.证书编号)||"",fileType:Le?"pdf":"image",sourceUrl:Le?Ja:"",images:Array.isArray(Va==null?void 0:Va.图片信息)?Va.图片信息.map(Ka=>({name:(Ka==null?void 0:Ka.name)||"",url:(Ka==null?void 0:Ka.url)||""})).filter(Ka=>Ka.url):[]},je=Ka=>Tl(Ka?Ee==null?void 0:Ee[Ka]:""),pa=je(qe),z=je(la),za=je(ka);if(!!(qe&&la&&ka&&pa&&z&&za)){const Ka=(Ae.value||[]).find(Ca=>{const fl=Tl(qe?Ca==null?void 0:Ca[qe]:""),Yl=Tl(la?Ca==null?void 0:Ca[la]:""),Wa=Tl(ka?Ca==null?void 0:Ca[ka]:"");return fl&&Yl&&Wa&&fl===pa&&Yl===z&&Wa===za});if(Ka){Na.push({idx:sl,ocrRow:Ee,versionItem:ae,ocrNo:pa,candidates:[Ka],selectedTargetId:String((Ka==null?void 0:Ka.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(pa&&qe){const Ka=(Ae.value||[]).filter(Ca=>{const fl=Tl(qe?Ca==null?void 0:Ca[qe]:"");return fl&&fl===pa});if(Ka.length>0){Na.push({idx:sl,ocrRow:Ee,versionItem:ae,ocrNo:pa,candidates:Ka,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(Ee.sort===void 0||Ee.sort===null||String(Ee.sort).trim()===""){const Ka=(Ae.value||[]).map(fl=>Hn(fl==null?void 0:fl.sort)).filter(fl=>fl!==null),Ca=Ka.length>0?Math.max(...Ka):((cl=Ae.value)==null?void 0:cl.length)??0;Ee.sort=String(Number((Ca+1).toFixed(6)))}}catch{}Xl(d==null?void 0:d.index,Ee.id,ae),Na.push({idx:sl,ocrRow:Ee,versionItem:ae,ocrNo:pa,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Na||[]).length>0){Ul.value=(Na||[]).map(wa=>({...wa,selectedTargetId:(wa==null?void 0:wa.selectedTargetId)||""})),xa.value=!0,Gl.value=Se,Da.value=Ce,Rl.value=m,Fr.value=f,Dr.value=ce||"";return}},Vl=(f,m,L)=>{Ya.value[f]&&(Ya.value[f][m]=L)},tr=f=>f==null||f===0?"-":`${(Number(f)*100).toFixed(1)}%`,hr=f=>{if(f==null||f===0)return"#909399";const m=Number(f);return m>=.9?"#67c23a":m>=.7?"#e6a23c":"#f56c6c"},Kl=f=>{var L,$,W,A;if(kl.value===f){kl.value=null,aa.value=!1,Ma.value="";return}kl.value=f,Ma.value="";const m=(L=Ya.value)==null?void 0:L[f];if(m&&Array.isArray(m._ocrImages)&&m._ocrImages.length>0){ma.value=m._ocrImages.map(K=>({name:(K==null?void 0:K.name)||"",url:(K==null?void 0:K.url)||""})).filter(K=>K.name||K.url);const ce=m.__ocrFieldMeta||{},de=($=Object.values(ce))==null?void 0:$.find(K=>K==null?void 0:K.imageName);ja.value=(de==null?void 0:de.imageName)||((A=(W=ma.value)==null?void 0:W[0])==null?void 0:A.name)||"",aa.value=ma.value.length>0}else ma.value=[],aa.value=!1,ja.value=""},cr=()=>{Sl.value=!1,ga.value=[],ol.value=null,Ua.value=1,Sa.value.clear(),rl.value.clear(),Me.value=0,aa.value=!1},pn=f=>f.raw?URL.createObjectURL(f.raw):f.url?f.url:"",nr=f=>{const m=f.uid||f.name;return Sa.value.get(m)||"pending"},bn=f=>{const m=f.uid||f.name;return rl.value.get(m)||0},Qr=(f,m)=>{const L=f.uid||f.name;rl.value.set(L,Math.min(100,Math.max(0,m)))},Rn=f=>{const m=nr(f),L=100.53;if(m==="completed"||m==="uploaded")return`${L} ${L}`;if(m==="failed")return`${L} ${L}`;if(m==="uploading"){const $=bn(f);return`${L*($/100)} ${L}`}else if(m==="processing")return`${L*.5} ${L}`;return`0 ${L}`},yn=(f,m)=>{const L=f.uid||f.name;Sa.value.set(L,m),(m==="completed"||m==="uploaded")&&Qr(f,100)},fi=()=>{e.nextTick(()=>{const f=document.querySelector('.ocr-upload-input input[type="file"]');if(f)f.value="",f.click();else{const m=document.createElement("input");m.type="file",m.multiple=!0,m.accept="image/*,application/pdf",m.style.display="none",m.onchange=async L=>{const $=Array.from(L.target.files||[]);for(const W of $){const A={name:W.name,raw:W,uid:Date.now()+Math.random()};ga.value.push(A),await nl(A)}L.target.value="",document.body.removeChild(m)},document.body.appendChild(m),m.click()}})},Iu=()=>{Ua.value>1&&Ua.value--},Ou=()=>{Ua.value===1?ga.value.length>0&&!pr.value&&dl():Ua.value===2&&(El(),Ua.value=3)},Lu=async f=>{await Jt(f==null?void 0:f.row)},Ru=async({row:f,prop:m})=>{!f||!m||await Jt(f,m)},Jt=async(f,m)=>{var W,A;const L=f==null?void 0:f.id;if(!L){Xa.ElMessage.warning("暂无可预览数据");return}let $=Ga(d==null?void 0:d.index,L);if(!$||$.length===0){const ce=sessionStorage.getItem("ocr_root_table_id"),de=ce!==null?Number(ce):null;if(de!=null&&de!==""&&!Number.isNaN(de)){const K=Ga(de,L);Array.isArray(K)&&K.length>0&&(Jl(d==null?void 0:d.index,L,K),$=K)}}if(!$||$.length===0){const ce=(W=re.getAllLeafNodes(q.value)||[])==null?void 0:W.filter(K=>(K==null?void 0:K.type)!=="operate"&&(K==null?void 0:K.label)!=="操作"&&(K==null?void 0:K.prop)!=="operate"),de=m||((A=ce==null?void 0:ce.find(K=>(K==null?void 0:K.label)==="证书附件"))==null?void 0:A.prop);if(de&&f[de]){const K=f[de];let Ce=[],Se="",Xe=!1;if(typeof K=="string")try{const qe=JSON.parse(K);Array.isArray(qe)&&(Ce=qe.map(la=>({name:(la==null?void 0:la.name)||(la==null?void 0:la.fileName)||"",url:(la==null?void 0:la.url)||""})).filter(la=>la.url||la.name),Ce.length>0&&(Se=Ce[0].url||"",Xe=String(Ce[0].name).toLowerCase().endsWith(".pdf")||String(Se).toLowerCase().endsWith(".pdf")))}catch{Se=K,Xe=String(K).toLowerCase().endsWith(".pdf"),Ce=[{name:K,url:K}]}else Array.isArray(K)&&(Ce=K.map(qe=>({name:(qe==null?void 0:qe.name)||(qe==null?void 0:qe.fileName)||"",url:(qe==null?void 0:qe.url)||""})).filter(qe=>qe.url||qe.name),Ce.length>0&&(Se=Ce[0].url||"",Xe=String(Ce[0].name).toLowerCase().endsWith(".pdf")||String(Se).toLowerCase().endsWith(".pdf")));if(Ce.length>0||Se){const qe={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:f.证书类型||"",certNo:f.证书编号||"",fileType:Xe?"pdf":"image",sourceUrl:Xe?Se:"",images:Ce};$=[qe],Xl(d==null?void 0:d.index,L,qe)}}}if(!$||$.length===0){Xa.ElMessage.warning("暂无可预览数据");return}Dl.value=$,vl.value=!0},$u=f=>{ga.value=ga.value.filter((m,L)=>L!==f)},vt=async(f,m,L)=>{var $,W,A,ce,de,K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl,wa,sl,Ee,Va,ba,Ja;if(Ea(d.config,{type:va.TABLE,tableOperate:f})){if(da.value="",Re.value=!0,Ha.value=!0,U("onButtonClick",f,m),J.value=[],f==="删除")R.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Oa,Le,ae,je;(Oa=Ae.value)!=null&&Oa.find(pa=>(pa==null?void 0:pa.id)===(m==null?void 0:m.id))?Ae.value=(Le=R.cloneDeep(Ae.value))==null?void 0:Le.filter(pa=>(pa==null?void 0:pa.id)!==(m==null?void 0:m.id)):Ae.value=h(R.cloneDeep(Ae.value),m);try{m!=null&&m.id&&((je=(ae=Ta.value)==null?void 0:ae.has)!=null&&je.call(ae,m==null?void 0:m.id))&&Ta.value.delete(m.id)}catch{}C0(Sr.value,$l.value,m==null?void 0:m.id),Ge.setTableLoading(d==null?void 0:d.index),U("change",{content:Ae.value,fixContent:[m],index:d==null?void 0:d.index,type:"delete",name:d==null?void 0:d.groupNames,buttonName:f,columns:q.value,relatedContents:d==null?void 0:d.related}),console.log(m,"item")});else if(f==="批量删除"){if((($=Nr.value)==null?void 0:$.length)===0)return Xa.ElMessage.warning("请先勾选操作的数据");R.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var ae,je,pa,z,za;const Oa=(ae=Nr.value)==null?void 0:ae.map(qa=>qa.id);Ae.value=(je=R.cloneDeep(Ae.value))==null?void 0:je.filter(qa=>!(Oa!=null&&Oa.includes(qa.id))),Ge.setTableLoading(d==null?void 0:d.index),U("change",{content:Ae.value,fixContent:Nr.value,index:d==null?void 0:d.index,type:"delete",name:d==null?void 0:d.compName,buttonName:f,relatedContents:d==null?void 0:d.related,columns:q.value});const Le=(Oa||[]).filter(Boolean);if(Le.length>0&&Le.every(qa=>qa!=null&&qa!=="")){const qa=(Nr.value||[]).map(cl=>{const Ka={...cl};return delete Ka._isOCRRow,delete Ka._ocrTableId,delete Ka._isTemp,delete Ka.tableEditType,delete Ka.index,Ka});await R.pageBatchDeleteApi({platId:parseInt((pa=Nl.value)==null?void 0:pa.plat_id),changeContents:[{tableName:((z=d==null?void 0:d.related)==null?void 0:z.find(cl=>cl==null?void 0:cl.includes("content_")))||((za=d==null?void 0:d.related)==null?void 0:za.find(cl=>cl==null?void 0:cl.includes("content"))),tableContents:qa}]})}})}else if(f==="复制新增"){ha.value="复制新增",R.cloneDeep(m);const Oa=(W=q.value)==null?void 0:W.find(Le=>Le==null?void 0:Le.isMainKey);Oa||((A=q.value)==null||A[0]),ql.value=m,Wi(!0)}else if(f==="新增")ha.value="新增",Ui(""),ea.value=!0;else if(f==="编辑")ha.value="编辑",Ui(m),ea.value=!0;else if(f==="查看")ha.value="查看",Ui(m),Re.value=!1,Ha.value=!1,ea.value=!0;else if(f==="查看三维模型"){const Oa={};for(let ae in m)ae!=="id"&&(Oa[ae]=m[ae]);let Le=(ce=Object.values(Oa))==null?void 0:ce[1];ya.setTableShowThree(Le)}else if(f==="切换视图")Xu();else if(((de=L==null?void 0:L.extra)==null?void 0:de.type)==="modelExample")ha.value=f,ie.value=!0;else if(f==="新建"){let Oa=ua.value,Le=[];for(let za in Oa)za!=null&&za.includes(`loading${((K=Nl.value)==null?void 0:K.account)||((Ce=Nl.value)==null?void 0:Ce.账号)}`)&&(Le=[...Le,...za]);let ae=[];for(let za in Oa)za!=null&&za.includes(`updateLoading${((Se=Nl.value)==null?void 0:Se.account)||((Xe=Nl.value)==null?void 0:Xe.账号)}`)&&(ae=[...ae,...za]);let je=Le==null?void 0:Le.map(za=>za==null?void 0:za.id);const pa=ae==null?void 0:ae.map(za=>za==null?void 0:za.id);je=[...R.cloneDeep(je),...pa],(je==null?void 0:je.length)>0&&(je!=null&&je.every(za=>za!==null&&za))&&await Zr.batchDeleteInsofDataApi({ids:je});const z=(qe=Ne.value)==null?void 0:qe.find(za=>(za==null?void 0:za.label)==="新建");await Pu(!1,z)}else if(f==="修改模板"){let Oa=R.cloneDeep(ne).value;Ge.setRouteToChildPath(Oa),ge.setActiveMenuPath(Oa+M)}else if(f==="执行")t(f,m);else if(f==="导出paraform"){const Oa=R.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Le=["推力","真空","压力","温度","流量"],ae=_l=>{var ir,yr,Ml;return _l?typeof(_l==null?void 0:_l.value)=="string"?_l.value:((Ml=(yr=(ir=_l==null?void 0:_l._custom)==null?void 0:ir.value)==null?void 0:yr.value)==null?void 0:Ml.value)||"":""},je=Array.isArray(or.value)?or.value:[],pa=ae(je.find(_l=>(_l==null?void 0:_l.condition)==="child")),z=String(pa||"").slice(0,8),za=_l=>{if(_l==null)return"";const ir=String(_l).trim();if(!ir)return"";if(/^\d{8}$/.test(ir))return ir;const yr=ir.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(yr){const gr=yr[1],Tr=yr[2].padStart(2,"0"),br=yr[3].padStart(2,"0");return`${gr}${Tr}${br}`}const Ml=ir.replace(/\D/g,"");return Ml.length>=8?Ml.slice(0,8):""},qa=async _l=>{var ir,yr;if(!_l)return"";try{const Ml=await qr("试验任务/任务管理",!1),gr=(mr,Lr=[])=>{if(!Array.isArray(mr))return Lr;for(const Hr of mr)(Hr==null?void 0:Hr.comp)==="Table"&&(Hr!=null&&Hr.name)&&Lr.push(Hr),Array.isArray(Hr==null?void 0:Hr.children)&&gr(Hr.children,Lr),Array.isArray(Hr==null?void 0:Hr.tab)&&gr(Hr.tab,Lr),Array.isArray(Hr==null?void 0:Hr.choice)&&gr(Hr.choice,Lr);return Lr},br=gr(Ml||[]).find(mr=>(mr==null?void 0:mr.name)==="任务列表"),Ir=((yr=(ir=br==null?void 0:br.compData)==null?void 0:ir.find(mr=>(mr==null?void 0:mr.key)==="tableContents"))==null?void 0:yr.contents)||[];if(!Array.isArray(Ir)||Ir.length===0)return"";const sn=Ir.find(mr=>String((mr==null?void 0:mr["试验代号(名称)"])||"").slice(0,8)===_l);return za(sn==null?void 0:sn.计划试验时间)}catch(Ml){return console.warn("获取任务列表计划试验时间失败:",Ml),""}},cl=(ne.value||"").replace(/\/+$/,""),Ka=pa?`${cl}/${pa}`:cl,Ca=await qr(Ka||ne.value,!1),fl=String(Pe.value||"").trim(),Yl=_l=>String(_l||"").trim(),Wa=(_l,ir=[],yr="")=>{if(!Array.isArray(_l))return ir;for(const Ml of _l){const gr=Yl((Ml==null?void 0:Ml.choiceName)||(Ml==null?void 0:Ml.name0)||yr);(Ml==null?void 0:Ml.comp)==="Table"&&(Ml==null?void 0:Ml.name)&&Le.includes(Ml.name)&&(!fl||gr===fl)&&ir.push(Ml),Array.isArray(Ml==null?void 0:Ml.children)&&Wa(Ml.children,ir,gr),Array.isArray(Ml==null?void 0:Ml.tab)&&Wa(Ml.tab,ir,gr),Array.isArray(Ml==null?void 0:Ml.choice)&&Wa(Ml.choice,ir,gr)}return ir},Bl=Wa(Ca||[]),Ra=new Map;for(const _l of Bl)_l!=null&&_l.name&&!Ra.has(_l.name)&&Ra.set(_l.name,_l);const Ol=Le.map(_l=>Ra.get(_l)).filter(Boolean);if(!Ol||Ol.length===0)return Xa.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const il=_l=>{const ir=new Map,yr=(Ml,gr=[])=>{if(Array.isArray(Ml))for(const Tr of Ml){const br=((Tr==null?void 0:Tr.label)??"").toString().trim(),Ir=br?[...gr,br]:[...gr];if(Array.isArray(Tr==null?void 0:Tr.children)&&Tr.children.length>0)yr(Tr.children,Ir);else{const mr=((Tr==null?void 0:Tr.prop)??"").toString();if(!mr)continue;const Lr=br||mr,Hr=(Ir.length>0?[...gr,Lr]:[Lr]).join(".");ir.set(mr,Hr)}}};return yr(_l,[]),ir},ml=(_l,ir)=>{const yr=il(_l||[]),gr=(re.getAllLeafNodes(_l||[])||[]).filter(br=>(br==null?void 0:br.prop)&&(br==null?void 0:br.type)!=="operate"&&(br==null?void 0:br.label)!=="操作"&&(br==null?void 0:br.prop)!=="operate"),Tr=Array.isArray(ir)?ir:[];return Tr.length===0?[]:Tr.map(br=>{const Ir={};return gr.forEach(sn=>{const mr=String(sn.prop),Lr=yr.get(mr)||String(sn.label||sn.prop);Ir[Lr]=(br==null?void 0:br[mr])??""}),Ir})},zl=Ol.map(_l=>{var Tr,br;const ir=(_l==null?void 0:_l.compData)||[];let yr=(Tr=ir==null?void 0:ir.find(Ir=>(Ir==null?void 0:Ir.key)==="header"))==null?void 0:Tr.contents;Array.isArray(yr==null?void 0:yr[0])&&(yr=yr[0]);const Ml=((br=ir==null?void 0:ir.find(Ir=>(Ir==null?void 0:Ir.key)==="tableContents"))==null?void 0:br.contents)||[];if(!Array.isArray(yr)||yr.length===0||!Array.isArray(Ml)||Ml.length===0)return null;const gr=ml(yr||[],Ml||[]);return!Array.isArray(gr)||gr.length===0?null:{类型:_l==null?void 0:_l.name,数据:gr}}).filter(Boolean);if(!zl||zl.length===0)return Xa.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const xl=await qa(z),Cr={试验代号:z,试验日期:xl,ParaForm:zl},vr=await Ei().catch(()=>""),ur=await R.exportParaformApi(Cr,vr);if(((la=ur==null?void 0:ur.data)==null?void 0:la.code)===200&&((Na=(ka=ur==null?void 0:ur.data)==null?void 0:ka.result)!=null&&Na.Excel文件)){const _l=ur.data.result.Excel文件,ir=await R.platformDownloadFile({url:_l}),yr=new Blob([ir.data],{type:"application/vnd.ms-excel"}),Ml=URL.createObjectURL(yr),gr=R.dayjs().format("YYYYMMDD"),br=`${(z||"UNKNOWN").trim()||"UNKNOWN"}_${gr}_paraform.xls`,Ir=document.createElement("a");Ir.href=Ml,Ir.download=br,Ir.style.display="none",document.body.appendChild(Ir),Ir.click(),setTimeout(()=>{document.body.removeChild(Ir),URL.revokeObjectURL(Ml)},100);const sn=Array.isArray((ra=(Aa=ur==null?void 0:ur.data)==null?void 0:Aa.result)==null?void 0:ra.warnings)?ur.data.result.warnings:[];if(sn.length>0){const mr=sn.map((Lr,Hr)=>`${Hr+1}. ${(Lr==null?void 0:Lr.field)||"未知字段"}:${(Lr==null?void 0:Lr.message)||""}`).join(`
|
|
24
|
+
`);Xa.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
+
${mr}`,duration:5e3,showClose:!0})}else Xa.ElMessage.success("导出成功")}else Xa.ElMessage.error(((tl=ur==null?void 0:ur.data)==null?void 0:tl.message)||"导出失败")}catch(Le){console.error("导出paraform失败:",Le),Xa.ElMessage.error("导出失败:"+((Le==null?void 0:Le.message)||"未知错误"))}finally{Oa.close()}}else if(f!=null&&f.includes("导出")&&f!=="导出paraform"){if(f==="导出选中"&&((wa=Nr.value)==null?void 0:wa.length)===0)return Xa.ElMessage.warning(`请先勾选${f}的数据`);if(f==="导出全部"&&((sl=Ae.value)==null?void 0:sl.length)===0)return Xa.ElMessage.warning("暂无数据导出");let Oa=["序号",...(Va=(Ee=q.value)==null?void 0:Ee.map(pa=>pa==null?void 0:pa.prop))==null?void 0:Va.filter(pa=>pa!=="操作")],Le=f==="导出全部"?Ae.value:Nr.value;const ae=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Le=Le==null?void 0:Le.map(pa=>Object.fromEntries(Object.entries(pa).filter(([z])=>!ae.includes(z)))),Oa=["序号",...Oa],Le=Le==null?void 0:Le.map((pa,z)=>({序号:z+1,...pa}));let je=(d==null?void 0:d.compName)||"表格信息";Ko(Le,je,Oa,je)}else if(f==="OCR识别")Sl.value=!0,ga.value=[],Ua.value=1,Sa.value.clear(),rl.value.clear(),Me.value=0;else if(f==="迁移")Y.selectRow=m,Y.show=!0;else if(f==="生成方法"){let Oa=await U0(m),Le;m!==""?Le=[m]:Le=R.cloneDeep(Ae.value),Le=Le==null?void 0:Le.map(je=>(je.输出值=Oa,je));const ae={fixContent:Le,buttonName:"编辑",relatedContents:d==null?void 0:d.related,columns:q.value,name:d==null?void 0:d.groupNames};U("change",ae)}else if(f==="签字板"||f==="触控笔")$a.value.dialogShow=!0,$a.value.dialogTitle=f;else if(((ba=L==null?void 0:L.extra)==null?void 0:ba.type)==="methodButton"){let Oa;m!==""?Oa=[m]:Oa=R.cloneDeep(Ae.value);const Le=await Nt(Oa,q==null?void 0:q.value,"Manual",Ae.value,d==null?void 0:d.calculator,d==null?void 0:d.compNames);let ae;(Ja=Le==null?void 0:Le[0])!=null&&Ja.menuPathContent?ae={fixContent:Le,buttonName:"新增",relatedContents:d==null?void 0:d.related,columns:q.value,name:d==null?void 0:d.groupNames}:ae={fixContent:Le,buttonName:"methodButton",relatedContents:d==null?void 0:d.related,columns:q.value,name:d==null?void 0:d.groupNames},U("change",ae)}}},Vu=async(f,m)=>{var L,$,W,A,ce,de,K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl,wa,sl,Ee;try{let Va,ba;const Ja=(L=ua.value[ne.value+M])==null?void 0:L.filter(qa=>{var cl;return((cl=qa==null?void 0:qa.key)==null?void 0:cl.type)==="structureMethod"}),Oa=($=ua.value[ne.value+M])==null?void 0:$.filter(qa=>{var cl;return((cl=qa==null?void 0:qa.key)==null?void 0:cl.type)==="structure"}),Le=Ja==null?void 0:Ja.find(qa=>{var cl,Ka;return((Ka=(cl=qa==null?void 0:qa.value)==null?void 0:cl.pageData)==null?void 0:Ka.method)==="保存"});if(!Le)return;const ae=(de=(ce=ua.value[(A=(W=Le==null?void 0:Le.value)==null?void 0:W.pageData)==null?void 0:A.path])==null?void 0:ce.filter(qa=>{var cl;return((cl=qa==null?void 0:qa.key)==null?void 0:cl.type)==="data"}))==null?void 0:de.find(qa=>{var cl,Ka,Ca,fl;return((Ka=(cl=qa==null?void 0:qa.value)==null?void 0:cl.tableData)==null?void 0:Ka.算法名称)===((fl=(Ca=Le==null?void 0:Le.value)==null?void 0:Ca.pageData)==null?void 0:fl.method)});if(!ae)return;const je={buttonName:(Ce=(K=Le==null?void 0:Le.value)==null?void 0:K.pageData)==null?void 0:Ce.method,api:(Xe=(Se=ae==null?void 0:ae.value)==null?void 0:Se.tableData)==null?void 0:Xe.算法体,content:Oa==null?void 0:Oa.map(qa=>{var cl;return(cl=qa==null?void 0:qa.value)==null?void 0:cl.pageData}),extraContent:[],extraValues:(la=(qe=Le==null?void 0:Le.value)==null?void 0:qe.pageData)==null?void 0:la.data,methodName:(Na=(ka=Le==null?void 0:Le.value)==null?void 0:ka.pageData)==null?void 0:Na.path};if(!f)return;const pa={...f,compData:(Aa=f==null?void 0:f.compData)==null?void 0:Aa.map(qa=>{var cl;return(qa==null?void 0:qa.key)==="formContent"?{...qa,contents:(cl=qa==null?void 0:qa.contents)==null?void 0:cl.map(Ka=>(Ka==null?void 0:Ka.prop)===m?{...Ka,value:""}:Ka)}:qa})},z={key:{pageKey:ne.value+M,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:pa}},za=await Xa.axios.post(je.api,z,{headers:{"Content-Type":"application/json"}});return((ra=za==null?void 0:za.data)==null?void 0:ra.code)===200&&(Va=(wa=(tl=za==null?void 0:za.data)==null?void 0:tl.result)==null?void 0:wa.latestReportCode,ba=(Ee=(sl=za==null?void 0:za.data)==null?void 0:sl.result)==null?void 0:Ee.status),{newMainKeyValue:Va,newStatus:ba}}catch(Va){throw Xa.ElMessage.error(Va),new Error(Va)}},Xt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const Fu=async(f,m,L)=>{var K,Ce;let $=f==null?void 0:f[m==null?void 0:m.prop],W=1,A,ce;const de=R.cloneDeep(ne).value+M+$;if(de){Xt.value="",A=(K=ua.value[de])==null?void 0:K.filter(qe=>{var la;return((la=qe==null?void 0:qe.key)==null?void 0:la.type)==="structure"});const Se=A==null?void 0:A.find(qe=>{var la,ka,Na;return((Na=(ka=(la=qe==null?void 0:qe.value)==null?void 0:la.pageData)==null?void 0:ka.comp)==null?void 0:Na.toUpperCase())==="FORM"});ce={...(Ce=Se==null?void 0:Se.value)==null?void 0:Ce.pageData,id:Se==null?void 0:Se.id};const Xe=await Vu(ce,m==null?void 0:m.prop);if(Xt.value=Xe==null?void 0:Xe.newStatus,Xe!=null&&Xe.newMainKeyValue)return Xe==null?void 0:Xe.newMainKeyValue}if(Ae.value.some(Se=>(Se==null?void 0:Se[m==null?void 0:m.prop])===$)){const Se=$;for(;Ae.value.some(Xe=>(Xe==null?void 0:Xe[m==null?void 0:m.prop])===`${Se}(${W})`);)W++;$=`${Se}(${W})`}return $},Pu=async(f,m,L)=>{var A,ce,de,K;let $,W;if(await Fu(L==null?void 0:L.data,L==null?void 0:L.firstCol),$=R.cloneDeep(ne).value+M,W=R.cloneDeep($)+`loading${((A=Nl.value)==null?void 0:A.account)||((ce=Nl.value)==null?void 0:ce.账号)}`,m){const Ce=(K=(de=ua.value[W])==null?void 0:de.filter(Se=>{var Xe;return((Xe=Se==null?void 0:Se.key)==null?void 0:Xe.parentTable)===""}))==null?void 0:K.map(Se=>{var Xe;return{id:Se==null?void 0:Se.id,...(Xe=Se==null?void 0:Se.value)==null?void 0:Xe.pageData}});(Ce==null?void 0:Ce.length)>0||await re.loadingConstruct($,W,null,null,null),Ge.setRouteToChildPath(R.cloneDeep(ne).value),ge.setActiveMenuPath(W)}else Ge.setRouteToChildPath(R.cloneDeep(ne).value),ge.setActiveMenuPath(W)},Hu=()=>{ue.value=!1,Ie.value=[],N.value=!1},Ui=f=>{var de,K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl,wa,sl,Ee,Va,ba,Ja,Oa,Le,ae,je,pa;const m=[];ze.value=R.cloneDeep(q.value);let L=(K=(de=u.value)==null?void 0:de.find(z=>{var za;return(za=z==null?void 0:z.key)==null?void 0:za.includes("@EditRead")}))==null?void 0:K.content,$=!1;(L==null?void 0:L.length)>0&&($=Ls(L,f),($==null?void 0:$.length)>0?$=!0:$=!1),(Se=re.getColumnChild((Ce=R.cloneDeep(q.value))==null?void 0:Ce.filter(z=>(z==null?void 0:z.label)!=="操作")))==null||Se.forEach((z,za)=>{var qa,cl,Ka;z!=null&&z.formType&&((qa=z==null?void 0:z.formType)==null?void 0:qa.toUpperCase())==="SELECT"||z!=null&&z.menuId?m.push({label:(cl=z==null?void 0:z.prop)!=null&&cl.includes(".")?z==null?void 0:z.prop:(z==null?void 0:z.label)??(z==null?void 0:z.prop)??"",name:(z==null?void 0:z.prop)??"t"+za,prop:z==null?void 0:z.prop,type:"Select",value:(f==null?void 0:f[z==null?void 0:z.prop])??(z==null?void 0:z.value)??"",id:(z==null?void 0:z.id)??za,contents:(z==null?void 0:z.options)??[],multiple:(z==null?void 0:z.multiple)??!1,multipleLimit:z==null?void 0:z.multipleLimit,width:2,isFormColHidden:z==null?void 0:z.isFormColHidden,relatedValueId:z==null?void 0:z.relatedValueId,menus:z==null?void 0:z.menus,groups:z==null?void 0:z.groups,words:z==null?void 0:z.words,allSelectionContents:(z==null?void 0:z.allSelectionContents)??[],filterContent:z==null?void 0:z.filterContent,disabled:(z==null?void 0:z.prop)==="disabled"?!0:$||(z==null?void 0:z.disabled),filter:z==null?void 0:z.filter,bindMenus:z==null?void 0:z.bindMenus,isMainPath:z==null?void 0:z.isMainPath,required:(z==null?void 0:z.required)??!1,relatedContents:z==null?void 0:z.relatedContents,mainKey:z==null?void 0:z.mainKey,relatedContents:z==null?void 0:z.relatedContents,functionName:z==null?void 0:z.functionName,functionRelatedWords:z==null?void 0:z.functionRelatedWords,calculatorFilter:z==null?void 0:z.calculatorFilter,isReadonly:z==null?void 0:z.isReadonly}):m.push({label:(Ka=z==null?void 0:z.prop)!=null&&Ka.includes(".")?z==null?void 0:z.prop:(z==null?void 0:z.label)??(z==null?void 0:z.prop)??"",prop:z==null?void 0:z.prop,name:(z==null?void 0:z.prop)??"t"+za,type:!(z!=null&&z.formType)||(z==null?void 0:z.formType)===""?"Input":z==null?void 0:z.formType,value:(z==null?void 0:z.formType)==="Upload"?(f==null?void 0:f[z==null?void 0:z.prop])??"{}":(f==null?void 0:f[z==null?void 0:z.prop])??(z==null?void 0:z.value)??"",id:(z==null?void 0:z.id)??za,contents:(z==null?void 0:z.options)??[],multiple:(z==null?void 0:z.multiple)??!1,width:2,isFormColHidden:z==null?void 0:z.isFormColHidden,disabled:(z==null?void 0:z.prop)==="disabled"?!0:$||(z==null?void 0:z.disabled),relatedValueId:z==null?void 0:z.relatedValueId,menus:z==null?void 0:z.menus,groups:z==null?void 0:z.groups,words:z==null?void 0:z.words,filter:z==null?void 0:z.filter,bindMenus:z==null?void 0:z.bindMenus,isMainPath:z==null?void 0:z.isMainPath,required:(z==null?void 0:z.required)??!1,relatedContents:z==null?void 0:z.relatedContents,mainKey:z==null?void 0:z.mainKey,relatedContents:z==null?void 0:z.relatedContents,functionName:z==null?void 0:z.functionName,functionRelatedWords:z==null?void 0:z.functionRelatedWords,calculatorFilter:z==null?void 0:z.calculatorFilter,isReadonly:z==null?void 0:z.isReadonly})}),f===""||!f||(da.value=(f==null?void 0:f.id)??"");let W=re.getColumnChild((Xe=R.cloneDeep(q.value))==null?void 0:Xe.filter(z=>(z==null?void 0:z.label)!=="操作"));na.value&&((qe=na.value)==null?void 0:qe.length)>0&&(na.value=(la=R.cloneDeep(na).value)==null?void 0:la.map(z=>{var qa;let za=(z==null?void 0:z.prop)||((qa=W==null?void 0:W.find(cl=>(cl==null?void 0:cl.label)===(z==null?void 0:z.label)))==null?void 0:qa.prop);return za&&(z.value=f[za]),z})),_e.value=na.value&&((ka=na.value)==null?void 0:ka.length)>0?re.getTableFormToForm(na.value):m,_e.value=((Na=_e.value)==null?void 0:Na.map(z=>({...z,disabled:(z==null?void 0:z.prop)==="disabled"?!0:z==null?void 0:z.disabled})))??_e.value;let A=[],ce=((tl=(ra=(Aa=d.itemData)==null?void 0:Aa.filter(z=>(z==null?void 0:z.key)==="filter"))==null?void 0:ra[0])==null?void 0:tl.contents)??"";if(ce=re.analyzeSplitToContent(ce,","),(ce==null?void 0:ce.length)>0&&(A=ce.flat()),(A==null?void 0:A.length)>0){let z=A==null?void 0:A.filter(Ca=>Ca==null?void 0:Ca.includes("@Type"));if(z=z==null?void 0:z[(z==null?void 0:z.length)-1],(z==null?void 0:z[(z==null?void 0:z.length)-1])===","&&(z=z==null?void 0:z.slice(0,(z==null?void 0:z.length)-1)),z){let Ca=(sl=(wa=z==null?void 0:z.replace("=",k))==null?void 0:wa.split(k))==null?void 0:sl[1];((Ee=Ca==null?void 0:Ca.trim())==null?void 0:Ee.toUpperCase())==="MANUAL"&&(d==null||d.index,_e.value=(Va=_e.value)==null?void 0:Va.map((fl,Yl)=>fl))}let za=(ba=_e.value)==null?void 0:ba.filter(Ca=>Ca==null?void 0:Ca.mainKey),qa;za==null||za.forEach(Ca=>{var Yl;if(qa!==void 0)return;let fl=Ca==null?void 0:Ca.menus;((Yl=za==null?void 0:za.filter(Wa=>Wa==null?void 0:Wa.mainKey))==null?void 0:Yl.length)>1&&(qa=fl,Ca==null||Ca.groups)});let cl=[],Ka=new Map;if(za==null||za.forEach(Ca=>{var fl,Yl,Wa,Bl,Ra,Ol,il,ml,zl,xl,Cr,vr,ur;if((fl=Ca==null?void 0:Ca.prop)!=null&&fl.includes(".")){let _l=[];Ka.get(((Wa=(Yl=Ca==null?void 0:Ca.prop)==null?void 0:Yl.split("."))==null?void 0:Wa[0])+(Ca!=null&&Ca.isMainPath?0:1)+((Bl=Ca==null?void 0:Ca.groups)==null?void 0:Bl[0]))&&(_l=Ka.get(((Ol=(Ra=Ca==null?void 0:Ca.prop)==null?void 0:Ra.split("."))==null?void 0:Ol[0])+(Ca!=null&&Ca.isMainPath?0:1)+((il=Ca==null?void 0:Ca.groups)==null?void 0:il[0]))),_l.push(Ca),Ka.set(((zl=(ml=Ca==null?void 0:Ca.prop)==null?void 0:ml.split("."))==null?void 0:zl[0])+(Ca!=null&&Ca.isMainPath?0:1)+((xl=Ca==null?void 0:Ca.groups)==null?void 0:xl[0]),_l)}else{let _l=[];Ka.get("normal"+(Ca!=null&&Ca.isMainPath?0:1)+((Cr=Ca==null?void 0:Ca.groups)==null?void 0:Cr[0]))&&(_l=Ka.get("normal"+(Ca!=null&&Ca.isMainPath?0:1)+((vr=Ca==null?void 0:Ca.groups)==null?void 0:vr[0]))),_l.push(Ca),Ka.set("normal"+(Ca!=null&&Ca.isMainPath?0:1)+((ur=Ca==null?void 0:Ca.groups)==null?void 0:ur[0]),_l)}}),cl=Array.from(Ka.values()),(cl==null?void 0:cl.length)>0)for(let Ca in cl){let fl=cl==null?void 0:cl[Ca];if((fl==null?void 0:fl.length)!==1){if((fl==null?void 0:fl.length)>1){let Yl=fl==null?void 0:fl.map(xl=>xl==null?void 0:xl.prop),Wa=fl==null?void 0:fl.map(xl=>xl==null?void 0:xl.label),Bl=fl==null?void 0:fl.map(xl=>xl==null?void 0:xl.value),Ra=(Ja=R.cloneDeep(fl))==null?void 0:Ja[0],Ol=(Oa=_e.value)==null?void 0:Oa.findIndex(xl=>(xl==null?void 0:xl.prop)===(Ra==null?void 0:Ra.prop)),il=(Le=_e.value)==null?void 0:Le.slice(0,Ol),ml=(je=_e.value)==null?void 0:je.slice(Ol,(ae=_e.value)==null?void 0:ae.length);Ra.label=Wa==null?void 0:Wa.join("·"),Ra.value=Bl==null?void 0:Bl.join(" "),Ra.value.trim()===""&&(Ra.value=""),Ra.prop=Yl==null?void 0:Yl.join("·");let zl=fl==null?void 0:fl.map(xl=>{var Cr;return(Cr=xl==null?void 0:xl.words)==null?void 0:Cr.join(".")});Ra.relatedWords=zl,Ra.usingType="parent",ml.unshift(Ra),_e.value=[...il,...ml],_e.value=(pa=_e.value)==null?void 0:pa.map(xl=>(Yl!=null&&Yl.find(Cr=>Cr===(xl==null?void 0:xl.prop))&&(xl.isFormColHidden=!0,xl.relatedWords=zl),xl))}}}}},ju=()=>{var m;const f=(m=i.value)==null?void 0:m.$el;f&&Fl.Sortable.create(f,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:L=>{var ce;const{oldIndex:$,newIndex:W}=L;if($===W)return;const A=Qn.value.splice($,1)[0];Qn.value.splice(W,0,A),q.value=(ce=q.value)==null?void 0:ce.slice().sort((de,K)=>{if(de.label==="操作")return 1;if(K.label==="操作")return-1;const Ce=Qn.value.findIndex(Xe=>Xe.label===de.label),Se=Qn.value.findIndex(Xe=>Xe.label===K.label);return Ce-Se})}})};e.onMounted(()=>{Ye.value=window.innerWidth-240*2,window.addEventListener("keydown",ci)});const Uu=()=>{e.nextTick(()=>{ju()})},qu=()=>{s.value=!0},mt=(f,m)=>{var $;if(!f&&!(f!=null&&f.children))return{contents:f,currentSelectContents:void 0};let L;return f.children=($=f.children)==null?void 0:$.map(W=>{var A,ce;if((W==null?void 0:W.id)===da.value){let de={};for(let K in W){let Ce=(A=m==null?void 0:m.find(Se=>(Se==null?void 0:Se.prop)===K))==null?void 0:A.label;Ce?de[K]=(ce=ql.value)==null?void 0:ce[Ce]:de[K]=W[K]??""}W=Object.assign(de,ql.value),L=W}else{let de=mt(W,m);W=de==null?void 0:de.contents,L=de==null?void 0:de.currentSelectContents}return W}),{contents:f,currentSelectContents:L}},Zt=(f,m)=>{let L,$;return f!=null&&f.find(W=>(W==null?void 0:W.id)===da.value)?L=f==null?void 0:f.map(W=>{var A,ce,de;if((W==null?void 0:W.id)===da.value){let K={};for(let Se in W){let Xe=(A=m==null?void 0:m.find(qe=>(qe==null?void 0:qe.prop)===Se))==null?void 0:A.label;Xe?K[Se]=((ce=ql.value)==null?void 0:ce[Xe])??"":K[Se]=W[Se]??""}let Ce=ql.value;for(let Se in K)(de=ql.value)!=null&&de[Se]||(Ce[Se]=(K==null?void 0:K[Se])??"");W=Ce,$=W}return W}):L=f==null?void 0:f.map(W=>{var A,ce,de,K;if((W==null?void 0:W.id)===da.value){let Ce={};for(let Se in W){let Xe=(A=m==null?void 0:m.find(qe=>(qe==null?void 0:qe.prop)===Se))==null?void 0:A.label;Xe?Ce[Se]=(ce=ql.value)==null?void 0:ce[Xe]:Ce[Se]=W[Se]??""}W=Object.assign(Ce,ql.value),$=W}else W=(de=mt(W,m))==null?void 0:de.contents,$=(K=mt(W,m))==null?void 0:K.currentSelectContents;return W}),{newContents:L,currentSelectContents:$}},Qt=(f,m,L)=>{var $,W;return f[m==null?void 0:m.prop]=L,typeof f.id=="number"&&(f.id=($=f.id)==null?void 0:$.toString()),f.children&&((W=f.children)==null?void 0:W.length)>0&&(f.children=f.children.map(Qt)),f},es=f=>{var L;const m=[];return m.push({...f}),f!=null&&f.children&&Array.isArray(f.children)&&((L=f.children)==null||L.forEach($=>{m.push(...es($))})),(m==null?void 0:m.length)>0?m==null?void 0:m.map($=>{const W={...$};return delete W.children,W}):[]},ho=["Pacific6000数据采集装置.通道号","通道号"],qi=f=>{if(!f)return"";const m=ho.map(L=>f==null?void 0:f[L]).find(L=>L!=null&&String(L).trim()!=="");return m==null?"":String(m).trim()},yt=async(f,m=void 0)=>{if(!f)return!1;try{const L=la=>{var ka,Na,Aa;return la?typeof(la==null?void 0:la.value)=="string"?la.value:((Aa=(Na=(ka=la==null?void 0:la._custom)==null?void 0:ka.value)==null?void 0:Na.value)==null?void 0:Aa.value)||"":""},$=Array.isArray(or.value)?or.value:[],W=L($.find(la=>(la==null?void 0:la.condition)==="child")),A=(ne.value||"").replace(/\/+$/,""),ce=W?`${A}/${W}`:A,de=await qr(ce||ne.value,!1),K=String(Pe.value||"").trim(),Ce=la=>String(la||"").trim(),Se=(la,ka=[],Na="")=>{if(!Array.isArray(la))return ka;for(const Aa of la){const ra=Ce((Aa==null?void 0:Aa.choiceName)||(Aa==null?void 0:Aa.name0)||Na);(Aa==null?void 0:Aa.comp)==="Table"&&(!K||ra===K)&&ka.push(Aa),Array.isArray(Aa==null?void 0:Aa.children)&&Se(Aa.children,ka,ra),Array.isArray(Aa==null?void 0:Aa.tab)&&Se(Aa.tab,ka,ra),Array.isArray(Aa==null?void 0:Aa.choice)&&Se(Aa.choice,ka,ra)}return ka},Xe=Se(de||[]),qe=String((d==null?void 0:d.compName)||"");return Xe.some(la=>{var Na,Aa;const ka=((Aa=(Na=la==null?void 0:la.compData)==null?void 0:Na.find(ra=>(ra==null?void 0:ra.key)==="tableContents"))==null?void 0:Aa.contents)||[];return!Array.isArray(ka)||ka.length===0?!1:ka.some(ra=>{if(String((la==null?void 0:la.name)||"")===qe&&(ra==null?void 0:ra.id)===m)return!1;const wa=qi(ra);return!!wa&&wa===f})})}catch{return(Ae.value||[]).some($=>{if(($==null?void 0:$.id)===m)return!1;const W=qi($);return!!W&&W===f})}},Wi=async(f=!0,m,L)=>{var Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl,wa,sl,Ee,Va,ba,Ja,Oa,Le,ae,je,pa,z,za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl;if(ql.value){const Ra=(Se=re.getColumnChild((Ce=R.cloneDeep(q.value))==null?void 0:Ce.filter(il=>(il==null?void 0:il.label)!=="操作")))==null?void 0:Se.filter(il=>(il==null?void 0:il.required)===!0);for(let il=0;il<((Ra==null?void 0:Ra.length)??0);il++){const ml=Ra[il],zl=ml==null?void 0:ml.prop,xl=(ml==null?void 0:ml.label)??zl,Cr=(Xe=ql.value)==null?void 0:Xe[zl];if(Cr===""||Cr===null||Cr===void 0||Array.isArray(Cr)&&Cr.length===0){Xa.ElMessage.error(`${xl}不能为空`);return}}const Ol=qi(ql.value);if(Ol&&await yt(Ol,da.value||void 0)){Xa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let $=re.getColumnChild((qe=R.cloneDeep(q.value))==null?void 0:qe.filter(Ra=>(Ra==null?void 0:Ra.label)!=="操作")),W,A=R.cloneDeep(Ae.value);if(!ql.value){ea.value=!1;return}if(da.value===""){sa.value++;let Ra;Ra={id:sa.value.toString()};try{Ra.sort=di(0,Ae.value||[])}catch{}Ra!=null&&Ra.children&&(Ra={...Ra,children:(la=Ra.children)==null?void 0:la.map(il=>Qt(il,m,L))});const Ol=Object.assign(ql.value,Ra);A.unshift(Ol),W=Ol}else A=(ka=Zt(A,$))==null?void 0:ka.newContents,W=(Na=Zt(A,$))==null?void 0:Na.currentSelectContents;const ce=(Aa=d.itemData)==null?void 0:Aa.filter(Ra=>(Ra==null?void 0:Ra.key)==="childTree")[0];if(((ra=ce==null?void 0:ce.contents)==null?void 0:ra.length)>0){ha.value="编辑";const Ra=[];A==null||A.forEach((ml,zl)=>{var Cr;let xl={};if(Array.isArray(ml)){let vr=[];ml==null||ml.filter(ur=>!(ur!=null&&ur.id)).forEach((ur,_l)=>{var ir,yr,Ml,gr,Tr,br,Ir;if((yr=(ir=Zl.value)==null?void 0:ir[_l])!=null&&yr.prop&&!Array.isArray(ur)){let sn={};sn[Zl.value[_l].column]=ur,F!=null&&F.value&&((Ml=F==null?void 0:F.value)==null?void 0:Ml.length)>0&&((gr=F==null?void 0:F.value)!=null&&gr.find(mr=>JSON.stringify(mr==null?void 0:mr[0])===JSON.stringify(sn)))&&(vr=(Tr=F==null?void 0:F.value)==null?void 0:Tr.find(mr=>JSON.stringify(mr==null?void 0:mr[0])===JSON.stringify(sn))),vr&&vr.length>0?xl[Zl.value[_l].prop]=vr!=null&&vr.find(mr=>{var Lr;return((Lr=Object.keys(mr))==null?void 0:Lr[0])===Zl.value[_l].column})?(br=vr==null?void 0:vr.find(mr=>{var Lr;return((Lr=Object.keys(mr))==null?void 0:Lr[0])===Zl.value[_l].column}))==null?void 0:br[Zl.value[_l].column]:ur:xl[Zl.value[_l].prop]=ur}else Array.isArray(ur)&&((Ir=Zl.value[_l])!=null&&Ir.prop?xl[Zl.value[_l].prop]=ur:xl.children=At(ur,Zl.value))})}else xl=ml;if(Array.isArray(ml)&&ml.some(vr=>vr==null?void 0:vr.id)){const vr=(Cr=ml==null?void 0:ml.find(ur=>ur.id))==null?void 0:Cr.id;Ra.push(Object.assign(xl,{id:co(vr)}))}else xl.id?Ra.push(xl):Ra.push(Object.assign(xl,{id:zl.toString()}))});const Ol=(Ae.value||[]).map(ml=>String(ml==null?void 0:ml.id)),il=Si(Ra,Ol);Ae.value=ns(il,ce,q.value)}ls(Ae.value),Sr.value=Ae.value;const de=B0(Sr.value,$l.value,A);let K=[];if(le.value?(K=(tl=R.cloneDeep(le).value.singleContent)==null?void 0:tl.filter(Ra=>(Ra==null?void 0:Ra.id)!==(W==null?void 0:W.id)),K.push(W)):K=[W],rr.value){const Ra={content:de,singleContent:((wa=ce==null?void 0:ce.contents)==null?void 0:wa.length)>0?K==null?void 0:K.flatMap(es):K,index:d==null?void 0:d.index,buttonName:"编辑",column:q.value,parentTableId:d==null?void 0:d.parentTableId};Ge.setCacheUpdatingData(Ra)}if((sl=q.value)==null||sl.forEach(Ra=>{(Ra==null?void 0:Ra.formType)==="Upload"&&(W[Ra.prop]=W[Ra.prop]===""?"{}":typeof W[Ra.prop]!="string"?JSON.stringify(W[Ra.prop]):W[Ra.prop])}),f){(Ja=(ba=(Va=(Ee=d.itemData)==null?void 0:Ee.find(il=>(il==null?void 0:il.key)==="filterAllType"))==null?void 0:Va.value)==null?void 0:ba.find(il=>(il==null?void 0:il.value)==="onConditionContents"))==null||Ja.content;let Ra=(Oa=d.itemData)==null?void 0:Oa.filter(il=>(il==null?void 0:il.key)==="filterAllType");Ra=Array.from(new Map(Ra.filter(Boolean).map((il,ml)=>[il.value,{...il,_idx:ml}])).values()).sort((il,ml)=>il._idx-ml._idx).map(({_idx:il,...ml})=>ml),Ra=(Le=Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1])==null?void 0:Le.value;const Ol={fixContent:[W],buttonName:ha.value,relatedContents:d==null?void 0:d.related,columns:q.value,name:d==null?void 0:d.groupNames};Ge.setTableLoading(d==null?void 0:d.index),ea.value=!1,ql.value=void 0,U("change",Ol)}if((pa=(je=(ae=_e.value)==null?void 0:ae[0])==null?void 0:je.optionUrl)!=null&&pa.menuId){ea.value=!1;let Ra=(z=d.itemData)==null?void 0:z.filter(Ol=>(Ol==null?void 0:Ol.key)==="filterAllType");if((Ra==null?void 0:Ra.length)>0){let Ol=Ra==null?void 0:Ra.map(zl=>zl==null?void 0:zl.value),il=(cl=(qa=(za=Ol.flat().find(zl=>{var xl;return(xl=zl==null?void 0:zl.content)==null?void 0:xl.includes("@Num")}))==null?void 0:za.content)==null?void 0:qa.split(":"))==null?void 0:cl[1];((fl=(Ca=(Ka=Ol.flat().find(zl=>{var xl;return(xl=zl==null?void 0:zl.content)==null?void 0:xl.includes("@Type:")}))==null?void 0:Ka.content)==null?void 0:Ca.split(":"))==null?void 0:fl[1])!=="Manual"&&(il=parseInt(il),Ae.value=(Bl=Ae.value)==null?void 0:Bl.slice(((Yl=Ae.value)==null?void 0:Yl.length)-il,(Wa=Ae.value)==null?void 0:Wa.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",ci),q.value=[],Ae.value=[],ze.value=[],I.value=[],na.value=[],fa.value=[],Ie.value=[],Je.value=[],_e.value=[],Nr.value=[],i.value=null,nn.value=""});const vo=async(f,m,L)=>{var la,ka,Na,Aa,ra,tl,wa,sl,Ee,Va,ba,Ja,Oa;Br.value=(L==null?void 0:L.prop)??(L==null?void 0:L.property);const $=R.cloneDeep(d.itemData),W=((la=$==null?void 0:$.find(Le=>(Le==null?void 0:Le.key)==="header"))==null?void 0:la.contents)??[];let A=W==null?void 0:W.find((Le,ae)=>{var je,pa,z;return(Le==null?void 0:Le.prop)===Br.value||(Le==null?void 0:Le.label)===Br.value||(ae==null?void 0:ae.toString())===((z=(pa=(je=Br.value)==null?void 0:je.split("a"))==null?void 0:pa[1])==null?void 0:z.toString())});const ce=re.getColumnChild((ka=R.cloneDeep(q.value))==null?void 0:ka.filter(Le=>(Le==null?void 0:Le.label)!=="操作"));if(A||(A=ce==null?void 0:ce.find(Le=>(Le==null?void 0:Le.prop)===Br.value||(Le==null?void 0:Le.label)===Br.value)),A&&!((Na=A==null?void 0:A.menus)!=null&&Na.length)&&!((Aa=A==null?void 0:A.groups)!=null&&Aa.length)&&!((ra=A==null?void 0:A.words)!=null&&ra.length)){const Le=(tl=_e.value)==null?void 0:tl.find(ae=>(ae==null?void 0:ae.prop)===Br.value);Le&&(A={...A,menus:(Le==null?void 0:Le.menus)??(A==null?void 0:A.menus),groups:(Le==null?void 0:Le.groups)??(A==null?void 0:A.groups),words:(Le==null?void 0:Le.words)??(A==null?void 0:A.words),bindMenus:(Le==null?void 0:Le.bindMenus)??(A==null?void 0:A.bindMenus),isMainPath:(Le==null?void 0:Le.isMainPath)??(A==null?void 0:A.isMainPath),relatedContents:(Le==null?void 0:Le.relatedContents)??(A==null?void 0:A.relatedContents),endChildMenu:(Le==null?void 0:Le.endChildMenu)??(A==null?void 0:A.endChildMenu)})}if(A&&((wa=_e==null?void 0:_e.value)==null||wa.forEach(Le=>{var ae,je,pa,z,za;(Le==null?void 0:Le.prop)===(A==null?void 0:A.prop)&&(Le!=null&&Le.endChildMenu)&&((ae=A==null?void 0:A.prop)!=null&&ae.includes(".")&&((pa=(je=A==null?void 0:A.prop)==null?void 0:je.split("."))==null?void 0:pa[0])!==((za=(z=Le==null?void 0:Le.prop)==null?void 0:z.split("."))==null?void 0:za[0])?A.endChildMenu=Le==null?void 0:Le.value:A.endChildMenu=Le==null?void 0:Le.endChildMenu)})),!A)return;const de=Br.value,K=(sl=Ae.value)==null?void 0:sl.findIndex(Le=>(Le==null?void 0:Le.id)===(m==null?void 0:m.id));K!==-1&&de&&(Ae.value[K]={...Ae.value[K],[de]:f});const Ce=Le=>{Array.isArray(Le)&&Le.forEach(ae=>{Array.isArray(ae==null?void 0:ae.allSelectionContents)&&ae.allSelectionContents.length>0&&(ae.contactValue=Ae.value[K]??m),Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0&&Ce(ae.children)})};Ce(q.value),A.value=f,A.endChildMenu=A.endChildMenu||"";let Se=A!=null&&A.isMainPath&&(A!=null&&A.mainKey)?A==null?void 0:A.value:"";const Xe=Le=>{Array.isArray(Le)&&Le.forEach(ae=>{var pa,z;if(((ae==null?void 0:ae.type)==="Select"||(ae==null?void 0:ae.formType)&&ae.formType.toUpperCase()==="SELECT"||(ae==null?void 0:ae.columnType)&&ae.columnType.toUpperCase()==="SELECT")&&Array.isArray(ae==null?void 0:ae.menus)&&ae.menus.length>0&&ae.menus[ae.menus.length-1]===""&&(A!=null&&A.isMainPath)&&(A!=null&&A.mainKey)){const za=(pa=ae==null?void 0:ae.prop)!=null&&pa.includes(".")?ae.prop.split(".")[0]:null,qa=(z=A==null?void 0:A.prop)!=null&&z.includes(".")?A.prop.split(".")[0]:null;(!za||!qa||za===qa)&&(ae.endChildMenu=Se)}Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0&&Xe(ae.children)})};if(Xe(q.value),!!(A!=null&&A.mainKey)&&Array.isArray(A==null?void 0:A.menus)&&(A==null?void 0:A.menus.length)>0&&(A!=null&&A.value)&&(A==null?void 0:A.value)!==""){let Le=A!=null&&A.relatedContents&&((Ee=A==null?void 0:A.relatedContents)==null?void 0:Ee.length)>0?(Va=A==null?void 0:A.relatedContents)==null?void 0:Va.find(ae=>{var je,pa,z,za;return(ae==null?void 0:ae[(za=(je=A==null?void 0:A.prop)==null?void 0:je.split("."))==null?void 0:za[((z=(pa=A==null?void 0:A.prop)==null?void 0:pa.split("."))==null?void 0:z.length)-1]])===(A==null?void 0:A.value)}):await zs(A);if(Le){const ae={...m};ce==null||ce.forEach(je=>{var pa,z,za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl,Ra,Ol,il,ml,zl;(je==null?void 0:je.prop)!==(A==null?void 0:A.prop)&&(A!=null&&A.relatedContents&&((pa=A==null?void 0:A.relatedContents)==null?void 0:pa.length)>0?(z=je==null?void 0:je.prop)!=null&&z.includes(".")&&((qa=(za=je==null?void 0:je.prop)==null?void 0:za.split("."))==null?void 0:qa[0])===((Ka=(cl=A==null?void 0:A.prop)==null?void 0:cl.split("."))==null?void 0:Ka[0])?ae[je.prop]=Le[(Wa=(Ca=je==null?void 0:je.prop)==null?void 0:Ca.split("."))==null?void 0:Wa[((Yl=(fl=je==null?void 0:je.prop)==null?void 0:fl.split("."))==null?void 0:Yl.length)-1]]??ae[je.prop]:ae[je.prop]=(Le==null?void 0:Le[je.prop])??ae[je.prop]:re.same((A==null?void 0:A.menus)??[],(je==null?void 0:je.menus)??[])&&re.same((A==null?void 0:A.groups)??[],(je==null?void 0:je.groups)??[])&&!re.same((A==null?void 0:A.words)??[],(je==null?void 0:je.words)??[])?(Bl=je==null?void 0:je.prop)!=null&&Bl.includes(".")&&((Ol=(Ra=je==null?void 0:je.prop)==null?void 0:Ra.split("."))==null?void 0:Ol[0])!==((ml=(il=A==null?void 0:A.prop)==null?void 0:il.split("."))==null?void 0:ml[0])||(ae[je.prop]=(Le==null?void 0:Le[(zl=je==null?void 0:je.words)==null?void 0:zl.join(".")])??(Le==null?void 0:Le[je.prop])??ae[je.prop]):(!(je!=null&&je.isMainPath)&&re.same((A==null?void 0:A.bindMenus)??[],(je==null?void 0:je.bindMenus)??[]),ae[je.prop]=(Le==null?void 0:Le[je.prop])??ae[je.prop]))}),Ae.value=(ba=R.cloneDeep(Ae.value))==null?void 0:ba.map(je=>(je==null?void 0:je.id)===(m==null?void 0:m.id)?{...ae,id:je==null?void 0:je.id}:je)}}if((Ja=A==null?void 0:A.optionUrl)!=null&&Ja.menuSelect){let Le="";ce==null||ce.forEach(pa=>{var z,za,qa,cl,Ka;Le===""&&((qa=(za=(z=pa==null?void 0:pa.optionUrl)==null?void 0:z.groupSelect)==null?void 0:za[1])!=null&&qa.includes("["))&&(Le=(Ka=(cl=pa==null?void 0:pa.optionUrl)==null?void 0:cl.groupSelect)==null?void 0:Ka[1])});let ae=await zt(A),je;if(ae==null||ae.forEach(pa=>{var z,za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl;Le===((za=(z=A==null?void 0:A.optionUrl)==null?void 0:z.groupSelect)==null?void 0:za[1])&&((Ka=(cl=(qa=A==null?void 0:A.optionUrl)==null?void 0:qa.groupSelect)==null?void 0:cl[1])!=null&&Ka.includes("["))&&((Bl=R.cloneDeep(pa))==null?void 0:Bl[(Wa=(Yl=(fl=(Ca=A==null?void 0:A.optionUrl)==null?void 0:Ca.groupSelect)==null?void 0:fl[1])==null?void 0:Yl.replaceAll("[",""))==null?void 0:Wa.replaceAll("]","")])===(A==null?void 0:A.value)&&(je=pa)}),je){const pa={...m};ce==null||ce.forEach(z=>{var za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl,Ra,Ol;(je!=null&&je[z==null?void 0:z.label]||je!=null&&je[(Ka=(cl=(qa=(za=z==null?void 0:z.optionUrl)==null?void 0:za.groupSelect)==null?void 0:qa[1])==null?void 0:cl.replaceAll("[",""))==null?void 0:Ka.replaceAll("]","")])&&((Yl=(fl=(Ca=z==null?void 0:z.optionUrl)==null?void 0:Ca.groupSelect)==null?void 0:fl[1])!=null&&Yl.includes("["))&&(pa[z.prop]=(je==null?void 0:je[z==null?void 0:z.label])||(je==null?void 0:je[(Ol=(Ra=(Bl=(Wa=z==null?void 0:z.optionUrl)==null?void 0:Wa.groupSelect)==null?void 0:Bl[1])==null?void 0:Ra.replaceAll("[",""))==null?void 0:Ol.replaceAll("]","")]))}),Ae.value=(Oa=R.cloneDeep(Ae.value))==null?void 0:Oa.map(z=>(z==null?void 0:z.id)===(m==null?void 0:m.id)?{...pa,id:z==null?void 0:z.id}:z)}}},Wu=async f=>{var la,ka,Na,Aa,ra,tl,wa,sl,Ee,Va,ba,Ja,Oa,Le;if(!f)return;const m=R.cloneDeep(ql.value||{});ql.value=f;const L=qi(m),$=qi(ql.value);if($&&$!==L&&await yt($,da.value||void 0)){Xa.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ho.forEach(je=>{if(Object.prototype.hasOwnProperty.call(ql.value||{},je)||Object.prototype.hasOwnProperty.call(m||{},je)){const pa=(m==null?void 0:m[je])??"";ql.value[je]=pa,f[je]=pa}}),_e.value=(_e.value||[]).map(je=>{if(!(je!=null&&je.prop)||!ho.includes(je.prop))return je;const pa=(m==null?void 0:m[je.prop])??"";return{...je,value:pa,selectValue:pa===""?[]:[pa]}});return}let W=R.cloneDeep(d.itemData);W==null||W.map(ae=>{var je,pa,z,za;return(ae==null?void 0:ae.key)==="header"&&(Array.isArray((je=ae.contents)==null?void 0:je[0])?ae.contents=(z=re.getColumnChild((pa=ae.contents)==null?void 0:pa[0]))==null?void 0:z.map((qa,cl)=>{var Ka,Ca,fl,Yl,Wa,Bl;return((fl=(Ca=(Ka=_e.value)==null?void 0:Ka.find(Ra=>(Ra==null?void 0:Ra.prop)===(qa==null?void 0:qa.prop)))==null?void 0:Ca.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray((Yl=Object.values(f))==null?void 0:Yl[cl])?qa.value=[(Wa=Object.values(f))==null?void 0:Wa[cl]]:qa.value=(Bl=Object.values(f))==null?void 0:Bl[cl],qa}):ae.contents=(za=ae.contents)==null?void 0:za.map((qa,cl)=>{var Ka,Ca,fl,Yl,Wa,Bl;return((fl=(Ca=(Ka=_e.value)==null?void 0:Ka.find(Ra=>(Ra==null?void 0:Ra.prop)===(qa==null?void 0:qa.prop)))==null?void 0:Ca.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray((Yl=Object.values(f))==null?void 0:Yl[cl])?qa.value=[(Wa=Object.values(f))==null?void 0:Wa[cl]]:qa.value=(Bl=Object.values(f))==null?void 0:Bl[cl],qa})),ae});let A=_e.value,ce=(la=W==null?void 0:W.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:la.contents;if(Br.value||(A=A==null?void 0:A.map(ae=>{var je;return ae.value=ae.value??((je=ce==null?void 0:ce.find((pa,z)=>(pa==null?void 0:pa.prop)===(ae==null?void 0:ae.name)))==null?void 0:je.value),ae})),!gn.value)return;let de=R.cloneDeep(Br.value);(ka=Br.value)!=null&&ka.includes("·")&&(Br.value=(Aa=(Na=Br.value)==null?void 0:Na.split("·"))==null?void 0:Aa[0]);let K=(tl=(ra=W==null?void 0:W.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:ra.contents)==null?void 0:tl.find((ae,je)=>(ae==null?void 0:ae.prop)===Br.value);(wa=_e==null?void 0:_e.value)==null||wa.forEach(ae=>{var je,pa,z,za,qa,cl,Ka,Ca,fl;(ae==null?void 0:ae.prop)===(K==null?void 0:K.prop)&&(ae!=null&&ae.endChildMenu)&&((je=K==null?void 0:K.prop)!=null&&je.includes(".")&&((z=(pa=K==null?void 0:K.prop)==null?void 0:pa.split("."))==null?void 0:z[0])!==((qa=(za=ae==null?void 0:ae.prop)==null?void 0:za.split("."))==null?void 0:qa[0])?K.endChildMenu=(Ka=(cl=ae==null?void 0:ae.value)==null?void 0:cl.split(" "))==null?void 0:Ka[0]:K.endChildMenu=(fl=(Ca=ae==null?void 0:ae.endChildMenu)==null?void 0:Ca.split(" "))==null?void 0:fl[0])});let Ce=K!=null&&K.isMainPath&&(K!=null&&K.mainKey)?K==null?void 0:K.value:"",Se=A,Xe=ee.value;if(Xe!=null&&Xe.find(ae=>(K==null?void 0:K.prop)===(ae==null?void 0:ae.key))&&(Xe=Xe==null?void 0:Xe.filter(ae=>(K==null?void 0:K.prop)!==(ae==null?void 0:ae.key))),Xe!=null&&Xe.find(ae=>de===(ae==null?void 0:ae.key))&&(Xe=Xe==null?void 0:Xe.filter(ae=>de!==(ae==null?void 0:ae.key))),(K==null?void 0:K.formType)==="Select"?Se=Se==null?void 0:Se.map(ae=>{var je,pa,z,za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl,Ra,Ol,il,ml;return(ae==null?void 0:ae.type)==="Select"&&(((je=ae==null?void 0:ae.allSelectionContents)==null?void 0:je.length)>0&&(ae.contactValue=f),((K==null?void 0:K.prop)===(ae==null?void 0:ae.prop)||de===(ae==null?void 0:ae.prop))&&K&&(Array.isArray(K.value)&&((pa=K.value)==null?void 0:pa.length)>0&&((z=K.value)!=null&&z.every(zl=>typeof zl=="string"))?(Xe.push({key:ae==null?void 0:ae.prop,value:[(qa=K.value)==null?void 0:qa[((za=K.value)==null?void 0:za.length)-1]]}),ae.selectValue=(cl=Xe==null?void 0:Xe.find(zl=>(zl==null?void 0:zl.key)===(ae==null?void 0:ae.prop)))==null?void 0:cl.value):Array.isArray(K.value)&&((Ka=K.value)==null?void 0:Ka.length)===0?(Xe=[],ae.selectValue=[],f[ae==null?void 0:ae.prop]=""):Array.isArray(ae.value)&&Xe.push({key:ae==null?void 0:ae.prop,value:[(Ca=ae.value)==null?void 0:Ca[(ae==null?void 0:ae.length)-1]]})),((Yl=ae==null?void 0:ae.menus)==null?void 0:Yl[((fl=ae==null?void 0:ae.menus)==null?void 0:fl.length)-1])===""&&(K!=null&&K.isMainPath)&&(K!=null&&K.mainKey)&&((Wa=ae==null?void 0:ae.prop)!=null&&Wa.includes(".")&&((Ra=(Bl=ae==null?void 0:ae.prop)==null?void 0:Bl.split("."))==null?void 0:Ra[0])!==((il=(Ol=K==null?void 0:K.prop)==null?void 0:Ol.split("."))==null?void 0:il[0])||(ae.endChildMenu=(ml=Ce==null?void 0:Ce.split(" "))==null?void 0:ml[0]))),ae.value=(f==null?void 0:f[ae==null?void 0:ae.prop])??(ae==null?void 0:ae.value),ae}):(K==null?void 0:K.formType)!=="Input"&&(Se=Se==null?void 0:Se.map(ae=>(ae.value=(f==null?void 0:f[ae==null?void 0:ae.prop])??(ae==null?void 0:ae.value),ae))),ee.value=Xe,Se!=null&&Se.some(ae=>(ae==null?void 0:ae.functionName)&&(ae==null?void 0:ae.functionName)!=="")){let ae=await Nt([f],q==null?void 0:q.value,"Auto",Ae.value),je=[];(sl=Se==null?void 0:Se.filter(z=>(z==null?void 0:z.functionName)&&(z==null?void 0:z.functionName)!==""))==null||sl.forEach(z=>{var za;((za=z==null?void 0:z.functionRelatedWords)==null?void 0:za.length)>0&&(je=[...je,...z==null?void 0:z.functionRelatedWords])}),je=je==null?void 0:je.filter(z=>(z==null?void 0:z[0])!=="@");let pa=[];for(let z in ae==null?void 0:ae[0])je!=null&&je.find(za=>z===za||(z==null?void 0:z.includes("."+za)))&&pa.push(((Ee=ae==null?void 0:ae[0])==null?void 0:Ee[z])!=="");(ae==null?void 0:ae.length)>0&&pa.every(z=>z)&&(Se=Se==null?void 0:Se.map(z=>{var za;return z.value=((za=ae==null?void 0:ae[0])==null?void 0:za[z==null?void 0:z.prop])??z.value,z})),ql.value=ae==null?void 0:ae[0]}if(_e.value=Se,K=Object.assign({},K??{},{relatedWords:(ba=(Va=_e==null?void 0:_e.value)==null?void 0:Va.find(ae=>(ae==null?void 0:ae.prop)===(K==null?void 0:K.prop)))==null?void 0:ba.relatedWords}),(K==null?void 0:K.mainKey)&&(K!=null&&K.value)&&(K==null?void 0:K.value)!==""){let ae=K!=null&&K.relatedContents&&((Ja=K==null?void 0:K.relatedContents)==null?void 0:Ja.length)>0?(Oa=K==null?void 0:K.relatedContents)==null?void 0:Oa.find(je=>{var pa,z,za,qa;return(je==null?void 0:je[(qa=(pa=K==null?void 0:K.prop)==null?void 0:pa.split("."))==null?void 0:qa[((za=(z=K==null?void 0:K.prop)==null?void 0:z.split("."))==null?void 0:za.length)-1]])===(K==null?void 0:K.value)}):await zs(K);if(ae&&JSON.stringify(ae)!=="{}"){let je=Se;je=je==null?void 0:je.map(z=>{var za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl,Ra,Ol,il,ml,zl,xl,Cr,vr,ur,_l,ir,yr;if((K==null?void 0:K.prop)===(z==null?void 0:z.prop))z.value=(ae==null?void 0:ae[(za=z==null?void 0:z.words)==null?void 0:za.join(".")])??(ae==null?void 0:ae[z==null?void 0:z.prop])??ae[(Ca=(qa=z==null?void 0:z.prop)==null?void 0:qa.split("."))==null?void 0:Ca[((Ka=(cl=z==null?void 0:z.prop)==null?void 0:cl.split("."))==null?void 0:Ka.length)-1]];else if(K!=null&&K.relatedContents&&((fl=K==null?void 0:K.relatedContents)==null?void 0:fl.length)>0)z.value=(Yl=z==null?void 0:z.prop)!=null&&Yl.includes(".")&&((Bl=(Wa=z==null?void 0:z.prop)==null?void 0:Wa.split("."))==null?void 0:Bl[0])===((Ol=(Ra=K==null?void 0:K.prop)==null?void 0:Ra.split("."))==null?void 0:Ol[0])?ae[(xl=(il=z==null?void 0:z.prop)==null?void 0:il.split("."))==null?void 0:xl[((zl=(ml=z==null?void 0:z.prop)==null?void 0:ml.split("."))==null?void 0:zl.length)-1]]:(ae==null?void 0:ae[z==null?void 0:z.prop])??(z==null?void 0:z.value);else if(re.same((K==null?void 0:K.menus)??[],(z==null?void 0:z.menus)??[])&&re.same((K==null?void 0:K.groups)??[],(z==null?void 0:z.groups)??[])&&!re.same((K==null?void 0:K.words)??[],(z==null?void 0:z.words)??[]))if((Cr=z==null?void 0:z.prop)!=null&&Cr.includes(".")&&((ur=(vr=z==null?void 0:z.prop)==null?void 0:vr.split("."))==null?void 0:ur[0])!==((ir=(_l=K==null?void 0:K.prop)==null?void 0:_l.split("."))==null?void 0:ir[0])){let Ml=Object.keys(ae);Ml=Ml==null?void 0:Ml.find(gr=>{var Tr;return gr==null?void 0:gr.includes("."+((Tr=z==null?void 0:z.words)==null?void 0:Tr.join(".")))}),z.value=(ae==null?void 0:ae[Ml])??(ae==null?void 0:ae[z==null?void 0:z.prop])??z.value}else{let Ml=Object.keys(ae);Ml=Ml==null?void 0:Ml.find(gr=>{var Tr;return gr==null?void 0:gr.includes("."+((Tr=z==null?void 0:z.words)==null?void 0:Tr.join(".")))}),z.value=(ae==null?void 0:ae[(yr=z==null?void 0:z.words)==null?void 0:yr.join(".")])??(ae==null?void 0:ae[Ml])??(ae==null?void 0:ae[z==null?void 0:z.prop])??z.value}else!(z!=null&&z.isMainPath)&&re.same((K==null?void 0:K.bindMenus)??[],(z==null?void 0:z.bindMenus)??[]),z.value=(ae==null?void 0:ae[z==null?void 0:z.prop])??z.value;return z}),_e.value=je;let pa={};(Le=_e.value)==null||Le.forEach(z=>{pa[z.prop]=z==null?void 0:z.value}),ql.value=pa}}gn.value=!0,j.value=!1},Gu=f=>f?(f==null?void 0:f.toUpperCase())==="INPUT"?"TEXTAREA":f:"TEXTAREA",Ku=f=>{var A,ce;const m=(ce=(A=na.value)==null?void 0:A.find(de=>(de==null?void 0:de.label)===(f==null?void 0:f.label)))==null?void 0:ce.multiple,L=f==null?void 0:f.prop;if((f==null?void 0:f.formType)!="Select")return;Ae.value.forEach(de=>{const K=de==null?void 0:de[L];m&&No.isString(K)&&(de[L]=[K]),!m&&!No.isString(K)&&(de[L]="")})},as=(f,m)=>{var L;return m==null||m.forEach($=>{f[$==null?void 0:$.prop]=$==null?void 0:$.value}),f.children&&((L=f.children)==null?void 0:L.length)>0&&(f.children=f.children.map($=>as($,m))),f},gt=f=>{var L,$,W,A,ce,de;Ui("");const m=(L=_e.value)==null?void 0:L.reduce((K,Ce)=>(K[Ce.name]=Ce.value,K),{});if((($=Object.keys(m))==null?void 0:$.length)>0){ql.value=m,da.value="",sa.value=(W=Ae.value)==null?void 0:W.length,Je.value=(A=Ne.value)==null?void 0:A.filter(Ce=>(Ce==null?void 0:Ce.label)!=="新增");const K=(de=(ce=ze.value)==null?void 0:ce.filter(Ce=>(Ce==null?void 0:Ce.label)!=="操作"))==null?void 0:de.map(Ce=>{var Xe,qe,la;const Se=(qe=(Xe=na.value)==null?void 0:Xe.find(ka=>(ka==null?void 0:ka.label)===(Ce==null?void 0:Ce.label)))==null?void 0:qe.multiple;return Ku(Ce),{...Ce,contents:(Ce==null?void 0:Ce.options)??[],optionUrl:Ce!=null&&Ce.formMenuSelect&&((la=Ce==null?void 0:Ce.formMenuSelect)==null?void 0:la.length)>0?{groupSelect:Ce==null?void 0:Ce.groupSelect,menuSelect:Ce==null?void 0:Ce.formMenuSelect,selectRelateType:"",type:Ce==null?void 0:Ce.formType,multiple:Se}:null}});q.value=K==null?void 0:K.map(Ce=>as(Ce,[{prop:"type",value:"edit"},{prop:"columnType",value:Gu(Ce==null?void 0:Ce.formType)||(Ce==null?void 0:Ce.columnType)}])),f==="createClick"&&(ha.value="新增",Wi(!0))}},Ci={START:"开始时间",END:"结束时间",HOURS:"工时"},Yu=(f,m)=>Number(R.dayjs(m).diff(R.dayjs(f),"day",!0).toFixed(1)),ls=f=>{var A;const m=d.itemData,L=(A=m==null?void 0:m.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:A.contents,$=new Map;return L==null||L.forEach((ce,de)=>{const{label:K}=ce;$.set(K,de)}),!$.has(Ci.START)||!$.has(Ci.END)||!$.has(Ci.HOURS)?f:f==null?void 0:f.map(ce=>{const de=ce==null?void 0:ce[Ci.START],K=ce==null?void 0:ce[Ci.END],Ce=Yu(de,K);return de&&K&&(ce[Ci.HOURS]=`${Ce}天`),ce})},rs=(f,m,L=0)=>{if(L>((m==null?void 0:m.length)??""))return f;const $=m==null?void 0:m[L],W=new Map;for(const ce of f){const de=ce[$];W.has(de)||W.set(de,[]),W.get(de)&&W.get(de).push(ce)}const A=[];for(const[ce,de]of W){const[K,...Ce]=de,Se={...K};L+1===((m==null?void 0:m.length)??"")?Se.children=de==null?void 0:de.map(Xe=>(Xe.level=R.cloneDeep(L)+1,Xe)).filter((Xe,qe)=>qe!==0):Ce.length>0&&(Se.children=rs(Ce,m,L+1)),Se.level=L,A.push(Se)}return A},ns=(f,m,L)=>{var W;if(!(m!=null&&m.contents)||((W=m==null?void 0:m.contents)==null?void 0:W.length)===0)return f;let $=[];return $=rs(f,m==null?void 0:m.contents,0),$},is=async(f,m)=>{var tl,wa,sl,Ee,Va,ba,Ja,Oa,Le,ae,je,pa,z,za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl,Ra,Ol,il,ml,zl,xl,Cr,vr,ur,_l,ir,yr,Ml,gr,Tr,br,Ir,sn,mr,Lr,Hr,ts,ss,cs,us,ds,ps;const L=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="header");f==null||f.filter(ta=>(ta==null?void 0:ta.key)==="tableIndexColumn")[0];const $=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="childTree")[0];let W=!0;if((sl=(wa=(tl=f==null?void 0:f.find(ta=>(ta==null?void 0:ta.key)==="filterAllType"))==null?void 0:tl.value)==null?void 0:wa.find(ta=>(ta==null?void 0:ta.value)==="onPamButtonContents"))!=null&&sl.content){let ta=(ba=(Va=(Ee=f==null?void 0:f.find(Al=>(Al==null?void 0:Al.key)==="filterAllType"))==null?void 0:Ee.value)==null?void 0:Va.find(Al=>(Al==null?void 0:Al.value)==="onPamButtonContents"))==null?void 0:ba.content;ta=(Ja=ta==null?void 0:ta.split(":"))==null?void 0:Ja[1],ta=(Oa=ta.slice(1,(ta==null?void 0:ta.length)-1))==null?void 0:Oa.split(","),W=!!(ta!=null&&ta.find(Al=>Al==="操作"))}const A=f==null?void 0:f.find(ta=>(ta==null?void 0:ta.key)==="page"),ce=f==null?void 0:f.find(ta=>(ta==null?void 0:ta.key)==="rowButton"),de=f==null?void 0:f.find(ta=>(ta==null?void 0:ta.key)==="extraButton"),K=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="tableContents"),Ce=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="bottomButton");let Se=[],Xe=(Le=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="filter"))==null?void 0:Le[0];Xe=(Xe==null?void 0:Xe.contents)??"",Xe=q0(Xe),(Xe==null?void 0:Xe.length)>0&&(u.value=Xe);const qe=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="tableIndex");na.value=(je=(ae=f==null?void 0:f.filter(ta=>(ta==null?void 0:ta.key)==="tableToForm"))==null?void 0:ae[0])==null?void 0:je.contents,He.value=(A==null?void 0:A.contents)??!0;let la=[];lr.value===""?la=L==null?void 0:L[0]:la=(L==null?void 0:L.find(ta=>(ta==null?void 0:ta.selectLabel)==="("+lr.value+")"))??(L==null?void 0:L.find(ta=>!(ta!=null&&ta.selectLabel)));let ka=[];lr.value===""?ka=qe==null?void 0:qe[0]:ka=(qe==null?void 0:qe.find(ta=>(ta==null?void 0:ta.selectLabel)==="("+lr.value+")"))??(qe==null?void 0:qe.find(ta=>!(ta!=null&&ta.selectLabel)));let Na=[],Aa=[];if(((pa=la==null?void 0:la.contents)==null?void 0:pa.length)>0){let ta=[],Al=la==null?void 0:la.contents;if(Array.isArray(Al==null?void 0:Al[0])&&((z=Al==null?void 0:Al[0])!=null&&z.every(Za=>!(Za!=null&&Za.children)))&&(Al=Al==null?void 0:Al[0]),Al.some(Za=>Array.isArray(Za)&&(Za==null?void 0:Za.find(Ze=>Ze.children))))ta=(za=re.getGradeColumns(Al,W))==null?void 0:za[0],ta!=null&&ta.find(Za=>(Za==null?void 0:Za.label)==="操作")||ta.push({label:"操作",prop:"operate",type:"operate"});else{let Za=Al.some(Ze=>Array.isArray(Ze))?Al==null?void 0:Al[0]:Al;Za!=null&&Za.find(Ze=>(Ze==null?void 0:Ze.label)==="操作")||Za.push({label:"操作",prop:"operate",type:"operate"}),Za==null||Za.forEach((Ze,kr)=>{var an,tn,Gr,hi,Ti,Bi,Rr,$n,ai,Di,En,li,fs,hs,vs,ms,ys,gs,bs,ks,xs;if((tn=(an=ne.value)==null?void 0:an.split("/"))==null||tn.forEach(wr=>{var Or,Un,ws;wr!==""&&((ws=(Un=(Or=wr==null?void 0:wr.split(M+"updateLoading"))==null?void 0:Or[0])==null?void 0:Un.split(M+"loading"))==null||ws[0])}),Ze!=null&&Ze.methodContent){let wr=(Ti=(hi=(Gr=Ze==null?void 0:Ze.methodContent)==null?void 0:Gr.replace("@","%%#"))==null?void 0:hi.split("%%#"))==null?void 0:Ti[1];if(wr=wr==null?void 0:wr.slice(0,(wr==null?void 0:wr.length)-1),wr=re.contentTransArrayToAllNoExtra(wr??"",","),(Bi=wr==null?void 0:wr.find(Or=>Or==null?void 0:Or.includes("@Button")))!=null&&Bi.includes("Prop")&&((Rr=wr==null?void 0:wr.find(Or=>Or==null?void 0:Or.includes("Type")))!=null&&Rr.includes("Manual"))){let Or=(ai=($n=wr==null?void 0:wr.find(Un=>Un==null?void 0:Un.includes("@Button")))==null?void 0:$n.split(":"))==null?void 0:ai[1];Or=((li=(En=(Di=Or==null?void 0:Or.replaceAll("[",""))==null?void 0:Di.replaceAll("]",""))==null?void 0:En.split(","))==null?void 0:li[1])??"算法执行",Na.push(Or)}else if((fs=wr==null?void 0:wr.find(Or=>Or==null?void 0:Or.includes("@Button")))!=null&&fs.includes("Row")&&((hs=wr==null?void 0:wr.find(Or=>Or==null?void 0:Or.includes("Type")))!=null&&hs.includes("Manual"))){let Or=(ms=(vs=wr==null?void 0:wr.find(Un=>Un==null?void 0:Un.includes("@Button")))==null?void 0:vs.split(":"))==null?void 0:ms[1];Or=((bs=(gs=(ys=Or==null?void 0:Or.replaceAll("[",""))==null?void 0:ys.replaceAll("]",""))==null?void 0:gs.split(","))==null?void 0:bs[1])??"算法执行",Aa.push(Or)}}(ks=na.value)==null||ks.find(wr=>(wr==null?void 0:wr.prop)===(Ze==null?void 0:Ze.prop));let un=((xs=Ze==null?void 0:Ze.filter)==null?void 0:xs.includes("@EditRead=Read"))??!1;ta.push({label:(Ze==null?void 0:Ze.label)==="操作"?W?"操作":"":(Ze==null?void 0:Ze.label)??"",prop:(Ze==null?void 0:Ze.label)==="操作"?"operate":(Ze==null?void 0:Ze.prop)??"a"+kr,width:Ze!=null&&Ze.width?parseInt(Ze.width):"",fixed:(Ze==null?void 0:Ze.fixed)??void 0,sortable:(Ze==null?void 0:Ze.sortable)??!1,filterable:(Ze==null?void 0:Ze.filterable)??!1,operable:(Ze==null?void 0:Ze.operable)??!1,showSummary:(Ze==null?void 0:Ze.showSummary)??!1,align:(Ze==null?void 0:Ze.align)??"left",showOverflowTooltip:(Ze==null?void 0:Ze.showOverflowTooltip)??!0,isNotDrag:(Ze==null?void 0:Ze.isNotDrag)??!1,isEditCol:(Ze==null?void 0:Ze.isEditCol)??!1,isOperate:(Ze==null?void 0:Ze.isOperate)??!1,id:(Ze==null?void 0:Ze.id)??kr,type:(Ze==null?void 0:Ze.label)==="操作"?"operate":void 0,formType:(Ze==null?void 0:Ze.formType)??(Ze!=null&&Ze.groupSelect?"Select":""),disabled:Ze==null?void 0:Ze.disabled,options:(Ze==null?void 0:Ze.options)??[],value:(Ze==null?void 0:Ze.value)??"",isExistChild:(Ze==null?void 0:Ze.isExistChild)??!1,mainKey:(Ze==null?void 0:Ze.mainKey)??kr===0,allSelectionContents:(Ze==null?void 0:Ze.allContents)??[],filterContent:Ze==null?void 0:Ze.filterContents,menus:Ze==null?void 0:Ze.menus,groups:Ze==null?void 0:Ze.groups,words:Ze==null?void 0:Ze.words,filter:Ze==null?void 0:Ze.filter,bindMenus:Ze==null?void 0:Ze.bindMenus,fatherPath:Ze==null?void 0:Ze.fatherPath,isMainPath:Ze==null?void 0:Ze.isMainPath,required:(Ze==null?void 0:Ze.required)??!1,relatedContents:Ze==null?void 0:Ze.relatedContents,functionName:Ze==null?void 0:Ze.functionName,functionRelatedWords:Ze==null?void 0:Ze.functionRelatedWords,calculatorFilter:Ze==null?void 0:Ze.calculatorFilter,relatedPages:Ze==null?void 0:Ze.relatedPages,multiple:(Ze==null?void 0:Ze.multiple)??!1,multipleLimit:Ze==null?void 0:Ze.multipleLimit,isReadonly:un})})}ta=ta==null?void 0:ta.filter(Za=>{var Ze;return!((Ze=Za==null?void 0:Za.filter)!=null&&Ze.includes("@ShowHide=Hide"))}),D.value=(qa=Ce==null?void 0:Ce[0])==null?void 0:qa.contents;const cn=re.getNewColumnChild(ta);Se=re.getColumnChild(cn);const ei=Za=>Array.isArray(Za)?Za.map(Ze=>(Array.isArray(Ze==null?void 0:Ze.children)&&Ze.children.length>0?(Ze.sortable=!1,ei(Ze.children)):(Ze==null?void 0:Ze.prop)==="operate"||(Ze==null?void 0:Ze.label)==="操作"||(Ze==null?void 0:Ze.type)==="operate"||(Ze.sortable=!1),Ze)):Za;ei(cn),await at(cn),Z0(X.value,cn),q.value=cn,I.value=cn,r.value=(cl=q.value)==null?void 0:cl.map(Za=>Za==null?void 0:Za.label);let jr=(Ca=(Ka=re.getAllLeafNodes(q.value))==null?void 0:Ka.filter(Za=>(Za==null?void 0:Za.type)!=="operate"))==null?void 0:Ca.map((Za,Ze)=>({prop:(Za==null?void 0:Za.prop)??"a"+Ze,column:Za.label}));Zl.value=jr;let Xr=[];lr.value===""?Xr=K==null?void 0:K[0]:Xr=(K==null?void 0:K.find(Za=>(Za==null?void 0:Za.selectLabel)==="("+lr.value+")"))??(K==null?void 0:K.find(Za=>!(Za!=null&&Za.selectLabel)));let Ur=Array.isArray((fl=Xr==null?void 0:Xr.contents)==null?void 0:fl[0])&&((Yl=Xr==null?void 0:Xr.contents)!=null&&Yl[0].every(Za=>Array.isArray(Za)))?(Wa=Xr==null?void 0:Xr.contents)==null?void 0:Wa[0]:Xr==null?void 0:Xr.contents;ka!=null&&ka.contents&&((Bl=ka==null?void 0:ka.contents)==null?void 0:Bl.length)!==0&&(Ur=(Ra=R.cloneDeep(Ur))==null?void 0:Ra.map((Za,Ze)=>{if(!Array.isArray(Za)){let kr={};for(let un in Za)un!=="id"&&un!=="index"&&(kr[un]=Za[un]);Za=Object.values(kr)}return Za}));const mo=!!((Ol=q.value)!=null&&Ol.find(Za=>Za.prop==="index"));Ur=Pt(Ur,ka==null?void 0:ka.contents,mo);const Gn=[];Ur==null||Ur.forEach((Za,Ze)=>{var un;let kr={};if(Array.isArray(Za)){let an=[];Za==null||Za.filter(tn=>!(tn!=null&&tn.id)).forEach((tn,Gr)=>{var hi,Ti,Bi,Rr,$n,ai;if((hi=jr==null?void 0:jr[Gr])!=null&&hi.prop&&!Array.isArray(tn)){let Di={};Di[jr[Gr].column]=tn,F!=null&&F.value&&((Ti=F==null?void 0:F.value)==null?void 0:Ti.length)>0&&((Bi=F==null?void 0:F.value)!=null&&Bi.find(En=>JSON.stringify(En==null?void 0:En[0])===JSON.stringify(Di)))&&(an=(Rr=F==null?void 0:F.value)==null?void 0:Rr.find(En=>JSON.stringify(En==null?void 0:En[0])===JSON.stringify(Di))),an&&an.length>0?kr[jr[Gr].prop]=an!=null&&an.find(En=>{var li;return((li=Object.keys(En))==null?void 0:li[0])===jr[Gr].column})?($n=an==null?void 0:an.find(En=>{var li;return((li=Object.keys(En))==null?void 0:li[0])===jr[Gr].column}))==null?void 0:$n[jr[Gr].column]:tn:kr[jr[Gr].prop]=tn}else Array.isArray(tn)&&((ai=jr[Gr])!=null&&ai.prop?kr[jr[Gr].prop]=tn:kr.children=At(tn,jr))})}else kr=Za;if(Array.isArray(Za)&&Za.some(an=>an==null?void 0:an.id)){const an=(un=Za==null?void 0:Za.find(tn=>tn.id))==null?void 0:un.id;Gn.push(Object.assign(kr,{id:co(an)}))}else kr.id?Gn.push(kr):Gn.push(Object.assign(kr,{id:Ze.toString()}))});try{const Za=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ze=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),kr=Za==null?void 0:Za.tableId,un=Za==null?void 0:Za.compIndex;if(kr&&Array.isArray(Ze)&&Ze.length>0&&String(kr)===String(d==null?void 0:d.parentTableId)&&String(un)===String(d==null?void 0:d.index)){const an=new Set(Gn.map(Gr=>String(Gr==null?void 0:Gr.id))),tn=Ze.filter(Gr=>!an.has(String(Gr)));if(tn.length>0){const Gr=Za==null?void 0:Za.pageKey,hi=Gr!=null&&Gr.startsWith("/")?Gr.substring(1):Gr;((m==null?void 0:m[Gr])||(m==null?void 0:m[hi])||[]).filter(Rr=>{var $n,ai;return(($n=Rr==null?void 0:Rr.key)==null?void 0:$n.type)==="data"&&String((ai=Rr==null?void 0:Rr.key)==null?void 0:ai.tableId)===String(kr)&&tn.includes(Rr==null?void 0:Rr.id)}).forEach(Rr=>{var $n;an.has(String(Rr==null?void 0:Rr.id))||(Gn.push({id:Rr==null?void 0:Rr.id,...(($n=Rr==null?void 0:Rr.value)==null?void 0:$n.tableData)||{}}),an.add(String(Rr==null?void 0:Rr.id)))})}}}catch{}let Kn=null;try{const Za=`ocr_committed_temp_ids_v1:${String((d==null?void 0:d.parentTableId)??"")}:${String((d==null?void 0:d.index)??"")}`,Ze=JSON.parse(sessionStorage.getItem(Za)||"null");Array.isArray(Ze)&&Ze.length>0&&(Kn=new Set(Ze.map(kr=>String(kr))))}catch{}const Gi=Array.from(((il=Ta.value)==null?void 0:il.values())||[]).filter(Za=>!(!(Za!=null&&Za._isOCRRow&&(Za==null?void 0:Za._ocrTableId)===(d==null?void 0:d.index))||Kn&&Kn.has(String(Za==null?void 0:Za.id)))),yo=(Ae.value||[]).map(Za=>String(Za==null?void 0:Za.id)),sr=Si(Gn,yo);if(Ae.value=ns(sr,$,q.value),Fa.value=sr,(ml=Fa.value)==null||ml.forEach(Za=>{var Ze;(Ze=Ta.value)==null||Ze.set(Za.id,Za)}),Kn&&Kn.size>0)try{const Za=new Set(Array.from(Kn.values()));Ae.value=(Ae.value||[]).filter(Ze=>!Za.has(String(Ze==null?void 0:Ze.id))),Fa.value=(Fa.value||[]).filter(Ze=>!Za.has(String(Ze==null?void 0:Ze.id))),Za.forEach(Ze=>{var kr,un;try{(un=(kr=Ta.value)==null?void 0:kr.delete)==null||un.call(kr,Ze)}catch{}})}catch{}const en=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),bt=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(en&&Array.isArray(bt)&&bt.length>0&&String(en==null?void 0:en.compIndex)===String(d==null?void 0:d.index)){const Za=new Set((Fa.value||[]).map(Ze=>String(Ze==null?void 0:Ze.id)));bt.filter(Ze=>!Za.has(String(Ze)))}if(Gi.length>0){const Za=new Set((Ae.value||[]).map(kr=>kr==null?void 0:kr.id)),Ze=Gi.filter(kr=>!Za.has(kr.id));Ze.length>0&&(Ae.value=[...Ae.value||[],...Ze],Fa.value=[...Fa.value||[],...Ze],Ze.forEach(kr=>{var un;return(un=Ta.value)==null?void 0:un.set(kr.id,kr)}))}}else q.value=[],ze.value=[],Ae.value=[],Fa.value=[],Ta.value=new Map;if(Aa=[...new Set(Aa)],Aa=Aa==null?void 0:Aa.map(ta=>({label:ta,type:"methodButton"})),((zl=ce==null?void 0:ce.contents)==null?void 0:zl.length)>0?fa.value=ce==null?void 0:ce.contents:fa.value=[],fa.value=[...fa.value,...Aa],Na=[...new Set(Na)],Na=Na==null?void 0:Na.map(ta=>({label:ta,type:"methodButton"})),((xl=de==null?void 0:de.contents)==null?void 0:xl.length)>0)if((ur=(vr=(Cr=f==null?void 0:f.find(ta=>(ta==null?void 0:ta.key)==="filterAllType"))==null?void 0:Cr.value)==null?void 0:vr.find(ta=>(ta==null?void 0:ta.value)==="onButtonContents"))!=null&&ur.content){let ta=(yr=(ir=(_l=f==null?void 0:f.find(Al=>(Al==null?void 0:Al.key)==="filterAllType"))==null?void 0:_l.value)==null?void 0:ir.find(Al=>(Al==null?void 0:Al.value)==="onButtonContents"))==null?void 0:yr.content;if(ta=(Ml=ta==null?void 0:ta.split(":"))==null?void 0:Ml[1],ta=(gr=ta.slice(1,(ta==null?void 0:ta.length)-1))==null?void 0:gr.split(","),Je.value=(Tr=de==null?void 0:de.contents)==null?void 0:Tr.filter(Al=>ta==null?void 0:ta.find(cn=>cn===(Al==null?void 0:Al.label))),Ne.value=(br=de==null?void 0:de.contents)==null?void 0:br.filter(Al=>ta==null?void 0:ta.find(cn=>cn===(Al==null?void 0:Al.label))),(Ir=de==null?void 0:de.contents)!=null&&Ir.some(Al=>(Al==null?void 0:Al.label)==="OCR识别")&&!((sn=Je.value)!=null&&sn.some(Al=>(Al==null?void 0:Al.label)==="OCR识别"))){const Al=(mr=de==null?void 0:de.contents)==null?void 0:mr.find(cn=>(cn==null?void 0:cn.label)==="OCR识别");Je.value=[...Je.value,Al],Ne.value=[...Ne.value,Al]}T.value=!!(ta!=null&&ta.find(Al=>Al==="搜索")),Q.value=!!(ta!=null&&ta.find(Al=>Al==="块状显示"))}else Je.value=de==null?void 0:de.contents,Ne.value=de==null?void 0:de.contents;else Je.value=[],Ne.value=[];if(Je.value=[...Je.value,...Na],Ne.value=[...Ne.value,...Na],typeof ne.value=="string"&&ne.value==="设备管理/试验设备"&&(d==null?void 0:d.compName)==="设备列表"?((Lr=Je.value)!=null&&Lr.some(ta=>(ta==null?void 0:ta.label)==="OCR识别")||(Je.value=[...Je.value||[],{label:"OCR识别"}]),(Hr=Ne.value)!=null&&Hr.some(ta=>(ta==null?void 0:ta.label)==="OCR识别")||(Ne.value=[...Ne.value||[],{label:"OCR识别"}])):(Je.value=(Je.value||[]).filter(ta=>(ta==null?void 0:ta.label)!=="OCR识别"),Ne.value=(Ne.value||[]).filter(ta=>(ta==null?void 0:ta.label)!=="OCR识别")),(ts=Je.value)!=null&&ts.some(ta=>(ta==null?void 0:ta.label)==="切换视图")||(Je.value=[...Je.value||[],{label:"切换视图"}]),(ss=Ne.value)!=null&&ss.some(ta=>(ta==null?void 0:ta.label)==="切换视图")||(Ne.value=[...Ne.value||[],{label:"切换视图"}]),Se!=null&&Se.some(ta=>{var Al;return(ta==null?void 0:ta.calculatorFilter)&&((Al=ta==null?void 0:ta.calculatorFilter)==null?void 0:Al.includes("@Button"))})){let ta=(cs=Se==null?void 0:Se.filter(jr=>{var Xr;return(jr==null?void 0:jr.calculatorFilter)&&((Xr=jr==null?void 0:jr.calculatorFilter)==null?void 0:Xr.includes("@Button"))}))==null?void 0:cs.map(jr=>jr==null?void 0:jr.calculatorFilter),Al=[],cn=[],ei=[];ta==null||ta.forEach(jr=>{var mo,Gn,Kn,Gi,yo;let Xr=(mo=re.analyzeSplitToContent(jr,","))==null?void 0:mo.map(sr=>((sr==null?void 0:sr[(sr==null?void 0:sr.length)-1])===","&&(sr=sr==null?void 0:sr.slice(0,(sr==null?void 0:sr.length)-1)),sr)),Ur=Xr==null?void 0:Xr.find(sr=>sr==null?void 0:sr.includes("@Button"));if(Xr!=null&&Xr.find(sr=>sr==null?void 0:sr.includes("Manual"))){Ur=(Kn=(Gn=Ur==null?void 0:Ur.replace("=","$R"))==null?void 0:Gn.split("$R"))==null?void 0:Kn[1],Ur=Ur==null?void 0:Ur.slice(1,(Ur==null?void 0:Ur.length)-1);let sr=(Gi=re.analyzeSplitToContent(Ur,","))==null?void 0:Gi.map(en=>((en==null?void 0:en[(en==null?void 0:en.length)-1])===","&&(en=en==null?void 0:en.slice(0,(en==null?void 0:en.length)-1)),en));sr=sr==null?void 0:sr[0],sr=sr==null?void 0:sr.slice(1,(sr==null?void 0:sr.length)-1),sr=(yo=sr==null?void 0:sr.split(","))==null?void 0:yo.map(en=>({label:en,prop:en})),Ur!=null&&Ur.includes("Up")?Al=[...Al,...sr??[]]:Ur!=null&&Ur.includes("Line")?cn=[...cn,...sr??[]]:ei=[...ei,...sr??[]]}}),Je.value=[...Al,...Je.value??[]],fa.value=[...cn,...fa.value??[]],ei.value=[...ei,...ei.value??[]]}sa.value=((us=Ae==null?void 0:Ae.value)==null?void 0:us.length)??0,ls(Ae.value),Sr.value=Ae.value,rr.value&&(q.value=(ps=(ds=ze.value)==null?void 0:ds.filter(ta=>(ta==null?void 0:ta.label)!=="操作"))==null?void 0:ps.map(ta=>{var Al;return{...ta,type:"edit",optionUrl:ta!=null&&ta.formMenuSelect&&((Al=ta==null?void 0:ta.formMenuSelect)==null?void 0:Al.length)>0?{groupSelect:ta==null?void 0:ta.groupSelect,menuSelect:ta==null?void 0:ta.formMenuSelect,selectRelateType:"",type:ta==null?void 0:ta.formType}:null}}),gt())};e.watch(()=>[d.itemData,lr.value,er.value,$l.value,F==null?void 0:F.value],async()=>{var f,m,L,$,W,A;if((f=d==null?void 0:d.itemData)!=null&&f.find(ce=>(ce==null?void 0:ce.key)==="columnPath")&&!((m=fe.value)!=null&&m.find(ce=>{var de,K;return(ce==null?void 0:ce.key)===((K=(de=d==null?void 0:d.itemData)==null?void 0:de.find(Ce=>(Ce==null?void 0:Ce.key)==="columnPath"))==null?void 0:K.contents)}))){let ce=fe.value,de={key:($=(L=d==null?void 0:d.itemData)==null?void 0:L.find(K=>(K==null?void 0:K.key)==="columnPath"))==null?void 0:$.contents,value:(A=(W=d==null?void 0:d.itemData)==null?void 0:W.find(K=>(K==null?void 0:K.key)==="columnUsingPath"))==null?void 0:A.contents};ce!=null&&ce.find(K=>(K==null?void 0:K.key)===(de==null?void 0:de.key))?ce=ce==null?void 0:ce.map(K=>((K==null?void 0:K.key)===(de==null?void 0:de.key)&&(K.value=de.value),K)):ce.push(de),Ge.setTableViewContents(ce)}await is(d.itemData,d.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>d==null?void 0:d.operatingForm,f=>{f!=null&&f.form&&(Ui(f==null?void 0:f.form),ha.value=f==null?void 0:f.dialogTitle,Re.value=!0,ea.value=!0)},{immediate:!0,deep:!0});const Ju=()=>{var f;(f=H.value)!=null&&f.includes("read")&&(rr.value=!rr.value)},Xu=()=>{Wr.value=!Wr.value};e.watch(()=>{var f;return(f=d==null?void 0:d.config)==null?void 0:f.viewport},f=>{var m;H.value=f,(f==null?void 0:f.length)===0?rr.value=!1:(f!=null&&f.includes("read")||(rr.value=!0),f!=null&&f.includes("edit")||(rr.value=!1)),v.value=((m=d==null?void 0:d.config)==null?void 0:m.showIndex)||rr.value},{immediate:!0}),e.watch(()=>rr.value,f=>{var m;f?(gt("viewChange"),Ge.setCacheUpdatingData(null)):(Je.value=Ne.value,q.value=I.value,le.value&&(Ge.setTableLoading(d==null?void 0:d.index),U("change",le.value))),v.value=f||((m=d==null?void 0:d.config)==null?void 0:m.showIndex),Nr.value=[]},{immediate:!0}),e.watch(()=>{var f;return(f=Ln.value)==null?void 0:f.length},f=>{f===0&&(te.currentPage=1)}),e.watch(()=>d==null?void 0:d.compNames,f=>{Y.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:f||[],width:1}]},{immediate:!0}),e.ref(!1);const Zu=(f,m)=>{var L;gt("createClick"),m===te.pageSize&&(te.currentPage=Math.ceil(((L=Ae.value)==null?void 0:L.length)/te.pageSize))},Qu=async(f,m,L)=>{var W,A,ce,de,K;const $=(m==null?void 0:m.property)??(m==null?void 0:m.prop);if($&&ho.includes($)&&L!==void 0&&L!==null&&String(L).trim()!==""){const Ce=String(L).trim();if(await yt(Ce,f==null?void 0:f.id)){Xa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Xe=(W=Ae.value)==null?void 0:W.findIndex(la=>(la==null?void 0:la.id)===(f==null?void 0:f.id)),qe=Xe!==-1?(ce=(A=Ae.value)==null?void 0:A[Xe])==null?void 0:ce[$]:void 0;$&&(f[$]=qe??"");return}}if(rr.value){const Ce=f==null?void 0:f.id;Ce!=null&&(p.value.has(Ce)||p.value.set(Ce,R.cloneDeep(f)),o.value.add(Ce));const Se=(de=Ae.value)==null?void 0:de.findIndex(Xe=>(Xe==null?void 0:Xe.id)===(f==null?void 0:f.id));Se!==-1&&$&&(Ae.value[Se]={...Ae.value[Se],[$]:L}),vo(L,f,m);return}vo(L,f,m),ql.value=R.cloneDeep(f),da.value=f==null?void 0:f.id,sa.value=(K=Ae.value)==null?void 0:K.length,ha.value=f!=null&&f._isTemp?"新增":"编辑",Wi(!1)},ed=async()=>{var f,m;try{const L=[];if(d!=null&&d.related&&Array.isArray(d.related)&&(console.log("props.related",d.related),d.related.forEach($=>{if(typeof $=="string"&&$.includes("content_")){const W=$.split("_")[1];W&&(L.push(`content_${W}`),L.push(`struct_${W}`))}})),L.length===0&&(d!=null&&d.itemData)){const $=(m=(f=d.itemData)==null?void 0:f.find(W=>(W==null?void 0:W.key)==="contentTableId"))==null?void 0:m.contents;$&&(L.push(`content_${$}`),L.push(`struct_${$}`))}return L}catch(L){return console.error("获取 tableNames 失败:",L),[]}},ad=async(f,m,L)=>{var A,ce;if(!L||typeof L!="string"||L.trim()===""){const de=(m==null?void 0:m.property)??(m==null?void 0:m.prop),K=`${f==null?void 0:f.id}:${de}`;y.value.delete(K),g.value.set(K,!1);return}const $=(m==null?void 0:m.property)??(m==null?void 0:m.prop),W=`${f==null?void 0:f.id}:${$}`;g.value.set(W,!0);try{const de=await ed();if(de.length===0){console.warn("未找到同名表,跳过全局搜索"),y.value.delete(W),g.value.set(W,!1);return}const K=parseInt((A=Nl.value)==null?void 0:A.plat_id);if(!K){console.warn("platId 无效,跳过全局搜索"),y.value.delete(W),g.value.set(W,!1);return}const Ce=await R.getAllTables({platId:K,tableNames:de??[]}),Se=((ce=Ce==null?void 0:Ce.data)==null?void 0:ce.result)||[],Xe=[],qe=[];for(let la=0;la<Se.length;la+=2)la+1<Se.length&&qe.push([Se[la],Se[la+1]]);qe.forEach(([la,ka])=>{var sl;if(!Array.isArray(la)||la.length===0||!Array.isArray(ka)||ka.length===0)return;const Na=ka[0];let Aa=((sl=Na==null?void 0:Na.结构)==null?void 0:sl.contents)??[];if(!Array.isArray(Aa)||Aa.length===0)return;let ra=R.cloneDeep(Aa);if(Array.isArray(ra==null?void 0:ra[0])&&(ra=re.getColumnChild(ra[0])),!Array.isArray(ra)||ra.length===0||!ra.some(Ee=>(Ee==null?void 0:Ee.prop)===$))return;[...la].sort((Ee,Va)=>{const ba=Number((Ee==null?void 0:Ee.update_time)??0);return Number((Va==null?void 0:Va.update_time)??0)-ba}).slice(0,20).forEach(Ee=>{const Va=Ee[$];if(Va!=null){const ba=String(Va);ba.toLowerCase().includes(L.toLowerCase())&&Xe.findIndex(Oa=>{var Le;return Ee.id&&((Le=Oa.rowData)==null?void 0:Le.id)===Ee.id?!0:Oa.label===ba})===-1&&Xe.push({label:ba,rowData:R.cloneDeep(Ee),sourceTable:(Na==null?void 0:Na.source_table)||""})}})}),y.value.set(W,Xe)}catch(de){console.error("全局搜索建议失败:",de),y.value.delete(W)}finally{g.value.set(W,!1)}},ld=(f,m,L)=>{if(!rr.value)return;const $=(m==null?void 0:m.property)??(m==null?void 0:m.prop),W=(m==null?void 0:m.formType)||(m==null?void 0:m.columnType)||"";if(W&&W.toUpperCase()!=="INPUT"&&W!=="")return;const A=`${f==null?void 0:f.id}:${$}`;if(b.has(A)&&clearTimeout(b.get(A)),!L||L.trim()===""){y.value.delete(A),g.value.set(A,!1);return}const ce=setTimeout(()=>{ad(f,{prop:$,property:$},L),b.delete(A)},300);b.set(A,ce)};function rd(f,m){const L=`${f==null?void 0:f.id}:${(m==null?void 0:m.property)??(m==null?void 0:m.prop)}`;return y.value.get(L)||[]}const nd=(f,m,L)=>{var Ce;if(!L||!L.rowData)return;const $=L.rowData,W=f==null?void 0:f.id,A=(m==null?void 0:m.property)??(m==null?void 0:m.prop);(re.getAllLeafNodes(q.value)||[]).filter(Se=>(Se==null?void 0:Se.type)!=="operate"&&(Se==null?void 0:Se.label)!=="操作"&&(Se==null?void 0:Se.prop)!=="operate").forEach(Se=>{const Xe=Se==null?void 0:Se.prop;Xe&&$[Xe]!==void 0&&(f[Xe]=$[Xe])}),(Ce=Ae.value)==null||Ce.findIndex(Se=>(Se==null?void 0:Se.id)===W),W!=null&&(p.value.has(W)||p.value.set(W,R.cloneDeep(f)),o.value.add(W));const K=`${W}:${A}`;y.value.delete(K),g.value.set(K,!1),vo(f[A],f,m)},fn=f=>{var K,Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl;const{row:m,column:L,item:$,slotData:W}=f;let A=m!=null&&m[L==null?void 0:L.prop]||(m==null?void 0:m[L==null?void 0:L.prop])===0?((Ce=(K=m==null?void 0:m[L==null?void 0:L.prop])==null?void 0:K[0])==null?void 0:Ce.contents)??((m==null?void 0:m[L==null?void 0:L.prop])===0?"0":m==null?void 0:m[L==null?void 0:L.prop]):((Xe=(Se=m==null?void 0:m[$==null?void 0:$.prop])==null?void 0:Se[0])==null?void 0:Xe.contents)??(m==null?void 0:m[$==null?void 0:$.prop])??((la=(qe=W==null?void 0:W[$==null?void 0:$.prop])==null?void 0:qe[0])==null?void 0:la.contents)??(W==null?void 0:W[$==null?void 0:$.prop])??((Aa=(Na=m==null?void 0:m[(ka=$==null?void 0:$.child)==null?void 0:ka.prop])==null?void 0:Na[0])==null?void 0:Aa.contents)??(m==null?void 0:m[(ra=$==null?void 0:$.child)==null?void 0:ra.prop]),de=Array.isArray(A)&&!(A!=null&&A.every(wa=>typeof wa=="string"||typeof wa=="number"))?"查看":A;if(de=Array.isArray(de)?de.join(","):de,(L==null?void 0:L.formType)==="Date")if(!de||de===""||de===null||de===void 0)de="";else{const wa=R.dayjs(de,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);de=wa.isValid()?wa.format("YYYYMMDD"):de??""}return Array.isArray(L==null?void 0:L.relatedPages)&&((tl=L==null?void 0:L.relatedPages)==null?void 0:tl.length)>0&&(de="详情页"),de},id=f=>{var Ce,Se,Xe,qe,la,ka,Na,Aa,ra,tl;const{row:m,column:L,item:$,slotData:W}=f;let A=m!=null&&m[L==null?void 0:L.prop]?((Se=(Ce=m==null?void 0:m[L==null?void 0:L.prop])==null?void 0:Ce[0])==null?void 0:Se.contents)??(m==null?void 0:m[L==null?void 0:L.prop]):((qe=(Xe=m==null?void 0:m[$==null?void 0:$.prop])==null?void 0:Xe[0])==null?void 0:qe.contents)??(m==null?void 0:m[$==null?void 0:$.prop])??((ka=(la=W==null?void 0:W[$==null?void 0:$.prop])==null?void 0:la[0])==null?void 0:ka.contents)??(W==null?void 0:W[$==null?void 0:$.prop])??((ra=(Aa=m==null?void 0:m[(Na=$==null?void 0:$.child)==null?void 0:Na.prop])==null?void 0:Aa[0])==null?void 0:ra.contents)??(m==null?void 0:m[(tl=$==null?void 0:$.child)==null?void 0:tl.prop]);const de=Array.isArray(A)&&!(A!=null&&A.every(wa=>typeof wa=="string"||typeof wa=="number")),K=Array.isArray(A)&&(A==null?void 0:A.find(wa=>wa==null?void 0:wa.url));return de&&K},od=f=>{var L,$,W,A;return f!=null&&f.column?(ne.value,d==null||d.compName,(($=(L=f==null?void 0:f.column)==null?void 0:L.filter)==null?void 0:$.includes("@TextRGBA"))||((A=(W=f==null?void 0:f.column)==null?void 0:W.filter)==null?void 0:A.includes("@TextBackRGBA"))):!1},td=(f,m)=>f.find(L=>Object.values(L).some($=>$===m));return e.watch(()=>Ke.value,async f=>{if(f){ge.setContentLoading(!0),await e.nextTick();const m=td(Ae.value,f==null?void 0:f.data);if(!m)return ge.setContentLoading(!1);await fo(f==null?void 0:f.data,null,m,{data:f==null?void 0:f.data}),ge.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>d==null?void 0:d.cacheNewData,f=>{var m;f&&(Array.isArray(f)?f.forEach(L=>{var $,W,A,ce,de;if(换,String(L==null?void 0:L.compId)===String(d==null?void 0:d.index)&&(L!=null&&L.resId)&&(($=L==null?void 0:L.data)!=null&&$.id)){const K=(W=L==null?void 0:L.data)==null?void 0:W.id,Ce=L==null?void 0:L.resId;if(Ae.value=(A=Ae.value)==null?void 0:A.map(Se=>{if((Se==null?void 0:Se.id)===K){const Xe={...Se,id:Ce};return delete Xe._isOCRRow,delete Xe._ocrTableId,Xe}return Se}),(de=(ce=Ta.value)==null?void 0:ce.has)!=null&&de.call(ce,K)){const Xe={...Ta.value.get(K)||{},id:Ce};delete Xe._isOCRRow,delete Xe._ocrTableId,Ta.value.delete(K),Ta.value.set(Ce,Xe)}ar(d==null?void 0:d.index,K,Ce)}}):String(f==null?void 0:f.compId)===String(d==null?void 0:d.index)&&(Ae.value=(m=Ae.value)==null?void 0:m.map(L=>{var $;if((L==null?void 0:L.id)===(($=f==null?void 0:f.data)==null?void 0:$.id)){const W={...L,id:f==null?void 0:f.resId};return delete W._isOCRRow,delete W._ocrTableId,W}return L})))},{immediate:!0,deep:!0}),(f,m)=>{var ra,tl,wa,sl;const L=e.resolveComponent("svg-icon"),$=e.resolveComponent("el-popover"),W=e.resolveComponent("el-switch"),A=e.resolveComponent("el-checkbox"),ce=e.resolveComponent("el-radio"),de=e.resolveComponent("el-radio-group"),K=e.resolveComponent("el-checkbox-group"),Ce=e.resolveComponent("el-button"),Se=e.resolveComponent("el-icon"),Xe=e.resolveComponent("el-progress"),qe=e.resolveComponent("el-alert"),la=e.resolveComponent("el-table-column"),ka=e.resolveComponent("el-table"),Na=e.resolveComponent("el-upload"),Aa=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",P3,[Sn.value?(e.openBlock(),e.createBlock(ul.ssTable,{id:"excel-table",pageObj:te,showIndex:v.value,isTree:(ra=a.compItem)==null?void 0:ra.isTree,summaryInfo:ye,columns:q.value,defaultSort:pe,isCardViewport:Wr.value,checkedColumns:r.value,key:Ql.value+JSON.stringify(q.value),tableData:Ln.value,isEditViewport:rr.value,isShowPagination:He.value,isShowEdit:!1,isShowDelete:!1,allowSelect:C.value,onDbClickRow:st,extraButton:Je.value,rowButton:fa.value,cacheExtraButtons:Ne.value,isClearSelection:((tl=Nr.value)==null?void 0:tl.length)===0,onDoCurrentChange:qo,onDoSizeChange:Wo,onSortChange:Go,onContentClick:fo,onRowClick:ut,onSelectChange:wi,onCellChange:Qu,onCellInput:ld,onSelectSuggest:nd,onChange:vo,onPreview:so,onSubmitEditingTable:Pn,onHandleColEditChange:Yo,onHandleColTypeChange:Jo,onClickButton:vt,onAddNewRow:Xo,bottomButton:D.value,allowRowAddOrDelete:tt.value},e.createSlots({headerButton:e.withCtx(Ee=>{var Va,ba,Ja,Oa;return[a.showHeader?(e.openBlock(),e.createBlock(d0,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(ia)===e.unref(ne),filterValues:po.value,selectNums:(Va=Nr.value)==null?void 0:Va.length,dataNums:(ba=Ae.value)==null?void 0:ba.length,compName:a.compName,isDevMode:a.isDevMode,buttons:Ee.buttons,menuFilter:(Oa=(Ja=a.compItem)==null?void 0:Ja.component)==null?void 0:Oa.menuFilter,onButtonClick:m[1]||(m[1]=(Le,ae,je)=>vt(Le,ae,{extra:je})),columns:q.value,onFilter:ji,onGetImportData:dn,level:a.level,filterShow:T.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var Ee,Va,ba,Ja;return[((Ee=Ae.value)==null?void 0:Ee.length)>0&&a.allowOperate&&Q.value?(e.openBlock(),e.createElementBlock("div",U3,[(Va=H.value)!=null&&Va.includes("read")&&((ba=H.value)!=null&&ba.includes("edit"))&&((Ja=fa.value)!=null&&Ja.some(Oa=>(Oa==null?void 0:Oa.label)==="编辑"))&&!Wr.value&&e.unref(ia)!==e.unref(ne)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:Ju},[e.createVNode(L,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:Ee,index:Va})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ba=>Zu(Ee,Va)},[e.createVNode(L,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,q3)]),operateCol:e.withCtx(()=>[e.createVNode($,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Uu,onBeforeEnter:qu},{reference:e.withCtx(()=>[e.createElementVNode("span",W3,[e.createVNode(L,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",G3,[m[20]||(m[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(W,{"model-value":O.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:m[2]||(m[2]=Ee=>lt(Ee))},null,8,["model-value"]),m[21]||(m[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(K,{modelValue:r.value,"onUpdate:modelValue":m[3]||(m[3]=Ee=>r.value=Ee),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Qn.value,Ee=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:Ee.label},[e.createVNode(A,{value:Ee.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:Ee.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(Ee.label),9,K3)]),_:2},1032,["value"]),e.createVNode($,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(L,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Va;return[e.createElementVNode("div",Y3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Va=Object.keys(Ee))==null?void 0:Va.filter(ba=>{var Ja;return(Ja=S.value)==null?void 0:Ja.find(Oa=>(Oa==null?void 0:Oa.value)===ba)}),ba=>{var Ja,Oa;return e.openBlock(),e.createElementBlock("div",{key:ba},[_[ba]=="radio"?(e.openBlock(),e.createElementBlock("div",J3,[m[19]||(m[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(de,{"model-value":Ee==null?void 0:Ee[ba],onChange:Le=>Hi(Le,ba,Ee)},{default:e.withCtx(()=>{var Le,ae;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ae=(Le=S.value)==null?void 0:Le.find(je=>(je==null?void 0:je.value)===ba))==null?void 0:ae.options,je=>(e.openBlock(),e.createBlock(ce,{key:je==null?void 0:je.value,label:je==null?void 0:je.value,value:je==null?void 0:je.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(je==null?void 0:je.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),_[ba]=="switch"?(e.openBlock(),e.createBlock(W,{key:1,"model-value":Ee==null?void 0:Ee[ba],"active-text":(Oa=(Ja=S.value)==null?void 0:Ja.find(Le=>(Le==null?void 0:Le.value)===ba))==null?void 0:Oa.label,onChange:Le=>Hi(Le,ba,Ee)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",X3,[e.createVNode(L,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(Ee=>{var Va,ba,Ja,Oa,Le,ae,je,pa,z,za,qa,cl,Ka,Ca,fl,Yl,Wa,Bl,Ra,Ol;return[((Va=Ee==null?void 0:Ee.column)==null?void 0:Va.label)==="证书附件"||((ba=Ee==null?void 0:Ee.column)==null?void 0:ba.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",Z3,[e.createVNode(L,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(il=>Lu(Ee),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):id(Ee)?(e.openBlock(),e.createBlock($,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",Q3,e.toDisplayString(fn(Ee)),1)]),default:e.withCtx(()=>{var il,ml;return[e.createElementVNode("div",eh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ml=Ee==null?void 0:Ee.row)==null?void 0:ml[(il=Ee==null?void 0:Ee.column)==null?void 0:il.prop],zl=>(e.openBlock(),e.createElementBlock("div",ah,[e.createElementVNode("div",{class:"prop-url",title:ui(zl),onClick:xl=>ot(zl)},e.toDisplayString(ui(zl)),9,lh),e.createElementVNode("div",{class:"prop-download",onClick:xl=>uo(zl)}," 下载 ",8,rh)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[od(Ee)?(e.openBlock(),e.createBlock(wc,{key:0,value:fn(Ee),columnContent:Ee==null?void 0:Ee.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(fn(Ee))&&((Oa=(Ja=fn(Ee))==null?void 0:Ja.toString())!=null&&Oa.includes(".txt")||(ae=(Le=fn(Ee))==null?void 0:Le.toString())!=null&&ae.includes(".cpt")||(pa=(je=fn(Ee))==null?void 0:je.toString())!=null&&pa.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(fn(Ee))&&((za=(z=fn(Ee))==null?void 0:z.toString())!=null&&za.includes(".txt")||(cl=(qa=fn(Ee))==null?void 0:qa.toString())!=null&&cl.includes(".cpt")||(Ca=(Ka=fn(Ee))==null?void 0:Ka.toString())!=null&&Ca.includes(".cyd"))?"underline":"",cursor:!Array.isArray(fn(Ee))&&((Yl=(fl=fn(Ee))==null?void 0:fl.toString())!=null&&Yl.includes(".txt")||(Bl=(Wa=fn(Ee))==null?void 0:Wa.toString())!=null&&Bl.includes(".cpt")||(Ol=(Ra=fn(Ee))==null?void 0:Ra.toString())!=null&&Ol.includes(".cyd"))?"pointer":"",marginLeft:(Ee==null?void 0:Ee.colIndex)===0?`${((Ee==null?void 0:Ee.level)??0)*20}px`:0}),onClick:il=>{var ml;return An(fn(Ee),((ml=Ee==null?void 0:Ee.column)==null?void 0:ml.relatedPages)??[])}},e.toDisplayString(fn(Ee)===0?"0":fn(Ee)),13,nh))],64))]}),_:2},[((wa=fa.value)==null?void 0:wa.length)>0?{name:"actions",fn:e.withCtx(({item:Ee,fIndex:Va})=>[e.createVNode($,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(L,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:m[0]||(m[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",H3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pi(fa.value,Ee),(ba,Ja)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ja,onClick:e.withModifiers(Oa=>vt(ba==null?void 0:ba.label,Ee,{extra:ba}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:ba==null?void 0:ba.textColor}),class:"extra-button-label"},e.toDisplayString(ba==null?void 0:ba.label),5)],8,j3))),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),rr.value?(e.openBlock(),e.createElementBlock("div",ih,[e.createVNode(Ce,{id:"themeBorderButton",onClick:Qo},{default:e.withCtx(()=>m[22]||(m[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(Ce,{class:"ok-button",id:"themeButton",onClick:Pi},{default:e.withCtx(()=>m[23]||(m[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(Vr.ssDialog,{title:ha.value,visible:ea.value,width:Pr.value,onBeforeDestroy:rt,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",oh,[e.createVNode(ul.ssForm,{ref_key:"formRef",ref:$e,rowContents:_e.value,showOperator:!1,onChange:Wu,isEnableWrap:!1,layer:!0,onFixChangeValue:jn,onClickTrigger:nt,isEdit:Ha.value,onBlurChange:et,onCreate:to,onTagChange:Mr},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Re.value?(e.openBlock(),e.createElementBlock("div",th,[e.createVNode(Ce,{onClick:m[4]||(m[4]=Ee=>ea.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>m[24]||(m[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(Ce,{class:"ok-button",onClick:m[5]||(m[5]=Ee=>Wi(!0)),id:"themeButton"},{default:e.withCtx(()=>m[25]||(m[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Vr.ssDialog,{title:ha.value,visible:ie.value,width:Ye.value,onBeforeDestroy:m[7]||(m[7]=Ee=>ie.value=!1)},{default:e.withCtx(()=>[e.createVNode(E0)]),footer:e.withCtx(()=>[e.createElementVNode("div",sh,[e.createVNode(Ce,{onClick:m[6]||(m[6]=Ee=>ie.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>m[26]||(m[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(Ce,{class:"ok-button",onClick:dt,id:"themeButton"},{default:e.withCtx(()=>m[27]||(m[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Oe.value?(e.openBlock(),e.createBlock(ul.ssFilePreview,{key:2,fileDataList:oe.value,onDestroy:ct},null,8,["fileDataList"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createBlock(Vr.ssDialog,{key:3,visible:ue.value,onBeforeDestroy:Hu,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(Do.ThreeViewerHost,{files:Ie.value,threeData:se.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Vr.ssDialog,{title:"OCR扫描录入",visible:Sl.value,"close-on-click-modal":!1,onBeforeDestroy:cr,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[m[38]||(m[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",ch,[e.createElementVNode("div",uh,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ua.value===1}])},m[28]||(m[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),m[31]||(m[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ua.value===2}])},m[29]||(m[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),m[32]||(m[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ua.value===3}])},m[30]||(m[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),Ua.value===1?(e.openBlock(),e.createElementBlock("div",dh,[e.createVNode(Ce,{onClick:B,class:"ocr-action-btn",disabled:pr.value,size:"default"},{default:e.withCtx(()=>m[33]||(m[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(Ce,{onClick:fi,class:"ocr-action-btn",disabled:pr.value,size:"default"},{default:e.withCtx(()=>m[34]||(m[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),Ua.value===1?(e.openBlock(),e.createElementBlock("div",ph,[e.createElementVNode("div",fh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ga.value,(Ee,Va)=>{var ba;return e.openBlock(),e.createElementBlock("div",{key:Va,class:"ocr-file-item"},[e.createElementVNode("div",hh,[Ee.raw&&((ba=Ee.raw.type)!=null&&ba.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:pn(Ee),alt:"预览",class:"thumbnail-image"},null,8,vh)):(e.openBlock(),e.createElementBlock("div",mh,[e.createVNode(Se,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:nr(Ee)==="uploading",processing:nr(Ee)==="processing",completed:nr(Ee)==="completed"||nr(Ee)==="uploaded",failed:nr(Ee)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",yh,[m[35]||(m[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:nr(Ee)==="completed"||nr(Ee)==="uploaded",uploading:nr(Ee)==="uploading",processing:nr(Ee)==="processing",failed:nr(Ee)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:nr(Ee)==="failed"?"#f56c6c":nr(Ee)==="completed"||nr(Ee)==="uploaded"?"#67c23a":"#409eff","stroke-width":nr(Ee)==="completed"||nr(Ee)==="uploaded"||nr(Ee)==="failed"?3:2,"stroke-dasharray":Rn(Ee),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,gh)])),nr(Ee)==="completed"||nr(Ee)==="uploaded"?(e.openBlock(),e.createElementBlock("div",bh,[e.createVNode(Se,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.check_default))]),_:1})])):e.createCommentVNode("",!0),nr(Ee)==="failed"?(e.openBlock(),e.createElementBlock("div",kh,[e.createVNode(Se,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ja=>$u(Va)},[e.createVNode(Se,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.close_default))]),_:1})],8,xh)]),e.createElementVNode("div",wh,e.toDisplayString(Ee.name||"文件名123"),1)])}),128))]),ga.value.length>0?(e.openBlock(),e.createElementBlock("div",_h,[e.createVNode(Ce,{onClick:dl,class:"ocr-start-recognize-btn",disabled:pr.value||ga.value.length===0,size:"default"},{default:e.withCtx(()=>m[36]||(m[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),Ua.value===1?(e.openBlock(),e.createElementBlock("div",Sh,[e.createVNode(Xe,{percentage:Me.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),Ua.value===2?(e.openBlock(),e.createElementBlock("div",Eh,[e.createElementVNode("div",Ch,[e.createVNode(qe,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Th,[e.createVNode(ka,{data:Ya.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(la,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,Ee=>(e.openBlock(),e.createBlock(la,{key:Ee.prop,prop:Ee.prop,"min-width":Ee.minWidth||230,"class-name":Ee.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Bh,[e.createElementVNode("span",null,e.toDisplayString(Ee.label),1)])]),default:e.withCtx(({row:Va,$index:ba})=>{var Ja,Oa,Le;return[Ee.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:hr(Va[Ee.prop]),fontWeight:500})},e.toDisplayString(tr(Va[Ee.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[kl.value!==ba?(e.openBlock(),e.createElementBlock("span",Dh,e.toDisplayString(Va[Ee.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Pa(Ee.prop)),{key:1,modelValue:Va[Ee.prop],"onUpdate:modelValue":ae=>Va[Ee.prop]=ae,size:"small",placeholder:"请输入"+Ee.label,content:((Ja=_a(Ee.prop))==null?void 0:Ja.contents)??((Oa=_a(Ee.prop))==null?void 0:Oa.options)??[],optionUrl:(Le=_a(Ee.prop))==null?void 0:Le.optionUrl,onChange:ae=>Vl(ba,Ee.prop,ae),onFocus:ae=>Ma.value=Ee.prop,onBlur:m[8]||(m[8]=ae=>Ma.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(la,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:Ee})=>[kl.value===Ee?(e.openBlock(),e.createBlock(Se,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Va=>Kl(Ee),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(L,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Va=>Kl(Ee),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),Ua.value===3?(e.openBlock(),e.createElementBlock("div",Nh,[e.createVNode(Se,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.check_default))]),_:1}),m[37]||(m[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Na,{ref:"ocrUploadRef","file-list":ga.value,"onUpdate:fileList":m[9]||(m[9]=Ee=>ga.value=Ee),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":nl,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[Ua.value!==3?(e.openBlock(),e.createElementBlock("div",Ah,[e.createVNode(Ce,{onClick:Iu,class:"ocr-start-recognize-btn",disabled:Ua.value===1||pr.value},{default:e.withCtx(()=>m[39]||(m[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(Ce,{onClick:Ou,class:"ocr-start-recognize-btn",disabled:pr.value},{default:e.withCtx(()=>m[40]||(m[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(j0,{visible:w.value,onConfirm:P,onCancel:m[10]||(m[10]=Ee=>w.value=!1)},null,8,["visible"]),e.createVNode(Xd,{visible:vl.value,"onUpdate:visible":m[11]||(m[11]=Ee=>vl.value=Ee),versions:Dl.value},null,8,["visible","versions"]),e.createVNode(Rd,{visible:aa.value,"onUpdate:visible":m[12]||(m[12]=Ee=>aa.value=Ee),images:ma.value,"default-image-name":ja.value,"field-meta":kl.value!==null?((sl=Ya.value[kl.value])==null?void 0:sl.__ocrFieldMeta)||{}:{},"focused-field-name":Ma.value,onClose:m[13]||(m[13]=Ee=>aa.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(up,{visible:xa.value,"onUpdate:visible":m[14]||(m[14]=Ee=>xa.value=Ee),candidates:Ul.value,"name-prop":Qe.value,"mfr-prop":La.value,columns:q.value,onSubmit:ln,onPreviewFile:Ru},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(yp,{visible:oa.value,"onUpdate:visible":m[15]||(m[15]=Ee=>oa.value=Ee),ocrPreviewData:Ya.value,"onUpdate:ocrPreviewData":m[16]||(m[16]=Ee=>Ya.value=Ee),ocrSelectedFields:Qa.value,"onUpdate:ocrSelectedFields":m[17]||(m[17]=Ee=>Qa.value=Ee),ocrPreviewColumns:me.value,onConfirm:El,onFieldChange:m[18]||(m[18]=({rowIndex:Ee,prop:Va,value:ba})=>Vl(Ee,Va,ba))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(Vr.ssDialog,{title:Y.title,visible:Y.show,width:Y.width,onBeforeDestroy:ca},{default:e.withCtx(()=>[e.createElementVNode("div",zh,[e.createVNode(ul.ssForm,{rowContents:Y==null?void 0:Y.contents,formRules:Y==null?void 0:Y.formRules,showOperator:!1,buttonValue:Y.buttonValue,isEdit:Ha.value,isStartJustify:!1,onOnButtonClick:Ia},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(Vr.ssDialog,{title:"",visible:Z.show,width:Z.width,alignCenter:!0,onBeforeDestroy:Te},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",Mh,e.toDisplayString(Z.title),1),e.createVNode(Aa,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>m[41]||(m[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ih,[e.createVNode(Aa,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(nn.value||"暂无"),1)]),_:1}),e.createElementVNode("div",Oh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z==null?void 0:Z.buttonValue,Ee=>(e.openBlock(),e.createBlock(Ce,{key:Ee==null?void 0:Ee.label,style:e.normalizeStyle({background:Ee==null?void 0:Ee.background,color:Ee==null?void 0:Ee.color}),onClick:Va=>De(Ee==null?void 0:Ee.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Ee==null?void 0:Ee.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(p0,{columns:Z==null?void 0:Z.columns,tableData:Z==null?void 0:Z.tableData},{content:e.withCtx(({row:Ee,item:Va,slotData:ba,scope:Ja,column:Oa,columnProp:Le,$index:ae})=>[e.createTextVNode(e.toDisplayString((Ee==null?void 0:Ee[Oa==null?void 0:Oa.prop])||(Ee==null?void 0:Ee[Oa==null?void 0:Oa.label])||(Ee==null?void 0:Ee[Oa==null?void 0:Oa.property])||(ba==null?void 0:ba[Oa==null?void 0:Oa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"]),e.createVNode(ul.Signature,{signPadInfo:$a.value,onBeforeDestroy:wl,onClickSubmitSign:el},null,8,["signPadInfo"])])}}},ru=fr._export_sfc(Rh,[["__scopeId","data-v-12c76af6"]]),$h={key:1,class:"static-form-body"},Vh=["onClick"],Fh=["src"],Ph={key:1},Hh=["src"],jh=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},backgroundPosition:{default:"Center"},iconUrl:{default:void 0},calculator:{default:()=>[]},textBackColor:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,i=x=>{switch(x){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},o=e.computed(()=>{var M;const x=(M=r.itemData)==null?void 0:M.find(O=>(O==null?void 0:O.key)==="formContent"),k=(x==null?void 0:x.contents)||[];return(r.fields&&r.fields.length>0?r.fields:k).filter(O=>(O==null?void 0:O.label)||(O==null?void 0:O.isHideInForm)).map(O=>{let Q=O==null?void 0:O.value;Array.isArray(Q)&&(Q=Q.map(U=>U==null?"":typeof U=="object"?U.label??U.value??U.name??JSON.stringify(U):String(U)).filter(Boolean).join(",")),Q!=null&&typeof Q=="object"&&(Q=Q.label??Q.value??Q.name??JSON.stringify(Q));const J=O.isHideInForm?"":O.label??"",ye=Q==null||Q===""?"-":String(Q),te=J==="使用状态";return{label:J,value:ye,isStatus:te,tagType:te?i(ye):"",width:O.width??1,field:O}})}),p=e.ref(null),s=e.ref(null),u=e.computed(()=>{const x=Number(r==null?void 0:r.textSize),k=re.rgbaToColor(r==null?void 0:r.textColor),E={},M={},O={},Q={};return!Number.isNaN(x)&&x&&(E.fontSize=`${x}px`,M.fontSize=`${x+1}px`,O.fontSize=`${x}px`,Q.fontSize=`${x}px`),k&&(M.color=k,O.color=k,Q.color=k),{item:E,label:M,value:O,empty:Q}}),y=e.ref(""),b=e.ref(""),g=e.ref(!1),d=async x=>{if(x){b.value&&(URL.revokeObjectURL(b.value),b.value="");try{const k=await R.platformDownloadFile({url:x}),E=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});b.value=URL.createObjectURL(E)}catch{b.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,x=>{x&&(y.value=x)},{immediate:!0}),e.watch(y,x=>{d(x)},{immediate:!0});const C=async()=>{var x,k;((x=r==null?void 0:r.calculator)==null?void 0:x.length)>0&&await Ft(o.value,"Auto",[],r==null?void 0:r.calculator),(k=s.value)==null||k.click()},v=async x=>{var M,O,Q;const k=x.target,E=(M=k==null?void 0:k.files)==null?void 0:M[0];if(!E){k.value="";return}g.value=!0;try{const J=new FormData;J.append("file",E);const ye=await R.platformUploadFile(J),te=(Q=(O=ye==null?void 0:ye.data)==null?void 0:O.result)==null?void 0:Q.url;te?(y.value=te,n("update:backGroundImage",te),d(te),Xa.ElMessage.success("背景图片上传成功")):Xa.ElMessage.error("背景图片上传失败")}catch{Xa.ElMessage.error("背景图片上传失败")}finally{g.value=!1,k.value=""}},H=e.computed(()=>{var x,k,E,M;return b.value||(r==null?void 0:r.backgroundUrl)!==""?{backgroundImage:`url("${(x=r==null?void 0:r.backgroundUrl)==null?void 0:x.replace(/\\/g,"/")}")`,backgroundPosition:`${((k=r==null?void 0:r.backgroundPosition)==null?void 0:k.toLowerCase())??"center"} center`,backgroundRepeat:"no-repeat",cursor:((E=r==null?void 0:r.calculator)==null?void 0:E.length)>0?"pointer":"auto"}:{cursor:((M=r==null?void 0:r.calculator)==null?void 0:M.length)>0?"pointer":"auto",background:r!=null&&r.textBackColor?re.rgbaToColor(r==null?void 0:r.textBackColor):void 0}}),T=x=>ul.getComponent(x),j=x=>{if(!x)return;const k=x.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},D=(x,k,E)=>{r.disabled||(p.value=k,e.nextTick(()=>{j(E.currentTarget)}))},_=()=>{p.value=null},S=x=>{const k=x!=null&&x.width&&x.width>0?x.width:1,M=`calc((100% - ${(k-1)*48}px) / ${k})`;return{flex:`0 0 ${M}`,maxWidth:M,minWidth:"0",boxSizing:"border-box"}};return(x,k)=>{const E=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(H.value),onClick:k[1]||(k[1]=M=>C())},[(r==null?void 0:r.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=e.withModifiers(M=>C(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:v},null,544),k[2]||(k[2]=e.createElementVNode("img",{src:ul._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),o.value.length?(e.openBlock(),e.createElementBlock("div",$h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(M,O)=>{var Q,J,ye,te,U,q,X,ee,pe;return e.openBlock(),e.createElementBlock("div",{key:O,class:"static-form-item",style:e.normalizeStyle({...S(M),...u.value.item})},[M.label&&!((Q=M==null?void 0:M.field)!=null&&Q.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(u.value.label)},e.toDisplayString(M.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(u.value.value),onClick:ze=>{var ue;return(ue=M.field)!=null&&ue.isNoClick?null:D(M,O,ze)}},[x.iconUrl&&x.backgroundPosition==="Left"?(e.openBlock(),e.createElementBlock("img",{key:0,src:x.iconUrl,class:"bg-upload-icon"},null,8,Fh)):e.createCommentVNode("",!0),p.value===O&&M.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T(((J=M.field)==null?void 0:J.type)??"Input")),{key:1,modelValue:M.field.value,"onUpdate:modelValue":ze=>M.field.value=ze,isEdit:!0,disabled:(ye=M.field)==null?void 0:ye.disabled,content:((te=M.field)==null?void 0:te.contents)??[],optionUrl:M.field,originalValue:(U=M.field)==null?void 0:U.value,config:(q=M.field)==null?void 0:q.config,configModel:((X=M.field)==null?void 0:X.prop)??((ee=M.field)==null?void 0:ee.name),selectedTagList:((pe=M.field)==null?void 0:pe.selectValue)??[],onBlur:_,onBlurChange:_},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[M.isStatus?(e.openBlock(),e.createBlock(E,{key:0,type:M.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",Ph,e.toDisplayString(M.value??"-"),1))],64)),x.iconUrl&&x.backgroundPosition==="Right"?(e.openBlock(),e.createElementBlock("img",{key:3,src:x.iconUrl,class:"bg-upload-icon"},null,8,Hh)):e.createCommentVNode("",!0)],12,Vh)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(u.value.empty)}," 暂无数据 ",4))],4)}}}),nu=fr._export_sfc(jh,[["__scopeId","data-v-f6c4a15a"]]),Uh={class:"form-content"},qh={title:"选择标签"},Wh={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},Gh={class:"col-operate-wrap"},Kh={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Yh={__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:()=>{}},calculator:{type:Array,default:()=>[]}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const r=()=>{y.value=!1,b.value=!1,g.value=[]},n=a;e.computed(()=>{var na;const ie=(na=oe.value)==null?void 0:na.split("/");return(ie==null?void 0:ie.some(fa=>(fa==null?void 0:fa.includes("updateLoading"))||(fa==null?void 0:fa.includes("loading"))))?!1:se.value==="view"});const i=l,o=e.ref(""),p=e.ref(""),s=e.ref("Center"),u=e.ref([]),y=e.ref(!1),b=e.ref(!1),g=e.ref([]),{getFileExtension:d}=Do.useThreeSystem(),C=e.ref(),v=e.ref(!1),H=e.ref(!1),T=R.useUnit(R.pinia),{chooseTitle:j}=R.storeToRefs(T),D=e.ref([]),_=e.ref(),S=e.ref(!1),x=e.ref([]),k=Ic(R.pinia),E=Ht(R.pinia),M=e.ref(!1),O=e.ref(),Q=e.ref(),J=e.ref(),ye=e.ref(),te=e.ref(),U=e.ref(),q=R.useLoginState(R.pinia),{loginUserInfo:X}=R.storeToRefs(q),ee=e.ref(),pe=e.ref(!0),ze=R.useModelComp(R.pinia),{tableViewContents:ue,itemData:N,isEdit:se,routeToChildPath:G,lockingPage:ve,homepageBackgroundTableId:ke,refreshCurrentPageInform:Be}=R.storeToRefs(ze),We=e.ref(null),he=e.ref(!1),I=e.ref(!1),Oe=R.useMenuState(),{activeMenuPath:oe}=R.storeToRefs(Oe),ge=re.useOriginalState(R.pinia),{originalPath:xe}=R.storeToRefs(ge),{compType:ne,hasEditable:we}=bc.useRole(),Ke=()=>!we(n.config,{type:ne.FORM});e.computed(()=>oe.value==="设备管理/试验设备"&&n.compName==="设备概要");const ya=async()=>{var na,fa,Re;const ie=ke==null?void 0:ke.value,Ye=(na=X==null?void 0:X.value)==null?void 0:na.plat_id;if(!(!ie||!Ye))try{const Ie=await R.getAllTables({platId:parseInt(Ye),tableNames:[`content_${ie}`,`struct_${ie}`],user_unique_id:"0"}),Je=((Re=(fa=Ie==null?void 0:Ie.data)==null?void 0:fa.result)==null?void 0:Re[0])??[],Ne=String((n==null?void 0:n.index)??""),_e=Je==null?void 0:Je.find($a=>String($a==null?void 0:$a.relatedForm_id)===Ne);_e!=null&&_e.backgroundImg_url&&(te.value=_e.backgroundImg_url)}catch(Ie){console.error("获取首页背景图片表数据失败:",Ie)}},Ge=e.ref([]),V=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),F=async ie=>{I.value=ie,await va("disabled",null,ie,!0)},le=async ie=>{await va("operable",null,ie,!0)};e.watch(()=>oe.value,async()=>{u.value=[],g.value=[]},{deep:!0,immediate:!0});const fe=()=>{e.nextTick(()=>{Pe()})},be=ie=>{var Ye;u.value=(Ye=u.value)==null?void 0:Ye.map(na=>({...na,isFormColHidden:!(ie!=null&&ie.includes(na.label))}))};e.onUnmounted(()=>{We.value=null});const ua=ie=>{i("clickTrigger",ie)},ia=async ie=>{var Ye,na,fa,Re,Ie,Je;if(ie===""){let Ne="";(Ye=u.value)==null||Ye.forEach(el=>{el!=null&&el.isMain&&(Ne=el==null?void 0:el.value)});let _e=await re.getItemData(G.value,sessionStorage.getItem("systemKey"),"");Ne=((Je=(Ie=(Re=(fa=(na=_e==null?void 0:_e[0])==null?void 0:na.compData)==null?void 0:fa.find(el=>(el==null?void 0:el.key)==="mainRouters"))==null?void 0:Re.contents)==null?void 0:Ie[0])==null?void 0:Je.routerContent)+xe.value+Ne;let wl=await re.getItemData(Ne,sessionStorage.getItem("systemKey"),"");S.value=!0,x.value=wl==null?void 0:wl.filter(el=>(el==null?void 0:el.comp)!=="methodButton"),i("routeUrl",x.value)}},Pe=()=>{var Ye;const ie=(Ye=We.value)==null?void 0:Ye.$el;ie&&Fl.Sortable.create(ie,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:na=>{const{oldIndex:fa,newIndex:Re}=na;if(fa===Re)return;const Ie=u.value.splice(fa,1)[0];u.value.splice(Re,0,Ie)}})},va=async(ie,Ye,na,fa=!1)=>{try{ze.setRefreshCurStructure(!1)}catch{Xa.ElMessage.error("编辑处理失败")}},Ea=async(ie,Ye)=>{await va()},Ae=async(ie,Ye)=>{ie&&await va()},Fa=async(ie,Ye,na)=>{await va(Ye,na,ie,!1)},Ta=(ie,Ye)=>{ee.value===Ye?pe.value=!1:pe.value=!0,ee.value=Ye==null?void 0:Ye.changeProp},da=async ie=>{var Je;te.value=ie;const Ye=n.itemData,na=Ye==null?void 0:Ye.find(Ne=>(Ne==null?void 0:Ne.key)==="backGroundImage");na?na.contents=ie:Ye==null||Ye.push({key:"backGroundImage",contents:ie}),i("change",{key:"backGroundImage",contents:ie});const fa=ke==null?void 0:ke.value,Re=n==null?void 0:n.index,Ie=(Je=X==null?void 0:X.value)==null?void 0:Je.plat_id;if(!(!fa||!Ie||!Re||!ie))try{await R.pageBatchAddApi({platId:parseInt(Ie),changeContents:[{tableName:`content_${fa}`,tableContents:[{backgroundImg_url:ie,relatedForm_id:String(Re)}]}],user_unique_id:"0"})}catch(Ne){console.error("保存背景图片记录失败:",Ne),Xa.ElMessage.error("背景图片记录保存失败")}},Ha=async ie=>{var na,fa,Re,Ie,Je,Ne,_e,$a,wl,el,Pl,bl,Hl,ll,jl;let Ye=[];if((na=ie==null?void 0:ie.toString())!=null&&na.includes(".urdf")){if(ie.includes(",")){Xa.ElMessage.error("当前版本仅允许单个urdf预览!");return}g.value=[{url:ie,extension:d(ie)}],b.value=!0,y.value=!0;return}if((fa=ie==null?void 0:ie.toString())!=null&&fa.includes(".stl")||(Re=ie==null?void 0:ie.toString())!=null&&Re.includes(".STL")||(Ie=ie==null?void 0:ie.toString())!=null&&Ie.includes(".obj")||(Je=ie==null?void 0:ie.toString())!=null&&Je.includes(".mtl")){const Jl=((Ne=ie==null?void 0:ie.toString())==null?void 0:Ne.split(",")).map(Xl=>({url:Xl,extension:d(Xl)}));g.value=Jl,b.value=!1,y.value=!0;return}if((_e=ie==null?void 0:ie.toString())!=null&&_e.includes(".stl")||($a=ie==null?void 0:ie.toString())!=null&&$a.includes(".STL")||(wl=ie==null?void 0:ie.toString())!=null&&wl.includes(".obj")||(el=ie==null?void 0:ie.toString())!=null&&el.includes(".mtl")){let Ga,Jl=[],Xl={};if(Array.isArray(ie)?Ga=ie:Ga=ie==null?void 0:ie.split(","),Ga==null||Ga.forEach(ar=>{ar.includes(".mtl")?Jl.push(ar):Xl.blob=Xl.blob?Xl.blob+","+ar:ar}),(Jl==null?void 0:Jl.length)>0&&(Xl.mtlBlobs=Jl),(bl=(Pl=Object.values(Xl))==null?void 0:Pl[0])!=null&&bl.includes("http:"))Ye.push(Xl);else{const ar=new Blob([Xl.blob],{type:"application/octet-stream;charset=UTF-8"});let Sl=URL.createObjectURL(ar),pr="";(Hl=ie==null?void 0:ie.split("/"))==null||Hl.forEach((ga,ol)=>{var vl;ol===((vl=ie==null?void 0:ie.split("/"))==null?void 0:vl.length)-1&&(pr=ga)}),(ll=Xl.blob)!=null&&ll.includes(".stl")&&(pr=(pr==null?void 0:pr.replaceAll(">",""))+".urdf"),_.value=[{name:pr,blobUrl:Sl}],H.value=!0}}else{const Ga=R.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Jl=await Xa.axios.get(ie,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Ga.close()}),Xl=new Blob([Jl.data],{type:"application/octet-stream;charset=UTF-8"});let ar=URL.createObjectURL(Xl),Sl="";(jl=ie==null?void 0:ie.split("/"))==null||jl.forEach((pr,ga)=>{var ol;ga===((ol=ie==null?void 0:ie.split("/"))==null?void 0:ol.length)-1&&(Sl=pr)}),_.value=[{name:Sl,blobUrl:ar}],H.value=!0}(Ye==null?void 0:Ye.length)>0&&E.setBlobUrls(Ye)},sa=()=>{H.value=!1},He=ie=>{var Ie,Je,Ne,_e;const Ye=(Je=(Ie=ul.safeClone(n.itemData))==null?void 0:Ie.find($a=>($a==null?void 0:$a.key)==="formContent"))==null?void 0:Je.contents,na=ul.safeClone(ie.content);let fa={};na&&((Ne=Object.values(na))==null?void 0:Ne.length)>0&&((_e=Object.values(na))==null||_e.forEach(($a,wl)=>{fa[Ye[wl].key]=$a}));const Re={content:fa,index:n==null?void 0:n.index,buttonName:ie==null?void 0:ie.buttonName};i("change",Re)};e.computed(()=>"http://222.92.178.198:62001");const ha=async ie=>{var Pl,bl,Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr,ga,ol,vl,Dl,Ua;if(!ie)return;(bl=(Pl=n==null?void 0:n.itemData)==null?void 0:Pl.find(Sa=>(Sa==null?void 0:Sa.key)==="parentFormPath"))==null||bl.contents;let Ye=ue.value;(Ye==null?void 0:Ye.length)>0&&(Ye=Ye==null?void 0:Ye.map(Sa=>{var Me,oa,Ya,me;let rl=(Me=Sa==null?void 0:Sa.key)==null?void 0:Me.split("/");return(n==null?void 0:n.compName)===(rl==null?void 0:rl[0])&&(oa=u.value)!=null&&oa.find(_a=>(_a==null?void 0:_a.prop)===(rl==null?void 0:rl[1]))&&(Sa.value=(me=(Ya=u.value)==null?void 0:Ya.find(_a=>(_a==null?void 0:_a.prop)===(rl==null?void 0:rl[1])))==null?void 0:me.value),Sa}),ze.setTableViewContents(Ye));const na=ul.safeClone(n.itemData);let fa=na==null?void 0:na.map(Sa=>{var rl;return(Sa==null?void 0:Sa.key)==="formContent"&&((rl=Sa.contents)==null||rl.map((Me,oa)=>{var Ya,me,_a,Pa,pl,Il,Qa,kl,Ma,aa,ma,ja,xa,Ul,Gl,Da,Rl,Fr,Dr,Qe,La;return Me.type=(me=(Ya=u.value)==null?void 0:Ya.find(hl=>(hl==null?void 0:hl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:me.type,Me.options=Me!=null&&Me.options?Me.options:((pl=(Pa=(_a=Me==null?void 0:Me.key)==null?void 0:_a.split("$"))==null?void 0:Pa[1])==null?void 0:pl.length)>0?(Ma=(kl=hd((Qa=(Il=Me==null?void 0:Me.key)==null?void 0:Il.split("$"))==null?void 0:Qa[1]))==null?void 0:kl.split(","))==null?void 0:Ma.map(hl=>({label:hl,value:hl})):[],(aa=Me==null?void 0:Me.key)!=null&&aa.includes("$")&&(Me.key=(ja=(ma=Me==null?void 0:Me.key)==null?void 0:ma.split("$"))==null?void 0:ja[0]),Me.signature=(Ul=(xa=u.value)==null?void 0:xa.find(hl=>(hl==null?void 0:hl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:Ul.signature,Me.isLoginUser=(Da=(Gl=u.value)==null?void 0:Gl.find(hl=>(hl==null?void 0:hl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:Da.isLoginUser,Me.value=(Rl=Object.values(ie))==null?void 0:Rl[oa],Me.isFormColHidden=(Dr=(Fr=u.value)==null?void 0:Fr.find(hl=>(hl==null?void 0:hl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:Dr.isFormColHidden,Me.isHideInForm=(La=(Qe=u.value)==null?void 0:Qe.find(hl=>(hl==null?void 0:hl.prop)===(Me==null?void 0:Me.prop)))==null?void 0:La.isHideInForm,Me})),Sa}),Re=u.value,Ie=(ll=(Hl=ul.safeClone(fa))==null?void 0:Hl.find(Sa=>(Sa==null?void 0:Sa.key)==="formContent"))==null?void 0:ll.contents;if(Re=Re==null?void 0:Re.map(Sa=>{var rl,Me;return(Sa==null?void 0:Sa.type)==="Select"&&((rl=Sa==null?void 0:Sa.allSelectionContents)==null?void 0:rl.length)>0&&(Sa.contactValue=ie),Sa.value=(Me=Ie==null?void 0:Ie.find((oa,Ya)=>((oa==null?void 0:oa.id)??Ya)===(Sa==null?void 0:Sa.id)))==null?void 0:Me.value,Sa}),!pe.value){i("contentChange",{contents:fa,index:n.index});return}let Je="",Ne=(Jl=(Ga=(jl=ul.safeClone(fa))==null?void 0:jl.find(Sa=>(Sa==null?void 0:Sa.key)==="formContent"))==null?void 0:Ga.contents)==null?void 0:Jl.find((Sa,rl)=>{var Me,oa,Ya;return(Sa==null?void 0:Sa.label)===ee.value||rl.toString()===((Ya=(oa=(Me=ee.value)==null?void 0:Me.split("t"))==null?void 0:oa[1])==null?void 0:Ya.toString())}),_e=(Xl=Ne==null?void 0:Ne.optionUrl)==null?void 0:Xl.menuSelect,$a=!0;if((pr=(Sl=(ar=ul.safeClone(fa))==null?void 0:ar.find(Sa=>(Sa==null?void 0:Sa.key)==="formContent"))==null?void 0:Sl.contents)==null||pr.forEach(Sa=>{var rl,Me,oa,Ya,me,_a;$a&&((oa=(Me=(rl=Sa==null?void 0:Sa.optionUrl)==null?void 0:rl.groupSelect)==null?void 0:Me[1])!=null&&oa.includes("["))&&(Je=(me=(Ya=Sa==null?void 0:Sa.optionUrl)==null?void 0:Ya.groupSelect)==null?void 0:me[1],JSON.stringify(_e)===JSON.stringify((_a=Sa==null?void 0:Sa.optionUrl)==null?void 0:_a.menuSelect)&&($a=!1))}),(ga=Ne==null?void 0:Ne.optionUrl)!=null&&ga.menuSelect&&pe.value){let Sa=await zt(Ne),rl,Me=(ol=Ne==null?void 0:Ne.optionUrl)==null?void 0:ol.menuSelect;if(Sa==null||Sa.forEach(oa=>{var Ya,me,_a,Pa,pl,Il,Qa,kl,Ma,aa;Je===((me=(Ya=Ne==null?void 0:Ne.optionUrl)==null?void 0:Ya.groupSelect)==null?void 0:me[1])&&((pl=(Pa=(_a=Ne==null?void 0:Ne.optionUrl)==null?void 0:_a.groupSelect)==null?void 0:Pa[1])!=null&&pl.includes("["))&&((aa=ul.safeClone(oa))==null?void 0:aa[(Ma=(kl=(Qa=(Il=Ne==null?void 0:Ne.optionUrl)==null?void 0:Il.groupSelect)==null?void 0:Qa[1])==null?void 0:kl.replaceAll("[",""))==null?void 0:Ma.replaceAll("]","")])===(Ne==null?void 0:Ne.value)&&(rl=oa)}),rl){let oa=ul.safeClone(Re);oa=oa==null?void 0:oa.map(me=>{var _a,Pa,pl,Il,Qa,kl,Ma,aa,ma,ja,xa;return(rl!=null&&rl[me==null?void 0:me.label]||rl!=null&&rl[(Il=(pl=(Pa=(_a=me==null?void 0:me.optionUrl)==null?void 0:_a.groupSelect)==null?void 0:Pa[1])==null?void 0:pl.replaceAll("[",""))==null?void 0:Il.replaceAll("]","")])&&((Ma=(kl=(Qa=me==null?void 0:me.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:kl[1])!=null&&Ma.includes("["))&&Me!=null&&Me.every(Ul=>{var Gl,Da;return(Da=(Gl=me==null?void 0:me.optionUrl)==null?void 0:Gl.menuSelect)==null?void 0:Da.includes(Ul)})&&(me.value=(rl==null?void 0:rl[me==null?void 0:me.label])||(rl==null?void 0:rl[(xa=(ja=(ma=(aa=me==null?void 0:me.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:ma[1])==null?void 0:ja.replaceAll("[",""))==null?void 0:xa.replaceAll("]","")]),Array.isArray(me.value)&&me.value.every(Ul=>(Ul==null?void 0:Ul.url)&&(Ul==null?void 0:Ul.name))&&(me.type="Upload")),me}),oa=oa==null?void 0:oa.map(me=>{var _a,Pa,pl;return(_a=me==null?void 0:me.optionUrl)!=null&&_a.oldMenuSelect&&(me.optionUrl.menuSelect=(pl=(Pa=ul.safeClone(me))==null?void 0:Pa.optionUrl)==null?void 0:pl.oldMenuSelect),me}),u.value=ul.safeClone(oa);let Ya=ul.safeClone(oa);Ya=Ya==null?void 0:Ya.map(me=>{var _a,Pa,pl,Il,Qa,kl;return(Pa=(_a=me==null?void 0:me.optionUrl)==null?void 0:_a.menuSelect)!=null&&Pa.some(Ma=>Ma==null?void 0:Ma.includes("["))&&(me.optionUrl.oldMenuSelect=(Il=(pl=ul.safeClone(me))==null?void 0:pl.optionUrl)==null?void 0:Il.menuSelect,me.optionUrl.menuSelect=(kl=(Qa=me==null?void 0:me.optionUrl)==null?void 0:Qa.menuSelect)==null?void 0:kl.map(Ma=>{var aa,ma,ja,xa;if(Ma!=null&&Ma.includes("[")){let Ul=(ma=(aa=Ma==null?void 0:Ma.replaceAll("[","").replaceAll("]",""))==null?void 0:aa.split(":"))==null?void 0:ma[1];Ma=(xa=(ja=ul.safeClone(oa))==null?void 0:ja.find(Gl=>(Gl==null?void 0:Gl.label)===Ul))==null?void 0:xa.value}return Ma})),me}),u.value=Ya}else u.value=Re;fa=fa==null?void 0:fa.map(oa=>{var Ya;return(oa==null?void 0:oa.key)==="formContent"&&(oa.contents=(Ya=oa.contents)==null?void 0:Ya.map(me=>{var _a,Pa,pl,Il;return me.value=((Pa=(_a=u.value)==null?void 0:_a.find(Qa=>(Qa==null?void 0:Qa.label)===(me==null?void 0:me.key)))==null?void 0:Pa.value)??(me==null?void 0:me.value),me.type=((Il=(pl=u.value)==null?void 0:pl.find(Qa=>(Qa==null?void 0:Qa.prop)===(me==null?void 0:me.key)))==null?void 0:Il.type)??(me==null?void 0:me.type),me})),oa})}pe.value=!1,i("contentChange",{contents:fa,index:n.index});let wl=[],el=[];if((Dl=ul.safeClone((vl=fa==null?void 0:fa.find(Sa=>(Sa==null?void 0:Sa.key)==="formContent"))==null?void 0:vl.contents))==null||Dl.forEach(Sa=>{var rl;Array.isArray(Sa==null?void 0:Sa.value)&&((rl=Sa==null?void 0:Sa.value)!=null&&rl.find(Me=>{var oa;return(oa=Me==null?void 0:Me.url)==null?void 0:oa.includes(".obj")}))&&(el=Sa==null?void 0:Sa.value)}),(el==null?void 0:el.length)>0){const Sa=(Ua=ul.safeClone(el))==null?void 0:Ua.filter(rl=>{var Me;return(Me=rl==null?void 0:rl.url)==null?void 0:Me.includes(".obj")});Sa==null||Sa.forEach(rl=>{var oa,Ya,me,_a;const Me=(oa=el==null?void 0:el.filter(Pa=>{var pl;return(Pa==null?void 0:Pa.name)===(rl==null?void 0:rl.name)&&((pl=Pa==null?void 0:Pa.url)==null?void 0:pl.includes(".mtl"))}))==null?void 0:oa.map(Pa=>Pa==null?void 0:Pa.url);wl.push({objUrl:rl==null?void 0:rl.url,mtlUrls:((Ya=el==null?void 0:el.filter(Pa=>{var pl;return(Pa==null?void 0:Pa.name)===(rl==null?void 0:rl.name)&&((pl=Pa==null?void 0:Pa.url)==null?void 0:pl.includes(".mtl"))}))==null?void 0:Ya.length)===1?(_a=(me=el==null?void 0:el.filter(Pa=>{var pl;return(Pa==null?void 0:Pa.name)===(rl==null?void 0:rl.name)&&((pl=Pa==null?void 0:Pa.url)==null?void 0:pl.includes(".mtl"))}))==null?void 0:me[0])==null?void 0:_a.url:Me})}),E.setObjUrl(wl)}},ea=(ie,Ye,na)=>{let fa="";const Re=Ye==null?void 0:Ye.map(Ie=>{var Je;return(Je=Ie==null?void 0:Ie.value)==null?void 0:Je.pageData});return Re==null||Re.forEach(Ie=>{var Je;(Ie==null?void 0:Ie.name)===(ie==null?void 0:ie[0])&&((Je=Ie==null?void 0:Ie.compData)==null||Je.forEach(Ne=>{var _e;(Ne==null?void 0:Ne.key)==="formContent"&&((_e=Ne==null?void 0:Ne.contents)==null||_e.forEach($a=>{var wl;($a==null?void 0:$a.prop)===(ie==null?void 0:ie[1])&&(fa=($a==null?void 0:$a.value)===""?re.judgeContents((wl=ul.safeClone($a))==null?void 0:wl.optionUrl,na):$a==null?void 0:$a.value)}))}))}),fa},$e=(ie,Ye,na,fa)=>{var Ne,_e;let Re="",Ie="";(Ne=ul.safeClone(Ye))==null||Ne.forEach(($a,wl)=>{$a!=null&&$a.includes("[")?Ie=Ie+xe.value+ie[wl]:Ie=Ie===""?Ie+$a:Ie+"/"+$a});let Je=(_e=fa[Ie])==null?void 0:_e.map($a=>{var wl;return(wl=$a==null?void 0:$a.value)==null?void 0:wl.pageData});return Je==null||Je.forEach($a=>{var wl;($a==null?void 0:$a.name)===(na==null?void 0:na[0])&&((wl=$a==null?void 0:$a.compData)==null||wl.forEach(el=>{var Pl;(el==null?void 0:el.key)==="formContent"&&((Pl=el==null?void 0:el.contents)==null||Pl.forEach(bl=>{(bl==null?void 0:bl.prop)===(na==null?void 0:na[1])&&(Re=bl==null?void 0:bl.value)}))}))}),Re};e.watch(()=>ke==null?void 0:ke.value,async()=>{await ya()},{immediate:!0});const Fe=async ie=>await Ft(ie,"Auto");return e.watch(()=>Be.value,async()=>{var ie;(ie=u.value)!=null&&ie.some(Ye=>(Ye==null?void 0:Ye.functionName)&&(Ye==null?void 0:Ye.functionName)!=="")&&(u.value=await Fe(u.value))},{immediate:!0,deep:!0}),e.watch(()=>n.itemData,async()=>{var Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr,ga,ol,vl,Dl,Ua,Sa,rl,Me,oa,Ya,me,_a,Pa,pl,Il,Qa,kl,Ma,aa,ma,ja,xa,Ul,Gl,Da,Rl,Fr,Dr;const ie=(Hl=n.itemData)==null?void 0:Hl.find(Qe=>(Qe==null?void 0:Qe.key)==="formContent");let Ye=(ll=n.itemData)==null?void 0:ll.find(Qe=>(Qe==null?void 0:Qe.key)==="backGround");Ye&&((jl=Ye==null?void 0:Ye.contents)==null?void 0:jl.length)>0&&(((Jl=(Ga=Ye==null?void 0:Ye.contents)==null?void 0:Ga[0])==null?void 0:Jl.fileType)==="Picture"&&(o.value=((ar=(Xl=Ye==null?void 0:Ye.contents)==null?void 0:Xl[0])==null?void 0:ar.url)??""),((pr=(Sl=Ye==null?void 0:Ye.contents)==null?void 0:Sl[0])==null?void 0:pr.fileType)==="Icon"&&(p.value=((ol=(ga=Ye==null?void 0:Ye.contents)==null?void 0:ga[0])==null?void 0:ol.url)??""),s.value=((Dl=(vl=Ye==null?void 0:Ye.contents)==null?void 0:vl[0])==null?void 0:Dl.position)??"");const na=(Ua=ul.safeClone(n.itemData))==null?void 0:Ua.find(Qe=>(Qe==null?void 0:Qe.key)==="formButton"),fa=(Sa=ul.safeClone(n.itemData))==null?void 0:Sa.find(Qe=>(Qe==null?void 0:Qe.key)==="formFlex"),Re=(rl=ul.safeClone(n.itemData))==null?void 0:rl.find(Qe=>(Qe==null?void 0:Qe.key)==="formWrap"),Ie=(Me=ul.safeClone(n.itemData))==null?void 0:Me.find(Qe=>(Qe==null?void 0:Qe.key)==="enableWrap"),Je=(oa=ul.safeClone(n.itemData))==null?void 0:oa.find(Qe=>(Qe==null?void 0:Qe.key)==="textSize"),Ne=(Ya=ul.safeClone(n.itemData))==null?void 0:Ya.find(Qe=>(Qe==null?void 0:Qe.key)==="textRGBA"),_e=(me=ul.safeClone(n.itemData))==null?void 0:me.find(Qe=>(Qe==null?void 0:Qe.key)==="textBackRGBA"),$a=(_a=ul.safeClone(n.itemData))==null?void 0:_a.find(Qe=>(Qe==null?void 0:Qe.key)==="backGround"),wl=(Pa=ul.safeClone(n.itemData))==null?void 0:Pa.find(Qe=>(Qe==null?void 0:Qe.key)==="backGroundImage");(Re==null?void 0:Re.contents)==="纵向"?v.value=!1:v.value=!0;const el=Number(Je==null?void 0:Je.contents);O.value=Number.isNaN(el)?void 0:el,Q.value=Ne==null?void 0:Ne.contents,J.value=_e==null?void 0:_e.contents,ye.value=$a==null?void 0:$a.contents,te.value=wl==null?void 0:wl.contents;const Pl=Ie==null?void 0:Ie.contents;if(Pl===void 0?M.value=mi.BLOCK:typeof Pl=="boolean"?M.value=Pl?mi.ORDINARY:mi.BLOCK:M.value=Pl,U.value=typeof(fa==null?void 0:fa.contents)!="boolean"?!(!(fa!=null&&fa.contents)===""||((pl=fa==null?void 0:fa.contents)==null?void 0:pl.toUpperCase())==="VERTICAL"):fa==null?void 0:fa.contents,((Il=ie==null?void 0:ie.contents)==null?void 0:Il.length)>0&&Array.isArray(ie==null?void 0:ie.contents)){let Qe=n.allMapContents;const La=(kl=(Qa=ul.safeClone(ie))==null?void 0:Qa.contents)==null?void 0:kl.map((Ve,Zl)=>{var Wr,Nr,Br,gn,Sn,Cn,mn,On,nn,Tn,Vn,on,Fn;let ql=(Ve==null?void 0:Ve.label)??(Ve==null?void 0:Ve.key)??"";Ve==null||Ve.type;let Jr=(Ve==null?void 0:Ve.options)??[];if((Wr=Ve==null?void 0:Ve.key)!=null&&Wr.includes("$")&&(ql=(Nr=ul.safeClone(Ve==null?void 0:Ve.key).split("$"))==null?void 0:Nr[0],((gn=(Br=ul.safeClone(Ve==null?void 0:Ve.key).split("$"))==null?void 0:Br[1])==null?void 0:gn.length)>0)){const[Mr,An]=(Cn=(Sn=ul.safeClone(Ve==null?void 0:Ve.key).split("$"))==null?void 0:Sn[1])==null?void 0:Cn.split(/[()]/);(mn=re.FormType.find(Bn=>(Bn==null?void 0:Bn.key)===Mr))==null||mn.value,((On=An==null?void 0:An.split(","))==null?void 0:On.length)>0&&(Jr=(nn=An==null?void 0:An.split(","))==null?void 0:nn.map(Bn=>({label:Bn,value:Bn})))}let Sr=Ve==null?void 0:Ve.options;((Tn=Ve==null?void 0:Ve.optionUrl)==null?void 0:Tn.selectRelateType)==="自定义绑定"&&(Sr=(on=(Vn=Ve==null?void 0:Ve.optionUrl)==null?void 0:Vn.defaultSelect)==null?void 0:on.map(Mr=>({label:Mr,value:Mr})));let Ql=(Ve==null?void 0:Ve.menuPath)??[],Er=(Ve==null?void 0:Ve.groups)??[],er=(Ve==null?void 0:Ve.columns)??[],$l=!1,or=(Ve==null?void 0:Ve.isFormColHidden)??!1,lr="",Wl=Ve!=null&&Ve.value?Ve.value:(Sr==null?void 0:Sr.length)>0?(Fn=Sr==null?void 0:Sr[0])==null?void 0:Fn.value:(Ve==null?void 0:Ve.value)??"",Nl=!1,Pr="Input";return((Sr==null?void 0:Sr.length)>0||(Ql==null?void 0:Ql.length)>0)&&(Pr="Select"),(Array.isArray(lr)&&(lr!=null&&lr.every(Mr=>(Mr==null?void 0:Mr.name)&&(Mr==null?void 0:Mr.url)))||Array.isArray(Wl)&&(Wl!=null&&Wl.every(Mr=>(Mr==null?void 0:Mr.name)&&(Mr==null?void 0:Mr.url))))&&(Pr="upload"),Ve!=null&&Ve.isMainUrl&&(Pr="Url"),{label:ql??"",name:ql??"t"+Zl,prop:ql??ul.safeClone(Ve==null?void 0:Ve.key),type:(Ve==null?void 0:Ve.type)??Pr,value:(Ve==null?void 0:Ve.type)==="Date"&&Wl===""?new Date:Wl,id:(Ve==null?void 0:Ve.id)??Zl,contents:(Sr==null?void 0:Sr.length)>0?Sr:Jr??[],width:(Ve==null?void 0:Ve.width)??1,isLoginUser:$l,config:Ve==null?void 0:Ve.config,optionUrl:(Ve==null?void 0:Ve.optionUrl)??Ve,isFormColHidden:or,isHideInForm:(Ve==null?void 0:Ve.isHideInForm)??!1,signature:Nl,isMain:Ve==null?void 0:Ve.isMain,required:(Ve==null?void 0:Ve.required)??!1,isMainUrl:Ve==null?void 0:Ve.isMainUrl,operable:(Ve==null?void 0:Ve.operable)??!1,disabled:(Ve==null?void 0:Ve.disabled)??!1,isSync:Ve==null?void 0:Ve.isSync,menus:Ql,groups:Er,words:er,allSelectionContents:Ve==null?void 0:Ve.allContents,filterContent:Ve==null?void 0:Ve.filterContents,isNoClick:(Ve==null?void 0:Ve.isNoClick)??!1,functionName:Ve==null?void 0:Ve.functionName,functionRelatedWords:Ve==null?void 0:Ve.functionRelatedWords,calculatorFilter:Ve==null?void 0:Ve.calculatorFilter,filters:Ve==null?void 0:Ve.filters}}),hl=La==null?void 0:La.map(Ve=>Ve==null?void 0:Ve.value);let Ll="";hl==null||hl.forEach(Ve=>{Ve!==""&&Ve!==void 0&&(Ll=Ll===""?Ve:Ll+"/"+Ve)}),k.setSelectArray(hl),k.setSelectString(Ll);let Ba=(Ma=ul.safeClone(La))==null?void 0:Ma.map(Ve=>(Ve!=null&&Ve.value&&re.IsJson(Ve==null?void 0:Ve.value)&&Array.isArray(JSON.parse(Ve==null?void 0:Ve.value))&&(Ve.value=JSON.parse(Ve.value)),Ve)),Yr={};Ba==null||Ba.forEach(Ve=>{Yr[Ve.label]=Ve==null?void 0:Ve.value}),Ba=Ba==null?void 0:Ba.map(Ve=>{var Zl,ql,Jr,Sr,Ql,Er,er,$l,or;if((Ve==null?void 0:Ve.type)==="Select"&&((Zl=Ve==null?void 0:Ve.allSelectionContents)==null?void 0:Zl.length)>0&&(Ve.contactValue=Yr),(Jr=(ql=Ve==null?void 0:Ve.optionUrl)==null?void 0:ql.menuSelect)!=null&&Jr.some(lr=>lr==null?void 0:lr.includes("["))){let lr="";Ve.optionUrl.oldMenuSelect=(Ql=(Sr=ul.safeClone(Ve))==null?void 0:Sr.optionUrl)==null?void 0:Ql.menuSelect,Ve.optionUrl.menuSelect=(er=(Er=Ve==null?void 0:Ve.optionUrl)==null?void 0:Er.menuSelect)==null?void 0:er.map(Wl=>{var Nl,Pr,rr,Wr,Nr,Br;if(Wl!=null&&Wl.includes("[")){let gn=(Pr=(Nl=Wl==null?void 0:Wl.replaceAll("[","").replaceAll("]",""))==null?void 0:Nl.split(":"))==null?void 0:Pr[1];lr=ea((rr=Wl==null?void 0:Wl.replaceAll("[","").replaceAll("]",""))==null?void 0:rr.split(":"),Qe==null?void 0:Qe[oe.value],Qe),Wl=((Nr=(Wr=ul.safeClone(Ba))==null?void 0:Wr.find(Sn=>(Sn==null?void 0:Sn.label)===gn))==null?void 0:Nr.value)||ea((Br=Wl==null?void 0:Wl.replaceAll("[","").replaceAll("]",""))==null?void 0:Br.split(":"),Qe==null?void 0:Qe[oe.value],Qe)}return Wl}),lr!==""&&Ve.value===""&&(Ve.value=$e(Ve.optionUrl.menuSelect,Ve.optionUrl.oldMenuSelect,($l=Ve==null?void 0:Ve.optionUrl)==null?void 0:$l.groupSelect,Qe),Array.isArray(Ve.value)&&((or=Ve.value)!=null&&or.every(Wl=>Wl==null?void 0:Wl.url))&&(Ve.type="UPLOAD"))}return Ve}),u.value=Ba,I.value=((aa=u.value)==null?void 0:aa.every(Ve=>Ve==null?void 0:Ve.disabled))||ve.value===oe.value,he.value=(ma=u.value)==null?void 0:ma.every(Ve=>Ve==null?void 0:Ve.operable),Ge.value=(ja=u.value)==null?void 0:ja.map(Ve=>Ve==null?void 0:Ve.label);let ln=[],zr=[];if((xa=ul.safeClone(u.value))==null||xa.forEach(Ve=>{var Zl;Array.isArray(Ve==null?void 0:Ve.value)&&((Zl=Ve==null?void 0:Ve.value)!=null&&Zl.find(ql=>{var Jr;return(Jr=ql==null?void 0:ql.url)==null?void 0:Jr.includes(".obj")}))&&(zr=Ve==null?void 0:Ve.value)}),(zr==null?void 0:zr.length)>0){const Ve=(Ul=ul.safeClone(zr))==null?void 0:Ul.filter(Zl=>{var ql;return(ql=Zl==null?void 0:Zl.url)==null?void 0:ql.includes(".obj")});Ve==null||Ve.forEach(Zl=>{var Jr,Sr,Ql,Er;const ql=(Jr=zr==null?void 0:zr.filter(er=>{var $l;return(er==null?void 0:er.name)===(Zl==null?void 0:Zl.name)&&(($l=er==null?void 0:er.url)==null?void 0:$l.includes(".mtl"))}))==null?void 0:Jr.map(er=>er==null?void 0:er.url);ln.push({objUrl:Zl==null?void 0:Zl.url,mtlUrls:((Sr=zr==null?void 0:zr.filter(er=>{var $l;return(er==null?void 0:er.name)===(Zl==null?void 0:Zl.name)&&(($l=er==null?void 0:er.url)==null?void 0:$l.includes(".mtl"))}))==null?void 0:Sr.length)===1?(Er=(Ql=zr==null?void 0:zr.filter(er=>{var $l;return(er==null?void 0:er.name)===(Zl==null?void 0:Zl.name)&&(($l=er==null?void 0:er.url)==null?void 0:$l.includes(".mtl"))}))==null?void 0:Ql[0])==null?void 0:Er.url:ql})}),E.setObjUrl(ln)}(Gl=ul.safeClone(u.value))==null||Gl.forEach(Ve=>{var Zl,ql,Jr,Sr,Ql,Er,er,$l,or,lr,Wl,Nl,Pr;if((ql=(Zl=Ve==null?void 0:Ve.value)==null?void 0:Zl.toString())!=null&&ql.includes(".stl")||(Sr=(Jr=Ve==null?void 0:Ve.value)==null?void 0:Jr.toString())!=null&&Sr.includes(".STL")||(Er=(Ql=Ve==null?void 0:Ve.value)==null?void 0:Ql.toString())!=null&&Er.includes(".obj")||($l=(er=Ve==null?void 0:Ve.value)==null?void 0:er.toString())!=null&&$l.includes(".mtl")||(lr=(or=Ve==null?void 0:Ve.value)==null?void 0:or.toString())!=null&&lr.includes(".urdf")){let rr={},Wr=[],Nr;Array.isArray(Ve==null?void 0:Ve.value)?Nr=Ve==null?void 0:Ve.value:Nr=(Wl=Ve==null?void 0:Ve.value)==null?void 0:Wl.split(","),Nr==null||Nr.forEach(Br=>{Br.includes(".mtl")?Wr.push(Br):rr.blob=rr.blob==="undefined"?Br:rr.blob+","+Br}),(Wr==null?void 0:Wr.length)>0&&(rr.mtlBlobs=Wr),(Pr=(Nl=Object.values(rr))==null?void 0:Nl[0])!=null&&Pr.includes("http:")}})}else u.value=[];let bl=ue.value;if((bl==null?void 0:bl.length)>0&&(bl=bl==null?void 0:bl.map(Qe=>{var hl,Ll,Ba,Yr;let La=(hl=Qe==null?void 0:Qe.key)==null?void 0:hl.split("/");return(n==null?void 0:n.compName)===(La==null?void 0:La[0])&&(Ll=u.value)!=null&&Ll.find(ln=>(ln==null?void 0:ln.prop)===(La==null?void 0:La[1]))&&(Qe.value=(Yr=(Ba=u.value)==null?void 0:Ba.find(ln=>(ln==null?void 0:ln.prop)===(La==null?void 0:La[1])))==null?void 0:Yr.value),Qe}),ze.setTableViewContents(bl)),n!=null&&n.formRules)C.value=n==null?void 0:n.formRules;else{let Qe={};(Da=ul.safeClone(u).value)==null||Da.forEach(La=>{((La==null?void 0:La.isMain)===!0||(La==null?void 0:La.required)===!0)&&(Qe[(La==null?void 0:La.prop)??(La==null?void 0:La.name)]=[{required:!0,message:`${(La==null?void 0:La.label)||(La==null?void 0:La.prop)||(La==null?void 0:La.name)}不能为空`}])}),C.value=Qe}if(((Rl=na==null?void 0:na.contents)==null?void 0:Rl.length)>0){const Qe=[];(Fr=na==null?void 0:na.contents)==null||Fr.forEach((La,hl)=>{(La==null?void 0:La.label)!==""&&Qe.push({label:(La==null?void 0:La.label)??"",id:(La==null?void 0:La.id)??hl,type:(La==null?void 0:La.type)??"",background:La==null?void 0:La.background})}),D.value=Qe}else D.value=[];(Dr=u.value)!=null&&Dr.some(Qe=>(Qe==null?void 0:Qe.functionName)&&(Qe==null?void 0:Qe.functionName)!=="")&&(u.value=await Fe(u.value))},{deep:!0,immediate:!0}),e.watch(()=>ve.value,ie=>{I.value=ie===oe.value},{immediate:!0}),(ie,Ye)=>{var Ne;const na=e.resolveComponent("svg-icon"),fa=e.resolveComponent("el-switch"),Re=e.resolveComponent("el-checkbox"),Ie=e.resolveComponent("el-popover"),Je=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",Uh,[M.value===e.unref(mi).TEXT?(e.openBlock(),e.createBlock(nu,{key:0,itemData:a.itemData,compName:a.compName,calculator:a.calculator,fields:u.value,textSize:O.value,textColor:Q.value,backGround:ye.value,textBackColor:J.value,backGroundImage:te.value,disabled:I.value||Ke(),iconUrl:p.value,"onUpdate:backGroundImage":da,backgroundUrl:o.value,backgroundPosition:s.value},null,8,["itemData","compName","calculator","fields","textSize","textColor","backGround","textBackColor","backGroundImage","disabled","iconUrl","backgroundUrl","backgroundPosition"])):M.value===e.unref(mi).BLOCK?(e.openBlock(),e.createBlock(k0,{key:1,items:(Ne=u.value)==null?void 0:Ne.map(_e=>({label:_e!=null&&_e.isHideInForm?"":_e==null?void 0:_e.label,value:_e==null?void 0:_e.value,width:(_e==null?void 0:_e.width)??1,field:_e,filters:_e==null?void 0:_e.filters})),textSize:O.value,textColor:Q.value,backGround:ye.value,iconUrl:p.value,textBackColor:J.value,backGroundImage:te.value,disabled:I.value||Ke(),calculator:a.calculator,"onUpdate:backGroundImage":da,backgroundUrl:o.value,backgroundPosition:s.value},null,8,["items","textSize","textColor","backGround","iconUrl","textBackColor","backGroundImage","disabled","calculator","backgroundUrl","backgroundPosition"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":M.value===e.unref(mi).ORDINARY})},[e.createVNode(ul.ssForm,{rowContents:u.value,formRules:C.value,buttonValue:D.value,isRowFlex:!1,isEnableWrap:!0,textSize:O.value,textColor:Q.value,backGround:ye.value,backGroundImage:te.value,onOnButtonClick:He,onChange:ha,formDisabled:I.value||Ke(),formLabelsOperable:he.value,isButtonRow:v.value,onPreview:Ha,onBlurChange:Ta,style:e.normalizeStyle({backGroundImage:o.value!==""?`url("${o.value}")`:void 0}),onHandleColEditChange:Ea,onHandleColTypeChange:Ae,onRouteUrl:ia,onClickTrigger:ua,"onUpdate:backGroundImage":da},{operateCol:e.withCtx(({renderColumns:_e,formDisabled:$a,formLabelsOperable:wl})=>[e.createVNode(Ie,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:fe},{reference:e.withCtx(()=>[e.createElementVNode("span",qh,[e.createVNode(na,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",Wh,[Ye[1]||(Ye[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(fa,{"model-value":$a,"active-text":"禁用","inactive-text":"",onChange:F,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(fa,{"model-value":wl,"active-text":"编辑所有标签","inactive-text":"",onChange:le},null,8,["model-value"]),Ye[2]||(Ye[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(Je,{modelValue:Ge.value,"onUpdate:modelValue":Ye[0]||(Ye[0]=el=>Ge.value=el),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:We,onChange:be},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_e,el=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:el.label},[e.createVNode(Re,{value:el.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(el.label),1)]),_:2},1032,["value"]),e.createVNode(Ie,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(na,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Pl;return[e.createElementVNode("div",Gh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Pl=Object.keys(el))==null?void 0:Pl.filter(bl=>{var Hl;return(Hl=V.value)==null?void 0:Hl.find(ll=>(ll==null?void 0:ll.value)===bl)}),bl=>{var Hl,ll;return e.openBlock(),e.createElementBlock("div",{key:bl},[e.createVNode(ul._sfc_main$1,{value:el==null?void 0:el[bl],"active-text":(ll=(Hl=V.value)==null?void 0:Hl.find(jl=>(jl==null?void 0:jl.value)===bl))==null?void 0:ll.label,inactiveText:"",onChange:jl=>Fa(jl,bl,el)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",Kh,[e.createVNode(na,{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)),H.value?(e.openBlock(),e.createBlock(ul.ssFilePreview,{key:3,fileDataList:_.value,onDestroy:sa},null,8,["fileDataList"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(Vr.ssDialog,{key:4,visible:y.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(Do.ThreeViewerHost,{files:g.value,onGetAnimationData:ie.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},Us=fr._export_sfc(Yh,[["__scopeId","data-v-6e8f9fb6"]]),Jh={class:"table-header-child"},Xh={class:"table-header-child-main"},Zh={class:"table-header-child-content"},Qh={class:"table-header-child-content-item"},ev={class:"fix-button"},av={key:0},lv={class:"form-content"},rv={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(!1),o=e.ref(""),p=re.useTableComp(R.pinia),{tableIndex:s}=R.storeToRefs(p);e.ref(0);const u=e.ref(""),y=e.ref([]),b=e.ref([]),g=_=>{var x;i.value=!0;let S=[];_r==null||_r.forEach(k=>{let E=R.cloneDeep(s.value)+1;p.setTableIndex(E),S.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:_[k.key],id:s.value,contents:k==null?void 0:k.options})}),_!=null&&_.children&&((x=_==null?void 0:_.children)==null?void 0:x.length)>0&&S.push({children:_==null?void 0:_.children,isFormColHidden:!0}),u.value=_==null?void 0:_.id,y.value=S,b.value=S},d=_=>{n("fixChange",R.cloneDeep(_))},C=_=>{n("deleteChange",R.cloneDeep(_))},v=_=>{i.value=!0;let S=[];_r==null||_r.forEach(x=>{let k=R.cloneDeep(s.value)+1;p.setTableIndex(k),S.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:"",id:s.value,contents:x==null?void 0:x.options})}),o.value=_==null?void 0:_.id,y.value=S,b.value=S},H=_=>{let S=R.cloneDeep(b.value);S=S==null?void 0:S.map(x=>(x.children||(x.value=_==null?void 0:_[x.name]),x)),b.value=S},T=()=>{var S,x;y.value=b.value;let _={};if(u.value!=="")_.id=u.value,(S=y.value)==null||S.forEach(k=>{const E=_r==null?void 0:_r.find(M=>(M==null?void 0:M.label)===(k==null?void 0:k.label));E?_[E.key]=k.value:k!=null&&k.children&&k.children.length>0&&(_.children=k.children)}),i.value=!1,n("fixChange",{contents:R.cloneDeep(_),id:o.value,type:"fix"});else{let k=R.cloneDeep(s.value)+1;p.setTableIndex(k),_.id="id"+s.value,(x=y.value)==null||x.forEach(E=>{const M=_r==null?void 0:_r.find(O=>(O==null?void 0:O.label)===(E==null?void 0:E.label));M?_[M.key]=E.value:E!=null&&E.children&&E.children.length>0&&(_.children=E.children)}),i.value=!1,n("fixChange",{contents:R.cloneDeep(_),id:o.value,type:"add"})}u.value="",y.value=[],b.value=[]},j=()=>{i.value=!1,u.value="",o.value="",y.value=[],b.value=[]},D=_=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",_),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(_,S)=>{const x=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Jh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(k,E)=>(e.openBlock(),e.createElementBlock("div",Xh,[e.createElementVNode("div",Zh,[e.createElementVNode("div",Qh,e.toDisplayString(k.label),1),e.createElementVNode("div",ev,[e.createVNode(x,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:M=>v(k)},null,8,["onClick"]),e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:M=>g(k)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:M=>D(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(e.openBlock(),e.createElementBlock("div",av,[e.createVNode(iu,{tableChildContents:k==null?void 0:k.children,onDeleteChange:C,onFixChange:d},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Vr.ssDialog,{visible:i.value,onBeforeDestroy:j,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",lv,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:H},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:j,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:T},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},nv=fr._export_sfc(rv,[["__scopeId","data-v-e0fef72d"]]),iv={class:"table-header-child"},ov={class:"table-header-child-main"},tv={class:"table-header-child-content"},sv={class:"table-header-child-content-item"},cv={class:"fix-button"},uv={key:0},dv={class:"form-content"},pv={class:"dialog-footer"},fv={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(!1),o=e.ref(""),p=re.useTableComp(R.pinia),{tableIndex:s}=R.storeToRefs(p),u=e.ref(""),y=e.ref([]),b=e.ref([]),g=_=>{n("fixChange",R.cloneDeep(_))},d=_=>{var x;i.value=!0;let S=[];_r==null||_r.forEach(k=>{let E=R.cloneDeep(s.value)+1;p.setTableIndex(E),S.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:_[k.key],id:s.value,contents:k==null?void 0:k.options})}),_!=null&&_.children&&((x=_==null?void 0:_.children)==null?void 0:x.length)>0&&S.push({children:_==null?void 0:_.children,isFormColHidden:!0}),u.value=_==null?void 0:_.id,y.value=S,b.value=S},C=_=>{i.value=!0;let S=[];_r==null||_r.forEach(x=>{let k=R.cloneDeep(s.value)+1;p.setTableIndex(k),S.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:"",id:s.value,contents:x==null?void 0:x.options})}),o.value=_==null?void 0:_.id,y.value=S,b.value=S},v=_=>{let S=R.cloneDeep(b.value);S=S==null?void 0:S.map(x=>(x.children||(x.value=_==null?void 0:_[x.name]),x)),b.value=S},H=()=>{var S,x;y.value=b.value;let _={};if(u.value!=="")_.id=u.value,(S=y.value)==null||S.forEach(k=>{const E=_r==null?void 0:_r.find(M=>(M==null?void 0:M.label)===(k==null?void 0:k.label));E?_[E.key]=k.value:k!=null&&k.children&&k.children.length>0&&(_.children=k.children)}),i.value=!1,n("fixChange",{contents:R.cloneDeep(_),id:o.value,type:"fix"});else{let k=R.cloneDeep(s.value)+1;p.setTableIndex(k),_.id="idChild"+s.value,(x=y.value)==null||x.forEach(E=>{const M=_r==null?void 0:_r.find(O=>(O==null?void 0:O.label)===(E==null?void 0:E.label));M?_[M.key]=E.value:E!=null&&E.children&&E.children.length>0&&(_.children=E.children)}),i.value=!1,n("fixChange",{contents:R.cloneDeep(_),id:o.value,type:"add"})}u.value="",y.value=[],b.value=[]},T=()=>{i.value=!1,u.value="",o.value="",y.value=[],b.value=[]},j=_=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",_),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=_=>{n("deleteChange",_)};return(_,S)=>{const x=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",iv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(E,M)=>(e.openBlock(),e.createElementBlock("div",ov,[e.createElementVNode("div",tv,[e.createElementVNode("div",sv,e.toDisplayString(E.label),1),e.createElementVNode("div",cv,[e.createVNode(x,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>C(E)},null,8,["onClick"]),e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>d(E)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>j(E)},null,8,["onClick"])])]),E!=null&&E.children&&E.children.length>0?(e.openBlock(),e.createElementBlock("div",uv,[e.createVNode(nv,{tableChildContents:E==null?void 0:E.children,onDeleteChange:D,onFixChange:g},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Vr.ssDialog,{visible:i.value,onBeforeDestroy:T,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",dv,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:v},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",pv,[e.createVNode(k,{onClick:T,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>S[0]||(S[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(k,{class:"ok-button button",onClick:H,id:"themeButton"},{default:e.withCtx(()=>S[1]||(S[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},iu=fr._export_sfc(fv,[["__scopeId","data-v-ebd68fa1"]]),hv={class:"table-operate-content"},vv={class:"table-operate-item"},mv={class:"operate-title"},yv={class:"operate-content"},gv={class:"fix-content"},bv={class:"fix-content-label"},kv={class:"fix-button"},xv={key:0},wv={class:"operate-title"},_v={class:"operate-content"},Sv={class:"fix-content"},Ev={class:"fix-content-label"},Cv={class:"fix-button"},Tv={class:"operate-title"},Bv={class:"operate-content"},Dv={class:"fix-content"},Nv={class:"fix-content-label"},Av={class:"fix-button"},zv={class:"operate-title"},Mv={class:"operate-content"},Iv={class:"fix-content"},Ov={class:"fix-content-label"},Lv={class:"fix-button"},Rv={class:"operate-content"},$v={style:{display:"flex","justify-content":"space-between"}},Vv={class:"form-content"},Fv={class:"dialog-footer"},Pv={class:"form-content"},Hv={class:"dialog-footer"},jv={class:"form-content"},Uv={class:"dialog-footer"},qv={class:"form-content"},Wv={class:"dialog-footer"},Gv={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.ref([]),o=e.ref(!1),p=e.ref(!1),s=e.ref([]),u=e.ref(!1),y=e.ref([]),b=e.ref(!1),g=e.ref([]),d=e.ref(""),C=e.ref(""),v=e.ref([]),H=e.ref([]),T=e.ref([]),j=e.ref([]),D=e.ref(!1),_=e.ref([]),S=e.ref([]),x=e.ref(0),k=e.ref([]),E=e.ref([]),M=e.ref([]),O=()=>{D.value=!0;let V=[];Jn==null||Jn.forEach(F=>{x.value++,V.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:x.value,contents:F==null?void 0:F.options})}),_.value=V,S.value=V},Q=()=>{var F,le,fe;p.value=!0;let V=[];(fe=(le=(F=re.FormContent)==null?void 0:F.find(be=>(be==null?void 0:be.key)==="Input"))==null?void 0:le.value)==null||fe.forEach(be=>{x.value++,V.push({label:be==null?void 0:be.label,name:(be==null?void 0:be.name)||(be==null?void 0:be.label),type:be.type,value:(be==null?void 0:be.label)==="类型"?"Input":"",id:x.value,contents:be==null?void 0:be.options})}),k.value=V,E.value=V},J=V=>{V||(k.value=E.value)},ye=async V=>{var F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta;if((V==null?void 0:V.类型)!==((le=(F=E.value)==null?void 0:F.find(da=>(da==null?void 0:da.label)==="类型"))==null?void 0:le.value)){let da=[],Ha=await((ua=(be=(fe=re.FormContent)==null?void 0:fe.find(sa=>(sa==null?void 0:sa.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:be.value)==null?void 0:ua.value)?await((Ae=(Ea=(va=re.FormContent)==null?void 0:va.find(sa=>(sa==null?void 0:sa.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:Ea.value)==null?void 0:Ae.value):(Pe=(ia=re.FormContent)==null?void 0:ia.find(sa=>(sa==null?void 0:sa.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:Pe.value;if(Ha==null||Ha.forEach(sa=>{x.value++,da.push({label:sa==null?void 0:sa.label,name:(sa==null?void 0:sa.name)||(sa==null?void 0:sa.label),type:sa.type,value:sa!=null&&sa.属性名?(V==null?void 0:V.prop)||(V==null?void 0:V.name)||(V==null?void 0:V.label):(V==null?void 0:V[sa.label])??"",id:x.value,contents:sa==null?void 0:sa.options,prop:(sa==null?void 0:sa.prop)||(sa==null?void 0:sa.name)||(sa==null?void 0:sa.label)})}),V!=null&&V.菜单选项&&((Fa=V==null?void 0:V.菜单选项)==null?void 0:Fa.length)>0){const sa=await re.menuToContentType(V==null?void 0:V.菜单选项);da=da==null?void 0:da.map(He=>((He==null?void 0:He.name)==="组信息选项"&&(He.contents=sa),He))}E.value=await re.selectToBase(R.cloneDeep(da)),k.value=await re.selectToBase(R.cloneDeep(da))}else{let da=R.cloneDeep(k.value);if(da=da==null?void 0:da.map(Ha=>(Ha.value=V==null?void 0:V[Ha.name],Ha)),V!=null&&V.菜单选项&&((Ta=V==null?void 0:V.菜单选项)==null?void 0:Ta.length)>0){const Ha=await re.menuToContentType(V==null?void 0:V.菜单选项);da=da==null?void 0:da.map(sa=>((sa==null?void 0:sa.name)==="组信息选项"&&(sa.contents=Ha),sa))}da=re.formToOptionsContents(da),E.value=await re.selectToBase(R.cloneDeep(da))}},te=async V=>{await ye(V),k.value=E.value},U=(V,F)=>{if((F==null?void 0:F.type)=="Select"&&(V==null?void 0:V.key)==="selectRelateType"){const le=F==null?void 0:F.optionUrl;return(le==null?void 0:le.selectRelateType)||F[V.key]}if((F==null?void 0:F.type)=="Select"&&(V==null?void 0:V.key)==="menuSelect"){const le=F==null?void 0:F.optionUrl;return(le==null?void 0:le.menuSelect)||F[V.key]}if((F==null?void 0:F.type)=="Select"&&(V==null?void 0:V.key)==="groupSelect"){const le=F==null?void 0:F.optionUrl;return(le==null?void 0:le.groupSelect)||F[V.key]}if((F==null?void 0:F.type)=="Select"&&(V==null?void 0:V.key)==="originalContent")return(F==null?void 0:F.value)||F[V.key];if((F==null?void 0:F.type)=="Select"&&(V==null?void 0:V.key)==="multiple"){const le=F[V.key];return xc(le)?le:V.default}return(V==null?void 0:V.label)==="类型"&&F[V.key]===""?"Input":(V==null?void 0:V.key)==="isFormColHidden"&&!F[V.key]?!1:F[V.key]},q=async V=>{var fe,be,ua,ia,Pe,va,Ea,Ae,Fa;p.value=!0;let F=[];const le=await((ua=(be=(fe=re.FormContent)==null?void 0:fe.find(Ta=>(Ta==null?void 0:Ta.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:be.value)==null?void 0:ua.value)?await((Ae=(Ea=(va=re.FormContent)==null?void 0:va.find(Ta=>(Ta==null?void 0:Ta.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:Ea.value)==null?void 0:Ae.value):(Pe=(ia=re.FormContent)==null?void 0:ia.find(Ta=>(Ta==null?void 0:Ta.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:Pe.value;if(le==null||le.forEach(Ta=>{x.value++,F.push({label:Ta==null?void 0:Ta.label,name:(Ta==null?void 0:Ta.name)||(Ta==null?void 0:Ta.label),type:Ta.type,value:(Ta==null?void 0:Ta.label)==="属性名"?(V==null?void 0:V.prop)||(V==null?void 0:V.name)||(V==null?void 0:V.label):U(Ta,V),id:x.value,contents:Ta==null?void 0:Ta.options})}),V!=null&&V.menuSelect&&((Fa=V==null?void 0:V.menuSelect)==null?void 0:Fa.length)>0){const Ta=await re.menuToContentType(V==null?void 0:V.menuSelect);F=F==null?void 0:F.map(da=>((da==null?void 0:da.name)==="组信息选项"&&(da.contents=Ta),da))}d.value=V==null?void 0:V.id,k.value=await re.selectToBase(re.formToOptionsContents(F)),E.value=await re.selectToBase(re.formToOptionsContents(F))},X=V=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,le;M.value=(F=R.cloneDeep(M.value))==null?void 0:F.filter(fe=>(fe==null?void 0:fe.id)!==(V==null?void 0:V.id)),n("change",(le=R.cloneDeep(r.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="tableToForm"&&(fe.contents=M.value),fe))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ee=()=>{p.value=!1,k.value=[],d.value=""},pe=async()=>{var fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta;k.value=E.value;let V={};d.value!==""?V.id=d.value:(x.value++,V.id="id"+x.value);let F=await((ua=(be=(fe=re.FormContent)==null?void 0:fe.find(da=>{var Ha,sa;return(da==null?void 0:da.key)===(((sa=(Ha=k.value)==null?void 0:Ha.find(He=>(He==null?void 0:He.label)==="类型"))==null?void 0:sa.value)??"label")}))==null?void 0:be.value)==null?void 0:ua.value)??((Pe=(ia=re.FormContent)==null?void 0:ia.find(da=>{var Ha,sa;return(da==null?void 0:da.key)===(((sa=(Ha=k.value)==null?void 0:Ha.find(He=>(He==null?void 0:He.label)==="类型"))==null?void 0:sa.value)??"label")}))==null?void 0:Pe.value);if((va=k.value)==null||va.forEach(da=>{const Ha=F==null?void 0:F.find(sa=>(sa==null?void 0:sa.label)===(da==null?void 0:da.label));Ha&&(V[Ha.key]=da.value)}),V.name=V.label,(Ea=M.value)!=null&&Ea.find(da=>da.id===V.id))M.value=(Ae=M.value)==null?void 0:Ae.map(da=>(da.id===V.id&&(da=V),da));else{let da=R.cloneDeep(M.value);M.value||(M.value=[]),da.push(V),M.value=da}M.value=M.value.map(({id:da,...Ha})=>Ha),p.value=!1,d.value="";let le=R.cloneDeep(r.originalItemContents);(Fa=R.cloneDeep(r.originalItemContents))!=null&&Fa.find(da=>(da==null?void 0:da.key)==="tableToForm")?le=(Ta=R.cloneDeep(r.originalItemContents))==null?void 0:Ta.map(da=>((da==null?void 0:da.key)==="tableToForm"&&(da.contents=M.value),da)):le.push({key:"tableToForm",contents:M.value}),n("change",le)},ze=V=>{D.value=!0;let F=[];Jn==null||Jn.forEach(le=>{x.value++,F.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:V[le.key],id:x.value,contents:le==null?void 0:le.options})}),d.value=V==null?void 0:V.id,_.value=F,S.value=F};e.watch(()=>b.value,()=>{var F,le;let V=R.cloneDeep(r.originalItemContents);(F=R.cloneDeep(r.originalItemContents))!=null&&F.find(fe=>(fe==null?void 0:fe.key)==="page")?V=(le=R.cloneDeep(r.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="page"&&(fe.contents=b.value),fe)):V.push({key:"page",contents:b.value}),n("change",V)},{deep:!0});const ue=V=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,le;H.value=(F=R.cloneDeep(H.value))==null?void 0:F.filter(fe=>(fe==null?void 0:fe.id)!==(V==null?void 0:V.id)),n("change",(le=R.cloneDeep(r.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="extraButton"&&(fe.contents=H.value),fe))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},N=()=>{var le,fe,be,ua,ia;_.value=S.value;let V={};if(d.value!==""?V.id=d.value:(x.value++,V.id="id"+x.value),(le=_.value)==null||le.forEach(Pe=>{const va=Jn==null?void 0:Jn.find(Ea=>(Ea==null?void 0:Ea.label)===(Pe==null?void 0:Pe.label));va?V[va.key]=Pe.value:Pe!=null&&Pe.children&&Pe.children.length>0&&(V.children=Pe.children)}),(fe=H.value)!=null&&fe.find(Pe=>Pe.id===V.id))H.value=(be=H.value)==null?void 0:be.map(Pe=>(Pe.id===V.id&&(Pe=V),Pe));else{let Pe=R.cloneDeep(H.value)??[];Pe.push(V),H.value=Pe}D.value=!1,d.value="";let F=R.cloneDeep(r.originalItemContents);(ua=R.cloneDeep(r.originalItemContents))!=null&&ua.find(Pe=>(Pe==null?void 0:Pe.key)==="extraButton")?F=(ia=R.cloneDeep(r.originalItemContents))==null?void 0:ia.map(Pe=>((Pe==null?void 0:Pe.key)==="extraButton"&&(Pe.contents=H.value),Pe)):F.push({key:"extraButton",contents:H.value}),n("change",F)},se=V=>{let F=R.cloneDeep(S.value);F=F==null?void 0:F.map(le=>(le.children||(le.value=V==null?void 0:V[le.name]),le)),S.value=F},G=()=>{D.value=!1,_.value=[],d.value=""},ve=V=>{u.value=!0;let F=[];Xn==null||Xn.forEach(le=>{x.value++,F.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:V[le.key],id:x.value,contents:le==null?void 0:le.options})}),d.value=V==null?void 0:V.id,T.value=F,j.value=F},ke=V=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,le;v.value=(F=R.cloneDeep(v.value))==null?void 0:F.filter(fe=>(fe==null?void 0:fe.id)!==(V==null?void 0:V.id)),n("change",(le=R.cloneDeep(r.originalItemContents))==null?void 0:le.map(fe=>((fe==null?void 0:fe.key)==="rowButton"&&(fe.contents=v.value),fe))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Be=()=>{o.value=!0;let V=[];_r==null||_r.forEach(F=>{x.value++,V.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:x.value,contents:F==null?void 0:F.options})}),y.value=V,g.value=V},We=()=>{u.value=!0;let V=[];Xn==null||Xn.forEach(F=>{x.value++,V.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:x.value,contents:F==null?void 0:F.options})}),T.value=V,j.value=V},he=V=>{let F=R.cloneDeep(j.value);F=F==null?void 0:F.map(le=>(le.children||(le.value=V==null?void 0:V[le.name]),le)),j.value=F},I=()=>{var le,fe,be,ua,ia;T.value=j.value;let V={};if(d.value!==""?V.id=d.value:(x.value++,V.id="id"+x.value),(le=T.value)==null||le.forEach(Pe=>{const va=Xn==null?void 0:Xn.find(Ea=>(Ea==null?void 0:Ea.label)===(Pe==null?void 0:Pe.label));va?V[va.key]=Pe.value:Pe!=null&&Pe.children&&Pe.children.length>0&&(V.children=Pe.children)}),(fe=v.value)!=null&&fe.find(Pe=>Pe.id===V.id))v.value=(be=v.value)==null?void 0:be.map(Pe=>(Pe.id===V.id&&(Pe=V),Pe));else{let Pe=R.cloneDeep(v.value);Pe.push(V),v.value=Pe}u.value=!1,d.value="";let F=R.cloneDeep(r.originalItemContents);(ua=R.cloneDeep(r.originalItemContents))!=null&&ua.find(Pe=>(Pe==null?void 0:Pe.key)==="rowButton")?F=(ia=R.cloneDeep(r.originalItemContents))==null?void 0:ia.map(Pe=>((Pe==null?void 0:Pe.key)==="rowButton"&&(Pe.contents=v.value),Pe)):F.push({key:"rowButton",contents:v.value}),n("change",F)},Oe=()=>{u.value=!1,d.value="",j.value=[],T.value=[]},oe=V=>{o.value=!0;let F=[];_r==null||_r.forEach(le=>{x.value++,F.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:"",id:x.value,contents:le==null?void 0:le.options})}),y.value=F,C.value=V==null?void 0:V.id,g.value=F},ge=V=>{var F;s.value=Qc(R.cloneDeep(s.value),V==null?void 0:V.id),n("change",(F=R.cloneDeep(r.originalItemContents))==null?void 0:F.map(le=>{var fe;return(le==null?void 0:le.key)==="header"&&(le.contents=(fe=s.value)!=null&&fe.some(be=>be==null?void 0:be.children)?[s.value]:s.value),le}))},xe=V=>{var le,fe,be;V.type==="fix"?V.id!==""?s.value=au(s.value,V):s.value=eu(s.value,V==null?void 0:V.contents):s.value=lu(s.value,V),s.value=(le=s.value)!=null&&le.some(ua=>ua==null?void 0:ua.children)?[s.value]:s.value,d.value="";let F=R.cloneDeep(r.originalItemContents);(fe=R.cloneDeep(r.originalItemContents))!=null&&fe.find(ua=>(ua==null?void 0:ua.key)==="header")?F=(be=R.cloneDeep(r.originalItemContents))==null?void 0:be.map(ua=>((ua==null?void 0:ua.key)==="header"&&(ua.contents=s.value),ua)):F.push({key:"header",contents:s.value}),n("change",F)},ne=V=>{var le;o.value=!0;let F=[];_r==null||_r.forEach(fe=>{x.value++,F.push({label:fe==null?void 0:fe.label,name:fe==null?void 0:fe.label,type:fe.type,value:V[fe.key],id:x.value,contents:fe==null?void 0:fe.options})}),V!=null&&V.children&&((le=V==null?void 0:V.children)==null?void 0:le.length)>0&&F.push({children:V==null?void 0:V.children,isFormColHidden:!0}),d.value=V==null?void 0:V.id,C.value="",y.value=F,g.value=F},we=V=>{let F=R.cloneDeep(g.value);F=F==null?void 0:F.map(le=>(le.children||(le.value=V==null?void 0:V[le.name]),le)),g.value=F},Ke=()=>{o.value=!1,d.value="",C.value="",g.value=[]},ya=()=>{var le,fe,be,ua,ia,Pe;y.value=g.value;let V={};if(d.value!==""?V.id=d.value:(x.value++,V.id="id"+x.value),(le=y.value)==null||le.forEach(va=>{const Ea=_r==null?void 0:_r.find(Ae=>(Ae==null?void 0:Ae.label)===(va==null?void 0:va.label));Ea?V[Ea.key]=va.value:va!=null&&va.children&&va.children.length>0&&(V.children=va.children)}),(fe=s.value)!=null&&fe.find(va=>va.id===V.id))s.value=(be=s.value)==null?void 0:be.map(va=>(va.id===V.id&&(va=V),va));else{let va=R.cloneDeep(s.value)??[];C.value===""?va.push(V):va=va==null?void 0:va.map(Ea=>(Ea.id===C.value&&(Ea.children||(Ea.children=[]),Ea.children.push(V)),Ea)),s.value=va}s.value=(ua=s.value)!=null&&ua.some(va=>va==null?void 0:va.children)?[s.value]:s.value,o.value=!1,d.value="",C.value="";let F=R.cloneDeep(r.originalItemContents);(ia=R.cloneDeep(r.originalItemContents))!=null&&ia.find(va=>(va==null?void 0:va.key)==="header")?F=(Pe=R.cloneDeep(r.originalItemContents))==null?void 0:Pe.map(va=>((va==null?void 0:va.key)==="header"&&(va.contents=s.value),va)):F.push({key:"header",contents:s.value}),n("change",F)},Ge=V=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,le;s.value=(F=R.cloneDeep(s.value))==null?void 0:F.filter(fe=>(fe==null?void 0:fe.id)!==(V==null?void 0:V.id)),n("change",(le=R.cloneDeep(r.originalItemContents))==null?void 0:le.map(fe=>{var be;return(fe==null?void 0:fe.key)==="header"&&(fe.contents=(be=s.value)!=null&&be.some(ua=>ua==null?void 0:ua.children)?[s.value]:s.value),fe})),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>r.originalItemContents,()=>{var V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(i.value=R.cloneDeep(r.originalItemContents),s.value=(F=(V=i.value)==null?void 0:V.find($e=>($e==null?void 0:$e.key)==="header"))==null?void 0:F.contents,v.value=(fe=(le=i.value)==null?void 0:le.find($e=>($e==null?void 0:$e.key)==="rowButton"))==null?void 0:fe.contents,H.value=(ua=(be=i.value)==null?void 0:be.find($e=>($e==null?void 0:$e.key)==="extraButton"))==null?void 0:ua.contents,b.value=(Pe=(ia=i.value)==null?void 0:ia.find($e=>($e==null?void 0:$e.key)==="page"))!=null&&Pe.contents?!!((Ea=(va=i.value)==null?void 0:va.find($e=>($e==null?void 0:$e.key)==="page"))!=null&&Ea.contents):!1,M.value=(Fa=(Ae=i.value)==null?void 0:Ae.find($e=>($e==null?void 0:$e.key)==="tableToForm"))==null?void 0:Fa.contents,s.value=(Ta=s.value)==null?void 0:Ta.map(($e,Fe)=>(Array.isArray($e)?$e=$3($e):$e={label:($e==null?void 0:$e.label)??"",prop:($e==null?void 0:$e.label)==="操作"?"operate":$e==null?void 0:$e.prop,width:$e!=null&&$e.width?parseInt($e.width):"",fixed:($e==null?void 0:$e.fixed)??void 0,sortable:($e==null?void 0:$e.sortable)??!1,align:($e==null?void 0:$e.align)??"left",showOverflowTooltip:($e==null?void 0:$e.showOverflowTooltip)??!0,isNotDrag:($e==null?void 0:$e.isNotDrag)??!1,isEditCol:($e==null?void 0:$e.isEditCol)??!1,isOperate:($e==null?void 0:$e.isOperate)??!1,id:($e==null?void 0:$e.id)??Fe,formMenuSelect:($e==null?void 0:$e.formMenuSelect)??void 0,groupSelect:($e==null?void 0:$e.groupSelect)??void 0},$e)),s.value=(da=s.value)!=null&&da.every($e=>Array.isArray($e))?(Ha=s.value)==null?void 0:Ha[0]:s.value,v.value=(sa=v.value)==null?void 0:sa.map(($e,Fe)=>$e={label:($e==null?void 0:$e.label)??"",type:($e==null?void 0:$e.type)??"",textColor:($e==null?void 0:$e.textColor)??"#000000",id:($e==null?void 0:$e.id)??Fe}),H.value=(He=H.value)==null?void 0:He.map(($e,Fe)=>$e={label:($e==null?void 0:$e.label)??"",type:($e==null?void 0:$e.type)??"",background:($e==null?void 0:$e.background)??"var(--ssComponent-primary-color)",id:($e==null?void 0:$e.id)??Fe}),M.value)M.value=(ea=M.value)==null?void 0:ea.map($e=>{x.value++;let Fe=$e;return Fe.id=x.value,Fe});else{let $e=[];const Fe=(ha=re.getColumnChild(R.cloneDeep(s.value)))==null?void 0:ha.filter(ie=>(ie==null?void 0:ie.prop)!=="operate");Fe==null||Fe.forEach(ie=>{var Ye;x.value++,$e.push({label:ie==null?void 0:ie.label,name:(ie==null?void 0:ie.prop)||(ie==null?void 0:ie.label),type:ie!=null&&ie.groupSelect?"Select":"Input",value:"",id:x.value,contents:ie==null?void 0:ie.options,menuSelect:ie==null?void 0:ie.formMenuSelect,groupSelect:(Ye=ie==null?void 0:ie.groupSelect)==null?void 0:Ye.split(":"),selectRelateType:"关联绑定列"})}),M.value=$e}},{deep:!0,immediate:!0}),(V,F)=>{const le=e.resolveComponent("svg-icon"),fe=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",hv,[e.createElementVNode("div",vv,[e.createElementVNode("div",mv,[F[2]||(F[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(fe,{class:"icon-content",onClick:Be,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[1]||(F[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",yv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(be,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",gv,[e.createElementVNode("div",bv,e.toDisplayString(be==null?void 0:be.label),1),e.createElementVNode("div",kv,[e.createVNode(le,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ia=>oe(be)},null,8,["onClick"]),e.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ia=>ne(be)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ia=>Ge(be)},null,8,["onClick"])])]),be!=null&&be.children&&be.children.length>0?(e.openBlock(),e.createElementBlock("div",xv,[e.createVNode(iu,{tableChildContents:be==null?void 0:be.children,onDeleteChange:ge,onFixChange:xe},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",wv,[F[4]||(F[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:We},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[3]||(F[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",_v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(be,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Sv,[e.createElementVNode("div",Ev,e.toDisplayString(be==null?void 0:be.label),1),e.createElementVNode("div",Cv,[e.createVNode(le,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ia=>ve(be)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ia=>ke(be)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Tv,[F[6]||(F[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:O},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[5]||(F[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Bv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(be,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Dv,[e.createElementVNode("div",Nv,e.toDisplayString(be==null?void 0:be.label),1),e.createElementVNode("div",Av,[e.createVNode(le,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ia=>ze(be)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ia=>ue(be)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",zv,[F[8]||(F[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(fe,{class:"icon-content",id:"themeButton",onClick:Q},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[F[7]||(F[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",Mv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(be,ua)=>(e.openBlock(),e.createElementBlock("div",{key:ua},[e.createElementVNode("div",Iv,[e.createElementVNode("div",Ov,e.toDisplayString(be==null?void 0:be.label),1),e.createElementVNode("div",Lv,[e.createVNode(le,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ia=>q(be)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ia=>X(be)},null,8,["onClick"])])])]))),128))]),F[10]||(F[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Rv,[e.createElementVNode("div",$v,[F[9]||(F[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(ul._sfc_main$1,{modelValue:b.value,"onUpdate:modelValue":F[0]||(F[0]=be=>b.value=be)},null,8,["modelValue"])])])]),e.createVNode(Vr.ssDialog,{visible:o.value,onBeforeDestroy:Ke,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Vv,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:we},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Fv,[e.createVNode(fe,{onClick:Ke,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[11]||(F[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(fe,{class:"ok-button button",onClick:ya,id:"themeButton"},{default:e.withCtx(()=>F[12]||(F[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Vr.ssDialog,{visible:u.value,onBeforeDestroy:Oe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Pv,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:T.value,key:T.value,isEnableWrap:!0,onChange:he},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Hv,[e.createVNode(fe,{onClick:Oe,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[13]||(F[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(fe,{class:"ok-button button",onClick:I,id:"themeButton"},{default:e.withCtx(()=>F[14]||(F[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Vr.ssDialog,{visible:D.value,onBeforeDestroy:G,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",jv,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:_.value,key:_.value,isEnableWrap:!0,onChange:se},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Uv,[e.createVNode(fe,{onClick:G,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[15]||(F[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(fe,{class:"ok-button button",onClick:N,id:"themeButton"},{default:e.withCtx(()=>F[16]||(F[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Vr.ssDialog,{visible:p.value,onBeforeDestroy:ee,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",qv,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:ye,onChangeVisible:J,onBlurChange:te},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Wv,[e.createVNode(fe,{onClick:ee,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>F[17]||(F[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(fe,{class:"ok-button button",onClick:pe,id:"themeButton"},{default:e.withCtx(()=>F[18]||(F[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},Kv=fr._export_sfc(Gv,[["__scopeId","data-v-7a6b87b5"]]),Yv=R.useModelComp(R.pinia),{pageMapState:ou}=R.storeToRefs(Yv),Jv=R.useMenuState(R.pinia),{activeMenuPath:tu,systemHeight:su}=R.storeToRefs(Jv),Xv=e.ref(24),Zv=e.ref(6),cu=e.ref(10),Qv=e.ref(70),e6=e.ref(.18),a6=e.ref(45),l6=()=>{cu.value=(su.value-100)/100};e.watch(()=>su.value,()=>{l6()},{deep:!0,immediate:!0});const r6=(a,l,r,n)=>{var i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_;return{x:((o=(i=a==null?void 0:a.value)==null?void 0:i.tableData)==null?void 0:o.x)||l%2*12,y:((s=(p=a==null?void 0:a.value)==null?void 0:p.tableData)==null?void 0:s.y)||l,w:((y=(u=a==null?void 0:a.value)==null?void 0:u.tableData)==null?void 0:y.w)||Xv.value,h:((g=(b=a==null?void 0:a.value)==null?void 0:b.tableData)==null?void 0:g.h)||r,minW:((C=(d=a==null?void 0:a.value)==null?void 0:d.tableData)==null?void 0:C.minW)||Zv.value,minH:((H=(v=a==null?void 0:a.value)==null?void 0:v.tableData)==null?void 0:H.minH)||e6.value,maxH:((j=(T=a==null?void 0:a.value)==null?void 0:T.tableData)==null?void 0:j.maxH)||a6.value,i:((_=(D=a==null?void 0:a.value)==null?void 0:D.tableData)==null?void 0:_.i)||l,id:(a==null?void 0:a.id)||l+"",component:n}},n6=(a,l)=>{var n,i,o,p,s,u,y,b;let r=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){if(((p=(o=(i=a==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:o.contents)==null?void 0:p.length)===0)return 2}else((s=a==null?void 0:a.comp)==null?void 0:s.toUpperCase())==="FORM"&&(r=((b=(y=(u=a==null?void 0:a.compData)==null?void 0:u.find(d=>(d==null?void 0:d.key)==="formContent"))==null?void 0:y.contents)==null?void 0:b.length)/5);return r*2},uu=(a,l,r)=>{var p,s;const n=(s=(p=ou.value)==null?void 0:p[tu.value])==null?void 0:s.filter(u=>{var y;return((y=u==null?void 0:u.key)==null?void 0:y.type)==="gridLayout"}),i=n==null?void 0:n.find(u=>{var y,b,g;return((g=(b=(y=u==null?void 0:u.value)==null?void 0:y.tableData)==null?void 0:b.component)==null?void 0:g.id)===a.id}),o=n6(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((u,y)=>uu(u,y))),{...r6(i,l,o,a)}},i6=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const r=R.cloneDeep(a);return Array.isArray(a)?r==null?void 0:r.map((n,i)=>uu(n,i)):[]},o6=(a,l,r,n)=>{var i,o;return{x:r==null?void 0:r.x,y:0,w:Math.round(r==null?void 0:r.w),h:r==null?void 0:r.h,arrowGap:r==null?void 0:r.arrowGap,i:((o=(i=a==null?void 0:a.value)==null?void 0:i.tableData)==null?void 0:o.i)||l,id:(a==null?void 0:a.id)||l+"",component:n}},t6=(a,l)=>{var y,b,g,d;let r=0,n=0,i=0,o=0,p=0,s=((b=(y=a==null?void 0:a.compData)==null?void 0:y.find(C=>(C==null?void 0:C.key)==="numPosition"))==null?void 0:b.contents)??[],u=((d=(g=a==null?void 0:a.compData)==null?void 0:g.find(C=>(C==null?void 0:C.key)==="rowPosition"))==null?void 0:d.contents)??"";return u&&u!==1&&(p=Math.ceil(u*l)),i=(s==null?void 0:s[0])*l,o=(s==null?void 0:s[1])*100,{x:r,y:n,w:i,h:o,arrowGap:p}},du=(a,l,r)=>{var p,s;const n=(s=(p=ou.value)==null?void 0:p[tu.value])==null?void 0:s.filter(u=>{var y;return((y=u==null?void 0:u.key)==null?void 0:y.type)==="gridLayout"}),i=n==null?void 0:n.find(u=>{var y,b,g;return((g=(b=(y=u==null?void 0:u.value)==null?void 0:y.tableData)==null?void 0:b.component)==null?void 0:g.id)===a.id}),o=t6(a,r);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((u,y)=>du(u,y,r))),{...o6(i,l,o,a)}},s6=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const r=R.cloneDeep(a);return Array.isArray(a)?r==null?void 0:r.map((n,i)=>du(n,i,l)):[]},c6=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}]}]}}),u6=(a,l)=>a==null?void 0:a.map(r=>{for(const n in l)if(n===(r==null?void 0:r.prop))return{...r,value:l[n]};return r}),d6=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.ref([]);e.watch(()=>r.compType,s=>{var b;const u=c6(r==null?void 0:r.optionItems),y=s?(b=u[s==null?void 0:s.toUpperCase()])==null?void 0:b[r==null?void 0:r.target]:[];i.value=y==null?void 0:y.map(g=>{for(const[d,C]of Object.entries((r==null?void 0:r.comp)||{}))if((g==null?void 0:g.prop)===d)return{...g,value:C};return g})},{immediate:!0});const o=s=>ul.getComponent(s),p=s=>{var u,y;(s==null?void 0:s.prop)==="layout"&&(s==null?void 0:s.value)==="horizontal"?i.value=(u=i.value)==null?void 0:u.map(b=>{var g;return(b==null?void 0:b.prop)==="isStepLayout"?{...b,options:(g=b==null?void 0:b.options)==null?void 0:g.map(d=>({...d,disabled:!0}))}:(b==null?void 0:b.prop)==="isGridLayout"?{...b,disabled:!0}:b}):i.value=(y=i.value)==null?void 0:y.map(b=>{var g;return(b==null?void 0:b.prop)==="isStepLayout"?{...b,options:(g=b==null?void 0:b.options)==null?void 0:g.map(d=>({...d,disabled:!1}))}:(b==null?void 0:b.prop)==="isGridLayout"?{...b,disabled:!1}:b}),n("change",{target:r==null?void 0:r.target,styleConfigs:i.value,prop:s==null?void 0:s.prop})};return(s,u)=>{const y=e.resolveComponent("el-col"),b=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,g=>(e.openBlock(),e.createBlock(b,{class:"style-row",key:g==null?void 0:g.prop},{default:e.withCtx(()=>[e.createVNode(y,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g==null?void 0:g.label)+":",1)]),_:2},1024),e.createVNode(y,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(g.type)),{modelValue:g.value,"onUpdate:modelValue":d=>g.value=d,content:g==null?void 0:g.options,optionUrl:g==null?void 0:g.optionUrl,disabled:g==null?void 0:g.disabled,activeText:g==null?void 0:g.activeText,inactiveText:g==null?void 0:g.inactiveText,onChange:d=>p(g)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),p6=fr._export_sfc(d6,[["__scopeId","data-v-da01b651"]]),f6=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 r=a,n=l,i=[{required:!0,message:"输入不能为空",trigger:"blur"}],o=e.ref([]),p=j=>j==null?void 0:j.reduce((D,_)=>(D[_==null?void 0:_.prop]=_==null?void 0:_.rule,D),{}),s=e.computed(()=>({formRules:p(o.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),u=e.ref([]),y=e.ref(""),b=(j,D,_)=>{var k;let S=[];(r==null?void 0:r.activeTabName)==="任务配置"?(S=[{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:j},{label:"按钮名称",value:"按钮名称",children:D}]},{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:"暂停"}]}],o.value=[{prop:"任务名称",rule:i},{prop:"任务关键词",rule:i},{prop:"执行任务",rule:i},{prop:"执行动作",rule:i},{prop:"执行交互",rule:i}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(S=[{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:(k=r==null?void 0:r.relatedData)==null?void 0:k.map(E=>({label:E==null?void 0:E.任务名称,value:E==null?void 0:E.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],o.value=[{prop:"关联名称",rule:i},{prop:"关联状态",rule:i},{prop:"关联形式",rule:i},{prop:"关联任务集合",rule:i}]);let x;return _&&(_==null?void 0:_.length)>0?x=[...S,...g(j,D,_)]:x=S,x},g=(j,D,_)=>{const S=[{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==null?void 0:S.filter(x=>_==null?void 0:_.includes(x==null?void 0:x.prop)):S},d=(j,D)=>{var E,M,O,Q,J,ye,te,U,q;const _=((J=(Q=(O=(M=(E=r==null?void 0:r.comp)==null?void 0:E.compData)==null?void 0:M.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:O.contents)==null?void 0:Q.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:J.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],S=/button/i,x=((q=(U=(te=(ye=r==null?void 0:r.comp)==null?void 0:ye.compData)==null?void 0:te.filter(X=>S.test(X==null?void 0:X.key)))==null?void 0:U.flatMap(X=>X==null?void 0:X.contents))==null?void 0:q.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],k=b(_,x,j);u.value=D?u6(k,D):k,j&&(j==null?void 0:j.length)>0&&o.value.push(...j==null?void 0:j.map(X=>({prop:X,rule:i})))};e.onMounted(()=>{d(null,r==null?void 0:r.extendItem)});const C=j=>{const D=j==null?void 0:j[y.value];if(y.value==="执行任务"){if(!(D!=null&&D.join("/")))return;const _=D==null?void 0:D.join("/");d(_==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:_==="进度设置/进度条"?["进度关键词"]:null,j)}},v=j=>{n("change",{target:r==null?void 0:r.target,extendConfigs:j})},H=(j,D)=>{y.value=D==null?void 0:D.changeProp,C(j)},T=j=>{n("onButtonClick",j)};return(j,D)=>(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:u.value,key:u.value,isStartJustify:!1,isEnableWrap:!1,formRules:s.value.formRules,buttonValue:s.value.buttonValue,onChange:v,onBlurChange:H,onOnButtonClick:T},null,8,["rowContents","formRules","buttonValue"]))}}),h6=fr._export_sfc(f6,[["__scopeId","data-v-4b39853f"]]),v6={};function m6(a,l){return null}const y6=fr._export_sfc(v6,[["render",m6]]),g6={class:"form-operate-content"},b6={class:"form-operate-item"},k6={class:"operate-title"},x6={class:"operate-content"},w6={class:"fix-content"},_6={class:"fix-button"},S6={class:"operate-title"},E6={class:"operate-content"},C6={class:"fix-content"},T6={class:"fix-button"},B6={style:{display:"flex","justify-content":"space-between"}},D6={class:"form-content"},N6={class:"dialog-footer"},A6={class:"form-content"},z6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(!1),o=e.ref([]),p=e.ref([]),s=e.ref(!1),u=e.ref([]),y=e.ref([]),b=e.ref(""),g=e.ref(!1),d=e.ref(0),C=e.ref([]),v=e.ref([]),H=(U,q)=>{if((q==null?void 0:q.type)=="Select"&&(U==null?void 0:U.key)==="selectRelateType"){const X=q==null?void 0:q.optionUrl;return(X==null?void 0:X.selectRelateType)||q[U.key]}if((q==null?void 0:q.type)=="Select"&&(U==null?void 0:U.key)==="menuSelect"){const X=q==null?void 0:q.optionUrl;return(X==null?void 0:X.menuSelect)||q[U.key]}if((q==null?void 0:q.type)=="Select"&&(U==null?void 0:U.key)==="groupSelect"){const X=q==null?void 0:q.optionUrl;return(X==null?void 0:X.groupSelect)||q[U.key]}if((q==null?void 0:q.type)=="Select"&&(U==null?void 0:U.key)==="originalContent")return(q==null?void 0:q.value)||q[U.key];if((q==null?void 0:q.type)=="Select"&&(U==null?void 0:U.key)==="multiple"){const X=q[U.key];return xc(X)?X:U.default}return(U==null?void 0:U.label)==="类型"&&q[U.key]===""?"Input":(U==null?void 0:U.key)==="isFormColHidden"&&!q[U.key]?!1:q[U.key]},T=async U=>{var ee,pe,ze,ue,N,se;i.value=!0;let q=[];const X=await((ze=(pe=(ee=re.FormContent)==null?void 0:ee.find(G=>(G==null?void 0:G.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:pe.value)==null?void 0:ze.value)??((N=(ue=re.FormContent)==null?void 0:ue.find(G=>(G==null?void 0:G.key)===((U==null?void 0:U.type)===""?"Input":U==null?void 0:U.type)))==null?void 0:N.value);if(X==null||X.forEach(G=>{d.value++,q.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,prop:G==null?void 0:G.prop,value:H(G,U),id:d.value,contents:G==null?void 0:G.options,width:(U==null?void 0:U.width)??1})}),U!=null&&U.menuSelect&&((se=U==null?void 0:U.menuSelect)==null?void 0:se.length)>0){const G=await re.menuToContentType(U==null?void 0:U.menuSelect);q=q==null?void 0:q.map(ve=>((ve==null?void 0:ve.name)==="组信息选项"&&(ve.contents=G),ve))}b.value=U==null?void 0:U.id,o.value=await re.selectToBase(re.formToOptionsContents(q)),p.value=await re.selectToBase(re.formToOptionsContents(q))},j=U=>{var X;s.value=!0;let q=[];(X=re.FormButton)==null||X.forEach(ee=>{d.value++,q.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:(ee==null?void 0:ee.label)==="类型"&&U[ee.key]===""?"normal":U[ee.key],id:d.value,contents:ee==null?void 0:ee.options})}),C.value=q,v.value=q,b.value=U==null?void 0:U.id};e.watch(()=>g.value,()=>{var q,X;let U=R.cloneDeep(r.originalItemContents);(q=R.cloneDeep(r.originalItemContents))!=null&&q.find(ee=>(ee==null?void 0:ee.key)==="enableWrap")?U=(X=R.cloneDeep(r.originalItemContents))==null?void 0:X.map(ee=>((ee==null?void 0:ee.key)==="enableWrap"&&(ee.contents=!g.value),ee)):U.push({key:"enableWrap",contents:!g.value}),n("change",U)},{deep:!0});const D=()=>{var X,ee,pe,ze,ue;C.value=v.value;let U={};if(b.value!==""?U.id=b.value:(d.value++,U.id="id"+d.value),(X=C.value)==null||X.forEach(N=>{var G;const se=(G=re.FormButton)==null?void 0:G.find(ve=>(ve==null?void 0:ve.label)===(N==null?void 0:N.label));se&&(U[se.key]=N.value)}),(ee=u.value)!=null&&ee.find(N=>N.id===U.id))u.value=(pe=u.value)==null?void 0:pe.map(N=>(N.id===U.id&&(N=U),N));else{let N=R.cloneDeep(u.value);u.value||(u.value=[]),N.push(U),u.value=N}s.value=!1,b.value="";let q=R.cloneDeep(r.originalItemContents);(ze=R.cloneDeep(r.originalItemContents))!=null&&ze.find(N=>(N==null?void 0:N.key)==="formButton")?q=(ue=R.cloneDeep(r.originalItemContents))==null?void 0:ue.map(N=>((N==null?void 0:N.key)==="formButton"&&(N.contents=u.value),N)):q.push({key:"formButton",contents:u.value}),n("change",q)},_=U=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var q,X;y.value=(q=R.cloneDeep(y.value))==null?void 0:q.filter(ee=>(ee==null?void 0:ee.id)!==(U==null?void 0:U.id)),n("change",(X=R.cloneDeep(r.originalItemContents))==null?void 0:X.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=y.value),ee))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},S=U=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var q,X;u.value=(q=R.cloneDeep(u.value))==null?void 0:q.filter(ee=>(ee==null?void 0:ee.id)!==(U==null?void 0:U.id)),n("change",(X=R.cloneDeep(r.originalItemContents))==null?void 0:X.map(ee=>((ee==null?void 0:ee.key)==="formButton"&&(ee.contents=u.value),ee))),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>{var q;s.value=!0;let U=[];(q=re.FormButton)==null||q.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})}),C.value=U,v.value=U},k=()=>{var q,X,ee;i.value=!0;let U=[];(ee=(X=(q=re.FormContent)==null?void 0:q.find(pe=>(pe==null?void 0:pe.key)==="Input"))==null?void 0:X.value)==null||ee.forEach(pe=>{d.value++,U.push({label:pe==null?void 0:pe.label,name:pe==null?void 0:pe.label,type:pe.type,value:(pe==null?void 0:pe.label)==="类型"?"Input":"",id:d.value,contents:pe==null?void 0:pe.options})}),o.value=U,p.value=U},E=U=>{let q=R.cloneDeep(v.value);q=q==null?void 0:q.map(X=>(X.value=U==null?void 0:U[X.name],X)),v.value=q},M=U=>{const q=U.find(pe=>(pe==null?void 0:pe.name)==="类型");if((q==null?void 0:q.value)!="Select")return;const X=U.find(pe=>(pe==null?void 0:pe.name)==="多选"),ee=U.find(pe=>(pe==null?void 0:pe.name)==="初始值");X!=null&&X.value&&No.isString(ee.value)&&(ee.value=[ee.value]),!(X!=null&&X.value)&&!No.isString(ee.value)&&(ee.value="")},O=async U=>{var q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be;if((U==null?void 0:U.类型)!==((X=(q=p.value)==null?void 0:q.find(We=>(We==null?void 0:We.label)==="类型"))==null?void 0:X.value)){let We=[];const he=await((ze=(pe=(ee=re.FormContent)==null?void 0:ee.find(I=>(I==null?void 0:I.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:pe.value)==null?void 0:ze.value)?await((ve=(G=(se=re.FormContent)==null?void 0:se.find(I=>(I==null?void 0:I.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:G.value)==null?void 0:ve.value):(N=(ue=re.FormContent)==null?void 0:ue.find(I=>(I==null?void 0:I.key)===((U==null?void 0:U.类型)===""?"Input":U==null?void 0:U.类型)))==null?void 0:N.value;if(he==null||he.forEach(I=>{var oe,ge;d.value++;const Oe=fd(I==null?void 0:I.default)?(U==null?void 0:U[I.label])??I.value??"":I==null?void 0:I.default;We.push({label:I==null?void 0:I.label,name:I==null?void 0:I.label,type:I.type,value:Oe,prop:I==null?void 0:I.prop,id:d.value,contents:I==null?void 0:I.options,width:((ge=(oe=p.value)==null?void 0:oe[0])==null?void 0:ge.width)??1})}),U!=null&&U.菜单选项&&((ke=U==null?void 0:U.菜单选项)==null?void 0:ke.length)>0){const I=await re.menuToContentType(U==null?void 0:U.菜单选项);We=We==null?void 0:We.map(Oe=>((Oe==null?void 0:Oe.name)==="组信息选项"&&(Oe.contents=I),Oe))}M(We),p.value=await re.selectToBase(R.cloneDeep(We)),o.value=await re.selectToBase(R.cloneDeep(We))}else{let We=R.cloneDeep(p.value);if(We=We==null?void 0:We.map(he=>(he.value=U==null?void 0:U[he.name],he)),U!=null&&U.菜单选项&&((Be=U==null?void 0:U.菜单选项)==null?void 0:Be.length)>0){const he=await re.menuToContentType(U==null?void 0:U.菜单选项);We=We==null?void 0:We.map(I=>((I==null?void 0:I.name)==="组信息选项"&&(I.contents=he),I))}We=re.formToOptionsContents(We),M(We),p.value=await re.selectToBase(R.cloneDeep(We))}},Q=U=>{U||(o.value=p.value)},J=async U=>{await O(U),o.value=p.value},ye=Fl.debounce(async()=>{var ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he;o.value=p.value;let U={};U.width=((pe=(ee=o.value)==null?void 0:ee[0])==null?void 0:pe.width)??1,b.value!==""?U.id=b.value:(d.value++,U.id="id"+d.value);let q=await((N=(ue=(ze=re.FormContent)==null?void 0:ze.find(I=>{var Oe,oe;return(I==null?void 0:I.key)===(((oe=(Oe=o.value)==null?void 0:Oe.find(ge=>(ge==null?void 0:ge.label)==="类型"))==null?void 0:oe.value)??"label")}))==null?void 0:ue.value)==null?void 0:N.value)??((G=(se=re.FormContent)==null?void 0:se.find(I=>{var Oe,oe;return(I==null?void 0:I.key)===(((oe=(Oe=o.value)==null?void 0:Oe.find(ge=>(ge==null?void 0:ge.label)==="类型"))==null?void 0:oe.value)??"label")}))==null?void 0:G.value);if((ve=o.value)==null||ve.forEach(I=>{const Oe=q==null?void 0:q.find(oe=>(oe==null?void 0:oe.label)===(I==null?void 0:I.label));Oe&&(U[Oe.key]=I.value)}),U.width=U.width?U.width:1,U.key=U==null?void 0:U.label,U.isFormColHidden=U==null?void 0:U.isFormColHidden,(ke=y.value)!=null&&ke.find(I=>I.id===U.id))y.value=(Be=y.value)==null?void 0:Be.map(I=>(I.id===U.id&&(I=U),I));else{let I=R.cloneDeep(y.value);I.push(U),y.value=I}y.value=y.value.map(({id:I,...Oe})=>Oe),i.value=!1,b.value="";let X=R.cloneDeep(r.originalItemContents);(We=R.cloneDeep(r.originalItemContents))!=null&&We.find(I=>(I==null?void 0:I.key)==="formContent")?X=(he=R.cloneDeep(r.originalItemContents))==null?void 0:he.map(I=>((I==null?void 0:I.key)==="formContent"&&(I.contents=y.value),I)):X.push({key:"formContent",contents:y.value}),n("change",X)},300),te=()=>{i.value=!1,s.value=!1,b.value="",p.value=[],v.value=[]};return e.watch(()=>r.originalItemContents,()=>{var q,X,ee,pe,ze,ue;if(!r.originalItemContents||r.originalItemContents.length===0)return;const U=R.cloneDeep(r.originalItemContents);y.value=((q=U==null?void 0:U.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:q.contents)??[],u.value=((X=U==null?void 0:U.find(N=>(N==null?void 0:N.key)==="formButton"))==null?void 0:X.contents)??[],g.value=(ee=U==null?void 0:U.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&ee.contents?!((pe=U==null?void 0:U.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&pe.contents):!0,y.value=(ze=R.cloneDeep(y.value))==null?void 0:ze.map((N,se)=>{var ve;let G=N;return G.id=(N==null?void 0:N.id)??se,N!=null&&N.label||(N.label=(N==null?void 0:N.key)??(N==null?void 0:N.label)??""),N!=null&&N.type||(N.type=(N==null?void 0:N.type)??""),N.contents=((ve=N==null?void 0:N.options)==null?void 0:ve.length)===0?(N==null?void 0:N.contents)??"":N==null?void 0:N.options,G}),y.value=re.formToOptionsContents(y.value),u.value=(ue=u.value)==null?void 0:ue.map((N,se)=>N={label:(N==null?void 0:N.label)??"",type:(N==null?void 0:N.type)??"",background:(N==null?void 0:N.background)??"var(--ssComponent-primary-color)",id:se})},{deep:!0,immediate:!0}),(U,q)=>{const X=e.resolveComponent("svg-icon"),ee=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",g6,[e.createElementVNode("div",b6,[e.createElementVNode("div",k6,[q[2]||(q[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(ee,{class:"icon-content",id:"themeButton",onClick:k},{icon:e.withCtx(()=>[e.createVNode(X,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[q[1]||(q[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",x6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(pe,ze)=>(e.openBlock(),e.createElementBlock("div",{key:ze},[e.createElementVNode("div",w6,[e.createElementVNode("div",null,e.toDisplayString(pe.label),1),e.createElementVNode("div",_6,[e.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ue=>T(pe)},null,8,["onClick"]),e.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ue=>_(pe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",S6,[q[4]||(q[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(ee,{class:"icon-content",id:"themeButton",onClick:x},{icon:e.withCtx(()=>[e.createVNode(X,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[q[3]||(q[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",E6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(pe,ze)=>(e.openBlock(),e.createElementBlock("div",{key:ze},[e.createElementVNode("div",C6,[e.createElementVNode("div",null,e.toDisplayString(pe.label),1),e.createElementVNode("div",T6,[e.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ue=>j(pe)},null,8,["onClick"]),e.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ue=>S(pe)},null,8,["onClick"])])])]))),128))]),q[6]||(q[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",B6,[q[5]||(q[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(ul._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":q[0]||(q[0]=pe=>g.value=pe)},null,8,["modelValue"])])]),e.createVNode(Vr.ssDialog,{visible:i.value,onBeforeDestroy:te,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",D6,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:o.value,key:o.value,isEnableWrap:!0,onChange:O,onChangeVisible:Q,onBlurChange:J},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",N6,[e.createVNode(ee,{onClick:te,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>q[7]||(q[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(ee,{class:"ok-button button",onClick:e.unref(ye),id:"themeButton"},{default:e.withCtx(()=>q[8]||(q[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(Vr.ssDialog,{visible:s.value,onBeforeDestroy:te,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",A6,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:E},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:te,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:D},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},qs=fr._export_sfc(z6,[["__scopeId","data-v-20850524"]]),M6={class:"step-module content"},I6={class:"module-data"},O6={class:"step-module layout"},L6={class:"form-content"},R6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=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}]),o=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),p=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),s=e.reactive({visible:!1,width:"40%",title:"步骤条"}),u=e.ref("create"),y=e.ref({}),b=e.ref([]),g=T=>{var j;y.value=T,n("change",(j=v())==null?void 0:j.compData)},d=(T,j)=>{var D,_;switch(T){case"create":(D=o.value)==null||D.forEach(S=>{S.value=""}),u.value="create",s.visible=!0;break;case"update":(_=o.value)==null||_.forEach(S=>{S.value=j[S==null?void 0:S.prop]}),u.value="update",s.visible=!0;break;case"delete":b.value.splice(j,1),u.value="delete";break}},C=T=>{var j,D,_;if((T==null?void 0:T.buttonName)==="确认"){const S=R.cloneDeep(T==null?void 0:T.content);switch(Object.keys(S).forEach(x=>{S[x]===""&&delete S[x]}),u.value){case"create":b.value.push({...S,index:((j=b.value)==null?void 0:j.length)+1});break;case"update":b.value=(D=b.value)==null?void 0:D.map(x=>x.index===(S==null?void 0:S.index)?{...x,title:S==null?void 0:S.title,description:S==null?void 0:S.description}:x);break}n("change",(_=v())==null?void 0:_.compData),s.visible=!1}else s.visible=!1},v=()=>({comp:"Step",compData:[{key:"stepList",contents:b.value},{key:"stepConfig",contents:y.value}]}),H=()=>{s.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,T=>{var j,D;T&&(y.value=((j=T==null?void 0:T.find(_=>_.key==="stepConfig"))==null?void 0:j.contents)??{},b.value=((D=T==null?void 0:T.find(_=>_.key==="stepList"))==null?void 0:D.contents)??[])},{immediate:!0}),(T,j)=>{const D=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",M6,[j[2]||(j[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(_,{class:"module-icon",id:"themeButton",onClick:j[0]||(j[0]=S=>d("create"))},{icon:e.withCtx(()=>[e.createVNode(D,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",I6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(S,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(S==null?void 0:S.title),1),e.createElementVNode("div",null,[e.createVNode(_,{type:"primary",size:"small",onClick:k=>d("update",{...S,index:x+1})},{default:e.withCtx(()=>j[3]||(j[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(_,{type:"danger",size:"small",onClick:k=>d("delete",x)},{default:e.withCtx(()=>j[4]||(j[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",O6,[j[5]||(j[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ul.ssForm,{rowContents:i.value,onChange:g},null,8,["rowContents"])])]),e.createVNode(Vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:H,width:s.width},{default:e.withCtx(()=>[e.createElementVNode("div",L6,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:o.value,key:o.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:p.value,onOnButtonClick:C},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),$6=fr._export_sfc(R6,[["__scopeId","data-v-7dbd17f2"]]),V6={class:"step-module content"},F6={class:"module-data"},P6={class:"step-module layout"},H6={class:"form-content"},j6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.ref("create"),o=e.ref({}),p=e.ref([]),s=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:""}]),y=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),b=e.reactive({visible:!1,width:"40%",title:"时间线"}),g=T=>{var j;o.value=T,n("change",(j=v())==null?void 0:j.compData)},d=(T,j)=>{var D,_;switch(T){case"create":(D=u.value)==null||D.forEach(S=>{S.value=""}),i.value="create",b.visible=!0;break;case"update":(_=u.value)==null||_.forEach(S=>{S.value=j[S==null?void 0:S.prop]}),i.value="update",b.visible=!0;break;case"delete":p.value.splice(j,1),i.value="delete";break}},C=T=>{var j,D,_,S;if((T==null?void 0:T.buttonName)==="确认"){const x=R.cloneDeep(T==null?void 0:T.content);switch(Object.keys(x).forEach(k=>{x[k]===""&&delete x[k]}),i.value){case"create":(D=p.value)==null||D.push({...x,index:((j=p.value)==null?void 0:j.length)+1});break;case"update":p.value=(_=p.value)==null?void 0:_.map(k=>k.index===(x==null?void 0:x.index)?{...k,content:x==null?void 0:x.content,timestamp:x==null?void 0:x.timestamp}:k);break}n("change",(S=v())==null?void 0:S.compData),b.visible=!1}else b.visible=!1},v=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:p.value},{key:"timeLineConfig",contents:o.value}]}),H=()=>{b.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,T=>{var j,D;T&&(o.value=((j=T==null?void 0:T.find(_=>_.key==="timeLineConfig"))==null?void 0:j.contents)??{},p.value=((D=T==null?void 0:T.find(_=>_.key==="timeLineList"))==null?void 0:D.contents)??[])},{immediate:!0}),(T,j)=>{const D=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",V6,[j[2]||(j[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(_,{class:"module-icon",id:"themeButton",onClick:j[0]||(j[0]=S=>d("create"))},{icon:e.withCtx(()=>[e.createVNode(D,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",F6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(S,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(S==null?void 0:S.content),1),e.createElementVNode("div",null,[e.createVNode(_,{type:"primary",size:"small",onClick:k=>d("update",{...S,index:x+1})},{default:e.withCtx(()=>j[3]||(j[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(_,{type:"danger",size:"small",onClick:k=>d("delete",x)},{default:e.withCtx(()=>j[4]||(j[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",P6,[j[5]||(j[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ul.ssForm,{rowContents:s.value,onChange:g},null,8,["rowContents"])])]),e.createVNode(Vr.ssDialog,{visible:b.visible,title:b.title,onBeforeDestroy:H,width:b.width},{default:e.withCtx(()=>[e.createElementVNode("div",H6,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:C},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),U6=fr._export_sfc(j6,[["__scopeId","data-v-39ffc861"]]),q6={};function W6(a,l){return e.openBlock(),e.createElementBlock("div")}const G6=fr._export_sfc(q6,[["render",W6]]),K6={class:"extra-content"},Y6={key:0},J6={key:1},X6={class:"dialog-footer"},Z6={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const r=a,n=e.ref(0),i=e.ref(),o=e.ref(),p=l,s=e.ref(!1),u=e.ref({}),y=e.ref({}),b=e.ref();e.watch(()=>[r.itemData],()=>{var S;const _=R.cloneDeep(r.itemData);i.value=(S=R.cloneDeep(_))==null?void 0:S.map(x=>{var k;if(x.key==="extra"){let E=[];(k=x.value)==null||k.forEach(M=>{var O;E.push((O=Object.values(M))==null?void 0:O[0])}),x.value=E}return x})},{deep:!0,immediate:!0});const g=(_,S,x,k)=>{var M;let E={};((M=_==null?void 0:_[0])==null?void 0:M.contents)==="详情"&&(s.value=!0,E[S]=_,o.value=_==null?void 0:_.filter(O=>(O==null?void 0:O.key)!=="tableContentName"),u.value=E,y.value=x,b.value=k.id)},d=_=>{var O,Q,J,ye;const S=(Q=(O=Object.values(R.cloneDeep(u.value)))==null?void 0:O[0])==null?void 0:Q.filter(te=>(te==null?void 0:te.key)==="tableContentName"),x=(ye=(J=Object.values(R.cloneDeep(u.value)))==null?void 0:J[0])==null?void 0:ye.filter(te=>(te==null?void 0:te.key)!=="tableContentName"),k=x==null?void 0:x.map((te,U)=>{var q;return U===_.index&&(te==null?void 0:te.comp)==="Table"&&(te.compData=(q=te.compData)==null?void 0:q.map(X=>{var ee,pe;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(pe=(ee=_.content)==null?void 0:ee.map(ze=>{let ue={};for(let N in ze)N!=="id"&&(ue[N]=ze[N]);return ue}))==null?void 0:pe.map(ze=>Object.values(ze))),X})),te});k.unshift(S==null?void 0:S[0]);let E=R.cloneDeep(u.value),M={};for(let te in E)M[te]=k;u.value=M},C=()=>{s.value=!1,u.value={},y.value={},b.value=void 0,n.value++},v=_=>{var O,Q,J,ye;const S=(Q=(O=Object.values(R.cloneDeep(u.value)))==null?void 0:O[0])==null?void 0:Q.filter(te=>(te==null?void 0:te.key)==="tableContentName"),x=(ye=(J=Object.values(R.cloneDeep(u.value)))==null?void 0:J[0])==null?void 0:ye.filter(te=>(te==null?void 0:te.key)!=="tableContentName"),k=x==null?void 0:x.map((te,U)=>(U===_.index&&(te.compData=_.contents),te));k.unshift(S==null?void 0:S[0]);let E=R.cloneDeep(u.value),M={};for(let te in E)M[te]=k;u.value=M},H=()=>{var S,x;let _={};for(let k in y.value)k===((S=Object.keys(u.value))==null?void 0:S[0])?_[k]=(x=Object.values(u.value))==null?void 0:x[0]:_[k]=y.value[k];p("change",{buttonName:"编辑",index:b.value,singleContent:_},"methodData"),s.value=!1,u.value={},y.value={},b.value=void 0},T=()=>{s.value=!1,u.value={},y.value={},b.value=void 0},j=_=>{p("change",_,"methodData")},D=_=>Fi(_);return(_,S)=>{const x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",K6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(k,E)=>(e.openBlock(),e.createElementBlock("div",{key:n.value},[(k==null?void 0:k.key)==="extra"?(e.openBlock(),e.createElementBlock("div",Y6)):(e.openBlock(),e.createElementBlock("div",J6,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D(k.comp)),{itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,key:E,index:(k==null?void 0:k.id)??E,onContentClick:g,onChange:j},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Vr.ssDialog,{visible:s.value,onBeforeDestroy:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(k,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D(k.comp)),{itemData:k==null?void 0:k.compData,onChange:d,childItemData:k==null?void 0:k.itemChildData,key:E,onContentChange:v,index:(k==null?void 0:k.id)??E,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",X6,[e.createVNode(x,{class:"cancel-button footer-button",onClick:C,id:"themeBorderButton"},{default:e.withCtx(()=>S[0]||(S[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(x,{class:"confirm-button footer-button",onClick:H,id:"themeButton"},{default:e.withCtx(()=>S[1]||(S[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Q6=fr._export_sfc(Z6,[["__scopeId","data-v-2d9c5ab2"]]),e4={key:0,class:"method-content"},a4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),r=re.useOriginalState(R.pinia),{originalPath:n}=R.storeToRefs(r),i=a,o=e.ref(!1),p=e.ref(),s=re.useTableComp(R.pinia),{multipleTableConst:u}=R.storeToRefs(s),y=R.useModelComp(R.pinia),b=e.ref(!1),g=R.useMenuState(R.pinia),d=R.useLoginState(R.pinia),{itemData:C,isEdit:v,routeToChildPath:H,tableViewContents:T,lockingPage:j,payloadTypes:D}=R.storeToRefs(y),{activeMenuPath:_,platform:S,childMenu:x}=R.storeToRefs(g),{loginUserInfo:k}=R.storeToRefs(d),E=e.ref(!1),M=async()=>{var ue,N;(ue=l.value)!=null&&ue.find(se=>(se==null?void 0:se.buttonName)==="保存")&&await X((N=l.value)==null?void 0:N.find(se=>(se==null?void 0:se.buttonName)==="保存")),await re.onSaveBack()};e.watch(()=>C.value,async()=>{v.value==="view"&&!E.value&&await ze(R.cloneDeep(i.itemData)),E.value=!1},{deep:!0});const O=()=>{o.value=!1,p.value=void 0},Q=ue=>ue.map(N=>{const se={};for(const G in N){const ve=N[G];if(G.includes(u.value)){const ke=G.split(u.value);let Be=se;ke.forEach((We,he)=>{he===ke.length-1?Be[We]=ve:(Be[We]||(Be[We]={}),Be=Be[We])})}else se[G]=ve}return se}),J=async(ue,N,se=[])=>{var ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge;let G=(ve=R.cloneDeep(N))==null?void 0:ve.filter(V=>(V==null?void 0:V.comp)!=="methodButton");if(ue!=null&&ue.includes("[")){let V=(I=(he=(We=(Be=(ke=R.cloneDeep(ue))==null?void 0:ke.split("["))==null?void 0:Be[1])==null?void 0:We.split("]"))==null?void 0:he[0])==null?void 0:I.split(":"),F="";if(V!=null&&V[0]){let le=(Oe=G==null?void 0:G.find(fe=>(fe==null?void 0:fe.name)===(V==null?void 0:V[0])))==null?void 0:Oe.compData;if(!le){let fe=(oe=ue==null?void 0:ue.split("["))==null?void 0:oe[0],be=await re.getItemData(fe,sessionStorage.getItem("systemKey"),"",!1,"","",se);le=(ge=be==null?void 0:be.find(ua=>(ua==null?void 0:ua.name)===(V==null?void 0:V[0])))==null?void 0:ge.compData}le==null||le.forEach(fe=>{var be,ua,ia,Pe,va,Ea;if((fe==null?void 0:fe.key)==="formContent")(be=fe==null?void 0:fe.contents)==null||be.forEach(Ae=>{var Fa;(Ae==null?void 0:Ae.key)===(V==null?void 0:V[1])&&(Array.isArray(Ae==null?void 0:Ae.value)?F=Ae==null?void 0:Ae.value:F=(Fa=Ae==null?void 0:Ae.value)==null?void 0:Fa.toString())});else if((fe==null?void 0:fe.key)==="tableContents"){let Ae=[],Fa=(ua=le==null?void 0:le.find(da=>(da==null?void 0:da.key)==="header"))==null?void 0:ua.contents,Ta=(V==null?void 0:V[1])??"";if(Fa!=null&&Fa.every(da=>Array.isArray(da))){let da=re.getColumnChild((va=Fa==null?void 0:Fa[0])==null?void 0:va.filter(Ha=>(Ha==null?void 0:Ha.label)!=="操作"));(Ea=fe.contents)==null||Ea.forEach(Ha=>{let sa={};Ha=Ha==null?void 0:Ha.filter(He=>!(He!=null&&He.id)),da==null||da.forEach((He,ha)=>{let ea=Ha[ha];typeof Ha[ha]=="number"&&(ea=Ha[ha].toString()),(Ta===""||Ta===He.prop)&&(sa[He.prop]=ea)}),Ae.push(sa)}),Ae=Q(Ae)}else{let da=(ia=Fa==null?void 0:Fa.map(Ha=>Ha==null?void 0:Ha.label))==null?void 0:ia.filter(Ha=>Ha!=="操作");(Pe=fe.contents)==null||Pe.forEach(Ha=>{let sa={};Ha=Ha==null?void 0:Ha.filter(He=>!(He!=null&&He.id)),da==null||da.forEach((He,ha)=>{let ea=Ha[ha];typeof Ha[ha]=="number"&&(ea=Ha[ha].toString()),(Ta===""||Ta===He)&&(sa[He]=ea)}),Ae.push(sa)})}F=Ae}})}return F}else if(ue!=null&&ue.includes("/")){let V={};return(xe=R.cloneDeep(G))==null||xe.forEach((F,le)=>{var fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie;if((F==null?void 0:F.comp)==="Table"){let Ye=Array.isArray((ua=(be=(fe=F==null?void 0:F.compData)==null?void 0:fe.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:be.contents)==null?void 0:ua[0])?(Ea=(va=(Pe=(ia=F==null?void 0:F.compData)==null?void 0:ia.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:Pe.contents)==null?void 0:va[0])==null?void 0:Ea.some(Ie=>Ie==null?void 0:Ie.children):[],na=(Ta=(Fa=(Ae=F==null?void 0:F.compData)==null?void 0:Ae.find(Ie=>(Ie==null?void 0:Ie.key)==="tableContents"))==null?void 0:Fa.contents)==null?void 0:Ta.map(Ie=>(Ie!=null&&Ie.find(Je=>Je==null?void 0:Je.id)&&(Ie=Ie.slice(1)),Ie)),fa=(ha=(He=(sa=(Ha=(da=F==null?void 0:F.compData)==null?void 0:da.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:Ha.contents)==null?void 0:sa[0])==null?void 0:He[0])==null?void 0:ha.label,Re=($e=(ea=F==null?void 0:F.compData)==null?void 0:ea.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:$e.contents;if(Ye)(Ye==null?void 0:Ye.length)===0?V[F.name]=V!=null&&V[F.name]?V[F.name]:re.tableToForm(na,Re):V[fa]=re.tableToForm(na,Re);else{const Ie=[];Re=Re.slice(1,Re.length-1),Re==null||Re.forEach((Je,Ne)=>{na==null||na.forEach(_e=>{Ie.push({key:Je.label+_e[0],value:_e[Ne+1]})})}),V["form"+le]=Ie}}else{const Ye=(ie=(Fe=F.compData)==null?void 0:Fe.find(fa=>(fa==null?void 0:fa.key)==="formContent"))==null?void 0:ie.contents;V!=null&&V.form||(V.form=[]);const na=[];Ye==null||Ye.forEach(fa=>{fa.key!==""&&(fa={key:(fa==null?void 0:fa.key)??(fa==null?void 0:fa.label),value:fa==null?void 0:fa.value},na.push(fa))}),V.form=[...na,...R.cloneDeep(V==null?void 0:V.form)]}}),V}else{if(ue==="createInsofDataApi"){let V=(ne=R.cloneDeep(N))==null?void 0:ne[0];return V={comp:(we=R.cloneDeep(V))==null?void 0:we.comp,compData:(Ke=R.cloneDeep(V))==null?void 0:Ke.compData,name:(ya=R.cloneDeep(V))==null?void 0:ya.name,isShow:(Ge=R.cloneDeep(V))==null?void 0:Ge.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:_.value},value:{pageData:V}}}return ue}},ye=async(ue,N,se)=>{var ke,Be,We;let G=await re.getItemData(N,sessionStorage.getItem("systemKey"),""),ve=G==null?void 0:G.find(he=>(he==null?void 0:he.name)===(se==null?void 0:se[0]));if(ve){if((ve==null?void 0:ve.comp)==="Table"){let he={};for(let we in R.cloneDeep(ue))R.cloneDeep(ue)[we]!=="loginUser"?he[we]=R.cloneDeep(ue)[we]:he[we]=((ke=k.value)==null?void 0:ke.account)||((Be=k.value)==null?void 0:Be.账号);let I=[],Oe=he;Array.isArray(ue)||(Oe=[he]),Oe==null||Oe.forEach(we=>{I.push({[we[se[1]]]:we})});let oe=[],ge=I==null?void 0:I.map(we=>{var Ke;return(Ke=Object.keys(we))==null?void 0:Ke[0]});G==null||G.forEach(we=>{var Ke;(we==null?void 0:we.name)===(se==null?void 0:se[0])&&((Ke=we==null?void 0:we.compData)==null||Ke.forEach(ya=>{var Ge;(ya==null?void 0:ya.key)==="tableContents"&&((Ge=ya==null?void 0:ya.contents)==null||Ge.forEach(V=>{V!=null&&V.some(F=>ge.includes(F))&&oe.push({[V.find(F=>F.id).id]:V.find(F=>ge.includes(F))})}))}))});let xe=oe==null?void 0:oe.map(we=>{var Ke;return(Ke=Object.keys(we))==null?void 0:Ke[0]}),ne=[];if(xe==null||xe.forEach(we=>{var Ge;let Ke=(Ge=oe==null?void 0:oe.find(V=>{var F;return((F=Object.keys(V))==null?void 0:F[0].toString())===we.toString()}))==null?void 0:Ge[we],ya=I==null?void 0:I.find(V=>{var F;return((F=Object.keys(V))==null?void 0:F[0])===Ke});ne.push({id:parseInt(we),value:{tableData:ya[Ke]}})}),(ne==null?void 0:ne.length)>0)return ne}else if((ve==null?void 0:ve.comp)==="Form"){let he=R.cloneDeep(ve);he.compData=(We=he.compData)==null?void 0:We.map(oe=>{var ge;return(oe==null?void 0:oe.key)==="formContent"&&(oe.contents=(ge=oe.contents)==null?void 0:ge.map(xe=>((xe==null?void 0:xe.key)===(se==null?void 0:se[1])&&(xe.value=(ue==null?void 0:ue[xe==null?void 0:xe.prop])||ue),xe))),oe});let I={};for(let oe in he)oe!=="id"&&(I[oe]=he[oe]);let Oe=[];if(Oe.push({id:ve==null?void 0:ve.id,keyType:se==null?void 0:se[1],value:{pageData:I}}),(Oe==null?void 0:Oe.length)>0)return Oe}}},te=async(ue,N,se)=>{var ke,Be,We,he,I,Oe,oe,ge,xe,ne;let G=await re.getItemData(N,sessionStorage.getItem("systemKey"),""),ve=G==null?void 0:G.find(we=>(we==null?void 0:we.name)===(se==null?void 0:se[0]));if(ve){if((ve==null?void 0:ve.comp)==="Table"){let we={};for(let Ke in R.cloneDeep(ue))R.cloneDeep(ue)[Ke]!=="loginUser"?we[Ke]=R.cloneDeep(ue)[Ke]:we[Ke]=((ke=k.value)==null?void 0:ke.account)||((Be=k.value)==null?void 0:Be.账号);await Zr.createInsofDataApi({key:{type:"data",pageKey:N,tableId:ve==null?void 0:ve.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:we}})}else if((ve==null?void 0:ve.comp)==="Form"){let we=R.cloneDeep(ve),Ke=Object.keys(ue),ya="";(he=(We=R.cloneDeep(we))==null?void 0:We.compData)==null||he.forEach(be=>{var ua,ia;(be==null?void 0:be.key)==="formContent"&&((ia=(ua=R.cloneDeep(be))==null?void 0:ua.contents)==null||ia.forEach(Pe=>{var va;Ke.includes(Pe==null?void 0:Pe.key)&&(Pe==null?void 0:Pe.value)===((va=k.value)==null?void 0:va.姓名)&&(ya=Pe==null?void 0:Pe.key)}))});let Ge=[];(I=Object.values(ue[ya]))==null||I.forEach(be=>{be!=null&&be.includes("(")&&Ge.push(be)}),Ge=[...new Set(Ge)];const V=Ge==null?void 0:Ge.map(async be=>{var Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe;let ua="";(Ha=(da=(Ta=(Fa=(Ae=(Ea=R.cloneDeep(be))==null?void 0:Ea.split("("))==null?void 0:Ae[1])==null?void 0:Fa.split(")"))==null?void 0:Ta[0])==null?void 0:da.split(":"))==null||Ha.forEach(ie=>{ua=ua===""?ua+ie.replaceAll("'",""):ua+"/"+ie.replaceAll("'","")});let ia=[];(Fe=($e=(ea=(ha=(He=(sa=R.cloneDeep(be))==null?void 0:sa.split("<"))==null?void 0:He[1])==null?void 0:ha.split(">"))==null?void 0:ea[0])==null?void 0:$e.split(":"))==null||Fe.forEach(ie=>{ia.push(ie.replaceAll("'",""))});const Pe=await re.getItemData(ua,sessionStorage.getItem("systemKey"),"");let va="";return Pe==null||Pe.forEach(ie=>{var Ye;ie.name===(ia==null?void 0:ia[0])&&((Ye=ie==null?void 0:ie.compData)==null||Ye.forEach(na=>{var fa;(na==null?void 0:na.key)==="formContent"&&((fa=na.contents)==null||fa.forEach(Re=>{(Re==null?void 0:Re.key)===(ia==null?void 0:ia[1])&&(va=Re==null?void 0:Re.value)}))}))}),{[be]:va}}),F=await Promise.all(V);we.compData=(oe=(Oe=R.cloneDeep(we))==null?void 0:Oe.compData)==null?void 0:oe.map(be=>{var ua,ia;return(be==null?void 0:be.key)==="formContent"&&(be.contents=(ia=(ua=R.cloneDeep(be))==null?void 0:ua.contents)==null?void 0:ia.map(Pe=>{var va,Ea,Ae,Fa;return(va=ue[ya])!=null&&va[Pe==null?void 0:Pe.key]&&(ue[ya][Pe==null?void 0:Pe.key].includes("(")?Pe.value=(Ea=F==null?void 0:F.find(Ta=>{var da;return((da=Object.keys(Ta))==null?void 0:da[0])===ue[ya][Pe==null?void 0:Pe.key]}))==null?void 0:Ea[ue[ya][Pe==null?void 0:Pe.key]]:Pe.value=(Fa=(Ae=R.cloneDeep(ue))==null?void 0:Ae[ya])==null?void 0:Fa[Pe==null?void 0:Pe.key]),Pe})),be});const le=await Zr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let fe="";((ge=le==null?void 0:le.data)==null?void 0:ge.type)==="success"&&((ne=(xe=le==null?void 0:le.data)==null?void 0:xe.result)==null||ne.forEach(be=>{var ua,ia;((ia=(ua=be==null?void 0:be.value)==null?void 0:ua.pageData)==null?void 0:ia.name)===(se==null?void 0:se[0])&&(fe=be.id)}),await Zr.updateInsofDataApi({id:fe,value:{pageData:we}}))}}},U=(ue,N="",se={})=>{for(const[G,ve]of Object.entries(ue)){const ke=N?`${N}.${G}`:G;ve!==null&&typeof ve=="object"&&!Array.isArray(ve)&&Object.prototype.toString.call(ve)!=="[object Date]"?U(ve,ke,se):se[ke]=ve}return se},q=async(ue,N,se,G)=>{var Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa;let ve=await re.getItemData(N,sessionStorage.getItem("systemKey"),""),ke=ve==null?void 0:ve.find(Ta=>(Ta==null?void 0:Ta.name)===(se==null?void 0:se[0]));if(ke){if(!(se!=null&&se[1])&&(ke==null?void 0:ke.comp)==="Table"){let Ta={},da=[],Ha=(We=(Be=ke==null?void 0:ke.compData)==null?void 0:Be.find(ha=>(ha==null?void 0:ha.key)==="header"))==null?void 0:We.contents;Ha!=null&&Ha.every(ha=>Array.isArray(ha))?da=(I=re.getColumnChild((he=Ha==null?void 0:Ha[0])==null?void 0:he.filter(ha=>(ha==null?void 0:ha.label)!=="操作")))==null?void 0:I.map(ha=>ha==null?void 0:ha.prop):da=Ha==null?void 0:Ha.map(ha=>ha==null?void 0:ha.label);for(let ha in R.cloneDeep(ue))if(R.cloneDeep(ue)[ha]!=="loginUser"){let ea=U(R.cloneDeep(ue)[ha]),$e={};for(let Fe in ea)if(da!=null&&da.find(ie=>ie===Fe))$e[Fe]=ea[Fe];else if(da!=null&&da.find(ie=>(ie==null?void 0:ie.toUpperCase())===(Fe==null?void 0:Fe.toUpperCase()))){let ie=da==null?void 0:da.find(Ye=>(Ye==null?void 0:Ye.toUpperCase())===(Fe==null?void 0:Fe.toUpperCase()));$e[ie]=ea[Fe]}Ta[ha]=$e}else Ta[ha]=((Oe=k.value)==null?void 0:Oe.account)||((oe=k.value)==null?void 0:oe.账号);let sa=await Zr.getInsofDataApi({keyLikes:{tableId:ke==null?void 0:ke.id}});if(((xe=(ge=sa==null?void 0:sa.data)==null?void 0:ge.result)==null?void 0:xe.length)>0){let ha=(we=(ne=sa==null?void 0:sa.data)==null?void 0:ne.result)==null?void 0:we.map(ea=>ea==null?void 0:ea.id);(ha==null?void 0:ha.length)>0&&await Zr.batchDeleteInsofDataApi({ids:ha})}let He=[];if((Ke=ke==null?void 0:ke.compData)!=null&&Ke.find(ha=>(ha==null?void 0:ha.key)==="pageColumn")&&((V=(Ge=(ya=ke==null?void 0:ke.compData)==null?void 0:ya.find(ha=>(ha==null?void 0:ha.key)==="pageColumn"))==null?void 0:Ge.contents)!=null&&V.includes("["))){const ha=await Zr.getInsofDataApi({id:ke==null?void 0:ke.tableId});let ea=((be=(fe=(le=(F=ha==null?void 0:ha.data)==null?void 0:F.result)==null?void 0:le[0])==null?void 0:fe.key)==null?void 0:be.pageKey)??"";(ua=Object.values(Ta))==null||ua.forEach($e=>{He.push({key:{type:"data",pageKey:ea,tableId:ke==null?void 0:ke.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:$e}})})}else(ia=Object.values(Ta))==null||ia.forEach(ha=>{He.push({key:{type:"data",pageKey:N,tableId:ke==null?void 0:ke.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ha}})});(He==null?void 0:He.length)>0&&await Zr.batchAddInsofDataApi({dataList:He})}else if(!(se!=null&&se[1])&&(ke==null?void 0:ke.comp)==="Form"){let Ta=R.cloneDeep(ke);Ta.compData=(va=(Pe=R.cloneDeep(Ta))==null?void 0:Pe.compData)==null?void 0:va.map(sa=>{var He,ha;return(sa==null?void 0:sa.key)==="formContent"&&(sa.contents=(ha=(He=R.cloneDeep(sa))==null?void 0:He.contents)==null?void 0:ha.map(ea=>{var $e,Fe;return($e=R.cloneDeep(ue))!=null&&$e[ea==null?void 0:ea.key]&&(ea.value=(Fe=R.cloneDeep(ue))==null?void 0:Fe[ea==null?void 0:ea.key]),ea})),sa});const da=await Zr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let Ha="";((Ea=da==null?void 0:da.data)==null?void 0:Ea.type)==="success"&&((Fa=(Ae=da==null?void 0:da.data)==null?void 0:Ae.result)==null||Fa.forEach(sa=>{var He,ha;((ha=(He=sa==null?void 0:sa.value)==null?void 0:He.pageData)==null?void 0:ha.name)===(se==null?void 0:se[0])&&(Ha=sa.id)}),await Zr.updateInsofDataApi({id:Ha,value:{pageData:Ta}}))}}},X=async ue=>{var N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne;g.setImportLoading(!0);try{if(ue.api){let we=new WeakMap,Ke=await re.getItemData((x==null?void 0:x.value)===""?_.value:x==null?void 0:x.value,sessionStorage.getItem("systemKey"),"",!1,"","",we),ya="";if(Ke=Ke==null?void 0:Ke.map(ia=>{var Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea;if((ia==null?void 0:ia.comp)==="Form")ia.compData=(Pe=ia.compData)==null?void 0:Pe.map($e=>{var Fe;return($e==null?void 0:$e.key)==="formContent"&&($e.contents=(Fe=$e.contents)==null?void 0:Fe.map(ie=>{var Ye;if((ie==null?void 0:ie.value)===""&&(ie==null?void 0:ie.type)==="Select"){let na=re.judgeContents((Ye=R.cloneDeep(ie))==null?void 0:Ye.optionUrl,we);ie.value=ie.value||na}return ie})),$e});else if((ia==null?void 0:ia.comp)==="Table"&&(va=ia.compData)!=null&&va.find($e=>($e==null?void 0:$e.key)==="pageColumn")){let $e=(Ae=(Ea=ia.compData)==null?void 0:Ea.find(na=>(na==null?void 0:na.key)==="pageColumn"))==null?void 0:Ae.contents,Fe=((Ta=(Fa=ia.compData)==null?void 0:Fa.find(na=>(na==null?void 0:na.key)==="pageGroup"))==null?void 0:Ta.contents)??"",ie=(sa=(Ha=(da=$e==null?void 0:$e.split("["))==null?void 0:da[1])==null?void 0:Ha.split("]"))==null?void 0:sa[0];ya=((He=$e==null?void 0:$e.split("["))==null?void 0:He[0])+((ea=(ha=T.value)==null?void 0:ha.find(na=>(na==null?void 0:na.key)===ie))==null?void 0:ea.value)}return ia}),!(ya===""||ya==="")){const ia=await re.getItemData(ya,sessionStorage.getItem("systemKey"),"",!1,"","",we);Ke=Ke==null?void 0:Ke.map(Pe=>{var va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe;if((Pe==null?void 0:Pe.comp)==="Table"&&(va=Pe.compData)!=null&&va.find(ie=>(ie==null?void 0:ie.key)==="pageColumn")){let ie=(Ae=(Ea=Pe.compData)==null?void 0:Ea.find(Ie=>(Ie==null?void 0:Ie.key)==="pageColumn"))==null?void 0:Ae.contents,Ye=((Ta=(Fa=Pe.compData)==null?void 0:Fa.find(Ie=>(Ie==null?void 0:Ie.key)==="pageGroup"))==null?void 0:Ta.contents)??"",na=(sa=(Ha=(da=ie==null?void 0:ie.split("["))==null?void 0:da[1])==null?void 0:Ha.split("]"))==null?void 0:sa[0],fa=((He=ie==null?void 0:ie.split("["))==null?void 0:He[0])+((ea=(ha=T.value)==null?void 0:ha.find(Ie=>(Ie==null?void 0:Ie.key)===na))==null?void 0:ea.value),Re=($e=ia==null?void 0:ia.find(Ie=>(Ie==null?void 0:Ie.name)===(Ye===""?i==null?void 0:i.compName:Ye)))==null?void 0:$e.compData;Pe.compData=(Fe=Pe.compData)==null?void 0:Fe.map(Ie=>{var Je;return(Ie==null?void 0:Ie.key)==="tableContents"&&(Ie.contents=(Je=Re==null?void 0:Re.find(Ne=>(Ne==null?void 0:Ne.key)==="tableContents"))==null?void 0:Je.contents),Ie})}return Pe})}let Ge={};if(((se=(N=ue==null?void 0:ue.extraValues)==null?void 0:N.input)==null?void 0:se.length)>0){const ia=(ve=(G=ue==null?void 0:ue.extraValues)==null?void 0:G.input)==null?void 0:ve.map(async Pe=>{var va;ee!=null&&ee.find(Ea=>Ea===Pe)?Ge=await J(Pe,Ke):Ge[Object.keys(Pe)[0]]=await J((va=Object.values(Pe))==null?void 0:va[0],Ke,we)});await Promise.all(ia)}else Ge=await J("/",Ke);let V=!1;(Be=(ke=ue==null?void 0:ue.extraValues)==null?void 0:ke.output)==null||Be.forEach(ia=>{var Pe,va;(va=(Pe=Object.values(ia))==null?void 0:Pe[0])!=null&&va.includes(".doc")&&(V=!0)});let F;if(V){const ia=R.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});F=await Xa.axios.post(ue.api,Ge,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ia.close()})}else F=await Xa.axios.post(ue.api,Ge,{headers:{"Content-Type":"application/json"}});let le=(Oe=(I=(he=(We=R.cloneDeep(ue))==null?void 0:We.extraValues)==null?void 0:he.output)==null?void 0:I.map(ia=>{var Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye;if(!((va=(Pe=Object.values(ia))==null?void 0:Pe[0])!=null&&va.includes(".doc"))){let na=(He=(sa=(Ha=(Ae=R.cloneDeep((Ea=Object.values(ia))==null?void 0:Ea[0]))==null?void 0:Ae.split("["))==null?void 0:Ha[((da=(Ta=R.cloneDeep((Fa=Object.values(ia))==null?void 0:Fa[0]))==null?void 0:Ta.split("["))==null?void 0:da.length)-1])==null?void 0:sa.split("]"))==null?void 0:He[0],fa=na==null?void 0:na.split(":"),Re=($e=R.cloneDeep((ha=Object.values(ia))==null?void 0:ha[0]))==null?void 0:$e.substring(0,R.cloneDeep((ea=Object.values(ia))==null?void 0:ea[0]).lastIndexOf("["));if(Re=(ie=R.cloneDeep(Re))==null?void 0:ie.slice(0,((Fe=R.cloneDeep(Re))==null?void 0:Fe.length)-1),Re!=null&&Re.includes("[")){let Ie="";if((Ye=re.contentTransArrayToAll(Re,"/"))==null||Ye.forEach(Je=>{var Ne,_e,$a,wl,el,Pl,bl;if(!(Je!=null&&Je.includes("[")))Ie=Ie===""?Ie+Je.replaceAll("/",""):Ie+"/"+Je.replaceAll("/","");else{let Hl=R.cloneDeep(Je).slice(1,((Ne=R.cloneDeep(Je))==null?void 0:Ne.length)-1),ll=(Pl=(el=(wl=($a=(_e=R.cloneDeep(Hl))==null?void 0:_e.split("["))==null?void 0:$a[1])==null?void 0:wl.split("]"))==null?void 0:el[0])==null?void 0:Pl.split(":"),jl="",Ga=(bl=Ke==null?void 0:Ke.find(Jl=>(Jl==null?void 0:Jl.name)===(ll==null?void 0:ll[0])))==null?void 0:bl.compData;Ga==null||Ga.forEach(Jl=>{var Xl;(Jl==null?void 0:Jl.key)==="formContent"&&((Xl=Jl==null?void 0:Jl.contents)==null||Xl.forEach(ar=>{(ar==null?void 0:ar.key)===(ll==null?void 0:ll[1])&&(jl=ar==null?void 0:ar.value)}))}),Ie=Ie===""?Ie+jl.replaceAll("/",""):Ie+"/"+jl.replaceAll("/","")}}),Re=Ie,Re[(Re==null?void 0:Re.length)-1]!=="/")return Re}}}))==null?void 0:Oe.filter(ia=>ia);le=[...new Set(R.cloneDeep(le))];let fe=le==null?void 0:le.map(async ia=>{let Pe=await re.getItemData(ia,sessionStorage.getItem("systemKey"),"",!1,"","",we);if((Pe==null?void 0:Pe.length)===0)return await re.getParentContents(ia)});await Promise.all(fe);let be=[],ua=(xe=(ge=(oe=R.cloneDeep(ue))==null?void 0:oe.extraValues)==null?void 0:ge.output)==null?void 0:xe.map(async ia=>{var Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa,Re,Ie,Je,Ne,_e,$a,wl,el,Pl,bl,Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr,ga,ol,vl,Dl,Ua,Sa,rl,Me,oa,Ya,me,_a,Pa,pl,Il,Qa,kl,Ma,aa,ma,ja,xa,Ul,Gl,Da,Rl,Fr,Dr,Qe,La,hl,Ll,Ba,Yr,ln,zr,Ve,Zl,ql,Jr;if((sa=(Ha=Object.values(ia))==null?void 0:Ha[0])!=null&&sa.includes(".doc")){var Pe=new Blob([F.data],{type:"application/octet-stream;charset=UTF-8"}),va=F.headers["content-disposition"],Ea=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Ae=Ea.exec(va),Fa=Ae==null?void 0:Ae[1],Ta=document.createElement("a"),da=window.URL.createObjectURL(Pe);p.value=[{name:Fa,blobUrl:da}],o.value=!0}else{let Sr=(na=(Ye=(ie=(ha=R.cloneDeep((He=Object.values(ia))==null?void 0:He[0]))==null?void 0:ha.split("["))==null?void 0:ie[((Fe=($e=R.cloneDeep((ea=Object.values(ia))==null?void 0:ea[0]))==null?void 0:$e.split("["))==null?void 0:Fe.length)-1])==null?void 0:Ye.split("]"))==null?void 0:na[0],Ql=Sr==null?void 0:Sr.split(":"),Er=(Ie=R.cloneDeep((fa=Object.values(ia))==null?void 0:fa[0]))==null?void 0:Ie.substring(0,R.cloneDeep((Re=Object.values(ia))==null?void 0:Re[0]).lastIndexOf("["));if(Er!=null&&Er.includes("[")?Er=(Ne=R.cloneDeep(Er))==null?void 0:Ne.slice(0,((Je=R.cloneDeep(Er))==null?void 0:Je.length)-1):Er===""&&(Er=_.value),Er=Er.replaceAll("<","[").replaceAll(">","]"),Er!=null&&Er.includes("[")){let $l="";(_e=re.contentTransArrayToAll(Er,"/"))==null||_e.forEach((or,lr)=>{var Wl,Nl,Pr,rr,Wr,Nr,Br,gn,Sn,Cn,mn;if(!(or!=null&&or.includes("[")))$l=$l===""?$l+or.replaceAll("/",""):$l+"/"+or.replaceAll("/","");else{let On="",nn="";(Wl=R.cloneDeep(or))!=null&&Wl.includes("]")?(On=R.cloneDeep(or).slice(1,((Nl=R.cloneDeep(or))==null?void 0:Nl.length)-1),nn=(Br=(Nr=(Wr=(rr=(Pr=R.cloneDeep(On))==null?void 0:Pr.split("["))==null?void 0:rr[1])==null?void 0:Wr.split("]"))==null?void 0:Nr[0])==null?void 0:Br.split(":")):(On=R.cloneDeep(or).slice(1,(gn=R.cloneDeep(or))==null?void 0:gn.length),nn=(Sn=R.cloneDeep(On))==null?void 0:Sn.split("/"));let Tn="",Vn=(Cn=Ke==null?void 0:Ke.find(on=>(on==null?void 0:on.name)===(nn==null?void 0:nn[0])))==null?void 0:Cn.compData;Vn==null||Vn.forEach(on=>{var Fn;(on==null?void 0:on.key)==="formContent"&&((Fn=on==null?void 0:on.contents)==null||Fn.forEach(Mr=>{(Mr==null?void 0:Mr.key)===(nn==null?void 0:nn[1])&&(Tn=Mr==null?void 0:Mr.value)}))}),((mn=re.contentTransArrayToAll(Er,"/"))==null?void 0:mn.length)-1!==lr?$l=$l===""?$l+Tn.replaceAll("/",""):$l+"/"+Tn.replaceAll("/",""):$l=$l+n.value+Tn.replaceAll("/","")}}),($a=_.value)!=null&&$a.includes($l)?Er=_.value:Er=$l}let er=R.cloneDeep((wl=Object.keys(ia))==null?void 0:wl[0]);if(((el=F==null?void 0:F.data)==null?void 0:el.statusCode)===200||((Pl=F==null?void 0:F.data)==null?void 0:Pl.code)===200){if(((Hl=(bl=F==null?void 0:F.data)==null?void 0:bl.data)!=null&&Hl[er]||(jl=(ll=F==null?void 0:F.data)==null?void 0:ll.result)!=null&&jl[er])&&(Ql==null?void 0:Ql.length)===1)return await q(((Jl=(Ga=F==null?void 0:F.data)==null?void 0:Ga.data)==null?void 0:Jl[er])||((ar=(Xl=F==null?void 0:F.data)==null?void 0:Xl.result)==null?void 0:ar[er]),R.cloneDeep(Er),Ql,ya);if((pr=(Sl=F==null?void 0:F.data)==null?void 0:Sl.data)!=null&&pr[er]||(ol=(ga=F==null?void 0:F.data)==null?void 0:ga.result)!=null&&ol[er]){let $l=await ye(((Dl=(vl=F==null?void 0:F.data)==null?void 0:vl.data)==null?void 0:Dl[er])||((Sa=(Ua=F==null?void 0:F.data)==null?void 0:Ua.result)==null?void 0:Sa[er]),R.cloneDeep(Er),Ql);return $l&&(be=[...be,...$l]),$l}else{if(!((rl=F==null?void 0:F.data)!=null&&rl.data)){let $l=await re.getItemData(_.value,sessionStorage.getItem("systemKey"),"",!1,"","",we);$l=$l==null?void 0:$l.map(lr=>{var Wl;return(lr==null?void 0:lr.name)===(Ql==null?void 0:Ql[0])&&(lr.compData=(Wl=lr.compData)==null?void 0:Wl.map(Nl=>{var Pr;return(Nl==null?void 0:Nl.key)==="formContent"&&(Nl.contents=(Pr=Nl.contents)==null?void 0:Pr.map(rr=>{var Wr,Nr;return(rr==null?void 0:rr.key)===(Ql==null?void 0:Ql[1])&&(rr.value=(Nr=(Wr=F==null?void 0:F.data)==null?void 0:Wr.result)==null?void 0:Nr[er==null?void 0:er.replaceAll(":","")]),rr})),Nl})),lr});let or=[];(Me=$l==null?void 0:$l.filter(lr=>(lr==null?void 0:lr.comp)==="Form"))==null||Me.forEach(async lr=>{let Wl={};for(let Nl in lr)Nl!=="id"&&(Wl[Nl]=lr[Nl]);or.push({id:lr==null?void 0:lr.id,value:{pageData:Wl}})}),(or==null?void 0:or.length)>0&&await Zr.batchUpdateInsofDataApi({dataList:or});return}if((Ql==null?void 0:Ql.length)===1){const $l=(me=(Ya=(oa=F==null?void 0:F.data)==null?void 0:oa.data)==null?void 0:Ya.path)==null?void 0:me.path;let or="";(Qa=(Il=(pl=(Pa=(_a=$l==null?void 0:$l.split("("))==null?void 0:_a[1])==null?void 0:Pa.split(")"))==null?void 0:pl[0])==null?void 0:Il.split(":"))==null||Qa.forEach(Nl=>{var Pr,rr;or=or===""?or+((Pr=Nl==null?void 0:Nl.replaceAll("'",""))==null?void 0:Pr.trim()):or+"/"+((rr=Nl==null?void 0:Nl.replaceAll("'",""))==null?void 0:rr.trim())});let lr=[(ja=(ma=(aa=(Ma=(kl=$l==null?void 0:$l.split("<"))==null?void 0:kl[1])==null?void 0:Ma.split(">"))==null?void 0:aa[0])==null?void 0:ma.replaceAll("'",""))==null?void 0:ja.trim()],Wl;return(Gl=(Ul=(xa=F==null?void 0:F.data)==null?void 0:xa.data)==null?void 0:Ul.data)!=null&&Gl[Ql==null?void 0:Ql[0]]?Wl=await q((Fr=(Rl=(Da=F==null?void 0:F.data)==null?void 0:Da.data)==null?void 0:Rl.data)==null?void 0:Fr[Ql==null?void 0:Ql[0]],or,Ql,ya):Wl=await te((Qe=(Dr=F==null?void 0:F.data)==null?void 0:Dr.data)==null?void 0:Qe.data,or,lr,we),Wl}else{const $l=(Ll=(hl=(La=F==null?void 0:F.data)==null?void 0:La.data)==null?void 0:hl.path)==null?void 0:Ll.path;let or="";return(Ve=(zr=(ln=(Yr=(Ba=$l==null?void 0:$l.split("("))==null?void 0:Ba[1])==null?void 0:Yr.split(")"))==null?void 0:ln[0])==null?void 0:zr.split(":"))==null||Ve.forEach(Wl=>{var Nl,Pr;or=or===""?or+((Nl=Wl==null?void 0:Wl.replaceAll("'",""))==null?void 0:Nl.trim()):or+"/"+((Pr=Wl==null?void 0:Wl.replaceAll("'",""))==null?void 0:Pr.trim())}),await ye((Jr=(ql=(Zl=F==null?void 0:F.data)==null?void 0:Zl.data)==null?void 0:ql.data)==null?void 0:Jr[Ql==null?void 0:Ql[0]],or,Ql)}}}}});if(await Promise.all(ua),(be==null?void 0:be.length)>0){let ia=[];be==null||be.forEach(Ea=>{ia!=null&&ia.find(Ae=>{var Fa,Ta,da,Ha;return((Ta=(Fa=Ae==null?void 0:Ae.value)==null?void 0:Fa.pageData)==null?void 0:Ta.name)===((Ha=(da=Ea==null?void 0:Ea.value)==null?void 0:da.pageData)==null?void 0:Ha.name)})||ia.push(Ea)});let Pe=[];ia==null||ia.forEach(Ea=>{var Ta,da,Ha,sa;let Ae=R.cloneDeep(Ea);Ae.value.pageData.compData=(Ta=Ae.value.pageData.compData)==null?void 0:Ta.map(He=>{var ha;return(He==null?void 0:He.key)==="formContent"&&(He.contents=(ha=He.contents)==null?void 0:ha.map(ea=>{var Fe,ie,Ye,na;let $e=(Fe=R.cloneDeep(be))==null?void 0:Fe.find(fa=>(fa==null?void 0:fa.keyType)===(ea==null?void 0:ea.key));if($e){let fa=(na=(Ye=(ie=$e.value.pageData.compData)==null?void 0:ie.find(Re=>(Re==null?void 0:Re.key)==="formContent"))==null?void 0:Ye.contents)==null?void 0:na.find(Re=>(Re==null?void 0:Re.key)===(ea==null?void 0:ea.key));ea.value=fa==null?void 0:fa.value}return ea})),He}),Pe.push({id:Ae==null?void 0:Ae.id,value:Ae==null?void 0:Ae.value});let Fa=[];(sa=(Ha=(da=Ae==null?void 0:Ae.value)==null?void 0:da.pageData)==null?void 0:Ha.compData)==null||sa.forEach(He=>{var ha;(He==null?void 0:He.key)==="formContent"&&((ha=He==null?void 0:He.contents)==null||ha.forEach(ea=>{var $e,Fe,ie,Ye,na,fa;if((Fe=($e=ea==null?void 0:ea.optionUrl)==null?void 0:$e.menuSelect)!=null&&Fe.find(Re=>Re==null?void 0:Re.includes("[")))if(Fa!=null&&Fa.find(Re=>{var Ie,Je,Ne;return((Ie=Re==null?void 0:Re.key)==null?void 0:Ie.join(","))===((Ne=(Je=ea==null?void 0:ea.optionUrl)==null?void 0:Je.menuSelect)==null?void 0:Ne.join(","))})){let Re=(ie=Fa==null?void 0:Fa.find(Ie=>{var Je,Ne,_e;return((Je=Ie==null?void 0:Ie.key)==null?void 0:Je.join(","))===((_e=(Ne=ea==null?void 0:ea.optionUrl)==null?void 0:Ne.menuSelect)==null?void 0:_e.join(","))}))==null?void 0:ie.value;Re.push({key:ea==null?void 0:ea.prop,groups:(Ye=ea==null?void 0:ea.optionUrl)==null?void 0:Ye.groupSelect,value:ea==null?void 0:ea.value}),Fa=Fa==null?void 0:Fa.map(Ie=>{var Je,Ne,_e;return((Je=Ie==null?void 0:Ie.key)==null?void 0:Je.join(","))===((_e=(Ne=ea==null?void 0:ea.optionUrl)==null?void 0:Ne.menuSelect)==null?void 0:_e.join(","))&&(Ie.value=Re),Ie})}else Fa.push({key:(na=ea==null?void 0:ea.optionUrl)==null?void 0:na.menuSelect,value:[{key:ea==null?void 0:ea.prop,groups:(fa=ea==null?void 0:ea.optionUrl)==null?void 0:fa.groupSelect,value:ea==null?void 0:ea.value}]})}))}),(Fa==null?void 0:Fa.length)>0&&(Fa=Fa==null?void 0:Fa.map(He=>{var ea;let ha="";return(ea=He==null?void 0:He.key)==null||ea.forEach($e=>{var Fe;if(!($e!=null&&$e.includes("[")))ha=ha===""?ha+$e:ha+"/"+$e;else{let ie="",Ye=(Fe=$e==null?void 0:$e.replaceAll("[","").replaceAll("]",""))==null?void 0:Fe.split(":");Ke==null||Ke.forEach(na=>{var fa;(na==null?void 0:na.name)===(Ye==null?void 0:Ye[0])&&((fa=na==null?void 0:na.compData)==null||fa.forEach(Re=>{var Ie;(Re==null?void 0:Re.key)==="formContent"&&((Ie=Re==null?void 0:Re.contents)==null||Ie.forEach(Je=>{(Je==null?void 0:Je.prop)===(Ye==null?void 0:Ye[1])&&(ie=Je==null?void 0:Je.value)}))}))}),ha=ha+n.value+ie}}),He.key=ha,He})),Fa==null||Fa.forEach(He=>{var Fe,ie,Ye;let ha=(Fe=we[He.key])==null?void 0:Fe.find(na=>{var fa,Re,Ie,Je,Ne,_e,$a;return((Re=(fa=na==null?void 0:na.value)==null?void 0:fa.pageData)==null?void 0:Re.name)===((Ne=(Je=(Ie=He==null?void 0:He.value)==null?void 0:Ie[0])==null?void 0:Je.groups)==null?void 0:Ne[0])&&(($a=(_e=na==null?void 0:na.value)==null?void 0:_e.pageData)==null?void 0:$a.name)!==void 0}),ea=ha==null?void 0:ha.id,$e=(ie=ha==null?void 0:ha.value)==null?void 0:ie.pageData;$e.compData=(Ye=$e.compData)==null?void 0:Ye.map(na=>{var fa;return(na==null?void 0:na.key)==="formContent"&&(na.contents=(fa=na.contents)==null?void 0:fa.map(Re=>{var Je;let Ie=(Je=He.value)==null?void 0:Je.find(Ne=>(Ne==null?void 0:Ne.key)===(Re==null?void 0:Re.prop));return Ie&&(Re.value=Ie.value),Re})),na}),Pe.push({id:ea,value:{pageData:$e}})})});let va=(ne=R.cloneDeep(be))==null?void 0:ne[0];(Pe==null?void 0:Pe.length)>0&&await Zr.batchUpdateInsofDataApi({dataList:Pe})}y.setFreshContent(!0)}g.setImportLoading(!1)}catch{Xa.ElMessage.error("方法执行错误,请查看方法!"),g.setImportLoading(!1)}E.value=!0},ee=["createInsofDataApi"],pe=Fl.debounce(async ue=>{X(ue)},100),ze=async ue=>{var Be,We,he;const N=R.cloneDeep(ue);let se,G=new WeakMap;ue!=null&&ue[0].path&&(se=await(N==null?void 0:N.map(async(I,Oe)=>{var Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha;const ge=(Ge=G[I==null?void 0:I.path])==null?void 0:Ge.filter(sa=>{var He;return((He=sa==null?void 0:sa.key)==null?void 0:He.type)==="data"});let xe="";const ne=await re.getItemData(_.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,G);ge==null||ge.forEach(sa=>{var He,ha,ea,$e,Fe;((ha=(He=sa==null?void 0:sa.value)==null?void 0:He.tableData)==null?void 0:ha.算法名称)===((ea=N==null?void 0:N[Oe])==null?void 0:ea.method)&&(xe=(Fe=($e=sa==null?void 0:sa.value)==null?void 0:$e.tableData)==null?void 0:Fe.算法体)});const we=await re.getItemData(I==null?void 0:I.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,G);let Ke="",ya=(fe=(le=(F=(V=we==null?void 0:we[0])==null?void 0:V.compData)==null?void 0:F.find(sa=>(sa==null?void 0:sa.key)==="header"))==null?void 0:le.contents)==null?void 0:fe.findIndex(sa=>(sa==null?void 0:sa.prop)==="算法体");return(ua=(be=we==null?void 0:we[0])==null?void 0:be.compData)==null||ua.forEach(sa=>{var He;(sa==null?void 0:sa.key)==="tableContents"&&((He=sa==null?void 0:sa.contents)==null||He.forEach(ha=>{ha!=null&&ha.find(ea=>ea===(I==null?void 0:I.method))&&(Ke=ha[ya])}))}),{buttonName:((ia=N==null?void 0:N[Oe])==null?void 0:ia.method)||((Ea=(va=(Pe=ge==null?void 0:ge[0])==null?void 0:Pe.value)==null?void 0:va.tableData)==null?void 0:Ea.算法名称),api:(xe===""?(Ta=(Fa=(Ae=ge==null?void 0:ge[0])==null?void 0:Ae.value)==null?void 0:Fa.tableData)==null?void 0:Ta.算法体:xe)||Ke,content:ne==null?void 0:ne.filter(sa=>sa.comp!=="methodButton"),extraContent:(da=R.cloneDeep(I.value))==null?void 0:da.slice(1),methodName:(I==null?void 0:I.path)??"",extraValues:(Ha=N==null?void 0:N[Oe])==null?void 0:Ha.data}})));const ve=N==null?void 0:N.map(async I=>{var we,Ke,ya,Ge,V,F;const Oe=(we=resAll.data.result)==null?void 0:we.filter(le=>{var fe,be,ua;return((fe=le==null?void 0:le.key)==null?void 0:fe.parentTable)===""&&((be=le==null?void 0:le.key)==null?void 0:be.type)==="method"&&((ua=le==null?void 0:le.key)==null?void 0:ua.methodName)===le.method}),oe=Oe==null?void 0:Oe[0],ge=(Ke=resAll.data.result)==null?void 0:Ke.filter(le=>{var fe,be;return((fe=le==null?void 0:le.key)==null?void 0:fe.type)==="methodData"&&((be=le==null?void 0:le.key)==null?void 0:be.tableId)===(oe==null?void 0:oe.id)}),xe=await re.getItemData(_.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,G),ne=ge==null?void 0:ge[0];return{buttonName:(ya=oe==null?void 0:oe.key)==null?void 0:ya.methodKey,api:(V=(Ge=ne==null?void 0:ne.value)==null?void 0:Ge.tableData)==null?void 0:V[0],content:xe==null?void 0:xe.filter(le=>le.comp!=="methodButton"),extraContent:(F=R.cloneDeep(I.value))==null?void 0:F.slice(1),methodName:(I==null?void 0:I.method)??""}}),ke=(Be=ue==null?void 0:ue[0])!=null&&Be.path&&((We=ue==null?void 0:ue[0])==null?void 0:We.path)!==""?await Promise.all(se):await Promise.all(ve);l.value=ke==null?void 0:ke.filter(I=>I==null?void 0:I.extraContent),(he=l.value)==null||he.forEach(I=>{var Oe;I.api===""&&((Oe=I.content)==null||Oe.forEach(oe=>{var ge;oe.comp=="Table"&&y.setExtraContents(re.methodTableToContent(oe.compData,(ge=I.extraContent)==null?void 0:ge[0]))}))})};return e.watch(()=>i.itemData,async()=>{v.value=="view"&&!E.value&&await ze(R.cloneDeep(i.itemData)),E.value=!1},{immediate:!0,deep:!0}),(ue,N)=>{var se,G,ve;return e.unref(v)!=="edit"?(e.openBlock(),e.createElementBlock("div",e4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=l.value)==null?void 0:se.filter(ke=>(ke==null?void 0:ke.buttonName)!=="保存"),ke=>{var Be;return e.openBlock(),e.createElementBlock("div",null,[ke.api!==""?(e.openBlock(),e.createBlock(e.unref(Ss._sfc_main),{key:0,disabled:e.unref(j)===e.unref(_)&&!((Be=ke==null?void 0:ke.buttonName)!=null&&Be.includes("预览")),class:"calculator-content",modelValue:ke.buttonName,onClickTrigger:We=>e.unref(pe)(ke),loading:b.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(H)!==""&&((ve=e.unref(_))==null?void 0:ve[((G=e.unref(_))==null?void 0:G.length)-1])!==e.unref(n)?(e.openBlock(),e.createBlock(e.unref(Ss._sfc_main),{key:0,class:"calculator-content",onClickTrigger:M,modelValue:"保存"})):e.createCommentVNode("",!0)]),o.value?(e.openBlock(),e.createBlock(ul.ssFilePreview,{key:0,fileDataList:p.value,onDestroy:O},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},l4=fr._export_sfc(a4,[["__scopeId","data-v-063aa9af"]]),r4={};function n4(a,l){return" 567 "}const i4=fr._export_sfc(r4,[["render",n4]]),o4={class:"module content"},t4={class:"module data"},s4={class:"module layout"},c4={class:"form-content"},u4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.reactive({visible:!1,width:"40%",title:"签名配置"}),o=e.ref("create"),p=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),s=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:""}]),y=e.ref({}),b=e.ref([]),g=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:b.value},{key:"signConfig",contents:y.value}]}),d=T=>{var j;y.value=R.cloneDeep(T),n("change",(j=g())==null?void 0:j.compData)},C=T=>{var j,D;if((T==null?void 0:T.buttonName)==="确认"){const _=R.cloneDeep(T==null?void 0:T.content);switch(o.value){case"create":b.value.push({..._,index:((j=b.value)==null?void 0:j.length)+1});break}n("change",(D=g())==null?void 0:D.compData),i.visible=!1}else i.visible=!1},v=(T,j)=>{var D,_;switch(T){case"create":(D=u.value)==null||D.forEach(S=>{S.value=""}),o.value="create",i.visible=!0;break;case"update":(_=u.value)==null||_.forEach(S=>{S.value=j[S==null?void 0:S.prop]}),o.value="update",i.visible=!0;break;case"delete":b.value.splice(j,1),o.value="delete";break}},H=()=>{i.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,T=>{var j,D;T&&(y.value=((j=T==null?void 0:T.find(_=>_.key==="signConfig"))==null?void 0:j.contents)??{},b.value=((D=T==null?void 0:T.find(_=>_.key==="signTypeList"))==null?void 0:D.contents)??[])},{immediate:!0}),(T,j)=>{const D=e.resolveComponent("svg-icon"),_=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",o4,[j[2]||(j[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(_,{class:"module-icon",id:"themeButton",onClick:j[0]||(j[0]=S=>v("create"))},{icon:e.withCtx(()=>[e.createVNode(D,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",t4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(S,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(S==null?void 0:S.label),1),e.createElementVNode("div",null,[e.createVNode(_,{type:"primary",size:"small",onClick:k=>v("update",{...S,index:x+1})},{default:e.withCtx(()=>j[3]||(j[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(_,{type:"danger",size:"small",onClick:k=>v("delete",x)},{default:e.withCtx(()=>j[4]||(j[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",s4,[e.createVNode(ul.ssForm,{rowContents:s.value,onChange:d},null,8,["rowContents"])])]),e.createVNode(Vr.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:H,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",c4,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:p.value,onOnButtonClick:C},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),d4=fr._export_sfc(u4,[["__scopeId","data-v-487e0536"]]),p4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(0),o=e.computed(()=>{var g,d;return(g=r==null?void 0:r.stepConfig)!=null&&g.allowTrigger?i.value:(d=r==null?void 0:r.stepConfig)==null?void 0:d.active}),p=(g,d)=>{i.value=d-1,n("clickStep",g,d)};e.onMounted(()=>{var g;n("clickStep",(g=r==null?void 0:r.stepList)==null?void 0:g[0],0)});const s=g=>ul.getComponent(g),u=()=>{var d;const g=(d=r==null?void 0:r.stepList)==null?void 0:d.find((C,v)=>v+1===o.value);return console.log("findStep",g),g?g==null?void 0:g.children:[]},y=g=>{n("clickTrigger",g)},b=g=>{n("changeTrigger",g)};return(g,d)=>{var H,T,j,D,_;const C=e.resolveComponent("el-step"),v=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{direction:(H=a.stepConfig)==null?void 0:H.direction,active:o.value,"finish-status":"success",simple:(T=a.stepConfig)==null?void 0:T.simple,"align-center":((j=a.stepConfig)==null?void 0:j.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(S,x)=>(e.openBlock(),e.createBlock(C,{key:x,class:"step-item",onClick:k=>p(S,x+1)},{title:e.withCtx(()=>[e.renderSlot(g.$slots,"title",{title:S==null?void 0:S.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(g.$slots,"description",{descriptions:S==null?void 0:S.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(D=a.stepConfig)!=null&&D.allowTrigger&&((_=a.stepConfig)!=null&&_.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u(),(S,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(S==null?void 0:S.type)),{modelValue:S.value,"onUpdate:modelValue":k=>S.value=k,onClickTrigger:y,onChangeTrigger:b,content:S==null?void 0:S.content},e.createSlots({_:2},[e.renderList(g.$slots,(k,E)=>({name:E,fn:e.withCtx(M=>[e.renderSlot(g.$slots,E,e.mergeProps({ref_for:!0},M||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),f4=fr._export_sfc(p4,[["__scopeId","data-v-a30ff621"]]),h4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const r=a,n=l,i=e.ref({}),o=e.ref([]),p=(s,u)=>{n("clickStep",s,u)};return e.watch(()=>r==null?void 0:r.itemData,s=>{var g,d,C,v;i.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let u=((g=s==null?void 0:s.find(H=>(H==null?void 0:H.key)==="stepName"))==null?void 0:g.contents)??[],y=[];(C=(d=s==null?void 0:s.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:d.contents)==null||C.forEach(H=>{y.push({label:H==null?void 0:H.label,prop:H==null?void 0:H.prop,name:H==null?void 0:H.prop,type:"text",disabled:!0})});let b=((v=s==null?void 0:s.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:v.contents)??[];u=u==null?void 0:u.map((H,T)=>{let j=y==null?void 0:y.map(D=>{var _;return{...D,value:(_=b==null?void 0:b[T])==null?void 0:_[D==null?void 0:D.prop]}});return{title:H,description:j}}),o.value=u},{immediate:!0,deep:!0}),(s,u)=>{const y=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(f4,{stepConfig:i.value,stepList:o.value,onClickStep:p},{icon:e.withCtx(()=>[e.createVNode(y,{name:"import"})]),title:e.withCtx(({title:b})=>[e.createTextVNode(e.toDisplayString(b),1)]),description:e.withCtx(({descriptions:b})=>[e.createVNode(ul.ssForm,{ref:"formRef",rowContents:b,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),v4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,r)=>{const n=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,(o,p)=>(e.openBlock(),e.createBlock(n,{key:p,timestamp:o.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:o==null?void 0:o.content,timestamp:o==null?void 0:o.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),m4=fr._export_sfc(v4,[["__scopeId","data-v-4172a886"]]),y4={class:"line-content"},g4={class:"line-time"},b4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref({}),n=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,i=>{var o,p;n.value=(o=i==null?void 0:i.find(s=>(s==null?void 0:s.key)==="timeLineList"))==null?void 0:o.contents,r.value=(p=i==null?void 0:i.find(s=>(s==null?void 0:s.key)==="timeLineConfig"))==null?void 0:p.contents},{immediate:!0}),(i,o)=>(e.openBlock(),e.createBlock(m4,{activities:n.value,timeLineConfig:r.value},{content:e.withCtx(({content:p,timestamp:s})=>[e.createElementVNode("span",y4,e.toDisplayString(p),1),e.createElementVNode("span",g4,e.toDisplayString(s),1)]),_:1},8,["activities","timeLineConfig"]))}}),k4=fr._export_sfc(b4,[["__scopeId","data-v-b4d9deed"]]),x4={class:"tabs-content"},w4=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 r=a,n=l,i=e.ref();e.watch(()=>r==null?void 0:r.itemData,()=>{i.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const o=d=>{n("change",d)},p=(d,C)=>{n("contentChange",d,C)},s=d=>{n("pageChange",d)},u=d=>{n("rowClick",d)},y=(d,C)=>{n("routeUrl",d,C)},b=d=>{n("clickTrigger",d)},g=(d,C)=>{n("clickMainKey",d,C)};return(d,C)=>{var v,H;return e.openBlock(),e.createElementBlock("div",x4,[(v=i.value)!=null&&v.length?(e.openBlock(),e.createBlock(ul.ssTab,{tabsContents:i.value,key:(H=i.value)==null?void 0:H.length},{pane:e.withCtx(({tab:T,index:j})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(lo)(T==null?void 0:T.comp)),{related:T==null?void 0:T.relatedTables,compNames:T==null?void 0:T.nameContents,compName:T==null?void 0:T.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:a.isDevMode,itemData:T==null?void 0:T.compData,childItemData:T==null?void 0:T.itemChildData,onChange:o,calculator:T==null?void 0:T.calculatorFilters,index:(T==null?void 0:T.id)??j,config:{showIndex:T==null?void 0:T.showIndex,allowMove:T==null?void 0:T.allowMove,viewport:T==null?void 0:T.viewport,status:T==null?void 0:T.status},onContentChange:p,onPageChange:s,onRowClick:u,onRouteUrl:y,parentTableId:T==null?void 0:T.tableId,allMapContents:a.allMapContents,children:T==null?void 0:T.children,level:1,onClickTrigger:b,onClickMainKey:g},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","calculator","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),_4=fr._export_sfc(w4,[["__scopeId","data-v-71516232"]]),S4={class:"type-select"},E4=["onClick"],C4={class:"list-icon"},T4={__name:"modelSelect",setup(a){const l=si(R.pinia),{itemData:r}=R.storeToRefs(l),n=i=>{const o=R.cloneDeep(r.value);o.push({comp:i.comp,name:i.name,compData:[]}),l.setItemData(o)};return(i,o)=>{const p=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",S4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Mu),(s,u)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:u},[e.createElementVNode("div",{class:"list-content",onClick:y=>n(s)},[e.createElementVNode("div",C4,[e.createVNode(p,{name:s.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(s.name),1)],8,E4)]))),128))])}}},B4=fr._export_sfc(T4,[["__scopeId","data-v-91799bf8"]]),D4={class:"fill-content"},N4={class:"operate-content"},A4={class:"collapse-title-content"},z4={class:"collapse-title-item"},M4={key:1},I4=["onClick"],O4={class:"icon-content"},L4={key:0,class:"edit-content"},R4=["onClick"],$4={class:"comp-child"},V4={__name:"modelFill",setup(a){const l=si(R.pinia),{itemData:r,originalData:n}=R.storeToRefs(l),i=e.ref([]);e.ref([]);const o=e.ref([]),p=e.ref([]),s=C=>{var H;let v=(H=R.cloneDeep(p.value))==null?void 0:H.map((T,j)=>(C===j&&(T.content=!0),T));p.value=v},u=C=>{var H;let v=(H=R.cloneDeep(p.value))==null?void 0:H.map((T,j)=>(C===j&&(T.content=!1),T));p.value=v,i.value=R.cloneDeep(r.value)},y=(C,v)=>{var D;let H=(D=R.cloneDeep(p.value))==null?void 0:D.map((_,S)=>(C===S&&(_.content=!1),_));p.value=H;const T=R.cloneDeep(r.value),j=T==null?void 0:T.filter((_,S)=>(S===C&&(_.name=v),_));l.setOriginalData(j),l.setItemData(j)};e.watch(()=>r.value,()=>{var C,v,H;!r.value||((C=r.value)==null?void 0:C.length)===0?i.value=[]:i.value=(v=R.cloneDeep(r.value))==null?void 0:v.filter(T=>(T==null?void 0:T.comp)!=="methodButton"),o.value=i.value,p.value=(H=R.cloneDeep(o.value))==null?void 0:H.map((T,j)=>({id:j,content:!1}))},{deep:!0,immediate:!0});const b=C=>Fi(C),g=(C,v,H)=>{var j,D;if(!C)return;let T=R.cloneDeep(r.value);T=(j=T==null?void 0:T.map((_,S)=>(S===H&&(_.compData=C),_)))==null?void 0:j.filter(_=>(_==null?void 0:_.comp)!=="methodButton"),p.value=(D=R.cloneDeep(T))==null?void 0:D.map((_,S)=>({id:S,content:!1})),l.setOriginalData(T),l.setItemData(T)},d=C=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const v=R.cloneDeep(r.value),H=v==null?void 0:v.filter((T,j)=>j!==C);l.setOriginalData(H),l.setItemData(H),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(C,v)=>{const H=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",D4,[v[1]||(v[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",N4,[e.createVNode(kc.default,{class:"collapse-content",collapseContents:i.value},{title:e.withCtx(({item:T,index:j})=>{var D,_,S,x,k,E,M,O,Q,J;return[e.createElementVNode("div",A4,[e.createElementVNode("div",z4,[(_=(D=p.value)==null?void 0:D.find(ye=>ye.id===j))!=null&&_.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:T.name&&T.name!==""?"8px":"0px"})},e.toDisplayString(T.name),5)),(x=(S=p.value)==null?void 0:S.find(ye=>ye.id===j))!=null&&x.content?(e.openBlock(),e.createElementBlock("div",M4,[e.createVNode(ul.ssInput,{modelValue:T.name,"onUpdate:modelValue":ye=>T.name=ye,onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(E=(k=p.value)==null?void 0:k.find(ye=>ye.id===j))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(ye=>s(j),["stop"]),class:"icon-content"},[e.createVNode(H,{name:"Edit",style:{width:"16px",height:"16px"}})],8,I4))]),e.createElementVNode("div",O4,[(O=(M=p.value)==null?void 0:M.find(ye=>ye.id===j))!=null&&O.content?(e.openBlock(),e.createElementBlock("div",L4,[e.createVNode(H,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(ye=>u(j),["stop"])},null,8,["onClick"]),e.createVNode(H,{name:"Save",onClick:e.withModifiers(ye=>y(j,T.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(Q=p.value)==null?void 0:Q.find(ye=>ye.id===j))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(ye=>d(j),["stop"]),class:"icon-content"},[e.createVNode(H,{name:"Delete",style:{width:"16px",height:"16px"}})],8,R4))])])]}),content:e.withCtx(({item:T,index:j})=>{var D,_;return[e.createElementVNode("div",$4,[e.createTextVNode(e.toDisplayString(b(T.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(T.comp+"Operate")),{itemContents:T==null?void 0:T.compData,originalItemContents:(_=(D=o.value)==null?void 0:D.find((S,x)=>x===j))==null?void 0:_.compData,onChange:S=>g(S,T,j)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},F4=fr._export_sfc(V4,[["__scopeId","data-v-a46a44b9"]]),P4={key:0,class:"show-content"},H4={style:{display:"flex"}},j4={__name:"modelShow",setup(a){const l=si(R.pinia),{itemData:r}=R.storeToRefs(l),n=e.ref([]);e.watch(()=>r.value,()=>{var o;!r.value||((o=r.value)==null?void 0:o.length)===0?n.value=[]:n.value=R.cloneDeep(r.value)},{deep:!0,immediate:!0});const i=o=>Fi(o);return(o,p)=>{var s;return((s=n.value)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",P4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(u,y)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:y},[e.createElementVNode("div",H4,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:y},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},U4=fr._export_sfc(j4,[["__scopeId","data-v-3f3e863e"]]),q4={class:"tabs-header"},W4={class:"tabs-list"},G4={class:"tab-name"},K4={class:"tab-actions"},Y4=["onClick"],J4=["onClick"],X4=["onClick"],Z4={class:"model-operate"},Q4={class:"model-select",style:{display:"unset"}},e2={class:"existing-components"},a2={class:"component-list"},l2=["onClick"],r2={class:"component-info"},n2={class:"component-type"},i2={class:"component-name"},o2={class:"model-fill"},t2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.ref([]),o=e.ref(!1),p=e.ref(""),s=e.ref({title:""}),u=e.ref(-1),y=e.ref(!1),b=e.ref(-1),g=e.ref(new WeakMap),d=e.ref(null),C=si(R.pinia),{itemData:v}=R.storeToRefs(C),H=()=>{p.value="新增标签页",s.value.title="",u.value=-1,o.value=!0},T=ue=>{p.value="修改标签页",s.value.title=i.value[ue].title,u.value=ue,o.value=!0},j=ue=>{const N=S(ue);g.value.delete(N),i.value.splice(ue,1),ze()},D=()=>{if(s.value.title.trim()){if(u.value===-1){const ue={title:s.value.title,value:s.value.title,label:s.value.title,children:[],id:_()};i.value.push(ue)}else i.value[u.value].title=s.value.title,i.value[u.value].value=s.value.title,i.value[u.value].label=s.value.title;o.value=!1,ze()}},_=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,S=ue=>{const N=i.value[ue];return N.id||(N.id=_()),N.id},x=ue=>{var G;b.value=ue;const N=S(ue);d.value=R.cloneDeep(v.value);let se=g.value.get(N);!se&&((G=i.value[ue].children)==null?void 0:G.length)>0&&(se=O(i.value[ue].children)),se?C.setItemData(R.cloneDeep(se)):C.setItemData([]),y.value=!0},k=e.computed(()=>{const ue=R.useModelComp(R.pinia),N=R.storeToRefs(ue).itemData.value;return console.log("可用组件数据",N),!N||!Array.isArray(N)?[]:N.filter(se=>{var G;if(se.comp==="Tabs"&&b.value>=0){const ve=S(b.value);if((G=se.compData)==null?void 0:G.some(Be=>{var We;return Be.key==="stepList"&&((We=Be.contents)==null?void 0:We.some(he=>he.id===ve))}))return!1}return!0})}),E=ue=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ue]||ue,M=ue=>{var N;try{const se=R.cloneDeep(ue);se.id=Date.now()+Math.random(),se.comp==="Tabs"&&((N=se.compData)==null||N.forEach(ve=>{ve.key==="stepList"&&ve.contents&&ve.contents.forEach(ke=>{ke.id=_()})}));const G=R.cloneDeep(v.value);G.push(se),C.setItemData(G)}catch(se){console.error("添加组件失败:",se)}},O=ue=>ue.map(N=>{var se;switch(N.type){case"form":return{comp:"Form",name:N.value||"表单",compData:Q(N.content)};case"table":return{comp:"Table",name:N.value||"表格",compData:J(N.content)};default:return{comp:"Unknown",name:N.value||"",compData:((se=N.content)==null?void 0:se.originalData)||[]}}}),Q=ue=>{if(!ue)return[];const N=[];return ue.rowContents&&N.push({key:"formContent",contents:ue.rowContents}),ue.buttonValue&&N.push({key:"formButton",contents:ue.buttonValue}),typeof ue.isEnableWrap<"u"&&N.push({key:"enableWrap",contents:ue.isEnableWrap}),N},J=ue=>[],ye=()=>{if(b.value>=0&&b.value<i.value.length){const ue=S(b.value);g.value.set(ue,R.cloneDeep(v.value)),i.value[b.value].children=q(v.value),console.log("保存后的数据",q(v.value))}y.value=!1,b.value=-1,d.value=null,ze()},te=()=>{d.value&&C.setItemData(R.cloneDeep(d.value)),y.value=!1,b.value=-1,d.value=null},U=()=>{y.value&&te()},q=ue=>{if(!Array.isArray(ue))throw new Error("sourceData must be an array");return ue.map((N,se)=>{if(!N||typeof N!="object")return N;const{comp:G,name:ve,compData:ke}=N;switch(G){case"Form":return{type:"form",content:X(ke||[]),value:"表单"};case"Table":return{type:"table",content:ee(ke||[]),value:"表格"};default:return{type:"xxx",content:pe(ke||[]),value:""}}})},X=ue=>{const N={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},se={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ue.forEach((G,ve)=>{if(!G||typeof G!="object"){console.warn(`Invalid config at index ${ve}:`,G);return}const{key:ke,contents:Be}=G,We=se[ke];if(!We){console.warn(`Unknown Form config key: ${ke}`);return}ke==="enableWrap"?N[We]=!!Be:N[We]=Array.isArray(Be)?Be:[]}),N},ee=ue=>{const N={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},se={header:"columns",tableContents:"tableData"};return ue.forEach((G,ve)=>{if(!G||typeof G!="object"){console.warn(`Invalid config at index ${ve}:`,G);return}const{key:ke,contents:Be}=G,We=se[ke];if(!We){console.warn(`Unknown Table config key: ${ke}`);return}N[We]=Array.isArray(Be)?Be:[]}),N},pe=ue=>(console.log("Default conversion logic - to be implemented"),{originalData:ue,processed:!1,componentType:"unknown"}),ze=()=>{const ue=[{key:"stepList",contents:i.value}];n("change",ue)};return e.watch(()=>r.itemContents,ue=>{if(ue&&ue.length>0){const N=ue.find(se=>se.key==="stepList");N&&N.contents&&(i.value=N.contents.map(se=>({title:se.title||"",value:se.value||se.title||"",label:se.label||se.title||"",children:se.children||[],id:se.id||_()})))}},{immediate:!0,deep:!0}),(ue,N)=>{const se=e.resolveComponent("svg-icon"),G=e.resolveComponent("el-input"),ve=e.resolveComponent("el-form-item"),ke=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",q4,[N[6]||(N[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:H},[e.createVNode(se,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),N[5]||(N[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",W4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(Be,We)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:We},[e.createElementVNode("span",G4,e.toDisplayString(Be.title),1),e.createElementVNode("div",K4,[e.createElementVNode("button",{onClick:he=>T(We)},"修改标题",8,Y4),e.createElementVNode("button",{onClick:he=>x(We)},"布局调整",8,J4),e.createElementVNode("button",{onClick:he=>j(We)},"删除",8,X4)])]))),128))]),e.createVNode(Vr.ssDialog,{modelValue:o.value,"onUpdate:modelValue":N[2]||(N[2]=Be=>o.value=Be),title:p.value,onBeforeDestroy:N[3]||(N[3]=Be=>o.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:N[1]||(N[1]=Be=>o.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:D},"确定")]),default:e.withCtx(()=>[e.createVNode(ke,{model:s.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(ve,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:s.value.title,"onUpdate:modelValue":N[0]||(N[0]=Be=>s.value.title=Be),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Vr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":N[4]||(N[4]=Be=>y.value=Be),title:"布局调整",fullScreen:"",onBeforeDestroy:U},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:te},"取消"),e.createElementVNode("button",{onClick:ye},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",Z4,[e.createElementVNode("div",Q4,[e.createVNode(B4),e.createElementVNode("div",e2,[N[8]||(N[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",a2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,Be=>(e.openBlock(),e.createElementBlock("div",{key:Be.id,class:"component-item",onClick:We=>M(Be)},[e.createElementVNode("div",r2,[e.createElementVNode("span",n2,e.toDisplayString(E(Be.comp)),1),e.createElementVNode("span",i2,e.toDisplayString(Be.name),1)]),N[7]||(N[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,l2))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:ue.innerWidth},[e.createVNode(U4)])),e.createElementVNode("div",o2,[e.createVNode(F4)])])]),_:1},8,["modelValue"])])}}},s2=fr._export_sfc(t2,[["__scopeId","data-v-9096ed0d"]]);function c2(){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 u2(a){return{type:"line",color:["#5070DD","#B6D634","#505372","#FF994E","#0CA8DF","#FFD10A","#FB628B","#8466C1","#3EBE95"],...a}}function d2(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"3%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:[{type:"value"}],series:[]}}function p2(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 f2(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function h2(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 v2=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),m2=a=>({type:"scatter",symbolSize:20,...a}),In={Line:{initBaseoptions:c2,initSeries:u2},Bar:{initBaseoptions:d2,initSeries:p2},Pie:{initBaseoptions:f2,initSeries:h2},Scatter:{initBaseoptions:v2,initSeries:m2}},y2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:i}=a||{},o=In==null?void 0:In[n];if(!o)return;const{initBaseoptions:p,initSeries:s}=o,u=p();u.title.text=i??"";const y=l==null?void 0:l.map(d=>d==null?void 0:d.prop);let b=[];if(y==null||y.forEach(d=>{var C;b.push((C=r==null?void 0:r[0])==null?void 0:C[d])}),!y||!b)return u;u.xAxis.data=y;const g=s({data:b});return u.series.push(g),u},g2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:i}=a||{},o=In==null?void 0:In[n];if(!o)return;const{initBaseoptions:p,initSeries:s}=o,u=p();u.title.text=i??"";const y=l==null?void 0:l.map(d=>d==null?void 0:d.prop);let b=[];if(y==null||y.forEach(d=>{var C;b.push((C=r==null?void 0:r[0])==null?void 0:C[d])}),!y||!b)return u;u.xAxis.data=y;const g=s({data:b});return u.series.push(g),u},b2=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:i}=a||{},o=In==null?void 0:In[n];if(!o)return;const{initBaseoptions:p,initSeries:s}=o,u=p();u.title.text=i??"";const y=l==null?void 0:l.map(C=>C==null?void 0:C.prop);let b=[];if(y==null||y.forEach(C=>{var v;b.push((v=r==null?void 0:r[0])==null?void 0:v[C])}),!y||!b)return u;const g=[];for(let C=0;C<y.length;C++){const v=y[C],H=b[C];g.push({name:v,value:H})}const d=s({data:g});return u.series.push(d),u},k2=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:i}=a||{},o=In==null?void 0:In[n];if(!o)return;const{initBaseoptions:p,initSeries:s}=o,u=p();u.title.text=i??"";let y=[];const b=l==null?void 0:l.map(C=>C==null?void 0:C.prop);if(y=b==null?void 0:b.map(C=>{var H;let v=[];return v.push(C),v.push((H=r==null?void 0:r[0])==null?void 0:H[C]),v}),!y)return u;const d=s({data:y});return u.series.push(d),u},x2=async(a=[])=>{var s,u,y,b,g;const l=((s=a==null?void 0:a.find(d=>d.key==="ChartType"))==null?void 0:s.contents)??{};let r=((u=a==null?void 0:a.find(d=>d.key==="header"))==null?void 0:u.contents)??[],n=((y=a==null?void 0:a.find(d=>d.key==="tableContents"))==null?void 0:y.contents)??[],i=((b=a==null?void 0:a.find(d=>d.key==="calculator"))==null?void 0:b.contents)??[];if((i==null?void 0:i.length)>0){i=i==null?void 0:i.map(C=>({methods:C==null?void 0:C.calculatorFilter,functionName:C==null?void 0:C.functionName,functionRelatedWords:C==null?void 0:C.functionRelatedWords}));let d=await zo([],i,[],"Auto",[],[]);r=(g=d==null?void 0:d.xAxis)==null?void 0:g.map(C=>({label:C,prop:C})),n=d==null?void 0:d.yAxis}else if(r!=null&&r.some(d=>d==null?void 0:d.functionName)){let d=r==null?void 0:r.filter(H=>H==null?void 0:H.functionName);d=d==null?void 0:d.map(async H=>{let T={methods:H==null?void 0:H.calculatorFilter,functionName:H==null?void 0:H.functionName,functionRelatedWords:H==null?void 0:H.functionRelatedWords};return T=await zo(H,[T],[],"Auto",[],[]),{name:H==null?void 0:H.prop,value:T==null?void 0:T.value}});let C=await Promise.all(d),v={};C==null||C.forEach(H=>{var T;v[H==null?void 0:H.name]=((T=H==null?void 0:H.value)==null?void 0:T.toString())??""}),n=[v]}let{type:o}=l,p={};return o==="Line"&&(p=await y2({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),o==="Bar"&&(p=await g2({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),o==="Pie"&&(p=await b2({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),o==="Scatter"&&(p=await k2({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),p},w2=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,r=e.ref({});e.onMounted(async()=>{const i=l==null?void 0:l.itemData;r.value=await x2(i)});const n=e.computed(()=>(l==null?void 0:l.height)||"300px");return(i,o)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:n.value})},[e.createVNode(ud.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),_2=fr._export_sfc(w2,[["__scopeId","data-v-d4c081e8"]]),S2={class:"chart-module layout"},E2={class:"chart-module content"},C2={class:"chart-module content"},T2={class:"form-content"},B2={class:"dialog-footer"},D2={class:"form-content"},N2={class:"dialog-footer"},A2={class:"form-content"},z2={class:"dialog-footer"},M2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,i=e.reactive({visible:!1,width:"840",title:"基础配置"}),o=e.ref([]),p=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],s=e.ref({}),u=xe=>{var ne;o.value=p(),(ne=o.value)==null||ne.forEach(we=>{var ya;const Ke=we==null?void 0:we.prop;we.value=(ya=s==null?void 0:s.value)==null?void 0:ya[Ke]}),i.visible=!0},y=xe=>{s.value=xe},b=()=>{var xe;i.visible=!1,n("change",(xe=oe())==null?void 0:xe.compData)},g=e.reactive({visible:!1,width:"840",title:"数据配置"}),d=e.ref([]),C=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],v=e.ref({}),H=()=>{const xe=d.value,ne=R.cloneDeep(xe);return ne==null||ne.forEach(we=>{var ya;const Ke=we==null?void 0:we.prop;we.value=(ya=v.value)==null?void 0:ya[Ke]}),ne},T=xe=>{var we;v.value=xe;const ne=H();d.value=ne,n("change",(we=oe())==null?void 0:we.compData)},j=async xe=>{const ne=await re.getMenusContent(),we=H();we==null||we.forEach(Ke=>{(Ke==null?void 0:Ke.prop)==="menu"&&(Ke.contents=ne)}),d.value=we,g.visible=!0,await Be(v.value.menu),await I(v.value.group)},D=e.reactive({visible:!1,width:"840",title:"详情页配置"}),_=e.ref([]),S=()=>[{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:[]}],x=e.ref({}),k=()=>{const xe=_.value,ne=R.cloneDeep(xe);return ne==null||ne.forEach(we=>{var ya;const Ke=we==null?void 0:we.prop;we.value=(ya=x.value)==null?void 0:ya[Ke]}),ne},E=xe=>{var we;x.value=xe;const ne=k();_.value=ne,n("change",(we=oe())==null?void 0:we.compData)},M=async xe=>{await U();const ne=R.cloneDeep(O.value),we=k();we==null||we.forEach(Ke=>{var Ge;const ya=Ke==null?void 0:Ke.prop;Ke.value=(Ge=x==null?void 0:x.value)==null?void 0:Ge[ya],ya==="mainKey"&&(Ke.contents=ne)}),_.value=we,D.visible=!0},O=e.ref([]),Q=e.ref([]),J=e.ref({}),ye=e.ref({}),te=()=>{const{compData:xe}=G.value||{},ne=xe==null?void 0:xe.find(le=>{const{key:fe}=le;return fe==="header"}),we=(ne==null?void 0:ne.contents)||[],Ke=we==null?void 0:we.filter((le,fe)=>{const{label:be}=le;return be!=="操作"}),ya=Ke==null?void 0:Ke.findIndex((le,fe)=>{const{isMainKey:be}=le;return be});if(ya<0)return[];const Ge=xe==null?void 0:xe.find(le=>{const{key:fe}=le;return fe==="tableContents"}),V=(Ge==null?void 0:Ge.contents)||[];return V==null?void 0:V.map(le=>{const fe=le==null?void 0:le[0];let be=ya;Xa.isObject(fe)&&(fe!=null&&fe.id)&&(be=be+1);const ua=le==null?void 0:le[be];return{label:ua,value:ua}})},U=async()=>{const xe=await te();O.value=xe},q=async xe=>{const ne=sessionStorage.getItem("systemKey");return await re.getItemData(xe,ne,"")},X=async xe=>{const ne=xe;Q.value=ne==null?void 0:ne.map(we=>{const{name:Ke}=we;return J.value[Ke]=we,{label:Ke,value:Ke}})},ee=xe=>{const{comp:ne,compData:we}=ye.value||{};if(ne==="Table"){let Ke=k();Ke=Ke.filter(ya=>{const{prop:Ge}=ya;return Ge!=="formItems"}),We(Ke,we),_.value=Ke}},pe=async()=>{var we,Ke;const xe=(we=x==null?void 0:x.value)==null?void 0:we.mainKey,ne=(Ke=v==null?void 0:v.value)==null?void 0:Ke.menu;if(xe){const Ge=`${ne==null?void 0:ne.join("/")}^${xe}`,V=await q(Ge);await X(V);const F=k();F==null||F.forEach(le=>{(le==null?void 0:le.prop)==="group"&&(le.contents=Q.value)}),_.value=F}};e.watch(()=>{var xe;return(xe=x==null?void 0:x.value)==null?void 0:xe.mainKey},async(xe,ne)=>{xe!=ne&&xe&&await pe()});const ze=async xe=>{const ne=J.value[xe];ye.value=ne,await ee()};e.watch(()=>{var xe;return(xe=x==null?void 0:x.value)==null?void 0:xe.group},async(xe,ne)=>{xe!=ne&&xe&&ze(xe)});const ue=async()=>{var ne;await pe();const xe=(ne=x.value)==null?void 0:ne.group;await ze(xe)},N=e.ref([]),se=e.ref({}),G=e.ref({}),ve=async xe=>{const ne=xe==null?void 0:xe.join("/"),we=sessionStorage.getItem("systemKey");return await re.getItemData(ne,we,"")},ke=async xe=>{const ne=await ve(xe);N.value=ne==null?void 0:ne.map(we=>{const{name:Ke}=we;return se.value[Ke]=we,{label:Ke,value:Ke}})},Be=async(xe,ne)=>{await ke(xe);const we=H();we==null||we.forEach(Ke=>{(Ke==null?void 0:Ke.prop)==="group"&&(Ke.contents=N.value)}),d.value=we};e.watch(()=>{var xe;return(xe=v==null?void 0:v.value)==null?void 0:xe.menu},async(xe,ne)=>{const we=xe==null?void 0:xe.join("/"),Ke=ne==null?void 0:ne.join("/");we!=Ke&&await Be(xe)});const We=(xe,ne)=>{const we=ne==null?void 0:ne.find(V=>{const{key:F}=V;return F==="header"}),Ke=(we==null?void 0:we.contents)||[],ya=Ke==null?void 0:Ke.filter((V,F)=>{const{label:le}=V;return le!=="操作"}),Ge=ya==null?void 0:ya.map((V,F)=>{const{label:le}=V;return{label:le,value:F}});xe==null||xe.forEach(V=>{const F=V==null?void 0:V.prop;(F==="nameCol"||F==="valueCol")&&(V.contents=Ge)})},he=xe=>{const{comp:ne,compData:we}=G.value||{};if(ne==="Table"){v.value.formItems=[];let Ke=H();Ke=Ke.filter(ya=>{const{prop:Ge}=ya;return Ge!=="formItems"}),We(Ke,we),d.value=Ke}},I=async xe=>{const ne=se.value[xe];G.value=ne,await he()};e.watch(()=>{var xe;return(xe=v==null?void 0:v.value)==null?void 0:xe.group},async(xe,ne)=>{xe!=ne&&I(xe)});const Oe=async()=>{var we,Ke;const xe=(we=v.value)==null?void 0:we.menu;await Be(xe);const ne=(Ke=v.value)==null?void 0:Ke.group;await I(ne)},oe=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:s.value},{key:"chartDataConfig",contents:v.value},{key:"chartDetailConfig",contents:x.value}]}),ge=()=>{i.visible=!1,g.visible=!1,D.visible=!1};return e.onMounted(async()=>{var ne,we,Ke;d.value=C(),_.value=S();const xe=r==null?void 0:r.itemContents;s.value=((ne=xe==null?void 0:xe.find(ya=>ya.key==="chartBaseConfig"))==null?void 0:ne.contents)??{},v.value=((we=xe==null?void 0:xe.find(ya=>ya.key==="chartDataConfig"))==null?void 0:we.contents)??{},await Oe(),x.value=((Ke=xe==null?void 0:xe.find(ya=>ya.key==="chartDetailConfig"))==null?void 0:Ke.contents)??{},await ue()}),(xe,ne)=>{const we=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",S2,[ne[4]||(ne[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(we,{id:"themeButton",onClick:ne[0]||(ne[0]=Ke=>u())},{default:e.withCtx(()=>ne[3]||(ne[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",E2,[ne[6]||(ne[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(we,{id:"themeButton",onClick:ne[1]||(ne[1]=Ke=>j())},{default:e.withCtx(()=>ne[5]||(ne[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",C2,[ne[8]||(ne[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(we,{id:"themeButton",onClick:ne[2]||(ne[2]=Ke=>M())},{default:e.withCtx(()=>ne[7]||(ne[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(Vr.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:ge,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",T2,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:o.value,key:o.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",B2,[e.createVNode(we,{class:"cancel-button button",onClick:ge,id:"themeBorderButton"},{default:e.withCtx(()=>ne[9]||(ne[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(we,{class:"ok-button button",onClick:b,id:"themeButton"},{default:e.withCtx(()=>ne[10]||(ne[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(Vr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:ge,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",D2,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:T},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",N2,[e.createVNode(we,{class:"cancel-button button",onClick:ge,id:"themeBorderButton"},{default:e.withCtx(()=>ne[11]||(ne[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(we,{class:"ok-button button",onClick:ge,id:"themeButton"},{default:e.withCtx(()=>ne[12]||(ne[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(Vr.ssDialog,{visible:D.visible,title:D.title,onBeforeDestroy:ge,width:D.width},{default:e.withCtx(()=>[e.createElementVNode("div",A2,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:_.value,key:_.value,isEnableWrap:!0,onChange:E},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",z2,[e.createVNode(we,{class:"cancel-button button",onClick:ge,id:"themeBorderButton"},{default:e.withCtx(()=>ne[13]||(ne[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(we,{class:"ok-button button",onClick:ge,id:"themeButton"},{default:e.withCtx(()=>ne[14]||(ne[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),I2=fr._export_sfc(M2,[["__scopeId","data-v-88c50cdb"]]),O2={class:"layout"},L2=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const r=l,n=a;e.onMounted(async()=>{});const i=e.computed(()=>R.cloneDeep(n==null?void 0:n.itemData)||[]),o=e.computed(()=>{var b;const y=(b=i==null?void 0:i.value)==null?void 0:b.find(g=>{const{key:d}=g;return d==="baseConfig"});return y==null?void 0:y.contents}),p=e.computed(()=>{var b;const y=(b=i==null?void 0:i.value)==null?void 0:b.find(g=>{const{key:d}=g;return d==="children"});return y==null?void 0:y.contents}),s=e.computed(()=>{let y=R.cloneDeep(p.value)||[];const b=y.length;let g=0;const d=[];if(y=y.map(C=>{const v=C.span;return v?(C.span=Number(v),g=g+C.span):d.push(C),C}),g<24){const C=Math.floor((24-g)/b);d.forEach(v=>{v.span=C})}return y}),u=y=>{r("rowClick",y)};return(y,b)=>{var C;const g=e.resolveComponent("el-col"),d=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",O2,[e.createVNode(d,{style:e.normalizeStyle({height:(C=o.value)==null?void 0:C.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(v,H)=>(e.openBlock(),e.createBlock(g,{span:v==null?void 0:v.span},{default:e.withCtx(()=>{var T;return[e.unref($i)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(lo)(v.comp)),{key:e.unref(oi),compName:v.name,index:(v==null?void 0:v.id)??H,height:(T=o.value)==null?void 0:T.height,itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,onChange:e.unref(Oo),onContentChange:e.unref(Lo),onPageChange:e.unref(Ro),onRowClick:u},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),R2=fr._export_sfc(L2,[["__scopeId","data-v-ab9a36ed"]]),$2={class:"layout-operate"},V2={class:"layout-module"},F2={class:"collapse-title-item"},P2={class:"collapse-title"},H2={class:"icon-content"},j2=["onClick"],U2={class:"comp-child"},q2=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l;e.onMounted(()=>{H()});const i=e.ref({}),o=e.ref({}),p=e.ref([]),s=x=>[{label:"高度",prop:"height",type:"input",value:x==null?void 0:x.height}],u=x=>{o.value=x,n("change",S(),!0)},y=e.ref([]),b=e.ref([]),g=x=>[{label:"占比",prop:"span",type:"input",value:x==null?void 0:x.span}],d=e.computed(()=>{const x=r==null?void 0:r.itemContents;return R.cloneDeep(x)}),C=e.computed(()=>{const x=d==null?void 0:d.value,k=x==null?void 0:x.find(E=>{const{key:M}=E;return M==="baseConfig"});return k==null?void 0:k.contents}),v=e.computed(()=>{const x=d==null?void 0:d.value,k=x==null?void 0:x.find(E=>{const{key:M}=E;return M==="children"});return k==null?void 0:k.contents}),H=()=>{var x;i.value=d.value||{},y.value=(v==null?void 0:v.value)||[],p.value=s(),p.value=(x=p.value)==null?void 0:x.map(k=>{var M;const{prop:E}=k;return k.value=(M=C.value)==null?void 0:M[E],k})};e.watch(()=>{var x;return(x=v==null?void 0:v.value)==null?void 0:x.length},()=>{var x;y.value=(v==null?void 0:v.value)||[],b.value=(x=v.value)==null?void 0:x.map(k=>g(k))},{immediate:!0});const T=(x,k)=>{const E=R.cloneDeep(v==null?void 0:v.value);E[k].span=x.span,y.value=E,n("change",S(),!0)},j=x=>Fi(x),D=(x,k,E)=>{if(!x)return;const M=R.cloneDeep(v==null?void 0:v.value);M[E]&&(M[E].compData=x,y.value=M,n("change",S(),!0))},_=x=>{R.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let k=R.cloneDeep(v==null?void 0:v.value);k=k==null?void 0:k.filter((E,M)=>x!==M),y.value=k,n("change",S(),!0),Xa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},S=()=>({compData:[{key:"baseConfig",contents:o.value},{key:"children",contents:y==null?void 0:y.value}]});return(x,k)=>{const E=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$2,[e.createElementVNode("div",V2,[k[1]||(k[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(ul.ssForm,{rowContents:p.value,isEnableWrap:!0,onChange:k[0]||(k[0]=M=>u(M))},null,8,["rowContents"])])]),e.createVNode(kc.default,{class:"collapse-content",collapseContents:v.value},{title:e.withCtx(({item:M,index:O})=>[e.createElementVNode("div",F2,[e.createElementVNode("div",P2,e.toDisplayString(M.name),1),e.createElementVNode("div",H2,[e.createElementVNode("div",{onClick:e.withModifiers(Q=>_(O),["stop"]),class:"icon-content"},[e.createVNode(E,{name:"Delete",style:{width:"16px",height:"16px"}})],8,j2)])])]),content:e.withCtx(({item:M,index:O})=>[e.createElementVNode("div",U2,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:b.value[O],key:O,isEnableWrap:!0,onChange:Q=>T(Q,O)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(M.comp+"Operate")),{itemContents:M==null?void 0:M.compData,originalItemContents:M.compData,onChange:Q=>D(Q,M,O)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),W2=fr._export_sfc(q2,[["__scopeId","data-v-ba05456e"]]),G2=typeof window<"u";var Ws;G2&&((Ws=window==null?void 0:window.navigator)!=null&&Ws.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Dn(a){return a==null}function pu(){}const K2=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(K2)));function Y2(){const a=new Map;return{on(l,r){const n=a.get(l);n!=null&&n.add(r)||a.set(l,new Set([r]))},off(l,r){const n=a.get(l);n&&n.delete(r)},clear(l){const r=a.get(l);r&&r.clear()},clearAll(){a.clear()},emit(l,...r){const n=a.get(l);n&&n.forEach(i=>{i(...r)})}}}function Gs(a,l=16){if(typeof a!="function")return pu;const r=(...o)=>{a(...o)};if(l<=0)return fu(r);let n=0,i;return function(...o){const p=Date.now(),s=p-n;clearTimeout(i),s>=l?(n=p,r(...o)):i=setTimeout(()=>{n=Date.now(),r(...o)},Math.max(0,l-s))}}function J2(a,l=100){if(typeof a!="function")return pu;const r=(...i)=>{a(...i)};if(l<=0)return fu(r);let n;return function(...i){clearTimeout(n),n=setTimeout(()=>{r(...i)},l)}}function fu(a){if(typeof a!="function")return a;let l=!1,r,n;return function(...i){return r=i,l||(l=!0,n=Promise.resolve().then(()=>(l=!1,n=void 0,a(...r)))),n}}const Zi=new Set,hu=new WeakMap;function X2(){Zi.forEach(a=>{a(...hu.get(a))}),Zi.clear()}function kn(a,...l){if(typeof a!="function")return a;hu.set(a,l),!Zi.has(a)&&(Zi.add(a),Zi.size===1&&Promise.resolve().then(X2))}const vu=Symbol("LAYOUT_KEY"),mu=Symbol("EMITTER_KEY");function Z2(a){let l=0,r;for(let n=0,i=a.length;n<i;n++)r=a[n].y+a[n].h,r>l&&(l=r);return l}function Rt(a){const l=Array(a.length);for(let r=0,n=a.length;r<n;r++)l[r]=Q2(a[r]);return l}function Q2(a){return{...a}}function yu(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 Mi(a,l,r){const n=bu(a),i=ku(a),o=Array(a.length);for(let p=0,s=i.length;p<s;p++){let u=i[p];u.static||(u=e1(n,u,l,r),n.push(u)),o[a.findIndex(y=>y.i===u.i)]=u,u.moved=!1}return o}function e1(a,l,r,n){if(r)for(;l.y>0&&!Qi(a,l);)l.y--;else if(n){const o=n[l.i].y;for(;l.y>o&&!Qi(a,l);)l.y--}let i;for(;i=Qi(a,l);)l.y=i.y+i.h;return l}function a1(a,l){const r=bu(a);for(let n=0,i=a.length;n<i;n++){const o=a[n];if(o.x+o.w>l.cols&&(o.x=l.cols-o.w),o.x<0&&(o.x=0,o.w=l.cols),!o.static)r.push(o);else for(;Qi(r,o);)o.y++}return a}function Ks(a,l){for(let r=0,n=a.length;r<n;r++)if(a[r].i===l)return a[r]}function Qi(a,l){for(let r=0,n=a.length;r<n;r++)if(yu(a[r],l))return a[r]}function gu(a,l){return a.filter(r=>yu(r,l))}function bu(a){return a.filter(l=>l.static)}function $t(a,l,r,n,i=!1,o=!1){if(l.static)return a;const p=l.x,s=l.y,u=n&&l.y>n;typeof r=="number"&&(l.x=r),typeof n=="number"&&(l.y=n),l.moved=!0;let y=ku(a);u&&(y=y.reverse());const b=gu(y,l);if(o&&b.length)return l.x=p,l.y=s,l.moved=!1,a;for(let g=0,d=b.length;g<d;g++){const C=b[g];C.moved||l.y>C.y&&l.y-C.y>C.h/4||(C.static?a=Ys(a,C,l,i):a=Ys(a,l,C,i))}return a}function Ys(a,l,r,n){if(n){const i={x:r.x,y:r.y,w:r.w,h:r.h};if(i.y=Math.max(l.y-r.h,0),!Qi(a,i))return $t(a,r,void 0,i.y,!1)}return $t(a,r,void 0,r.y+1,!1)}function l1(a,l,r,n){const i="translate3d("+l+"px,"+a+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:r+"px",height:n+"px",position:"absolute"}}function r1(a,l,r,n){const i="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:r+"px",height:n+"px",position:"absolute"}}function n1(a,l,r,n){return{top:a+"px",left:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function i1(a,l,r,n){return{top:a+"px",right:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function ku(a){return Array.from(a).sort(function(l,r){return l.y===r.y&&l.x===r.x?0:l.y>r.y||l.y===r.y&&l.x>r.x?1:-1})}function o1(a,l){l=l||"Layout";const r=["x","y","w","h"],n=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let i=0,o=a.length;i<o;i++){const p=a[i];for(let s=0;s<r.length;s++)if(typeof p[r[s]]!="number")throw new Error("VueGridLayout: "+l+"["+i+"]."+r[s]+" must be a number!");if(p.i===void 0||p.i===null)throw new Error("VueGridLayout: "+l+"["+i+"].i cannot be null!");if(typeof p.i!="number"&&typeof p.i!="string")throw new Error("VueGridLayout: "+l+"["+i+"].i must be a string or number!");if(n.indexOf(p.i)>=0)throw new Error("VueGridLayout: "+l+"["+i+"].i must be unique!");if(n.push(p.i),p.static!==void 0&&typeof p.static!="boolean")throw new Error("VueGridLayout: "+l+"["+i+"].static must be a boolean!")}}function s1(a,l="vgl"){const r=()=>`${l}-${a}`;return{b:r,be:n=>`${r()}__${n}`,bm:n=>`${r()}--${n}`,bem:(n,i)=>`${r()}__${n}--${i}`}}function Js(a){return c1(a)}function c1(a){var l;const r=((l=a.target)==null?void 0:l.offsetParent)||document.body,n=a.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),i=a.clientX+r.scrollLeft-n.left,o=a.clientY+r.scrollTop-n.top;return{x:i,y:o}}function Xs(a,l,r,n){return u1(a)?{deltaX:r-a,deltaY:n-l,lastX:a,lastY:l,x:r,y:n}:{deltaX:0,deltaY:0,lastX:r,lastY:n,x:r,y:n}}function u1(a){return typeof a=="number"&&!Number.isNaN(a)}function d1(a,l){const r=wu(a);let n=r[0];for(let i=1,o=r.length;i<o;i++){const p=r[i];l>a[p]&&(n=p)}return n}function xu(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function p1(a,l,r,n,i,o,p){if(l[n])return Rt(l[n]);let s=a;const u=wu(r),y=u.slice(u.indexOf(n));for(let b=0,g=y.length;b<g;b++){const d=y[b];if(l[d]){s=l[d];break}}return s=Rt(s||[]),Mi(a1(s,{cols:o}),p)}function wu(a){return Object.keys(a).sort((l,r)=>a[l]-a[r])}let f1="auto";function h1(){return typeof document<"u"}function Zs(){return h1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):f1}var Ji={exports:{}},v1=Ji.exports,Qs;function m1(){return Qs||(Qs=1,function(a,l){(function(r,n){a.exports=n()})(v1,function(){function r(c,t){var h=Object.keys(c);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);t&&(w=w.filter(function(B){return Object.getOwnPropertyDescriptor(c,B).enumerable})),h.push.apply(h,w)}return h}function n(c){for(var t=1;t<arguments.length;t++){var h=arguments[t]!=null?arguments[t]:{};t%2?r(Object(h),!0).forEach(function(w){u(c,w,h[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(w){Object.defineProperty(c,w,Object.getOwnPropertyDescriptor(h,w))})}return c}function i(c){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(c)}function o(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function p(c,t){for(var h=0;h<t.length;h++){var w=t[h];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(c,H(w.key),w)}}function s(c,t,h){return t&&p(c.prototype,t),Object.defineProperty(c,"prototype",{writable:!1}),c}function u(c,t,h){return(t=H(t))in c?Object.defineProperty(c,t,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[t]=h,c}function y(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),t&&g(c,t)}function b(c){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(c)}function g(c,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,w){return h.__proto__=w,h},g(c,t)}function d(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function C(c){var t=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,w=b(c);if(t){var B=b(this).constructor;h=Reflect.construct(w,arguments,B)}else h=w.apply(this,arguments);return function(P,Y){if(Y&&(typeof Y=="object"||typeof Y=="function"))return Y;if(Y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(P)}(this,h)}}function v(){return v=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(c,t,h){var w=function(P,Y){for(;!Object.prototype.hasOwnProperty.call(P,Y)&&(P=b(P))!==null;);return P}(c,t);if(w){var B=Object.getOwnPropertyDescriptor(w,t);return B.get?B.get.call(arguments.length<3?c:h):B.value}},v.apply(this,arguments)}function H(c){var t=function(h,w){if(typeof h!="object"||h===null)return h;var B=h[Symbol.toPrimitive];if(B!==void 0){var P=B.call(h,w);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}(c,"string");return typeof t=="symbol"?t:t+""}var T=function(c){return!(!c||!c.Window)&&c instanceof c.Window},j=void 0,D=void 0;function _(c){j=c;var t=c.document.createTextNode("");t.ownerDocument!==c.document&&typeof c.wrap=="function"&&c.wrap(t)===t&&(c=c.wrap(c)),D=c}function S(c){return T(c)?c:(c.ownerDocument||c).defaultView||D.window}typeof window<"u"&&window&&_(window);var x=function(c){return!!c&&i(c)==="object"},k=function(c){return typeof c=="function"},E={window:function(c){return c===D||T(c)},docFrag:function(c){return x(c)&&c.nodeType===11},object:x,func:k,number:function(c){return typeof c=="number"},bool:function(c){return typeof c=="boolean"},string:function(c){return typeof c=="string"},element:function(c){if(!c||i(c)!=="object")return!1;var t=S(c)||D;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?c instanceof Element||c instanceof t.Element:c.nodeType===1&&typeof c.nodeName=="string"},plainObject:function(c){return x(c)&&!!c.constructor&&/function Object\b/.test(c.constructor.toString())},array:function(c){return x(c)&&c.length!==void 0&&k(c.splice)}};function M(c){var t=c.interaction;if(t.prepared.name==="drag"){var h=t.prepared.axis;h==="x"?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):h==="y"&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function O(c){var t=c.iEvent,h=c.interaction;if(h.prepared.name==="drag"){var w=h.prepared.axis;if(w==="x"||w==="y"){var B=w==="x"?"y":"x";t.page[B]=h.coords.start.page[B],t.client[B]=h.coords.start.client[B],t.delta[B]=0}}}var Q={id:"actions/drag",install:function(c){var t=c.actions,h=c.Interactable,w=c.defaults;h.prototype.draggable=Q.draggable,t.map.drag=Q,t.methodDict.drag="draggable",w.actions.drag=Q.defaults},listeners:{"interactions:before-action-move":M,"interactions:action-resume":M,"interactions:action-move":O,"auto-start:check":function(c){var t=c.interaction,h=c.interactable,w=c.buttons,B=h.options.drag;if(B&&B.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(w&h.options.drag.mouseButtons)!=0))return c.action={name:"drag",axis:B.lockAxis==="start"?B.startAxis:B.lockAxis},!1}},draggable:function(c){return E.object(c)?(this.options.drag.enabled=c.enabled!==!1,this.setPerAction("drag",c),this.setOnEvents("drag",c),/^(xy|x|y|start)$/.test(c.lockAxis)&&(this.options.drag.lockAxis=c.lockAxis),/^(xy|x|y)$/.test(c.startAxis)&&(this.options.drag.startAxis=c.startAxis),this):E.bool(c)?(this.options.drag.enabled=c,this):this.options.drag},beforeMove:M,move:O,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(c){return c.search("drag")===0}},J=Q,ye={init:function(c){var t=c;ye.document=t.document,ye.DocumentFragment=t.DocumentFragment||te,ye.SVGElement=t.SVGElement||te,ye.SVGSVGElement=t.SVGSVGElement||te,ye.SVGElementInstance=t.SVGElementInstance||te,ye.Element=t.Element||te,ye.HTMLElement=t.HTMLElement||ye.Element,ye.Event=t.Event,ye.Touch=t.Touch||te,ye.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function te(){}var U=ye,q={init:function(c){var t=U.Element,h=c.navigator||{};q.supportsTouch="ontouchstart"in c||E.func(c.DocumentTouch)&&U.document instanceof c.DocumentTouch,q.supportsPointerEvent=h.pointerEnabled!==!1&&!!U.PointerEvent,q.isIOS=/iP(hone|od|ad)/.test(h.platform),q.isIOS7=/iP(hone|od|ad)/.test(h.platform)&&/OS 7[^\d]/.test(h.appVersion),q.isIe9=/MSIE 9/.test(h.userAgent),q.isOperaMobile=h.appName==="Opera"&&q.supportsTouch&&/Presto/.test(h.userAgent),q.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",q.pEventTypes=q.supportsPointerEvent?U.PointerEvent===c.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,q.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=q;function ee(c,t){if(c.contains)return c.contains(t);for(;t;){if(t===c)return!0;t=t.parentNode}return!1}function pe(c,t){for(;E.element(c);){if(ue(c,t))return c;c=ze(c)}return null}function ze(c){var t=c.parentNode;if(E.docFrag(t)){for(;(t=t.host)&&E.docFrag(t););return t}return t}function ue(c,t){return D!==j&&(t=t.replace(/\/deep\//g," ")),c[X.prefixedMatchesSelector](t)}var N=function(c){return c.parentNode||c.host};function se(c,t){for(var h,w=[],B=c;(h=N(B))&&B!==t&&h!==B.ownerDocument;)w.unshift(B),B=h;return w}function G(c,t,h){for(;E.element(c);){if(ue(c,t))return!0;if((c=ze(c))===h)return ue(c,t)}return!1}function ve(c){return c.correspondingUseElement||c}function ke(c){var t=c instanceof U.SVGElement?c.getBoundingClientRect():c.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}function Be(c){var t,h=ke(c);if(!X.isIOS7&&h){var w={x:(t=(t=S(c))||D).scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop};h.left+=w.x,h.right+=w.x,h.top+=w.y,h.bottom+=w.y}return h}function We(c){for(var t=[];c;)t.push(c),c=ze(c);return t}function he(c){return!!E.string(c)&&(U.document.querySelector(c),!0)}function I(c,t){for(var h in t)c[h]=t[h];return c}function Oe(c,t,h){return c==="parent"?ze(h):c==="self"?t.getRect(h):pe(h,c)}function oe(c,t,h,w){var B=c;return E.string(B)?B=Oe(B,t,h):E.func(B)&&(B=B.apply(void 0,w)),E.element(B)&&(B=Be(B)),B}function ge(c){return c&&{x:"x"in c?c.x:c.left,y:"y"in c?c.y:c.top}}function xe(c){return!c||"x"in c&&"y"in c||((c=I({},c)).x=c.left||0,c.y=c.top||0,c.width=c.width||(c.right||0)-c.x,c.height=c.height||(c.bottom||0)-c.y),c}function ne(c,t,h){c.left&&(t.left+=h.x),c.right&&(t.right+=h.x),c.top&&(t.top+=h.y),c.bottom&&(t.bottom+=h.y),t.width=t.right-t.left,t.height=t.bottom-t.top}function we(c,t,h){var w=h&&c.options[h];return ge(oe(w&&w.origin||c.options.origin,c,t,[c&&t]))||{x:0,y:0}}function Ke(c,t){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(Te){return!0},w=arguments.length>3?arguments[3]:void 0;if(w=w||{},E.string(c)&&c.search(" ")!==-1&&(c=ya(c)),E.array(c))return c.forEach(function(Te){return Ke(Te,t,h,w)}),w;if(E.object(c)&&(t=c,c=""),E.func(t)&&h(c))w[c]=w[c]||[],w[c].push(t);else if(E.array(t))for(var B=0,P=t;B<P.length;B++){var Y=P[B];Ke(c,Y,h,w)}else if(E.object(t))for(var Z in t)Ke(ya(Z).map(function(Te){return"".concat(c).concat(Te)}),t[Z],h,w);return w}function ya(c){return c.trim().split(/ +/)}var Ge=function(c,t){return Math.sqrt(c*c+t*t)},V=["webkit","moz"];function F(c,t){c.__set||(c.__set={});var h=function(B){if(V.some(function(P){return B.indexOf(P)===0}))return 1;typeof c[B]!="function"&&B!=="__set"&&Object.defineProperty(c,B,{get:function(){return B in c.__set?c.__set[B]:c.__set[B]=t[B]},set:function(P){c.__set[B]=P},configurable:!0})};for(var w in t)h(w);return c}function le(c,t){c.page=c.page||{},c.page.x=t.page.x,c.page.y=t.page.y,c.client=c.client||{},c.client.x=t.client.x,c.client.y=t.client.y,c.timeStamp=t.timeStamp}function fe(c){c.page.x=0,c.page.y=0,c.client.x=0,c.client.y=0}function be(c){return c instanceof U.Event||c instanceof U.Touch}function ua(c,t,h){return c=c||"page",(h=h||{}).x=t[c+"X"],h.y=t[c+"Y"],h}function ia(c,t){return t=t||{x:0,y:0},X.isOperaMobile&&be(c)?(ua("screen",c,t),t.x+=window.scrollX,t.y+=window.scrollY):ua("page",c,t),t}function Pe(c){return E.number(c.pointerId)?c.pointerId:c.identifier}function va(c,t,h){var w=t.length>1?Ae(t):t[0];ia(w,c.page),function(B,P){P=P||{},X.isOperaMobile&&be(B)?ua("screen",B,P):ua("client",B,P)}(w,c.client),c.timeStamp=h}function Ea(c){var t=[];return E.array(c)?(t[0]=c[0],t[1]=c[1]):c.type==="touchend"?c.touches.length===1?(t[0]=c.touches[0],t[1]=c.changedTouches[0]):c.touches.length===0&&(t[0]=c.changedTouches[0],t[1]=c.changedTouches[1]):(t[0]=c.touches[0],t[1]=c.touches[1]),t}function Ae(c){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},h=0;h<c.length;h++){var w=c[h];for(var B in t)t[B]+=w[B]}for(var P in t)t[P]/=c.length;return t}function Fa(c){if(!c.length)return null;var t=Ea(c),h=Math.min(t[0].pageX,t[1].pageX),w=Math.min(t[0].pageY,t[1].pageY),B=Math.max(t[0].pageX,t[1].pageX),P=Math.max(t[0].pageY,t[1].pageY);return{x:h,y:w,left:h,top:w,right:B,bottom:P,width:B-h,height:P-w}}function Ta(c,t){var h=t+"X",w=t+"Y",B=Ea(c),P=B[0][h]-B[1][h],Y=B[0][w]-B[1][w];return Ge(P,Y)}function da(c,t){var h=t+"X",w=t+"Y",B=Ea(c),P=B[1][h]-B[0][h],Y=B[1][w]-B[0][w];return 180*Math.atan2(Y,P)/Math.PI}function Ha(c){return E.string(c.pointerType)?c.pointerType:E.number(c.pointerType)?[void 0,void 0,"touch","pen","mouse"][c.pointerType]:/touch/.test(c.type||"")||c instanceof U.Touch?"touch":"mouse"}function sa(c){var t=E.func(c.composedPath)?c.composedPath():c.path;return[ve(t?t[0]:c.target),ve(c.currentTarget)]}var He=function(){function c(t){o(this,c),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}return s(c,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),c}();Object.defineProperty(He.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var ha=function(c,t){for(var h=0;h<t.length;h++){var w=t[h];c.push(w)}return c},ea=function(c){return ha([],c)},$e=function(c,t){for(var h=0;h<c.length;h++)if(t(c[h],h,c))return h;return-1},Fe=function(c,t){return c[$e(c,t)]},ie=function(c){y(h,c);var t=C(h);function h(w,B,P){var Y;o(this,h),(Y=t.call(this,B._interaction)).dropzone=void 0,Y.dragEvent=void 0,Y.relatedTarget=void 0,Y.draggable=void 0,Y.propagationStopped=!1,Y.immediatePropagationStopped=!1;var Z=P==="dragleave"?w.prev:w.cur,Te=Z.element,Ue=Z.dropzone;return Y.type=P,Y.target=Te,Y.currentTarget=Te,Y.dropzone=Ue,Y.dragEvent=B,Y.relatedTarget=B.target,Y.draggable=B.interactable,Y.timeStamp=B.timeStamp,Y}return s(h,[{key:"reject",value:function(){var w=this,B=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&B.cur.dropzone===this.dropzone&&B.cur.element===this.target)if(B.prev.dropzone=this.dropzone,B.prev.element=this.target,B.rejected=!0,B.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var P=B.activeDrops,Y=$e(P,function(Te){var Ue=Te.dropzone,De=Te.element;return Ue===w.dropzone&&De===w.target});B.activeDrops.splice(Y,1);var Z=new h(B,this.dragEvent,"dropdeactivate");Z.dropzone=this.dropzone,Z.target=this.target,this.dropzone.fire(Z)}else this.dropzone.fire(new h(B,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),h}(He);function Ye(c,t){for(var h=0,w=c.slice();h<w.length;h++){var B=w[h],P=B.dropzone,Y=B.element;t.dropzone=P,t.target=Y,P.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function na(c,t){for(var h=function(P,Y){for(var Z=[],Te=0,Ue=P.interactables.list;Te<Ue.length;Te++){var De=Ue[Te];if(De.options.drop.enabled){var ca=De.options.drop.accept;if(!(E.element(ca)&&ca!==Y||E.string(ca)&&!ue(Y,ca)||E.func(ca)&&!ca({dropzone:De,draggableElement:Y})))for(var Ia=0,nl=De.getAllElements();Ia<nl.length;Ia++){var al=nl[Ia];al!==Y&&Z.push({dropzone:De,element:al,rect:De.getRect(al)})}}}return Z}(c,t),w=0;w<h.length;w++){var B=h[w];B.rect=B.dropzone.getRect(B.element)}return h}function fa(c,t,h){for(var w=c.dropState,B=c.interactable,P=c.element,Y=[],Z=0,Te=w.activeDrops;Z<Te.length;Z++){var Ue=Te[Z],De=Ue.dropzone,ca=Ue.element,Ia=Ue.rect,nl=De.dropCheck(t,h,B,P,ca,Ia);Y.push(nl?ca:null)}var al=function(dl){for(var Tl,El,Vl,tr=[],hr=0;hr<dl.length;hr++){var Kl=dl[hr],cr=dl[Tl];if(Kl&&hr!==Tl)if(cr){var pn=N(Kl),nr=N(cr);if(pn!==Kl.ownerDocument)if(nr!==Kl.ownerDocument)if(pn!==nr){tr=tr.length?tr:se(cr);var bn=void 0;if(cr instanceof U.HTMLElement&&Kl instanceof U.SVGElement&&!(Kl instanceof U.SVGSVGElement)){if(Kl===nr)continue;bn=Kl.ownerSVGElement}else bn=Kl;for(var Qr=se(bn,cr.ownerDocument),Rn=0;Qr[Rn]&&Qr[Rn]===tr[Rn];)Rn++;var yn=[Qr[Rn-1],Qr[Rn],tr[Rn]];if(yn[0])for(var fi=yn[0].lastChild;fi;){if(fi===yn[1]){Tl=hr,tr=Qr;break}if(fi===yn[2])break;fi=fi.previousSibling}}else Vl=cr,(parseInt(S(El=Kl).getComputedStyle(El).zIndex,10)||0)>=(parseInt(S(Vl).getComputedStyle(Vl).zIndex,10)||0)&&(Tl=hr);else Tl=hr}else Tl=hr}return Tl}(Y);return w.activeDrops[al]||null}function Re(c,t,h){var w=c.dropState,B={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return h.type==="dragstart"&&(B.activate=new ie(w,h,"dropactivate"),B.activate.target=null,B.activate.dropzone=null),h.type==="dragend"&&(B.deactivate=new ie(w,h,"dropdeactivate"),B.deactivate.target=null,B.deactivate.dropzone=null),w.rejected||(w.cur.element!==w.prev.element&&(w.prev.dropzone&&(B.leave=new ie(w,h,"dragleave"),h.dragLeave=B.leave.target=w.prev.element,h.prevDropzone=B.leave.dropzone=w.prev.dropzone),w.cur.dropzone&&(B.enter=new ie(w,h,"dragenter"),h.dragEnter=w.cur.element,h.dropzone=w.cur.dropzone)),h.type==="dragend"&&w.cur.dropzone&&(B.drop=new ie(w,h,"drop"),h.dropzone=w.cur.dropzone,h.relatedTarget=w.cur.element),h.type==="dragmove"&&w.cur.dropzone&&(B.move=new ie(w,h,"dropmove"),h.dropzone=w.cur.dropzone)),B}function Ie(c,t){var h=c.dropState,w=h.activeDrops,B=h.cur,P=h.prev;t.leave&&P.dropzone.fire(t.leave),t.enter&&B.dropzone.fire(t.enter),t.move&&B.dropzone.fire(t.move),t.drop&&B.dropzone.fire(t.drop),t.deactivate&&Ye(w,t.deactivate),h.prev.dropzone=B.dropzone,h.prev.element=B.element}function Je(c,t){var h=c.interaction,w=c.iEvent,B=c.event;if(w.type==="dragmove"||w.type==="dragend"){var P=h.dropState;t.dynamicDrop&&(P.activeDrops=na(t,h.element));var Y=w,Z=fa(h,Y,B);P.rejected=P.rejected&&!!Z&&Z.dropzone===P.cur.dropzone&&Z.element===P.cur.element,P.cur.dropzone=Z&&Z.dropzone,P.cur.element=Z&&Z.element,P.events=Re(h,0,Y)}}var Ne={id:"actions/drop",install:function(c){var t=c.actions,h=c.interactStatic,w=c.Interactable,B=c.defaults;c.usePlugin(J),w.prototype.dropzone=function(P){return function(Y,Z){if(E.object(Z)){if(Y.options.drop.enabled=Z.enabled!==!1,Z.listeners){var Te=Ke(Z.listeners),Ue=Object.keys(Te).reduce(function(ca,Ia){return ca[/^(enter|leave)/.test(Ia)?"drag".concat(Ia):/^(activate|deactivate|move)/.test(Ia)?"drop".concat(Ia):Ia]=Te[Ia],ca},{}),De=Y.options.drop.listeners;De&&Y.off(De),Y.on(Ue),Y.options.drop.listeners=Ue}return E.func(Z.ondrop)&&Y.on("drop",Z.ondrop),E.func(Z.ondropactivate)&&Y.on("dropactivate",Z.ondropactivate),E.func(Z.ondropdeactivate)&&Y.on("dropdeactivate",Z.ondropdeactivate),E.func(Z.ondragenter)&&Y.on("dragenter",Z.ondragenter),E.func(Z.ondragleave)&&Y.on("dragleave",Z.ondragleave),E.func(Z.ondropmove)&&Y.on("dropmove",Z.ondropmove),/^(pointer|center)$/.test(Z.overlap)?Y.options.drop.overlap=Z.overlap:E.number(Z.overlap)&&(Y.options.drop.overlap=Math.max(Math.min(1,Z.overlap),0)),"accept"in Z&&(Y.options.drop.accept=Z.accept),"checker"in Z&&(Y.options.drop.checker=Z.checker),Y}return E.bool(Z)?(Y.options.drop.enabled=Z,Y):Y.options.drop}(this,P)},w.prototype.dropCheck=function(P,Y,Z,Te,Ue,De){return function(ca,Ia,nl,al,dl,Tl,El){var Vl=!1;if(!(El=El||ca.getRect(Tl)))return!!ca.options.drop.checker&&ca.options.drop.checker(Ia,nl,Vl,ca,Tl,al,dl);var tr=ca.options.drop.overlap;if(tr==="pointer"){var hr=we(al,dl,"drag"),Kl=ia(Ia);Kl.x+=hr.x,Kl.y+=hr.y;var cr=Kl.x>El.left&&Kl.x<El.right,pn=Kl.y>El.top&&Kl.y<El.bottom;Vl=cr&&pn}var nr=al.getRect(dl);if(nr&&tr==="center"){var bn=nr.left+nr.width/2,Qr=nr.top+nr.height/2;Vl=bn>=El.left&&bn<=El.right&&Qr>=El.top&&Qr<=El.bottom}return nr&&E.number(tr)&&(Vl=Math.max(0,Math.min(El.right,nr.right)-Math.max(El.left,nr.left))*Math.max(0,Math.min(El.bottom,nr.bottom)-Math.max(El.top,nr.top))/(nr.width*nr.height)>=tr),ca.options.drop.checker&&(Vl=ca.options.drop.checker(Ia,nl,Vl,ca,Tl,al,dl)),Vl}(this,P,Y,Z,Te,Ue,De)},h.dynamicDrop=function(P){return E.bool(P)?(c.dynamicDrop=P,h):c.dynamicDrop},I(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",c.dynamicDrop=!1,B.actions.drop=Ne.defaults},listeners:{"interactions:before-action-start":function(c){var t=c.interaction;t.prepared.name==="drag"&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(c,t){var h=c.interaction,w=(c.event,c.iEvent);if(h.prepared.name==="drag"){var B=h.dropState;B.activeDrops=[],B.events={},B.activeDrops=na(t,h.element),B.events=Re(h,0,w),B.events.activate&&(Ye(B.activeDrops,B.events.activate),t.fire("actions/drop:start",{interaction:h,dragEvent:w}))}},"interactions:action-move":Je,"interactions:after-action-move":function(c,t){var h=c.interaction,w=c.iEvent;if(h.prepared.name==="drag"){var B=h.dropState;Ie(h,B.events),t.fire("actions/drop:move",{interaction:h,dragEvent:w}),B.events={}}},"interactions:action-end":function(c,t){if(c.interaction.prepared.name==="drag"){var h=c.interaction,w=c.iEvent;Je(c,t),Ie(h,h.dropState.events),t.fire("actions/drop:end",{interaction:h,dragEvent:w})}},"interactions:stop":function(c){var t=c.interaction;if(t.prepared.name==="drag"){var h=t.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:fa,getDropEvents:Re,fireDropEvents:Ie,filterEventType:function(c){return c.search("drag")===0||c.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},_e=Ne;function $a(c){var t=c.interaction,h=c.iEvent,w=c.phase;if(t.prepared.name==="gesture"){var B=t.pointers.map(function(Ue){return Ue.pointer}),P=w==="start",Y=w==="end",Z=t.interactable.options.deltaSource;if(h.touches=[B[0],B[1]],P)h.distance=Ta(B,Z),h.box=Fa(B),h.scale=1,h.ds=0,h.angle=da(B,Z),h.da=0,t.gesture.startDistance=h.distance,t.gesture.startAngle=h.angle;else if(Y||t.pointers.length<2){var Te=t.prevEvent;h.distance=Te.distance,h.box=Te.box,h.scale=Te.scale,h.ds=0,h.angle=Te.angle,h.da=0}else h.distance=Ta(B,Z),h.box=Fa(B),h.scale=h.distance/t.gesture.startDistance,h.angle=da(B,Z),h.ds=h.scale-t.gesture.scale,h.da=h.angle-t.gesture.angle;t.gesture.distance=h.distance,t.gesture.angle=h.angle,E.number(h.scale)&&h.scale!==1/0&&!isNaN(h.scale)&&(t.gesture.scale=h.scale)}}var wl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(c){var t=c.actions,h=c.Interactable,w=c.defaults;h.prototype.gesturable=function(B){return E.object(B)?(this.options.gesture.enabled=B.enabled!==!1,this.setPerAction("gesture",B),this.setOnEvents("gesture",B),this):E.bool(B)?(this.options.gesture.enabled=B,this):this.options.gesture},t.map.gesture=wl,t.methodDict.gesture="gesturable",w.actions.gesture=wl.defaults},listeners:{"interactions:action-start":$a,"interactions:action-move":$a,"interactions:action-end":$a,"interactions:new":function(c){c.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(c){if(!(c.interaction.pointers.length<2)){var t=c.interactable.options.gesture;if(t&&t.enabled)return c.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(c){return c.search("gesture")===0}},el=wl;function Pl(c,t,h,w,B,P,Y){if(!t)return!1;if(t===!0){var Z=E.number(P.width)?P.width:P.right-P.left,Te=E.number(P.height)?P.height:P.bottom-P.top;if(Y=Math.min(Y,Math.abs((c==="left"||c==="right"?Z:Te)/2)),Z<0&&(c==="left"?c="right":c==="right"&&(c="left")),Te<0&&(c==="top"?c="bottom":c==="bottom"&&(c="top")),c==="left"){var Ue=Z>=0?P.left:P.right;return h.x<Ue+Y}if(c==="top"){var De=Te>=0?P.top:P.bottom;return h.y<De+Y}if(c==="right")return h.x>(Z>=0?P.right:P.left)-Y;if(c==="bottom")return h.y>(Te>=0?P.bottom:P.top)-Y}return!!E.element(w)&&(E.element(t)?t===w:G(w,t,B))}function bl(c){var t=c.iEvent,h=c.interaction;if(h.prepared.name==="resize"&&h.resizeAxes){var w=t;h.interactable.options.resize.square?(h.resizeAxes==="y"?w.delta.x=w.delta.y:w.delta.y=w.delta.x,w.axes="xy"):(w.axes=h.resizeAxes,h.resizeAxes==="x"?w.delta.y=0:h.resizeAxes==="y"&&(w.delta.x=0))}}var Hl,ll,jl={id:"actions/resize",before:["actions/drag"],install:function(c){var t=c.actions,h=c.browser,w=c.Interactable,B=c.defaults;jl.cursors=function(P){return P.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),jl.defaultMargin=h.supportsTouch||h.supportsPointerEvent?20:10,w.prototype.resizable=function(P){return function(Y,Z,Te){return E.object(Z)?(Y.options.resize.enabled=Z.enabled!==!1,Y.setPerAction("resize",Z),Y.setOnEvents("resize",Z),E.string(Z.axis)&&/^x$|^y$|^xy$/.test(Z.axis)?Y.options.resize.axis=Z.axis:Z.axis===null&&(Y.options.resize.axis=Te.defaults.actions.resize.axis),E.bool(Z.preserveAspectRatio)?Y.options.resize.preserveAspectRatio=Z.preserveAspectRatio:E.bool(Z.square)&&(Y.options.resize.square=Z.square),Y):E.bool(Z)?(Y.options.resize.enabled=Z,Y):Y.options.resize}(this,P,c)},t.map.resize=jl,t.methodDict.resize="resizable",B.actions.resize=jl.defaults},listeners:{"interactions:new":function(c){c.interaction.resizeAxes="xy"},"interactions:action-start":function(c){(function(t){var h=t.iEvent,w=t.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var B=h,P=w.rect;w._rects={start:I({},P),corrected:I({},P),previous:I({},P),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},B.edges=w.prepared.edges,B.rect=w._rects.corrected,B.deltaRect=w._rects.delta}})(c),bl(c)},"interactions:action-move":function(c){(function(t){var h=t.iEvent,w=t.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var B=h,P=w.interactable.options.resize.invert,Y=P==="reposition"||P==="negate",Z=w.rect,Te=w._rects,Ue=Te.start,De=Te.corrected,ca=Te.delta,Ia=Te.previous;if(I(Ia,De),Y){if(I(De,Z),P==="reposition"){if(De.top>De.bottom){var nl=De.top;De.top=De.bottom,De.bottom=nl}if(De.left>De.right){var al=De.left;De.left=De.right,De.right=al}}}else De.top=Math.min(Z.top,Ue.bottom),De.bottom=Math.max(Z.bottom,Ue.top),De.left=Math.min(Z.left,Ue.right),De.right=Math.max(Z.right,Ue.left);for(var dl in De.width=De.right-De.left,De.height=De.bottom-De.top,De)ca[dl]=De[dl]-Ia[dl];B.edges=w.prepared.edges,B.rect=De,B.deltaRect=ca}})(c),bl(c)},"interactions:action-end":function(c){var t=c.iEvent,h=c.interaction;if(h.prepared.name==="resize"&&h.prepared.edges){var w=t;w.edges=h.prepared.edges,w.rect=h._rects.corrected,w.deltaRect=h._rects.delta}},"auto-start:check":function(c){var t=c.interaction,h=c.interactable,w=c.element,B=c.rect,P=c.buttons;if(B){var Y=I({},t.coords.cur.page),Z=h.options.resize;if(Z&&Z.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(P&Z.mouseButtons)!=0)){if(E.object(Z.edges)){var Te={left:!1,right:!1,top:!1,bottom:!1};for(var Ue in Te)Te[Ue]=Pl(Ue,Z.edges[Ue],Y,t._latestPointer.eventTarget,w,B,Z.margin||jl.defaultMargin);Te.left=Te.left&&!Te.right,Te.top=Te.top&&!Te.bottom,(Te.left||Te.right||Te.top||Te.bottom)&&(c.action={name:"resize",edges:Te})}else{var De=Z.axis!=="y"&&Y.x>B.right-jl.defaultMargin,ca=Z.axis!=="x"&&Y.y>B.bottom-jl.defaultMargin;(De||ca)&&(c.action={name:"resize",axes:(De?"x":"")+(ca?"y":"")})}return!c.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(c){var t=c.edges,h=c.axis,w=c.name,B=jl.cursors,P=null;if(h)P=B[w+h];else if(t){for(var Y="",Z=0,Te=["top","bottom","left","right"];Z<Te.length;Z++){var Ue=Te[Z];t[Ue]&&(Y+=Ue)}P=B[Y]}return P},filterEventType:function(c){return c.search("resize")===0},defaultMargin:null},Ga=jl,Jl={id:"actions",install:function(c){c.usePlugin(el),c.usePlugin(Ga),c.usePlugin(J),c.usePlugin(_e)}},Xl=0,ar={request:function(c){return Hl(c)},cancel:function(c){return ll(c)},init:function(c){if(Hl=c.requestAnimationFrame,ll=c.cancelAnimationFrame,!Hl)for(var t=["ms","moz","webkit","o"],h=0;h<t.length;h++){var w=t[h];Hl=c["".concat(w,"RequestAnimationFrame")],ll=c["".concat(w,"CancelAnimationFrame")]||c["".concat(w,"CancelRequestAnimationFrame")]}Hl=Hl&&Hl.bind(c),ll=ll&&ll.bind(c),Hl||(Hl=function(B){var P=Date.now(),Y=Math.max(0,16-(P-Xl)),Z=c.setTimeout(function(){B(P+Y)},Y);return Xl=P+Y,Z},ll=function(B){return clearTimeout(B)})}},Sl={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(c){Sl.isScrolling=!0,ar.cancel(Sl.i),c.autoScroll=Sl,Sl.interaction=c,Sl.prevTime=Sl.now(),Sl.i=ar.request(Sl.scroll)},stop:function(){Sl.isScrolling=!1,Sl.interaction&&(Sl.interaction.autoScroll=null),ar.cancel(Sl.i)},scroll:function(){var c=Sl.interaction,t=c.interactable,h=c.element,w=c.prepared.name,B=t.options[w].autoScroll,P=pr(B.container,t,h),Y=Sl.now(),Z=(Y-Sl.prevTime)/1e3,Te=B.speed*Z;if(Te>=1){var Ue={x:Sl.x*Te,y:Sl.y*Te};if(Ue.x||Ue.y){var De=ga(P);E.window(P)?P.scrollBy(Ue.x,Ue.y):P&&(P.scrollLeft+=Ue.x,P.scrollTop+=Ue.y);var ca=ga(P),Ia={x:ca.x-De.x,y:ca.y-De.y};(Ia.x||Ia.y)&&t.fire({type:"autoscroll",target:h,interactable:t,delta:Ia,interaction:c,container:P})}Sl.prevTime=Y}Sl.isScrolling&&(ar.cancel(Sl.i),Sl.i=ar.request(Sl.scroll))},check:function(c,t){var h;return(h=c.options[t].autoScroll)==null?void 0:h.enabled},onInteractionMove:function(c){var t=c.interaction,h=c.pointer;if(t.interacting()&&Sl.check(t.interactable,t.prepared.name))if(t.simulation)Sl.x=Sl.y=0;else{var w,B,P,Y,Z=t.interactable,Te=t.element,Ue=t.prepared.name,De=Z.options[Ue].autoScroll,ca=pr(De.container,Z,Te);if(E.window(ca))Y=h.clientX<Sl.margin,w=h.clientY<Sl.margin,B=h.clientX>ca.innerWidth-Sl.margin,P=h.clientY>ca.innerHeight-Sl.margin;else{var Ia=ke(ca);Y=h.clientX<Ia.left+Sl.margin,w=h.clientY<Ia.top+Sl.margin,B=h.clientX>Ia.right-Sl.margin,P=h.clientY>Ia.bottom-Sl.margin}Sl.x=B?1:Y?-1:0,Sl.y=P?1:w?-1:0,Sl.isScrolling||(Sl.margin=De.margin,Sl.speed=De.speed,Sl.start(t))}}};function pr(c,t,h){return(E.string(c)?Oe(c,t,h):c)||S(h)}function ga(c){return E.window(c)&&(c=window.document.body),{x:c.scrollLeft,y:c.scrollTop}}var ol={id:"auto-scroll",install:function(c){var t=c.defaults,h=c.actions;c.autoScroll=Sl,Sl.now=function(){return c.now()},h.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Sl.defaults},listeners:{"interactions:new":function(c){c.interaction.autoScroll=null},"interactions:destroy":function(c){c.interaction.autoScroll=null,Sl.stop(),Sl.interaction&&(Sl.interaction=null)},"interactions:stop":Sl.stop,"interactions:action-move":function(c){return Sl.onInteractionMove(c)}}},vl=ol;function Dl(c,t){var h=!1;return function(){return h||(D.console.warn(t),h=!0),c.apply(this,arguments)}}function Ua(c,t){return c.name=t.name,c.axis=t.axis,c.edges=t.edges,c}function Sa(c){return E.bool(c)?(this.options.styleCursor=c,this):c===null?(delete this.options.styleCursor,this):this.options.styleCursor}function rl(c){return E.func(c)?(this.options.actionChecker=c,this):c===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Me={id:"auto-start/interactableMethods",install:function(c){var t=c.Interactable;t.prototype.getAction=function(h,w,B,P){var Y=function(Z,Te,Ue,De,ca){var Ia=Z.getRect(De),nl=Te.buttons||{0:1,1:4,3:8,4:16}[Te.button],al={action:null,interactable:Z,interaction:Ue,element:De,rect:Ia,buttons:nl};return ca.fire("auto-start:check",al),al.action}(this,w,B,P,c);return this.options.actionChecker?this.options.actionChecker(h,w,Y,this,P,B):Y},t.prototype.ignoreFrom=Dl(function(h){return this._backCompatOption("ignoreFrom",h)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=Dl(function(h){return this._backCompatOption("allowFrom",h)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=rl,t.prototype.styleCursor=Sa}};function oa(c,t,h,w,B){return t.testIgnoreAllow(t.options[c.name],h,w)&&t.options[c.name].enabled&&Pa(t,h,c,B)?c:null}function Ya(c,t,h,w,B,P,Y){for(var Z=0,Te=w.length;Z<Te;Z++){var Ue=w[Z],De=B[Z],ca=Ue.getAction(t,h,c,De);if(ca){var Ia=oa(ca,Ue,De,P,Y);if(Ia)return{action:Ia,interactable:Ue,element:De}}}return{action:null,interactable:null,element:null}}function me(c,t,h,w,B){var P=[],Y=[],Z=w;function Te(De){P.push(De),Y.push(Z)}for(;E.element(Z);){P=[],Y=[],B.interactables.forEachMatch(Z,Te);var Ue=Ya(c,t,h,P,Y,w,B);if(Ue.action&&!Ue.interactable.options[Ue.action.name].manualStart)return Ue;Z=ze(Z)}return{action:null,interactable:null,element:null}}function _a(c,t,h){var w=t.action,B=t.interactable,P=t.element;w=w||{name:null},c.interactable=B,c.element=P,Ua(c.prepared,w),c.rect=B&&w.name?B.getRect(P):null,Qa(c,h),h.fire("autoStart:prepared",{interaction:c})}function Pa(c,t,h,w){var B=c.options,P=B[h.name].max,Y=B[h.name].maxPerElement,Z=w.autoStart.maxInteractions,Te=0,Ue=0,De=0;if(!(P&&Y&&Z))return!1;for(var ca=0,Ia=w.interactions.list;ca<Ia.length;ca++){var nl=Ia[ca],al=nl.prepared.name;if(nl.interacting()&&(++Te>=Z||nl.interactable===c&&((Ue+=al===h.name?1:0)>=P||nl.element===t&&(De++,al===h.name&&De>=Y))))return!1}return Z>0}function pl(c,t){return E.number(c)?(t.autoStart.maxInteractions=c,this):t.autoStart.maxInteractions}function Il(c,t,h){var w=h.autoStart.cursorElement;w&&w!==c&&(w.style.cursor=""),c.ownerDocument.documentElement.style.cursor=t,c.style.cursor=t,h.autoStart.cursorElement=t?c:null}function Qa(c,t){var h=c.interactable,w=c.element,B=c.prepared;if(c.pointerType==="mouse"&&h&&h.options.styleCursor){var P="";if(B.name){var Y=h.options[B.name].cursorChecker;P=E.func(Y)?Y(B,h,w,c._interacting):t.actions.map[B.name].getCursor(B)}Il(c.element,P||"",t)}else t.autoStart.cursorElement&&Il(t.autoStart.cursorElement,"",t)}var kl={id:"auto-start/base",before:["actions"],install:function(c){var t=c.interactStatic,h=c.defaults;c.usePlugin(Me),h.base.actionChecker=null,h.base.styleCursor=!0,I(h.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(w){return pl(w,c)},c.autoStart={maxInteractions:1/0,withinInteractionLimit:Pa,cursorElement:null}},listeners:{"interactions:down":function(c,t){var h=c.interaction,w=c.pointer,B=c.event,P=c.eventTarget;h.interacting()||_a(h,me(h,w,B,P,t),t)},"interactions:move":function(c,t){(function(h,w){var B=h.interaction,P=h.pointer,Y=h.event,Z=h.eventTarget;B.pointerType!=="mouse"||B.pointerIsDown||B.interacting()||_a(B,me(B,P,Y,Z,w),w)})(c,t),function(h,w){var B=h.interaction;if(B.pointerIsDown&&!B.interacting()&&B.pointerWasMoved&&B.prepared.name){w.fire("autoStart:before-start",h);var P=B.interactable,Y=B.prepared.name;Y&&P&&(P.options[Y].manualStart||!Pa(P,B.element,B.prepared,w)?B.stop():(B.start(B.prepared,P,B.element),Qa(B,w)))}}(c,t)},"interactions:stop":function(c,t){var h=c.interaction,w=h.interactable;w&&w.options.styleCursor&&Il(h.element,"",t)}},maxInteractions:pl,withinInteractionLimit:Pa,validateAction:oa},Ma=kl,aa={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(c,t){var h=c.interaction,w=c.eventTarget,B=c.dx,P=c.dy;if(h.prepared.name==="drag"){var Y=Math.abs(B),Z=Math.abs(P),Te=h.interactable.options.drag,Ue=Te.startAxis,De=Y>Z?"x":Y<Z?"y":"xy";if(h.prepared.axis=Te.lockAxis==="start"?De[0]:Te.lockAxis,De!=="xy"&&Ue!=="xy"&&Ue!==De){h.prepared.name=null;for(var ca=w,Ia=function(al){if(al!==h.interactable){var dl=h.interactable.options.drag;if(!dl.manualStart&&al.testIgnoreAllow(dl,ca,w)){var Tl=al.getAction(h.downPointer,h.downEvent,h,ca);if(Tl&&Tl.name==="drag"&&function(El,Vl){if(!Vl)return!1;var tr=Vl.options.drag.startAxis;return El==="xy"||tr==="xy"||tr===El}(De,al)&&Ma.validateAction(Tl,al,ca,w,t))return al}}};E.element(ca);){var nl=t.interactables.forEachMatch(ca,Ia);if(nl){h.prepared.name="drag",h.interactable=nl,h.element=ca;break}ca=ze(ca)}}}}}};function ma(c){var t=c.prepared&&c.prepared.name;if(!t)return null;var h=c.interactable.options;return h[t].hold||h[t].delay}var ja={id:"auto-start/hold",install:function(c){var t=c.defaults;c.usePlugin(Ma),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(c){c.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(c){var t=c.interaction,h=ma(t);h>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},h))},"interactions:move":function(c){var t=c.interaction,h=c.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!h&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(c){var t=c.interaction;ma(t)>0&&(t.prepared.name=null)}},getHoldDuration:ma},xa=ja,Ul={id:"auto-start",install:function(c){c.usePlugin(Ma),c.usePlugin(xa),c.usePlugin(aa)}},Gl=function(c){return/^(always|never|auto)$/.test(c)?(this.options.preventDefault=c,this):E.bool(c)?(this.options.preventDefault=c?"always":"never",this):this.options.preventDefault};function Da(c){var t=c.interaction,h=c.event;t.interactable&&t.interactable.checkAndPreventDefault(h)}var Rl={id:"core/interactablePreventDefault",install:function(c){var t=c.Interactable;t.prototype.preventDefault=Gl,t.prototype.checkAndPreventDefault=function(h){return function(w,B,P){var Y=w.options.preventDefault;if(Y!=="never")if(Y!=="always"){if(B.events.supportsPassive&&/^touch(start|move)$/.test(P.type)){var Z=S(P.target).document,Te=B.getDocOptions(Z);if(!Te||!Te.events||Te.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(P.type)||E.element(P.target)&&ue(P.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||P.preventDefault()}else P.preventDefault()}(this,c,h)},c.interactions.docEvents.push({type:"dragstart",listener:function(h){for(var w=0,B=c.interactions.list;w<B.length;w++){var P=B[w];if(P.element&&(P.element===h.target||ee(P.element,h.target)))return void P.interactable.checkAndPreventDefault(h)}}})},listeners:["down","move","up","cancel"].reduce(function(c,t){return c["interactions:".concat(t)]=Da,c},{})};function Fr(c,t){if(t.phaselessTypes[c])return!0;for(var h in t.map)if(c.indexOf(h)===0&&c.substr(h.length)in t.phases)return!0;return!1}function Dr(c){var t={};for(var h in c){var w=c[h];E.plainObject(w)?t[h]=Dr(w):E.array(w)?t[h]=ea(w):t[h]=w}return t}var Qe=function(){function c(t){o(this,c),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=t,this.result=La(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(c,[{key:"start",value:function(t,h){var w,B,P=t.phase,Y=this.interaction,Z=function(Ue){var De=Ue.interactable.options[Ue.prepared.name],ca=De.modifiers;return ca&&ca.length?ca:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ia){var nl=De[Ia];return nl&&nl.enabled&&{options:nl,methods:nl._methods}}).filter(function(Ia){return!!Ia})}(Y);this.prepareStates(Z),this.startEdges=I({},Y.edges),this.edges=I({},this.startEdges),this.startOffset=(w=Y.rect,B=h,w?{left:B.x-w.left,top:B.y-w.top,right:w.right-B.x,bottom:w.bottom-B.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var Te=this.fillArg({phase:P,pageCoords:h,preEnd:!1});return this.result=La(),this.startAll(Te),this.result=this.setAll(Te)}},{key:"fillArg",value:function(t){var h=this.interaction;return t.interaction=h,t.interactable=h.interactable,t.element=h.element,t.rect||(t.rect=h.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var h=0,w=this.states;h<w.length;h++){var B=w[h];B.methods.start&&(t.state=B,B.methods.start(t))}}},{key:"setAll",value:function(t){var h=t.phase,w=t.preEnd,B=t.skipModifiers,P=t.rect,Y=t.edges;t.coords=I({},t.pageCoords),t.rect=I({},P),t.edges=I({},Y);for(var Z=B?this.states.slice(B):this.states,Te=La(t.coords,t.rect),Ue=0;Ue<Z.length;Ue++){var De,ca=Z[Ue],Ia=ca.options,nl=I({},t.coords),al=null;(De=ca.methods)!=null&&De.set&&this.shouldDo(Ia,w,h)&&(t.state=ca,al=ca.methods.set(t),ne(t.edges,t.rect,{x:t.coords.x-nl.x,y:t.coords.y-nl.y})),Te.eventProps.push(al)}I(this.edges,t.edges),Te.delta.x=t.coords.x-t.pageCoords.x,Te.delta.y=t.coords.y-t.pageCoords.y,Te.rectDelta.left=t.rect.left-P.left,Te.rectDelta.right=t.rect.right-P.right,Te.rectDelta.top=t.rect.top-P.top,Te.rectDelta.bottom=t.rect.bottom-P.bottom;var dl=this.result.coords,Tl=this.result.rect;if(dl&&Tl){var El=Te.rect.left!==Tl.left||Te.rect.right!==Tl.right||Te.rect.top!==Tl.top||Te.rect.bottom!==Tl.bottom;Te.changed=El||dl.x!==Te.coords.x||dl.y!==Te.coords.y}return Te}},{key:"applyToInteraction",value:function(t){var h=this.interaction,w=t.phase,B=h.coords.cur,P=h.coords.start,Y=this.result,Z=this.startDelta,Te=Y.delta;w==="start"&&I(this.startDelta,Y.delta);for(var Ue=0,De=[[P,Z],[B,Te]];Ue<De.length;Ue++){var ca=De[Ue],Ia=ca[0],nl=ca[1];Ia.page.x+=nl.x,Ia.page.y+=nl.y,Ia.client.x+=nl.x,Ia.client.y+=nl.y}var al=this.result.rectDelta,dl=t.rect||h.rect;dl.left+=al.left,dl.right+=al.right,dl.top+=al.top,dl.bottom+=al.bottom,dl.width=dl.right-dl.left,dl.height=dl.bottom-dl.top}},{key:"setAndApply",value:function(t){var h=this.interaction,w=t.phase,B=t.preEnd,P=t.skipModifiers,Y=this.setAll(this.fillArg({preEnd:B,phase:w,pageCoords:t.modifiedCoords||h.coords.cur.page}));if(this.result=Y,!Y.changed&&(!P||P<this.states.length)&&h.interacting())return!1;if(t.modifiedCoords){var Z=h.coords.cur.page,Te={x:t.modifiedCoords.x-Z.x,y:t.modifiedCoords.y-Z.y};Y.coords.x+=Te.x,Y.coords.y+=Te.y,Y.delta.x+=Te.x,Y.delta.y+=Te.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var h=t.interaction,w=t.event,B=this.states;if(B&&B.length){for(var P=!1,Y=0;Y<B.length;Y++){var Z=B[Y];t.state=Z;var Te=Z.options,Ue=Z.methods,De=Ue.beforeEnd&&Ue.beforeEnd(t);if(De)return this.endResult=De,!1;P=P||!P&&this.shouldDo(Te,!0,t.phase,!0)}P&&h.move({event:w,preEnd:!0})}}},{key:"stop",value:function(t){var h=t.interaction;if(this.states&&this.states.length){var w=I({states:this.states,interactable:h.interactable,element:h.element,rect:null},t);this.fillArg(w);for(var B=0,P=this.states;B<P.length;B++){var Y=P[B];w.state=Y,Y.methods.stop&&Y.methods.stop(w)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var h=0;h<t.length;h++){var w=t[h],B=w.options,P=w.methods,Y=w.name;this.states.push({options:B,methods:P,index:h,name:Y})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var h=t.interaction,w=h.coords,B=h.rect,P=h.modification;if(P.result){for(var Y=P.startDelta,Z=P.result,Te=Z.delta,Ue=Z.rectDelta,De=0,ca=[[w.start,Y],[w.cur,Te]];De<ca.length;De++){var Ia=ca[De],nl=Ia[0],al=Ia[1];nl.page.x-=al.x,nl.page.y-=al.y,nl.client.x-=al.x,nl.client.y-=al.y}B.left-=Ue.left,B.right-=Ue.right,B.top-=Ue.top,B.bottom-=Ue.bottom}}},{key:"shouldDo",value:function(t,h,w,B){return!(!t||t.enabled===!1||B&&!t.endOnly||t.endOnly&&!h||w==="start"&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map(function(h){return Dr(h)}),this.result=La(I({},t.result.coords),I({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),c}();function La(c,t){return{rect:t,coords:c,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function hl(c,t){var h=c.defaults,w={start:c.start,set:c.set,beforeEnd:c.beforeEnd,stop:c.stop},B=function(P){var Y=P||{};for(var Z in Y.enabled=Y.enabled!==!1,h)Z in Y||(Y[Z]=h[Z]);var Te={options:Y,methods:w,name:t,enable:function(){return Y.enabled=!0,Te},disable:function(){return Y.enabled=!1,Te}};return Te};return t&&typeof t=="string"&&(B._defaults=h,B._methods=w),B}function Ll(c){var t=c.iEvent,h=c.interaction.modification.result;h&&(t.modifiers=h.eventProps)}var Ba={id:"modifiers/base",before:["actions"],install:function(c){c.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(c){var t=c.interaction;t.modification=new Qe(t)},"interactions:before-action-start":function(c){var t=c.interaction,h=c.interaction.modification;h.start(c,t.coords.start.page),t.edges=h.edges,h.applyToInteraction(c)},"interactions:before-action-move":function(c){var t=c.interaction,h=t.modification,w=h.setAndApply(c);return t.edges=h.edges,w},"interactions:before-action-end":function(c){var t=c.interaction,h=t.modification,w=h.beforeEnd(c);return t.edges=h.startEdges,w},"interactions:action-start":Ll,"interactions:action-move":Ll,"interactions:action-end":Ll,"interactions:after-action-start":function(c){return c.interaction.modification.restoreInteractionCoords(c)},"interactions:after-action-move":function(c){return c.interaction.modification.restoreInteractionCoords(c)},"interactions:stop":function(c){return c.interaction.modification.stop(c)}}},Yr=Ba,ln={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},zr=function(c){y(h,c);var t=C(h);function h(w,B,P,Y,Z,Te,Ue){var De;o(this,h),(De=t.call(this,w)).relatedTarget=null,De.screenX=void 0,De.screenY=void 0,De.button=void 0,De.buttons=void 0,De.ctrlKey=void 0,De.shiftKey=void 0,De.altKey=void 0,De.metaKey=void 0,De.page=void 0,De.client=void 0,De.delta=void 0,De.rect=void 0,De.x0=void 0,De.y0=void 0,De.t0=void 0,De.dt=void 0,De.duration=void 0,De.clientX0=void 0,De.clientY0=void 0,De.velocity=void 0,De.speed=void 0,De.swipe=void 0,De.axes=void 0,De.preEnd=void 0,Z=Z||w.element;var ca=w.interactable,Ia=(ca&&ca.options||ln).deltaSource,nl=we(ca,Z,P),al=Y==="start",dl=Y==="end",Tl=al?d(De):w.prevEvent,El=al?w.coords.start:dl?{page:Tl.page,client:Tl.client,timeStamp:w.coords.cur.timeStamp}:w.coords.cur;return De.page=I({},El.page),De.client=I({},El.client),De.rect=I({},w.rect),De.timeStamp=El.timeStamp,dl||(De.page.x-=nl.x,De.page.y-=nl.y,De.client.x-=nl.x,De.client.y-=nl.y),De.ctrlKey=B.ctrlKey,De.altKey=B.altKey,De.shiftKey=B.shiftKey,De.metaKey=B.metaKey,De.button=B.button,De.buttons=B.buttons,De.target=Z,De.currentTarget=Z,De.preEnd=Te,De.type=Ue||P+(Y||""),De.interactable=ca,De.t0=al?w.pointers[w.pointers.length-1].downTime:Tl.t0,De.x0=w.coords.start.page.x-nl.x,De.y0=w.coords.start.page.y-nl.y,De.clientX0=w.coords.start.client.x-nl.x,De.clientY0=w.coords.start.client.y-nl.y,De.delta=al||dl?{x:0,y:0}:{x:De[Ia].x-Tl[Ia].x,y:De[Ia].y-Tl[Ia].y},De.dt=w.coords.delta.timeStamp,De.duration=De.timeStamp-De.t0,De.velocity=I({},w.coords.velocity[Ia]),De.speed=Ge(De.velocity.x,De.velocity.y),De.swipe=dl||Y==="inertiastart"?De.getSwipe():null,De}return s(h,[{key:"getSwipe",value:function(){var w=this._interaction;if(w.prevEvent.speed<600||this.timeStamp-w.prevEvent.timeStamp>150)return null;var B=180*Math.atan2(w.prevEvent.velocityY,w.prevEvent.velocityX)/Math.PI;B<0&&(B+=360);var P=112.5<=B&&B<247.5,Y=202.5<=B&&B<337.5;return{up:Y,down:!Y&&22.5<=B&&B<157.5,left:P,right:!P&&(292.5<=B||B<67.5),angle:B,speed:w.prevEvent.speed,velocity:{x:w.prevEvent.velocityX,y:w.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),h}(He);Object.defineProperties(zr.prototype,{pageX:{get:function(){return this.page.x},set:function(c){this.page.x=c}},pageY:{get:function(){return this.page.y},set:function(c){this.page.y=c}},clientX:{get:function(){return this.client.x},set:function(c){this.client.x=c}},clientY:{get:function(){return this.client.y},set:function(c){this.client.y=c}},dx:{get:function(){return this.delta.x},set:function(c){this.delta.x=c}},dy:{get:function(){return this.delta.y},set:function(c){this.delta.y=c}},velocityX:{get:function(){return this.velocity.x},set:function(c){this.velocity.x=c}},velocityY:{get:function(){return this.velocity.y},set:function(c){this.velocity.y=c}}});var Ve=s(function c(t,h,w,B,P){o(this,c),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=h,this.event=w,this.downTime=B,this.downTarget=P}),Zl=function(c){return c.interactable="",c.element="",c.prepared="",c.pointerIsDown="",c.pointerWasMoved="",c._proxy="",c}({}),ql=function(c){return c.start="",c.move="",c.end="",c.stop="",c.interacting="",c}({}),Jr=0,Sr=function(){function c(t){var h=this,w=t.pointerType,B=t.scopeFire;o(this,c),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=Dl(function(De){this.move(De)},"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=Jr++,this._scopeFire=B,this.pointerType=w;var P=this;this._proxy={};var Y=function(De){Object.defineProperty(h._proxy,De,{get:function(){return P[De]}})};for(var Z in Zl)Y(Z);var Te=function(De){Object.defineProperty(h._proxy,De,{value:function(){return P[De].apply(P,arguments)}})};for(var Ue in ql)Te(Ue);this._scopeFire("interactions:new",{interaction:this})}return s(c,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,h,w){var B=this.updatePointer(t,h,w,!0),P=this.pointers[B];this._scopeFire("interactions:down",{pointer:t,event:h,eventTarget:w,pointerIndex:B,pointerInfo:P,type:"down",interaction:this})}},{key:"start",value:function(t,h,w){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(t.name==="gesture"?2:1)||!h.options[t.name].enabled)&&(Ua(this.prepared,t),this.interactable=h,this.element=w,this.rect=h.getRect(w),this.edges=this.prepared.edges?I({},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(t,h,w){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,h,w,!1);var B,P,Y=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&&(B=this.coords.cur.client.x-this.coords.start.client.x,P=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ge(B,P)>this.pointerMoveTolerance);var Z,Te,Ue,De=this.getPointerIndex(t),ca={pointer:t,pointerIndex:De,pointerInfo:this.pointers[De],event:h,type:"move",eventTarget:w,dx:B,dy:P,duplicate:Y,interaction:this};Y||(Z=this.coords.velocity,Te=this.coords.delta,Ue=Math.max(Te.timeStamp/1e3,.001),Z.page.x=Te.page.x/Ue,Z.page.y=Te.page.y/Ue,Z.client.x=Te.client.x/Ue,Z.client.y=Te.client.y/Ue,Z.timeStamp=Ue),this._scopeFire("interactions:move",ca),Y||this.simulation||(this.interacting()&&(ca.type=null,this.move(ca)),this.pointerWasMoved&&le(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||fe(this.coords.delta),(t=I({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,h,w,B){var P=this.getPointerIndex(t);P===-1&&(P=this.updatePointer(t,h,w,!1));var Y=/cancel$/i.test(h.type)?"cancel":"up";this._scopeFire("interactions:".concat(Y),{pointer:t,pointerIndex:P,pointerInfo:this.pointers[P],event:h,eventTarget:w,type:Y,curEventTarget:B,interaction:this}),this.simulation||this.end(h),this.removePointer(t,h)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var h;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(h=this._doPhase({event:t,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(t){var h=Pe(t);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:$e(this.pointers,function(w){return w.id===h})}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,h,w,B){var P,Y,Z,Te=Pe(t),Ue=this.getPointerIndex(t),De=this.pointers[Ue];return B=B!==!1&&(B||/(down|start)$/i.test(h.type)),De?De.pointer=t:(De=new Ve(Te,t,h,null,null),Ue=this.pointers.length,this.pointers.push(De)),va(this.coords.cur,this.pointers.map(function(ca){return ca.pointer}),this._now()),P=this.coords.delta,Y=this.coords.prev,Z=this.coords.cur,P.page.x=Z.page.x-Y.page.x,P.page.y=Z.page.y-Y.page.y,P.client.x=Z.client.x-Y.client.x,P.client.y=Z.client.y-Y.client.y,P.timeStamp=Z.timeStamp-Y.timeStamp,B&&(this.pointerIsDown=!0,De.downTime=this.coords.cur.timeStamp,De.downTarget=w,F(this.downPointer,t),this.interacting()||(le(this.coords.start,this.coords.cur),le(this.coords.prev,this.coords.cur),this.downEvent=h,this.pointerWasMoved=!1)),this._updateLatestPointer(t,h,w),this._scopeFire("interactions:update-pointer",{pointer:t,event:h,eventTarget:w,down:B,pointerInfo:De,pointerIndex:Ue,interaction:this}),Ue}},{key:"removePointer",value:function(t,h){var w=this.getPointerIndex(t);if(w!==-1){var B=this.pointers[w];this._scopeFire("interactions:remove-pointer",{pointer:t,event:h,eventTarget:null,pointerIndex:w,pointerInfo:B,interaction:this}),this.pointers.splice(w,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,h,w){this._latestPointer.pointer=t,this._latestPointer.event=h,this._latestPointer.eventTarget=w}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,h,w,B){return new zr(this,t,this.prepared.name,h,this.element,w,B)}},{key:"_fireEvent",value:function(t){var h;(h=this.interactable)==null||h.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var h=t.event,w=t.phase,B=t.preEnd,P=t.type,Y=this.rect;if(Y&&w==="move"&&(ne(this.edges,Y,this.coords.delta[this.interactable.options.deltaSource]),Y.width=Y.right-Y.left,Y.height=Y.bottom-Y.top),this._scopeFire("interactions:before-action-".concat(w),t)===!1)return!1;var Z=t.iEvent=this._createPreparedEvent(h,w,B,P);return this._scopeFire("interactions:action-".concat(w),t),w==="start"&&(this.prevEvent=Z),this._fireEvent(Z),this._scopeFire("interactions:after-action-".concat(w),t),!0}},{key:"_now",value:function(){return Date.now()}}]),c}();function Ql(c){Er(c.interaction)}function Er(c){if(!function(h){return!(!h.offset.pending.x&&!h.offset.pending.y)}(c))return!1;var t=c.offset.pending;return $l(c.coords.cur,t),$l(c.coords.delta,t),ne(c.edges,c.rect,t),t.x=0,t.y=0,!0}function er(c){var t=c.x,h=c.y;this.offset.pending.x+=t,this.offset.pending.y+=h,this.offset.total.x+=t,this.offset.total.y+=h}function $l(c,t){var h=c.page,w=c.client,B=t.x,P=t.y;h.x+=B,h.y+=P,w.x+=B,w.y+=P}ql.offsetBy="";var or={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(c){c.Interaction.prototype.offsetBy=er},listeners:{"interactions:new":function(c){c.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(c){return function(t){t.pointerIsDown&&($l(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(c.interaction)},"interactions:before-action-start":Ql,"interactions:before-action-move":Ql,"interactions:before-action-end":function(c){var t=c.interaction;if(Er(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(c){var t=c.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},lr=or,Wl=function(){function c(t){o(this,c),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=t}return s(c,[{key:"start",value:function(t){var h=this.interaction,w=Nl(h);if(!w||!w.enabled)return!1;var B=h.coords.velocity.client,P=Ge(B.x,B.y),Y=this.modification||(this.modification=new Qe(h));if(Y.copyFrom(h.modification),this.t0=h._now(),this.allowResume=w.allowResume,this.v0=P,this.currentOffset={x:0,y:0},this.startCoords=h.coords.cur.page,this.modifierArg=Y.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-h.coords.cur.timeStamp<50&&P>w.minSpeed&&P>w.endSpeed)this.startInertia();else{if(Y.result=Y.setAll(this.modifierArg),!Y.result.changed)return!1;this.startSmoothEnd()}return h.modification.result.rect=null,h.offsetBy(this.targetOffset),h._doPhase({interaction:h,event:t,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 t=this,h=this.interaction.coords.velocity.client,w=Nl(this.interaction),B=w.resistance,P=-Math.log(w.endSpeed/this.v0)/B;this.targetOffset={x:(h.x-P)/B,y:(h.y-P)/B},this.te=P,this.lambda_v0=B/this.v0,this.one_ve_v0=1-w.endSpeed/this.v0;var Y=this.modification,Z=this.modifierArg;Z.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},Y.result=Y.setAll(Z),Y.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+Y.result.delta.x,y:this.targetOffset.y+Y.result.delta.y}),this.onNextFrame(function(){return t.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var t=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 t.smoothEndTick()})}},{key:"onNextFrame",value:function(t){var h=this;this.timeout=ar.request(function(){h.active&&t()})}},{key:"inertiaTick",value:function(){var t,h,w,B,P,Y,Z,Te=this,Ue=this.interaction,De=Nl(Ue).resistance,ca=(Ue._now()-this.t0)/1e3;if(ca<this.te){var Ia,nl=1-(Math.exp(-De*ca)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=0,h=0,w=this.targetOffset.x,B=this.targetOffset.y,P=this.modifiedOffset.x,Y=this.modifiedOffset.y,Ia={x:rr(Z=nl,t,w,P),y:rr(Z,h,B,Y)}):Ia={x:this.targetOffset.x*nl,y:this.targetOffset.y*nl};var al={x:Ia.x-this.currentOffset.x,y:Ia.y-this.currentOffset.y};this.currentOffset.x+=al.x,this.currentOffset.y+=al.y,Ue.offsetBy(al),Ue.move(),this.onNextFrame(function(){return Te.inertiaTick()})}else Ue.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,h=this.interaction,w=h._now()-this.t0,B=Nl(h).smoothEndDuration;if(w<B){var P={x:Wr(w,0,this.targetOffset.x,B),y:Wr(w,0,this.targetOffset.y,B)},Y={x:P.x-this.currentOffset.x,y:P.y-this.currentOffset.y};this.currentOffset.x+=Y.x,this.currentOffset.y+=Y.y,h.offsetBy(Y),h.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return t.smoothEndTick()})}else h.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var h=t.pointer,w=t.event,B=t.eventTarget,P=this.interaction;P.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),P.updatePointer(h,w,B,!0),P._doPhase({interaction:P,event:w,phase:"resume"}),le(P.coords.prev,P.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)}}]),c}();function Nl(c){var t=c.interactable,h=c.prepared;return t&&t.options&&h.name&&t.options[h.name].inertia}var Pr={id:"inertia",before:["modifiers","actions"],install:function(c){var t=c.defaults;c.usePlugin(lr),c.usePlugin(Yr),c.actions.phases.inertiastart=!0,c.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(c){var t=c.interaction;t.inertia=new Wl(t)},"interactions:before-action-end":function(c){var t=c.interaction,h=c.event;return(!t._interacting||t.simulation||!t.inertia.start(h))&&null},"interactions:down":function(c){var t=c.interaction,h=c.eventTarget,w=t.inertia;if(w.active)for(var B=h;E.element(B);){if(B===t.element){w.resume(c);break}B=ze(B)}},"interactions:stop":function(c){var t=c.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(c){var t=c.interaction.modification;t.stop(c),t.start(c,c.interaction.coords.cur.page),t.applyToInteraction(c)},"interactions:before-action-inertiastart":function(c){return c.interaction.modification.setAndApply(c)},"interactions:action-resume":Ll,"interactions:action-inertiastart":Ll,"interactions:after-action-inertiastart":function(c){return c.interaction.modification.restoreInteractionCoords(c)},"interactions:after-action-resume":function(c){return c.interaction.modification.restoreInteractionCoords(c)}}};function rr(c,t,h,w){var B=1-c;return B*B*t+2*B*c*h+c*c*w}function Wr(c,t,h,w){return-h*(c/=w)*(c-2)+t}var Nr=Pr;function Br(c,t){for(var h=0;h<t.length;h++){var w=t[h];if(c.immediatePropagationStopped)break;w(c)}}var gn=function(){function c(t){o(this,c),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=I({},t||{})}return s(c,[{key:"fire",value:function(t){var h,w=this.global;(h=this.types[t.type])&&Br(t,h),!t.propagationStopped&&w&&(h=w[t.type])&&Br(t,h)}},{key:"on",value:function(t,h){var w=Ke(t,h);for(t in w)this.types[t]=ha(this.types[t]||[],w[t])}},{key:"off",value:function(t,h){var w=Ke(t,h);for(t in w){var B=this.types[t];if(B&&B.length)for(var P=0,Y=w[t];P<Y.length;P++){var Z=Y[P],Te=B.indexOf(Z);Te!==-1&&B.splice(Te,1)}}}},{key:"getRect",value:function(t){return null}}]),c}(),Sn=function(){function c(t){o(this,c),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,F(this,t)}return s(c,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),c}();function Cn(c){return E.object(c)?{capture:!!c.capture,passive:!!c.passive}:{capture:!!c,passive:!1}}function mn(c,t){return c===t||(typeof c=="boolean"?!!t.capture===c&&!t.passive:!!c.capture==!!t.capture&&!!c.passive==!!t.passive)}var On={id:"events",install:function(c){var t,h=[],w={},B=[],P={add:Y,remove:Z,addDelegate:function(De,ca,Ia,nl,al){var dl=Cn(al);if(!w[Ia]){w[Ia]=[];for(var Tl=0;Tl<B.length;Tl++){var El=B[Tl];Y(El,Ia,Te),Y(El,Ia,Ue,!0)}}var Vl=w[Ia],tr=Fe(Vl,function(hr){return hr.selector===De&&hr.context===ca});tr||(tr={selector:De,context:ca,listeners:[]},Vl.push(tr)),tr.listeners.push({func:nl,options:dl})},removeDelegate:function(De,ca,Ia,nl,al){var dl,Tl=Cn(al),El=w[Ia],Vl=!1;if(El)for(dl=El.length-1;dl>=0;dl--){var tr=El[dl];if(tr.selector===De&&tr.context===ca){for(var hr=tr.listeners,Kl=hr.length-1;Kl>=0;Kl--){var cr=hr[Kl];if(cr.func===nl&&mn(cr.options,Tl)){hr.splice(Kl,1),hr.length||(El.splice(dl,1),Z(ca,Ia,Te),Z(ca,Ia,Ue,!0)),Vl=!0;break}}if(Vl)break}}},delegateListener:Te,delegateUseCapture:Ue,delegatedEvents:w,documents:B,targets:h,supportsOptions:!1,supportsPassive:!1};function Y(De,ca,Ia,nl){if(De.addEventListener){var al=Cn(nl),dl=Fe(h,function(Tl){return Tl.eventTarget===De});dl||(dl={eventTarget:De,events:{}},h.push(dl)),dl.events[ca]||(dl.events[ca]=[]),Fe(dl.events[ca],function(Tl){return Tl.func===Ia&&mn(Tl.options,al)})||(De.addEventListener(ca,Ia,P.supportsOptions?al:al.capture),dl.events[ca].push({func:Ia,options:al}))}}function Z(De,ca,Ia,nl){if(De.addEventListener&&De.removeEventListener){var al=$e(h,function(pn){return pn.eventTarget===De}),dl=h[al];if(dl&&dl.events)if(ca!=="all"){var Tl=!1,El=dl.events[ca];if(El){if(Ia==="all"){for(var Vl=El.length-1;Vl>=0;Vl--){var tr=El[Vl];Z(De,ca,tr.func,tr.options)}return}for(var hr=Cn(nl),Kl=0;Kl<El.length;Kl++){var cr=El[Kl];if(cr.func===Ia&&mn(cr.options,hr)){De.removeEventListener(ca,Ia,P.supportsOptions?hr:hr.capture),El.splice(Kl,1),El.length===0&&(delete dl.events[ca],Tl=!0);break}}}Tl&&!Object.keys(dl.events).length&&h.splice(al,1)}else for(ca in dl.events)dl.events.hasOwnProperty(ca)&&Z(De,ca,"all")}}function Te(De,ca){for(var Ia=Cn(ca),nl=new Sn(De),al=w[De.type],dl=sa(De)[0],Tl=dl;E.element(Tl);){for(var El=0;El<al.length;El++){var Vl=al[El],tr=Vl.selector,hr=Vl.context;if(ue(Tl,tr)&&ee(hr,dl)&&ee(hr,Tl)){var Kl=Vl.listeners;nl.currentTarget=Tl;for(var cr=0;cr<Kl.length;cr++){var pn=Kl[cr];mn(pn.options,Ia)&&pn.func(nl)}}}Tl=ze(Tl)}}function Ue(De){return Te(De,!0)}return(t=c.document)==null||t.createElement("div").addEventListener("test",null,{get capture(){return P.supportsOptions=!0},get passive(){return P.supportsPassive=!0}}),c.events=P,P}},nn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(c){for(var t=0,h=nn.methodOrder;t<h.length;t++){var w=h[t],B=nn[w](c);if(B)return B}return null},simulationResume:function(c){var t=c.pointerType,h=c.eventType,w=c.eventTarget,B=c.scope;if(!/down|start/i.test(h))return null;for(var P=0,Y=B.interactions.list;P<Y.length;P++){var Z=Y[P],Te=w;if(Z.simulation&&Z.simulation.allowResume&&Z.pointerType===t)for(;Te;){if(Te===Z.element)return Z;Te=ze(Te)}}return null},mouseOrPen:function(c){var t,h=c.pointerId,w=c.pointerType,B=c.eventType,P=c.scope;if(w!=="mouse"&&w!=="pen")return null;for(var Y=0,Z=P.interactions.list;Y<Z.length;Y++){var Te=Z[Y];if(Te.pointerType===w){if(Te.simulation&&!Tn(Te,h))continue;if(Te.interacting())return Te;t||(t=Te)}}if(t)return t;for(var Ue=0,De=P.interactions.list;Ue<De.length;Ue++){var ca=De[Ue];if(!(ca.pointerType!==w||/down/i.test(B)&&ca.simulation))return ca}return null},hasPointer:function(c){for(var t=c.pointerId,h=0,w=c.scope.interactions.list;h<w.length;h++){var B=w[h];if(Tn(B,t))return B}return null},idle:function(c){for(var t=c.pointerType,h=0,w=c.scope.interactions.list;h<w.length;h++){var B=w[h];if(B.pointers.length===1){var P=B.interactable;if(P&&(!P.options.gesture||!P.options.gesture.enabled))continue}else if(B.pointers.length>=2)continue;if(!B.interacting()&&t===B.pointerType)return B}return null}};function Tn(c,t){return c.pointers.some(function(h){return h.id===t})}var Vn=nn,on=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fn(c,t){return function(h){var w=t.interactions.list,B=Ha(h),P=sa(h),Y=P[0],Z=P[1],Te=[];if(/^touch/.test(h.type)){t.prevTouchTime=t.now();for(var Ue=0,De=h.changedTouches;Ue<De.length;Ue++){var ca=De[Ue],Ia={pointer:ca,pointerId:Pe(ca),pointerType:B,eventType:h.type,eventTarget:Y,curEventTarget:Z,scope:t},nl=Mr(Ia);Te.push([Ia.pointer,Ia.eventTarget,Ia.curEventTarget,nl])}}else{var al=!1;if(!X.supportsPointerEvent&&/mouse/.test(h.type)){for(var dl=0;dl<w.length&&!al;dl++)al=w[dl].pointerType!=="mouse"&&w[dl].pointerIsDown;al=al||t.now()-t.prevTouchTime<500||h.timeStamp===0}if(!al){var Tl={pointer:h,pointerId:Pe(h),pointerType:B,eventType:h.type,curEventTarget:Z,eventTarget:Y,scope:t},El=Mr(Tl);Te.push([Tl.pointer,Tl.eventTarget,Tl.curEventTarget,El])}}for(var Vl=0;Vl<Te.length;Vl++){var tr=Te[Vl],hr=tr[0],Kl=tr[1],cr=tr[2];tr[3][c](hr,h,Kl,cr)}}}function Mr(c){var t=c.pointerType,h=c.scope,w={interaction:Vn.search(c),searchDetails:c};return h.fire("interactions:find",w),w.interaction||h.interactions.new({pointerType:t})}function An(c,t){var h=c.doc,w=c.scope,B=c.options,P=w.interactions.docEvents,Y=w.events,Z=Y[t];for(var Te in w.browser.isIOS&&!B.events&&(B.events={passive:!1}),Y.delegatedEvents)Z(h,Te,Y.delegateListener),Z(h,Te,Y.delegateUseCapture,!0);for(var Ue=B&&B.events,De=0;De<P.length;De++){var ca=P[De];Z(h,ca.type,ca.listener,Ue)}}var Bn={id:"core/interactions",install:function(c){for(var t={},h=0;h<on.length;h++){var w=on[h];t[w]=Fn(w,c)}var B,P=X.pEventTypes;function Y(){for(var Z=0,Te=c.interactions.list;Z<Te.length;Z++){var Ue=Te[Z];if(Ue.pointerIsDown&&Ue.pointerType==="touch"&&!Ue._interacting)for(var De=function(){var nl=Ia[ca];c.documents.some(function(al){return ee(al.doc,nl.downTarget)})||Ue.removePointer(nl.pointer,nl.event)},ca=0,Ia=Ue.pointers;ca<Ia.length;ca++)De()}}(B=U.PointerEvent?[{type:P.down,listener:Y},{type:P.down,listener:t.pointerDown},{type:P.move,listener:t.pointerMove},{type:P.up,listener:t.pointerUp},{type:P.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:Y},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(Z){for(var Te=0,Ue=c.interactions.list;Te<Ue.length;Te++)Ue[Te].documentBlur(Z)}}),c.prevTouchTime=0,c.Interaction=function(Z){y(Ue,Z);var Te=C(Ue);function Ue(){return o(this,Ue),Te.apply(this,arguments)}return s(Ue,[{key:"pointerMoveTolerance",get:function(){return c.interactions.pointerMoveTolerance},set:function(De){c.interactions.pointerMoveTolerance=De}},{key:"_now",value:function(){return c.now()}}]),Ue}(Sr),c.interactions={list:[],new:function(Z){Z.scopeFire=function(Ue,De){return c.fire(Ue,De)};var Te=new c.Interaction(Z);return c.interactions.list.push(Te),Te},listeners:t,docEvents:B,pointerMoveTolerance:1},c.usePlugin(Rl)},listeners:{"scope:add-document":function(c){return An(c,"add")},"scope:remove-document":function(c){return An(c,"remove")},"interactable:unset":function(c,t){for(var h=c.interactable,w=t.interactions.list.length-1;w>=0;w--){var B=t.interactions.list[w];B.interactable===h&&(B.stop(),t.fire("interactions:destroy",{interaction:B}),B.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(w,1))}}},onDocSignal:An,doOnInteractions:Fn,methodNames:on},Uo=Bn,Ln=function(c){return c[c.On=0]="On",c[c.Off=1]="Off",c}(Ln||{}),qo=function(){function c(t,h,w,B){o(this,c),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new gn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=h.actions,this.target=t,this._context=h.context||w,this._win=S(he(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=B,this.set(h)}return s(c,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,h){return E.func(h.onstart)&&this.on("".concat(t,"start"),h.onstart),E.func(h.onmove)&&this.on("".concat(t,"move"),h.onmove),E.func(h.onend)&&this.on("".concat(t,"end"),h.onend),E.func(h.oninertiastart)&&this.on("".concat(t,"inertiastart"),h.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,h,w){var B,P=this,Y=(B=this._actions.map[t])==null?void 0:B.filterEventType,Z=function(Te){return(Y==null||Y(Te))&&Fr(Te,P._actions)};(E.array(h)||E.object(h))&&this._onOff(Ln.Off,t,h,void 0,Z),(E.array(w)||E.object(w))&&this._onOff(Ln.On,t,w,void 0,Z)}},{key:"setPerAction",value:function(t,h){var w=this._defaults;for(var B in h){var P=B,Y=this.options[t],Z=h[P];P==="listeners"&&this.updatePerActionListeners(t,Y.listeners,Z),E.array(Z)?Y[P]=ea(Z):E.plainObject(Z)?(Y[P]=I(Y[P]||{},Dr(Z)),E.object(w.perAction[P])&&"enabled"in w.perAction[P]&&(Y[P].enabled=Z.enabled!==!1)):E.bool(Z)&&E.object(w.perAction[P])?Y[P].enabled=Z:Y[P]=Z}}},{key:"getRect",value:function(t){return t=t||(E.element(this.target)?this.target:null),E.string(this.target)&&(t=t||this._context.querySelector(this.target)),Be(t)}},{key:"rectChecker",value:function(t){var h=this;return E.func(t)?(this.getRect=function(w){var B=I({},t.apply(h,w));return"width"in B||(B.width=B.right-B.left,B.height=B.bottom-B.top),B},this):t===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,h){if(he(h)||E.object(h)){for(var w in this.options[t]=h,this._actions.map)this.options[w][t]=h;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return t==="page"||t==="client"?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return E.string(t)?Array.from(this._context.querySelectorAll(t)):E.func(t)&&t.getAllElements?t.getAllElements():E.element(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||ee(this._context,t)}},{key:"testIgnoreAllow",value:function(t,h,w){return!this.testIgnore(t.ignoreFrom,h,w)&&this.testAllow(t.allowFrom,h,w)}},{key:"testAllow",value:function(t,h,w){return!t||!!E.element(w)&&(E.string(t)?G(w,t,h):!!E.element(t)&&ee(t,w))}},{key:"testIgnore",value:function(t,h,w){return!(!t||!E.element(w))&&(E.string(t)?G(w,t,h):!!E.element(t)&&ee(t,w))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,h,w,B,P){E.object(h)&&!E.array(h)&&(B=w,w=null);var Y=Ke(h,w,P);for(var Z in Y){Z==="wheel"&&(Z=X.wheelEvent);for(var Te=0,Ue=Y[Z];Te<Ue.length;Te++){var De=Ue[Te];Fr(Z,this._actions)?this.events[t===Ln.On?"on":"off"](Z,De):E.string(this.target)?this._scopeEvents[t===Ln.On?"addDelegate":"removeDelegate"](this.target,this._context,Z,De,B):this._scopeEvents[t===Ln.On?"add":"remove"](this.target,Z,De,B)}}return this}},{key:"on",value:function(t,h,w){return this._onOff(Ln.On,t,h,w)}},{key:"off",value:function(t,h,w){return this._onOff(Ln.Off,t,h,w)}},{key:"set",value:function(t){var h=this._defaults;for(var w in E.object(t)||(t={}),this.options=Dr(h.base),this._actions.methodDict){var B=w,P=this._actions.methodDict[B];this.options[B]={},this.setPerAction(B,I(I({},h.perAction),h.actions[B])),this[P](t[B])}for(var Y in t)Y!=="getRect"?E.func(this[Y])&&this[Y](t[Y]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(E.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var h=this._scopeEvents.delegatedEvents[t],w=h.length-1;w>=0;w--){var B=h[w],P=B.selector,Y=B.context,Z=B.listeners;P===this.target&&Y===this._context&&h.splice(w,1);for(var Te=Z.length-1;Te>=0;Te--)this._scopeEvents.removeDelegate(this.target,this._context,t,Z[Te][0],Z[Te][1])}else this._scopeEvents.remove(this.target,"all")}}]),c}(),Wo=function(){function c(t){var h=this;o(this,c),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":function(w){var B=w.interactable,P=B.target,Y=E.string(P)?h.selectorMap[P]:P[h.scope.id],Z=$e(Y,function(Te){return Te===B});Y.splice(Z,1)}})}return s(c,[{key:"new",value:function(t,h){h=I(h||{},{actions:this.scope.actions});var w=new this.scope.Interactable(t,h,this.scope.document,this.scope.events);return this.scope.addDocument(w._doc),this.list.push(w),E.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(w)):(w.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(w)),this.scope.fire("interactable:new",{target:t,options:h,interactable:w,win:this.scope._win}),w}},{key:"getExisting",value:function(t,h){var w=h&&h.context||this.scope.document,B=E.string(t),P=B?this.selectorMap[t]:t[this.scope.id];if(P)return Fe(P,function(Y){return Y._context===w&&(B||Y.inContext(t))})}},{key:"forEachMatch",value:function(t,h){for(var w=0,B=this.list;w<B.length;w++){var P=B[w],Y=void 0;if((E.string(P.target)?E.element(t)&&ue(t,P.target):t===P.target)&&P.inContext(t)&&(Y=h(P)),Y!==void 0)return Y}}}]),c}(),Go=function(){function c(){var t=this;o(this,c),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=X,this.defaults=Dr(ln),this.Eventable=gn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(w){var B=function P(Y,Z){var Te=w.interactables.getExisting(Y,Z);return Te||((Te=w.interactables.new(Y,Z)).events.global=P.globalEvents),Te};return B.getPointerAverage=Ae,B.getTouchBBox=Fa,B.getTouchDistance=Ta,B.getTouchAngle=da,B.getElementRect=Be,B.getElementClientRect=ke,B.matchesSelector=ue,B.closest=pe,B.globalEvents={},B.version="1.10.27",B.scope=w,B.use=function(P,Y){return this.scope.usePlugin(P,Y),this},B.isSet=function(P,Y){return!!this.scope.interactables.get(P,Y&&Y.context)},B.on=Dl(function(P,Y,Z){if(E.string(P)&&P.search(" ")!==-1&&(P=P.trim().split(/ +/)),E.array(P)){for(var Te=0,Ue=P;Te<Ue.length;Te++){var De=Ue[Te];this.on(De,Y,Z)}return this}if(E.object(P)){for(var ca in P)this.on(ca,P[ca],Y);return this}return Fr(P,this.scope.actions)?this.globalEvents[P]?this.globalEvents[P].push(Y):this.globalEvents[P]=[Y]:this.scope.events.add(this.scope.document,P,Y,{options:Z}),this},"The interact.on() method is being deprecated"),B.off=Dl(function(P,Y,Z){if(E.string(P)&&P.search(" ")!==-1&&(P=P.trim().split(/ +/)),E.array(P)){for(var Te=0,Ue=P;Te<Ue.length;Te++){var De=Ue[Te];this.off(De,Y,Z)}return this}if(E.object(P)){for(var ca in P)this.off(ca,P[ca],Y);return this}var Ia;return Fr(P,this.scope.actions)?P in this.globalEvents&&(Ia=this.globalEvents[P].indexOf(Y))!==-1&&this.globalEvents[P].splice(Ia,1):this.scope.events.remove(this.scope.document,P,Y,Z),this},"The interact.off() method is being deprecated"),B.debug=function(){return this.scope},B.supportsTouch=function(){return X.supportsTouch},B.supportsPointerEvent=function(){return X.supportsPointerEvent},B.stop=function(){for(var P=0,Y=this.scope.interactions.list;P<Y.length;P++)Y[P].stop();return this},B.pointerMoveTolerance=function(P){return E.number(P)?(this.scope.interactions.pointerMoveTolerance=P,this):this.scope.interactions.pointerMoveTolerance},B.addDocument=function(P,Y){this.scope.addDocument(P,Y)},B.removeDocument=function(P){this.scope.removeDocument(P)},B}(this),this.InteractEvent=zr,this.Interactable=void 0,this.interactables=new Wo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(w){return t.removeDocument(w.target)};var h=this;this.Interactable=function(w){y(P,w);var B=C(P);function P(){return o(this,P),B.apply(this,arguments)}return s(P,[{key:"_defaults",get:function(){return h.defaults}},{key:"set",value:function(Y){return v(b(P.prototype),"set",this).call(this,Y),h.fire("interactable:set",{options:Y,interactable:this}),this}},{key:"unset",value:function(){v(b(P.prototype),"unset",this).call(this);var Y=h.interactables.list.indexOf(this);Y<0||(h.interactables.list.splice(Y,1),h.fire("interactable:unset",{interactable:this}))}}]),P}(qo)}return s(c,[{key:"addListeners",value:function(t,h){this.listenerMaps.push({id:h,map:t})}},{key:"fire",value:function(t,h){for(var w=0,B=this.listenerMaps;w<B.length;w++){var P=B[w].map[t];if(P&&P(h,this,t)===!1)return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(h,w){return h.isInitialized=!0,E.window(w)&&_(w),U.init(w),X.init(w),ar.init(w),h.window=w,h.document=w.document,h.usePlugin(Uo),h.usePlugin(On),h}(this,t)}},{key:"pluginIsInstalled",value:function(t){var h=t.id;return h?!!this._plugins.map[h]:this._plugins.list.indexOf(t)!==-1}},{key:"usePlugin",value:function(t,h){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,h),t.listeners&&t.before){for(var w=0,B=this.listenerMaps.length,P=t.before.reduce(function(Z,Te){return Z[Te]=!0,Z[no(Te)]=!0,Z},{});w<B;w++){var Y=this.listenerMaps[w].id;if(Y&&(P[Y]||P[no(Y)]))break}this.listenerMaps.splice(w,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,h){if(this.getDocIndex(t)!==-1)return!1;var w=S(t);h=h?I({},h):{},this.documents.push({doc:t,options:h}),this.events.documents.push(t),t!==this.document&&this.events.add(w,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:w,scope:this,options:h})}},{key:"removeDocument",value:function(t){var h=this.getDocIndex(t),w=S(t),B=this.documents[h].options;this.events.remove(w,"unload",this.onWindowUnload),this.documents.splice(h,1),this.events.documents.splice(h,1),this.fire("scope:remove-document",{doc:t,window:w,scope:this,options:B})}},{key:"getDocIndex",value:function(t){for(var h=0;h<this.documents.length;h++)if(this.documents[h].doc===t)return h;return-1}},{key:"getDocOptions",value:function(t){var h=this.getDocIndex(t);return h===-1?null:this.documents[h].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),c}();function no(c){return c&&c.replace(/\/.*$/,"")}var io=new Go,dn=io.interactStatic,Ko=typeof globalThis<"u"?globalThis:window;io.init(Ko);var oo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(c){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(w){var B=w[0],P=w[1];return B in c||P in c}),h=function(w,B){for(var P=c.range,Y=c.limits,Z=Y===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:Y,Te=c.offset,Ue=Te===void 0?{x:0,y:0}:Te,De={range:P,grid:c,x:null,y:null},ca=0;ca<t.length;ca++){var Ia=t[ca],nl=Ia[0],al=Ia[1],dl=Math.round((w-Ue.x)/c[nl]),Tl=Math.round((B-Ue.y)/c[al]);De[nl]=Math.max(Z.left,Math.min(Z.right,dl*c[nl]+Ue.x)),De[al]=Math.max(Z.top,Math.min(Z.bottom,Tl*c[al]+Ue.y))}return De};return h.grid=c,h.coordFields=t,h}}),Yo={id:"snappers",install:function(c){var t=c.interactStatic;t.snappers=I(t.snappers||{},oo),t.createSnapGrid=t.snappers.grid}},Jo=Yo,Xo={start:function(c){var t=c.state,h=c.rect,w=c.edges,B=c.pageCoords,P=t.options,Y=P.ratio,Z=P.enabled,Te=t.options,Ue=Te.equalDelta,De=Te.modifiers;Y==="preserve"&&(Y=h.width/h.height),t.startCoords=I({},B),t.startRect=I({},h),t.ratio=Y,t.equalDelta=Ue;var ca=t.linkedEdges={top:w.top||w.left&&!w.bottom,left:w.left||w.top&&!w.right,bottom:w.bottom||w.right&&!w.top,right:w.right||w.bottom&&!w.left};if(t.xIsPrimaryAxis=!(!w.left&&!w.right),t.equalDelta){var Ia=(ca.left?1:-1)*(ca.top?1:-1);t.edgeSign={x:Ia,y:Ia}}else t.edgeSign={x:ca.left?-1:1,y:ca.top?-1:1};if(Z!==!1&&I(w,ca),De!=null&&De.length){var nl=new Qe(c.interaction);nl.copyFrom(c.interaction.modification),nl.prepareStates(De),t.subModification=nl,nl.startAll(n({},c))}},set:function(c){var t=c.state,h=c.rect,w=c.coords,B=t.linkedEdges,P=I({},w),Y=t.equalDelta?Zo:Pi;if(I(c.edges,B),Y(t,t.xIsPrimaryAxis,w,h),!t.subModification)return null;var Z=I({},h);ne(B,Z,{x:w.x-P.x,y:w.y-P.y});var Te=t.subModification.setAll(n(n({},c),{},{rect:Z,edges:B,pageCoords:w,prevCoords:w,prevRect:Z})),Ue=Te.delta;return Te.changed&&(Y(t,Math.abs(Ue.x)>Math.abs(Ue.y),Te.coords,Te.rect),I(w,Te.coords)),Te.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Zo(c,t,h){var w=c.startCoords,B=c.edgeSign;t?h.y=w.y+(h.x-w.x)*B.y:h.x=w.x+(h.y-w.y)*B.x}function Pi(c,t,h,w){var B=c.startRect,P=c.startCoords,Y=c.ratio,Z=c.edgeSign;if(t){var Te=w.width/Y;h.y=P.y+(Te-B.height)*Z.y}else{var Ue=w.height*Y;h.x=P.x+(Ue-B.width)*Z.x}}var Qo=hl(Xo,"aspectRatio"),xi=function(){};xi._defaults={};var ci=xi;function Pn(c,t,h){return E.func(c)?oe(c,t.interactable,t.element,[h.x,h.y,t]):oe(c,t.interactable,t.element)}var wi={start:function(c){var t=c.rect,h=c.startOffset,w=c.state,B=c.interaction,P=c.pageCoords,Y=w.options,Z=Y.elementRect,Te=I({left:0,top:0,right:0,bottom:0},Y.offset||{});if(t&&Z){var Ue=Pn(Y.restriction,B,P);if(Ue){var De=Ue.right-Ue.left-t.width,ca=Ue.bottom-Ue.top-t.height;De<0&&(Te.left+=De,Te.right+=De),ca<0&&(Te.top+=ca,Te.bottom+=ca)}Te.left+=h.left-t.width*Z.left,Te.top+=h.top-t.height*Z.top,Te.right+=h.right-t.width*(1-Z.right),Te.bottom+=h.bottom-t.height*(1-Z.bottom)}w.offset=Te},set:function(c){var t=c.coords,h=c.interaction,w=c.state,B=w.options,P=w.offset,Y=Pn(B.restriction,h,t);if(Y){var Z=function(Te){return!Te||"left"in Te&&"top"in Te||((Te=I({},Te)).left=Te.x||0,Te.top=Te.y||0,Te.right=Te.right||Te.left+Te.width,Te.bottom=Te.bottom||Te.top+Te.height),Te}(Y);t.x=Math.max(Math.min(Z.right-P.right,t.x),Z.left+P.left),t.y=Math.max(Math.min(Z.bottom-P.bottom,t.y),Z.top+P.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},et=hl(wi,"restrict"),to={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Qn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Hi(c,t){for(var h=0,w=["top","left","bottom","right"];h<w.length;h++){var B=w[h];B in c||(c[B]=t[B])}return c}var Wn={noInner:to,noOuter:Qn,start:function(c){var t,h=c.interaction,w=c.startOffset,B=c.state,P=B.options;P&&(t=ge(Pn(P.offset,h,h.coords.start.page))),t=t||{x:0,y:0},B.offset={top:t.y+w.top,left:t.x+w.left,bottom:t.y-w.bottom,right:t.x-w.right}},set:function(c){var t=c.coords,h=c.edges,w=c.interaction,B=c.state,P=B.offset,Y=B.options;if(h){var Z=I({},t),Te=Pn(Y.inner,w,Z)||{},Ue=Pn(Y.outer,w,Z)||{};Hi(Te,to),Hi(Ue,Qn),h.top?t.y=Math.min(Math.max(Ue.top+P.top,Z.y),Te.top+P.top):h.bottom&&(t.y=Math.max(Math.min(Ue.bottom+P.bottom,Z.y),Te.bottom+P.bottom)),h.left?t.x=Math.min(Math.max(Ue.left+P.left,Z.x),Te.left+P.left):h.right&&(t.x=Math.max(Math.min(Ue.right+P.right,Z.x),Te.right+P.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},at=hl(Wn,"restrictEdges"),lt=I({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(c){}},wi.defaults),rt=hl({start:wi.start,set:wi.set,defaults:lt},"restrictRect"),nt={width:-1/0,height:-1/0},so={width:1/0,height:1/0},ui=hl({start:function(c){return Wn.start(c)},set:function(c){var t=c.interaction,h=c.state,w=c.rect,B=c.edges,P=h.options;if(B){var Y=xe(Pn(P.min,t,c.coords))||nt,Z=xe(Pn(P.max,t,c.coords))||so;h.options={endOnly:P.endOnly,inner:I({},Wn.noInner),outer:I({},Wn.noOuter)},B.top?(h.options.inner.top=w.bottom-Y.height,h.options.outer.top=w.bottom-Z.height):B.bottom&&(h.options.inner.bottom=w.top+Y.height,h.options.outer.bottom=w.top+Z.height),B.left?(h.options.inner.left=w.right-Y.width,h.options.outer.left=w.right-Z.width):B.right&&(h.options.inner.right=w.left+Y.width,h.options.outer.right=w.left+Z.width),Wn.set(c),h.options=P}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),_i={start:function(c){var t,h=c.interaction,w=c.interactable,B=c.element,P=c.rect,Y=c.state,Z=c.startOffset,Te=Y.options,Ue=Te.offsetWithOrigin?function(Ia){var nl=Ia.interaction.element,al=ge(oe(Ia.state.options.origin,null,null,[nl])),dl=al||we(Ia.interactable,nl,Ia.interaction.prepared.name);return dl}(c):{x:0,y:0};if(Te.offset==="startCoords")t={x:h.coords.start.page.x,y:h.coords.start.page.y};else{var De=oe(Te.offset,w,B,[h]);(t=ge(De)||{x:0,y:0}).x+=Ue.x,t.y+=Ue.y}var ca=Te.relativePoints;Y.offsets=P&&ca&&ca.length?ca.map(function(Ia,nl){return{index:nl,relativePoint:Ia,x:Z.left-P.width*Ia.x+t.x,y:Z.top-P.height*Ia.y+t.y}}):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(c){var t=c.interaction,h=c.coords,w=c.state,B=w.options,P=w.offsets,Y=we(t.interactable,t.element,t.prepared.name),Z=I({},h),Te=[];B.offsetWithOrigin||(Z.x-=Y.x,Z.y-=Y.y);for(var Ue=0,De=P;Ue<De.length;Ue++)for(var ca=De[Ue],Ia=Z.x-ca.x,nl=Z.y-ca.y,al=0,dl=B.targets.length;al<dl;al++){var Tl=B.targets[al],El=void 0;(El=E.func(Tl)?Tl(Ia,nl,t._proxy,ca,al):Tl)&&Te.push({x:(E.number(El.x)?El.x:Ia)+ca.x,y:(E.number(El.y)?El.y:nl)+ca.y,range:E.number(El.range)?El.range:B.range,source:Tl,index:al,offset:ca})}for(var Vl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},tr=0;tr<Te.length;tr++){var hr=Te[tr],Kl=hr.range,cr=hr.x-Z.x,pn=hr.y-Z.y,nr=Ge(cr,pn),bn=nr<=Kl;Kl===1/0&&Vl.inRange&&Vl.range!==1/0&&(bn=!1),Vl.target&&!(bn?Vl.inRange&&Kl!==1/0?nr/Kl<Vl.distance/Vl.range:Kl===1/0&&Vl.range!==1/0||nr<Vl.distance:!Vl.inRange&&nr<Vl.distance)||(Vl.target=hr,Vl.distance=nr,Vl.range=Kl,Vl.inRange=bn,Vl.delta.x=cr,Vl.delta.y=pn)}return Vl.inRange&&(h.x=Vl.target.x,h.y=Vl.target.y),w.closest=Vl,Vl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},co=hl(_i,"snap"),Hn={start:function(c){var t=c.state,h=c.edges,w=t.options;if(!h)return null;c.state={options:{targets:null,relativePoints:[{x:h.left?0:1,y:h.top?0:1}],offset:w.offset||"self",origin:{x:0,y:0},range:w.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],_i.start(c),t.offsets=c.state.offsets,c.state=t},set:function(c){var t=c.interaction,h=c.state,w=c.coords,B=h.options,P=h.offsets,Y={x:w.x-P[0].x,y:w.y-P[0].y};h.options=I({},B),h.options.targets=[];for(var Z=0,Te=B.targets||[];Z<Te.length;Z++){var Ue=Te[Z],De=void 0;if(De=E.func(Ue)?Ue(Y.x,Y.y,t):Ue){for(var ca=0,Ia=h.targetFields;ca<Ia.length;ca++){var nl=Ia[ca],al=nl[0],dl=nl[1];if(al in De||dl in De){De.x=De[al],De.y=De[dl];break}}h.options.targets.push(De)}}var Tl=_i.set(c);return h.options=B,Tl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},it=hl(Hn,"snapSize"),Si={aspectRatio:Qo,restrictEdges:at,restrict:et,restrictRect:rt,restrictSize:ui,snapEdges:hl({start:function(c){var t=c.edges;return t?(c.state.targetFields=c.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Hn.start(c)):null},set:Hn.set,defaults:I(Dr(Hn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:co,snapSize:it,spring:ci,avoid:ci,transform:ci,rubberband:ci},di={id:"modifiers",install:function(c){var t=c.interactStatic;for(var h in c.usePlugin(Yr),c.usePlugin(Jo),t.modifiers=Si,Si){var w=Si[h],B=w._defaults,P=w._methods;B._methods=P,c.defaults.perAction[h]=B}}},ot=di,uo=function(c){y(h,c);var t=C(h);function h(w,B,P,Y,Z,Te){var Ue;if(o(this,h),F(d(Ue=t.call(this,Z)),P),P!==B&&F(d(Ue),B),Ue.timeStamp=Te,Ue.originalEvent=P,Ue.type=w,Ue.pointerId=Pe(B),Ue.pointerType=Ha(B),Ue.target=Y,Ue.currentTarget=null,w==="tap"){var De=Z.getPointerIndex(B);Ue.dt=Ue.timeStamp-Z.pointers[De].downTime;var ca=Ue.timeStamp-Z.tapTime;Ue.double=!!Z.prevTap&&Z.prevTap.type!=="doubletap"&&Z.prevTap.target===Ue.target&&ca<500}else w==="doubletap"&&(Ue.dt=B.timeStamp-Z.tapTime,Ue.double=!0);return Ue}return s(h,[{key:"_subtractOrigin",value:function(w){var B=w.x,P=w.y;return this.pageX-=B,this.pageY-=P,this.clientX-=B,this.clientY-=P,this}},{key:"_addOrigin",value:function(w){var B=w.x,P=w.y;return this.pageX+=B,this.pageY+=P,this.clientX+=B,this.clientY+=P,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),h}(He),pi={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(c){c.pointerEvents=pi,c.defaults.actions.pointerEvents=pi.defaults,I(c.actions.phaselessTypes,pi.types)},listeners:{"interactions:new":function(c){var t=c.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(c){var t=c.down,h=c.pointerInfo;!t&&h.hold||(h.hold={duration:1/0,timeout:null})},"interactions:move":function(c,t){var h=c.interaction,w=c.pointer,B=c.event,P=c.eventTarget;c.duplicate||h.pointerIsDown&&!h.pointerWasMoved||(h.pointerIsDown&&ji(c),jn({interaction:h,pointer:w,event:B,eventTarget:P,type:"move"},t))},"interactions:down":function(c,t){(function(h,w){for(var B=h.interaction,P=h.pointer,Y=h.event,Z=h.eventTarget,Te=h.pointerIndex,Ue=B.pointers[Te].hold,De=We(Z),ca={interaction:B,pointer:P,event:Y,eventTarget:Z,type:"hold",targets:[],path:De,node:null},Ia=0;Ia<De.length;Ia++){var nl=De[Ia];ca.node=nl,w.fire("pointerEvents:collect-targets",ca)}if(ca.targets.length){for(var al=1/0,dl=0,Tl=ca.targets;dl<Tl.length;dl++){var El=Tl[dl].eventable.options.holdDuration;El<al&&(al=El)}Ue.duration=al,Ue.timeout=setTimeout(function(){jn({interaction:B,eventTarget:Z,pointer:P,event:Y,type:"hold"},w)},al)}})(c,t),jn(c,t)},"interactions:up":function(c,t){ji(c),jn(c,t),function(h,w){var B=h.interaction,P=h.pointer,Y=h.event,Z=h.eventTarget;B.pointerWasMoved||jn({interaction:B,eventTarget:Z,pointer:P,event:Y,type:"tap"},w)}(c,t)},"interactions:cancel":function(c,t){ji(c),jn(c,t)}},PointerEvent:uo,fire:jn,collectEventTargets:po,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 jn(c,t){var h=c.interaction,w=c.pointer,B=c.event,P=c.eventTarget,Y=c.type,Z=c.targets,Te=Z===void 0?po(c,t):Z,Ue=new uo(Y,w,B,P,h,t.now());t.fire("pointerEvents:new",{pointerEvent:Ue});for(var De={interaction:h,pointer:w,event:B,eventTarget:P,targets:Te,type:Y,pointerEvent:Ue},ca=0;ca<Te.length;ca++){var Ia=Te[ca];for(var nl in Ia.props||{})Ue[nl]=Ia.props[nl];var al=we(Ia.eventable,Ia.node);if(Ue._subtractOrigin(al),Ue.eventable=Ia.eventable,Ue.currentTarget=Ia.node,Ia.eventable.fire(Ue),Ue._addOrigin(al),Ue.immediatePropagationStopped||Ue.propagationStopped&&ca+1<Te.length&&Te[ca+1].node!==Ue.currentTarget)break}if(t.fire("pointerEvents:fired",De),Y==="tap"){var dl=Ue.double?jn({interaction:h,pointer:w,event:B,eventTarget:P,type:"doubletap"},t):Ue;h.prevTap=dl,h.tapTime=dl.timeStamp}return Ue}function po(c,t){var h=c.interaction,w=c.pointer,B=c.event,P=c.eventTarget,Y=c.type,Z=h.getPointerIndex(w),Te=h.pointers[Z];if(Y==="tap"&&(h.pointerWasMoved||!Te||Te.downTarget!==P))return[];for(var Ue=We(P),De={interaction:h,pointer:w,event:B,eventTarget:P,type:Y,path:Ue,targets:[],node:null},ca=0;ca<Ue.length;ca++){var Ia=Ue[ca];De.node=Ia,t.fire("pointerEvents:collect-targets",De)}return Y==="hold"&&(De.targets=De.targets.filter(function(nl){var al,dl;return nl.eventable.options.holdDuration===((al=h.pointers[Z])==null||(dl=al.hold)==null?void 0:dl.duration)})),De.targets}function ji(c){var t=c.interaction,h=c.pointerIndex,w=t.pointers[h].hold;w&&w.timeout&&(clearTimeout(w.timeout),w.timeout=null)}var tt=Object.freeze({__proto__:null,default:pi});function st(c){var t=c.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}var fo={id:"pointer-events/holdRepeat",install:function(c){c.usePlugin(pi);var t=c.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=c.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(c,t){return c["pointerEvents:".concat(t)]=st,c},{"pointerEvents:new":function(c){var t=c.pointerEvent;t.type==="hold"&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(c,t){var h=c.interaction,w=c.pointerEvent,B=c.eventTarget,P=c.targets;if(w.type==="hold"&&P.length){var Y=P[0].eventable.options.holdRepeatInterval;Y<=0||(h.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:h,eventTarget:B,type:"hold",pointer:w,event:w},t)},Y))}}})},ct=fo,ut={id:"pointer-events/interactableTargets",install:function(c){var t=c.Interactable;t.prototype.pointerEvents=function(w){return I(this.events.options,w),this};var h=t.prototype._backCompatOption;t.prototype._backCompatOption=function(w,B){var P=h.call(this,w,B);return P===this&&(this.events.options[w]=B),P}},listeners:{"pointerEvents:collect-targets":function(c,t){var h=c.targets,w=c.node,B=c.type,P=c.eventTarget;t.interactables.forEachMatch(w,function(Y){var Z=Y.events,Te=Z.options;Z.types[B]&&Z.types[B].length&&Y.testIgnoreAllow(Te,w,P)&&h.push({node:w,eventable:Z,props:{interactable:Y}})})},"interactable:new":function(c){var t=c.interactable;t.events.getRect=function(h){return t.getRect(h)}},"interactable:set":function(c,t){var h=c.interactable,w=c.options;I(h.events.options,t.pointerEvents.defaults),I(h.events.options,w.pointerEvents||{})}}},dt=ut,pt={id:"pointer-events",install:function(c){c.usePlugin(tt),c.usePlugin(ct),c.usePlugin(dt)}},Ei=pt,ft={id:"reflow",install:function(c){var t=c.Interactable;c.actions.phases.reflow=!0,t.prototype.reflow=function(h){return function(w,B,P){for(var Y=w.getAllElements(),Z=P.window.Promise,Te=Z?[]:null,Ue=function(){var ca=Y[De],Ia=w.getRect(ca);if(!Ia)return 1;var nl,al=Fe(P.interactions.list,function(El){return El.interacting()&&El.interactable===w&&El.element===ca&&El.prepared.name===B.name});if(al)al.move(),Te&&(nl=al._reflowPromise||new Z(function(El){al._reflowResolve=El}));else{var dl=xe(Ia),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:dl.x,y:dl.y},client:{x:dl.x,y:dl.y},timeStamp:P.now()});nl=function(El,Vl,tr,hr,Kl){var cr=El.interactions.new({pointerType:"reflow"}),pn={interaction:cr,event:Kl,pointer:Kl,eventTarget:tr,phase:"reflow"};cr.interactable=Vl,cr.element=tr,cr.prevEvent=Kl,cr.updatePointer(Kl,Kl,tr,!0),fe(cr.coords.delta),Ua(cr.prepared,hr),cr._doPhase(pn);var nr=El.window,bn=nr.Promise,Qr=bn?new bn(function(Rn){cr._reflowResolve=Rn}):void 0;return cr._reflowPromise=Qr,cr.start(hr,Vl,tr),cr._interacting?(cr.move(pn),cr.end(Kl)):(cr.stop(),cr._reflowResolve()),cr.removePointer(Kl,Kl),Qr}(P,w,ca,B,Tl)}Te&&Te.push(nl)},De=0;De<Y.length&&!Ue();De++);return Te&&Z.all(Te).then(function(){return w})}(this,h,c)}},listeners:{"interactions:stop":function(c,t){var h=c.interaction;h.pointerType==="reflow"&&(h._reflowResolve&&h._reflowResolve(),function(w,B){w.splice(w.indexOf(B),1)}(t.interactions.list,h))}}},ht=ft;if(dn.use(Rl),dn.use(lr),dn.use(Ei),dn.use(Nr),dn.use(ot),dn.use(Ul),dn.use(Jl),dn.use(vl),dn.use(ht),dn.default=dn,i(a)==="object"&&a)try{a.exports=dn}catch{}return dn.default=dn,dn})}(Ji,Ji.exports)),Ji.exports}var y1=m1();const ec=R.getDefaultExportFromCjs(y1),Vo=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:r}){const n=a,i=r,o=e.inject(vu),p=e.inject(mu);if(!o)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const s=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 y=!1,b=!1,g=NaN,d=NaN,C=NaN,v=NaN,H=-1,T=-1,j=-1,D=-1,_=n.x,S=n.y,x=n.w,k=n.h;const E=e.ref(),M=e.reactive({i:e.toRef(n,"i"),state:u,wrapper:E,calcXY:oe});function O(be){Ke(be)}function Q(){ya()}function J(be){Dn(n.isDraggable)&&(u.draggable=be)}function ye(be){Dn(n.isResizable)&&(u.resizable=be)}function te(be){Dn(n.isBounded)&&(u.bounded=be)}function U(be){u.transformScale=be}function q(be){u.rowHeight=be}function X(be){u.maxRows=be}function ee(){u.rtl=Zs()==="rtl",ya()}function pe(be){u.cols=Math.floor(be)}o.increaseItem(M),e.onBeforeMount(()=>{u.rtl=Zs()==="rtl"}),e.onMounted(()=>{o.responsive&&o.lastBreakpoint?u.cols=xu(o.lastBreakpoint,o.cols):u.cols=o.colNum,u.rowHeight=o.rowHeight,u.containerWidth=o.width!==null?o.width:100,u.margin=o.margin!==void 0?o.margin.map(Number):[10,10],u.maxRows=o.maxRows,Dn(n.isDraggable)?u.draggable=o.isDraggable:u.draggable=n.isDraggable,Dn(n.isResizable)?u.resizable=o.isResizable:u.resizable=n.isResizable,Dn(n.isBounded)?u.bounded=o.isBounded:u.bounded=n.isBounded,u.transformScale=o.transformScale,u.useCssTransforms=o.useCssTransforms,u.useStyleCursor=o.useStyleCursor,e.watchEffect(()=>{_=n.x,S=n.y,k=n.h,x=n.w,kn(Be)}),p.on("updateWidth",O),p.on("compact",Q),p.on("setDraggable",J),p.on("setResizable",ye),p.on("setBounded",te),p.on("setTransformScale",U),p.on("setRowHeight",q),p.on("setMaxRows",X),p.on("directionchange",ee),p.on("setColNum",pe)}),e.onBeforeUnmount(()=>{p.off("updateWidth",O),p.off("compact",Q),p.off("setDraggable",J),p.off("setResizable",ye),p.off("setBounded",te),p.off("setTransformScale",U),p.off("setRowHeight",q),p.off("setMaxRows",X),p.off("directionchange",ee),p.off("setColNum",pe),s.value&&(s.value.unset(),s.value=null),o.decreaseItem(M)}),l({state:u,wrapper:E});const ze=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ue=e.computed(()=>u.resizable&&!n.static),N=e.computed(()=>o.isMirrored?!u.rtl:u.rtl),se=e.computed(()=>(u.draggable||u.resizable)&&!n.static),G=s1("item"),ve=e.computed(()=>({[G.b()]:!0,[G.bm("resizable")]:ue.value,[G.bm("static")]:n.static,[G.bm("resizing")]:u.isResizing,[G.bm("dragging")]:u.isDragging,[G.bm("transform")]:u.useCssTransforms,[G.bm("rtl")]:N.value,[G.bm("no-touch")]:ze&&se.value})),ke=e.computed(()=>[G.be("resizer"),N.value&&G.bem("resizer","rtl")].filter(Boolean));e.watch(()=>n.isDraggable,be=>{u.draggable=be}),e.watch(()=>n.static,()=>{kn(F),kn(fe)}),e.watch(()=>u.draggable,()=>{kn(F)}),e.watch(()=>n.isResizable,be=>{u.resizable=be}),e.watch(()=>n.isBounded,be=>{u.bounded=be}),e.watch(()=>u.resizable,()=>{kn(fe)}),e.watch(()=>u.rowHeight,()=>{kn(Be),kn(We)}),e.watch([()=>u.cols,()=>u.containerWidth],()=>{kn(fe),kn(Be),kn(We)}),e.watch([()=>n.minH,()=>n.maxH,()=>n.minW,()=>n.maxW],()=>{kn(fe)}),e.watch(N,()=>{kn(fe),kn(Be)}),e.watch([()=>o.margin,()=>o.margin[0],()=>o.margin[1]],()=>{const be=o.margin;!be||be[0]===u.margin[0]&&be[1]===u.margin[1]||(u.margin=be.map(Number),kn(Be),kn(We))});function Be(){n.x+n.w>u.cols?(_=0,x=n.w>u.cols?u.cols:n.w):(_=n.x,x=n.w);const be=Oe(_,S,x,k);u.isDragging&&(be.top=u.dragging.top,N.value?be.right=u.dragging.left:be.left=u.dragging.left),u.isResizing&&(be.width=u.resizing.width,be.height=u.resizing.height);let ua;u.useCssTransforms?N.value?ua=r1(be.top,be.right,be.width,be.height):ua=l1(be.top,be.left,be.width,be.height):N.value?ua=i1(be.top,be.right,be.width,be.height):ua=n1(be.top,be.left,be.width,be.height),u.style=ua}function We(){const be={};for(const ua of["width","height"]){const ia=u.style[ua].match(/^(\d+)px$/);if(!ia)return;be[ua]=ia[1]}i("container-resized",n.i,n.h,n.w,be.height,be.width)}function he(be){if(n.static)return;const ua=be.type;if(ua==="resizestart"&&u.isResizing||ua!=="resizestart"&&!u.isResizing)return;const ia=Js(be);if(Dn(ia))return;const{x:Pe,y:va}=ia,Ea={width:0,height:0};let Ae;switch(ua){case"resizestart":{fe(),H=x,T=k,Ae=Oe(_,S,x,k),Ea.width=Ae.width,Ea.height=Ae.height,u.resizing=Ea,u.isResizing=!0;break}case"resizemove":{!be.edges.right&&!be.edges.left&&(C=Pe),!be.edges.top&&!be.edges.bottom&&(v=va);const Fa=Xs(C,v,Pe,va);N.value?Ea.width=u.resizing.width-Fa.deltaX/u.transformScale:Ea.width=u.resizing.width+Fa.deltaX/u.transformScale,Ea.height=u.resizing.height+Fa.deltaY/u.transformScale,u.resizing=Ea;break}case"resizeend":{Ae=Oe(_,S,x,k),Ea.width=Ae.width,Ea.height=Ae.height,u.resizing={width:-1,height:-1},u.isResizing=!1;break}}Ae=we(Ea.height,Ea.width),Ae.w<n.minW&&(Ae.w=n.minW),Ae.w>n.maxW&&(Ae.w=n.maxW),Ae.h<n.minH&&(Ae.h=n.minH),Ae.h>n.maxH&&(Ae.h=n.maxH),Ae.h<1&&(Ae.h=1),Ae.w<1&&(Ae.w=1),C=Pe,v=va,(x!==Ae.w||k!==Ae.h)&&i("resize",n.i,Ae.h,Ae.w,Ea.height,Ea.width),be.type==="resizeend"&&(H!==x||T!==k)&&i("resized",n.i,Ae.h,Ae.w,Ea.height,Ea.width),p.emit("resizeEvent",be.type,n.i,_,S,Ae.h,Ae.w)}function I(be){if(n.static||u.isResizing)return;const ua=be.type;if(ua==="dragstart"&&u.isDragging||ua!=="dragstart"&&!u.isDragging)return;const ia=Js(be);if(Dn(ia))return;const{x:Pe,y:va}=ia,Ea=be.target;if(!Ea.offsetParent)return;const Ae={top:0,left:0};switch(ua){case"dragstart":{j=_,D=S;const Ta=Ea.offsetParent.getBoundingClientRect(),da=Ea.getBoundingClientRect(),Ha=da.left/u.transformScale,sa=Ta.left/u.transformScale,He=da.right/u.transformScale,ha=Ta.right/u.transformScale,ea=da.top/u.transformScale,$e=Ta.top/u.transformScale;N.value?Ae.left=(He-ha)*-1:Ae.left=Ha-sa,Ae.top=ea-$e,u.dragging=Ae,u.isDragging=!0;break}case"dragmove":{const Ta=Xs(g,d,Pe,va);if(N.value?Ae.left=u.dragging.left-Ta.deltaX/u.transformScale:Ae.left=u.dragging.left+Ta.deltaX/u.transformScale,Ae.top=u.dragging.top+Ta.deltaY/u.transformScale,u.bounded){const da=Ea.offsetParent.clientHeight-xe(n.h,u.rowHeight,u.margin[1]);Ae.top=ne(Ae.top,0,da);const Ha=ge(),sa=u.containerWidth-xe(n.w,Ha,u.margin[0]);Ae.left=ne(Ae.left,0,sa)}u.dragging=Ae;break}case"dragend":{const Ta=Ea.offsetParent.getBoundingClientRect(),da=Ea.getBoundingClientRect(),Ha=da.left/u.transformScale,sa=Ta.left/u.transformScale,He=da.right/u.transformScale,ha=Ta.right/u.transformScale,ea=da.top/u.transformScale,$e=Ta.top/u.transformScale;N.value?Ae.left=(He-ha)*-1:Ae.left=Ha-sa,Ae.top=ea-$e,u.dragging={top:-1,left:-1},u.isDragging=!1;break}}let Fa;N.value,Fa=oe(Ae.top,Ae.left),g=Pe,d=va,(_!==Fa.x||S!==Fa.y)&&i("move",n.i,Fa.x,Fa.y),be.type==="dragend"&&(j!==_||D!==S)&&i("moved",n.i,Fa.x,Fa.y),p.emit("dragEvent",be.type,n.i,Fa.x,Fa.y,k,x)}function Oe(be,ua,ia,Pe){const va=ge();let Ea;return N.value?Ea={right:Math.round(va*be+(be+1)*u.margin[0]),top:Math.round(u.rowHeight*ua+(ua+1)*u.margin[1]),width:ia===1/0?ia:Math.round(va*ia+Math.max(0,ia-1)*u.margin[0]),height:Pe===1/0?Pe:Math.round(u.rowHeight*Pe+Math.max(0,Pe-1)*u.margin[1])}:Ea={left:Math.round(va*be+(be+1)*u.margin[0]),top:Math.round(u.rowHeight*ua+(ua+1)*u.margin[1]),width:ia===1/0?ia:Math.round(va*ia+Math.max(0,ia-1)*u.margin[0]),height:Pe===1/0?Pe:Math.round(u.rowHeight*Pe+Math.max(0,Pe-1)*u.margin[1])},Ea}function oe(be,ua){const ia=ge();let Pe=Math.round((ua-u.margin[0])/(ia+u.margin[0])),va=Math.round((be-u.margin[1])/(u.rowHeight+u.margin[1]));return Pe=Math.max(Math.min(Pe,u.cols-x),0),va=Math.max(Math.min(va,u.maxRows-k),0),{x:Pe,y:va}}function ge(){return(u.containerWidth-u.margin[0]*(u.cols+1))/u.cols}function xe(be,ua,ia){return Number.isFinite(be)?Math.round(ua*be+Math.max(0,be-1)*ia):be}function ne(be,ua,ia){return Math.max(Math.min(be,ia),ua)}function we(be,ua,ia=!1){const Pe=ge();let va=Math.round((ua+u.margin[0])/(Pe+u.margin[0])),Ea=0;return ia?Ea=Math.ceil((be+u.margin[1])/(u.rowHeight+u.margin[1])):Ea=Math.round((be+u.margin[1])/(u.rowHeight+u.margin[1])),va=Math.max(Math.min(va,u.cols-_),0),Ea=Math.max(Math.min(Ea,u.maxRows-S),0),{w:va,h:Ea}}function Ke(be,ua){u.containerWidth=be}function ya(){Be()}function Ge(){!s.value&&E.value&&(s.value=ec(E.value),u.useStyleCursor||s.value.styleCursor(!1))}const V=Gs(I);function F(){if(Ge(),!!s.value)if(u.draggable&&!n.static){const be={ignoreFrom:n.dragIgnoreFrom,allowFrom:n.dragAllowFrom,...n.dragOption};s.value.draggable(be),y||(y=!0,s.value.on("dragstart dragmove dragend",ua=>{ua.type==="dragmove"?V(ua):I(ua)}))}else s.value.draggable({enabled:!1})}const le=Gs(he);function fe(){if(Ge(),!!s.value)if(u.resizable&&!n.static){const be=Oe(0,0,n.maxW,n.maxH),ua=Oe(0,0,n.minW,n.minH),ia={edges:{left:N.value?`.${ke.value[0]}`:!1,right:N.value?!1:`.${ke.value[0]}`,bottom:`.${ke.value[0]}`,top:!1},ignoreFrom:n.resizeIgnoreFrom,restrictSize:{min:{height:ua.height*u.transformScale,width:ua.width*u.transformScale},max:{height:be.height*u.transformScale,width:be.width*u.transformScale}},...n.resizeOption};n.preserveAspectRatio&&(ia.modifiers=[ec.modifiers.aspectRatio({ratio:"preserve"})]),s.value.resizable(ia),b||(b=!0,s.value.on("resizestart resizemove resizeend",Pe=>{Pe.type==="resizemove"?le(Pe):he(Pe)}))}else s.value.resizable({enabled:!1})}return(be,ua)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:E,class:e.normalizeClass(ve.value),style:e.normalizeStyle(u.style)},[e.renderSlot(be.$slots,"default"),ue.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(ke.value)},null,2)):e.createCommentVNode("",!0)],6))}}),ki=typeof window<"u";var ac;ki&&(ac=window==null?void 0:window.navigator)!=null&&ac.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function lc(a){return a!=null}function rc(){}const g1=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(g1)));const b1=ki&&("ontouchstart"in window||x1()>0),k1=b1?"pointerdown":"click";function x1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function w1(a,l,r=window.Event){const{type:n,bubbles:i=!1,cancelable:o=!1,...p}=l;if(!lc(n)||n==="")return!1;let s;return lc(r)?s=new r(n,{bubbles:i,cancelable:o}):(s=document.createEvent("HTMLEvents"),s.initEvent(n,i,o)),Object.assign(s,p),a.dispatchEvent(s)}const _1="clickoutside",S1=new Set;ki&&document.addEventListener(k1,a=>{const l=a.target,r=a.composedPath&&a.composedPath();S1.forEach(n=>{n!==l&&(r?!r.includes(n):!n.contains(l))&&(!n.__transferElement||n.__transferElement!==l&&!n.__transferElement.contains(l))&&w1(n,{type:_1})})},!0);const E1=[["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 To;if(ki){for(const a of E1)if(a[1]in document){To=a;break}}e.computed(()=>!1);const C1=new Set,T1=new WeakMap;if(ki&&To){const a=To[2],l=To[4];document.addEventListener(l,()=>{if(C1.forEach(r=>{r.value=!1}),document[a]){const r=T1.get(document[a]);r&&(r.value=!0)}},!1)}const _u=new Map;_u.set("x",0);_u.set("y",0);var gi=[],B1=function(){return gi.some(function(a){return a.activeTargets.length>0})},D1=function(){return gi.some(function(a){return a.skippedTargets.length>0})},nc="ResizeObserver loop completed with undelivered notifications.",N1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:nc}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=nc),window.dispatchEvent(a)},ro;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ro||(ro={}));var bi=function(a){return Object.freeze(a)},A1=function(){function a(l,r){this.inlineSize=l,this.blockSize=r,bi(this)}return a}(),Su=function(){function a(l,r,n,i){return this.x=l,this.y=r,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,bi(this)}return a.prototype.toJSON=function(){var l=this,r=l.x,n=l.y,i=l.top,o=l.right,p=l.bottom,s=l.left,u=l.width,y=l.height;return{x:r,y:n,top:i,right:o,bottom:p,left:s,width:u,height:y}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Ut=function(a){return a instanceof SVGElement&&"getBBox"in a},Eu=function(a){if(Ut(a)){var l=a.getBBox(),r=l.width,n=l.height;return!r&&!n}var i=a,o=i.offsetWidth,p=i.offsetHeight;return!(o||p||a.getClientRects().length)},ic=function(a){var l;if(a instanceof Element)return!0;var r=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(r&&a instanceof r.Element)},z1=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},eo=typeof window<"u"?window:{},_o=new WeakMap,oc=/auto|scroll/,M1=/^tb|vertical/,I1=/msie|trident/i.test(eo.navigator&&eo.navigator.userAgent),qn=function(a){return parseFloat(a||"0")},Li=function(a,l,r){return a===void 0&&(a=0),l===void 0&&(l=0),r===void 0&&(r=!1),new A1((r?l:a)||0,(r?a:l)||0)},tc=bi({devicePixelContentBoxSize:Li(),borderBoxSize:Li(),contentBoxSize:Li(),contentRect:new Su(0,0,0,0)}),Cu=function(a,l){if(l===void 0&&(l=!1),_o.has(a)&&!l)return _o.get(a);if(Eu(a))return _o.set(a,tc),tc;var r=getComputedStyle(a),n=Ut(a)&&a.ownerSVGElement&&a.getBBox(),i=!I1&&r.boxSizing==="border-box",o=M1.test(r.writingMode||""),p=!n&&oc.test(r.overflowY||""),s=!n&&oc.test(r.overflowX||""),u=n?0:qn(r.paddingTop),y=n?0:qn(r.paddingRight),b=n?0:qn(r.paddingBottom),g=n?0:qn(r.paddingLeft),d=n?0:qn(r.borderTopWidth),C=n?0:qn(r.borderRightWidth),v=n?0:qn(r.borderBottomWidth),H=n?0:qn(r.borderLeftWidth),T=g+y,j=u+b,D=H+C,_=d+v,S=s?a.offsetHeight-_-a.clientHeight:0,x=p?a.offsetWidth-D-a.clientWidth:0,k=i?T+D:0,E=i?j+_:0,M=n?n.width:qn(r.width)-k-x,O=n?n.height:qn(r.height)-E-S,Q=M+T+x+D,J=O+j+S+_,ye=bi({devicePixelContentBoxSize:Li(Math.round(M*devicePixelRatio),Math.round(O*devicePixelRatio),o),borderBoxSize:Li(Q,J,o),contentBoxSize:Li(M,O,o),contentRect:new Su(g,u,M,O)});return _o.set(a,ye),ye},Tu=function(a,l,r){var n=Cu(a,r),i=n.borderBoxSize,o=n.contentBoxSize,p=n.devicePixelContentBoxSize;switch(l){case ro.DEVICE_PIXEL_CONTENT_BOX:return p;case ro.BORDER_BOX:return i;default:return o}},O1=function(){function a(l){var r=Cu(l);this.target=l,this.contentRect=r.contentRect,this.borderBoxSize=bi([r.borderBoxSize]),this.contentBoxSize=bi([r.contentBoxSize]),this.devicePixelContentBoxSize=bi([r.devicePixelContentBoxSize])}return a}(),Bu=function(a){if(Eu(a))return 1/0;for(var l=0,r=a.parentNode;r;)l+=1,r=r.parentNode;return l},L1=function(){var a=1/0,l=[];gi.forEach(function(o){if(o.activeTargets.length!==0){var p=[];o.activeTargets.forEach(function(s){var u=new O1(s.target),y=Bu(s.target);p.push(u),s.lastReportedSize=Tu(s.target,s.observedBox),y<a&&(a=y)}),l.push(function(){o.callback.call(o.observer,p,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var r=0,n=l;r<n.length;r++){var i=n[r];i()}return a},sc=function(a){gi.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(r){r.isActive()&&(Bu(r.target)>a?l.activeTargets.push(r):l.skippedTargets.push(r))})})},R1=function(){var a=0;for(sc(a);B1();)a=L1(),sc(a);return D1()&&N1(),a>0},St,Du=[],$1=function(){return Du.splice(0).forEach(function(a){return a()})},V1=function(a){if(!St){var l=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return $1()}).observe(r,n),St=function(){r.textContent="".concat(l?l--:l++)}}Du.push(a),St()},F1=function(a){V1(function(){requestAnimationFrame(a)})},Bo=0,P1=function(){return!!Bo},H1=250,j1={attributes:!0,characterData:!0,childList:!0,subtree:!0},cc=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],uc=function(a){return a===void 0&&(a=0),Date.now()+a},Et=!1,U1=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var r=this;if(l===void 0&&(l=H1),!Et){Et=!0;var n=uc(l);F1(function(){var i=!1;try{i=R1()}finally{if(Et=!1,l=n-uc(),!P1())return;i?r.run(1e3):l>0?r.run(l):r.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,r=function(){return l.observer&&l.observer.observe(document.body,j1)};document.body?r():eo.addEventListener("DOMContentLoaded",r)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),cc.forEach(function(r){return eo.addEventListener(r,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),cc.forEach(function(r){return eo.removeEventListener(r,l.listener,!0)}),this.stopped=!0)},a}(),Vt=new U1,dc=function(a){!Bo&&a>0&&Vt.start(),Bo+=a,!Bo&&Vt.stop()},q1=function(a){return!Ut(a)&&!z1(a)&&getComputedStyle(a).display==="inline"},W1=function(){function a(l,r){this.target=l,this.observedBox=r||ro.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=Tu(this.target,this.observedBox,!0);return q1(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),G1=function(){function a(l,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=r}return a}(),So=new WeakMap,pc=function(a,l){for(var r=0;r<a.length;r+=1)if(a[r].target===l)return r;return-1},Eo=function(){function a(){}return a.connect=function(l,r){var n=new G1(l,r);So.set(l,n)},a.observe=function(l,r,n){var i=So.get(l),o=i.observationTargets.length===0;pc(i.observationTargets,r)<0&&(o&&gi.push(i),i.observationTargets.push(new W1(r,n&&n.box)),dc(1),Vt.schedule())},a.unobserve=function(l,r){var n=So.get(l),i=pc(n.observationTargets,r),o=n.observationTargets.length===1;i>=0&&(o&&gi.splice(gi.indexOf(n),1),n.observationTargets.splice(i,1),dc(-1))},a.disconnect=function(l){var r=this,n=So.get(l);n.observationTargets.slice().forEach(function(i){return r.unobserve(l,i.target)}),n.activeTargets.splice(0,n.activeTargets.length)},a}(),K1=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.");Eo.connect(this,l)}return a.prototype.observe=function(l,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ic(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Eo.observe(this,l,r)},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(!ic(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Eo.unobserve(this,l)},a.prototype.disconnect=function(){Eo.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Fo=new WeakMap;function Y1(a){var l;for(let r=0,n=a.length;r<n;++r){const i=a[r],o=Fo.get(i.target);if(typeof o=="function"){const{inlineSize:p,blockSize:s}=((l=i.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:u,offsetHeight:y}=i.target;o(Object.assign(i,{offsetWidth:u,offsetHeight:y,width:p??u,height:s??y}))}}}const Nu=new(ki&&window.ResizeObserver||K1)(Y1);function fc(a,l){Fo.set(a,l),Nu.observe(a)}function hc(a){Fo.has(a)&&(Nu.unobserve(a),Fo.delete(a))}function J1(a={}){let l=rc;const r=e.watch(()=>e.unref(a.target),i=>{l(),!(!i||typeof a.onResize!="function")&&(fc(i,a.onResize),l=()=>{hc(i),l=rc})},{immediate:!0}),n=()=>{r(),l()};return e.getCurrentScope()&&e.onScopeDispose(n),{observeResize:fc,unobserveResize:hc,unobserve:n}}const X1=e.ref(!1);e.computed(()=>X1.value);const vc="__theme_style__",Ct="__theme_observer__",mc=e.reactive(new Map),yc=new Map;e.watch(mc,()=>{if(!ki)return;yc.clear();const a=document.head.querySelector(`#${vc}`);a&&document.head.removeChild(a);const l=document.createElement("style");let r=`.${Ct} { width: 1px }`,n=1;for(const[i,[o,p]]of mc.entries())r+=` html.${o} .${Ct}, .${p} .${Ct} { width: ${++n}px }`,yc.set(n,i);l.textContent=r,l.id=vc,document.head.appendChild(l)});const Au=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:r}){const n=a,i=r,o=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),p=new Map,s=e.ref(n.layout),u=e.ref(),{observeResize:y,unobserveResize:b}=J1(),g=Y2();g.on("resizeEvent",d),g.on("dragEvent",C),e.onBeforeMount(()=>{i("layout-before-mount",s.value)}),e.onMounted(()=>{i("layout-mounted",s.value),e.nextTick(()=>{o1(s.value),o.originalLayout=s.value,e.nextTick(()=>{O(),u.value&&y(u.value,J2(_,16)),Mi(s.value,n.verticalCompact),i("layout-updated",s.value),D(),_()})})}),e.onBeforeUnmount(()=>{g.clearAll(),u.value&&b(u.value)});function d(J,ye,te,U,q,X){E(J,ye,te,U,q,X)}function C(J,ye,te,U,q,X){k(J,ye,te,U,q,X)}e.watch(()=>o.width,(J,ye)=>{e.nextTick(()=>{g.emit("updateWidth",J),ye===-1&&e.nextTick(()=>{i("layout-ready",s.value)}),D()})}),e.watch(()=>[n.layout,n.layout.length],()=>{s.value=n.layout,j()}),e.watch(()=>n.colNum,J=>{g.emit("setColNum",J)}),e.watch(()=>n.rowHeight,J=>{g.emit("setRowHeight",J)}),e.watch(()=>n.isDraggable,J=>{g.emit("setDraggable",J)}),e.watch(()=>n.isResizable,J=>{g.emit("setResizable",J)}),e.watch(()=>n.isBounded,J=>{g.emit("setBounded",J)}),e.watch(()=>n.transformScale,J=>{g.emit("setTransformScale",J)}),e.watch(()=>n.responsive,J=>{J||(i("update:layout",o.originalLayout),g.emit("setColNum",n.colNum)),_()}),e.watch(()=>n.maxRows,J=>{g.emit("setMaxRows",J)}),e.watch([()=>n.margin,()=>n.margin[1]],D),e.provide(vu,e.reactive({...e.toRefs(n),...e.toRefs(o),increaseItem:v,decreaseItem:H})),e.provide(mu,g),l({state:o,getItem:T,resizeEvent:E,dragEvent:k,layoutUpdate:j});function v(J){p.set(J.i,J)}function H(J){p.delete(J.i)}function T(J){return p.get(J)}function j(){if(!Dn(s.value)&&!Dn(o.originalLayout)){if(s.value.length!==o.originalLayout.length){const J=Q(s.value,o.originalLayout);if(J.length>0)if(s.value.length>o.originalLayout.length)o.originalLayout=o.originalLayout.concat(J);else{const ye=new Set(J.map(te=>te.i));o.originalLayout=o.originalLayout.filter(te=>!ye.has(te.i))}o.lastLayoutLength=s.value.length,O()}Mi(s.value,n.verticalCompact),g.emit("updateWidth",o.width),D(),i("layout-updated",s.value)}}function D(){o.mergedStyle={height:S()}}function _(){u.value&&(o.width=u.value.offsetWidth),g.emit("resizeEvent")}function S(){if(!n.autoSize)return;const J=parseFloat(n.margin[1]);return Z2(s.value)*(n.rowHeight+J)+J+"px"}let x;function k(J,ye,te,U,q,X){let ee=Ks(s.value,ye);Dn(ee)&&(ee={h:0,w:0,x:0,y:0,i:""}),J==="dragstart"&&!n.verticalCompact&&(x=s.value.reduce((pe,{i:ze,x:ue,y:N})=>({...pe,[ze]:{x:ue,y:N}}),{})),J==="dragmove"||J==="dragstart"?(o.placeholder.i=ye,o.placeholder.x=ee.x,o.placeholder.y=ee.y,o.placeholder.w=X,o.placeholder.h=q,e.nextTick(()=>{o.isDragging=!0}),g.emit("updateWidth",o.width)):e.nextTick(()=>{o.isDragging=!1}),s.value=$t(s.value,ee,te,U,!0,n.preventCollision),n.restoreOnDrag?(ee.static=!0,Mi(s.value,n.verticalCompact,x),ee.static=!1):Mi(s.value,n.verticalCompact),g.emit("compact"),D(),J==="dragend"&&(x=void 0,i("layout-updated",s.value))}function E(J,ye,te,U,q,X){let ee=Ks(s.value,ye);Dn(ee)&&(ee={h:0,w:0,x:0,y:0,i:""});let pe;if(n.preventCollision){const ze=gu(s.value,{...ee,w:X,h:q}).filter(ue=>ue.i!==ee.i);if(pe=ze.length>0,pe){let ue=1/0,N=1/0;ze.forEach(se=>{se.x>ee.x&&(ue=Math.min(ue,se.x)),se.y>ee.y&&(N=Math.min(N,se.y))}),Number.isFinite(ue)&&(ee.w=ue-ee.x),Number.isFinite(N)&&(ee.h=N-ee.y)}}pe||(ee.w=X,ee.h=q),J==="resizestart"||J==="resizemove"?(o.placeholder.i=ye,o.placeholder.x=te,o.placeholder.y=U,o.placeholder.w=ee.w,o.placeholder.h=ee.h,e.nextTick(()=>{o.isDragging=!0}),g.emit("updateWidth",o.width)):J&&e.nextTick(()=>{o.isDragging=!1}),n.responsive&&M(),Mi(s.value,n.verticalCompact),g.emit("compact"),D(),J==="resizeend"&&i("layout-updated",s.value)}function M(){const J=d1(n.breakpoints,o.width);if(J===o.lastBreakpoint)return;const ye=xu(J,n.cols);!Dn(o.lastBreakpoint)&&!o.layouts[o.lastBreakpoint]&&(o.layouts[o.lastBreakpoint]=Rt(s.value));const te=p1(o.originalLayout,o.layouts,n.breakpoints,J,o.lastBreakpoint,ye,n.verticalCompact);o.layouts[J]=te,o.lastBreakpoint!==J&&i("breakpoint-changed",J,te),s.value=te,i("update:layout",te),o.lastBreakpoint=J,g.emit("setColNum",ye)}function O(){o.layouts=Object.assign({},n.responsiveLayouts)}function Q(J,ye){const te=new Set(ye.map(ee=>ee.i)),U=new Set(J.map(ee=>ee.i)),q=J.filter(ee=>!te.has(ee.i)),X=ye.filter(ee=>!U.has(ee.i));return q.concat(X)}return(J,ye)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:u,class:"vgl-layout",style:e.normalizeStyle(o.mergedStyle)},[J.$slots.default?e.renderSlot(J.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(s.value,te=>(e.openBlock(),e.createBlock(Vo,e.mergeProps({key:te.i,ref_for:!0},te),{default:e.withCtx(()=>[e.renderSlot(J.$slots,"item",{item:te})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Vo,{class:"vgl-item--placeholder",x:o.placeholder.x,y:o.placeholder.y,w:o.placeholder.w,h:o.placeholder.h,i:o.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,o.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 Z1={key:0,class:"item-view-group"},Q1={key:0,class:"item-view-group"},em=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const r=R.useModelComp(R.pinia),{isEdit:n}=R.storeToRefs(r),i=si(R.pinia),o=l,p=a,s=e.ref(""),u=e.computed(()=>p==null?void 0:p.children),y=e.computed(()=>{var D,_,S,x;return((D=p==null?void 0:p.children)==null?void 0:D.length)>0&&((_=p==null?void 0:p.children)!=null&&_.every(k=>k==null?void 0:k.layout))?(x=(S=p==null?void 0:p.children)==null?void 0:S[0])==null?void 0:x.layout:"vertical"}),b=D=>{s.value=D,o("radioChange",D)},g=e.computed(()=>{var D,_;return((_=(D=p==null?void 0:p.children)==null?void 0:D[0])==null?void 0:_.isGridLayout)||!1}),d=e.ref((p==null?void 0:p.level)+1),C=e.computed(()=>{if(!(p!=null&&p.children)||!Array.isArray(p.children)||p.children.length<2)return!1;const D=p.children.some(S=>(S==null?void 0:S.name)==="测量系统配置表"&&(S==null?void 0:S.comp)==="ParentItem"),_=p.children.some(S=>(S==null?void 0:S.name)==="测量系统传递表"&&(S==null?void 0:S.comp)==="ParentItem");return D&&_}),v=e.computed(()=>{var _,S,x,k,E,M;let D=(_=p==null?void 0:p.children)==null?void 0:_.filter(O=>O==null?void 0:O.choice);if(i.setSelectTab((S=D==null?void 0:D[0])==null?void 0:S.choiceName),(s==null?void 0:s.value)!=="")return(x=p==null?void 0:p.children)==null?void 0:x.filter(O=>!(O!=null&&O.choiceName)||(O==null?void 0:O.choiceName)===(s==null?void 0:s.value));{let O=(E=(k=p==null?void 0:p.children)==null?void 0:k.find(Q=>Q==null?void 0:Q.choice))==null?void 0:E.choiceName;return(M=p==null?void 0:p.children)==null?void 0:M.filter(Q=>!(Q!=null&&Q.choiceName)||(Q==null?void 0:Q.choiceName)===O)}}),H=D=>{const _=(D==null?void 0:D.menuFilter)||[];return Array.isArray(_)&&(_==null?void 0:_.some(S=>{const x=typeof S=="string"?S:JSON.stringify(S);return x==null?void 0:x.includes("HideGroup=Yes")}))};e.watch(()=>p==null?void 0:p.children,()=>{C.value},{deep:!0});const T=D=>{o("rowClick",D)},j=(D,_)=>{o("routeUrl",D,_)};return(D,_)=>g.value?(e.openBlock(),e.createBlock(e.unref(Au),{key:0,layout:u.value,"onUpdate:layout":_[0]||(_[0]=S=>u.value=S),"is-draggable":e.unref(n)==="edit","is-resizable":e.unref(n)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(S,x)=>(e.openBlock(),e.createBlock(e.unref(Vo),{key:S.i,x:S.x,y:S.y,"min-h":S.minH,"max-h":S.maxH,"min-w":S.minW,w:S.w,h:S.h,i:S.i},{default:e.withCtx(()=>{var k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:x===((k=p==null?void 0:p.children)==null?void 0:k.length)-1?"0px":"24px"})},[((M=(E=S==null?void 0:S.component)==null?void 0:E.comp)==null?void 0:M.toUpperCase())!=="TABLE"&&((O=S==null?void 0:S.component)!=null&&O.name)?(e.openBlock(),e.createElementBlock("div",Z1,[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((Q=S==null?void 0:S.component)==null?void 0:Q.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(lo)((J=S==null?void 0:S.component)==null?void 0:J.comp)),{pageLayout:y.value,config:{showIndex:(ye=e.unref(xr)[x])==null?void 0:ye.showIndex,allowMove:(te=e.unref(xr)[x])==null?void 0:te.allowMove,viewport:(U=e.unref(xr)[x])==null?void 0:U.viewport,status:(q=e.unref(xr)[x])==null?void 0:q.status},related:S==null?void 0:S.relatedTables,compName:S==null?void 0:S.component.name,compNames:e.unref(Wc),itemData:(X=S==null?void 0:S.component)==null?void 0:X.compData,childItemData:(ee=S==null?void 0:S.component)==null?void 0:ee.itemChildData,key:e.unref(oi),cacheNewData:e.unref(qc),onChange:e.unref(Oo),index:(S==null?void 0:S.id)??x,onContentChange:e.unref(Lo),onPageChange:e.unref(Ro),parentTableId:(pe=S==null?void 0:S.component)==null?void 0:pe.tableId,allMapContents:e.unref(It),children:(ze=S==null?void 0:S.component)==null?void 0:ze.children,level:d.value,onRowClick:T,onRouteUrl:j,onClickTrigger:e.unref(Gc),onClickMainKey:e.unref(Kc),onRadioChange:b},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(v.value,(S,x)=>{var k,E;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(S==null?void 0:S.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(x)===((k=p==null?void 0:p.children)==null?void 0:k.length)-1?"0px":"24px"})},[((E=S==null?void 0:S.comp)==null?void 0:E.toUpperCase())!=="TABLE"&&S.name?(e.openBlock(),e.createElementBlock("div",Q1,[H(S)?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(S.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(lo)(S.comp)),{compName:S.name,groupNames:S==null?void 0:S.nameContents,config:{showIndex:S==null?void 0:S.showIndex,allowMove:S==null?void 0:S.allowMove,viewport:S==null?void 0:S.viewport,status:S==null?void 0:S.status},itemData:S==null?void 0:S.compData,related:S==null?void 0:S.relatedTables,childItemData:S==null?void 0:S.itemChildData,key:e.unref(oi),onChange:e.unref(Oo),index:(S==null?void 0:S.id)??x,onContentChange:e.unref(Lo),onPageChange:e.unref(Ro),parentTableId:S==null?void 0:S.tableId,allMapContents:e.unref(It),children:S==null?void 0:S.children,level:d.value,onRowClick:T,onRouteUrl:j,onRadioChange:b},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),am=fr._export_sfc(em,[["__scopeId","data-v-bafbdd45"]]),lm={class:"radio-group-container"},rm=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(),o=si(R.pinia),{selectTab:p}=R.storeToRefs(o);e.watch(()=>r==null?void 0:r.itemData,()=>{i.value=p.value},{immediate:!0,deep:!0});const s=u=>{i.value=u,n("radioChange",i.value)};return(u,y)=>(e.openBlock(),e.createElementBlock("div",lm,[e.createVNode(ul.ssRadio,{modelValue:i.value,"onUpdate:modelValue":y[0]||(y[0]=b=>i.value=b),content:r==null?void 0:r.itemData,onChange:s},null,8,["modelValue","content"])]))}}),nm=fr._export_sfc(rm,[["__scopeId","data-v-177d64c3"]]),im=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,()=>{var n,i;r.value=((i=(n=l==null?void 0:l.itemData)==null?void 0:n.find(o=>(o==null?void 0:o.key)==="backGround"))==null?void 0:i.contents)??[]},{deep:!0,immediate:!0}),(n,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(ul.ssCarousel,{carouselList:r.value},null,8,["carouselList"])]))}}),om=a=>{if(a==null||typeof a=="number"||typeof a!="string")return a;const l=a.match(/^(\d+)\_(\d+)$/);if(!l)return a;const r=Number(l[1]),n=Number(l[2]);return!Number.isFinite(r)||!Number.isFinite(n)?a:String(r*1e3+n)},gc=a=>{if(a==null)return null;const l=String(a).trim();if(!l)return null;const r=Number(l);return Number.isFinite(r)?r:null},tm=a=>{if(a==null)return null;const l=String(a).trim();if(!l)return null;if(/^\d+$/.test(l)){const i=Number(l);return Number.isFinite(i)?l.length<=10?i*1e3:i:null}const r=l.includes("T")?l:l.replace(" ","T"),n=Date.parse(r);return Number.isFinite(n)?n:null},sm=(a,l=[])=>{let r=Array.isArray(a)?a.slice():[];if(r.length<=1)return r;let n=new Map((l||[]).map((p,s)=>[String(p),s]));const i=r.some(p=>gc(p==null?void 0:p.sort)!==null),o=r.map((p,s)=>({r:p,idx:s,id:String((p==null?void 0:p.id)??""),sortVal:gc(p==null?void 0:p.sort),createTimeMs:tm(p==null?void 0:p.create_time),prevIdx:n.has(String(p==null?void 0:p.id))?n.get(String(p==null?void 0:p.id)):Number.POSITIVE_INFINITY}));return o.sort((p,s)=>{if(i){const b=p.sortVal,g=s.sortVal;if(b===null&&g!==null)return 1;if(b!==null&&g===null)return-1;if(b!==null&&g!==null&&b!==g)return b-g}const u=p.createTimeMs,y=s.createTimeMs;return u!==null&&y!==null&&u!==y?y-u:u!==null&&y===null?-1:u===null&&y!==null?1:p.prevIdx!==s.prevIdx?p.prevIdx-s.prevIdx:p.idx-s.idx}),o.map(p=>p.r)},zu=(a,l,r=0)=>{if(r>((l==null?void 0:l.length)??""))return a;let n=l==null?void 0:l[r],i=new Map;for(const p of a){const s=p[n];i.has(s)||i.set(s,[]),i.get(s)&&i.get(s).push(p)}const o=[];for(const[p,s]of i){const[u,...y]=s,b={...u};r+1===((l==null?void 0:l.length)??"")?b.children=s==null?void 0:s.map(g=>(g.level=R.cloneDeep(r)+1,g)).filter((g,d)=>d!==0):y.length>0&&(b.children=zu(y,l,r+1)),b.level=r,o.push(b)}return o},cm=(a,l)=>{if(!l||(l==null?void 0:l.length)===0)return a;let r=[];return r=zu(a,l,0),r},um=a=>{var y,b;let l=new Map,r=[],n=[];a==null||a.forEach(g=>{l.set(g==null?void 0:g.key,g==null?void 0:g.contents)});let i=l==null?void 0:l.get("header"),o=l==null?void 0:l.get("tableContents");if((i==null?void 0:i.length)>0){let g=[];if(Array.isArray(i==null?void 0:i[0])&&((y=i==null?void 0:i[0])!=null&&y.every(C=>!(C!=null&&C.children)))&&(i=i==null?void 0:i[0]),i.some(C=>Array.isArray(C)&&(C==null?void 0:C.find(v=>v.children))))g=(b=re.getGradeColumns(i,!0))==null?void 0:b[0];else{let C=i.some(v=>Array.isArray(v))?i==null?void 0:i[0]:i;C==null||C.forEach((v,H)=>{g.push({label:(v==null?void 0:v.label)??"",prop:(v==null?void 0:v.prop)??"a"+H,width:v!=null&&v.width?parseInt(v.width):"",fixed:(v==null?void 0:v.fixed)??void 0,sortable:(v==null?void 0:v.sortable)??!1,filterable:(v==null?void 0:v.filterable)??!1,operable:(v==null?void 0:v.operable)??!1,showSummary:(v==null?void 0:v.showSummary)??!1,align:(v==null?void 0:v.align)??"left",showOverflowTooltip:(v==null?void 0:v.showOverflowTooltip)??!0,isNotDrag:(v==null?void 0:v.isNotDrag)??!1,isEditCol:(v==null?void 0:v.isEditCol)??!1,isOperate:(v==null?void 0:v.isOperate)??!1,id:(v==null?void 0:v.id)??H,formType:(v==null?void 0:v.formType)??(v!=null&&v.groupSelect?"Select":""),disabled:v==null?void 0:v.disabled,options:(v==null?void 0:v.options)??[],value:(v==null?void 0:v.value)??"",mainKey:(v==null?void 0:v.mainKey)??H===0,allSelectionContents:(v==null?void 0:v.allContents)??[],filterContent:v==null?void 0:v.filterContents,menus:v==null?void 0:v.menus,groups:v==null?void 0:v.groups,words:v==null?void 0:v.words,filter:v==null?void 0:v.filter,bindMenus:v==null?void 0:v.bindMenus,fatherPath:v==null?void 0:v.fatherPath,isMainPath:v==null?void 0:v.isMainPath,required:(v==null?void 0:v.required)??!1,relatedContents:v==null?void 0:v.relatedContents,functionName:v==null?void 0:v.functionName,functionRelatedWords:v==null?void 0:v.functionRelatedWords,calculatorFilter:v==null?void 0:v.calculatorFilter,relatedPages:v==null?void 0:v.relatedPages,multiple:(v==null?void 0:v.multiple)??!1,multipleLimit:v==null?void 0:v.multipleLimit})})}g=g==null?void 0:g.filter(C=>{var v;return!((v=C==null?void 0:C.filter)!=null&&v.includes("@ShowHide=Hide"))}),r=re.getNewColumnChild(g)}let p=Array.isArray(o==null?void 0:o[0])&&(o!=null&&o[0].every(g=>Array.isArray(g)))?o==null?void 0:o[0]:o;p=Pt(p,[],!1);let s=[];p==null||p.forEach((g,d)=>{var v;let C={};if(C=g,Array.isArray(g)&&g.some(H=>H==null?void 0:H.id)){const H=(v=g==null?void 0:g.find(T=>T.id))==null?void 0:v.id;s.push(Object.assign(C,{id:om(H)}))}else C.id?s.push(C):s.push(Object.assign(C,{id:d.toString()}))});let u=sm(s,[]);return n=cm(u,[]),{columns:r,tableContents:n}};function qt(a,l){let r=0;return function(...n){const i=Date.now();i-r>=a&&(r=i,l.apply(this,n))}}function dm(){return"xxxxxxxxxxxxaxxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(l){const r=Math.random()*16|0;return(l==="x"?r:r&3|8).toString(16)})}const ti=()=>dm().replaceAll("-","");function Wt(a){const l=new Set,r=new Set;return a.forEach(n=>{l.has(n.id)?r.add(n):l.add(n.id)}),r.size>0&&a.forEach(n=>{n.id=ti()}),a}function Vi(a){return a.map((l,r)=>({id:ti(),index:r,data:l}))}var Gt=e.defineComponent({name:"VerticalScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"up"},delay:{type:Number,default:0}},setup(a,{expose:l,emit:r}){const n=e.ref(null),i=e.ref(null),o=e.ref([]),p=e.ref(0),s=e.ref(!1),u=e.ref(a.direction),y=e.computed(()=>a.hover?!s.value&&a.modelValue:a.modelValue),b=e.ref([]),g=Vi(a.list),d=e.ref(a.visibleCount===void 0?0:a.visibleCount);let C=0,v=0,H=0,T=[],j=0,D=0,_=-1,S=0,x=null,k=!1,E=0,M=0,O=!1;const Q=()=>{cancelAnimationFrame(x),x=null},J=()=>{const he=_+D;if(he>=g.length){const I=he-g.length,Oe=["splice",[0,D],[_],[0,I]];o.value=Oe,I>g.length?_=g.length:_=I}else{const I=["splice",[0,D],[_,he]];o.value=I,_=he}},ye=()=>{const he=Array.from(n.value.children);T=(u.value==="up"?he.slice(0,D):he.slice(pe.value.length-D,pe.value.length)).map(Oe=>Oe.offsetHeight),j=T.reduce((Oe,oe)=>Oe+oe,0)},te=(he,I)=>{if(Q(),!O)return;const Oe=()=>{const oe=T[0];let ge=!1;E>=oe&&(ge=!0),ge&&(T.shift(),E=0,v+=1),v===C&&(H+=1,r("count",H),v=0),a.singleLine&&ge?(k=!0,setTimeout(()=>{k=!1,he||te(!1,a.step)},a.singleWaitTime)):he||te(!1,a.step)};(y.value&&!k||he)&&(x=requestAnimationFrame(()=>{M+=I,E+=I,u.value==="up"?p.value+=I:p.value-=I,M>j?(r("offset",D,g),J(),e.nextTick(()=>{p.value=u.value==="up"?0:ue()-S,M=0,ye(),Oe()})):Oe()}))},U=()=>{s.value=!0},q=()=>{s.value=!1,a.hover&&te(!1,a.step)},X=qt(30,he=>{te(!0,10)}),ee=he=>{a.hover&&a.wheel&&(X(he),he.preventDefault(),he.stopPropagation())},pe=e.computed(()=>{let he=[];return o.value.length===0?he=g.slice(0,d.value):o.value[0]==="splice"?(he=u.value==="up"?pe.value:pe.value.reverse(),he.splice(...o.value[1]),o.value.slice(2).forEach(I=>{he.push(...g.slice(...I))})):o.value.slice(1).forEach(I=>{he.push(...g.slice(...I))}),u.value!=="up"&&he.reverse(),Wt(he)}),ze=()=>{if(_=d.value+D,_>=g.length){const he=_-g.length,I=["slice",[0,_],[0,he]];return he>g.length?_=g.length:_=he,I}else return["slice",[0,_]]},ue=()=>Array.from(n.value.children).map(he=>he.offsetHeight).reduce((he,I)=>he+I,0),N=he=>{a.visibleCount===void 0?(b.value=Vi([a.list[0]]),e.nextTick(()=>{d.value=Math.ceil(S/i.value.offsetHeight)+2,b.value=g.slice(0,d.value),e.nextTick(()=>{he()})})):(b.value=g.slice(0,d.value),e.nextTick(()=>{he()}))};e.onMounted(()=>{n.value&&(n.value.parentElement.addEventListener("mouseenter",U),n.value.parentElement.addEventListener("mouseleave",q),n.value.parentElement.addEventListener("wheel",ee),S=n.value.parentElement.offsetHeight,a.list.length>0&&N(()=>{i.value.offsetHeight>S?(D=G(),o.value=ze(),e.nextTick(()=>{p.value=u.value==="up"?0:ue()-S,ye(),O=!0,setTimeout(()=>{te(!1,a.step)},a.delay)})):se(),b.value=[]})),C=g.length});const se=()=>{v=0,H=0,O=!1,D=0,o.value=[],e.nextTick(()=>{p.value=u.value==="up"?0:ue()-S,M=0,E=0})},G=()=>{let he=g.length-d.value;return he=Math.max(1,he),he=Math.min(5,he),he};return l({add:(he,I,Oe)=>{if(I&&I.length>0){he>g.length&&(he=g.length),he<0&&(he=0);const oe=[];I.length===1&&pe.value.forEach((ne,we)=>{ne.index===he&&oe.push(we)});const ge=[];I.forEach(ne=>{ge.push({id:ti(),data:ne})}),g.splice(he,0,...ge),g.forEach((ne,we)=>{ne.index=we});const xe=G();if(O)he<_&&(_+=1,_>g.length&&(_=0)),I.length===1&&oe.length>0&&oe.forEach(ne=>{pe.value[ne]=ge[0]}),xe!==D&&(D=xe);else{const ne=()=>{i.value.offsetHeight>S?(D=xe,o.value=ze(),e.nextTick(()=>{p.value=u.value==="up"?0:ue()-S,M=0,E=0,ye(),O=!0,te(!1,a.step)})):(a.visibleCount===void 0&&(d.value=0),se()),b.value=[]};d.value===0&&a.visibleCount===void 0?N(()=>{ne()}):(b.value=g.slice(0,d.value),e.nextTick(()=>{ne()}))}}Oe&&typeof Oe=="function"&&Oe(g),C=g.length},remove:(he,I=1,Oe)=>{he>=0&&he<g.length&&(g.splice(he,I),O?(b.value=g.slice(0,d.value),e.nextTick(()=>{if(i.value.offsetHeight>S){const ge=G();ge!==D&&(D=ge),o.value=ze()}else se();b.value=[]})):se()),Oe&&typeof Oe=="function"&&Oe(g),C=g.length},update:(he,I,Oe)=>{if(he>=0&&he<g.length){const oe=[];pe.value.forEach((xe,ne)=>{xe.index===he&&oe.push(ne)});const ge={id:ti(),index:he,data:I};g[he]=ge,oe.length>0&&oe.forEach(xe=>{pe.value[xe]=ge})}Oe&&typeof Oe=="function"&&Oe(g)},reset:()=>{e.nextTick(()=>{b.value=g.slice(0,d.value),e.nextTick(()=>{i.value.offsetHeight>S?o.value[0]==="splice"?(J(),e.nextTick(()=>{ye()})):(o.value=ze(),e.nextTick(()=>{ye()})):se()})})}}),e.watch(()=>a.modelValue,he=>{he&&te(!1,a.step)}),e.onUnmounted(()=>{cancelAnimationFrame(x),n.value&&(n.value.parentElement.removeEventListener("mouseenter",U),n.value.parentElement.removeEventListener("mouseleave",q),n.value.parentElement.removeEventListener("wheel",ee))}),{realWrapperRef:n,visibleItems:pe,offset:p,testList:b,realWrapperHiddenRef:i}}});const pm={style:{position:"absolute !important",top:"-999999px !important"},ref:"realWrapperHiddenRef"};function fm(a,l,r,n,i,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"vue3-seamless-vertical-wrapper",ref:"realWrapperRef",style:e.normalizeStyle({transition:`transform ${a.ease}`,transform:`translateY(-${a.offset}px)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.visibleItems,p=>e.renderSlot(a.$slots,"default",{key:p.id,data:p.data,index:p.index})),128))],4),e.createElementVNode("div",pm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.testList,p=>e.renderSlot(a.$slots,"default",{key:p.id,data:p.data,index:p.index})),128))],512)],64)}function Kt(a,l){l===void 0&&(l={});var r=l.insertAt;if(!(!a||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a))}}var hm=`
|
|
27
|
+
.vue3-seamless-vertical-wrapper[data-v-70134dc7] {\r
|
|
28
|
+
width: 100%;
|
|
29
|
+
}\r
|
|
30
|
+
`;Kt(hm);Gt.render=fm;Gt.__scopeId="data-v-70134dc7";Gt.__file="packages/VerticalScroll.vue";var Yt=e.defineComponent({name:"HorizontalScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"left"},delay:{type:Number,default:0}},setup(a,{emit:l,expose:r}){const n=e.ref(null),i=e.ref(null),o=e.ref([]),p=e.ref(0),s=e.ref(!1),u=e.ref(a.direction),y=e.computed(()=>a.hover?!s.value&&a.modelValue:a.modelValue),b=e.ref([]),g=e.ref(a.visibleCount===void 0?0:a.visibleCount),d=Vi(a.list);let C=0,v=0,H=0,T=[],j=0,D=0,_=-1,S=0,x=null,k=!1,E=0,M=0,O=!1;const Q=()=>{cancelAnimationFrame(x),x=null},J=()=>{const he=_+D;if(he>=d.length){const I=he-d.length,Oe=["splice",[0,D],[_],[0,I]];o.value=Oe,I>d.length?_=d.length:_=I}else{const I=["splice",[0,D],[_,he]];o.value=I,_=he}},ye=()=>{const he=Array.from(n.value.children);T=(u.value==="left"?he.slice(0,D):he.slice(pe.value.length-D,pe.value.length)).map(Oe=>Oe.offsetWidth),j=T.reduce((Oe,oe)=>Oe+oe,0)},te=(he,I)=>{if(Q(),!O)return;const Oe=()=>{const oe=T[0];let ge=!1;E>=oe&&(ge=!0),ge&&(T.shift(),E=0,v+=1),v===C&&(H+=1,l("count",H),v=0),a.singleLine&&ge?(k=!0,setTimeout(()=>{k=!1,he||te(!1,a.step)},a.singleWaitTime)):he||te(!1,a.step)};(y.value&&!k||he)&&(x=requestAnimationFrame(()=>{M+=I,E+=I,a?p.value+=I:p.value-=I,M>j?(l("offset",D,d),J(),e.nextTick(()=>{p.value=u.value==="left"?0:ue()-S,M=0,ye(),Oe()})):Oe()}))},U=()=>{s.value=!0},q=()=>{s.value=!1,a.hover&&te(!1,a.step)},X=qt(30,he=>{te(!0,10)}),ee=he=>{a.hover&&a.wheel&&(X(he),he.preventDefault(),he.stopPropagation())},pe=e.computed(()=>{let he=[];return o.value.length===0?he=d.slice(0,g.value):o.value[0]==="splice"?(he=u.value==="left"?pe.value:pe.value.reverse(),he.splice(...o.value[1]),o.value.slice(2).forEach(I=>{he.push(...d.slice(...I))})):o.value.slice(1).forEach(I=>{he.push(...d.slice(...I))}),u.value!=="left"&&he.reverse(),Wt(he)}),ze=()=>{if(_=g.value+D,_>=d.length){const he=_-d.length,I=["slice",[0,_],[0,he]];return he>d.length?_=d.length:_=he,I}else return["slice",[0,_]]},ue=()=>Array.from(n.value.children).map(he=>he.offsetWidth).reduce((he,I)=>he+I,0),N=he=>{a.visibleCount===void 0?(b.value=Vi([a.list[0]]),e.nextTick(()=>{g.value=Math.ceil(S/i.value.offsetWidth)+2,b.value=d.slice(0,g.value),e.nextTick(()=>{he()})})):(b.value=d.slice(0,g.value),e.nextTick(()=>{he()}))};e.onMounted(()=>{n.value&&(n.value.parentElement.addEventListener("mouseenter",U),n.value.parentElement.addEventListener("mouseleave",q),n.value.parentElement.addEventListener("wheel",ee),S=n.value.parentElement.offsetWidth,a.list.length>0&&N(()=>{i.value.offsetWidth>S?(D=G(),o.value=ze(),e.nextTick(()=>{p.value=u.value==="left"?0:ue()-S,ye(),O=!0,setTimeout(()=>{te(!1,a.step)},a.delay)})):se(),b.value=[]})),C=d.length});const se=()=>{v=0,H=0,O=!1,D=0,o.value=[],e.nextTick(()=>{p.value=u.value==="left"?0:ue()-S,M=0,E=0})},G=()=>{let he=d.length-g.value;return he=Math.max(1,he),he=Math.min(5,he),he};return r({add:(he,I,Oe)=>{if(I&&I.length>0){he>d.length&&(he=d.length),he<0&&(he=0);const oe=[];I.length===1&&pe.value.forEach((ne,we)=>{ne.index===he&&oe.push(we)});const ge=[];I.forEach(ne=>{ge.push({id:ti(),data:ne})}),d.splice(he,0,...ge),d.forEach((ne,we)=>{ne.index=we});const xe=G();if(O)he<_&&(_+=1,_>d.length&&(_=0)),I.length===1&&oe.forEach(ne=>{pe.value[ne]=ge[0]}),xe!==D&&(D=xe);else{const ne=()=>{i.value.offsetWidth>S?(D=xe,o.value=ze(),e.nextTick(()=>{p.value=u.value==="left"?0:ue()-S,M=0,E=0,ye(),O=!0,te(!1,a.step)})):(a.visibleCount===void 0&&(g.value=0),se()),b.value=[]};g.value===0&&a.visibleCount===void 0?N(()=>{ne()}):(b.value=d.slice(0,g.value),e.nextTick(()=>{ne()}))}}Oe&&typeof Oe=="function"&&Oe(d),C=d.length},remove:(he,I=1,Oe)=>{he>=0&&he<d.length&&(d.splice(he,I),O?(b.value=d.slice(0,g.value),e.nextTick(()=>{if(i.value.offsetWidth>S){const ge=G();ge!==D&&(D=ge),o.value=ze()}else se();b.value=[]})):se()),Oe&&typeof Oe=="function"&&Oe(d),C=d.length},update:(he,I,Oe)=>{if(he>=0&&he<d.length){const oe=[];pe.value.forEach((xe,ne)=>{xe.index===he&&oe.push(ne)});const ge={id:ti(),index:he,data:I};d[he]=ge,oe.length>0&&oe.forEach(xe=>{pe[xe]=ge})}Oe&&typeof Oe=="function"&&Oe(d)},reset:()=>{e.nextTick(()=>{b.value=d.slice(0,g.value),e.nextTick(()=>{i.value.offsetWidth>S?o.value[0]==="splice"?(J(),e.nextTick(()=>{ye()})):(o.value=ze(),e.nextTick(()=>{ye()})):se()})})}}),e.watch(()=>a.modelValue,he=>{he&&te(!1,a.step)}),e.onUnmounted(()=>{cancelAnimationFrame(x),n.value&&(n.value.parentElement.removeEventListener("mouseenter",U),n.value.parentElement.removeEventListener("mouseleave",q),n.value.parentElement.removeEventListener("wheel",ee))}),{visibleItems:pe,offset:p,testList:b,realWrapperRef:n,realWrapperHiddenRef:i}}});function vm(a,l,r,n,i,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"vue3-seamless-horizontal-wrapper",ref:"realWrapperRef",style:{transition:`transform ${a.ease}`,transform:`translateX(-${a.offset}px)`}},a.$attrs),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.visibleItems,p=>e.renderSlot(a.$slots,"default",{key:p.id,data:p.data,index:p.index,style:"color: brown;"})),128))],16),e.createElementVNode("div",e.mergeProps({style:{position:"absolute !important",top:"-999999px !important"},ref:"realWrapperHiddenRef"},a.$attrs),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.testList,p=>e.renderSlot(a.$slots,"default",{key:p.id,data:p.data,index:p.index})),128))],16)],64)}var mm=`
|
|
31
|
+
.vue3-seamless-horizontal-wrapper[data-v-530d6df5] {
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
`;Kt(mm);Yt.render=vm;Yt.__scopeId="data-v-530d6df5";Yt.__file="packages/HorizontalScroll.vue";var jo=e.defineComponent({name:"Vue3SeamlessScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"up"},delay:{type:Number,default:0}},setup(a,{expose:l,emit:r}){const n=e.ref(null),i=e.ref(null),o=e.ref(null),p=e.ref([]),s=e.ref(0),u=e.ref(!1),y=e.ref(a.direction),b=e.computed(()=>a.hover?!u.value&&a.modelValue:a.modelValue),g=e.ref([]),d=e.ref(a.visibleCount===void 0?0:a.visibleCount),C=Vi(a.list);let v=0,H=0,T=0,j=[],D=0,_=0,S=-1,x=0,k=null,E=!1,M=0,O=0,Q=!1;const J=e.computed(()=>y.value==="up"||y.value==="down"?`translateY(-${s.value}px)`:`translateX(-${s.value}px)`),ye=()=>{cancelAnimationFrame(k),k=null},te=()=>{const oe=S+_;if(oe>=C.length){const ge=oe-C.length,xe=["splice",[0,_],[S],[0,ge]];p.value=xe,ge>C.length?S=C.length:S=ge}else{const ge=["splice",[0,_],[S,oe]];p.value=ge,S=oe}},U=()=>{const oe=Array.from(i.value.children);j=(y.value==="up"||y.value==="left"?oe.slice(0,_):oe.slice(N.value.length-_,N.value.length)).map(xe=>y.value==="left"||y.value==="right"?xe.offsetWidth:xe.offsetHeight),D=j.reduce((xe,ne)=>xe+ne,0)},q=()=>{y.value==="up"||y.value==="left"?s.value=0:s.value=G()-x},X=(oe,ge)=>{if(ye(),!Q)return;const xe=()=>{const ne=j[0];let we=!1;M>=ne&&(we=!0),we&&(j.shift(),M=0,H+=1),H===v&&(T+=1,r("count",T),H=0),a.singleLine&&we?(E=!0,setTimeout(()=>{E=!1,oe||X(!1,a.step)},a.singleWaitTime)):oe||X(!1,a.step)};(b.value&&!E||oe)&&(k=requestAnimationFrame(()=>{O+=ge,M+=ge,y.value==="up"||y.value==="left"?s.value+=ge:s.value-=ge,O>D?(r("offset",_,C),te(),e.nextTick(()=>{q(),O=0,U(),xe()})):xe()}))},ee=()=>{u.value=!0},pe=()=>{u.value=!1,a.hover&&X(!1,a.step)},ze=qt(30,oe=>{X(!0,10)}),ue=oe=>{a.hover&&a.wheel&&(ze(oe),oe.preventDefault(),oe.stopPropagation())},N=e.computed(()=>{let oe=[];return p.value.length===0?oe=C.slice(0,d.value):p.value[0]==="splice"?(oe=y.value==="up"||y.value==="left"?N.value:N.value.reverse(),oe.splice(...p.value[1]),p.value.slice(2).forEach(ge=>{oe.push(...C.slice(...ge))})):p.value.slice(1).forEach(ge=>{oe.push(...C.slice(...ge))}),y.value==="up"||y.value==="left"||oe.reverse(),Wt(oe)}),se=()=>{if(S=d.value+_,S>=C.length){const oe=S-C.length,ge=["slice",[0,S],[0,oe]];return oe>C.length?S=C.length:S=oe,ge}else return["slice",[0,S]]},G=()=>Array.from(i.value.children).map(ge=>y.value==="left"||y.value==="right"?ge.offsetWidth:ge.offsetHeight).reduce((ge,xe)=>ge+xe,0),ve=oe=>{a.visibleCount===void 0?(g.value=Vi([a.list[0]]),e.nextTick(()=>{y.value==="left"||y.value==="right"?d.value=Math.ceil(x/o.value.offsetWidth)+2:d.value=Math.ceil(x/o.value.offsetHeight)+2,g.value=C.slice(0,d.value),e.nextTick(()=>{oe()})})):(g.value=C.slice(0,d.value),e.nextTick(()=>{oe()}))};e.onMounted(()=>{i.value&&(i.value.parentElement.addEventListener("mouseenter",ee),i.value.parentElement.addEventListener("mouseleave",pe),i.value.parentElement.addEventListener("wheel",ue),x=i.value.parentElement.offsetHeight,(y.value==="left"||y.value==="right")&&(x=i.value.parentElement.offsetWidth),ve(()=>{let oe=o.value.offsetHeight>x;(y.value==="left"||y.value==="right")&&(oe=o.value.offsetWidth>x),oe?(_=Be(),p.value=se(),e.nextTick(()=>{q(),U(),Q=!0,setTimeout(()=>{X(!1,a.step)},a.delay)})):ke(),g.value=[]})),v=C.length});const ke=()=>{H=0,T=0,Q=!1,_=0,p.value=[],e.nextTick(()=>{q(),O=0,M=0})},Be=()=>{let oe=C.length-d.value;return oe=Math.max(1,oe),oe=Math.min(5,oe),oe};return l({add:(oe,ge,xe)=>{if(ge&&ge.length>0){oe>C.length&&(oe=C.length),oe<0&&(oe=0);const ne=[];ge.length===1&&N.value.forEach((ya,Ge)=>{ya.index===oe&&ne.push(Ge)});const we=[];ge.forEach(ya=>{we.push({id:ti(),data:ya})}),C.splice(oe,0,...we),C.forEach((ya,Ge)=>{ya.index=Ge});const Ke=Be();if(Q)oe<S&&(S+=1,S>C.length&&(S=0)),ge.length===1&&ne.length>0&&ne.forEach(ya=>{N[ya]=we[0]}),Ke!==_&&(_=Ke);else{const ya=()=>{let Ge=o.value.offsetHeight>x;(y.value==="left"||y.value==="right")&&(Ge=o.value.offsetWidth>x),Ge?(_=Ke,p.value=se(),e.nextTick(()=>{q(),O=0,M=0,U(),Q=!0,X(!1,a.step)})):(a.visibleCount===void 0&&(d.value=0),ke()),g.value=[]};d.value===0&&a.visibleCount===void 0?ve(()=>{ya()}):(g.value=C.slice(0,d.value),e.nextTick(()=>{ya()}))}}xe&&typeof xe=="function"&&xe(C),v=C.length},remove:(oe,ge=1,xe)=>{oe>=0&&oe<C.length&&(C.splice(oe,ge),Q?(g.value=C.slice(0,d.value),e.nextTick(()=>{let ne=o.value.offsetHeight>x;if((y.value==="left"||y.value==="right")&&(ne=o.value.offsetWidth>x),ne){const we=Be();we!==_&&(_=we),p.value=se()}else ke();g.value=[]})):ke()),xe&&typeof xe=="function"&&xe(C),v=C.length},update:(oe,ge,xe)=>{if(oe>=0&&oe<C.length){const ne=[];N.value.forEach((Ke,ya)=>{Ke.index===oe&&ne.push(ya)});const we={id:ti(),index:oe,data:ge};C[oe]=we,ne.length>0&&ne.forEach(Ke=>{N[Ke]=we})}xe&&typeof xe=="function"&&xe(C)},reset:()=>{e.nextTick(()=>{g.value=C.slice(0,d.value),e.nextTick(()=>{let oe=o.value.offsetHeight>x;(y.value==="left"||y.value==="right")&&(oe=o.value.offsetWidth>x),oe?p.value[0]==="splice"?(te(),e.nextTick(()=>{U()})):(p.value=se(),e.nextTick(()=>{U()})):ke()})})}}),e.watch(()=>a.modelValue,oe=>{oe&&X(!1,a.step)}),e.onUnmounted(()=>{cancelAnimationFrame(k),i.value&&(i.value.parentElement.removeEventListener("mouseenter",ee),i.value.parentElement.removeEventListener("mouseleave",pe),i.value.parentElement.removeEventListener("wheel",ue))}),{realBoxRef:n,realWrapperRef:i,visibleItems:N,offset:s,testList:g,realWrapperHiddenRef:o,transform:J}}});function ym(a,l,r,n,i,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"vue3-seamless-wrapper",ref:"realWrapperRef",style:{transition:`transform ${a.ease}`,transform:a.transform}},a.$attrs),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.visibleItems,p=>e.renderSlot(a.$slots,"default",{key:p.id,data:p.data,index:p.index})),128))],16),e.createElementVNode("div",e.mergeProps({style:{position:"absolute !important",left:"-999999px !important"},ref:"realWrapperHiddenRef"},a.$attrs),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.testList,p=>e.renderSlot(a.$slots,"default",{key:p.id,data:p.data,index:p.index})),128))],16)],64)}var gm=`
|
|
35
|
+
.vue3-seamless-wrapper[data-v-b156a416] {\r
|
|
36
|
+
width: 100%;\r
|
|
37
|
+
height: 100%;
|
|
38
|
+
}\r
|
|
39
|
+
`;Kt(gm);jo.render=ym;jo.__scopeId="data-v-b156a416";jo.__file="packages/Vue3SeamlessScroll.vue";const bm=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref([]),n=e.ref(),i=e.ref([]),o=e.ref(0),p=e.ref([]),s=e.ref(300),u=()=>{var g;n.value&&(s.value=40*((g=i==null?void 0:i.value)==null?void 0:g.length))};e.onMounted(()=>{e.nextTick(()=>{u()})}),e.watch(()=>l==null?void 0:l.itemData,async()=>{var d;let g=um(l==null?void 0:l.itemData);r.value=(g==null?void 0:g.columns)??[],i.value=(g==null?void 0:g.tableContents)??[],p.value=(d=g==null?void 0:g.columns)==null?void 0:d.map(C=>C==null?void 0:C.label),o.value=o.value+1,u()},{immediate:!0,deep:!0});const y=g=>{var C,v,H,T;return g!=null&&g.column?((v=(C=g==null?void 0:g.column)==null?void 0:C.filter)==null?void 0:v.includes("@TextRGBA"))||((T=(H=g==null?void 0:g.column)==null?void 0:H.filter)==null?void 0:T.includes("@TextBackRGBA")):!1},b=g=>{var _,S,x,k,E,M,O,Q,J,ye,te;const{row:d,column:C,item:v,slotData:H}=g;let T=d!=null&&d[C==null?void 0:C.prop]||(d==null?void 0:d[C==null?void 0:C.prop])===0?((S=(_=d==null?void 0:d[C==null?void 0:C.prop])==null?void 0:_[0])==null?void 0:S.contents)??((d==null?void 0:d[C==null?void 0:C.prop])===0?"0":d==null?void 0:d[C==null?void 0:C.prop]):((k=(x=d==null?void 0:d[v==null?void 0:v.prop])==null?void 0:x[0])==null?void 0:k.contents)??(d==null?void 0:d[v==null?void 0:v.prop])??((M=(E=H==null?void 0:H[v==null?void 0:v.prop])==null?void 0:E[0])==null?void 0:M.contents)??(H==null?void 0:H[v==null?void 0:v.prop])??((J=(Q=d==null?void 0:d[(O=v==null?void 0:v.child)==null?void 0:O.prop])==null?void 0:Q[0])==null?void 0:J.contents)??(d==null?void 0:d[(ye=v==null?void 0:v.child)==null?void 0:ye.prop]),D=Array.isArray(T)&&!(T!=null&&T.every(U=>typeof U=="string"||typeof U=="number"))?"查看":T;if(D=Array.isArray(D)?D.join(","):D,(C==null?void 0:C.formType)==="Date")if(!D||D===""||D===null||D===void 0)D="";else{const U=R.dayjs(D,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);D=U.isValid()?U.format("YYYYMMDD"):D??""}return Array.isArray(C==null?void 0:C.relatedPages)&&((te=C==null?void 0:C.relatedPages)==null?void 0:te.length)>0&&(D="详情页"),D};return(g,d)=>{var C;return e.openBlock(),e.createElementBlock("div",{class:"seamless-table",ref_key:"containerRef",ref:n},[((C=r.value)==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(ul.ssTable,{key:o.value+JSON.stringify(r.value),columns:r.value,tableData:[],isShowPagination:!1,showIndex:!1,isCardViewport:!1,checkedColumns:p.value,canAddOrDeleteRow:!1,isShowEdit:!1,isShowDelete:!1,allowSelect:!1,allowRowAddOrDelete:!1,hideHeaderContent:!0,class:"table-header"},null,8,["columns","checkedColumns"])):e.createCommentVNode("",!0),i.value.length>0?(e.openBlock(),e.createBlock(e.unref(jo),{list:i.value,visibleCount:5,limitMoveNum:5,step:.5,hover:!0,class:"table-content",key:"scroll-"+o.value,style:e.normalizeStyle({height:s.value+"px"})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(ul.ssTable,{key:o.value+JSON.stringify(r.value),columns:r.value,tableData:i.value,isShowPagination:!1,showIndex:!1,isCardViewport:!1,checkedColumns:p.value,canAddOrDeleteRow:!1,isShowEdit:!1,isShowDelete:!1,allowSelect:!1,allowRowAddOrDelete:!1,hideHeaderContent:!0},{content:e.withCtx(v=>{var H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X;return[y(v)?(e.openBlock(),e.createBlock(wc,{key:0,value:b(v),columnContent:v==null?void 0:v.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(b(v))&&((T=(H=b(v))==null?void 0:H.toString())!=null&&T.includes(".txt")||(D=(j=b(v))==null?void 0:j.toString())!=null&&D.includes(".cpt")||(S=(_=b(v))==null?void 0:_.toString())!=null&&S.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(b(v))&&((k=(x=b(v))==null?void 0:x.toString())!=null&&k.includes(".txt")||(M=(E=b(v))==null?void 0:E.toString())!=null&&M.includes(".cpt")||(Q=(O=b(v))==null?void 0:O.toString())!=null&&Q.includes(".cyd"))?"underline":"",cursor:!Array.isArray(b(v))&&((ye=(J=b(v))==null?void 0:J.toString())!=null&&ye.includes(".txt")||(U=(te=b(v))==null?void 0:te.toString())!=null&&U.includes(".cpt")||(X=(q=b(v))==null?void 0:q.toString())!=null&&X.includes(".cyd"))?"pointer":"",marginLeft:(v==null?void 0:v.colIndex)===0?`${((v==null?void 0:v.level)??0)*20}px`:0})},e.toDisplayString(b(v)===0?"0":b(v)),5))]}),_:1},8,["columns","tableData","checkedColumns"]))]),_:1},8,["list","style"])):e.createCommentVNode("",!0)],512)}}}),km=fr._export_sfc(bm,[["__scopeId","data-v-478d08ef"]]),Mu=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"}]),xm={TABLE:ru,FORM:Us,STATICFORM:nu,TABLEOPERATE:Kv,TABLESTYLE:p6,TABLEEXTEND:h6,TABLEINTERACTION:y6,FORMOPERATE:qs,FOLD:G6,CALCULATOR:Q6,METHODBUTTON:l4,AVATARUPLOAD:_s.ssAvatar,SIGNATURE:_s.ssSignature,FORMTOP:Us,STEP:h4,STEPOPERATE:$6,TIMELINE:k4,TIMELINEOPERATE:U6,FORMTOPOPERATE:qs,SIGNATUREOPERATE:d4,AVATARUPLOADOPERATE:i4,TABS:_4,TABSOPERATE:s2,CHART:_2,CHARTOPERATE:I2,LAYOUT:R2,LAYOUTOPERATE:W2,PARENTITEM:am,RADIO:nm,CAROUSEL:im,SEAMSCROLL:km};function Fi(a){return xm[a==null?void 0:a.toUpperCase()]||null}exports.De=Au;exports.activeStepInfo=Ii;exports.addContents=ao;exports.addVisibleDialog=jt;exports.affixItems=x3;exports.allMapContents=It;exports.analyzeMenu=Ec;exports.cacheNewData=qc;exports.clickMainKey=Kc;exports.clickSavePage=k3;exports.clickStep=Jc;exports.clickTrigger=Gc;exports.compId=oi;exports.compNames=Wc;exports.compShow=$i;exports.existLayouts=D3;exports.fixChangeValue=Po;exports.generateLayouts=i6;exports.getComponent=Fi;exports.getComponents=lo;exports.getPageConstruct=Ep;exports.getPageData=qr;exports.getSliceContLength=O3;exports.gridRowHeight=Qv;exports.gridRowHeightHmPg=cu;exports.isStepLayout=Xc;exports.newGenerateLayouts=s6;exports.onBack=g3;exports.onButtonChange=E3;exports.onChange=Oo;exports.onClick=b3;exports.onClickStep=N3;exports.onContentChange=Lo;exports.onExtendTaskEnd=B3;exports.onOk=C3;exports.onPageBack=z3;exports.onPageChange=Ro;exports.onSelectFixContent=y3;exports.renderShowItems=jc;exports.showItems=xr;exports.sliceTableLength=Uc;exports.slotContent=Mu;exports.ssTable=ru;exports.st=Vo;exports.stepItems=L3;exports.tabChange=A3;exports.toolBar=T3;exports.useFormComp=Ht;exports.useModelLoader=v0;exports.verifyButton=M3;
|